Class Glossary.Builder (2.6.0)

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Glossary build()
Returns
TypeDescription
Glossary

buildPartial()

public Glossary buildPartial()
Returns
TypeDescription
Glossary

clear()

public Glossary.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Glossary.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Glossary.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Glossary.Builder

clearLanguageCodesSet()

public Glossary.Builder clearLanguageCodesSet()

Used with equivalent term set glossaries.

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

Returns
TypeDescription
Glossary.Builder

clearLanguagePair()

public Glossary.Builder clearLanguagePair()

Used with unidirectional glossaries.

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

Returns
TypeDescription
Glossary.Builder

clearLanguages()

public Glossary.Builder clearLanguages()
Returns
TypeDescription
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
TypeDescription
Glossary.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Glossary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Glossary.Builder

clone()

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

getDefaultInstanceForType()

public Glossary getDefaultInstanceForType()
Returns
TypeDescription
Glossary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GlossaryInputConfigOrBuilder

getLanguageCodesSet()

public Glossary.LanguageCodesSet getLanguageCodesSet()

Used with equivalent term set glossaries.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Glossary.LanguageCodesSetOrBuilder

getLanguagePair()

public Glossary.LanguageCodePair getLanguagePair()

Used with unidirectional glossaries.

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

Returns
TypeDescription
Glossary.LanguageCodePair

The languagePair.

getLanguagePairBuilder()

public Glossary.LanguageCodePair.Builder getLanguagePairBuilder()

Used with unidirectional glossaries.

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

Returns
TypeDescription
Glossary.LanguageCodePair.Builder

getLanguagePairOrBuilder()

public Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder()

Used with unidirectional glossaries.

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

Returns
TypeDescription
Glossary.LanguageCodePairOrBuilder

getLanguagesCase()

public Glossary.LanguagesCase getLanguagesCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Builder

getSubmitTimeOrBuilder()

public TimestampOrBuilder getSubmitTimeOrBuilder()

Output only. When CreateGlossary was called.

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

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

Whether the submitTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Glossary.Builder

mergeFrom(Glossary other)

public Glossary.Builder mergeFrom(Glossary other)
Parameter
NameDescription
otherGlossary
Returns
TypeDescription
Glossary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Glossary.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGlossaryInputConfig
Returns
TypeDescription
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
NameDescription
valueGlossary.LanguageCodesSet
Returns
TypeDescription
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
NameDescription
valueGlossary.LanguageCodePair
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Glossary.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Glossary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueint

The entryCount to set.

Returns
TypeDescription
Glossary.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Glossary.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGlossaryInputConfig
Returns
TypeDescription
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
NameDescription
builderForValueGlossaryInputConfig.Builder
Returns
TypeDescription
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
NameDescription
valueGlossary.LanguageCodesSet
Returns
TypeDescription
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
NameDescription
builderForValueGlossary.LanguageCodesSet.Builder
Returns
TypeDescription
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
NameDescription
valueGlossary.LanguageCodePair
Returns
TypeDescription
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
NameDescription
builderForValueGlossary.LanguageCodePair.Builder
Returns
TypeDescription
Glossary.B