Class Glossary.Builder (2.46.0)

public static final class Glossary.Builder extends GeneratedMessageV3.Builder<Glossary.Builder> implements GlossaryOrBuilder

Represents a glossary built from user provided data.

Protobuf type google.cloud.translation.v3beta1.Glossary

Implements

GlossaryOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Glossary.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Glossary.Builder
Overrides

build()

public Glossary build()
Returns
Type Description
Glossary

buildPartial()

public Glossary buildPartial()
Returns
Type Description
Glossary

clear()

public Glossary.Builder clear()
Returns
Type Description
Glossary.Builder
Overrides

clearEndTime()

public Glossary.Builder clearEndTime()

Output only. When the glossary creation was finished.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Glossary.Builder

clearEntryCount()

public Glossary.Builder clearEntryCount()

Output only. The number of entries defined in the glossary.

int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Glossary.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Glossary.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Glossary.Builder
Overrides

clearInputConfig()

public Glossary.Builder clearInputConfig()

Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.

.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;

Returns
Type Description
Glossary.Builder

clearLanguageCodesSet()

public Glossary.Builder clearLanguageCodesSet()

Used with equivalent term set glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;

Returns
Type Description
Glossary.Builder

clearLanguagePair()

public Glossary.Builder clearLanguagePair()

Used with unidirectional glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;

Returns
Type Description
Glossary.Builder

clearLanguages()

public Glossary.Builder clearLanguages()
Returns
Type Description
Glossary.Builder

clearName()

public Glossary.Builder clearName()

Required. The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.

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

Returns
Type Description
Glossary.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Glossary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Glossary.Builder
Overrides

clearSubmitTime()

public Glossary.Builder clearSubmitTime()

Output only. When CreateGlossary was called.

.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Glossary.Builder

clone()

public Glossary.Builder clone()
Returns
Type Description
Glossary.Builder
Overrides

getDefaultInstanceForType()

public Glossary getDefaultInstanceForType()
Returns
Type Description
Glossary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

Output only. When the glossary creation was finished.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. When the glossary creation was finished.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. When the glossary creation was finished.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getEntryCount()

public int getEntryCount()

Output only. The number of entries defined in the glossary.

int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The entryCount.

getInputConfig()

public GlossaryInputConfig getInputConfig()

Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.

.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;

Returns
Type Description
GlossaryInputConfig

The inputConfig.

getInputConfigBuilder()

public GlossaryInputConfig.Builder getInputConfigBuilder()

Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.

.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;

Returns
Type Description
GlossaryInputConfig.Builder

getInputConfigOrBuilder()

public GlossaryInputConfigOrBuilder getInputConfigOrBuilder()

Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.

.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;

Returns
Type Description
GlossaryInputConfigOrBuilder

getLanguageCodesSet()

public Glossary.LanguageCodesSet getLanguageCodesSet()

Used with equivalent term set glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;

Returns
Type Description
Glossary.LanguageCodesSet

The languageCodesSet.

getLanguageCodesSetBuilder()

public Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder()

Used with equivalent term set glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;

Returns
Type Description
Glossary.LanguageCodesSet.Builder

getLanguageCodesSetOrBuilder()

public Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder()

Used with equivalent term set glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;

Returns
Type Description
Glossary.LanguageCodesSetOrBuilder

getLanguagePair()

public Glossary.LanguageCodePair getLanguagePair()

Used with unidirectional glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;

Returns
Type Description
Glossary.LanguageCodePair

The languagePair.

getLanguagePairBuilder()

public Glossary.LanguageCodePair.Builder getLanguagePairBuilder()

Used with unidirectional glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;

Returns
Type Description
Glossary.LanguageCodePair.Builder

getLanguagePairOrBuilder()

public Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder()

Used with unidirectional glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;

Returns
Type Description
Glossary.LanguageCodePairOrBuilder

getLanguagesCase()

public Glossary.LanguagesCase getLanguagesCase()
Returns
Type Description
Glossary.LanguagesCase

getName()

public String getName()

Required. The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.

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

Returns
Type Description
ByteString

The bytes for name.

getSubmitTime()

public Timestamp getSubmitTime()

Output only. When CreateGlossary was called.

.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The submitTime.

getSubmitTimeBuilder()

public Timestamp.Builder getSubmitTimeBuilder()

Output only. When CreateGlossary was called.

.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getSubmitTimeOrBuilder()

public TimestampOrBuilder getSubmitTimeOrBuilder()

Output only. When CreateGlossary was called.

.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

Output only. When the glossary creation was finished.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasInputConfig()

public boolean hasInputConfig()

Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.

.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;

Returns
Type Description
boolean

Whether the inputConfig field is set.

hasLanguageCodesSet()

public boolean hasLanguageCodesSet()

Used with equivalent term set glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;

Returns
Type Description
boolean

Whether the languageCodesSet field is set.

hasLanguagePair()

public boolean hasLanguagePair()

Used with unidirectional glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;

Returns
Type Description
boolean

Whether the languagePair field is set.

hasSubmitTime()

public boolean hasSubmitTime()

Output only. When CreateGlossary was called.

.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the submitTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public Glossary.Builder mergeEndTime(Timestamp value)

Output only. When the glossary creation was finished.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Glossary.Builder

mergeFrom(Glossary other)

public Glossary.Builder mergeFrom(Glossary other)
Parameter
Name Description
other Glossary
Returns
Type Description
Glossary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Glossary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Glossary.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Glossary.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Glossary.Builder
Overrides

mergeInputConfig(GlossaryInputConfig value)

public Glossary.Builder mergeInputConfig(GlossaryInputConfig value)

Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.

.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;

Parameter
Name Description
value GlossaryInputConfig
Returns
Type Description
Glossary.Builder

mergeLanguageCodesSet(Glossary.LanguageCodesSet value)

public Glossary.Builder mergeLanguageCodesSet(Glossary.LanguageCodesSet value)

Used with equivalent term set glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;

Parameter
Name Description
value Glossary.LanguageCodesSet
Returns
Type Description
Glossary.Builder

mergeLanguagePair(Glossary.LanguageCodePair value)

public Glossary.Builder mergeLanguagePair(Glossary.LanguageCodePair value)

Used with unidirectional glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;

Parameter
Name Description
value Glossary.LanguageCodePair
Returns
Type Description
Glossary.Builder

mergeSubmitTime(Timestamp value)

public Glossary.Builder mergeSubmitTime(Timestamp value)

Output only. When CreateGlossary was called.

.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Glossary.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Glossary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Glossary.Builder
Overrides

setEndTime(Timestamp value)

public Glossary.Builder setEndTime(Timestamp value)

Output only. When the glossary creation was finished.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Glossary.Builder

setEndTime(Timestamp.Builder builderForValue)

public Glossary.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. When the glossary creation was finished.

.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Glossary.Builder

setEntryCount(int value)

public Glossary.Builder setEntryCount(int value)

Output only. The number of entries defined in the glossary.

int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The entryCount to set.

Returns
Type Description
Glossary.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Glossary.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Glossary.Builder
Overrides

setInputConfig(GlossaryInputConfig value)

public Glossary.Builder setInputConfig(GlossaryInputConfig value)

Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.

.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;

Parameter
Name Description
value GlossaryInputConfig
Returns
Type Description
Glossary.Builder

setInputConfig(GlossaryInputConfig.Builder builderForValue)

public Glossary.Builder setInputConfig(GlossaryInputConfig.Builder builderForValue)

Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.

.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;

Parameter
Name Description
builderForValue GlossaryInputConfig.Builder
Returns
Type Description
Glossary.Builder

setLanguageCodesSet(Glossary.LanguageCodesSet value)

public Glossary.Builder setLanguageCodesSet(Glossary.LanguageCodesSet value)

Used with equivalent term set glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;

Parameter
Name Description
value Glossary.LanguageCodesSet
Returns
Type Description
Glossary.Builder

setLanguageCodesSet(Glossary.LanguageCodesSet.Builder builderForValue)

public Glossary.Builder setLanguageCodesSet(Glossary.LanguageCodesSet.Builder builderForValue)

Used with equivalent term set glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;

Parameter
Name Description
builderForValue Glossary.LanguageCodesSet.Builder
Returns
Type Description
Glossary.Builder

setLanguagePair(Glossary.LanguageCodePair value)

public Glossary.Builder setLanguagePair(Glossary.LanguageCodePair value)

Used with unidirectional glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;

Parameter
Name Description
value Glossary.LanguageCodePair
Returns
Type Description
Glossary.Builder

setLanguagePair(Glossary.LanguageCodePair.Builder builderForValue)

public Glossary.Builder setLanguagePair(Glossary.LanguageCodePair.Builder builderForValue)

Used with unidirectional glossaries.

.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;

Parameter
Name Description
builderForValue Glossary.LanguageCodePair.Builder
Returns
Type Description
Glossary.Builder

setName(String value)

public Glossary.Builder setName(String value)

Required. The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Glossary.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Glossary.Builder setNameBytes(ByteString value)

Required. The resource name of the glossary. Glossary names have the form projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Glossary.Builder

This builder for chaining.

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

public Glossary.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Glossary.Builder
Overrides

setSubmitTime(Timestamp value)

public Glossary.Builder setSubmitTime(Timestamp value)

Output only. When CreateGlossary was called.

.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Glossary.Builder

setSubmitTime(Timestamp.Builder builderForValue)

public Glossary.Builder setSubmitTime(Timestamp.Builder builderForValue)

Output only. When CreateGlossary was called.

.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Glossary.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Glossary.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Glossary.Builder
Overrides