30 #ifndef GOOGLE_BIGQUERY_API_TABLE_DATA_LIST_H_ 31 #define GOOGLE_BIGQUERY_API_TABLE_DATA_LIST_H_ 34 #include "googleapis/base/integral_types.h" 35 #include "googleapis/base/macros.h" 36 #include "googleapis/client/data/jsoncpp_data.h" 37 #include "googleapis/strings/stringpiece.h" 39 #include "google/bigquery_api/table_row.h" 87 return StringPiece(
"google_bigquery_api::TableDataList");
96 return Storage().isMember(
"etag");
103 MutableStorage()->removeMember(
"etag");
111 const Json::Value& v = Storage(
"etag");
112 if (v == Json::Value::null)
return StringPiece(
"");
113 return StringPiece(v.asCString());
124 *MutableStorage(
"etag") = value.data();
133 return Storage().isMember(
"kind");
140 MutableStorage()->removeMember(
"kind");
148 const Json::Value& v = Storage(
"kind");
149 if (v == Json::Value::null)
return StringPiece(
"");
150 return StringPiece(v.asCString());
161 *MutableStorage(
"kind") = value.data();
170 return Storage().isMember(
"pageToken");
177 MutableStorage()->removeMember(
"pageToken");
185 const Json::Value& v = Storage(
"pageToken");
186 if (v == Json::Value::null)
return StringPiece(
"");
187 return StringPiece(v.asCString());
200 *MutableStorage(
"pageToken") = value.data();
209 return Storage().isMember(
"rows");
216 MutableStorage()->removeMember(
"rows");
223 const client::JsonCppArray<TableRow > get_rows()
const;
232 client::JsonCppArray<TableRow > mutable_rows();
240 return Storage().isMember(
"totalRows");
247 MutableStorage()->removeMember(
"totalRows");
255 const Json::Value& storage = Storage(
"totalRows");
256 return client::JsonValueToCppValueHelper<int64 >(storage);
267 client::SetJsonValueFromCppValueHelper<int64 >(
268 value, MutableStorage(
"totalRows"));
275 #endif // GOOGLE_BIGQUERY_API_TABLE_DATA_LIST_H_ bool has_etag() const
Definition: table_data_list.h:95
bool has_kind() const
Definition: table_data_list.h:132
void set_page_token(const StringPiece &value)
Definition: table_data_list.h:199
bool has_total_rows() const
Definition: table_data_list.h:239
int64 get_total_rows() const
Definition: table_data_list.h:254
void clear_rows()
Definition: table_data_list.h:215
void clear_total_rows()
Definition: table_data_list.h:246
void set_total_rows(int64 value)
Definition: table_data_list.h:266
const StringPiece get_kind() const
Definition: table_data_list.h:147
Definition: aggregate_classification_metrics.cc:39
Definition: table_data_list.h:53
void set_etag(const StringPiece &value)
Definition: table_data_list.h:123
bool has_rows() const
Definition: table_data_list.h:208
const StringPiece get_etag() const
Definition: table_data_list.h:110
void clear_kind()
Definition: table_data_list.h:139
Definition: aggregate_classification_metrics.h:37
void clear_etag()
Definition: table_data_list.h:102
bool has_page_token() const
Definition: table_data_list.h:169
const StringPiece GetTypeName() const
Definition: table_data_list.h:86
void clear_page_token()
Definition: table_data_list.h:176
const StringPiece get_page_token() const
Definition: table_data_list.h:184
void set_kind(const StringPiece &value)
Definition: table_data_list.h:160