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
def contents() -> ::Array<::String>
- (::Array<::String>) — Required. The content of the input in string format.
#contents=
def contents=(value) -> ::Array<::String>
- value (::Array<::String>) — Required. The content of the input in string format.
- (::Array<::String>) — Required. The content of the input in string format.
#parent
def parent() -> ::String
-
(::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}
orprojects/{project-number-or-id}
.For global calls, use
projects/{project-number-or-id}/locations/global
orprojects/{project-number-or-id}
.
#parent=
def parent=(value) -> ::String
-
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}
orprojects/{project-number-or-id}
.For global calls, use
projects/{project-number-or-id}/locations/global
orprojects/{project-number-or-id}
.
-
(::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}
orprojects/{project-number-or-id}
.For global calls, use
projects/{project-number-or-id}/locations/global
orprojects/{project-number-or-id}
.
#source_language_code
def source_language_code() -> ::String
- (::String) — Optional. The ISO-639 language code of the input text if known, for example, "hi" or "zh". 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=
def source_language_code=(value) -> ::String
- value (::String) — Optional. The ISO-639 language code of the input text if known, for example, "hi" or "zh". 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) — Optional. The ISO-639 language code of the input text if known, for example, "hi" or "zh". 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.