Class: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v3beta1/classes.rb,
lib/google/apis/translate_v3beta1/representations.rb,
lib/google/apis/translate_v3beta1/representations.rb more...
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.
Constructor Details
#initialize(**args) ⇒ TranslateTextGlossaryConfig
Returns a new instance of TranslateTextGlossaryConfig.
1120 1121 1122 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1120 def initialize(**args) update!(**args) end |
Instance Attribute Details
#glossary ⇒ String
Required. Specifies the glossary used for this translation. Use this format:
projects//locations//glossaries/*
Corresponds to the JSON property glossary
1111 1112 1113 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1111 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
1117 1118 1119 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1117 def ignore_case @ignore_case end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1125 1126 1127 1128 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1125 def update!(**args) @glossary = args[:glossary] if args.key?(:glossary) @ignore_case = args[:ignore_case] if args.key?(:ignore_case) end |