Class: Google::Apis::TranslateV3::TranslateTextGlossaryConfig

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

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.



738
739
740
# File 'lib/google/apis/translate_v3/classes.rb', line 738

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

Instance Attribute Details

#glossaryString

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 propertyglossary`

Returns:

  • (String)


729
730
731
# File 'lib/google/apis/translate_v3/classes.rb', line 729

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)


735
736
737
# File 'lib/google/apis/translate_v3/classes.rb', line 735

def ignore_case
  @ignore_case
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



743
744
745
746
# File 'lib/google/apis/translate_v3/classes.rb', line 743

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