Class: Google::Cloud::Translate::V3::SupportedLanguage

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

A single supported language response corresponds to information related to one supported language.

Instance Attribute Summary collapse

Instance Attribute Details

#display_name::String

Returns Human-readable name of the language localized in the display language specified in the request.

Returns:

  • (::String)

    Human-readable name of the language localized in the display language specified in the request.



373
374
375
376
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 373

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

#language_code::String

Returns Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN').

Returns:

  • (::String)

    Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN').



373
374
375
376
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 373

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

#support_source::Boolean

Returns Can be used as a source language.

Returns:

  • (::Boolean)

    Can be used as a source language.



373
374
375
376
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 373

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

#support_target::Boolean

Returns Can be used as a target language.

Returns:

  • (::Boolean)

    Can be used as a target language.



373
374
375
376
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 373

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