youtube  v3
video_suggestions.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_VIDEO_SUGGESTIONS_H_
31 #define GOOGLE_YOUTUBE_API_VIDEO_SUGGESTIONS_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/video_suggestions_tag_suggestion.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_youtube_api {
45 using namespace googleapis;
46 
53 class VideoSuggestions : public client::JsonCppData {
54  public:
60  static VideoSuggestions* New();
61 
67  explicit VideoSuggestions(const Json::Value& storage);
68 
74  explicit VideoSuggestions(Json::Value* storage);
75 
79  virtual ~VideoSuggestions();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_youtube_api::VideoSuggestions");
88  }
89 
95  bool has_editor_suggestions() const {
96  return Storage().isMember("editorSuggestions");
97  }
98 
103  MutableStorage()->removeMember("editorSuggestions");
104  }
105 
106 
111  const client::JsonCppArray<string > get_editor_suggestions() const {
112  const Json::Value& storage = Storage("editorSuggestions");
113  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
114  }
115 
125  client::JsonCppArray<string > mutable_editorSuggestions() {
126  Json::Value* storage = MutableStorage("editorSuggestions");
127  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
128  }
129 
135  bool has_processing_errors() const {
136  return Storage().isMember("processingErrors");
137  }
138 
143  MutableStorage()->removeMember("processingErrors");
144  }
145 
146 
151  const client::JsonCppArray<string > get_processing_errors() const {
152  const Json::Value& storage = Storage("processingErrors");
153  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
154  }
155 
167  client::JsonCppArray<string > mutable_processingErrors() {
168  Json::Value* storage = MutableStorage("processingErrors");
169  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
170  }
171 
177  bool has_processing_hints() const {
178  return Storage().isMember("processingHints");
179  }
180 
185  MutableStorage()->removeMember("processingHints");
186  }
187 
188 
193  const client::JsonCppArray<string > get_processing_hints() const {
194  const Json::Value& storage = Storage("processingHints");
195  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
196  }
197 
207  client::JsonCppArray<string > mutable_processingHints() {
208  Json::Value* storage = MutableStorage("processingHints");
209  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
210  }
211 
217  bool has_processing_warnings() const {
218  return Storage().isMember("processingWarnings");
219  }
220 
225  MutableStorage()->removeMember("processingWarnings");
226  }
227 
228 
233  const client::JsonCppArray<string > get_processing_warnings() const {
234  const Json::Value& storage = Storage("processingWarnings");
235  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
236  }
237 
251  client::JsonCppArray<string > mutable_processingWarnings() {
252  Json::Value* storage = MutableStorage("processingWarnings");
253  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
254  }
255 
261  bool has_tag_suggestions() const {
262  return Storage().isMember("tagSuggestions");
263  }
264 
269  MutableStorage()->removeMember("tagSuggestions");
270  }
271 
272 
277  const client::JsonCppArray<VideoSuggestionsTagSuggestion > get_tag_suggestions() const;
278 
289  client::JsonCppArray<VideoSuggestionsTagSuggestion > mutable_tagSuggestions();
290 
291  private:
292  void operator=(const VideoSuggestions&);
293 }; // VideoSuggestions
294 } // namespace google_youtube_api
295 #endif // GOOGLE_YOUTUBE_API_VIDEO_SUGGESTIONS_H_
bool has_tag_suggestions() const
Definition: video_suggestions.h:261
Definition: access_policy.cc:40
client::JsonCppArray< string > mutable_editorSuggestions()
Definition: video_suggestions.h:125
void clear_processing_errors()
Definition: video_suggestions.h:142
bool has_processing_warnings() const
Definition: video_suggestions.h:217
void clear_tag_suggestions()
Definition: video_suggestions.h:268
const client::JsonCppArray< string > get_editor_suggestions() const
Definition: video_suggestions.h:111
client::JsonCppArray< string > mutable_processingHints()
Definition: video_suggestions.h:207
bool has_editor_suggestions() const
Definition: video_suggestions.h:95
void clear_processing_hints()
Definition: video_suggestions.h:184
const client::JsonCppArray< string > get_processing_errors() const
Definition: video_suggestions.h:151
const client::JsonCppArray< string > get_processing_hints() const
Definition: video_suggestions.h:193
void clear_editor_suggestions()
Definition: video_suggestions.h:102
Definition: access_policy.h:38
bool has_processing_hints() const
Definition: video_suggestions.h:177
Definition: video_suggestions.h:53
bool has_processing_errors() const
Definition: video_suggestions.h:135
const StringPiece GetTypeName() const
Definition: video_suggestions.h:86
client::JsonCppArray< string > mutable_processingWarnings()
Definition: video_suggestions.h:251
const client::JsonCppArray< string > get_processing_warnings() const
Definition: video_suggestions.h:233
client::JsonCppArray< string > mutable_processingErrors()
Definition: video_suggestions.h:167
void clear_processing_warnings()
Definition: video_suggestions.h:224