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.



318
319
320
321
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 318

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, BCP-47 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, BCP-47 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN')



318
319
320
321
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 318

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

#support_source::Boolean

Returns Can be used as source language.

Returns:

  • (::Boolean)

    Can be used as source language.



318
319
320
321
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 318

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

#support_target::Boolean

Returns Can be used as target language.

Returns:

  • (::Boolean)

    Can be used as target language.



318
319
320
321
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 318

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