bigquery  v2
project_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_PROJECT_LIST_H_
31 #define GOOGLE_BIGQUERY_API_PROJECT_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/project_reference.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_bigquery_api {
46 using namespace googleapis;
47 
53 class ProjectList : public client::JsonCppData {
54  public:
60  class ProjectListProjects : public client::JsonCppData {
61  public:
67  static ProjectListProjects* New();
68 
74  explicit ProjectListProjects(const Json::Value& storage);
75 
81  explicit ProjectListProjects(Json::Value* storage);
82 
86  virtual ~ProjectListProjects();
87 
93  const StringPiece GetTypeName() const {
94  return StringPiece("google_bigquery_api::ProjectListProjects");
95  }
96 
102  bool has_friendly_name() const {
103  return Storage().isMember("friendlyName");
104  }
105 
110  MutableStorage()->removeMember("friendlyName");
111  }
112 
113 
117  const StringPiece get_friendly_name() const {
118  const Json::Value& v = Storage("friendlyName");
119  if (v == Json::Value::null) return StringPiece("");
120  return StringPiece(v.asCString());
121  }
122 
130  void set_friendly_name(const StringPiece& value) {
131  *MutableStorage("friendlyName") = value.data();
132  }
133 
139  bool has_id() const {
140  return Storage().isMember("id");
141  }
142 
146  void clear_id() {
147  MutableStorage()->removeMember("id");
148  }
149 
150 
154  const StringPiece get_id() const {
155  const Json::Value& v = Storage("id");
156  if (v == Json::Value::null) return StringPiece("");
157  return StringPiece(v.asCString());
158  }
159 
167  void set_id(const StringPiece& value) {
168  *MutableStorage("id") = value.data();
169  }
170 
176  bool has_kind() const {
177  return Storage().isMember("kind");
178  }
179 
183  void clear_kind() {
184  MutableStorage()->removeMember("kind");
185  }
186 
187 
191  const StringPiece get_kind() const {
192  const Json::Value& v = Storage("kind");
193  if (v == Json::Value::null) return StringPiece("");
194  return StringPiece(v.asCString());
195  }
196 
204  void set_kind(const StringPiece& value) {
205  *MutableStorage("kind") = value.data();
206  }
207 
213  bool has_numeric_id() const {
214  return Storage().isMember("numericId");
215  }
216 
221  MutableStorage()->removeMember("numericId");
222  }
223 
224 
228  uint64 get_numeric_id() const {
229  const Json::Value& storage = Storage("numericId");
230  return client::JsonValueToCppValueHelper<uint64 >(storage);
231  }
232 
240  void set_numeric_id(uint64 value) {
241  client::SetJsonValueFromCppValueHelper<uint64 >(
242  value, MutableStorage("numericId"));
243  }
244 
250  bool has_project_reference() const {
251  return Storage().isMember("projectReference");
252  }
253 
258  MutableStorage()->removeMember("projectReference");
259  }
260 
261 
266  const ProjectReference get_project_reference() const;
267 
276  ProjectReference mutable_projectReference();
277 
278  private:
279  void operator=(const ProjectListProjects&);
280  }; // ProjectListProjects
286  static ProjectList* New();
287 
293  explicit ProjectList(const Json::Value& storage);
294 
300  explicit ProjectList(Json::Value* storage);
301 
305  virtual ~ProjectList();
306 
312  const StringPiece GetTypeName() const {
313  return StringPiece("google_bigquery_api::ProjectList");
314  }
315 
321  bool has_etag() const {
322  return Storage().isMember("etag");
323  }
324 
328  void clear_etag() {
329  MutableStorage()->removeMember("etag");
330  }
331 
332 
336  const StringPiece get_etag() const {
337  const Json::Value& v = Storage("etag");
338  if (v == Json::Value::null) return StringPiece("");
339  return StringPiece(v.asCString());
340  }
341 
349  void set_etag(const StringPiece& value) {
350  *MutableStorage("etag") = value.data();
351  }
352 
358  bool has_kind() const {
359  return Storage().isMember("kind");
360  }
361 
365  void clear_kind() {
366  MutableStorage()->removeMember("kind");
367  }
368 
369 
373  const StringPiece get_kind() const {
374  const Json::Value& v = Storage("kind");
375  if (v == Json::Value::null) return StringPiece("");
376  return StringPiece(v.asCString());
377  }
378 
386  void set_kind(const StringPiece& value) {
387  *MutableStorage("kind") = value.data();
388  }
389 
395  bool has_next_page_token() const {
396  return Storage().isMember("nextPageToken");
397  }
398 
403  MutableStorage()->removeMember("nextPageToken");
404  }
405 
406 
410  const StringPiece get_next_page_token() const {
411  const Json::Value& v = Storage("nextPageToken");
412  if (v == Json::Value::null) return StringPiece("");
413  return StringPiece(v.asCString());
414  }
415 
423  void set_next_page_token(const StringPiece& value) {
424  *MutableStorage("nextPageToken") = value.data();
425  }
426 
432  bool has_projects() const {
433  return Storage().isMember("projects");
434  }
435 
439  void clear_projects() {
440  MutableStorage()->removeMember("projects");
441  }
442 
443 
447  const client::JsonCppArray<ProjectListProjects > get_projects() const {
448  const Json::Value& storage = Storage("projects");
449  return client::JsonValueToCppValueHelper<client::JsonCppArray<ProjectListProjects > >(storage);
450  }
451 
460  client::JsonCppArray<ProjectListProjects > mutable_projects() {
461  Json::Value* storage = MutableStorage("projects");
462  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<ProjectListProjects > >(storage);
463  }
464 
470  bool has_total_items() const {
471  return Storage().isMember("totalItems");
472  }
473 
478  MutableStorage()->removeMember("totalItems");
479  }
480 
481 
485  int32 get_total_items() const {
486  const Json::Value& storage = Storage("totalItems");
487  return client::JsonValueToCppValueHelper<int32 >(storage);
488  }
489 
497  void set_total_items(int32 value) {
498  client::SetJsonValueFromCppValueHelper<int32 >(
499  value, MutableStorage("totalItems"));
500  }
501 
502  private:
503  void operator=(const ProjectList&);
504 }; // ProjectList
505 } // namespace google_bigquery_api
506 #endif // GOOGLE_BIGQUERY_API_PROJECT_LIST_H_
void set_numeric_id(uint64 value)
Definition: project_list.h:240
bool has_etag() const
Definition: project_list.h:321
bool has_total_items() const
Definition: project_list.h:470
const StringPiece GetTypeName() const
Definition: project_list.h:312
bool has_project_reference() const
Definition: project_list.h:250
const StringPiece GetTypeName() const
Definition: project_list.h:93
const StringPiece get_kind() const
Definition: project_list.h:373
void set_kind(const StringPiece &value)
Definition: project_list.h:204
void clear_kind()
Definition: project_list.h:183
void set_kind(const StringPiece &value)
Definition: project_list.h:386
const StringPiece get_etag() const
Definition: project_list.h:336
void set_etag(const StringPiece &value)
Definition: project_list.h:349
const StringPiece get_kind() const
Definition: project_list.h:191
void set_next_page_token(const StringPiece &value)
Definition: project_list.h:423
void clear_project_reference()
Definition: project_list.h:257
Definition: aggregate_classification_metrics.cc:39
uint64 get_numeric_id() const
Definition: project_list.h:228
void clear_next_page_token()
Definition: project_list.h:402
Definition: project_list.h:53
void set_total_items(int32 value)
Definition: project_list.h:497
const client::JsonCppArray< ProjectListProjects > get_projects() const
Definition: project_list.h:447
const StringPiece get_next_page_token() const
Definition: project_list.h:410
client::JsonCppArray< ProjectListProjects > mutable_projects()
Definition: project_list.h:460
bool has_next_page_token() const
Definition: project_list.h:395
bool has_friendly_name() const
Definition: project_list.h:102
Definition: aggregate_classification_metrics.h:37
bool has_id() const
Definition: project_list.h:139
void set_friendly_name(const StringPiece &value)
Definition: project_list.h:130
bool has_kind() const
Definition: project_list.h:358
bool has_kind() const
Definition: project_list.h:176
Definition: project_reference.h:50
void clear_id()
Definition: project_list.h:146
bool has_projects() const
Definition: project_list.h:432
const StringPiece get_id() const
Definition: project_list.h:154
void clear_etag()
Definition: project_list.h:328
void clear_kind()
Definition: project_list.h:365
bool has_numeric_id() const
Definition: project_list.h:213
void clear_total_items()
Definition: project_list.h:477
void clear_friendly_name()
Definition: project_list.h:109
void clear_projects()
Definition: project_list.h:439
int32 get_total_items() const
Definition: project_list.h:485
void set_id(const StringPiece &value)
Definition: project_list.h:167
const StringPiece get_friendly_name() const
Definition: project_list.h:117
void clear_numeric_id()
Definition: project_list.h:220