30 #ifndef GOOGLE_COMPUTE_API_GLOBAL_SET_LABELS_REQUEST_H_ 31 #define GOOGLE_COMPUTE_API_GLOBAL_SET_LABELS_REQUEST_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_compute_api::GlobalSetLabelsRequest");
93 return Storage().isMember(
"labelFingerprint");
100 MutableStorage()->removeMember(
"labelFingerprint");
108 const Json::Value& v = Storage(
"labelFingerprint");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
126 *MutableStorage(
"labelFingerprint") = value.data();
135 return Storage().isMember(
"labels");
142 MutableStorage()->removeMember(
"labels");
149 const client::JsonCppAssociativeArray<string >
get_labels()
const {
150 const Json::Value& storage = Storage(
"labels");
151 return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
168 Json::Value* storage = MutableStorage(
"labels");
169 return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
176 #endif // GOOGLE_COMPUTE_API_GLOBAL_SET_LABELS_REQUEST_H_ bool has_label_fingerprint() const
Definition: global_set_labels_request.h:92
void set_label_fingerprint(const StringPiece &value)
Definition: global_set_labels_request.h:125
const client::JsonCppAssociativeArray< string > get_labels() const
Definition: global_set_labels_request.h:149
void clear_labels()
Definition: global_set_labels_request.h:141
void clear_label_fingerprint()
Definition: global_set_labels_request.h:99
Definition: global_set_labels_request.h:50
Definition: accelerator_config.h:39
const StringPiece GetTypeName() const
Definition: global_set_labels_request.h:83
const StringPiece get_label_fingerprint() const
Definition: global_set_labels_request.h:107
bool has_labels() const
Definition: global_set_labels_request.h:134
Definition: accelerator_config.cc:41
client::JsonCppAssociativeArray< string > mutable_labels()
Definition: global_set_labels_request.h:167