Package com.google.cloud.automl.v1
Class TextExtractionAnnotation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
- com.google.cloud.automl.v1.TextExtractionAnnotation.Builder
-
- All Implemented Interfaces:
TextExtractionAnnotationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- TextExtractionAnnotation
public static final class TextExtractionAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder> implements TextExtractionAnnotationOrBuilder
Annotation for identifying spans of text.
Protobuf typegoogle.cloud.automl.v1.TextExtractionAnnotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextExtractionAnnotation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TextExtractionAnnotation
build()
TextExtractionAnnotation
buildPartial()
TextExtractionAnnotation.Builder
clear()
TextExtractionAnnotation.Builder
clearAnnotation()
TextExtractionAnnotation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TextExtractionAnnotation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TextExtractionAnnotation.Builder
clearScore()
Output only.TextExtractionAnnotation.Builder
clearTextSegment()
An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextExtractionAnnotation.Builder
clone()
TextExtractionAnnotation.AnnotationCase
getAnnotationCase()
TextExtractionAnnotation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
float
getScore()
Output only.TextSegment
getTextSegment()
An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextSegment.Builder
getTextSegmentBuilder()
An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextSegmentOrBuilder
getTextSegmentOrBuilder()
An entity annotation will set this, which is the part of the original text to which the annotation pertains.boolean
hasTextSegment()
An entity annotation will set this, which is the part of the original text to which the annotation pertains.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TextExtractionAnnotation.Builder
mergeFrom(TextExtractionAnnotation other)
TextExtractionAnnotation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TextExtractionAnnotation.Builder
mergeFrom(com.google.protobuf.Message other)
TextExtractionAnnotation.Builder
mergeTextSegment(TextSegment value)
An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextExtractionAnnotation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TextExtractionAnnotation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TextExtractionAnnotation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TextExtractionAnnotation.Builder
setScore(float value)
Output only.TextExtractionAnnotation.Builder
setTextSegment(TextSegment value)
An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextExtractionAnnotation.Builder
setTextSegment(TextSegment.Builder builderForValue)
An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextExtractionAnnotation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
clear
public TextExtractionAnnotation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
getDefaultInstanceForType
public TextExtractionAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TextExtractionAnnotation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TextExtractionAnnotation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TextExtractionAnnotation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
setField
public TextExtractionAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
clearField
public TextExtractionAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
clearOneof
public TextExtractionAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
setRepeatedField
public TextExtractionAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
addRepeatedField
public TextExtractionAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
mergeFrom
public TextExtractionAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TextExtractionAnnotation.Builder>
-
mergeFrom
public TextExtractionAnnotation.Builder mergeFrom(TextExtractionAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
mergeFrom
public TextExtractionAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TextExtractionAnnotation.Builder>
- Throws:
IOException
-
getAnnotationCase
public TextExtractionAnnotation.AnnotationCase getAnnotationCase()
- Specified by:
getAnnotationCase
in interfaceTextExtractionAnnotationOrBuilder
-
clearAnnotation
public TextExtractionAnnotation.Builder clearAnnotation()
-
hasTextSegment
public boolean hasTextSegment()
An entity annotation will set this, which is the part of the original text to which the annotation pertains.
.google.cloud.automl.v1.TextSegment text_segment = 3;
- Specified by:
hasTextSegment
in interfaceTextExtractionAnnotationOrBuilder
- Returns:
- Whether the textSegment field is set.
-
getTextSegment
public TextSegment getTextSegment()
An entity annotation will set this, which is the part of the original text to which the annotation pertains.
.google.cloud.automl.v1.TextSegment text_segment = 3;
- Specified by:
getTextSegment
in interfaceTextExtractionAnnotationOrBuilder
- Returns:
- The textSegment.
-
setTextSegment
public TextExtractionAnnotation.Builder setTextSegment(TextSegment value)
An entity annotation will set this, which is the part of the original text to which the annotation pertains.
.google.cloud.automl.v1.TextSegment text_segment = 3;
-
setTextSegment
public TextExtractionAnnotation.Builder setTextSegment(TextSegment.Builder builderForValue)
An entity annotation will set this, which is the part of the original text to which the annotation pertains.
.google.cloud.automl.v1.TextSegment text_segment = 3;
-
mergeTextSegment
public TextExtractionAnnotation.Builder mergeTextSegment(TextSegment value)
An entity annotation will set this, which is the part of the original text to which the annotation pertains.
.google.cloud.automl.v1.TextSegment text_segment = 3;
-
clearTextSegment
public TextExtractionAnnotation.Builder clearTextSegment()
An entity annotation will set this, which is the part of the original text to which the annotation pertains.
.google.cloud.automl.v1.TextSegment text_segment = 3;
-
getTextSegmentBuilder
public TextSegment.Builder getTextSegmentBuilder()
An entity annotation will set this, which is the part of the original text to which the annotation pertains.
.google.cloud.automl.v1.TextSegment text_segment = 3;
-
getTextSegmentOrBuilder
public TextSegmentOrBuilder getTextSegmentOrBuilder()
An entity annotation will set this, which is the part of the original text to which the annotation pertains.
.google.cloud.automl.v1.TextSegment text_segment = 3;
- Specified by:
getTextSegmentOrBuilder
in interfaceTextExtractionAnnotationOrBuilder
-
getScore
public float getScore()
Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence in correctness of the annotation.
float score = 1;
- Specified by:
getScore
in interfaceTextExtractionAnnotationOrBuilder
- Returns:
- The score.
-
setScore
public TextExtractionAnnotation.Builder setScore(float value)
Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence in correctness of the annotation.
float score = 1;
- Parameters:
value
- The score to set.- Returns:
- This builder for chaining.
-
clearScore
public TextExtractionAnnotation.Builder clearScore()
Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence in correctness of the annotation.
float score = 1;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final TextExtractionAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
mergeUnknownFields
public final TextExtractionAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
-