30 #ifndef GOOGLE_BIGQUERY_API_TABLE_FIELD_SCHEMA_H_ 31 #define GOOGLE_BIGQUERY_API_TABLE_FIELD_SCHEMA_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/bigquery_api/table_field_schema.h" 94 return StringPiece(
"google_bigquery_api::TableFieldSchemaCategories");
103 return Storage().isMember(
"names");
110 MutableStorage()->removeMember(
"names");
118 const Json::Value& storage = Storage(
"names");
119 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
131 Json::Value* storage = MutableStorage(
"names");
132 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
177 return StringPiece(
"google_bigquery_api::TableFieldSchemaPolicyTags");
186 return Storage().isMember(
"names");
193 MutableStorage()->removeMember(
"names");
201 const Json::Value& storage = Storage(
"names");
202 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
215 Json::Value* storage = MutableStorage(
"names");
216 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
254 return StringPiece(
"google_bigquery_api::TableFieldSchema");
263 return Storage().isMember(
"categories");
270 MutableStorage()->removeMember(
"categories");
278 const Json::Value& storage = Storage(
"categories");
279 return client::JsonValueToCppValueHelper<TableFieldSchemaCategories >(storage);
292 Json::Value* storage = MutableStorage(
"categories");
293 return client::JsonValueToMutableCppValueHelper<TableFieldSchemaCategories >(storage);
302 return Storage().isMember(
"description");
309 MutableStorage()->removeMember(
"description");
317 const Json::Value& v = Storage(
"description");
318 if (v == Json::Value::null)
return StringPiece(
"");
319 return StringPiece(v.asCString());
330 *MutableStorage(
"description") = value.data();
339 return Storage().isMember(
"fields");
346 MutableStorage()->removeMember(
"fields");
353 const client::JsonCppArray<TableFieldSchema > get_fields()
const;
363 client::JsonCppArray<TableFieldSchema > mutable_fields();
371 return Storage().isMember(
"mode");
378 MutableStorage()->removeMember(
"mode");
386 const Json::Value& v = Storage(
"mode");
387 if (v == Json::Value::null)
return StringPiece(
"");
388 return StringPiece(v.asCString());
400 *MutableStorage(
"mode") = value.data();
409 return Storage().isMember(
"name");
416 MutableStorage()->removeMember(
"name");
424 const Json::Value& v = Storage(
"name");
425 if (v == Json::Value::null)
return StringPiece(
"");
426 return StringPiece(v.asCString());
439 *MutableStorage(
"name") = value.data();
448 return Storage().isMember(
"policyTags");
455 MutableStorage()->removeMember(
"policyTags");
463 const Json::Value& storage = Storage(
"policyTags");
464 return client::JsonValueToCppValueHelper<TableFieldSchemaPolicyTags >(storage);
473 Json::Value* storage = MutableStorage(
"policyTags");
474 return client::JsonValueToMutableCppValueHelper<TableFieldSchemaPolicyTags >(storage);
483 return Storage().isMember(
"type");
490 MutableStorage()->removeMember(
"type");
498 const Json::Value& v = Storage(
"type");
499 if (v == Json::Value::null)
return StringPiece(
"");
500 return StringPiece(v.asCString());
515 *MutableStorage(
"type") = value.data();
522 #endif // GOOGLE_BIGQUERY_API_TABLE_FIELD_SCHEMA_H_
const TableFieldSchemaPolicyTags get_policy_tags() const
Definition: table_field_schema.h:462
TableFieldSchemaCategories mutable_categories()
Definition: table_field_schema.h:291
const StringPiece get_mode() const
Definition: table_field_schema.h:385
bool has_fields() const
Definition: table_field_schema.h:338
bool has_mode() const
Definition: table_field_schema.h:370
Definition: table_field_schema.h:60
void set_name(const StringPiece &value)
Definition: table_field_schema.h:438
void clear_name()
Definition: table_field_schema.h:415
void set_description(const StringPiece &value)
Definition: table_field_schema.h:329
void set_mode(const StringPiece &value)
Definition: table_field_schema.h:399
Definition: aggregate_classification_metrics.cc:39
TableFieldSchemaPolicyTags mutable_policyTags()
Definition: table_field_schema.h:472
void clear_mode()
Definition: table_field_schema.h:377
void clear_fields()
Definition: table_field_schema.h:345
void clear_type()
Definition: table_field_schema.h:489
bool has_type() const
Definition: table_field_schema.h:482
void clear_description()
Definition: table_field_schema.h:308
const client::JsonCppArray< string > get_names() const
Definition: table_field_schema.h:117
Definition: aggregate_classification_metrics.h:37
const StringPiece GetTypeName() const
Definition: table_field_schema.h:93
bool has_name() const
Definition: table_field_schema.h:408
bool has_categories() const
Definition: table_field_schema.h:262
const StringPiece GetTypeName() const
Definition: table_field_schema.h:253
Definition: table_field_schema.h:52
void set_type(const StringPiece &value)
Definition: table_field_schema.h:514
const StringPiece get_name() const
Definition: table_field_schema.h:423
const StringPiece get_description() const
Definition: table_field_schema.h:316
const TableFieldSchemaCategories get_categories() const
Definition: table_field_schema.h:277
bool has_policy_tags() const
Definition: table_field_schema.h:447
void clear_names()
Definition: table_field_schema.h:109
bool has_description() const
Definition: table_field_schema.h:301
void clear_categories()
Definition: table_field_schema.h:269
client::JsonCppArray< string > mutable_names()
Definition: table_field_schema.h:130
const StringPiece get_type() const
Definition: table_field_schema.h:497
void clear_policy_tags()
Definition: table_field_schema.h:454
bool has_names() const
Definition: table_field_schema.h:102