30 #ifndef GOOGLE_BIGQUERY_API_PROJECT_LIST_H_ 31 #define GOOGLE_BIGQUERY_API_PROJECT_LIST_H_ 34 #include "googleapis/base/integral_types.h" 35 #include "googleapis/base/macros.h" 36 #include "googleapis/client/data/jsoncpp_data.h" 37 #include "googleapis/strings/stringpiece.h" 39 #include "google/bigquery_api/project_reference.h" 94 return StringPiece(
"google_bigquery_api::ProjectListProjects");
103 return Storage().isMember(
"friendlyName");
110 MutableStorage()->removeMember(
"friendlyName");
118 const Json::Value& v = Storage(
"friendlyName");
119 if (v == Json::Value::null)
return StringPiece(
"");
120 return StringPiece(v.asCString());
131 *MutableStorage(
"friendlyName") = value.data();
140 return Storage().isMember(
"id");
147 MutableStorage()->removeMember(
"id");
155 const Json::Value& v = Storage(
"id");
156 if (v == Json::Value::null)
return StringPiece(
"");
157 return StringPiece(v.asCString());
168 *MutableStorage(
"id") = value.data();
177 return Storage().isMember(
"kind");
184 MutableStorage()->removeMember(
"kind");
192 const Json::Value& v = Storage(
"kind");
193 if (v == Json::Value::null)
return StringPiece(
"");
194 return StringPiece(v.asCString());
205 *MutableStorage(
"kind") = value.data();
214 return Storage().isMember(
"numericId");
221 MutableStorage()->removeMember(
"numericId");
229 const Json::Value& storage = Storage(
"numericId");
230 return client::JsonValueToCppValueHelper<uint64 >(storage);
241 client::SetJsonValueFromCppValueHelper<uint64 >(
242 value, MutableStorage(
"numericId"));
251 return Storage().isMember(
"projectReference");
258 MutableStorage()->removeMember(
"projectReference");
313 return StringPiece(
"google_bigquery_api::ProjectList");
322 return Storage().isMember(
"etag");
329 MutableStorage()->removeMember(
"etag");
337 const Json::Value& v = Storage(
"etag");
338 if (v == Json::Value::null)
return StringPiece(
"");
339 return StringPiece(v.asCString());
350 *MutableStorage(
"etag") = value.data();
359 return Storage().isMember(
"kind");
366 MutableStorage()->removeMember(
"kind");
374 const Json::Value& v = Storage(
"kind");
375 if (v == Json::Value::null)
return StringPiece(
"");
376 return StringPiece(v.asCString());
387 *MutableStorage(
"kind") = value.data();
396 return Storage().isMember(
"nextPageToken");
403 MutableStorage()->removeMember(
"nextPageToken");
411 const Json::Value& v = Storage(
"nextPageToken");
412 if (v == Json::Value::null)
return StringPiece(
"");
413 return StringPiece(v.asCString());
424 *MutableStorage(
"nextPageToken") = value.data();
433 return Storage().isMember(
"projects");
440 MutableStorage()->removeMember(
"projects");
447 const client::JsonCppArray<ProjectListProjects >
get_projects()
const {
448 const Json::Value& storage = Storage(
"projects");
449 return client::JsonValueToCppValueHelper<client::JsonCppArray<ProjectListProjects > >(storage);
461 Json::Value* storage = MutableStorage(
"projects");
462 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<ProjectListProjects > >(storage);
471 return Storage().isMember(
"totalItems");
478 MutableStorage()->removeMember(
"totalItems");
486 const Json::Value& storage = Storage(
"totalItems");
487 return client::JsonValueToCppValueHelper<int32 >(storage);
498 client::SetJsonValueFromCppValueHelper<int32 >(
499 value, MutableStorage(
"totalItems"));
506 #endif // GOOGLE_BIGQUERY_API_PROJECT_LIST_H_ void set_numeric_id(uint64 value)
Definition: project_list.h:240
bool has_etag() const
Definition: project_list.h:321
bool has_total_items() const
Definition: project_list.h:470
const StringPiece GetTypeName() const
Definition: project_list.h:312
bool has_project_reference() const
Definition: project_list.h:250
const StringPiece GetTypeName() const
Definition: project_list.h:93
const StringPiece get_kind() const
Definition: project_list.h:373
void set_kind(const StringPiece &value)
Definition: project_list.h:204
void clear_kind()
Definition: project_list.h:183
void set_kind(const StringPiece &value)
Definition: project_list.h:386
const StringPiece get_etag() const
Definition: project_list.h:336
void set_etag(const StringPiece &value)
Definition: project_list.h:349
const StringPiece get_kind() const
Definition: project_list.h:191
void set_next_page_token(const StringPiece &value)
Definition: project_list.h:423
void clear_project_reference()
Definition: project_list.h:257
Definition: aggregate_classification_metrics.cc:39
uint64 get_numeric_id() const
Definition: project_list.h:228
void clear_next_page_token()
Definition: project_list.h:402
Definition: project_list.h:53
void set_total_items(int32 value)
Definition: project_list.h:497
const client::JsonCppArray< ProjectListProjects > get_projects() const
Definition: project_list.h:447
const StringPiece get_next_page_token() const
Definition: project_list.h:410
client::JsonCppArray< ProjectListProjects > mutable_projects()
Definition: project_list.h:460
bool has_next_page_token() const
Definition: project_list.h:395
bool has_friendly_name() const
Definition: project_list.h:102
Definition: aggregate_classification_metrics.h:37
bool has_id() const
Definition: project_list.h:139
void set_friendly_name(const StringPiece &value)
Definition: project_list.h:130
bool has_kind() const
Definition: project_list.h:358
bool has_kind() const
Definition: project_list.h:176
Definition: project_reference.h:50
void clear_id()
Definition: project_list.h:146
bool has_projects() const
Definition: project_list.h:432
const StringPiece get_id() const
Definition: project_list.h:154
void clear_etag()
Definition: project_list.h:328
void clear_kind()
Definition: project_list.h:365
bool has_numeric_id() const
Definition: project_list.h:213
void clear_total_items()
Definition: project_list.h:477
void clear_friendly_name()
Definition: project_list.h:109
void clear_projects()
Definition: project_list.h:439
Definition: project_list.h:60
int32 get_total_items() const
Definition: project_list.h:485
void set_id(const StringPiece &value)
Definition: project_list.h:167
const StringPiece get_friendly_name() const
Definition: project_list.h:117
void clear_numeric_id()
Definition: project_list.h:220