30 #ifndef GOOGLE_SQLADMIN_API_TRUNCATE_LOG_CONTEXT_H_ 31 #define GOOGLE_SQLADMIN_API_TRUNCATE_LOG_CONTEXT_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_sqladmin_api::TruncateLogContext");
93 return Storage().isMember(
"kind");
100 MutableStorage()->removeMember(
"kind");
108 const Json::Value& v = Storage(
"kind");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
121 *MutableStorage(
"kind") = value.data();
130 return Storage().isMember(
"logType");
137 MutableStorage()->removeMember(
"logType");
145 const Json::Value& v = Storage(
"logType");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
159 *MutableStorage(
"logType") = value.data();
166 #endif // GOOGLE_SQLADMIN_API_TRUNCATE_LOG_CONTEXT_H_ bool has_kind() const
Definition: truncate_log_context.h:92
Definition: truncate_log_context.h:50
const StringPiece get_log_type() const
Definition: truncate_log_context.h:144
void clear_log_type()
Definition: truncate_log_context.h:136
bool has_log_type() const
Definition: truncate_log_context.h:129
Definition: acl_entry.cc:41
void clear_kind()
Definition: truncate_log_context.h:99
Definition: acl_entry.h:39
const StringPiece GetTypeName() const
Definition: truncate_log_context.h:83
void set_kind(const StringPiece &value)
Definition: truncate_log_context.h:120
const StringPiece get_kind() const
Definition: truncate_log_context.h:107
void set_log_type(const StringPiece &value)
Definition: truncate_log_context.h:158