30 #ifndef GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_VIDEO_STREAM_H_ 31 #define GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_VIDEO_STREAM_H_ 34 #include "googleapis/base/integral_types.h" 35 #include "googleapis/base/macros.h" 36 #include "googleapis/client/data/jsoncpp_data.h" 37 #include "googleapis/strings/stringpiece.h" 85 return StringPiece(
"google_youtube_api::VideoFileDetailsVideoStream");
94 return Storage().isMember(
"aspectRatio");
101 MutableStorage()->removeMember(
"aspectRatio");
109 const Json::Value& storage = Storage(
"aspectRatio");
110 return client::JsonValueToCppValueHelper<double >(storage);
122 client::SetJsonValueFromCppValueHelper<double >(
123 value, MutableStorage(
"aspectRatio"));
132 return Storage().isMember(
"bitrateBps");
139 MutableStorage()->removeMember(
"bitrateBps");
147 const Json::Value& storage = Storage(
"bitrateBps");
148 return client::JsonValueToCppValueHelper<uint64 >(storage);
159 client::SetJsonValueFromCppValueHelper<uint64 >(
160 value, MutableStorage(
"bitrateBps"));
169 return Storage().isMember(
"codec");
176 MutableStorage()->removeMember(
"codec");
184 const Json::Value& v = Storage(
"codec");
185 if (v == Json::Value::null)
return StringPiece(
"");
186 return StringPiece(v.asCString());
197 *MutableStorage(
"codec") = value.data();
206 return Storage().isMember(
"frameRateFps");
213 MutableStorage()->removeMember(
"frameRateFps");
221 const Json::Value& storage = Storage(
"frameRateFps");
222 return client::JsonValueToCppValueHelper<double >(storage);
233 client::SetJsonValueFromCppValueHelper<double >(
234 value, MutableStorage(
"frameRateFps"));
243 return Storage().isMember(
"heightPixels");
250 MutableStorage()->removeMember(
"heightPixels");
258 const Json::Value& storage = Storage(
"heightPixels");
259 return client::JsonValueToCppValueHelper<uint32 >(storage);
270 client::SetJsonValueFromCppValueHelper<uint32 >(
271 value, MutableStorage(
"heightPixels"));
280 return Storage().isMember(
"rotation");
287 MutableStorage()->removeMember(
"rotation");
295 const Json::Value& v = Storage(
"rotation");
296 if (v == Json::Value::null)
return StringPiece(
"");
297 return StringPiece(v.asCString());
309 *MutableStorage(
"rotation") = value.data();
318 return Storage().isMember(
"vendor");
325 MutableStorage()->removeMember(
"vendor");
333 const Json::Value& v = Storage(
"vendor");
334 if (v == Json::Value::null)
return StringPiece(
"");
335 return StringPiece(v.asCString());
347 *MutableStorage(
"vendor") = value.data();
356 return Storage().isMember(
"widthPixels");
363 MutableStorage()->removeMember(
"widthPixels");
371 const Json::Value& storage = Storage(
"widthPixels");
372 return client::JsonValueToCppValueHelper<uint32 >(storage);
384 client::SetJsonValueFromCppValueHelper<uint32 >(
385 value, MutableStorage(
"widthPixels"));
392 #endif // GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_VIDEO_STREAM_H_ Definition: video_file_details_video_stream.h:51
void clear_height_pixels()
Definition: video_file_details_video_stream.h:249
Definition: access_policy.cc:40
void set_rotation(const StringPiece &value)
Definition: video_file_details_video_stream.h:308
void clear_frame_rate_fps()
Definition: video_file_details_video_stream.h:212
bool has_codec() const
Definition: video_file_details_video_stream.h:168
bool has_width_pixels() const
Definition: video_file_details_video_stream.h:355
bool has_vendor() const
Definition: video_file_details_video_stream.h:317
bool has_rotation() const
Definition: video_file_details_video_stream.h:279
void set_height_pixels(uint32 value)
Definition: video_file_details_video_stream.h:269
bool has_height_pixels() const
Definition: video_file_details_video_stream.h:242
void clear_codec()
Definition: video_file_details_video_stream.h:175
const StringPiece get_rotation() const
Definition: video_file_details_video_stream.h:294
bool has_bitrate_bps() const
Definition: video_file_details_video_stream.h:131
void set_frame_rate_fps(double value)
Definition: video_file_details_video_stream.h:232
void set_codec(const StringPiece &value)
Definition: video_file_details_video_stream.h:196
bool has_aspect_ratio() const
Definition: video_file_details_video_stream.h:93
void clear_vendor()
Definition: video_file_details_video_stream.h:324
double get_aspect_ratio() const
Definition: video_file_details_video_stream.h:108
const StringPiece GetTypeName() const
Definition: video_file_details_video_stream.h:84
void set_vendor(const StringPiece &value)
Definition: video_file_details_video_stream.h:346
double get_frame_rate_fps() const
Definition: video_file_details_video_stream.h:220
void set_width_pixels(uint32 value)
Definition: video_file_details_video_stream.h:383
void clear_aspect_ratio()
Definition: video_file_details_video_stream.h:100
Definition: access_policy.h:38
uint64 get_bitrate_bps() const
Definition: video_file_details_video_stream.h:146
const StringPiece get_vendor() const
Definition: video_file_details_video_stream.h:332
bool has_frame_rate_fps() const
Definition: video_file_details_video_stream.h:205
void clear_rotation()
Definition: video_file_details_video_stream.h:286
void set_bitrate_bps(uint64 value)
Definition: video_file_details_video_stream.h:158
void clear_bitrate_bps()
Definition: video_file_details_video_stream.h:138
uint32 get_height_pixels() const
Definition: video_file_details_video_stream.h:257
const StringPiece get_codec() const
Definition: video_file_details_video_stream.h:183
uint32 get_width_pixels() const
Definition: video_file_details_video_stream.h:370
void set_aspect_ratio(double value)
Definition: video_file_details_video_stream.h:121
void clear_width_pixels()
Definition: video_file_details_video_stream.h:362