Class GlossaryEntry.GlossaryTermsSet.Builder (2.49.0)

public static final class GlossaryEntry.GlossaryTermsSet.Builder extends GeneratedMessageV3.Builder<GlossaryEntry.GlossaryTermsSet.Builder> implements GlossaryEntry.GlossaryTermsSetOrBuilder

Represents a single entry for an equivalent term set glossary. This is used for equivalent term sets where each term can be replaced by the other terms in the set.

Protobuf type google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet

Static Methods

getDescriptor()

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

Methods

addAllTerms(Iterable<? extends GlossaryTerm> values)

public GlossaryEntry.GlossaryTermsSet.Builder addAllTerms(Iterable<? extends GlossaryTerm> values)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.translate.v3.GlossaryTerm>
Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTerms(GlossaryTerm value)

public GlossaryEntry.GlossaryTermsSet.Builder addTerms(GlossaryTerm value)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameter
Name Description
value GlossaryTerm
Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder

addTerms(GlossaryTerm.Builder builderForValue)

public GlossaryEntry.GlossaryTermsSet.Builder addTerms(GlossaryTerm.Builder builderForValue)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameter
Name Description
builderForValue GlossaryTerm.Builder
Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder

addTerms(int index, GlossaryTerm value)

public GlossaryEntry.GlossaryTermsSet.Builder addTerms(int index, GlossaryTerm value)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameters
Name Description
index int
value GlossaryTerm
Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder

addTerms(int index, GlossaryTerm.Builder builderForValue)

public GlossaryEntry.GlossaryTermsSet.Builder addTerms(int index, GlossaryTerm.Builder builderForValue)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameters
Name Description
index int
builderForValue GlossaryTerm.Builder
Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder

addTermsBuilder()

public GlossaryTerm.Builder addTermsBuilder()

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Returns
Type Description
GlossaryTerm.Builder

addTermsBuilder(int index)

public GlossaryTerm.Builder addTermsBuilder(int index)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameter
Name Description
index int
Returns
Type Description
GlossaryTerm.Builder

build()

public GlossaryEntry.GlossaryTermsSet build()
Returns
Type Description
GlossaryEntry.GlossaryTermsSet

buildPartial()

public GlossaryEntry.GlossaryTermsSet buildPartial()
Returns
Type Description
GlossaryEntry.GlossaryTermsSet

clear()

public GlossaryEntry.GlossaryTermsSet.Builder clear()
Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTerms()

public GlossaryEntry.GlossaryTermsSet.Builder clearTerms()

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder

clone()

public GlossaryEntry.GlossaryTermsSet.Builder clone()
Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder
Overrides

getDefaultInstanceForType()

public GlossaryEntry.GlossaryTermsSet getDefaultInstanceForType()
Returns
Type Description
GlossaryEntry.GlossaryTermsSet

getDescriptorForType()

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

getTerms(int index)

public GlossaryTerm getTerms(int index)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameter
Name Description
index int
Returns
Type Description
GlossaryTerm

getTermsBuilder(int index)

public GlossaryTerm.Builder getTermsBuilder(int index)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameter
Name Description
index int
Returns
Type Description
GlossaryTerm.Builder

getTermsBuilderList()

public List<GlossaryTerm.Builder> getTermsBuilderList()

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Returns
Type Description
List<Builder>

getTermsCount()

public int getTermsCount()

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Returns
Type Description
int

getTermsList()

public List<GlossaryTerm> getTermsList()

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Returns
Type Description
List<GlossaryTerm>

getTermsOrBuilder(int index)

public GlossaryTermOrBuilder getTermsOrBuilder(int index)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameter
Name Description
index int
Returns
Type Description
GlossaryTermOrBuilder

getTermsOrBuilderList()

public List<? extends GlossaryTermOrBuilder> getTermsOrBuilderList()

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Returns
Type Description
List<? extends com.google.cloud.translate.v3.GlossaryTermOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GlossaryEntry.GlossaryTermsSet other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTerms(int index)

public GlossaryEntry.GlossaryTermsSet.Builder removeTerms(int index)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameter
Name Description
index int
Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTerms(int index, GlossaryTerm value)

public GlossaryEntry.GlossaryTermsSet.Builder setTerms(int index, GlossaryTerm value)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameters
Name Description
index int
value GlossaryTerm
Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder

setTerms(int index, GlossaryTerm.Builder builderForValue)

public GlossaryEntry.GlossaryTermsSet.Builder setTerms(int index, GlossaryTerm.Builder builderForValue)

Each term in the set represents a term that can be replaced by the other terms.

repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;

Parameters
Name Description
index int
builderForValue GlossaryTerm.Builder
Returns
Type Description
GlossaryEntry.GlossaryTermsSet.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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