Cloud Translation V3 API - Class Google::Cloud::Translate::V3::SupportedLanguage (v0.8.0)

Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::SupportedLanguage.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#display_name

def display_name() -> ::String
Returns
  • (::String) — Human-readable name of the language localized in the display language specified in the request.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::String) — 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.

#language_code

def language_code() -> ::String
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').

#language_code=

def language_code=(value) -> ::String
Parameter
  • value (::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').
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').

#support_source

def support_source() -> ::Boolean
Returns
  • (::Boolean) — Can be used as a source language.

#support_source=

def support_source=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Can be used as a source language.
Returns
  • (::Boolean) — Can be used as a source language.

#support_target

def support_target() -> ::Boolean
Returns
  • (::Boolean) — Can be used as a target language.

#support_target=

def support_target=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Can be used as a target language.
Returns
  • (::Boolean) — Can be used as a target language.