bigquery  v2
dataset_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_DATASET_LIST_H_
31 #define GOOGLE_BIGQUERY_API_DATASET_LIST_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 #include "google/bigquery_api/dataset_reference.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_bigquery_api {
45 using namespace googleapis;
46 
52 class DatasetList : public client::JsonCppData {
53  public:
59  class DatasetListDatasets : public client::JsonCppData {
60  public:
66  static DatasetListDatasets* New();
67 
73  explicit DatasetListDatasets(const Json::Value& storage);
74 
80  explicit DatasetListDatasets(Json::Value* storage);
81 
85  virtual ~DatasetListDatasets();
86 
92  const StringPiece GetTypeName() const {
93  return StringPiece("google_bigquery_api::DatasetListDatasets");
94  }
95 
101  bool has_dataset_reference() const {
102  return Storage().isMember("datasetReference");
103  }
104 
109  MutableStorage()->removeMember("datasetReference");
110  }
111 
112 
117  const DatasetReference get_dataset_reference() const;
118 
128  DatasetReference mutable_datasetReference();
129 
135  bool has_friendly_name() const {
136  return Storage().isMember("friendlyName");
137  }
138 
143  MutableStorage()->removeMember("friendlyName");
144  }
145 
146 
150  const StringPiece get_friendly_name() const {
151  const Json::Value& v = Storage("friendlyName");
152  if (v == Json::Value::null) return StringPiece("");
153  return StringPiece(v.asCString());
154  }
155 
163  void set_friendly_name(const StringPiece& value) {
164  *MutableStorage("friendlyName") = value.data();
165  }
166 
172  bool has_id() const {
173  return Storage().isMember("id");
174  }
175 
179  void clear_id() {
180  MutableStorage()->removeMember("id");
181  }
182 
183 
187  const StringPiece get_id() const {
188  const Json::Value& v = Storage("id");
189  if (v == Json::Value::null) return StringPiece("");
190  return StringPiece(v.asCString());
191  }
192 
200  void set_id(const StringPiece& value) {
201  *MutableStorage("id") = value.data();
202  }
203 
209  bool has_kind() const {
210  return Storage().isMember("kind");
211  }
212 
216  void clear_kind() {
217  MutableStorage()->removeMember("kind");
218  }
219 
220 
224  const StringPiece get_kind() const {
225  const Json::Value& v = Storage("kind");
226  if (v == Json::Value::null) return StringPiece("");
227  return StringPiece(v.asCString());
228  }
229 
238  void set_kind(const StringPiece& value) {
239  *MutableStorage("kind") = value.data();
240  }
241 
247  bool has_labels() const {
248  return Storage().isMember("labels");
249  }
250 
254  void clear_labels() {
255  MutableStorage()->removeMember("labels");
256  }
257 
258 
262  const client::JsonCppAssociativeArray<string > get_labels() const {
263  const Json::Value& storage = Storage("labels");
264  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
265  }
266 
276  client::JsonCppAssociativeArray<string > mutable_labels() {
277  Json::Value* storage = MutableStorage("labels");
278  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
279  }
280 
286  bool has_location() const {
287  return Storage().isMember("location");
288  }
289 
293  void clear_location() {
294  MutableStorage()->removeMember("location");
295  }
296 
297 
301  const StringPiece get_location() const {
302  const Json::Value& v = Storage("location");
303  if (v == Json::Value::null) return StringPiece("");
304  return StringPiece(v.asCString());
305  }
306 
314  void set_location(const StringPiece& value) {
315  *MutableStorage("location") = value.data();
316  }
317 
318  private:
319  void operator=(const DatasetListDatasets&);
320  }; // DatasetListDatasets
326  static DatasetList* New();
327 
333  explicit DatasetList(const Json::Value& storage);
334 
340  explicit DatasetList(Json::Value* storage);
341 
345  virtual ~DatasetList();
346 
352  const StringPiece GetTypeName() const {
353  return StringPiece("google_bigquery_api::DatasetList");
354  }
355 
361  bool has_datasets() const {
362  return Storage().isMember("datasets");
363  }
364 
368  void clear_datasets() {
369  MutableStorage()->removeMember("datasets");
370  }
371 
372 
376  const client::JsonCppArray<DatasetListDatasets > get_datasets() const {
377  const Json::Value& storage = Storage("datasets");
378  return client::JsonValueToCppValueHelper<client::JsonCppArray<DatasetListDatasets > >(storage);
379  }
380 
392  client::JsonCppArray<DatasetListDatasets > mutable_datasets() {
393  Json::Value* storage = MutableStorage("datasets");
394  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<DatasetListDatasets > >(storage);
395  }
396 
402  bool has_etag() const {
403  return Storage().isMember("etag");
404  }
405 
409  void clear_etag() {
410  MutableStorage()->removeMember("etag");
411  }
412 
413 
417  const StringPiece get_etag() const {
418  const Json::Value& v = Storage("etag");
419  if (v == Json::Value::null) return StringPiece("");
420  return StringPiece(v.asCString());
421  }
422 
431  void set_etag(const StringPiece& value) {
432  *MutableStorage("etag") = value.data();
433  }
434 
440  bool has_kind() const {
441  return Storage().isMember("kind");
442  }
443 
447  void clear_kind() {
448  MutableStorage()->removeMember("kind");
449  }
450 
451 
455  const StringPiece get_kind() const {
456  const Json::Value& v = Storage("kind");
457  if (v == Json::Value::null) return StringPiece("");
458  return StringPiece(v.asCString());
459  }
460 
469  void set_kind(const StringPiece& value) {
470  *MutableStorage("kind") = value.data();
471  }
472 
478  bool has_next_page_token() const {
479  return Storage().isMember("nextPageToken");
480  }
481 
486  MutableStorage()->removeMember("nextPageToken");
487  }
488 
489 
493  const StringPiece get_next_page_token() const {
494  const Json::Value& v = Storage("nextPageToken");
495  if (v == Json::Value::null) return StringPiece("");
496  return StringPiece(v.asCString());
497  }
498 
507  void set_next_page_token(const StringPiece& value) {
508  *MutableStorage("nextPageToken") = value.data();
509  }
510 
511  private:
512  void operator=(const DatasetList&);
513 }; // DatasetList
514 } // namespace google_bigquery_api
515 #endif // GOOGLE_BIGQUERY_API_DATASET_LIST_H_
const client::JsonCppAssociativeArray< string > get_labels() const
Definition: dataset_list.h:262
void set_kind(const StringPiece &value)
Definition: dataset_list.h:469
const StringPiece get_id() const
Definition: dataset_list.h:187
void clear_kind()
Definition: dataset_list.h:216
Definition: dataset_list.h:52
Definition: dataset_reference.h:50
bool has_kind() const
Definition: dataset_list.h:209
const StringPiece get_location() const
Definition: dataset_list.h:301
void clear_dataset_reference()
Definition: dataset_list.h:108
bool has_next_page_token() const
Definition: dataset_list.h:478
client::JsonCppArray< DatasetListDatasets > mutable_datasets()
Definition: dataset_list.h:392
const StringPiece get_etag() const
Definition: dataset_list.h:417
const StringPiece get_friendly_name() const
Definition: dataset_list.h:150
const StringPiece get_kind() const
Definition: dataset_list.h:455
Definition: aggregate_classification_metrics.cc:39
void clear_labels()
Definition: dataset_list.h:254
const client::JsonCppArray< DatasetListDatasets > get_datasets() const
Definition: dataset_list.h:376
bool has_datasets() const
Definition: dataset_list.h:361
void clear_etag()
Definition: dataset_list.h:409
const StringPiece GetTypeName() const
Definition: dataset_list.h:92
const StringPiece get_next_page_token() const
Definition: dataset_list.h:493
void set_location(const StringPiece &value)
Definition: dataset_list.h:314
void clear_datasets()
Definition: dataset_list.h:368
bool has_location() const
Definition: dataset_list.h:286
void clear_friendly_name()
Definition: dataset_list.h:142
void set_kind(const StringPiece &value)
Definition: dataset_list.h:238
bool has_etag() const
Definition: dataset_list.h:402
Definition: aggregate_classification_metrics.h:37
const StringPiece get_kind() const
Definition: dataset_list.h:224
bool has_labels() const
Definition: dataset_list.h:247
void clear_next_page_token()
Definition: dataset_list.h:485
void clear_location()
Definition: dataset_list.h:293
void set_friendly_name(const StringPiece &value)
Definition: dataset_list.h:163
bool has_kind() const
Definition: dataset_list.h:440
bool has_id() const
Definition: dataset_list.h:172
void clear_id()
Definition: dataset_list.h:179
void set_next_page_token(const StringPiece &value)
Definition: dataset_list.h:507
void set_id(const StringPiece &value)
Definition: dataset_list.h:200
bool has_friendly_name() const
Definition: dataset_list.h:135
void clear_kind()
Definition: dataset_list.h:447
const StringPiece GetTypeName() const
Definition: dataset_list.h:352
client::JsonCppAssociativeArray< string > mutable_labels()
Definition: dataset_list.h:276
void set_etag(const StringPiece &value)
Definition: dataset_list.h:431
bool has_dataset_reference() const
Definition: dataset_list.h:101