Class TranslateTextGlossaryConfig.Builder (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class TranslateTextGlossaryConfig.Builder extends GeneratedMessageV3.Builder<TranslateTextGlossaryConfig.Builder> implements TranslateTextGlossaryConfigOrBuilder

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

Protobuf type google.cloud.translation.v3beta1.TranslateTextGlossaryConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TranslateTextGlossaryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder
Overrides

build()

public TranslateTextGlossaryConfig build()
Returns
TypeDescription
TranslateTextGlossaryConfig

buildPartial()

public TranslateTextGlossaryConfig buildPartial()
Returns
TypeDescription
TranslateTextGlossaryConfig

clear()

public TranslateTextGlossaryConfig.Builder clear()
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TranslateTextGlossaryConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder
Overrides

clearGlossary()

public TranslateTextGlossaryConfig.Builder clearGlossary()

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

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

Returns
TypeDescription
TranslateTextGlossaryConfig.Builder

This builder for chaining.

clearIgnoreCase()

public TranslateTextGlossaryConfig.Builder clearIgnoreCase()

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

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

Returns
TypeDescription
TranslateTextGlossaryConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TranslateTextGlossaryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder
Overrides

clone()

public TranslateTextGlossaryConfig.Builder clone()
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder
Overrides

getDefaultInstanceForType()

public TranslateTextGlossaryConfig getDefaultInstanceForType()
Returns
TypeDescription
TranslateTextGlossaryConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGlossary()

public 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
TypeDescription
String

The glossary.

getGlossaryBytes()

public 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
TypeDescription
ByteString

The bytes for glossary.

getIgnoreCase()

public boolean getIgnoreCase()

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

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

Returns
TypeDescription
boolean

The ignoreCase.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides