30 #ifndef GOOGLE_CONTAINER_API_SET_LOCATIONS_REQUEST_H_ 31 #define GOOGLE_CONTAINER_API_SET_LOCATIONS_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_container_api::SetLocationsRequest");
93 return Storage().isMember(
"clusterId");
100 MutableStorage()->removeMember(
"clusterId");
108 const Json::Value& v = Storage(
"clusterId");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
124 *MutableStorage(
"clusterId") = value.data();
133 return Storage().isMember(
"locations");
140 MutableStorage()->removeMember(
"locations");
148 const Json::Value& storage = Storage(
"locations");
149 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
167 Json::Value* storage = MutableStorage(
"locations");
168 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
177 return Storage().isMember(
"name");
184 MutableStorage()->removeMember(
"name");
192 const Json::Value& v = Storage(
"name");
193 if (v == Json::Value::null)
return StringPiece(
"");
194 return StringPiece(v.asCString());
206 *MutableStorage(
"name") = value.data();
215 return Storage().isMember(
"projectId");
222 MutableStorage()->removeMember(
"projectId");
230 const Json::Value& v = Storage(
"projectId");
231 if (v == Json::Value::null)
return StringPiece(
"");
232 return StringPiece(v.asCString());
247 *MutableStorage(
"projectId") = value.data();
256 return Storage().isMember(
"zone");
263 MutableStorage()->removeMember(
"zone");
271 const Json::Value& v = Storage(
"zone");
272 if (v == Json::Value::null)
return StringPiece(
"");
273 return StringPiece(v.asCString());
289 *MutableStorage(
"zone") = value.data();
296 #endif // GOOGLE_CONTAINER_API_SET_LOCATIONS_REQUEST_H_ bool has_locations() const
Definition: set_locations_request.h:132
const StringPiece get_name() const
Definition: set_locations_request.h:191
bool has_zone() const
Definition: set_locations_request.h:255
const client::JsonCppArray< string > get_locations() const
Definition: set_locations_request.h:147
void set_cluster_id(const StringPiece &value)
Definition: set_locations_request.h:123
void clear_name()
Definition: set_locations_request.h:183
void clear_zone()
Definition: set_locations_request.h:262
const StringPiece get_cluster_id() const
Definition: set_locations_request.h:107
const StringPiece get_zone() const
Definition: set_locations_request.h:270
bool has_name() const
Definition: set_locations_request.h:176
const StringPiece get_project_id() const
Definition: set_locations_request.h:229
void clear_cluster_id()
Definition: set_locations_request.h:99
bool has_cluster_id() const
Definition: set_locations_request.h:92
void clear_project_id()
Definition: set_locations_request.h:221
client::JsonCppArray< string > mutable_locations()
Definition: set_locations_request.h:166
Definition: accelerator_config.h:39
const StringPiece GetTypeName() const
Definition: set_locations_request.h:83
Definition: accelerator_config.cc:41
void clear_locations()
Definition: set_locations_request.h:139
bool has_project_id() const
Definition: set_locations_request.h:214
void set_project_id(const StringPiece &value)
Definition: set_locations_request.h:246
Definition: set_locations_request.h:50
void set_name(const StringPiece &value)
Definition: set_locations_request.h:205
void set_zone(const StringPiece &value)
Definition: set_locations_request.h:288