30 #ifndef GOOGLE_BIGQUERY_API_DESTINATION_TABLE_PROPERTIES_H_ 31 #define GOOGLE_BIGQUERY_API_DESTINATION_TABLE_PROPERTIES_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_bigquery_api::DestinationTableProperties");
93 return Storage().isMember(
"description");
100 MutableStorage()->removeMember(
"description");
108 const Json::Value& v = Storage(
"description");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
124 *MutableStorage(
"description") = value.data();
133 return Storage().isMember(
"friendlyName");
140 MutableStorage()->removeMember(
"friendlyName");
148 const Json::Value& v = Storage(
"friendlyName");
149 if (v == Json::Value::null)
return StringPiece(
"");
150 return StringPiece(v.asCString());
164 *MutableStorage(
"friendlyName") = value.data();
173 return Storage().isMember(
"labels");
180 MutableStorage()->removeMember(
"labels");
187 const client::JsonCppAssociativeArray<string >
get_labels()
const {
188 const Json::Value& storage = Storage(
"labels");
189 return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
203 Json::Value* storage = MutableStorage(
"labels");
204 return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
211 #endif // GOOGLE_BIGQUERY_API_DESTINATION_TABLE_PROPERTIES_H_ void set_friendly_name(const StringPiece &value)
Definition: destination_table_properties.h:163
void clear_friendly_name()
Definition: destination_table_properties.h:139
client::JsonCppAssociativeArray< string > mutable_labels()
Definition: destination_table_properties.h:202
const StringPiece GetTypeName() const
Definition: destination_table_properties.h:83
Definition: aggregate_classification_metrics.cc:39
void set_description(const StringPiece &value)
Definition: destination_table_properties.h:123
void clear_description()
Definition: destination_table_properties.h:99
Definition: destination_table_properties.h:50
const StringPiece get_description() const
Definition: destination_table_properties.h:107
Definition: aggregate_classification_metrics.h:37
bool has_labels() const
Definition: destination_table_properties.h:172
bool has_friendly_name() const
Definition: destination_table_properties.h:132
const client::JsonCppAssociativeArray< string > get_labels() const
Definition: destination_table_properties.h:187
const StringPiece get_friendly_name() const
Definition: destination_table_properties.h:147
void clear_labels()
Definition: destination_table_properties.h:179
bool has_description() const
Definition: destination_table_properties.h:92