#include <translate_service.h>
Detailed Description
Implements a common base method for all methods within the TranslateService.
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
google_translate_api::TranslateServiceBaseRequest::TranslateServiceBaseRequest |
( |
const client::ClientService * |
service, |
|
|
client::AuthorizationCredential * |
credential, |
|
|
client::HttpRequest::HttpMethod |
method, |
|
|
const StringPiece & |
uri_template |
|
) |
| |
Standard constructor.
- Parameters
-
[in] | service | The 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] | credential | If not NULL then the credential to authorize with. In practice this is supplied by the user code that is creating the method instance. |
[in] | method | The 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_template | The 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. |
google_translate_api::TranslateServiceBaseRequest::~TranslateServiceBaseRequest |
( |
| ) |
|
|
virtual |
Member Function Documentation
string* mutable_ google_translate_api::TranslateServiceBaseRequest::$Xgafv |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional $.xgafv
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
void google_translate_api::TranslateServiceBaseRequest::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.
util::Status google_translate_api::TranslateServiceBaseRequest::AppendOptionalQueryParameters |
( |
string * |
target | ) |
|
|
virtual |
util::Status google_translate_api::TranslateServiceBaseRequest::AppendVariable |
( |
const StringPiece & |
variable_name, |
|
|
const client::UriTemplateConfig & |
config, |
|
|
string * |
target |
|
) |
| |
|
virtual |
void google_translate_api::TranslateServiceBaseRequest::clear_access_token |
( |
| ) |
|
|
inline |
Clears the 'access_token
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_alt |
( |
| ) |
|
|
inline |
Clears the 'alt
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_bearer_token |
( |
| ) |
|
|
inline |
Clears the 'bearer_token
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_callback |
( |
| ) |
|
|
inline |
Clears the 'callback
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_fields |
( |
| ) |
|
|
inline |
Clears the 'fields
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_key |
( |
| ) |
|
|
inline |
Clears the 'key
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_oauth_token |
( |
| ) |
|
|
inline |
Clears the 'oauth_token
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_pp |
( |
| ) |
|
|
inline |
Clears the 'pp
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_pretty_print |
( |
| ) |
|
|
inline |
Clears the 'prettyPrint
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_quota_user |
( |
| ) |
|
|
inline |
Clears the 'quotaUser
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_upload_protocol |
( |
| ) |
|
|
inline |
Clears the 'upload_protocol
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_upload_type |
( |
| ) |
|
|
inline |
Clears the 'uploadType
' attribute so it is no longer set.
void google_translate_api::TranslateServiceBaseRequest::clear_xgafv |
( |
| ) |
|
|
inline |
Clears the '$.xgafv
' attribute so it is no longer set.
const string& google_translate_api::TranslateServiceBaseRequest::get_access_token |
( |
| ) |
const |
|
inline |
Gets the optional 'access_token
' attribute.
If the value is not set then the default value will be returned.
const string& google_translate_api::TranslateServiceBaseRequest::get_alt |
( |
| ) |
const |
|
inline |
Gets the optional 'alt
' attribute.
If the value is not set then the default value will be returned.
const string& google_translate_api::TranslateServiceBaseRequest::get_bearer_token |
( |
| ) |
const |
|
inline |
Gets the optional 'bearer_token
' attribute.
If the value is not set then the default value will be returned.
const string& google_translate_api::TranslateServiceBaseRequest::get_callback |
( |
| ) |
const |
|
inline |
Gets the optional 'callback
' attribute.
If the value is not set then the default value will be returned.
const string& google_translate_api::TranslateServiceBaseRequest::get_fields |
( |
| ) |
const |
|
inline |
Gets the optional 'fields
' attribute.
If the value is not set then the default value will be returned.
const string& google_translate_api::TranslateServiceBaseRequest::get_key |
( |
| ) |
const |
|
inline |
Gets the optional 'key
' attribute.
If the value is not set then the default value will be returned.
const string& google_translate_api::TranslateServiceBaseRequest::get_oauth_token |
( |
| ) |
const |
|
inline |
Gets the optional 'oauth_token
' attribute.
If the value is not set then the default value will be returned.
bool google_translate_api::TranslateServiceBaseRequest::get_pp |
( |
| ) |
const |
|
inline |
Gets the optional 'pp
' attribute.
If the value is not set then the default value will be returned.
bool google_translate_api::TranslateServiceBaseRequest::get_pretty_print |
( |
| ) |
const |
|
inline |
Gets the optional 'prettyPrint
' attribute.
If the value is not set then the default value will be returned.
const string& google_translate_api::TranslateServiceBaseRequest::get_quota_user |
( |
| ) |
const |
|
inline |
Gets the optional 'quotaUser
' attribute.
If the value is not set then the default value will be returned.
const string& google_translate_api::TranslateServiceBaseRequest::get_upload_protocol |
( |
| ) |
const |
|
inline |
Gets the optional 'upload_protocol
' attribute.
If the value is not set then the default value will be returned.
const string& google_translate_api::TranslateServiceBaseRequest::get_upload_type |
( |
| ) |
const |
|
inline |
Gets the optional 'uploadType
' attribute.
If the value is not set then the default value will be returned.
const string& google_translate_api::TranslateServiceBaseRequest::get_xgafv |
( |
| ) |
const |
|
inline |
Gets the optional '$.xgafv
' attribute.
If the value is not set then the default value will be returned.
string* google_translate_api::TranslateServiceBaseRequest::mutable_accessToken |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional access_token
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
string* google_translate_api::TranslateServiceBaseRequest::mutable_alt |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional alt
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
string* google_translate_api::TranslateServiceBaseRequest::mutable_bearerToken |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional bearer_token
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
string* google_translate_api::TranslateServiceBaseRequest::mutable_callback |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional callback
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
string* google_translate_api::TranslateServiceBaseRequest::mutable_fields |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional fields
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
string* google_translate_api::TranslateServiceBaseRequest::mutable_key |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional key
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
string* google_translate_api::TranslateServiceBaseRequest::mutable_oauthToken |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional oauth_token
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
string* google_translate_api::TranslateServiceBaseRequest::mutable_quotaUser |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional quotaUser
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
string* google_translate_api::TranslateServiceBaseRequest::mutable_uploadProtocol |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional upload_protocol
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
string* google_translate_api::TranslateServiceBaseRequest::mutable_uploadType |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional uploadType
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
void google_translate_api::TranslateServiceBaseRequest::set_access_token |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'access_token
' attribute.
- Parameters
-
[in] | value | OAuth access token. |
void google_translate_api::TranslateServiceBaseRequest::set_alt |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'alt
' attribute.
- Parameters
-
[in] | value | Data format for response. |
void google_translate_api::TranslateServiceBaseRequest::set_bearer_token |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'bearer_token
' attribute.
- Parameters
-
[in] | value | OAuth bearer token. |
void google_translate_api::TranslateServiceBaseRequest::set_callback |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'callback
' attribute.
- Parameters
-
void google_translate_api::TranslateServiceBaseRequest::set_fields |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'fields
' attribute.
- Parameters
-
[in] | value | Selector specifying which fields to include in a partial response. |
void google_translate_api::TranslateServiceBaseRequest::set_key |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'key
' attribute.
- Parameters
-
[in] | value | API 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. |
void google_translate_api::TranslateServiceBaseRequest::set_oauth_token |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'oauth_token
' attribute.
- Parameters
-
[in] | value | OAuth 2.0 token for the current user. |
void google_translate_api::TranslateServiceBaseRequest::set_pp |
( |
bool |
value | ) |
|
|
inline |
Sets the 'pp
' attribute.
- Parameters
-
[in] | value | Pretty-print response. |
void google_translate_api::TranslateServiceBaseRequest::set_pretty_print |
( |
bool |
value | ) |
|
|
inline |
Sets the 'prettyPrint
' attribute.
- Parameters
-
[in] | value | Returns response with indentations and line breaks. |
void google_translate_api::TranslateServiceBaseRequest::set_quota_user |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'quotaUser
' attribute.
- Parameters
-
[in] | value | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided. |
void google_translate_api::TranslateServiceBaseRequest::set_upload_protocol |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'upload_protocol
' attribute.
- Parameters
-
[in] | value | Upload protocol for media (e.g. "raw", "multipart"). |
void google_translate_api::TranslateServiceBaseRequest::set_upload_type |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'uploadType
' attribute.
- Parameters
-
[in] | value | Legacy upload protocol for media (e.g. "media", "multipart"). |
void google_translate_api::TranslateServiceBaseRequest::set_xgafv |
( |
const string & |
value | ) |
|
|
inline |
Sets the '$.xgafv
' attribute.
- Parameters
-
[in] | value | V1 error format. |
The documentation for this class was generated from the following files: