Class TranslateTextGlossaryConfig.Builder (2.28.0)

public static final class TranslateTextGlossaryConfig.Builder extends GeneratedMessageV3.Builder<TranslateTextGlossaryConfig.Builder> implements TranslateTextGlossaryConfigOrBuilder

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

Protobuf type google.cloud.translation.v3.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. 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];

Returns
TypeDescription
TranslateTextGlossaryConfig.Builder

This builder for chaining.

clearIgnoreCase()

public TranslateTextGlossaryConfig.Builder clearIgnoreCase()

Optional. Indicates match is case insensitive. The 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. 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];

Returns
TypeDescription
String

The glossary.

getGlossaryBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for glossary.

getIgnoreCase()

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

The ignoreCase.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TranslateTextGlossaryConfig other)

public TranslateTextGlossaryConfig.Builder mergeFrom(TranslateTextGlossaryConfig other)
Parameter
NameDescription
otherTranslateTextGlossaryConfig
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TranslateTextGlossaryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TranslateTextGlossaryConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TranslateTextGlossaryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setGlossary(String value)

public TranslateTextGlossaryConfig.Builder setGlossary(String value)

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];

Parameter
NameDescription
valueString

The glossary to set.

Returns
TypeDescription
TranslateTextGlossaryConfig.Builder

This builder for chaining.

setGlossaryBytes(ByteString value)

public TranslateTextGlossaryConfig.Builder setGlossaryBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for glossary to set.

Returns
TypeDescription
TranslateTextGlossaryConfig.Builder

This builder for chaining.

setIgnoreCase(boolean value)

public TranslateTextGlossaryConfig.Builder setIgnoreCase(boolean value)

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

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

Parameter
NameDescription
valueboolean

The ignoreCase to set.

Returns
TypeDescription
TranslateTextGlossaryConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TranslateTextGlossaryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TranslateTextGlossaryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TranslateTextGlossaryConfig.Builder
Overrides