Class: Google::Apis::TranslateV3::LanguageCodesSet
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::LanguageCodesSet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v3/classes.rb,
lib/google/apis/translate_v3/representations.rb,
lib/google/apis/translate_v3/representations.rb
Overview
Used with equivalent term set glossaries.
Instance Attribute Summary collapse
-
#language_codes ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LanguageCodesSet
constructor
A new instance of LanguageCodesSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LanguageCodesSet
Returns a new instance of LanguageCodesSet.
1383 1384 1385 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1383 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_codes ⇒ Array<String>
Optional. The ISO-639 language code(s) for terms defined in the glossary. All
entries are unique. The list contains at least two entries. Expected to be an
exact match for GlossaryTerm.language_code.
Corresponds to the JSON property languageCodes
1381 1382 1383 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1381 def language_codes @language_codes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1388 1389 1390 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1388 def update!(**args) @language_codes = args[:language_codes] if args.key?(:language_codes) end |