Cloud Translation V3 API - Class Google::Cloud::Translate::V3::TranslateTextGlossaryConfig (v1.2.0)

Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::TranslateTextGlossaryConfig.

Configures which glossary is used for a specific target language and defines options for applying that glossary.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#contextual_translation_enabled

def contextual_translation_enabled() -> ::Boolean
Returns
  • (::Boolean) — Optional. If set to true, the glossary will be used for contextual translation.

#contextual_translation_enabled=

def contextual_translation_enabled=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. If set to true, the glossary will be used for contextual translation.
Returns
  • (::Boolean) — Optional. If set to true, the glossary will be used for contextual translation.

#glossary

def glossary() -> ::String
Returns
  • (::String) —

    Required. The glossary to be applied for this translation.

    The format depends on the glossary:

    • User-provided custom glossary: projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}

#glossary=

def glossary=(value) -> ::String
Parameter
  • value (::String) —

    Required. The glossary to be applied for this translation.

    The format depends on the glossary:

    • User-provided custom glossary: projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
Returns
  • (::String) —

    Required. The glossary to be applied for this translation.

    The format depends on the glossary:

    • User-provided custom glossary: projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}

#ignore_case

def ignore_case() -> ::Boolean
Returns
  • (::Boolean) — Optional. Indicates match is case insensitive. The default value is false if missing.

#ignore_case=

def ignore_case=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Indicates match is case insensitive. The default value is false if missing.
Returns
  • (::Boolean) — Optional. Indicates match is case insensitive. The default value is false if missing.