30 #ifndef GOOGLE_CONTAINER_API_ACCELERATOR_CONFIG_H_ 31 #define GOOGLE_CONTAINER_API_ACCELERATOR_CONFIG_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" 85 return StringPiece(
"google_container_api::AcceleratorConfig");
94 return Storage().isMember(
"acceleratorCount");
101 MutableStorage()->removeMember(
"acceleratorCount");
109 const Json::Value& storage = Storage(
"acceleratorCount");
110 return client::JsonValueToCppValueHelper<int64 >(storage);
121 client::SetJsonValueFromCppValueHelper<int64 >(
122 value, MutableStorage(
"acceleratorCount"));
131 return Storage().isMember(
"acceleratorType");
138 MutableStorage()->removeMember(
"acceleratorType");
146 const Json::Value& v = Storage(
"acceleratorType");
147 if (v == Json::Value::null)
return StringPiece(
"");
148 return StringPiece(v.asCString());
160 *MutableStorage(
"acceleratorType") = value.data();
167 #endif // GOOGLE_CONTAINER_API_ACCELERATOR_CONFIG_H_ const StringPiece GetTypeName() const
Definition: accelerator_config.h:84
int64 get_accelerator_count() const
Definition: accelerator_config.h:108
void clear_accelerator_count()
Definition: accelerator_config.h:100
void set_accelerator_count(int64 value)
Definition: accelerator_config.h:120
Definition: accelerator_config.h:51
bool has_accelerator_count() const
Definition: accelerator_config.h:93
bool has_accelerator_type() const
Definition: accelerator_config.h:130
Definition: accelerator_config.h:39
Definition: accelerator_config.cc:41
void set_accelerator_type(const StringPiece &value)
Definition: accelerator_config.h:159
const StringPiece get_accelerator_type() const
Definition: accelerator_config.h:145
void clear_accelerator_type()
Definition: accelerator_config.h:137