class Google::Apis::TranslateV3::LanguageCodePair

Used with unidirectional glossaries.

Attributes

source_language_code[RW]

Required. The BCP-47 language code of the input text, for example, “en-US”. Expected to be an exact match for GlossaryTerm.language_code. Corresponds to the JSON property `sourceLanguageCode` @return [String]

target_language_code[RW]

Required. The BCP-47 language code for translation output, for example, “zh-CN” . Expected to be an exact match for GlossaryTerm.language_code. Corresponds to the JSON property `targetLanguageCode` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/translate_v3/classes.rb, line 379
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/translate_v3/classes.rb, line 384
def update!(**args)
  @source_language_code = args[:source_language_code] if args.key?(:source_language_code)
  @target_language_code = args[:target_language_code] if args.key?(:target_language_code)
end