30 #ifndef GOOGLE_CONTAINER_API_NETWORK_CONFIG_H_ 31 #define GOOGLE_CONTAINER_API_NETWORK_CONFIG_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::NetworkConfig");
95 return Storage().isMember(
"enableIntraNodeVisibility");
102 MutableStorage()->removeMember(
"enableIntraNodeVisibility");
110 const Json::Value& storage = Storage(
"enableIntraNodeVisibility");
111 return client::JsonValueToCppValueHelper<bool >(storage);
123 client::SetJsonValueFromCppValueHelper<bool >(
124 value, MutableStorage(
"enableIntraNodeVisibility"));
133 return Storage().isMember(
"network");
140 MutableStorage()->removeMember(
"network");
148 const Json::Value& v = Storage(
"network");
149 if (v == Json::Value::null)
return StringPiece(
"");
150 return StringPiece(v.asCString());
164 *MutableStorage(
"network") = value.data();
173 return Storage().isMember(
"subnetwork");
180 MutableStorage()->removeMember(
"subnetwork");
188 const Json::Value& v = Storage(
"subnetwork");
189 if (v == Json::Value::null)
return StringPiece(
"");
190 return StringPiece(v.asCString());
203 *MutableStorage(
"subnetwork") = value.data();
210 #endif // GOOGLE_CONTAINER_API_NETWORK_CONFIG_H_ void set_network(const StringPiece &value)
Definition: network_config.h:163
void clear_network()
Definition: network_config.h:139
Definition: network_config.h:50
bool get_enable_intra_node_visibility() const
Definition: network_config.h:109
void clear_subnetwork()
Definition: network_config.h:179
const StringPiece GetTypeName() const
Definition: network_config.h:83
void clear_enable_intra_node_visibility()
Definition: network_config.h:101
bool has_subnetwork() const
Definition: network_config.h:172
const StringPiece get_network() const
Definition: network_config.h:147
Definition: accelerator_config.h:39
void set_subnetwork(const StringPiece &value)
Definition: network_config.h:202
bool has_network() const
Definition: network_config.h:132
Definition: accelerator_config.cc:41
void set_enable_intra_node_visibility(bool value)
Definition: network_config.h:122
bool has_enable_intra_node_visibility() const
Definition: network_config.h:94
const StringPiece get_subnetwork() const
Definition: network_config.h:187