30 #ifndef GOOGLE_BIGQUERY_API_TIME_PARTITIONING_H_ 31 #define GOOGLE_BIGQUERY_API_TIME_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" 85 return StringPiece(
"google_bigquery_api::TimePartitioning");
94 return Storage().isMember(
"expirationMs");
101 MutableStorage()->removeMember(
"expirationMs");
109 const Json::Value& storage = Storage(
"expirationMs");
110 return client::JsonValueToCppValueHelper<int64 >(storage);
123 client::SetJsonValueFromCppValueHelper<int64 >(
124 value, MutableStorage(
"expirationMs"));
133 return Storage().isMember(
"field");
140 MutableStorage()->removeMember(
"field");
148 const Json::Value& v = Storage(
"field");
149 if (v == Json::Value::null)
return StringPiece(
"");
150 return StringPiece(v.asCString());
165 *MutableStorage(
"field") = value.data();
175 return Storage().isMember(
"requirePartitionFilter");
182 MutableStorage()->removeMember(
"requirePartitionFilter");
190 const Json::Value& storage = Storage(
"requirePartitionFilter");
191 return client::JsonValueToCppValueHelper<bool >(storage);
199 client::SetJsonValueFromCppValueHelper<bool >(
200 value, MutableStorage(
"requirePartitionFilter"));
209 return Storage().isMember(
"type");
216 MutableStorage()->removeMember(
"type");
224 const Json::Value& v = Storage(
"type");
225 if (v == Json::Value::null)
return StringPiece(
"");
226 return StringPiece(v.asCString());
238 *MutableStorage(
"type") = value.data();
245 #endif // GOOGLE_BIGQUERY_API_TIME_PARTITIONING_H_ Definition: time_partitioning.h:51
void clear_field()
Definition: time_partitioning.h:139
void clear_require_partition_filter()
Definition: time_partitioning.h:181
int64 get_expiration_ms() const
Definition: time_partitioning.h:108
Definition: aggregate_classification_metrics.cc:39
const StringPiece get_field() const
Definition: time_partitioning.h:147
bool has_type() const
Definition: time_partitioning.h:208
bool get_require_partition_filter() const
Definition: time_partitioning.h:189
void clear_type()
Definition: time_partitioning.h:215
bool has_expiration_ms() const
Definition: time_partitioning.h:93
Definition: aggregate_classification_metrics.h:37
void set_require_partition_filter(bool value)
Definition: time_partitioning.h:198
void set_type(const StringPiece &value)
Definition: time_partitioning.h:237
bool has_field() const
Definition: time_partitioning.h:132
bool has_require_partition_filter() const
Definition: time_partitioning.h:174
const StringPiece get_type() const
Definition: time_partitioning.h:223
void set_field(const StringPiece &value)
Definition: time_partitioning.h:164
const StringPiece GetTypeName() const
Definition: time_partitioning.h:84
void set_expiration_ms(int64 value)
Definition: time_partitioning.h:122
void clear_expiration_ms()
Definition: time_partitioning.h:100