bigquery  v2
table_data_list.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2020-03-07, 23:51:40 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // BigQuery API (bigquery/v2)
24 // Generated from:
25 // Version: v2
26 // Revision: 459
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_BIGQUERY_API_TABLE_DATA_LIST_H_
31 #define GOOGLE_BIGQUERY_API_TABLE_DATA_LIST_H_
32 
33 #include <string>
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"
38 
39 #include "google/bigquery_api/table_row.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_bigquery_api {
46 using namespace googleapis;
47 
53 class TableDataList : public client::JsonCppData {
54  public:
60  static TableDataList* New();
61 
67  explicit TableDataList(const Json::Value& storage);
68 
74  explicit TableDataList(Json::Value* storage);
75 
79  virtual ~TableDataList();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_bigquery_api::TableDataList");
88  }
89 
95  bool has_etag() const {
96  return Storage().isMember("etag");
97  }
98 
102  void clear_etag() {
103  MutableStorage()->removeMember("etag");
104  }
105 
106 
110  const StringPiece get_etag() const {
111  const Json::Value& v = Storage("etag");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
123  void set_etag(const StringPiece& value) {
124  *MutableStorage("etag") = value.data();
125  }
126 
132  bool has_kind() const {
133  return Storage().isMember("kind");
134  }
135 
139  void clear_kind() {
140  MutableStorage()->removeMember("kind");
141  }
142 
143 
147  const StringPiece get_kind() const {
148  const Json::Value& v = Storage("kind");
149  if (v == Json::Value::null) return StringPiece("");
150  return StringPiece(v.asCString());
151  }
152 
160  void set_kind(const StringPiece& value) {
161  *MutableStorage("kind") = value.data();
162  }
163 
169  bool has_page_token() const {
170  return Storage().isMember("pageToken");
171  }
172 
177  MutableStorage()->removeMember("pageToken");
178  }
179 
180 
184  const StringPiece get_page_token() const {
185  const Json::Value& v = Storage("pageToken");
186  if (v == Json::Value::null) return StringPiece("");
187  return StringPiece(v.asCString());
188  }
189 
199  void set_page_token(const StringPiece& value) {
200  *MutableStorage("pageToken") = value.data();
201  }
202 
208  bool has_rows() const {
209  return Storage().isMember("rows");
210  }
211 
215  void clear_rows() {
216  MutableStorage()->removeMember("rows");
217  }
218 
219 
223  const client::JsonCppArray<TableRow > get_rows() const;
224 
232  client::JsonCppArray<TableRow > mutable_rows();
233 
239  bool has_total_rows() const {
240  return Storage().isMember("totalRows");
241  }
242 
247  MutableStorage()->removeMember("totalRows");
248  }
249 
250 
254  int64 get_total_rows() const {
255  const Json::Value& storage = Storage("totalRows");
256  return client::JsonValueToCppValueHelper<int64 >(storage);
257  }
258 
266  void set_total_rows(int64 value) {
267  client::SetJsonValueFromCppValueHelper<int64 >(
268  value, MutableStorage("totalRows"));
269  }
270 
271  private:
272  void operator=(const TableDataList&);
273 }; // TableDataList
274 } // namespace google_bigquery_api
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