Class: Google::Apis::TranslateV3beta1::LanguageCodesSet
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3beta1::LanguageCodesSet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/translate_v3beta1/classes.rb,
generated/google/apis/translate_v3beta1/representations.rb,
generated/google/apis/translate_v3beta1/representations.rb
Overview
Used with equivalent term set glossaries.
Instance Attribute Summary collapse
-
#language_codes ⇒ Array<String>
The BCP-47 language code(s) for terms defined in the glossary.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LanguageCodesSet
constructor
A new instance of LanguageCodesSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LanguageCodesSet
Returns a new instance of LanguageCodesSet.
409 410 411 |
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 409 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_codes ⇒ Array<String>
The BCP-47 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
407 408 409 |
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 407 def language_codes @language_codes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
414 415 416 |
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 414 def update!(**args) @language_codes = args[:language_codes] if args.key?(:language_codes) end |