Send feedback
Class GlossaryEntry.GlossaryTermsPair.Builder (2.53.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.53.0keyboard_arrow_down
public static final class GlossaryEntry . GlossaryTermsPair . Builder extends GeneratedMessageV3 . Builder<GlossaryEntry . GlossaryTermsPair . Builder > implements GlossaryEntry . GlossaryTermsPairOrBuilder
Represents a single entry for an unidirectional glossary.
Protobuf type google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GlossaryEntry . GlossaryTermsPair . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public GlossaryEntry . GlossaryTermsPair build ()
buildPartial()
public GlossaryEntry . GlossaryTermsPair buildPartial ()
clear()
public GlossaryEntry . GlossaryTermsPair . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GlossaryEntry . GlossaryTermsPair . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GlossaryEntry . GlossaryTermsPair . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearSourceTerm()
public GlossaryEntry . GlossaryTermsPair . Builder clearSourceTerm ()
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1;
clearTargetTerm()
public GlossaryEntry . GlossaryTermsPair . Builder clearTargetTerm ()
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;
clone()
public GlossaryEntry . GlossaryTermsPair . Builder clone ()
Overrides
getDefaultInstanceForType()
public GlossaryEntry . GlossaryTermsPair getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getSourceTerm()
public GlossaryTerm getSourceTerm ()
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1;
getSourceTermBuilder()
public GlossaryTerm . Builder getSourceTermBuilder ()
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1;
getSourceTermOrBuilder()
public GlossaryTermOrBuilder getSourceTermOrBuilder ()
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1;
getTargetTerm()
public GlossaryTerm getTargetTerm ()
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;
getTargetTermBuilder()
public GlossaryTerm . Builder getTargetTermBuilder ()
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;
getTargetTermOrBuilder()
public GlossaryTermOrBuilder getTargetTermOrBuilder ()
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;
hasSourceTerm()
public boolean hasSourceTerm ()
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1;
Returns
Type
Description
boolean
Whether the sourceTerm field is set.
hasTargetTerm()
public boolean hasTargetTerm ()
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;
Returns
Type
Description
boolean
Whether the targetTerm field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(GlossaryEntry.GlossaryTermsPair other)
public GlossaryEntry . GlossaryTermsPair . Builder mergeFrom ( GlossaryEntry . GlossaryTermsPair other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GlossaryEntry . GlossaryTermsPair . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public GlossaryEntry . GlossaryTermsPair . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeSourceTerm(GlossaryTerm value)
public GlossaryEntry . GlossaryTermsPair . Builder mergeSourceTerm ( GlossaryTerm value )
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1;
mergeTargetTerm(GlossaryTerm value)
public GlossaryEntry . GlossaryTermsPair . Builder mergeTargetTerm ( GlossaryTerm value )
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GlossaryEntry . GlossaryTermsPair . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GlossaryEntry . GlossaryTermsPair . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GlossaryEntry . GlossaryTermsPair . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setSourceTerm(GlossaryTerm value)
public GlossaryEntry . GlossaryTermsPair . Builder setSourceTerm ( GlossaryTerm value )
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1;
setSourceTerm(GlossaryTerm.Builder builderForValue)
public GlossaryEntry . GlossaryTermsPair . Builder setSourceTerm ( GlossaryTerm . Builder builderForValue )
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1;
setTargetTerm(GlossaryTerm value)
public GlossaryEntry . GlossaryTermsPair . Builder setTargetTerm ( GlossaryTerm value )
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;
setTargetTerm(GlossaryTerm.Builder builderForValue)
public GlossaryEntry . GlossaryTermsPair . Builder setTargetTerm ( GlossaryTerm . Builder builderForValue )
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final GlossaryEntry . GlossaryTermsPair . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-16 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-16 UTC."],[],[],null,[]]