30 #ifndef GOOGLE_SQLADMIN_API_API_WARNING_H_ 31 #define GOOGLE_SQLADMIN_API_API_WARNING_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 64 explicit ApiWarning(
const Json::Value& storage);
84 return StringPiece(
"google_sqladmin_api::ApiWarning");
93 return Storage().isMember(
"code");
100 MutableStorage()->removeMember(
"code");
108 const Json::Value& v = Storage(
"code");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
121 *MutableStorage(
"code") = value.data();
130 return Storage().isMember(
"message");
137 MutableStorage()->removeMember(
"message");
145 const Json::Value& v = Storage(
"message");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
158 *MutableStorage(
"message") = value.data();
165 #endif // GOOGLE_SQLADMIN_API_API_WARNING_H_ void clear_code()
Definition: api_warning.h:99
Definition: api_warning.h:50
const StringPiece GetTypeName() const
Definition: api_warning.h:83
const StringPiece get_code() const
Definition: api_warning.h:107
void set_code(const StringPiece &value)
Definition: api_warning.h:120
Definition: acl_entry.cc:41
void clear_message()
Definition: api_warning.h:136
Definition: acl_entry.h:39
bool has_message() const
Definition: api_warning.h:129
void set_message(const StringPiece &value)
Definition: api_warning.h:157
const StringPiece get_message() const
Definition: api_warning.h:144
bool has_code() const
Definition: api_warning.h:92