bigquery  v2
bigtable_column.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_BIGTABLE_COLUMN_H_
31 #define GOOGLE_BIGQUERY_API_BIGTABLE_COLUMN_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 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_bigquery_api {
43 using namespace googleapis;
44 
50 class BigtableColumn : public client::JsonCppData {
51  public:
57  static BigtableColumn* New();
58 
64  explicit BigtableColumn(const Json::Value& storage);
65 
71  explicit BigtableColumn(Json::Value* storage);
72 
76  virtual ~BigtableColumn();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_bigquery_api::BigtableColumn");
85  }
86 
92  bool has_encoding() const {
93  return Storage().isMember("encoding");
94  }
95 
99  void clear_encoding() {
100  MutableStorage()->removeMember("encoding");
101  }
102 
103 
107  const StringPiece get_encoding() const {
108  const Json::Value& v = Storage("encoding");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
125  void set_encoding(const StringPiece& value) {
126  *MutableStorage("encoding") = value.data();
127  }
128 
134  bool has_field_name() const {
135  return Storage().isMember("fieldName");
136  }
137 
142  MutableStorage()->removeMember("fieldName");
143  }
144 
145 
149  const StringPiece get_field_name() const {
150  const Json::Value& v = Storage("fieldName");
151  if (v == Json::Value::null) return StringPiece("");
152  return StringPiece(v.asCString());
153  }
154 
164  void set_field_name(const StringPiece& value) {
165  *MutableStorage("fieldName") = value.data();
166  }
167 
173  bool has_only_read_latest() const {
174  return Storage().isMember("onlyReadLatest");
175  }
176 
181  MutableStorage()->removeMember("onlyReadLatest");
182  }
183 
184 
188  bool get_only_read_latest() const {
189  const Json::Value& storage = Storage("onlyReadLatest");
190  return client::JsonValueToCppValueHelper<bool >(storage);
191  }
192 
203  void set_only_read_latest(bool value) {
204  client::SetJsonValueFromCppValueHelper<bool >(
205  value, MutableStorage("onlyReadLatest"));
206  }
207 
213  bool has_qualifier_encoded() const {
214  return Storage().isMember("qualifierEncoded");
215  }
216 
221  MutableStorage()->removeMember("qualifierEncoded");
222  }
223 
224 
228  const StringPiece get_qualifier_encoded() const {
229  const Json::Value& v = Storage("qualifierEncoded");
230  if (v == Json::Value::null) return StringPiece("");
231  return StringPiece(v.asCString());
232  }
233 
247  void set_qualifier_encoded(const StringPiece& value) {
248  *MutableStorage("qualifierEncoded") = value.data();
249  }
250 
256  bool has_qualifier_string() const {
257  return Storage().isMember("qualifierString");
258  }
259 
264  MutableStorage()->removeMember("qualifierString");
265  }
266 
267 
271  const StringPiece get_qualifier_string() const {
272  const Json::Value& v = Storage("qualifierString");
273  if (v == Json::Value::null) return StringPiece("");
274  return StringPiece(v.asCString());
275  }
276 
281  void set_qualifier_string(const StringPiece& value) {
282  *MutableStorage("qualifierString") = value.data();
283  }
284 
290  bool has_type() const {
291  return Storage().isMember("type");
292  }
293 
297  void clear_type() {
298  MutableStorage()->removeMember("type");
299  }
300 
301 
305  const StringPiece get_type() const {
306  const Json::Value& v = Storage("type");
307  if (v == Json::Value::null) return StringPiece("");
308  return StringPiece(v.asCString());
309  }
310 
323  void set_type(const StringPiece& value) {
324  *MutableStorage("type") = value.data();
325  }
326 
327  private:
328  void operator=(const BigtableColumn&);
329 }; // BigtableColumn
330 } // namespace google_bigquery_api
331 #endif // GOOGLE_BIGQUERY_API_BIGTABLE_COLUMN_H_
bool has_qualifier_string() const
Definition: bigtable_column.h:256
bool has_qualifier_encoded() const
Definition: bigtable_column.h:213
void set_field_name(const StringPiece &value)
Definition: bigtable_column.h:164
const StringPiece get_qualifier_encoded() const
Definition: bigtable_column.h:228
void set_type(const StringPiece &value)
Definition: bigtable_column.h:323
const StringPiece get_type() const
Definition: bigtable_column.h:305
const StringPiece GetTypeName() const
Definition: bigtable_column.h:83
bool get_only_read_latest() const
Definition: bigtable_column.h:188
Definition: bigtable_column.h:50
Definition: aggregate_classification_metrics.cc:39
const StringPiece get_qualifier_string() const
Definition: bigtable_column.h:271
void clear_only_read_latest()
Definition: bigtable_column.h:180
bool has_type() const
Definition: bigtable_column.h:290
bool has_field_name() const
Definition: bigtable_column.h:134
void set_qualifier_string(const StringPiece &value)
Definition: bigtable_column.h:281
Definition: aggregate_classification_metrics.h:37
bool has_encoding() const
Definition: bigtable_column.h:92
void clear_qualifier_encoded()
Definition: bigtable_column.h:220
const StringPiece get_field_name() const
Definition: bigtable_column.h:149
bool has_only_read_latest() const
Definition: bigtable_column.h:173
void clear_field_name()
Definition: bigtable_column.h:141
void clear_encoding()
Definition: bigtable_column.h:99
void set_qualifier_encoded(const StringPiece &value)
Definition: bigtable_column.h:247
void clear_qualifier_string()
Definition: bigtable_column.h:263
void set_encoding(const StringPiece &value)
Definition: bigtable_column.h:125
const StringPiece get_encoding() const
Definition: bigtable_column.h:107
void set_only_read_latest(bool value)
Definition: bigtable_column.h:203
void clear_type()
Definition: bigtable_column.h:297