24 #ifndef GOOGLE_WEBFONTS_API_WEBFONTS_SERVICE_H_ 25 #define GOOGLE_WEBFONTS_API_WEBFONTS_SERVICE_H_ 28 #include "googleapis/base/macros.h" 29 #include "googleapis/client/service/client_service.h" 30 #include "googleapis/client/util/status.h" 31 #include "googleapis/client/util/uri_template.h" 33 #include "google/webfonts_api/webfont_list.h" 68 class WebfontsService;
78 :
public client::ClientServiceRequest {
102 const client::ClientService* service,
103 client::AuthorizationCredential* credential,
104 client::HttpRequest::HttpMethod method,
105 const StringPiece& uri_template);
118 client::ClearCppValueHelper(&alt_);
127 const string&
get_alt()
const {
return alt_; }
156 _have_fields_ =
false;
157 client::ClearCppValueHelper(&fields_);
174 _have_fields_ =
true;
186 _have_fields_ =
true;
197 client::ClearCppValueHelper(&key_);
206 const string&
get_key()
const {
return key_; }
237 _have_oauth_token_ =
false;
238 client::ClearCppValueHelper(&oauth_token_);
256 _have_oauth_token_ =
true;
257 return &oauth_token_;
267 _have_oauth_token_ =
true;
268 oauth_token_ = value;
277 _have_pretty_print_ =
false;
278 client::ClearCppValueHelper(&pretty_print_);
295 _have_pretty_print_ =
true;
296 pretty_print_ = value;
303 _have_quota_user_ =
false;
304 client::ClearCppValueHelper("a_user_);
322 _have_quota_user_ =
true;
334 _have_quota_user_ =
true;
344 _have_user_ip_ =
false;
345 client::ClearCppValueHelper(&user_ip_);
362 _have_user_ip_ =
true;
374 _have_user_ip_ =
true;
388 virtual util::Status AppendVariable(
389 const StringPiece& variable_name,
390 const client::UriTemplateConfig& config,
398 virtual util::Status AppendOptionalQueryParameters(
string* target);
407 void AddJsonContentToRequest(
const client::JsonCppData *content);
418 bool _have_fields_ : 1;
420 bool _have_oauth_token_ : 1;
421 bool _have_pretty_print_ : 1;
422 bool _have_quota_user_ : 1;
423 bool _have_user_ip_ : 1;
452 client::AuthorizationCredential* _credential_);
465 client::ClearCppValueHelper(&sort_);
506 virtual util::Status AppendVariable(
507 const StringPiece& variable_name,
508 const client::UriTemplateConfig& config,
516 virtual util::Status AppendOptionalQueryParameters(
string* target);
531 return WebfontsServiceBaseRequest::ExecuteAndParseResponse(data);
536 bool _have_sort_ : 1;
555 static const char googleapis_API_NAME[];
560 static const char googleapis_API_VERSION[];
565 static const char googleapis_API_GENERATOR[];
599 client::AuthorizationCredential* _credential_)
const;
671 #endif // GOOGLE_WEBFONTS_API_WEBFONTS_SERVICE_H_ void clear_user_ip()
Definition: webfonts_service.h:343
string * mutable_sort()
Definition: webfonts_service.h:481
string * mutable_key()
Definition: webfonts_service.h:213
const string & get_alt() const
Definition: webfonts_service.h:127
void clear_fields()
Definition: webfonts_service.h:155
Definition: webfont.cc:41
void set_oauth_token(const string &value)
Definition: webfonts_service.h:266
Definition: webfonts_service.h:573
string * mutable_quotaUser()
Definition: webfonts_service.h:321
void set_alt(const string &value)
Definition: webfonts_service.h:145
void clear_alt()
Definition: webfonts_service.h:116
const string & get_oauth_token() const
Definition: webfonts_service.h:247
void set_user_ip(const string &value)
Definition: webfonts_service.h:373
const string & get_sort() const
Definition: webfonts_service.h:474
void set_quota_user(const string &value)
Definition: webfonts_service.h:333
const string & get_user_ip() const
Definition: webfonts_service.h:354
void clear_quota_user()
Definition: webfonts_service.h:302
void set_fields(const string &value)
Definition: webfonts_service.h:185
bool get_pretty_print() const
Definition: webfonts_service.h:287
const WebfontsResource & get_webfonts() const
Definition: webfonts_service.h:627
Definition: webfonts_service.h:550
void clear_pretty_print()
Definition: webfonts_service.h:276
string * mutable_userIp()
Definition: webfonts_service.h:361
void set_pretty_print(bool value)
Definition: webfonts_service.h:294
string * mutable_oauthToken()
Definition: webfonts_service.h:255
Definition: webfonts_service.h:441
Definition: webfont_list.h:52
util::Status ExecuteAndParseResponse(WebfontList *data)
Definition: webfonts_service.h:529
void clear_oauth_token()
Definition: webfonts_service.h:236
~WebfontsResource()
Definition: webfonts_service.h:587
void set_sort(const string &value)
Definition: webfonts_service.h:492
Definition: webfonts_service.h:77
string * mutable_fields()
Definition: webfonts_service.h:173
void clear_sort()
Definition: webfonts_service.h:463
string * mutable_alt()
Definition: webfonts_service.h:134
const string & get_fields() const
Definition: webfonts_service.h:166
void clear_key()
Definition: webfonts_service.h:195
const string & get_key() const
Definition: webfonts_service.h:206
void set_key(const string &value)
Definition: webfonts_service.h:226
const string & get_quota_user() const
Definition: webfonts_service.h:313