30 #ifndef GOOGLE_BIGQUERY_API_STANDARD_SQL_FIELD_H_ 31 #define GOOGLE_BIGQUERY_API_STANDARD_SQL_FIELD_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" 86 return StringPiece(
"google_bigquery_api::StandardSqlField");
95 return Storage().isMember(
"name");
102 MutableStorage()->removeMember(
"name");
110 const Json::Value& v = Storage(
"name");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
123 *MutableStorage(
"name") = value.data();
132 return Storage().isMember(
"type");
139 MutableStorage()->removeMember(
"type");
163 #endif // GOOGLE_BIGQUERY_API_STANDARD_SQL_FIELD_H_ const StringPiece get_name() const
Definition: standard_sql_field.h:109
void clear_type()
Definition: standard_sql_field.h:138
const StringPiece GetTypeName() const
Definition: standard_sql_field.h:85
Definition: aggregate_classification_metrics.cc:39
bool has_type() const
Definition: standard_sql_field.h:131
void clear_name()
Definition: standard_sql_field.h:101
Definition: aggregate_classification_metrics.h:37
void set_name(const StringPiece &value)
Definition: standard_sql_field.h:122
Definition: standard_sql_data_type.h:65
bool has_name() const
Definition: standard_sql_field.h:94
Definition: standard_sql_field.h:52