Class: Google::Cloud::Translate::V3::RomanizeTextRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/translate/v3/translation_service.rb

Overview

The request message for synchronous romanization.

Instance Attribute Summary collapse

Instance Attribute Details

#contents::Array<::String>

Returns Required. The content of the input in string format.

Returns:

  • (::Array<::String>)

    Required. The content of the input in string format.



191
192
193
194
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 191

class RomanizeTextRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#parent::String

Returns 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}.



191
192
193
194
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 191

class RomanizeTextRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#source_language_code::String

Returns 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.



191
192
193
194
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 191

class RomanizeTextRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end