Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::Romanization.
A single romanization response.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#detected_language_code
defdetected_language_code()->::String
Returns
(::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.
#detected_language_code=
defdetected_language_code=(value)->::String
Parameter
value (::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.
Returns
(::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.
#romanized_text
defromanized_text()->::String
Returns
(::String) — Romanized text.
If an error occurs during romanization, this field might be excluded from
the response.
#romanized_text=
defromanized_text=(value)->::String
Parameter
value (::String) — Romanized text.
If an error occurs during romanization, this field might be excluded from
the response.
Returns
(::String) — Romanized text.
If an error occurs during romanization, this field might be excluded from
the response.
[[["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-09 UTC."],[],[],null,["# Cloud Translation V3 API - Class Google::Cloud::Translate::V3::Romanization (v1.5.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.2 (latest)](/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-Romanization)\n- [1.5.1](/ruby/docs/reference/google-cloud-translate-v3/1.5.1/Google-Cloud-Translate-V3-Romanization)\n- [1.4.1](/ruby/docs/reference/google-cloud-translate-v3/1.4.1/Google-Cloud-Translate-V3-Romanization)\n- [1.3.0](/ruby/docs/reference/google-cloud-translate-v3/1.3.0/Google-Cloud-Translate-V3-Romanization)\n- [1.2.0](/ruby/docs/reference/google-cloud-translate-v3/1.2.0/Google-Cloud-Translate-V3-Romanization)\n- [1.1.1](/ruby/docs/reference/google-cloud-translate-v3/1.1.1/Google-Cloud-Translate-V3-Romanization)\n- [1.0.0](/ruby/docs/reference/google-cloud-translate-v3/1.0.0/Google-Cloud-Translate-V3-Romanization)\n- [0.12.0](/ruby/docs/reference/google-cloud-translate-v3/0.12.0/Google-Cloud-Translate-V3-Romanization)\n- [0.11.2](/ruby/docs/reference/google-cloud-translate-v3/0.11.2/Google-Cloud-Translate-V3-Romanization)\n- [0.10.0](/ruby/docs/reference/google-cloud-translate-v3/0.10.0/Google-Cloud-Translate-V3-Romanization)\n- [0.9.0](/ruby/docs/reference/google-cloud-translate-v3/0.9.0/Google-Cloud-Translate-V3-Romanization)\n- [0.8.0](/ruby/docs/reference/google-cloud-translate-v3/0.8.0/Google-Cloud-Translate-V3-Romanization)\n- [0.7.3](/ruby/docs/reference/google-cloud-translate-v3/0.7.3/Google-Cloud-Translate-V3-Romanization)\n- [0.6.0](/ruby/docs/reference/google-cloud-translate-v3/0.6.0/Google-Cloud-Translate-V3-Romanization)\n- [0.5.2](/ruby/docs/reference/google-cloud-translate-v3/0.5.2/Google-Cloud-Translate-V3-Romanization)\n- [0.4.2](/ruby/docs/reference/google-cloud-translate-v3/0.4.2/Google-Cloud-Translate-V3-Romanization) \nReference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::Romanization.\n\nA single romanization response. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #detected_language_code\n\n def detected_language_code() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #detected_language_code=\n\n def detected_language_code=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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. \n**Returns**\n\n- (::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.\n\n### #romanized_text\n\n def romanized_text() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Romanized text. If an error occurs during romanization, this field might be excluded from the response.\n\n### #romanized_text=\n\n def romanized_text=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Romanized text. If an error occurs during romanization, this field might be excluded from the response. \n**Returns**\n\n- (::String) --- Romanized text. If an error occurs during romanization, this field might be excluded from the response."]]