Interface TranslateTextGlossaryConfigOrBuilder (2.80.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. Specifies the glossary used for this translation. Use this format: projects/*/locations/*/glossaries/*

string glossary = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The glossary.

getGlossaryBytes()

public abstract ByteString getGlossaryBytes()

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

string glossary = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for glossary.

getIgnoreCase()

public abstract boolean getIgnoreCase()

Optional. Indicates match is case-insensitive. Default value is false if missing.

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

Returns
Type Description
boolean

The ignoreCase.