30 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_LIST_RESPONSE_H_ 31 #define GOOGLE_YOUTUBE_API_CHANNEL_LIST_RESPONSE_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/youtube_api/channel.h" 39 #include "google/youtube_api/page_info.h" 40 #include "google/youtube_api/token_pagination.h" 88 return StringPiece(
"google_youtube_api::ChannelListResponse");
97 return Storage().isMember(
"etag");
104 MutableStorage()->removeMember(
"etag");
112 const Json::Value& v = Storage(
"etag");
113 if (v == Json::Value::null)
return StringPiece(
"");
114 return StringPiece(v.asCString());
125 *MutableStorage(
"etag") = value.data();
134 return Storage().isMember(
"eventId");
141 MutableStorage()->removeMember(
"eventId");
149 const Json::Value& v = Storage(
"eventId");
150 if (v == Json::Value::null)
return StringPiece(
"");
151 return StringPiece(v.asCString());
162 *MutableStorage(
"eventId") = value.data();
171 return Storage().isMember(
"items");
178 MutableStorage()->removeMember(
"items");
185 const client::JsonCppArray<Channel > get_items()
const;
194 client::JsonCppArray<Channel > mutable_items();
202 return Storage().isMember(
"kind");
209 MutableStorage()->removeMember(
"kind");
217 const Json::Value& v = Storage(
"kind");
218 if (v == Json::Value::null)
return StringPiece(
"");
219 return StringPiece(v.asCString());
231 *MutableStorage(
"kind") = value.data();
240 return Storage().isMember(
"nextPageToken");
247 MutableStorage()->removeMember(
"nextPageToken");
255 const Json::Value& v = Storage(
"nextPageToken");
256 if (v == Json::Value::null)
return StringPiece(
"");
257 return StringPiece(v.asCString());
269 *MutableStorage(
"nextPageToken") = value.data();
278 return Storage().isMember(
"pageInfo");
285 MutableStorage()->removeMember(
"pageInfo");
292 const PageInfo get_page_info()
const;
307 return Storage().isMember(
"prevPageToken");
314 MutableStorage()->removeMember(
"prevPageToken");
322 const Json::Value& v = Storage(
"prevPageToken");
323 if (v == Json::Value::null)
return StringPiece(
"");
324 return StringPiece(v.asCString());
336 *MutableStorage(
"prevPageToken") = value.data();
345 return Storage().isMember(
"tokenPagination");
352 MutableStorage()->removeMember(
"tokenPagination");
375 return Storage().isMember(
"visitorId");
382 MutableStorage()->removeMember(
"visitorId");
390 const Json::Value& v = Storage(
"visitorId");
391 if (v == Json::Value::null)
return StringPiece(
"");
392 return StringPiece(v.asCString());
403 *MutableStorage(
"visitorId") = value.data();
410 #endif // GOOGLE_YOUTUBE_API_CHANNEL_LIST_RESPONSE_H_ bool has_visitor_id() const
Definition: channel_list_response.h:374
Definition: access_policy.cc:40
bool has_token_pagination() const
Definition: channel_list_response.h:344
void clear_visitor_id()
Definition: channel_list_response.h:381
void set_next_page_token(const StringPiece &value)
Definition: channel_list_response.h:268
void clear_next_page_token()
Definition: channel_list_response.h:246
bool has_prev_page_token() const
Definition: channel_list_response.h:306
void clear_token_pagination()
Definition: channel_list_response.h:351
bool has_etag() const
Definition: channel_list_response.h:96
void clear_etag()
Definition: channel_list_response.h:103
void set_etag(const StringPiece &value)
Definition: channel_list_response.h:124
const StringPiece get_visitor_id() const
Definition: channel_list_response.h:389
const StringPiece get_event_id() const
Definition: channel_list_response.h:148
void clear_items()
Definition: channel_list_response.h:177
bool has_kind() const
Definition: channel_list_response.h:201
void set_prev_page_token(const StringPiece &value)
Definition: channel_list_response.h:335
bool has_page_info() const
Definition: channel_list_response.h:277
Definition: access_policy.h:38
const StringPiece get_prev_page_token() const
Definition: channel_list_response.h:321
const StringPiece GetTypeName() const
Definition: channel_list_response.h:87
bool has_next_page_token() const
Definition: channel_list_response.h:239
Definition: channel_list_response.h:54
void clear_kind()
Definition: channel_list_response.h:208
Definition: page_info.h:51
void clear_prev_page_token()
Definition: channel_list_response.h:313
void set_event_id(const StringPiece &value)
Definition: channel_list_response.h:161
bool has_items() const
Definition: channel_list_response.h:170
void set_visitor_id(const StringPiece &value)
Definition: channel_list_response.h:402
const StringPiece get_etag() const
Definition: channel_list_response.h:111
void clear_event_id()
Definition: channel_list_response.h:140
bool has_event_id() const
Definition: channel_list_response.h:133
void set_kind(const StringPiece &value)
Definition: channel_list_response.h:230
const StringPiece get_kind() const
Definition: channel_list_response.h:216
void clear_page_info()
Definition: channel_list_response.h:284
const StringPiece get_next_page_token() const
Definition: channel_list_response.h:254