30 #ifndef GOOGLE_FITNESS_API_AGGREGATE_BY_H_ 31 #define GOOGLE_FITNESS_API_AGGREGATE_BY_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_fitness_api::AggregateBy");
93 return Storage().isMember(
"dataSourceId");
100 MutableStorage()->removeMember(
"dataSourceId");
108 const Json::Value& v = Storage(
"dataSourceId");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
126 *MutableStorage(
"dataSourceId") = value.data();
135 return Storage().isMember(
"dataTypeName");
142 MutableStorage()->removeMember(
"dataTypeName");
150 const Json::Value& v = Storage(
"dataTypeName");
151 if (v == Json::Value::null)
return StringPiece(
"");
152 return StringPiece(v.asCString());
168 *MutableStorage(
"dataTypeName") = value.data();
175 #endif // GOOGLE_FITNESS_API_AGGREGATE_BY_H_ const StringPiece get_data_source_id() const
Definition: aggregate_by.h:107
const StringPiece get_data_type_name() const
Definition: aggregate_by.h:149
void set_data_type_name(const StringPiece &value)
Definition: aggregate_by.h:167
void set_data_source_id(const StringPiece &value)
Definition: aggregate_by.h:125
bool has_data_source_id() const
Definition: aggregate_by.h:92
void clear_data_type_name()
Definition: aggregate_by.h:141
Definition: aggregate_by.h:50
Definition: aggregate_bucket.h:42
void clear_data_source_id()
Definition: aggregate_by.h:99
bool has_data_type_name() const
Definition: aggregate_by.h:134
Definition: aggregate_bucket.cc:44
const StringPiece GetTypeName() const
Definition: aggregate_by.h:83