30 #ifndef GOOGLE_COMPUTE_API_OPERATION_AGGREGATED_LIST_H_ 31 #define GOOGLE_COMPUTE_API_OPERATION_AGGREGATED_LIST_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/compute_api/operations_scoped_list.h" 101 return StringPiece(
"google_compute_api::OperationAggregatedListWarningData");
110 return Storage().isMember(
"key");
117 MutableStorage()->removeMember(
"key");
125 const Json::Value& v = Storage(
"key");
126 if (v == Json::Value::null)
return StringPiece(
"");
127 return StringPiece(v.asCString());
144 *MutableStorage(
"key") = value.data();
153 return Storage().isMember(
"value");
160 MutableStorage()->removeMember(
"value");
168 const Json::Value& v = Storage(
"value");
169 if (v == Json::Value::null)
return StringPiece(
"");
170 return StringPiece(v.asCString());
181 *MutableStorage(
"value") = value.data();
219 return StringPiece(
"google_compute_api::OperationAggregatedListWarning");
228 return Storage().isMember(
"code");
235 MutableStorage()->removeMember(
"code");
243 const Json::Value& v = Storage(
"code");
244 if (v == Json::Value::null)
return StringPiece(
"");
245 return StringPiece(v.asCString());
257 *MutableStorage(
"code") = value.data();
266 return Storage().isMember(
"data");
273 MutableStorage()->removeMember(
"data");
280 const client::JsonCppArray<OperationAggregatedListWarningData >
get_data()
const {
281 const Json::Value& storage = Storage(
"data");
282 return client::JsonValueToCppValueHelper<client::JsonCppArray<OperationAggregatedListWarningData > >(storage);
294 client::JsonCppArray<OperationAggregatedListWarningData >
mutable_data() {
295 Json::Value* storage = MutableStorage(
"data");
296 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<OperationAggregatedListWarningData > >(storage);
305 return Storage().isMember(
"message");
312 MutableStorage()->removeMember(
"message");
320 const Json::Value& v = Storage(
"message");
321 if (v == Json::Value::null)
return StringPiece(
"");
322 return StringPiece(v.asCString());
333 *MutableStorage(
"message") = value.data();
371 return StringPiece(
"google_compute_api::OperationAggregatedList");
380 return Storage().isMember(
"id");
387 MutableStorage()->removeMember(
"id");
395 const Json::Value& v = Storage(
"id");
396 if (v == Json::Value::null)
return StringPiece(
"");
397 return StringPiece(v.asCString());
409 *MutableStorage(
"id") = value.data();
418 return Storage().isMember(
"items");
425 MutableStorage()->removeMember(
"items");
432 const client::JsonCppAssociativeArray<OperationsScopedList > get_items()
const;
441 client::JsonCppAssociativeArray<OperationsScopedList > mutable_items();
449 return Storage().isMember(
"kind");
456 MutableStorage()->removeMember(
"kind");
464 const Json::Value& v = Storage(
"kind");
465 if (v == Json::Value::null)
return StringPiece(
"");
466 return StringPiece(v.asCString());
478 *MutableStorage(
"kind") = value.data();
487 return Storage().isMember(
"nextPageToken");
494 MutableStorage()->removeMember(
"nextPageToken");
502 const Json::Value& v = Storage(
"nextPageToken");
503 if (v == Json::Value::null)
return StringPiece(
"");
504 return StringPiece(v.asCString());
519 *MutableStorage(
"nextPageToken") = value.data();
528 return Storage().isMember(
"selfLink");
535 MutableStorage()->removeMember(
"selfLink");
543 const Json::Value& v = Storage(
"selfLink");
544 if (v == Json::Value::null)
return StringPiece(
"");
545 return StringPiece(v.asCString());
556 *MutableStorage(
"selfLink") = value.data();
565 return Storage().isMember(
"warning");
572 MutableStorage()->removeMember(
"warning");
580 const Json::Value& storage = Storage(
"warning");
581 return client::JsonValueToCppValueHelper<OperationAggregatedListWarning >(storage);
592 Json::Value* storage = MutableStorage(
"warning");
593 return client::JsonValueToMutableCppValueHelper<OperationAggregatedListWarning >(storage);
600 #endif // GOOGLE_COMPUTE_API_OPERATION_AGGREGATED_LIST_H_ bool has_value() const
Definition: operation_aggregated_list.h:152
bool has_kind() const
Definition: operation_aggregated_list.h:448
void clear_kind()
Definition: operation_aggregated_list.h:455
bool has_message() const
Definition: operation_aggregated_list.h:304
void set_self_link(const StringPiece &value)
Definition: operation_aggregated_list.h:555
const StringPiece get_id() const
Definition: operation_aggregated_list.h:394
void set_next_page_token(const StringPiece &value)
Definition: operation_aggregated_list.h:518
void clear_value()
Definition: operation_aggregated_list.h:159
void clear_next_page_token()
Definition: operation_aggregated_list.h:493
const StringPiece GetTypeName() const
Definition: operation_aggregated_list.h:370
Definition: operation_aggregated_list.h:52
const StringPiece GetTypeName() const
Definition: operation_aggregated_list.h:218
void clear_id()
Definition: operation_aggregated_list.h:386
void set_value(const StringPiece &value)
Definition: operation_aggregated_list.h:180
Definition: operation_aggregated_list.h:59
bool has_data() const
Definition: operation_aggregated_list.h:265
void set_id(const StringPiece &value)
Definition: operation_aggregated_list.h:408
const StringPiece get_next_page_token() const
Definition: operation_aggregated_list.h:501
void clear_items()
Definition: operation_aggregated_list.h:424
Definition: operation_aggregated_list.h:66
void set_message(const StringPiece &value)
Definition: operation_aggregated_list.h:332
const StringPiece get_code() const
Definition: operation_aggregated_list.h:242
void set_kind(const StringPiece &value)
Definition: operation_aggregated_list.h:477
const StringPiece get_value() const
Definition: operation_aggregated_list.h:167
Definition: accelerator_config.h:39
void clear_message()
Definition: operation_aggregated_list.h:311
const client::JsonCppArray< OperationAggregatedListWarningData > get_data() const
Definition: operation_aggregated_list.h:280
void clear_code()
Definition: operation_aggregated_list.h:234
bool has_key() const
Definition: operation_aggregated_list.h:109
bool has_code() const
Definition: operation_aggregated_list.h:227
const OperationAggregatedListWarning get_warning() const
Definition: operation_aggregated_list.h:579
Definition: accelerator_config.cc:41
bool has_next_page_token() const
Definition: operation_aggregated_list.h:486
void set_code(const StringPiece &value)
Definition: operation_aggregated_list.h:256
void clear_warning()
Definition: operation_aggregated_list.h:571
const StringPiece get_key() const
Definition: operation_aggregated_list.h:124
void clear_data()
Definition: operation_aggregated_list.h:272
const StringPiece GetTypeName() const
Definition: operation_aggregated_list.h:100
void set_key(const StringPiece &value)
Definition: operation_aggregated_list.h:143
void clear_self_link()
Definition: operation_aggregated_list.h:534
const StringPiece get_kind() const
Definition: operation_aggregated_list.h:463
bool has_items() const
Definition: operation_aggregated_list.h:417
OperationAggregatedListWarning mutable_warning()
Definition: operation_aggregated_list.h:591
const StringPiece get_message() const
Definition: operation_aggregated_list.h:319
client::JsonCppArray< OperationAggregatedListWarningData > mutable_data()
Definition: operation_aggregated_list.h:294
const StringPiece get_self_link() const
Definition: operation_aggregated_list.h:542
bool has_self_link() const
Definition: operation_aggregated_list.h:527
bool has_warning() const
Definition: operation_aggregated_list.h:564
bool has_id() const
Definition: operation_aggregated_list.h:379
void clear_key()
Definition: operation_aggregated_list.h:116