youtube  v3
monitor_stream_info.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2020-02-27, 01:46:08 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // YouTube Data API (youtube/v3)
24 // Generated from:
25 // Version: v3
26 // Revision: 222
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_YOUTUBE_API_MONITOR_STREAM_INFO_H_
31 #define GOOGLE_YOUTUBE_API_MONITOR_STREAM_INFO_H_
32 
33 #include <string>
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"
38 
39 namespace Json {
40 class Value;
41 } // namespace Json
42 
43 namespace google_youtube_api {
44 using namespace googleapis;
45 
51 class MonitorStreamInfo : public client::JsonCppData {
52  public:
58  static MonitorStreamInfo* New();
59 
65  explicit MonitorStreamInfo(const Json::Value& storage);
66 
72  explicit MonitorStreamInfo(Json::Value* storage);
73 
77  virtual ~MonitorStreamInfo();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_youtube_api::MonitorStreamInfo");
86  }
87 
95  return Storage().isMember("broadcastStreamDelayMs");
96  }
97 
102  MutableStorage()->removeMember("broadcastStreamDelayMs");
103  }
104 
105 
110  const Json::Value& storage = Storage("broadcastStreamDelayMs");
111  return client::JsonValueToCppValueHelper<uint32 >(storage);
112  }
113 
122  void set_broadcast_stream_delay_ms(uint32 value) {
123  client::SetJsonValueFromCppValueHelper<uint32 >(
124  value, MutableStorage("broadcastStreamDelayMs"));
125  }
126 
132  bool has_embed_html() const {
133  return Storage().isMember("embedHtml");
134  }
135 
140  MutableStorage()->removeMember("embedHtml");
141  }
142 
143 
147  const StringPiece get_embed_html() const {
148  const Json::Value& v = Storage("embedHtml");
149  if (v == Json::Value::null) return StringPiece("");
150  return StringPiece(v.asCString());
151  }
152 
160  void set_embed_html(const StringPiece& value) {
161  *MutableStorage("embedHtml") = value.data();
162  }
163 
170  return Storage().isMember("enableMonitorStream");
171  }
172 
177  MutableStorage()->removeMember("enableMonitorStream");
178  }
179 
180 
185  const Json::Value& storage = Storage("enableMonitorStream");
186  return client::JsonValueToCppValueHelper<bool >(storage);
187  }
188 
206  void set_enable_monitor_stream(bool value) {
207  client::SetJsonValueFromCppValueHelper<bool >(
208  value, MutableStorage("enableMonitorStream"));
209  }
210 
211  private:
212  void operator=(const MonitorStreamInfo&);
213 }; // MonitorStreamInfo
214 } // namespace google_youtube_api
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