Reference documentation and code samples for the Cloud Translation V3 Client class RomanizeTextRequest.
The request message for synchronous romanization.
Generated from protobuf message google.cloud.translation.v3.RomanizeTextRequest
Namespace
Google \ Cloud \ Translate \ V3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. Project or location to make a call. Must refer to a caller's project. Format: projects/{project-number-or-id}/locations/{location-id}
or projects/{project-number-or-id}
. For global calls, use projects/{project-number-or-id}/locations/global
or projects/{project-number-or-id}
.
↳ contents
array
Required. The content of the input in string format.
↳ source_language_code
string
Optional. The ISO-639 language code of the input text if known, for example, "hi" or "zh". Supported language codes are listed in Language Support . If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language for each content in the response.
getParent
Required. Project or location to make a call. Must refer to a caller's project.
Format: projects/{project-number-or-id}/locations/{location-id}
or projects/{project-number-or-id}
.
For global calls, use projects/{project-number-or-id}/locations/global
or projects/{project-number-or-id}
.
string
setParent
Required. Project or location to make a call. Must refer to a caller's project.
Format: projects/{project-number-or-id}/locations/{location-id}
or projects/{project-number-or-id}
.
For global calls, use projects/{project-number-or-id}/locations/global
or projects/{project-number-or-id}
.
var
string
$this
getContents
Required. The content of the input in string format.
setContents
Required. The content of the input in string format.
var
string[]
$this
getSourceLanguageCode
Optional. The ISO-639 language code of the input text if known, for example, "hi" or "zh". Supported language codes are listed in Language Support . If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language for each content in the response.
string
setSourceLanguageCode
Optional. The ISO-639 language code of the input text if known, for example, "hi" or "zh". Supported language codes are listed in Language Support . If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language for each content in the response.
var
string
$this
static::build
parent
string
Required. Project or location to make a call. Must refer to a caller's project.
Format: projects/{project-number-or-id}/locations/{location-id}
or projects/{project-number-or-id}
.
For global calls, use projects/{project-number-or-id}/locations/global
or projects/{project-number-or-id}
. Please see TranslationServiceClient::locationName()
for help formatting this field.
contents
string[]
Required. The content of the input in string format.