youtube  v3
channel.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_CHANNEL_H_
31 #define GOOGLE_YOUTUBE_API_CHANNEL_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 #include "google/youtube_api/channel_audit_details.h"
39 #include "google/youtube_api/channel_branding_settings.h"
40 #include "google/youtube_api/channel_content_details.h"
41 #include "google/youtube_api/channel_content_owner_details.h"
42 #include "google/youtube_api/channel_conversion_pings.h"
43 #include "google/youtube_api/channel_localization.h"
44 #include "google/youtube_api/channel_snippet.h"
45 #include "google/youtube_api/channel_statistics.h"
46 #include "google/youtube_api/channel_status.h"
47 #include "google/youtube_api/channel_topic_details.h"
48 #include "google/youtube_api/invideo_promotion.h"
49 
50 namespace Json {
51 class Value;
52 } // namespace Json
53 
54 namespace google_youtube_api {
55 using namespace googleapis;
56 
62 class Channel : public client::JsonCppData {
63  public:
69  static Channel* New();
70 
76  explicit Channel(const Json::Value& storage);
77 
83  explicit Channel(Json::Value* storage);
84 
88  virtual ~Channel();
89 
95  const StringPiece GetTypeName() const {
96  return StringPiece("google_youtube_api::Channel");
97  }
98 
104  bool has_audit_details() const {
105  return Storage().isMember("auditDetails");
106  }
107 
112  MutableStorage()->removeMember("auditDetails");
113  }
114 
115 
119  const ChannelAuditDetails get_audit_details() const;
120 
130  ChannelAuditDetails mutable_auditDetails();
131 
137  bool has_branding_settings() const {
138  return Storage().isMember("brandingSettings");
139  }
140 
145  MutableStorage()->removeMember("brandingSettings");
146  }
147 
148 
153  const ChannelBrandingSettings get_branding_settings() const;
154 
164  ChannelBrandingSettings mutable_brandingSettings();
165 
171  bool has_content_details() const {
172  return Storage().isMember("contentDetails");
173  }
174 
179  MutableStorage()->removeMember("contentDetails");
180  }
181 
182 
187  const ChannelContentDetails get_content_details() const;
188 
198  ChannelContentDetails mutable_contentDetails();
199 
206  return Storage().isMember("contentOwnerDetails");
207  }
208 
213  MutableStorage()->removeMember("contentOwnerDetails");
214  }
215 
216 
221  const ChannelContentOwnerDetails get_content_owner_details() const;
222 
232  ChannelContentOwnerDetails mutable_contentOwnerDetails();
233 
239  bool has_conversion_pings() const {
240  return Storage().isMember("conversionPings");
241  }
242 
247  MutableStorage()->removeMember("conversionPings");
248  }
249 
250 
255  const ChannelConversionPings get_conversion_pings() const;
256 
266  ChannelConversionPings mutable_conversionPings();
267 
273  bool has_etag() const {
274  return Storage().isMember("etag");
275  }
276 
280  void clear_etag() {
281  MutableStorage()->removeMember("etag");
282  }
283 
284 
288  const StringPiece get_etag() const {
289  const Json::Value& v = Storage("etag");
290  if (v == Json::Value::null) return StringPiece("");
291  return StringPiece(v.asCString());
292  }
293 
301  void set_etag(const StringPiece& value) {
302  *MutableStorage("etag") = value.data();
303  }
304 
310  bool has_id() const {
311  return Storage().isMember("id");
312  }
313 
317  void clear_id() {
318  MutableStorage()->removeMember("id");
319  }
320 
321 
325  const StringPiece get_id() const {
326  const Json::Value& v = Storage("id");
327  if (v == Json::Value::null) return StringPiece("");
328  return StringPiece(v.asCString());
329  }
330 
338  void set_id(const StringPiece& value) {
339  *MutableStorage("id") = value.data();
340  }
341 
347  bool has_invideo_promotion() const {
348  return Storage().isMember("invideoPromotion");
349  }
350 
355  MutableStorage()->removeMember("invideoPromotion");
356  }
357 
358 
363  const InvideoPromotion get_invideo_promotion() const;
364 
374  InvideoPromotion mutable_invideoPromotion();
375 
381  bool has_kind() const {
382  return Storage().isMember("kind");
383  }
384 
388  void clear_kind() {
389  MutableStorage()->removeMember("kind");
390  }
391 
392 
396  const StringPiece get_kind() const {
397  const Json::Value& v = Storage("kind");
398  if (v == Json::Value::null) return StringPiece("");
399  return StringPiece(v.asCString());
400  }
401 
410  void set_kind(const StringPiece& value) {
411  *MutableStorage("kind") = value.data();
412  }
413 
419  bool has_localizations() const {
420  return Storage().isMember("localizations");
421  }
422 
427  MutableStorage()->removeMember("localizations");
428  }
429 
430 
434  const client::JsonCppAssociativeArray<ChannelLocalization > get_localizations() const;
435 
444  client::JsonCppAssociativeArray<ChannelLocalization > mutable_localizations();
445 
451  bool has_snippet() const {
452  return Storage().isMember("snippet");
453  }
454 
458  void clear_snippet() {
459  MutableStorage()->removeMember("snippet");
460  }
461 
462 
466  const ChannelSnippet get_snippet() const;
467 
476  ChannelSnippet mutable_snippet();
477 
483  bool has_statistics() const {
484  return Storage().isMember("statistics");
485  }
486 
491  MutableStorage()->removeMember("statistics");
492  }
493 
494 
498  const ChannelStatistics get_statistics() const;
499 
508  ChannelStatistics mutable_statistics();
509 
515  bool has_status() const {
516  return Storage().isMember("status");
517  }
518 
522  void clear_status() {
523  MutableStorage()->removeMember("status");
524  }
525 
526 
530  const ChannelStatus get_status() const;
531 
540  ChannelStatus mutable_status();
541 
547  bool has_topic_details() const {
548  return Storage().isMember("topicDetails");
549  }
550 
555  MutableStorage()->removeMember("topicDetails");
556  }
557 
558 
562  const ChannelTopicDetails get_topic_details() const;
563 
573  ChannelTopicDetails mutable_topicDetails();
574 
575  private:
576  void operator=(const Channel&);
577 }; // Channel
578 } // namespace google_youtube_api
579 #endif // GOOGLE_YOUTUBE_API_CHANNEL_H_
void clear_statistics()
Definition: channel.h:490
Definition: channel_content_details.h:50
void clear_kind()
Definition: channel.h:388
bool has_etag() const
Definition: channel.h:273
bool has_branding_settings() const
Definition: channel.h:137
Definition: access_policy.cc:40
bool has_topic_details() const
Definition: channel.h:547
const StringPiece get_kind() const
Definition: channel.h:396
bool has_invideo_promotion() const
Definition: channel.h:347
void clear_localizations()
Definition: channel.h:426
bool has_kind() const
Definition: channel.h:381
void set_kind(const StringPiece &value)
Definition: channel.h:410
Definition: channel.h:62
void set_etag(const StringPiece &value)
Definition: channel.h:301
void clear_branding_settings()
Definition: channel.h:144
void clear_content_owner_details()
Definition: channel.h:212
const StringPiece get_etag() const
Definition: channel.h:288
bool has_snippet() const
Definition: channel.h:451
Definition: channel_conversion_pings.h:52
Definition: invideo_promotion.h:54
void clear_content_details()
Definition: channel.h:178
Definition: channel_content_owner_details.h:52
Definition: channel_audit_details.h:50
void clear_etag()
Definition: channel.h:280
void clear_status()
Definition: channel.h:522
bool has_status() const
Definition: channel.h:515
bool has_content_owner_details() const
Definition: channel.h:205
void clear_audit_details()
Definition: channel.h:111
Definition: channel_snippet.h:54
Definition: channel_status.h:50
void clear_conversion_pings()
Definition: channel.h:246
bool has_localizations() const
Definition: channel.h:419
Definition: access_policy.h:38
Definition: channel_topic_details.h:50
void clear_invideo_promotion()
Definition: channel.h:354
void clear_snippet()
Definition: channel.h:458
bool has_conversion_pings() const
Definition: channel.h:239
Definition: channel_statistics.h:51
bool has_statistics() const
Definition: channel.h:483
bool has_content_details() const
Definition: channel.h:171
void clear_topic_details()
Definition: channel.h:554
bool has_id() const
Definition: channel.h:310
void set_id(const StringPiece &value)
Definition: channel.h:338
const StringPiece GetTypeName() const
Definition: channel.h:95
void clear_id()
Definition: channel.h:317
const StringPiece get_id() const
Definition: channel.h:325
Definition: channel_branding_settings.h:54
bool has_audit_details() const
Definition: channel.h:104