30 #ifndef GOOGLE_DNS_API_PROJECT_H_ 31 #define GOOGLE_DNS_API_PROJECT_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" 39 #include "google/dns_api/quota.h" 55 class Project :
public client::JsonCppData {
69 explicit Project(
const Json::Value& storage);
76 explicit Project(Json::Value* storage);
89 return StringPiece(
"google_dns_api::Project");
98 return Storage().isMember(
"id");
105 MutableStorage()->removeMember(
"id");
113 const Json::Value& v = Storage(
"id");
114 if (v == Json::Value::null)
return StringPiece(
"");
115 return StringPiece(v.asCString());
126 *MutableStorage(
"id") = value.data();
135 return Storage().isMember(
"kind");
142 MutableStorage()->removeMember(
"kind");
150 const Json::Value& v = Storage(
"kind");
151 if (v == Json::Value::null)
return StringPiece(
"");
152 return StringPiece(v.asCString());
164 *MutableStorage(
"kind") = value.data();
173 return Storage().isMember(
"number");
180 MutableStorage()->removeMember(
"number");
188 const Json::Value& storage = Storage(
"number");
189 return client::JsonValueToCppValueHelper<uint64 >(storage);
201 client::SetJsonValueFromCppValueHelper<uint64 >(
202 value, MutableStorage(
"number"));
211 return Storage().isMember(
"quota");
218 MutableStorage()->removeMember(
"quota");
225 const Quota get_quota()
const;
234 Quota mutable_quota();
237 void operator=(
const Project&);
240 #endif // GOOGLE_DNS_API_PROJECT_H_ void set_id(const StringPiece &value)
Definition: project.h:125
const StringPiece GetTypeName() const
Definition: project.h:88
const StringPiece get_id() const
Definition: project.h:112
void clear_id()
Definition: project.h:104
void set_kind(const StringPiece &value)
Definition: project.h:163
uint64 get_number() const
Definition: project.h:187
bool has_id() const
Definition: project.h:97
void clear_number()
Definition: project.h:179
const StringPiece get_kind() const
Definition: project.h:149
bool has_number() const
Definition: project.h:172
void set_number(uint64 value)
Definition: project.h:200
void clear_kind()
Definition: project.h:141
void clear_quota()
Definition: project.h:217
bool has_kind() const
Definition: project.h:134
bool has_quota() const
Definition: project.h:210