Reference documentation and code samples for the Cloud Translation V3 Client class Romanization.
A single romanization response.
Generated from protobuf message google.cloud.translation.v3.Romanization
Namespace
Google \ Cloud \ Translate \ V3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ romanized_text
string
Romanized text. If an error occurs during romanization, this field might be excluded from the response.
↳ detected_language_code
string
The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
getRomanizedText
Romanized text.
If an error occurs during romanization, this field might be excluded from the response.
string
setRomanizedText
Romanized text.
If an error occurs during romanization, this field might be excluded from the response.
var
string
$this
getDetectedLanguageCode
The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
string
setDetectedLanguageCode
The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
var
string
$this