youtube  v3
live_broadcast_content_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_LIVE_BROADCAST_CONTENT_DETAILS_H_
31 #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_CONTENT_DETAILS_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/client/util/date_time.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 #include "google/youtube_api/monitor_stream_info.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_youtube_api {
46 using namespace googleapis;
47 
53 class LiveBroadcastContentDetails : public client::JsonCppData {
54  public:
60  static LiveBroadcastContentDetails* New();
61 
67  explicit LiveBroadcastContentDetails(const Json::Value& storage);
68 
74  explicit LiveBroadcastContentDetails(Json::Value* storage);
75 
79  virtual ~LiveBroadcastContentDetails();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_youtube_api::LiveBroadcastContentDetails");
88  }
89 
95  bool has_bound_stream_id() const {
96  return Storage().isMember("boundStreamId");
97  }
98 
103  MutableStorage()->removeMember("boundStreamId");
104  }
105 
106 
110  const StringPiece get_bound_stream_id() const {
111  const Json::Value& v = Storage("boundStreamId");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
123  void set_bound_stream_id(const StringPiece& value) {
124  *MutableStorage("boundStreamId") = value.data();
125  }
126 
135  return Storage().isMember("boundStreamLastUpdateTimeMs");
136  }
137 
142  MutableStorage()->removeMember("boundStreamLastUpdateTimeMs");
143  }
144 
145 
149  client::DateTime get_bound_stream_last_update_time_ms() const {
150  const Json::Value& storage = Storage("boundStreamLastUpdateTimeMs");
151  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
152  }
153 
162  void set_bound_stream_last_update_time_ms(client::DateTime value) {
163  client::SetJsonValueFromCppValueHelper<client::DateTime >(
164  value, MutableStorage("boundStreamLastUpdateTimeMs"));
165  }
166 
173  return Storage().isMember("closedCaptionsType");
174  }
175 
180  MutableStorage()->removeMember("closedCaptionsType");
181  }
182 
183 
187  const StringPiece get_closed_captions_type() const {
188  const Json::Value& v = Storage("closedCaptionsType");
189  if (v == Json::Value::null) return StringPiece("");
190  return StringPiece(v.asCString());
191  }
192 
197  void set_closed_captions_type(const StringPiece& value) {
198  *MutableStorage("closedCaptionsType") = value.data();
199  }
200 
206  bool has_enable_auto_start() const {
207  return Storage().isMember("enableAutoStart");
208  }
209 
214  MutableStorage()->removeMember("enableAutoStart");
215  }
216 
217 
221  bool get_enable_auto_start() const {
222  const Json::Value& storage = Storage("enableAutoStart");
223  return client::JsonValueToCppValueHelper<bool >(storage);
224  }
225 
233  void set_enable_auto_start(bool value) {
234  client::SetJsonValueFromCppValueHelper<bool >(
235  value, MutableStorage("enableAutoStart"));
236  }
237 
244  return Storage().isMember("enableClosedCaptions");
245  }
246 
251  MutableStorage()->removeMember("enableClosedCaptions");
252  }
253 
254 
259  const Json::Value& storage = Storage("enableClosedCaptions");
260  return client::JsonValueToCppValueHelper<bool >(storage);
261  }
262 
274  void set_enable_closed_captions(bool value) {
275  client::SetJsonValueFromCppValueHelper<bool >(
276  value, MutableStorage("enableClosedCaptions"));
277  }
278 
286  return Storage().isMember("enableContentEncryption");
287  }
288 
293  MutableStorage()->removeMember("enableContentEncryption");
294  }
295 
296 
301  const Json::Value& storage = Storage("enableContentEncryption");
302  return client::JsonValueToCppValueHelper<bool >(storage);
303  }
304 
313  void set_enable_content_encryption(bool value) {
314  client::SetJsonValueFromCppValueHelper<bool >(
315  value, MutableStorage("enableContentEncryption"));
316  }
317 
323  bool has_enable_dvr() const {
324  return Storage().isMember("enableDvr");
325  }
326 
331  MutableStorage()->removeMember("enableDvr");
332  }
333 
334 
338  bool get_enable_dvr() const {
339  const Json::Value& storage = Storage("enableDvr");
340  return client::JsonValueToCppValueHelper<bool >(storage);
341  }
342 
359  void set_enable_dvr(bool value) {
360  client::SetJsonValueFromCppValueHelper<bool >(
361  value, MutableStorage("enableDvr"));
362  }
363 
369  bool has_enable_embed() const {
370  return Storage().isMember("enableEmbed");
371  }
372 
377  MutableStorage()->removeMember("enableEmbed");
378  }
379 
380 
384  bool get_enable_embed() const {
385  const Json::Value& storage = Storage("enableEmbed");
386  return client::JsonValueToCppValueHelper<bool >(storage);
387  }
388 
399  void set_enable_embed(bool value) {
400  client::SetJsonValueFromCppValueHelper<bool >(
401  value, MutableStorage("enableEmbed"));
402  }
403 
409  bool has_enable_low_latency() const {
410  return Storage().isMember("enableLowLatency");
411  }
412 
417  MutableStorage()->removeMember("enableLowLatency");
418  }
419 
420 
424  bool get_enable_low_latency() const {
425  const Json::Value& storage = Storage("enableLowLatency");
426  return client::JsonValueToCppValueHelper<bool >(storage);
427  }
428 
436  void set_enable_low_latency(bool value) {
437  client::SetJsonValueFromCppValueHelper<bool >(
438  value, MutableStorage("enableLowLatency"));
439  }
440 
446  bool has_latency_preference() const {
447  return Storage().isMember("latencyPreference");
448  }
449 
454  MutableStorage()->removeMember("latencyPreference");
455  }
456 
457 
461  const StringPiece get_latency_preference() const {
462  const Json::Value& v = Storage("latencyPreference");
463  if (v == Json::Value::null) return StringPiece("");
464  return StringPiece(v.asCString());
465  }
466 
477  void set_latency_preference(const StringPiece& value) {
478  *MutableStorage("latencyPreference") = value.data();
479  }
480 
486  bool has_mesh() const {
487  return Storage().isMember("mesh");
488  }
489 
493  void clear_mesh() {
494  MutableStorage()->removeMember("mesh");
495  }
496 
497 
501  const StringPiece get_mesh() const {
502  const Json::Value& v = Storage("mesh");
503  if (v == Json::Value::null) return StringPiece("");
504  return StringPiece(v.asCString());
505  }
506 
518  void set_mesh(const StringPiece& value) {
519  *MutableStorage("mesh") = value.data();
520  }
521 
527  bool has_monitor_stream() const {
528  return Storage().isMember("monitorStream");
529  }
530 
535  MutableStorage()->removeMember("monitorStream");
536  }
537 
538 
542  const MonitorStreamInfo get_monitor_stream() const;
543 
554  MonitorStreamInfo mutable_monitorStream();
555 
561  bool has_projection() const {
562  return Storage().isMember("projection");
563  }
564 
569  MutableStorage()->removeMember("projection");
570  }
571 
572 
576  const StringPiece get_projection() const {
577  const Json::Value& v = Storage("projection");
578  if (v == Json::Value::null) return StringPiece("");
579  return StringPiece(v.asCString());
580  }
581 
589  void set_projection(const StringPiece& value) {
590  *MutableStorage("projection") = value.data();
591  }
592 
598  bool has_record_from_start() const {
599  return Storage().isMember("recordFromStart");
600  }
601 
606  MutableStorage()->removeMember("recordFromStart");
607  }
608 
609 
613  bool get_record_from_start() const {
614  const Json::Value& storage = Storage("recordFromStart");
615  return client::JsonValueToCppValueHelper<bool >(storage);
616  }
617 
634  void set_record_from_start(bool value) {
635  client::SetJsonValueFromCppValueHelper<bool >(
636  value, MutableStorage("recordFromStart"));
637  }
638 
644  bool has_start_with_slate() const {
645  return Storage().isMember("startWithSlate");
646  }
647 
652  MutableStorage()->removeMember("startWithSlate");
653  }
654 
655 
659  bool get_start_with_slate() const {
660  const Json::Value& storage = Storage("startWithSlate");
661  return client::JsonValueToCppValueHelper<bool >(storage);
662  }
663 
675  void set_start_with_slate(bool value) {
676  client::SetJsonValueFromCppValueHelper<bool >(
677  value, MutableStorage("startWithSlate"));
678  }
679 
685  bool has_stereo_layout() const {
686  return Storage().isMember("stereoLayout");
687  }
688 
693  MutableStorage()->removeMember("stereoLayout");
694  }
695 
696 
700  const StringPiece get_stereo_layout() const {
701  const Json::Value& v = Storage("stereoLayout");
702  if (v == Json::Value::null) return StringPiece("");
703  return StringPiece(v.asCString());
704  }
705 
710  void set_stereo_layout(const StringPiece& value) {
711  *MutableStorage("stereoLayout") = value.data();
712  }
713 
714  private:
715  void operator=(const LiveBroadcastContentDetails&);
716 }; // LiveBroadcastContentDetails
717 } // namespace google_youtube_api
718 #endif // GOOGLE_YOUTUBE_API_LIVE_BROADCAST_CONTENT_DETAILS_H_
void set_enable_closed_captions(bool value)
Definition: live_broadcast_content_details.h:274
Definition: access_policy.cc:40
const StringPiece get_bound_stream_id() const
Definition: live_broadcast_content_details.h:110
bool get_record_from_start() const
Definition: live_broadcast_content_details.h:613
const StringPiece get_closed_captions_type() const
Definition: live_broadcast_content_details.h:187
bool has_mesh() const
Definition: live_broadcast_content_details.h:486
void clear_enable_embed()
Definition: live_broadcast_content_details.h:376
void set_bound_stream_last_update_time_ms(client::DateTime value)
Definition: live_broadcast_content_details.h:162
bool has_enable_embed() const
Definition: live_broadcast_content_details.h:369
void set_closed_captions_type(const StringPiece &value)
Definition: live_broadcast_content_details.h:197
void clear_record_from_start()
Definition: live_broadcast_content_details.h:605
const StringPiece get_latency_preference() const
Definition: live_broadcast_content_details.h:461
bool has_record_from_start() const
Definition: live_broadcast_content_details.h:598
void clear_projection()
Definition: live_broadcast_content_details.h:568
bool get_enable_low_latency() const
Definition: live_broadcast_content_details.h:424
void clear_bound_stream_last_update_time_ms()
Definition: live_broadcast_content_details.h:141
bool has_stereo_layout() const
Definition: live_broadcast_content_details.h:685
void clear_bound_stream_id()
Definition: live_broadcast_content_details.h:102
void set_start_with_slate(bool value)
Definition: live_broadcast_content_details.h:675
bool has_projection() const
Definition: live_broadcast_content_details.h:561
bool has_enable_content_encryption() const
Definition: live_broadcast_content_details.h:285
const StringPiece get_projection() const
Definition: live_broadcast_content_details.h:576
bool has_bound_stream_last_update_time_ms() const
Definition: live_broadcast_content_details.h:134
void clear_enable_auto_start()
Definition: live_broadcast_content_details.h:213
bool get_enable_closed_captions() const
Definition: live_broadcast_content_details.h:258
const StringPiece get_mesh() const
Definition: live_broadcast_content_details.h:501
bool get_enable_auto_start() const
Definition: live_broadcast_content_details.h:221
bool get_start_with_slate() const
Definition: live_broadcast_content_details.h:659
void set_enable_embed(bool value)
Definition: live_broadcast_content_details.h:399
bool has_latency_preference() const
Definition: live_broadcast_content_details.h:446
bool has_enable_auto_start() const
Definition: live_broadcast_content_details.h:206
Definition: access_policy.h:38
void set_bound_stream_id(const StringPiece &value)
Definition: live_broadcast_content_details.h:123
bool has_bound_stream_id() const
Definition: live_broadcast_content_details.h:95
bool get_enable_dvr() const
Definition: live_broadcast_content_details.h:338
void clear_enable_dvr()
Definition: live_broadcast_content_details.h:330
void clear_enable_low_latency()
Definition: live_broadcast_content_details.h:416
void set_projection(const StringPiece &value)
Definition: live_broadcast_content_details.h:589
void set_enable_low_latency(bool value)
Definition: live_broadcast_content_details.h:436
bool has_enable_low_latency() const
Definition: live_broadcast_content_details.h:409
Definition: live_broadcast_content_details.h:53
void set_mesh(const StringPiece &value)
Definition: live_broadcast_content_details.h:518
Definition: monitor_stream_info.h:51
client::DateTime get_bound_stream_last_update_time_ms() const
Definition: live_broadcast_content_details.h:149
void clear_start_with_slate()
Definition: live_broadcast_content_details.h:651
void clear_closed_captions_type()
Definition: live_broadcast_content_details.h:179
void clear_mesh()
Definition: live_broadcast_content_details.h:493
void set_latency_preference(const StringPiece &value)
Definition: live_broadcast_content_details.h:477
bool get_enable_embed() const
Definition: live_broadcast_content_details.h:384
bool has_monitor_stream() const
Definition: live_broadcast_content_details.h:527
void set_stereo_layout(const StringPiece &value)
Definition: live_broadcast_content_details.h:710
void clear_enable_content_encryption()
Definition: live_broadcast_content_details.h:292
bool has_enable_closed_captions() const
Definition: live_broadcast_content_details.h:243
void clear_enable_closed_captions()
Definition: live_broadcast_content_details.h:250
bool has_closed_captions_type() const
Definition: live_broadcast_content_details.h:172
bool has_enable_dvr() const
Definition: live_broadcast_content_details.h:323
const StringPiece GetTypeName() const
Definition: live_broadcast_content_details.h:86
void set_record_from_start(bool value)
Definition: live_broadcast_content_details.h:634
void clear_stereo_layout()
Definition: live_broadcast_content_details.h:692
void clear_monitor_stream()
Definition: live_broadcast_content_details.h:534
void clear_latency_preference()
Definition: live_broadcast_content_details.h:453
void set_enable_dvr(bool value)
Definition: live_broadcast_content_details.h:359
bool has_start_with_slate() const
Definition: live_broadcast_content_details.h:644
const StringPiece get_stereo_layout() const
Definition: live_broadcast_content_details.h:700
bool get_enable_content_encryption() const
Definition: live_broadcast_content_details.h:300
void set_enable_content_encryption(bool value)
Definition: live_broadcast_content_details.h:313
void set_enable_auto_start(bool value)
Definition: live_broadcast_content_details.h:233