30 #ifndef GOOGLE_CLOUDBILLING_API_EXPR_H_ 31 #define GOOGLE_CLOUDBILLING_API_EXPR_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 98 class Expr :
public client::JsonCppData {
112 explicit Expr(
const Json::Value& storage);
119 explicit Expr(Json::Value* storage);
132 return StringPiece(
"google_cloudbilling_api::Expr");
141 return Storage().isMember(
"description");
148 MutableStorage()->removeMember(
"description");
156 const Json::Value& v = Storage(
"description");
157 if (v == Json::Value::null)
return StringPiece(
"");
158 return StringPiece(v.asCString());
170 *MutableStorage(
"description") = value.data();
179 return Storage().isMember(
"expression");
186 MutableStorage()->removeMember(
"expression");
194 const Json::Value& v = Storage(
"expression");
195 if (v == Json::Value::null)
return StringPiece(
"");
196 return StringPiece(v.asCString());
208 *MutableStorage(
"expression") = value.data();
217 return Storage().isMember(
"location");
224 MutableStorage()->removeMember(
"location");
232 const Json::Value& v = Storage(
"location");
233 if (v == Json::Value::null)
return StringPiece(
"");
234 return StringPiece(v.asCString());
246 *MutableStorage(
"location") = value.data();
255 return Storage().isMember(
"title");
262 MutableStorage()->removeMember(
"title");
270 const Json::Value& v = Storage(
"title");
271 if (v == Json::Value::null)
return StringPiece(
"");
272 return StringPiece(v.asCString());
285 *MutableStorage(
"title") = value.data();
289 void operator=(
const Expr&);
292 #endif // GOOGLE_CLOUDBILLING_API_EXPR_H_ bool has_title() const
Definition: expr.h:254
void clear_description()
Definition: expr.h:147
void clear_title()
Definition: expr.h:261
const StringPiece GetTypeName() const
Definition: expr.h:131
void set_description(const StringPiece &value)
Definition: expr.h:169
void clear_expression()
Definition: expr.h:185
void set_location(const StringPiece &value)
Definition: expr.h:245
const StringPiece get_location() const
Definition: expr.h:231
bool has_location() const
Definition: expr.h:216
void set_title(const StringPiece &value)
Definition: expr.h:284
Definition: aggregation_info.h:39
const StringPiece get_description() const
Definition: expr.h:155
void clear_location()
Definition: expr.h:223
const StringPiece get_title() const
Definition: expr.h:269
void set_expression(const StringPiece &value)
Definition: expr.h:207
bool has_expression() const
Definition: expr.h:178
const StringPiece get_expression() const
Definition: expr.h:193
bool has_description() const
Definition: expr.h:140
Definition: aggregation_info.cc:42