games  v1
Public Member Functions | Protected Member Functions | List of all members
google_games_api::GamesServiceBaseRequest Class Reference

#include <games_service.h>

Inheritance diagram for google_games_api::GamesServiceBaseRequest:
google_games_api::AchievementDefinitionsResource_ListMethod google_games_api::AchievementsResource_IncrementMethod google_games_api::AchievementsResource_ListMethod google_games_api::AchievementsResource_RevealMethod google_games_api::AchievementsResource_SetStepsAtLeastMethod google_games_api::AchievementsResource_UnlockMethod google_games_api::AchievementsResource_UpdateMultipleMethod google_games_api::ApplicationsResource_GetMethod google_games_api::ApplicationsResource_PlayedMethod google_games_api::ApplicationsResource_VerifyMethod google_games_api::EventsResource_ListByPlayerMethod google_games_api::EventsResource_ListDefinitionsMethod google_games_api::EventsResource_RecordMethod google_games_api::LeaderboardsResource_GetMethod google_games_api::LeaderboardsResource_ListMethod google_games_api::MetagameResource_GetMetagameConfigMethod google_games_api::MetagameResource_ListCategoriesByPlayerMethod google_games_api::PlayersResource_GetMethod google_games_api::PlayersResource_ListMethod google_games_api::PushtokensResource_RemoveMethod google_games_api::PushtokensResource_UpdateMethod google_games_api::RevisionsResource_CheckMethod google_games_api::RoomsResource_CreateMethod google_games_api::RoomsResource_DeclineMethod google_games_api::RoomsResource_DismissMethod google_games_api::RoomsResource_GetMethod google_games_api::RoomsResource_JoinMethod google_games_api::RoomsResource_LeaveMethod google_games_api::RoomsResource_ListMethod google_games_api::RoomsResource_ReportStatusMethod google_games_api::ScoresResource_GetMethod google_games_api::ScoresResource_ListMethod google_games_api::ScoresResource_ListWindowMethod google_games_api::ScoresResource_SubmitMethod google_games_api::ScoresResource_SubmitMultipleMethod google_games_api::SnapshotsResource_GetMethod google_games_api::SnapshotsResource_ListMethod google_games_api::TurnBasedMatchesResource_CancelMethod google_games_api::TurnBasedMatchesResource_CreateMethod google_games_api::TurnBasedMatchesResource_DeclineMethod google_games_api::TurnBasedMatchesResource_DismissMethod google_games_api::TurnBasedMatchesResource_FinishMethod google_games_api::TurnBasedMatchesResource_GetMethod google_games_api::TurnBasedMatchesResource_JoinMethod google_games_api::TurnBasedMatchesResource_LeaveMethod google_games_api::TurnBasedMatchesResource_LeaveTurnMethod google_games_api::TurnBasedMatchesResource_ListMethod google_games_api::TurnBasedMatchesResource_RematchMethod google_games_api::TurnBasedMatchesResource_SyncMethod google_games_api::TurnBasedMatchesResource_TakeTurnMethod

Public Member Functions

 GamesServiceBaseRequest (const client::ClientService *service, client::AuthorizationCredential *credential, client::HttpRequest::HttpMethod method, const StringPiece &uri_template)
 
virtual ~GamesServiceBaseRequest ()
 
void clear_alt ()
 
const string & get_alt () const
 
string * mutable_alt ()
 
void set_alt (const string &value)
 
void clear_fields ()
 
const string & get_fields () const
 
string * mutable_fields ()
 
void set_fields (const string &value)
 
void clear_key ()
 
const string & get_key () const
 
string * mutable_key ()
 
void set_key (const string &value)
 
void clear_oauth_token ()
 
const string & get_oauth_token () const
 
string * mutable_oauthToken ()
 
void set_oauth_token (const string &value)
 
void clear_pretty_print ()
 
bool get_pretty_print () const
 
void set_pretty_print (bool value)
 
void clear_quota_user ()
 
const string & get_quota_user () const
 
string * mutable_quotaUser ()
 
void set_quota_user (const string &value)
 
void clear_user_ip ()
 
const string & get_user_ip () const
 
string * mutable_userIp ()
 
void set_user_ip (const string &value)
 
virtual util::Status AppendVariable (const StringPiece &variable_name, const client::UriTemplateConfig &config, string *target)
 
virtual util::Status AppendOptionalQueryParameters (string *target)
 

Protected Member Functions

void AddJsonContentToRequest (const client::JsonCppData *content)
 

Detailed Description

Implements a common base method for all methods within the GamesService.

This class defines all the attributes common across all methods. It does not pertain to any specific service API so is not normally explicitly instantiated.

Constructor & Destructor Documentation

◆ GamesServiceBaseRequest()

google_games_api::GamesServiceBaseRequest::GamesServiceBaseRequest ( const client::ClientService *  service,
client::AuthorizationCredential *  credential,
client::HttpRequest::HttpMethod  method,
const StringPiece &  uri_template 
)

Standard constructor.

Parameters
[in]serviceThe service instance to send to when executed. In practice this will be supplied internally by the service when it acts as a method factory.
[in]credentialIf not NULL then the credential to authorize with. In practice this is supplied by the user code that is creating the method instance.
[in]methodThe HTTP method to use for the underlying HTTP request. In practice this is specified by the particular API endpoint and supplied internally by the derived class for that endpoint.
[in]uri_templateThe RFC 6570 URI Template specifying the url to invoke The parameters in the template should be resolvable attributes. In practice this parameter is supplied internally by the derived class for the endpoint.

◆ ~GamesServiceBaseRequest()

google_games_api::GamesServiceBaseRequest::~GamesServiceBaseRequest ( )
virtual

Standard destructor.

Member Function Documentation

◆ AddJsonContentToRequest()

void google_games_api::GamesServiceBaseRequest::AddJsonContentToRequest ( const client::JsonCppData *  content)
protected

Prepares the method's HTTP request to send body content as JSON.

Only to be used for method constructors.

◆ AppendOptionalQueryParameters()

util::Status google_games_api::GamesServiceBaseRequest::AppendOptionalQueryParameters ( string *  target)
virtual

Appends the optional query parameters to the target URL.

Parameters
[in,out]targetThe URL string to append to.

Reimplemented in google_games_api::TurnBasedMatchesResource_TakeTurnMethod, google_games_api::TurnBasedMatchesResource_SyncMethod, google_games_api::TurnBasedMatchesResource_RematchMethod, google_games_api::TurnBasedMatchesResource_ListMethod, google_games_api::TurnBasedMatchesResource_LeaveTurnMethod, google_games_api::TurnBasedMatchesResource_LeaveMethod, google_games_api::TurnBasedMatchesResource_JoinMethod, google_games_api::TurnBasedMatchesResource_GetMethod, google_games_api::TurnBasedMatchesResource_FinishMethod, google_games_api::TurnBasedMatchesResource_DeclineMethod, google_games_api::TurnBasedMatchesResource_CreateMethod, google_games_api::SnapshotsResource_ListMethod, google_games_api::SnapshotsResource_GetMethod, google_games_api::ScoresResource_SubmitMultipleMethod, google_games_api::ScoresResource_SubmitMethod, google_games_api::ScoresResource_ListWindowMethod, google_games_api::ScoresResource_ListMethod, google_games_api::ScoresResource_GetMethod, google_games_api::RoomsResource_ReportStatusMethod, google_games_api::RoomsResource_ListMethod, google_games_api::RoomsResource_LeaveMethod, google_games_api::RoomsResource_JoinMethod, google_games_api::RoomsResource_GetMethod, google_games_api::RoomsResource_DeclineMethod, google_games_api::RoomsResource_CreateMethod, google_games_api::RevisionsResource_CheckMethod, google_games_api::PlayersResource_ListMethod, google_games_api::PlayersResource_GetMethod, google_games_api::MetagameResource_ListCategoriesByPlayerMethod, google_games_api::LeaderboardsResource_ListMethod, google_games_api::LeaderboardsResource_GetMethod, google_games_api::EventsResource_RecordMethod, google_games_api::EventsResource_ListDefinitionsMethod, google_games_api::EventsResource_ListByPlayerMethod, google_games_api::ApplicationsResource_PlayedMethod, google_games_api::ApplicationsResource_GetMethod, google_games_api::AchievementsResource_UpdateMultipleMethod, google_games_api::AchievementsResource_UnlockMethod, google_games_api::AchievementsResource_SetStepsAtLeastMethod, google_games_api::AchievementsResource_ListMethod, google_games_api::AchievementsResource_IncrementMethod, and google_games_api::AchievementDefinitionsResource_ListMethod.

◆ AppendVariable()

util::Status google_games_api::GamesServiceBaseRequest::AppendVariable ( const StringPiece &  variable_name,
const client::UriTemplateConfig &  config,
string *  target 
)
virtual

Appends variable value to the target string.

This is a helper function used to resolve templated variables in the URI supplied to the constructor.

Parameters
[in]variable_nameThe name of the templated variable.
[in]configA pass-through parameter used for lists and maps.
[in,out]targetThe string to append the value to.

Reimplemented in google_games_api::TurnBasedMatchesResource_TakeTurnMethod, google_games_api::TurnBasedMatchesResource_SyncMethod, google_games_api::TurnBasedMatchesResource_RematchMethod, google_games_api::TurnBasedMatchesResource_ListMethod, google_games_api::TurnBasedMatchesResource_LeaveTurnMethod, google_games_api::TurnBasedMatchesResource_LeaveMethod, google_games_api::TurnBasedMatchesResource_JoinMethod, google_games_api::TurnBasedMatchesResource_GetMethod, google_games_api::TurnBasedMatchesResource_FinishMethod, google_games_api::TurnBasedMatchesResource_DismissMethod, google_games_api::TurnBasedMatchesResource_DeclineMethod, google_games_api::TurnBasedMatchesResource_CreateMethod, google_games_api::TurnBasedMatchesResource_CancelMethod, google_games_api::SnapshotsResource_ListMethod, google_games_api::SnapshotsResource_GetMethod, google_games_api::ScoresResource_SubmitMultipleMethod, google_games_api::ScoresResource_SubmitMethod, google_games_api::ScoresResource_ListWindowMethod, google_games_api::ScoresResource_ListMethod, google_games_api::ScoresResource_GetMethod, google_games_api::RoomsResource_ReportStatusMethod, google_games_api::RoomsResource_ListMethod, google_games_api::RoomsResource_LeaveMethod, google_games_api::RoomsResource_JoinMethod, google_games_api::RoomsResource_GetMethod, google_games_api::RoomsResource_DismissMethod, google_games_api::RoomsResource_DeclineMethod, google_games_api::RoomsResource_CreateMethod, google_games_api::RevisionsResource_CheckMethod, google_games_api::PlayersResource_ListMethod, google_games_api::PlayersResource_GetMethod, google_games_api::MetagameResource_ListCategoriesByPlayerMethod, google_games_api::LeaderboardsResource_ListMethod, google_games_api::LeaderboardsResource_GetMethod, google_games_api::EventsResource_RecordMethod, google_games_api::EventsResource_ListDefinitionsMethod, google_games_api::EventsResource_ListByPlayerMethod, google_games_api::ApplicationsResource_VerifyMethod, google_games_api::ApplicationsResource_PlayedMethod, google_games_api::ApplicationsResource_GetMethod, google_games_api::AchievementsResource_UpdateMultipleMethod, google_games_api::AchievementsResource_UnlockMethod, google_games_api::AchievementsResource_SetStepsAtLeastMethod, google_games_api::AchievementsResource_RevealMethod, google_games_api::AchievementsResource_ListMethod, google_games_api::AchievementsResource_IncrementMethod, and google_games_api::AchievementDefinitionsResource_ListMethod.

◆ clear_alt()

void google_games_api::GamesServiceBaseRequest::clear_alt ( )
inline

Clears the 'alt' attribute so it is no longer set.

◆ clear_fields()

void google_games_api::GamesServiceBaseRequest::clear_fields ( )
inline

Clears the 'fields' attribute so it is no longer set.

◆ clear_key()

void google_games_api::GamesServiceBaseRequest::clear_key ( )
inline

Clears the 'key' attribute so it is no longer set.

◆ clear_oauth_token()

void google_games_api::GamesServiceBaseRequest::clear_oauth_token ( )
inline

Clears the 'oauth_token' attribute so it is no longer set.

◆ clear_pretty_print()

void google_games_api::GamesServiceBaseRequest::clear_pretty_print ( )
inline

Clears the 'prettyPrint' attribute so it is no longer set.

◆ clear_quota_user()

void google_games_api::GamesServiceBaseRequest::clear_quota_user ( )
inline

Clears the 'quotaUser' attribute so it is no longer set.

◆ clear_user_ip()

void google_games_api::GamesServiceBaseRequest::clear_user_ip ( )
inline

Clears the 'userIp' attribute so it is no longer set.

◆ get_alt()

const string& google_games_api::GamesServiceBaseRequest::get_alt ( ) const
inline

Gets the optional 'alt' attribute.

If the value is not set then the default value will be returned.

◆ get_fields()

const string& google_games_api::GamesServiceBaseRequest::get_fields ( ) const
inline

Gets the optional 'fields' attribute.

If the value is not set then the default value will be returned.

◆ get_key()

const string& google_games_api::GamesServiceBaseRequest::get_key ( ) const
inline

Gets the optional 'key' attribute.

If the value is not set then the default value will be returned.

◆ get_oauth_token()

const string& google_games_api::GamesServiceBaseRequest::get_oauth_token ( ) const
inline

Gets the optional 'oauth_token' attribute.

If the value is not set then the default value will be returned.

◆ get_pretty_print()

bool google_games_api::GamesServiceBaseRequest::get_pretty_print ( ) const
inline

Gets the optional 'prettyPrint' attribute.

If the value is not set then the default value will be returned.

◆ get_quota_user()

const string& google_games_api::GamesServiceBaseRequest::get_quota_user ( ) const
inline

Gets the optional 'quotaUser' attribute.

If the value is not set then the default value will be returned.

◆ get_user_ip()

const string& google_games_api::GamesServiceBaseRequest::get_user_ip ( ) const
inline

Gets the optional 'userIp' attribute.

If the value is not set then the default value will be returned.

◆ mutable_alt()

string* google_games_api::GamesServiceBaseRequest::mutable_alt ( )
inline

Gets a modifiable pointer to the optional alt' attribute.

Returns
The value can be set by dereferencing the pointer.

◆ mutable_fields()

string* google_games_api::GamesServiceBaseRequest::mutable_fields ( )
inline

Gets a modifiable pointer to the optional fields' attribute.

Returns
The value can be set by dereferencing the pointer.

◆ mutable_key()

string* google_games_api::GamesServiceBaseRequest::mutable_key ( )
inline

Gets a modifiable pointer to the optional key' attribute.

Returns
The value can be set by dereferencing the pointer.

◆ mutable_oauthToken()

string* google_games_api::GamesServiceBaseRequest::mutable_oauthToken ( )
inline

Gets a modifiable pointer to the optional oauth_token' attribute.

Returns
The value can be set by dereferencing the pointer.

◆ mutable_quotaUser()

string* google_games_api::GamesServiceBaseRequest::mutable_quotaUser ( )
inline

Gets a modifiable pointer to the optional quotaUser' attribute.

Returns
The value can be set by dereferencing the pointer.

◆ mutable_userIp()

string* google_games_api::GamesServiceBaseRequest::mutable_userIp ( )
inline

Gets a modifiable pointer to the optional userIp' attribute.

Returns
The value can be set by dereferencing the pointer.

◆ set_alt()

void google_games_api::GamesServiceBaseRequest::set_alt ( const string &  value)
inline

Sets the 'alt' attribute.

Parameters
[in]valueData format for the response.

◆ set_fields()

void google_games_api::GamesServiceBaseRequest::set_fields ( const string &  value)
inline

Sets the 'fields' attribute.

Parameters
[in]valueSelector specifying which fields to include in a partial response.

◆ set_key()

void google_games_api::GamesServiceBaseRequest::set_key ( const string &  value)
inline

Sets the 'key' attribute.

Parameters
[in]valueAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

◆ set_oauth_token()

void google_games_api::GamesServiceBaseRequest::set_oauth_token ( const string &  value)
inline

Sets the 'oauth_token' attribute.

Parameters
[in]valueOAuth 2.0 token for the current user.

◆ set_pretty_print()

void google_games_api::GamesServiceBaseRequest::set_pretty_print ( bool  value)
inline

Sets the 'prettyPrint' attribute.

Parameters
[in]valueReturns response with indentations and line breaks.

◆ set_quota_user()

void google_games_api::GamesServiceBaseRequest::set_quota_user ( const string &  value)
inline

Sets the 'quotaUser' attribute.

Parameters
[in]valueAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.

◆ set_user_ip()

void google_games_api::GamesServiceBaseRequest::set_user_ip ( const string &  value)
inline

Sets the 'userIp' attribute.

Deprecated:
Parameters
[in]valueDeprecated. Please use quotaUser instead.

The documentation for this class was generated from the following files: