30 #ifndef GOOGLE_BIGQUERY_API_ROW_H_ 31 #define GOOGLE_BIGQUERY_API_ROW_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/entry.h" 52 class Row :
public client::JsonCppData {
66 explicit Row(
const Json::Value& storage);
73 explicit Row(Json::Value* storage);
86 return StringPiece(
"google_bigquery_api::Row");
95 return Storage().isMember(
"actualLabel");
102 MutableStorage()->removeMember(
"actualLabel");
110 const Json::Value& v = Storage(
"actualLabel");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
123 *MutableStorage(
"actualLabel") = value.data();
132 return Storage().isMember(
"entries");
139 MutableStorage()->removeMember(
"entries");
146 const client::JsonCppArray<Entry > get_entries()
const;
155 client::JsonCppArray<Entry > mutable_entries();
158 void operator=(
const Row&);
161 #endif // GOOGLE_BIGQUERY_API_ROW_H_ void clear_entries()
Definition: row.h:138
bool has_entries() const
Definition: row.h:131
const StringPiece GetTypeName() const
Definition: row.h:85
const StringPiece get_actual_label() const
Definition: row.h:109
bool has_actual_label() const
Definition: row.h:94
Definition: aggregate_classification_metrics.cc:39
void set_actual_label(const StringPiece &value)
Definition: row.h:122
void clear_actual_label()
Definition: row.h:101
Definition: aggregate_classification_metrics.h:37