Class: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig

Inherits:
Object
  • Object
show all
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

Configures which glossary should be used for a specific target language, and defines options for applying that glossary.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TranslateTextGlossaryConfig

Returns a new instance of TranslateTextGlossaryConfig.



735
736
737
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 735

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#glossaryString

Required. Specifies the glossary used for this translation. Use this format: projects//locations//glossaries/* Corresponds to the JSON property glossary

Returns:

  • (String)


726
727
728
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 726

def glossary
  @glossary
end

#ignore_caseBoolean Also known as: ignore_case?

Optional. Indicates match is case-insensitive. Default value is false if missing. Corresponds to the JSON property ignoreCase

Returns:

  • (Boolean)


732
733
734
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 732

def ignore_case
  @ignore_case
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



740
741
742
743
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 740

def update!(**args)
  @glossary = args[:glossary] if args.key?(:glossary)
  @ignore_case = args[:ignore_case] if args.key?(:ignore_case)
end