youtube  v3
channel_branding_settings.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_BRANDING_SETTINGS_H_
31 #define GOOGLE_YOUTUBE_API_CHANNEL_BRANDING_SETTINGS_H_
32 
33 #include "googleapis/base/macros.h"
34 #include "googleapis/client/data/jsoncpp_data.h"
35 #include "googleapis/strings/stringpiece.h"
36 
37 #include "google/youtube_api/channel_settings.h"
38 #include "google/youtube_api/image_settings.h"
39 #include "google/youtube_api/property_value.h"
40 #include "google/youtube_api/watch_settings.h"
41 
42 namespace Json {
43 class Value;
44 } // namespace Json
45 
46 namespace google_youtube_api {
47 using namespace googleapis;
48 
54 class ChannelBrandingSettings : public client::JsonCppData {
55  public:
61  static ChannelBrandingSettings* New();
62 
68  explicit ChannelBrandingSettings(const Json::Value& storage);
69 
75  explicit ChannelBrandingSettings(Json::Value* storage);
76 
80  virtual ~ChannelBrandingSettings();
81 
87  const StringPiece GetTypeName() const {
88  return StringPiece("google_youtube_api::ChannelBrandingSettings");
89  }
90 
96  bool has_channel() const {
97  return Storage().isMember("channel");
98  }
99 
103  void clear_channel() {
104  MutableStorage()->removeMember("channel");
105  }
106 
107 
111  const ChannelSettings get_channel() const;
112 
120  ChannelSettings mutable_channel();
121 
127  bool has_hints() const {
128  return Storage().isMember("hints");
129  }
130 
134  void clear_hints() {
135  MutableStorage()->removeMember("hints");
136  }
137 
138 
142  const client::JsonCppArray<PropertyValue > get_hints() const;
143 
151  client::JsonCppArray<PropertyValue > mutable_hints();
152 
158  bool has_image() const {
159  return Storage().isMember("image");
160  }
161 
165  void clear_image() {
166  MutableStorage()->removeMember("image");
167  }
168 
169 
173  const ImageSettings get_image() const;
174 
182  ImageSettings mutable_image();
183 
189  bool has_watch() const {
190  return Storage().isMember("watch");
191  }
192 
196  void clear_watch() {
197  MutableStorage()->removeMember("watch");
198  }
199 
200 
204  const WatchSettings get_watch() const;
205 
213  WatchSettings mutable_watch();
214 
215  private:
216  void operator=(const ChannelBrandingSettings&);
217 }; // ChannelBrandingSettings
218 } // namespace google_youtube_api
219 #endif // GOOGLE_YOUTUBE_API_CHANNEL_BRANDING_SETTINGS_H_
void clear_hints()
Definition: channel_branding_settings.h:134
Definition: access_policy.cc:40
void clear_channel()
Definition: channel_branding_settings.h:103
void clear_watch()
Definition: channel_branding_settings.h:196
void clear_image()
Definition: channel_branding_settings.h:165
Definition: channel_settings.h:50
Definition: image_settings.h:52
bool has_hints() const
Definition: channel_branding_settings.h:127
const StringPiece GetTypeName() const
Definition: channel_branding_settings.h:87
bool has_channel() const
Definition: channel_branding_settings.h:96
Definition: access_policy.h:38
bool has_image() const
Definition: channel_branding_settings.h:158
bool has_watch() const
Definition: channel_branding_settings.h:189
Definition: watch_settings.h:50
Definition: channel_branding_settings.h:54