bigquery  v2
job_configuration_table_copy.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_JOB_CONFIGURATION_TABLE_COPY_H_
31 #define GOOGLE_BIGQUERY_API_JOB_CONFIGURATION_TABLE_COPY_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/encryption_configuration.h"
39 #include "google/bigquery_api/table_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 JobConfigurationTableCopy : public client::JsonCppData {
54  public:
60  static JobConfigurationTableCopy* New();
61 
67  explicit JobConfigurationTableCopy(const Json::Value& storage);
68 
74  explicit JobConfigurationTableCopy(Json::Value* storage);
75 
79  virtual ~JobConfigurationTableCopy();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_bigquery_api::JobConfigurationTableCopy");
88  }
89 
95  bool has_create_disposition() const {
96  return Storage().isMember("createDisposition");
97  }
98 
103  MutableStorage()->removeMember("createDisposition");
104  }
105 
106 
110  const StringPiece get_create_disposition() const {
111  const Json::Value& v = Storage("createDisposition");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
128  void set_create_disposition(const StringPiece& value) {
129  *MutableStorage("createDisposition") = value.data();
130  }
131 
140  return Storage().isMember("destinationEncryptionConfiguration");
141  }
142 
147  MutableStorage()->removeMember("destinationEncryptionConfiguration");
148  }
149 
150 
155  const EncryptionConfiguration get_destination_encryption_configuration() const;
156 
165  EncryptionConfiguration mutable_destinationEncryptionConfiguration();
166 
172  bool has_destination_table() const {
173  return Storage().isMember("destinationTable");
174  }
175 
180  MutableStorage()->removeMember("destinationTable");
181  }
182 
183 
188  const TableReference get_destination_table() const;
189 
198  TableReference mutable_destinationTable();
199 
205  bool has_source_table() const {
206  return Storage().isMember("sourceTable");
207  }
208 
213  MutableStorage()->removeMember("sourceTable");
214  }
215 
216 
220  const TableReference get_source_table() const;
221 
230  TableReference mutable_sourceTable();
231 
237  bool has_source_tables() const {
238  return Storage().isMember("sourceTables");
239  }
240 
245  MutableStorage()->removeMember("sourceTables");
246  }
247 
248 
252  const client::JsonCppArray<TableReference > get_source_tables() const;
253 
262  client::JsonCppArray<TableReference > mutable_sourceTables();
263 
269  bool has_write_disposition() const {
270  return Storage().isMember("writeDisposition");
271  }
272 
277  MutableStorage()->removeMember("writeDisposition");
278  }
279 
280 
284  const StringPiece get_write_disposition() const {
285  const Json::Value& v = Storage("writeDisposition");
286  if (v == Json::Value::null) return StringPiece("");
287  return StringPiece(v.asCString());
288  }
289 
305  void set_write_disposition(const StringPiece& value) {
306  *MutableStorage("writeDisposition") = value.data();
307  }
308 
309  private:
310  void operator=(const JobConfigurationTableCopy&);
311 }; // JobConfigurationTableCopy
312 } // namespace google_bigquery_api
313 #endif // GOOGLE_BIGQUERY_API_JOB_CONFIGURATION_TABLE_COPY_H_
const StringPiece get_create_disposition() const
Definition: job_configuration_table_copy.h:110
void set_create_disposition(const StringPiece &value)
Definition: job_configuration_table_copy.h:128
Definition: encryption_configuration.h:50
void clear_destination_encryption_configuration()
Definition: job_configuration_table_copy.h:146
const StringPiece get_write_disposition() const
Definition: job_configuration_table_copy.h:284
void clear_destination_table()
Definition: job_configuration_table_copy.h:179
bool has_destination_encryption_configuration() const
Definition: job_configuration_table_copy.h:139
bool has_destination_table() const
Definition: job_configuration_table_copy.h:172
Definition: aggregate_classification_metrics.cc:39
void set_write_disposition(const StringPiece &value)
Definition: job_configuration_table_copy.h:305
void clear_source_table()
Definition: job_configuration_table_copy.h:212
void clear_create_disposition()
Definition: job_configuration_table_copy.h:102
bool has_source_tables() const
Definition: job_configuration_table_copy.h:237
Definition: aggregate_classification_metrics.h:37
void clear_source_tables()
Definition: job_configuration_table_copy.h:244
Definition: table_reference.h:50
bool has_source_table() const
Definition: job_configuration_table_copy.h:205
bool has_create_disposition() const
Definition: job_configuration_table_copy.h:95
void clear_write_disposition()
Definition: job_configuration_table_copy.h:276
bool has_write_disposition() const
Definition: job_configuration_table_copy.h:269
Definition: job_configuration_table_copy.h:53
const StringPiece GetTypeName() const
Definition: job_configuration_table_copy.h:86