30 #ifndef GOOGLE_BIGQUERY_API_ARGUMENT_H_ 31 #define GOOGLE_BIGQUERY_API_ARGUMENT_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/bigquery_api/standard_sql_data_type.h" 66 explicit Argument(
const Json::Value& storage);
73 explicit Argument(Json::Value* storage);
86 return StringPiece(
"google_bigquery_api::Argument");
95 return Storage().isMember(
"argumentKind");
102 MutableStorage()->removeMember(
"argumentKind");
110 const Json::Value& v = Storage(
"argumentKind");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
123 *MutableStorage(
"argumentKind") = value.data();
132 return Storage().isMember(
"dataType");
139 MutableStorage()->removeMember(
"dataType");
164 return Storage().isMember(
"mode");
171 MutableStorage()->removeMember(
"mode");
179 const Json::Value& v = Storage(
"mode");
180 if (v == Json::Value::null)
return StringPiece(
"");
181 return StringPiece(v.asCString());
193 *MutableStorage(
"mode") = value.data();
202 return Storage().isMember(
"name");
209 MutableStorage()->removeMember(
"name");
217 const Json::Value& v = Storage(
"name");
218 if (v == Json::Value::null)
return StringPiece(
"");
219 return StringPiece(v.asCString());
231 *MutableStorage(
"name") = value.data();
238 #endif // GOOGLE_BIGQUERY_API_ARGUMENT_H_ const StringPiece get_argument_kind() const
Definition: argument.h:109
Definition: argument.h:52
Definition: aggregate_classification_metrics.cc:39
void clear_argument_kind()
Definition: argument.h:101
bool has_mode() const
Definition: argument.h:163
void set_name(const StringPiece &value)
Definition: argument.h:230
Definition: aggregate_classification_metrics.h:37
void clear_name()
Definition: argument.h:208
const StringPiece GetTypeName() const
Definition: argument.h:85
void set_mode(const StringPiece &value)
Definition: argument.h:192
void clear_mode()
Definition: argument.h:170
const StringPiece get_name() const
Definition: argument.h:216
Definition: standard_sql_data_type.h:65
void set_argument_kind(const StringPiece &value)
Definition: argument.h:122
const StringPiece get_mode() const
Definition: argument.h:178
bool has_data_type() const
Definition: argument.h:131
bool has_name() const
Definition: argument.h:201
void clear_data_type()
Definition: argument.h:138
bool has_argument_kind() const
Definition: argument.h:94