Cloud Translation V3 API - Class Google::Cloud::Translate::V3::Glossary::LanguageCodePair (v1.0.0)

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

Used with unidirectional glossaries.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#source_language_code

def source_language_code() -> ::String
Returns
  • (::String) — Required. The ISO-639 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.

#source_language_code=

def source_language_code=(value) -> ::String
Parameter
  • value (::String) — Required. The ISO-639 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
Returns
  • (::String) — Required. The ISO-639 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.

#target_language_code

def target_language_code() -> ::String
Returns
  • (::String) — Required. The ISO-639 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.

#target_language_code=

def target_language_code=(value) -> ::String
Parameter
  • value (::String) — Required. The ISO-639 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
Returns
  • (::String) — Required. The ISO-639 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.