30 #ifndef GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_UPDATE_LABEL_ENTRY_H_ 31 #define GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_UPDATE_LABEL_ENTRY_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 85 return StringPiece(
"google_deploymentmanager_api::DeploymentUpdateLabelEntry");
94 return Storage().isMember(
"key");
101 MutableStorage()->removeMember(
"key");
109 const Json::Value& v = Storage(
"key");
110 if (v == Json::Value::null)
return StringPiece(
"");
111 return StringPiece(v.asCString());
119 *MutableStorage(
"key") = value.data();
128 return Storage().isMember(
"value");
135 MutableStorage()->removeMember(
"value");
143 const Json::Value& v = Storage(
"value");
144 if (v == Json::Value::null)
return StringPiece(
"");
145 return StringPiece(v.asCString());
153 *MutableStorage(
"value") = value.data();
160 #endif // GOOGLE_DEPLOYMENTMANAGER_API_DEPLOYMENT_UPDATE_LABEL_ENTRY_H_ void clear_value()
Definition: deployment_update_label_entry.h:134
bool has_key() const
Definition: deployment_update_label_entry.h:93
void set_key(const StringPiece &value)
Definition: deployment_update_label_entry.h:118
void set_value(const StringPiece &value)
Definition: deployment_update_label_entry.h:152
const StringPiece GetTypeName() const
Definition: deployment_update_label_entry.h:84
Definition: audit_config.h:40
Definition: deployment_update_label_entry.h:50
bool has_value() const
Definition: deployment_update_label_entry.h:127
Definition: audit_config.cc:42
const StringPiece get_value() const
Definition: deployment_update_label_entry.h:142
void clear_key()
Definition: deployment_update_label_entry.h:100
const StringPiece get_key() const
Definition: deployment_update_label_entry.h:108