30 #ifndef GOOGLE_CLOUDBILLING_API_AGGREGATION_INFO_H_ 31 #define GOOGLE_CLOUDBILLING_API_AGGREGATION_INFO_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_cloudbilling_api::AggregationInfo");
94 return Storage().isMember(
"aggregationCount");
101 MutableStorage()->removeMember(
"aggregationCount");
109 const Json::Value& storage = Storage(
"aggregationCount");
110 return client::JsonValueToCppValueHelper<int32 >(storage);
123 client::SetJsonValueFromCppValueHelper<int32 >(
124 value, MutableStorage(
"aggregationCount"));
133 return Storage().isMember(
"aggregationInterval");
140 MutableStorage()->removeMember(
"aggregationInterval");
148 const Json::Value& v = Storage(
"aggregationInterval");
149 if (v == Json::Value::null)
return StringPiece(
"");
150 return StringPiece(v.asCString());
158 *MutableStorage(
"aggregationInterval") = value.data();
167 return Storage().isMember(
"aggregationLevel");
174 MutableStorage()->removeMember(
"aggregationLevel");
182 const Json::Value& v = Storage(
"aggregationLevel");
183 if (v == Json::Value::null)
return StringPiece(
"");
184 return StringPiece(v.asCString());
192 *MutableStorage(
"aggregationLevel") = value.data();
199 #endif // GOOGLE_CLOUDBILLING_API_AGGREGATION_INFO_H_ bool has_aggregation_interval() const
Definition: aggregation_info.h:132
void clear_aggregation_interval()
Definition: aggregation_info.h:139
bool has_aggregation_count() const
Definition: aggregation_info.h:93
void clear_aggregation_level()
Definition: aggregation_info.h:173
void set_aggregation_count(int32 value)
Definition: aggregation_info.h:122
int32 get_aggregation_count() const
Definition: aggregation_info.h:108
void clear_aggregation_count()
Definition: aggregation_info.h:100
Definition: aggregation_info.h:51
void set_aggregation_level(const StringPiece &value)
Definition: aggregation_info.h:191
Definition: aggregation_info.h:39
const StringPiece get_aggregation_level() const
Definition: aggregation_info.h:181
void set_aggregation_interval(const StringPiece &value)
Definition: aggregation_info.h:157
const StringPiece get_aggregation_interval() const
Definition: aggregation_info.h:147
const StringPiece GetTypeName() const
Definition: aggregation_info.h:84
Definition: aggregation_info.cc:42
bool has_aggregation_level() const
Definition: aggregation_info.h:166