Package com.google.cloud.translate.v3
Class GlossaryEntry.GlossaryTermsPair.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GlossaryEntry.GlossaryTermsPair.Builder>
com.google.cloud.translate.v3.GlossaryEntry.GlossaryTermsPair.Builder
- All Implemented Interfaces:
GlossaryEntry.GlossaryTermsPairOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GlossaryEntry.GlossaryTermsPair
public static final class GlossaryEntry.GlossaryTermsPair.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GlossaryEntry.GlossaryTermsPair.Builder>
implements GlossaryEntry.GlossaryTermsPairOrBuilder
Represents a single entry for an unidirectional glossary.Protobuf type
google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The source term is the term that will get match in the text,The term that will replace the match source term.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe source term is the term that will get match in the text,The source term is the term that will get match in the text,The source term is the term that will get match in the text,The term that will replace the match source term.The term that will replace the match source term.The term that will replace the match source term.booleanThe source term is the term that will get match in the text,booleanThe term that will replace the match source term.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSourceTerm(GlossaryTerm value) The source term is the term that will get match in the text,mergeTargetTerm(GlossaryTerm value) The term that will replace the match source term.setSourceTerm(GlossaryTerm value) The source term is the term that will get match in the text,setSourceTerm(GlossaryTerm.Builder builderForValue) The source term is the term that will get match in the text,setTargetTerm(GlossaryTerm value) The term that will replace the match source term.setTargetTerm(GlossaryTerm.Builder builderForValue) The term that will replace the match source term.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GlossaryEntry.GlossaryTermsPair.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GlossaryEntry.GlossaryTermsPair.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GlossaryEntry.GlossaryTermsPair.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GlossaryEntry.GlossaryTermsPair.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GlossaryEntry.GlossaryTermsPair.Builder>
-
mergeFrom
public GlossaryEntry.GlossaryTermsPair.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GlossaryEntry.GlossaryTermsPair.Builder>- Throws:
IOException
-
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;- Specified by:
hasSourceTermin interfaceGlossaryEntry.GlossaryTermsPairOrBuilder- Returns:
- Whether the sourceTerm field is set.
-
getSourceTerm
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1;- Specified by:
getSourceTermin interfaceGlossaryEntry.GlossaryTermsPairOrBuilder- Returns:
- The sourceTerm.
-
setSourceTerm
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1; -
setSourceTerm
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1; -
mergeSourceTerm
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1; -
clearSourceTerm
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1; -
getSourceTermBuilder
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1; -
getSourceTermOrBuilder
The source term is the term that will get match in the text,
.google.cloud.translation.v3.GlossaryTerm source_term = 1;- Specified by:
getSourceTermOrBuilderin interfaceGlossaryEntry.GlossaryTermsPairOrBuilder
-
hasTargetTerm
public boolean hasTargetTerm()The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;- Specified by:
hasTargetTermin interfaceGlossaryEntry.GlossaryTermsPairOrBuilder- Returns:
- Whether the targetTerm field is set.
-
getTargetTerm
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;- Specified by:
getTargetTermin interfaceGlossaryEntry.GlossaryTermsPairOrBuilder- Returns:
- The targetTerm.
-
setTargetTerm
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2; -
setTargetTerm
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2; -
mergeTargetTerm
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2; -
clearTargetTerm
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2; -
getTargetTermBuilder
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2; -
getTargetTermOrBuilder
The term that will replace the match source term.
.google.cloud.translation.v3.GlossaryTerm target_term = 2;- Specified by:
getTargetTermOrBuilderin interfaceGlossaryEntry.GlossaryTermsPairOrBuilder
-