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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GlossaryEntry.GlossaryTermsSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
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;
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
|
build()
public GlossaryEntry.GlossaryTermsSet build()
buildPartial()
public GlossaryEntry.GlossaryTermsSet buildPartial()
clear()
public GlossaryEntry.GlossaryTermsSet.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GlossaryEntry.GlossaryTermsSet.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GlossaryEntry.GlossaryTermsSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public GlossaryEntry.GlossaryTermsSet.Builder clone()
Overrides
getDefaultInstanceForType()
public GlossaryEntry.GlossaryTermsSet getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GlossaryEntry.GlossaryTermsSet other)
public GlossaryEntry.GlossaryTermsSet.Builder mergeFrom(GlossaryEntry.GlossaryTermsSet other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GlossaryEntry.GlossaryTermsSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GlossaryEntry.GlossaryTermsSet.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GlossaryEntry.GlossaryTermsSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public GlossaryEntry.GlossaryTermsSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GlossaryEntry.GlossaryTermsSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final GlossaryEntry.GlossaryTermsSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides