youtube  v3
activity_content_details.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_ACTIVITY_CONTENT_DETAILS_H_
31 #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_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/activity_content_details_bulletin.h"
38 #include "google/youtube_api/activity_content_details_channel_item.h"
39 #include "google/youtube_api/activity_content_details_comment.h"
40 #include "google/youtube_api/activity_content_details_favorite.h"
41 #include "google/youtube_api/activity_content_details_like.h"
42 #include "google/youtube_api/activity_content_details_playlist_item.h"
43 #include "google/youtube_api/activity_content_details_promoted_item.h"
44 #include "google/youtube_api/activity_content_details_recommendation.h"
45 #include "google/youtube_api/activity_content_details_social.h"
46 #include "google/youtube_api/activity_content_details_subscription.h"
47 #include "google/youtube_api/activity_content_details_upload.h"
48 
49 namespace Json {
50 class Value;
51 } // namespace Json
52 
53 namespace google_youtube_api {
54 using namespace googleapis;
55 
62 class ActivityContentDetails : public client::JsonCppData {
63  public:
69  static ActivityContentDetails* New();
70 
76  explicit ActivityContentDetails(const Json::Value& storage);
77 
83  explicit ActivityContentDetails(Json::Value* storage);
84 
88  virtual ~ActivityContentDetails();
89 
95  const StringPiece GetTypeName() const {
96  return StringPiece("google_youtube_api::ActivityContentDetails");
97  }
98 
104  bool has_bulletin() const {
105  return Storage().isMember("bulletin");
106  }
107 
111  void clear_bulletin() {
112  MutableStorage()->removeMember("bulletin");
113  }
114 
115 
119  const ActivityContentDetailsBulletin get_bulletin() const;
120 
130  ActivityContentDetailsBulletin mutable_bulletin();
131 
137  bool has_channel_item() const {
138  return Storage().isMember("channelItem");
139  }
140 
145  MutableStorage()->removeMember("channelItem");
146  }
147 
148 
152  const ActivityContentDetailsChannelItem get_channel_item() const;
153 
164  ActivityContentDetailsChannelItem mutable_channelItem();
165 
171  bool has_comment() const {
172  return Storage().isMember("comment");
173  }
174 
178  void clear_comment() {
179  MutableStorage()->removeMember("comment");
180  }
181 
182 
186  const ActivityContentDetailsComment get_comment() const;
187 
196  ActivityContentDetailsComment mutable_comment();
197 
203  bool has_favorite() const {
204  return Storage().isMember("favorite");
205  }
206 
210  void clear_favorite() {
211  MutableStorage()->removeMember("favorite");
212  }
213 
214 
218  const ActivityContentDetailsFavorite get_favorite() const;
219 
230  ActivityContentDetailsFavorite mutable_favorite();
231 
237  bool has_like() const {
238  return Storage().isMember("like");
239  }
240 
244  void clear_like() {
245  MutableStorage()->removeMember("like");
246  }
247 
248 
252  const ActivityContentDetailsLike get_like() const;
253 
263  ActivityContentDetailsLike mutable_like();
264 
270  bool has_playlist_item() const {
271  return Storage().isMember("playlistItem");
272  }
273 
278  MutableStorage()->removeMember("playlistItem");
279  }
280 
281 
285  const ActivityContentDetailsPlaylistItem get_playlist_item() const;
286 
296  ActivityContentDetailsPlaylistItem mutable_playlistItem();
297 
303  bool has_promoted_item() const {
304  return Storage().isMember("promotedItem");
305  }
306 
311  MutableStorage()->removeMember("promotedItem");
312  }
313 
314 
318  const ActivityContentDetailsPromotedItem get_promoted_item() const;
319 
330  ActivityContentDetailsPromotedItem mutable_promotedItem();
331 
337  bool has_recommendation() const {
338  return Storage().isMember("recommendation");
339  }
340 
345  MutableStorage()->removeMember("recommendation");
346  }
347 
348 
353  const ActivityContentDetailsRecommendation get_recommendation() const;
354 
365  ActivityContentDetailsRecommendation mutable_recommendation();
366 
372  bool has_social() const {
373  return Storage().isMember("social");
374  }
375 
379  void clear_social() {
380  MutableStorage()->removeMember("social");
381  }
382 
383 
387  const ActivityContentDetailsSocial get_social() const;
388 
397  ActivityContentDetailsSocial mutable_social();
398 
404  bool has_subscription() const {
405  return Storage().isMember("subscription");
406  }
407 
412  MutableStorage()->removeMember("subscription");
413  }
414 
415 
419  const ActivityContentDetailsSubscription get_subscription() const;
420 
431  ActivityContentDetailsSubscription mutable_subscription();
432 
438  bool has_upload() const {
439  return Storage().isMember("upload");
440  }
441 
445  void clear_upload() {
446  MutableStorage()->removeMember("upload");
447  }
448 
449 
453  const ActivityContentDetailsUpload get_upload() const;
454 
463  ActivityContentDetailsUpload mutable_upload();
464 
465  private:
466  void operator=(const ActivityContentDetails&);
467 }; // ActivityContentDetails
468 } // namespace google_youtube_api
469 #endif // GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_H_
Definition: activity_content_details_like.h:51
bool has_comment() const
Definition: activity_content_details.h:171
Definition: access_policy.cc:40
Definition: activity_content_details.h:62
Definition: activity_content_details_upload.h:50
Definition: activity_content_details_bulletin.h:51
bool has_social() const
Definition: activity_content_details.h:372
const StringPiece GetTypeName() const
Definition: activity_content_details.h:95
Definition: activity_content_details_playlist_item.h:52
void clear_like()
Definition: activity_content_details.h:244
void clear_upload()
Definition: activity_content_details.h:445
Definition: activity_content_details_channel_item.h:51
bool has_recommendation() const
Definition: activity_content_details.h:337
bool has_upload() const
Definition: activity_content_details.h:438
bool has_subscription() const
Definition: activity_content_details.h:404
void clear_recommendation()
Definition: activity_content_details.h:344
void clear_channel_item()
Definition: activity_content_details.h:144
bool has_promoted_item() const
Definition: activity_content_details.h:303
bool has_bulletin() const
Definition: activity_content_details.h:104
bool has_playlist_item() const
Definition: activity_content_details.h:270
Definition: activity_content_details_social.h:52
void clear_bulletin()
Definition: activity_content_details.h:111
Definition: activity_content_details_promoted_item.h:50
void clear_comment()
Definition: activity_content_details.h:178
void clear_social()
Definition: activity_content_details.h:379
Definition: access_policy.h:38
void clear_subscription()
Definition: activity_content_details.h:411
Definition: activity_content_details_recommendation.h:52
void clear_promoted_item()
Definition: activity_content_details.h:310
Definition: activity_content_details_favorite.h:51
bool has_like() const
Definition: activity_content_details.h:237
void clear_favorite()
Definition: activity_content_details.h:210
bool has_channel_item() const
Definition: activity_content_details.h:137
Definition: activity_content_details_subscription.h:51
void clear_playlist_item()
Definition: activity_content_details.h:277
bool has_favorite() const
Definition: activity_content_details.h:203
Definition: activity_content_details_comment.h:51