youtube  v3
ingestion_info.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_INGESTION_INFO_H_
31 #define GOOGLE_YOUTUBE_API_INGESTION_INFO_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 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_youtube_api {
43 using namespace googleapis;
44 
50 class IngestionInfo : public client::JsonCppData {
51  public:
57  static IngestionInfo* New();
58 
64  explicit IngestionInfo(const Json::Value& storage);
65 
71  explicit IngestionInfo(Json::Value* storage);
72 
76  virtual ~IngestionInfo();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_youtube_api::IngestionInfo");
85  }
86 
94  return Storage().isMember("backupIngestionAddress");
95  }
96 
101  MutableStorage()->removeMember("backupIngestionAddress");
102  }
103 
104 
108  const StringPiece get_backup_ingestion_address() const {
109  const Json::Value& v = Storage("backupIngestionAddress");
110  if (v == Json::Value::null) return StringPiece("");
111  return StringPiece(v.asCString());
112  }
113 
123  void set_backup_ingestion_address(const StringPiece& value) {
124  *MutableStorage("backupIngestionAddress") = value.data();
125  }
126 
132  bool has_ingestion_address() const {
133  return Storage().isMember("ingestionAddress");
134  }
135 
140  MutableStorage()->removeMember("ingestionAddress");
141  }
142 
143 
147  const StringPiece get_ingestion_address() const {
148  const Json::Value& v = Storage("ingestionAddress");
149  if (v == Json::Value::null) return StringPiece("");
150  return StringPiece(v.asCString());
151  }
152 
167  void set_ingestion_address(const StringPiece& value) {
168  *MutableStorage("ingestionAddress") = value.data();
169  }
170 
176  bool has_stream_name() const {
177  return Storage().isMember("streamName");
178  }
179 
184  MutableStorage()->removeMember("streamName");
185  }
186 
187 
191  const StringPiece get_stream_name() const {
192  const Json::Value& v = Storage("streamName");
193  if (v == Json::Value::null) return StringPiece("");
194  return StringPiece(v.asCString());
195  }
196 
204  void set_stream_name(const StringPiece& value) {
205  *MutableStorage("streamName") = value.data();
206  }
207 
208  private:
209  void operator=(const IngestionInfo&);
210 }; // IngestionInfo
211 } // namespace google_youtube_api
212 #endif // GOOGLE_YOUTUBE_API_INGESTION_INFO_H_
void set_stream_name(const StringPiece &value)
Definition: ingestion_info.h:204
Definition: access_policy.cc:40
bool has_backup_ingestion_address() const
Definition: ingestion_info.h:93
void clear_backup_ingestion_address()
Definition: ingestion_info.h:100
bool has_stream_name() const
Definition: ingestion_info.h:176
const StringPiece GetTypeName() const
Definition: ingestion_info.h:83
bool has_ingestion_address() const
Definition: ingestion_info.h:132
Definition: access_policy.h:38
void set_ingestion_address(const StringPiece &value)
Definition: ingestion_info.h:167
Definition: ingestion_info.h:50
const StringPiece get_backup_ingestion_address() const
Definition: ingestion_info.h:108
void clear_ingestion_address()
Definition: ingestion_info.h:139
const StringPiece get_ingestion_address() const
Definition: ingestion_info.h:147
const StringPiece get_stream_name() const
Definition: ingestion_info.h:191
void set_backup_ingestion_address(const StringPiece &value)
Definition: ingestion_info.h:123
void clear_stream_name()
Definition: ingestion_info.h:183