30 #ifndef GOOGLE_BIGQUERY_API_RANGE_PARTITIONING_H_ 31 #define GOOGLE_BIGQUERY_API_RANGE_PARTITIONING_H_ 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" 92 return StringPiece(
"google_bigquery_api::RangePartitioningRange");
101 return Storage().isMember(
"end");
108 MutableStorage()->removeMember(
"end");
116 const Json::Value& storage = Storage(
"end");
117 return client::JsonValueToCppValueHelper<int64 >(storage);
128 client::SetJsonValueFromCppValueHelper<int64 >(
129 value, MutableStorage(
"end"));
138 return Storage().isMember(
"interval");
145 MutableStorage()->removeMember(
"interval");
153 const Json::Value& storage = Storage(
"interval");
154 return client::JsonValueToCppValueHelper<int64 >(storage);
165 client::SetJsonValueFromCppValueHelper<int64 >(
166 value, MutableStorage(
"interval"));
175 return Storage().isMember(
"start");
182 MutableStorage()->removeMember(
"start");
190 const Json::Value& storage = Storage(
"start");
191 return client::JsonValueToCppValueHelper<int64 >(storage);
202 client::SetJsonValueFromCppValueHelper<int64 >(
203 value, MutableStorage(
"start"));
241 return StringPiece(
"google_bigquery_api::RangePartitioning");
250 return Storage().isMember(
"field");
257 MutableStorage()->removeMember(
"field");
265 const Json::Value& v = Storage(
"field");
266 if (v == Json::Value::null)
return StringPiece(
"");
267 return StringPiece(v.asCString());
280 *MutableStorage(
"field") = value.data();
289 return Storage().isMember(
"range");
296 MutableStorage()->removeMember(
"range");
304 const Json::Value& storage = Storage(
"range");
305 return client::JsonValueToCppValueHelper<RangePartitioningRange >(storage);
316 Json::Value* storage = MutableStorage(
"range");
317 return client::JsonValueToMutableCppValueHelper<RangePartitioningRange >(storage);
324 #endif // GOOGLE_BIGQUERY_API_RANGE_PARTITIONING_H_ bool has_end() const
Definition: range_partitioning.h:100
const StringPiece GetTypeName() const
Definition: range_partitioning.h:240
int64 get_end() const
Definition: range_partitioning.h:115
void set_field(const StringPiece &value)
Definition: range_partitioning.h:279
void clear_end()
Definition: range_partitioning.h:107
Definition: aggregate_classification_metrics.cc:39
bool has_start() const
Definition: range_partitioning.h:174
void clear_interval()
Definition: range_partitioning.h:144
void clear_start()
Definition: range_partitioning.h:181
const StringPiece get_field() const
Definition: range_partitioning.h:264
bool has_range() const
Definition: range_partitioning.h:288
int64 get_start() const
Definition: range_partitioning.h:189
Definition: range_partitioning.h:51
Definition: aggregate_classification_metrics.h:37
void clear_field()
Definition: range_partitioning.h:256
void set_end(int64 value)
Definition: range_partitioning.h:127
bool has_interval() const
Definition: range_partitioning.h:137
RangePartitioningRange mutable_range()
Definition: range_partitioning.h:315
void clear_range()
Definition: range_partitioning.h:295
void set_interval(int64 value)
Definition: range_partitioning.h:164
void set_start(int64 value)
Definition: range_partitioning.h:201
const RangePartitioningRange get_range() const
Definition: range_partitioning.h:303
int64 get_interval() const
Definition: range_partitioning.h:152
Definition: range_partitioning.h:58
bool has_field() const
Definition: range_partitioning.h:249
const StringPiece GetTypeName() const
Definition: range_partitioning.h:91