public static final class GlossaryEntry.GlossaryTermsSet.Builder extends GeneratedMessage.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.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
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>
|
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
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;
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 GeneratedMessage.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
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
|
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;