30 #ifndef GOOGLE_SQLADMIN_API_OPERATION_ERRORS_H_ 31 #define GOOGLE_SQLADMIN_API_OPERATION_ERRORS_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/sqladmin_api/operation_error.h" 86 return StringPiece(
"google_sqladmin_api::OperationErrors");
95 return Storage().isMember(
"errors");
102 MutableStorage()->removeMember(
"errors");
109 const client::JsonCppArray<OperationError > get_errors()
const;
118 client::JsonCppArray<OperationError > mutable_errors();
126 return Storage().isMember(
"kind");
133 MutableStorage()->removeMember(
"kind");
141 const Json::Value& v = Storage(
"kind");
142 if (v == Json::Value::null)
return StringPiece(
"");
143 return StringPiece(v.asCString());
154 *MutableStorage(
"kind") = value.data();
161 #endif // GOOGLE_SQLADMIN_API_OPERATION_ERRORS_H_ void set_kind(const StringPiece &value)
Definition: operation_errors.h:153
Definition: operation_errors.h:52
void clear_kind()
Definition: operation_errors.h:132
Definition: acl_entry.cc:41
const StringPiece GetTypeName() const
Definition: operation_errors.h:85
Definition: acl_entry.h:39
const StringPiece get_kind() const
Definition: operation_errors.h:140
bool has_errors() const
Definition: operation_errors.h:94
bool has_kind() const
Definition: operation_errors.h:125
void clear_errors()
Definition: operation_errors.h:101