Class: Google::Apis::TranslateV3::TranslateTextGlossaryConfig
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::TranslateTextGlossaryConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/translate_v3/classes.rb,
generated/google/apis/translate_v3/representations.rb,
generated/google/apis/translate_v3/representations.rb
Overview
Configures which glossary should be used for a specific target language, and defines options for applying that glossary.
Instance Attribute Summary collapse
-
#glossary ⇒ String
Required.
-
#ignore_case ⇒ Boolean
(also: #ignore_case?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TranslateTextGlossaryConfig
constructor
A new instance of TranslateTextGlossaryConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TranslateTextGlossaryConfig
Returns a new instance of TranslateTextGlossaryConfig.
752 753 754 |
# File 'generated/google/apis/translate_v3/classes.rb', line 752 def initialize(**args) update!(**args) end |
Instance Attribute Details
#glossary ⇒ String
Required. The glossary
to be applied for this translation.
The format depends on glossary:
- User provided custom glossary:
projects/
project-number-or-id/locations/
location-id/glossaries/
glossary-id`Corresponds to the JSON property
glossary`
743 744 745 |
# File 'generated/google/apis/translate_v3/classes.rb', line 743 def glossary @glossary end |
#ignore_case ⇒ Boolean Also known as: ignore_case?
Optional. Indicates match is case-insensitive.
Default value is false if missing.
Corresponds to the JSON property ignoreCase
749 750 751 |
# File 'generated/google/apis/translate_v3/classes.rb', line 749 def ignore_case @ignore_case end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
757 758 759 760 |
# File 'generated/google/apis/translate_v3/classes.rb', line 757 def update!(**args) @glossary = args[:glossary] if args.key?(:glossary) @ignore_case = args[:ignore_case] if args.key?(:ignore_case) end |