30 #ifndef GOOGLE_COMPUTE_API_ZONE_SET_LABELS_REQUEST_H_ 31 #define GOOGLE_COMPUTE_API_ZONE_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::ZoneSetLabelsRequest");
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());
125 *MutableStorage(
"labelFingerprint") = value.data();
134 return Storage().isMember(
"labels");
141 MutableStorage()->removeMember(
"labels");
148 const client::JsonCppAssociativeArray<string >
get_labels()
const {
149 const Json::Value& storage = Storage(
"labels");
150 return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
161 Json::Value* storage = MutableStorage(
"labels");
162 return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
169 #endif // GOOGLE_COMPUTE_API_ZONE_SET_LABELS_REQUEST_H_ void clear_label_fingerprint()
Definition: zone_set_labels_request.h:99
client::JsonCppAssociativeArray< string > mutable_labels()
Definition: zone_set_labels_request.h:160
bool has_label_fingerprint() const
Definition: zone_set_labels_request.h:92
Definition: zone_set_labels_request.h:50
const StringPiece GetTypeName() const
Definition: zone_set_labels_request.h:83
void clear_labels()
Definition: zone_set_labels_request.h:140
bool has_labels() const
Definition: zone_set_labels_request.h:133
const StringPiece get_label_fingerprint() const
Definition: zone_set_labels_request.h:107
Definition: accelerator_config.h:39
const client::JsonCppAssociativeArray< string > get_labels() const
Definition: zone_set_labels_request.h:148
Definition: accelerator_config.cc:41
void set_label_fingerprint(const StringPiece &value)
Definition: zone_set_labels_request.h:124