Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::RomanizeTextRequest.
The request message for synchronous romanization.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#contents
defcontents()->::Array<::String>
Returns
(::Array<::String>) — Required. The content of the input in string format.
#contents=
defcontents=(value)->::Array<::String>
Parameter
value (::Array<::String>) — Required. The content of the input in string format.
Returns
(::Array<::String>) — Required. The content of the input in string format.
#parent
defparent()->::String
Returns
(::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}.
#parent=
defparent=(value)->::String
Parameter
value (::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}.
Returns
(::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}.
#source_language_code
defsource_language_code()->::String
Returns
(::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.
#source_language_code=
defsource_language_code=(value)->::String
Parameter
value (::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.
Returns
(::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.
[[["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::RomanizeTextRequest (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-RomanizeTextRequest)\n- [1.5.1](/ruby/docs/reference/google-cloud-translate-v3/1.5.1/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [1.4.1](/ruby/docs/reference/google-cloud-translate-v3/1.4.1/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-translate-v3/1.3.0/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-translate-v3/1.2.0/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [1.1.1](/ruby/docs/reference/google-cloud-translate-v3/1.1.1/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [1.0.0](/ruby/docs/reference/google-cloud-translate-v3/1.0.0/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-translate-v3/0.12.0/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [0.11.2](/ruby/docs/reference/google-cloud-translate-v3/0.11.2/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-translate-v3/0.10.0/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-translate-v3/0.9.0/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-translate-v3/0.8.0/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [0.7.3](/ruby/docs/reference/google-cloud-translate-v3/0.7.3/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-translate-v3/0.6.0/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [0.5.2](/ruby/docs/reference/google-cloud-translate-v3/0.5.2/Google-Cloud-Translate-V3-RomanizeTextRequest)\n- [0.4.2](/ruby/docs/reference/google-cloud-translate-v3/0.4.2/Google-Cloud-Translate-V3-RomanizeTextRequest) \nReference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::RomanizeTextRequest.\n\nThe request message for synchronous romanization. \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### #contents\n\n def contents() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Required. The content of the input in string format.\n\n### #contents=\n\n def contents=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- Required. The content of the input in string format. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Required. The content of the input in string format.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Project or location to make a call. Must refer to a caller's project.\n\n Format: `projects/{project-number-or-id}/locations/{location-id}` or\n `projects/{project-number-or-id}`.\n\n For global calls, use `projects/{project-number-or-id}/locations/global` or\n `projects/{project-number-or-id}`.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Project or location to make a call. Must refer to a caller's project.\n\n\n Format: `projects/{project-number-or-id}/locations/{location-id}` or\n `projects/{project-number-or-id}`.\n\n For global calls, use `projects/{project-number-or-id}/locations/global` or\n`projects/{project-number-or-id}`. \n**Returns**\n\n- (::String) --- Required. Project or location to make a call. Must refer to a caller's project.\n\n Format: `projects/{project-number-or-id}/locations/{location-id}` or\n `projects/{project-number-or-id}`.\n\n For global calls, use `projects/{project-number-or-id}/locations/global` or\n `projects/{project-number-or-id}`.\n\n### #source_language_code\n\n def source_language_code() -\u003e ::String\n\n**Returns**\n\n- (::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\n Support](https://cloud.google.com/translate/docs/languages#roman). 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.\n\n### #source_language_code=\n\n def source_language_code=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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\nSupport](https://cloud.google.com/translate/docs/languages#roman). 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. \n**Returns**\n\n- (::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\n Support](https://cloud.google.com/translate/docs/languages#roman). 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."]]