youtube  v3
video_live_streaming_details.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_VIDEO_LIVE_STREAMING_DETAILS_H_
31 #define GOOGLE_YOUTUBE_API_VIDEO_LIVE_STREAMING_DETAILS_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/client/util/date_time.h"
38 #include "googleapis/strings/stringpiece.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_youtube_api {
45 using namespace googleapis;
46 
52 class VideoLiveStreamingDetails : public client::JsonCppData {
53  public:
59  static VideoLiveStreamingDetails* New();
60 
66  explicit VideoLiveStreamingDetails(const Json::Value& storage);
67 
73  explicit VideoLiveStreamingDetails(Json::Value* storage);
74 
78  virtual ~VideoLiveStreamingDetails();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_youtube_api::VideoLiveStreamingDetails");
87  }
88 
94  bool has_active_live_chat_id() const {
95  return Storage().isMember("activeLiveChatId");
96  }
97 
102  MutableStorage()->removeMember("activeLiveChatId");
103  }
104 
105 
109  const StringPiece get_active_live_chat_id() const {
110  const Json::Value& v = Storage("activeLiveChatId");
111  if (v == Json::Value::null) return StringPiece("");
112  return StringPiece(v.asCString());
113  }
114 
127  void set_active_live_chat_id(const StringPiece& value) {
128  *MutableStorage("activeLiveChatId") = value.data();
129  }
130 
136  bool has_actual_end_time() const {
137  return Storage().isMember("actualEndTime");
138  }
139 
144  MutableStorage()->removeMember("actualEndTime");
145  }
146 
147 
151  client::DateTime get_actual_end_time() const {
152  const Json::Value& storage = Storage("actualEndTime");
153  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
154  }
155 
165  void set_actual_end_time(client::DateTime value) {
166  client::SetJsonValueFromCppValueHelper<client::DateTime >(
167  value, MutableStorage("actualEndTime"));
168  }
169 
175  bool has_actual_start_time() const {
176  return Storage().isMember("actualStartTime");
177  }
178 
183  MutableStorage()->removeMember("actualStartTime");
184  }
185 
186 
190  client::DateTime get_actual_start_time() const {
191  const Json::Value& storage = Storage("actualStartTime");
192  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
193  }
194 
204  void set_actual_start_time(client::DateTime value) {
205  client::SetJsonValueFromCppValueHelper<client::DateTime >(
206  value, MutableStorage("actualStartTime"));
207  }
208 
214  bool has_concurrent_viewers() const {
215  return Storage().isMember("concurrentViewers");
216  }
217 
222  MutableStorage()->removeMember("concurrentViewers");
223  }
224 
225 
229  uint64 get_concurrent_viewers() const {
230  const Json::Value& storage = Storage("concurrentViewers");
231  return client::JsonValueToCppValueHelper<uint64 >(storage);
232  }
233 
246  void set_concurrent_viewers(uint64 value) {
247  client::SetJsonValueFromCppValueHelper<uint64 >(
248  value, MutableStorage("concurrentViewers"));
249  }
250 
256  bool has_scheduled_end_time() const {
257  return Storage().isMember("scheduledEndTime");
258  }
259 
264  MutableStorage()->removeMember("scheduledEndTime");
265  }
266 
267 
271  client::DateTime get_scheduled_end_time() const {
272  const Json::Value& storage = Storage("scheduledEndTime");
273  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
274  }
275 
286  void set_scheduled_end_time(client::DateTime value) {
287  client::SetJsonValueFromCppValueHelper<client::DateTime >(
288  value, MutableStorage("scheduledEndTime"));
289  }
290 
297  return Storage().isMember("scheduledStartTime");
298  }
299 
304  MutableStorage()->removeMember("scheduledStartTime");
305  }
306 
307 
311  client::DateTime get_scheduled_start_time() const {
312  const Json::Value& storage = Storage("scheduledStartTime");
313  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
314  }
315 
324  void set_scheduled_start_time(client::DateTime value) {
325  client::SetJsonValueFromCppValueHelper<client::DateTime >(
326  value, MutableStorage("scheduledStartTime"));
327  }
328 
329  private:
330  void operator=(const VideoLiveStreamingDetails&);
331 }; // VideoLiveStreamingDetails
332 } // namespace google_youtube_api
333 #endif // GOOGLE_YOUTUBE_API_VIDEO_LIVE_STREAMING_DETAILS_H_
void set_actual_start_time(client::DateTime value)
Definition: video_live_streaming_details.h:204
const StringPiece GetTypeName() const
Definition: video_live_streaming_details.h:85
void clear_scheduled_start_time()
Definition: video_live_streaming_details.h:303
Definition: access_policy.cc:40
bool has_active_live_chat_id() const
Definition: video_live_streaming_details.h:94
void clear_actual_end_time()
Definition: video_live_streaming_details.h:143
client::DateTime get_scheduled_end_time() const
Definition: video_live_streaming_details.h:271
void set_actual_end_time(client::DateTime value)
Definition: video_live_streaming_details.h:165
client::DateTime get_actual_end_time() const
Definition: video_live_streaming_details.h:151
void clear_active_live_chat_id()
Definition: video_live_streaming_details.h:101
void clear_actual_start_time()
Definition: video_live_streaming_details.h:182
void set_scheduled_end_time(client::DateTime value)
Definition: video_live_streaming_details.h:286
void set_active_live_chat_id(const StringPiece &value)
Definition: video_live_streaming_details.h:127
void set_scheduled_start_time(client::DateTime value)
Definition: video_live_streaming_details.h:324
bool has_actual_end_time() const
Definition: video_live_streaming_details.h:136
Definition: video_live_streaming_details.h:52
client::DateTime get_actual_start_time() const
Definition: video_live_streaming_details.h:190
Definition: access_policy.h:38
bool has_concurrent_viewers() const
Definition: video_live_streaming_details.h:214
client::DateTime get_scheduled_start_time() const
Definition: video_live_streaming_details.h:311
const StringPiece get_active_live_chat_id() const
Definition: video_live_streaming_details.h:109
bool has_scheduled_start_time() const
Definition: video_live_streaming_details.h:296
uint64 get_concurrent_viewers() const
Definition: video_live_streaming_details.h:229
void clear_scheduled_end_time()
Definition: video_live_streaming_details.h:263
bool has_actual_start_time() const
Definition: video_live_streaming_details.h:175
bool has_scheduled_end_time() const
Definition: video_live_streaming_details.h:256
void clear_concurrent_viewers()
Definition: video_live_streaming_details.h:221
void set_concurrent_viewers(uint64 value)
Definition: video_live_streaming_details.h:246