youtube  v3
invideo_branding.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_INVIDEO_BRANDING_H_
31 #define GOOGLE_YOUTUBE_API_INVIDEO_BRANDING_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/invideo_position.h"
39 #include "google/youtube_api/invideo_timing.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_youtube_api {
46 using namespace googleapis;
47 
53 class InvideoBranding : public client::JsonCppData {
54  public:
60  static InvideoBranding* New();
61 
67  explicit InvideoBranding(const Json::Value& storage);
68 
74  explicit InvideoBranding(Json::Value* storage);
75 
79  virtual ~InvideoBranding();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_youtube_api::InvideoBranding");
88  }
89 
95  bool has_image_bytes() const {
96  return Storage().isMember("imageBytes");
97  }
98 
103  MutableStorage()->removeMember("imageBytes");
104  }
105 
106 
110  const StringPiece get_image_bytes() const {
111  const Json::Value& v = Storage("imageBytes");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
120  void set_image_bytes(const StringPiece& value) {
121  *MutableStorage("imageBytes") = value.data();
122  }
123 
129  bool has_image_url() const {
130  return Storage().isMember("imageUrl");
131  }
132 
137  MutableStorage()->removeMember("imageUrl");
138  }
139 
140 
144  const StringPiece get_image_url() const {
145  const Json::Value& v = Storage("imageUrl");
146  if (v == Json::Value::null) return StringPiece("");
147  return StringPiece(v.asCString());
148  }
149 
154  void set_image_url(const StringPiece& value) {
155  *MutableStorage("imageUrl") = value.data();
156  }
157 
163  bool has_position() const {
164  return Storage().isMember("position");
165  }
166 
170  void clear_position() {
171  MutableStorage()->removeMember("position");
172  }
173 
174 
178  const InvideoPosition get_position() const;
179 
185  InvideoPosition mutable_position();
186 
192  bool has_target_channel_id() const {
193  return Storage().isMember("targetChannelId");
194  }
195 
200  MutableStorage()->removeMember("targetChannelId");
201  }
202 
203 
207  const StringPiece get_target_channel_id() const {
208  const Json::Value& v = Storage("targetChannelId");
209  if (v == Json::Value::null) return StringPiece("");
210  return StringPiece(v.asCString());
211  }
212 
217  void set_target_channel_id(const StringPiece& value) {
218  *MutableStorage("targetChannelId") = value.data();
219  }
220 
226  bool has_timing() const {
227  return Storage().isMember("timing");
228  }
229 
233  void clear_timing() {
234  MutableStorage()->removeMember("timing");
235  }
236 
237 
241  const InvideoTiming get_timing() const;
242 
247  InvideoTiming mutable_timing();
248 
249  private:
250  void operator=(const InvideoBranding&);
251 }; // InvideoBranding
252 } // namespace google_youtube_api
253 #endif // GOOGLE_YOUTUBE_API_INVIDEO_BRANDING_H_
Definition: invideo_timing.h:51
Definition: access_policy.cc:40
bool has_image_url() const
Definition: invideo_branding.h:129
void set_image_bytes(const StringPiece &value)
Definition: invideo_branding.h:120
void clear_image_bytes()
Definition: invideo_branding.h:102
Definition: invideo_branding.h:53
bool has_target_channel_id() const
Definition: invideo_branding.h:192
void set_image_url(const StringPiece &value)
Definition: invideo_branding.h:154
bool has_image_bytes() const
Definition: invideo_branding.h:95
void clear_position()
Definition: invideo_branding.h:170
Definition: invideo_position.h:51
const StringPiece get_image_bytes() const
Definition: invideo_branding.h:110
void clear_image_url()
Definition: invideo_branding.h:136
bool has_timing() const
Definition: invideo_branding.h:226
void clear_timing()
Definition: invideo_branding.h:233
void set_target_channel_id(const StringPiece &value)
Definition: invideo_branding.h:217
Definition: access_policy.h:38
const StringPiece get_target_channel_id() const
Definition: invideo_branding.h:207
const StringPiece get_image_url() const
Definition: invideo_branding.h:144
bool has_position() const
Definition: invideo_branding.h:163
void clear_target_channel_id()
Definition: invideo_branding.h:199
const StringPiece GetTypeName() const
Definition: invideo_branding.h:86