Cloud Translation V3 API - Class Google::Cloud::Translate::V3::RomanizeTextRequest (v1.3.0)

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>
Returns
  • (::Array<::String>) — Required. The content of the input in string format.

#contents=

def contents=(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

def parent() -> ::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=

def parent=(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

def source_language_code() -> ::String
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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.