30 #ifndef GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_LABEL_ENTRY_H_ 31 #define GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_LABEL_ENTRY_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_deploymentmanager_api::DeploymentLabelEntry");
93 return Storage().isMember(
"key");
100 MutableStorage()->removeMember(
"key");
108 const Json::Value& v = Storage(
"key");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
118 *MutableStorage(
"key") = value.data();
127 return Storage().isMember(
"value");
134 MutableStorage()->removeMember(
"value");
142 const Json::Value& v = Storage(
"value");
143 if (v == Json::Value::null)
return StringPiece(
"");
144 return StringPiece(v.asCString());
152 *MutableStorage(
"value") = value.data();
159 #endif // GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_LABEL_ENTRY_H_ bool has_value() const
Definition: deployment_label_entry.h:126
void clear_key()
Definition: deployment_label_entry.h:99
void set_key(const StringPiece &value)
Definition: deployment_label_entry.h:117
const StringPiece get_value() const
Definition: deployment_label_entry.h:141
Definition: audit_config.h:40
void set_value(const StringPiece &value)
Definition: deployment_label_entry.h:151
Definition: audit_config.cc:42
const StringPiece get_key() const
Definition: deployment_label_entry.h:107
Definition: deployment_label_entry.h:50
bool has_key() const
Definition: deployment_label_entry.h:92
const StringPiece GetTypeName() const
Definition: deployment_label_entry.h:83
void clear_value()
Definition: deployment_label_entry.h:133