Interface TranslateTextGlossaryConfigOrBuilder (2.55.0)

public interface TranslateTextGlossaryConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContextualTranslationEnabled()

public abstract boolean getContextualTranslationEnabled()

Optional. If set to true, the glossary will be used for contextual translation.

bool contextual_translation_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The contextualTranslationEnabled.

getGlossary()

public abstract String getGlossary()

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}

string glossary = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The glossary.

getGlossaryBytes()

public abstract ByteString getGlossaryBytes()

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}

string glossary = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for glossary.

getIgnoreCase()

public abstract boolean getIgnoreCase()

Optional. Indicates match is case insensitive. The default value is false if missing.

bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The ignoreCase.