#include <translate_text_request.h>
Detailed Description
The main translation request message for the Cloud Translation API.
Constructor & Destructor Documentation
google_translate_api::TranslateTextRequest::TranslateTextRequest |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
google_translate_api::TranslateTextRequest::TranslateTextRequest |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
google_translate_api::TranslateTextRequest::~TranslateTextRequest |
( |
| ) |
|
|
virtual |
Member Function Documentation
void google_translate_api::TranslateTextRequest::clear_format |
( |
| ) |
|
|
inline |
Clears the 'format
' attribute.
void google_translate_api::TranslateTextRequest::clear_model |
( |
| ) |
|
|
inline |
Clears the 'model
' attribute.
void google_translate_api::TranslateTextRequest::clear_q |
( |
| ) |
|
|
inline |
Clears the 'q
' attribute.
void google_translate_api::TranslateTextRequest::clear_source |
( |
| ) |
|
|
inline |
Clears the 'source
' attribute.
void google_translate_api::TranslateTextRequest::clear_target |
( |
| ) |
|
|
inline |
Clears the 'target
' attribute.
const StringPiece google_translate_api::TranslateTextRequest::get_format |
( |
| ) |
const |
|
inline |
Get the value of the 'format
' attribute.
const StringPiece google_translate_api::TranslateTextRequest::get_model |
( |
| ) |
const |
|
inline |
Get the value of the 'model
' attribute.
const client::JsonCppArray<string > google_translate_api::TranslateTextRequest::get_q |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'q
' attribute.
const StringPiece google_translate_api::TranslateTextRequest::get_source |
( |
| ) |
const |
|
inline |
Get the value of the 'source
' attribute.
const StringPiece google_translate_api::TranslateTextRequest::get_target |
( |
| ) |
const |
|
inline |
Get the value of the 'target
' attribute.
const StringPiece google_translate_api::TranslateTextRequest::GetTypeName |
( |
| ) |
const |
|
inline |
bool google_translate_api::TranslateTextRequest::has_format |
( |
| ) |
const |
|
inline |
Determine if the 'format
' attribute was set.
- Returns
- true if the '
format
' attribute was set.
bool google_translate_api::TranslateTextRequest::has_model |
( |
| ) |
const |
|
inline |
Determine if the 'model
' attribute was set.
- Returns
- true if the '
model
' attribute was set.
bool google_translate_api::TranslateTextRequest::has_q |
( |
| ) |
const |
|
inline |
Determine if the 'q
' attribute was set.
- Returns
- true if the '
q
' attribute was set.
bool google_translate_api::TranslateTextRequest::has_source |
( |
| ) |
const |
|
inline |
Determine if the 'source
' attribute was set.
- Returns
- true if the '
source
' attribute was set.
bool google_translate_api::TranslateTextRequest::has_target |
( |
| ) |
const |
|
inline |
Determine if the 'target
' attribute was set.
- Returns
- true if the '
target
' attribute was set.
client::JsonCppArray<string > google_translate_api::TranslateTextRequest::mutable_q |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'q
' property.
The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.
- Returns
- The result can be modified to change the attribute value.
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
void google_translate_api::TranslateTextRequest::set_format |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'format
' attribute.
The format of the source text, in either HTML (default) or plain-text. A value of "html" indicates HTML and a value of "text" indicates plain-text.
- Parameters
-
void google_translate_api::TranslateTextRequest::set_model |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'model
' attribute.
The model
type requested for this translation. Valid values are listed in public documentation.
- Parameters
-
void google_translate_api::TranslateTextRequest::set_source |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'source
' attribute.
The language of the source text, set to one of the language codes listed in Language Support. If the source language is not specified, the API will attempt to identify the source language automatically and return it within the response.
- Parameters
-
void google_translate_api::TranslateTextRequest::set_target |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'target
' attribute.
The language to use for translation of the input text, set to one of the language codes listed in Language Support.
- Parameters
-
The documentation for this class was generated from the following files: