30 #ifndef GOOGLE_YOUTUBE_API_MONITOR_STREAM_INFO_H_ 31 #define GOOGLE_YOUTUBE_API_MONITOR_STREAM_INFO_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::MonitorStreamInfo");
95 return Storage().isMember(
"broadcastStreamDelayMs");
102 MutableStorage()->removeMember(
"broadcastStreamDelayMs");
110 const Json::Value& storage = Storage(
"broadcastStreamDelayMs");
111 return client::JsonValueToCppValueHelper<uint32 >(storage);
123 client::SetJsonValueFromCppValueHelper<uint32 >(
124 value, MutableStorage(
"broadcastStreamDelayMs"));
133 return Storage().isMember(
"embedHtml");
140 MutableStorage()->removeMember(
"embedHtml");
148 const Json::Value& v = Storage(
"embedHtml");
149 if (v == Json::Value::null)
return StringPiece(
"");
150 return StringPiece(v.asCString());
161 *MutableStorage(
"embedHtml") = value.data();
170 return Storage().isMember(
"enableMonitorStream");
177 MutableStorage()->removeMember(
"enableMonitorStream");
185 const Json::Value& storage = Storage(
"enableMonitorStream");
186 return client::JsonValueToCppValueHelper<bool >(storage);
207 client::SetJsonValueFromCppValueHelper<bool >(
208 value, MutableStorage(
"enableMonitorStream"));
215 #endif // GOOGLE_YOUTUBE_API_MONITOR_STREAM_INFO_H_ Definition: access_policy.cc:40
bool get_enable_monitor_stream() const
Definition: monitor_stream_info.h:184
void set_enable_monitor_stream(bool value)
Definition: monitor_stream_info.h:206
const StringPiece get_embed_html() const
Definition: monitor_stream_info.h:147
void clear_enable_monitor_stream()
Definition: monitor_stream_info.h:176
void clear_broadcast_stream_delay_ms()
Definition: monitor_stream_info.h:101
Definition: access_policy.h:38
const StringPiece GetTypeName() const
Definition: monitor_stream_info.h:84
void set_embed_html(const StringPiece &value)
Definition: monitor_stream_info.h:160
void set_broadcast_stream_delay_ms(uint32 value)
Definition: monitor_stream_info.h:122
bool has_broadcast_stream_delay_ms() const
Definition: monitor_stream_info.h:94
Definition: monitor_stream_info.h:51
void clear_embed_html()
Definition: monitor_stream_info.h:139
bool has_embed_html() const
Definition: monitor_stream_info.h:132
uint32 get_broadcast_stream_delay_ms() const
Definition: monitor_stream_info.h:109
bool has_enable_monitor_stream() const
Definition: monitor_stream_info.h:169