30 #ifndef GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_AUDIO_STREAM_H_ 31 #define GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_AUDIO_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::VideoFileDetailsAudioStream");
94 return Storage().isMember(
"bitrateBps");
101 MutableStorage()->removeMember(
"bitrateBps");
109 const Json::Value& storage = Storage(
"bitrateBps");
110 return client::JsonValueToCppValueHelper<uint64 >(storage);
121 client::SetJsonValueFromCppValueHelper<uint64 >(
122 value, MutableStorage(
"bitrateBps"));
131 return Storage().isMember(
"channelCount");
138 MutableStorage()->removeMember(
"channelCount");
146 const Json::Value& storage = Storage(
"channelCount");
147 return client::JsonValueToCppValueHelper<uint32 >(storage);
158 client::SetJsonValueFromCppValueHelper<uint32 >(
159 value, MutableStorage(
"channelCount"));
168 return Storage().isMember(
"codec");
175 MutableStorage()->removeMember(
"codec");
183 const Json::Value& v = Storage(
"codec");
184 if (v == Json::Value::null)
return StringPiece(
"");
185 return StringPiece(v.asCString());
196 *MutableStorage(
"codec") = value.data();
205 return Storage().isMember(
"vendor");
212 MutableStorage()->removeMember(
"vendor");
220 const Json::Value& v = Storage(
"vendor");
221 if (v == Json::Value::null)
return StringPiece(
"");
222 return StringPiece(v.asCString());
234 *MutableStorage(
"vendor") = value.data();
241 #endif // GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_AUDIO_STREAM_H_ const StringPiece GetTypeName() const
Definition: video_file_details_audio_stream.h:84
bool has_channel_count() const
Definition: video_file_details_audio_stream.h:130
Definition: access_policy.cc:40
bool has_vendor() const
Definition: video_file_details_audio_stream.h:204
void clear_channel_count()
Definition: video_file_details_audio_stream.h:137
void clear_vendor()
Definition: video_file_details_audio_stream.h:211
const StringPiece get_vendor() const
Definition: video_file_details_audio_stream.h:219
void set_bitrate_bps(uint64 value)
Definition: video_file_details_audio_stream.h:120
bool has_codec() const
Definition: video_file_details_audio_stream.h:167
Definition: access_policy.h:38
void clear_codec()
Definition: video_file_details_audio_stream.h:174
Definition: video_file_details_audio_stream.h:51
void set_vendor(const StringPiece &value)
Definition: video_file_details_audio_stream.h:233
const StringPiece get_codec() const
Definition: video_file_details_audio_stream.h:182
bool has_bitrate_bps() const
Definition: video_file_details_audio_stream.h:93
void clear_bitrate_bps()
Definition: video_file_details_audio_stream.h:100
uint32 get_channel_count() const
Definition: video_file_details_audio_stream.h:145
void set_channel_count(uint32 value)
Definition: video_file_details_audio_stream.h:157
void set_codec(const StringPiece &value)
Definition: video_file_details_audio_stream.h:195
uint64 get_bitrate_bps() const
Definition: video_file_details_audio_stream.h:108