30 #ifndef GOOGLE_CLOUDBILLING_API_PROJECT_BILLING_INFO_H_ 31 #define GOOGLE_CLOUDBILLING_API_PROJECT_BILLING_INFO_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 86 return StringPiece(
"google_cloudbilling_api::ProjectBillingInfo");
95 return Storage().isMember(
"billingAccountName");
102 MutableStorage()->removeMember(
"billingAccountName");
110 const Json::Value& v = Storage(
"billingAccountName");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
124 *MutableStorage(
"billingAccountName") = value.data();
133 return Storage().isMember(
"billingEnabled");
140 MutableStorage()->removeMember(
"billingEnabled");
148 const Json::Value& storage = Storage(
"billingEnabled");
149 return client::JsonValueToCppValueHelper<bool >(storage);
163 client::SetJsonValueFromCppValueHelper<bool >(
164 value, MutableStorage(
"billingEnabled"));
173 return Storage().isMember(
"name");
180 MutableStorage()->removeMember(
"name");
188 const Json::Value& v = Storage(
"name");
189 if (v == Json::Value::null)
return StringPiece(
"");
190 return StringPiece(v.asCString());
204 *MutableStorage(
"name") = value.data();
213 return Storage().isMember(
"projectId");
220 MutableStorage()->removeMember(
"projectId");
228 const Json::Value& v = Storage(
"projectId");
229 if (v == Json::Value::null)
return StringPiece(
"");
230 return StringPiece(v.asCString());
243 *MutableStorage(
"projectId") = value.data();
250 #endif // GOOGLE_CLOUDBILLING_API_PROJECT_BILLING_INFO_H_ void set_billing_enabled(bool value)
Definition: project_billing_info.h:162
const StringPiece get_name() const
Definition: project_billing_info.h:187
const StringPiece get_project_id() const
Definition: project_billing_info.h:227
void set_name(const StringPiece &value)
Definition: project_billing_info.h:203
void set_project_id(const StringPiece &value)
Definition: project_billing_info.h:242
void clear_name()
Definition: project_billing_info.h:179
bool has_project_id() const
Definition: project_billing_info.h:212
const StringPiece GetTypeName() const
Definition: project_billing_info.h:85
Definition: aggregation_info.h:39
bool has_billing_enabled() const
Definition: project_billing_info.h:132
void clear_billing_enabled()
Definition: project_billing_info.h:139
bool get_billing_enabled() const
Definition: project_billing_info.h:147
const StringPiece get_billing_account_name() const
Definition: project_billing_info.h:109
bool has_name() const
Definition: project_billing_info.h:172
Definition: project_billing_info.h:52
void set_billing_account_name(const StringPiece &value)
Definition: project_billing_info.h:123
void clear_project_id()
Definition: project_billing_info.h:219
Definition: aggregation_info.cc:42
void clear_billing_account_name()
Definition: project_billing_info.h:101
bool has_billing_account_name() const
Definition: project_billing_info.h:94