Reference documentation and code samples for the Cloud Translation V3 Client class Romanization.
A single romanization response.
Generated from protobuf messagegoogle.cloud.translation.v3.Romanization
Namespace
Google \ Cloud \ Translate \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
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.
Returns
Type
Description
string
setRomanizedText
Romanized text.
If an error occurs during romanization, this field might be excluded from
the response.
Parameter
Name
Description
var
string
Returns
Type
Description
$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.
Returns
Type
Description
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Translation V3 Client - Class Romanization (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-translate/latest/V3.Romanization)\n- [2.0.2](/php/docs/reference/cloud-translate/2.0.2/V3.Romanization)\n- [1.21.0](/php/docs/reference/cloud-translate/1.21.0/V3.Romanization)\n- [1.20.2](/php/docs/reference/cloud-translate/1.20.2/V3.Romanization)\n- [1.19.0](/php/docs/reference/cloud-translate/1.19.0/V3.Romanization)\n- [1.18.1](/php/docs/reference/cloud-translate/1.18.1/V3.Romanization)\n- [1.17.7](/php/docs/reference/cloud-translate/1.17.7/V3.Romanization)\n- [1.16.0](/php/docs/reference/cloud-translate/1.16.0/V3.Romanization)\n- [1.15.4](/php/docs/reference/cloud-translate/1.15.4/V3.Romanization)\n- [1.14.3](/php/docs/reference/cloud-translate/1.14.3/V3.Romanization)\n- [1.13.3](/php/docs/reference/cloud-translate/1.13.3/V3.Romanization)\n- [1.12.12](/php/docs/reference/cloud-translate/1.12.12/V3.Romanization) \nReference documentation and code samples for the Cloud Translation V3 Client class Romanization.\n\nA single romanization response.\n\nGenerated from protobuf message `google.cloud.translation.v3.Romanization`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Translate \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRomanizedText\n\nRomanized text.\n\nIf an error occurs during romanization, this field might be excluded from\nthe response.\n\n### setRomanizedText\n\nRomanized text.\n\nIf an error occurs during romanization, this field might be excluded from\nthe response.\n\n### getDetectedLanguageCode\n\nThe ISO-639 language code of source text in the initial request, detected\nautomatically, if no source language was passed within the initial\nrequest. If the source language was passed, auto-detection of the language\ndoes not occur and this field is empty.\n\n### setDetectedLanguageCode\n\nThe ISO-639 language code of source text in the initial request, detected\nautomatically, if no source language was passed within the initial\nrequest. If the source language was passed, auto-detection of the language\ndoes not occur and this field is empty."]]