youtube  v3
cdn_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_CDN_SETTINGS_H_
31 #define GOOGLE_YOUTUBE_API_CDN_SETTINGS_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/ingestion_info.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_youtube_api {
45 using namespace googleapis;
46 
52 class CdnSettings : public client::JsonCppData {
53  public:
59  static CdnSettings* New();
60 
66  explicit CdnSettings(const Json::Value& storage);
67 
73  explicit CdnSettings(Json::Value* storage);
74 
78  virtual ~CdnSettings();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_youtube_api::CdnSettings");
87  }
88 
94  bool has_format() const {
95  return Storage().isMember("format");
96  }
97 
101  void clear_format() {
102  MutableStorage()->removeMember("format");
103  }
104 
105 
109  const StringPiece get_format() const {
110  const Json::Value& v = Storage("format");
111  if (v == Json::Value::null) return StringPiece("");
112  return StringPiece(v.asCString());
113  }
114 
122  void set_format(const StringPiece& value) {
123  *MutableStorage("format") = value.data();
124  }
125 
131  bool has_frame_rate() const {
132  return Storage().isMember("frameRate");
133  }
134 
139  MutableStorage()->removeMember("frameRate");
140  }
141 
142 
146  const StringPiece get_frame_rate() const {
147  const Json::Value& v = Storage("frameRate");
148  if (v == Json::Value::null) return StringPiece("");
149  return StringPiece(v.asCString());
150  }
151 
159  void set_frame_rate(const StringPiece& value) {
160  *MutableStorage("frameRate") = value.data();
161  }
162 
168  bool has_ingestion_info() const {
169  return Storage().isMember("ingestionInfo");
170  }
171 
176  MutableStorage()->removeMember("ingestionInfo");
177  }
178 
179 
183  const IngestionInfo get_ingestion_info() const;
184 
194  IngestionInfo mutable_ingestionInfo();
195 
201  bool has_ingestion_type() const {
202  return Storage().isMember("ingestionType");
203  }
204 
209  MutableStorage()->removeMember("ingestionType");
210  }
211 
212 
216  const StringPiece get_ingestion_type() const {
217  const Json::Value& v = Storage("ingestionType");
218  if (v == Json::Value::null) return StringPiece("");
219  return StringPiece(v.asCString());
220  }
221 
229  void set_ingestion_type(const StringPiece& value) {
230  *MutableStorage("ingestionType") = value.data();
231  }
232 
238  bool has_resolution() const {
239  return Storage().isMember("resolution");
240  }
241 
246  MutableStorage()->removeMember("resolution");
247  }
248 
249 
253  const StringPiece get_resolution() const {
254  const Json::Value& v = Storage("resolution");
255  if (v == Json::Value::null) return StringPiece("");
256  return StringPiece(v.asCString());
257  }
258 
266  void set_resolution(const StringPiece& value) {
267  *MutableStorage("resolution") = value.data();
268  }
269 
270  private:
271  void operator=(const CdnSettings&);
272 }; // CdnSettings
273 } // namespace google_youtube_api
274 #endif // GOOGLE_YOUTUBE_API_CDN_SETTINGS_H_
bool has_resolution() const
Definition: cdn_settings.h:238
Definition: access_policy.cc:40
bool has_ingestion_type() const
Definition: cdn_settings.h:201
void set_resolution(const StringPiece &value)
Definition: cdn_settings.h:266
void clear_ingestion_info()
Definition: cdn_settings.h:175
const StringPiece GetTypeName() const
Definition: cdn_settings.h:85
void set_format(const StringPiece &value)
Definition: cdn_settings.h:122
const StringPiece get_frame_rate() const
Definition: cdn_settings.h:146
Definition: cdn_settings.h:52
const StringPiece get_resolution() const
Definition: cdn_settings.h:253
void clear_frame_rate()
Definition: cdn_settings.h:138
void set_ingestion_type(const StringPiece &value)
Definition: cdn_settings.h:229
void clear_resolution()
Definition: cdn_settings.h:245
Definition: access_policy.h:38
const StringPiece get_format() const
Definition: cdn_settings.h:109
void clear_format()
Definition: cdn_settings.h:101
Definition: ingestion_info.h:50
bool has_ingestion_info() const
Definition: cdn_settings.h:168
bool has_format() const
Definition: cdn_settings.h:94
bool has_frame_rate() const
Definition: cdn_settings.h:131
void set_frame_rate(const StringPiece &value)
Definition: cdn_settings.h:159
void clear_ingestion_type()
Definition: cdn_settings.h:208
const StringPiece get_ingestion_type() const
Definition: cdn_settings.h:216