public static final class TextExtractionAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder> implements TextExtractionAnnotationOrBuilder
Annotation for identifying spans of text.Protobuf type
google.cloud.automl.v1.TextExtractionAnnotation| Modifier and Type | Method and 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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TextExtractionAnnotation.Builder |
mergeFrom(com.google.protobuf.Message other) |
TextExtractionAnnotation.Builder |
mergeFrom(TextExtractionAnnotation 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.Builder builderForValue)
An entity annotation will set this, which is the part of the original
text to which the annotation pertains.
|
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 |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public TextExtractionAnnotation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public TextExtractionAnnotation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TextExtractionAnnotation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TextExtractionAnnotation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TextExtractionAnnotation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public TextExtractionAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public TextExtractionAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public TextExtractionAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public TextExtractionAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public TextExtractionAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public TextExtractionAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextExtractionAnnotation.Builder>public TextExtractionAnnotation.Builder mergeFrom(TextExtractionAnnotation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public TextExtractionAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextExtractionAnnotation.Builder>IOExceptionpublic TextExtractionAnnotation.AnnotationCase getAnnotationCase()
getAnnotationCase in interface TextExtractionAnnotationOrBuilderpublic TextExtractionAnnotation.Builder clearAnnotation()
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;hasTextSegment in interface TextExtractionAnnotationOrBuilderpublic 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;getTextSegment in interface TextExtractionAnnotationOrBuilderpublic 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;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;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;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;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;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;getTextSegmentOrBuilder in interface TextExtractionAnnotationOrBuilderpublic 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;getScore in interface TextExtractionAnnotationOrBuilderpublic 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;value - The score to set.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;public final TextExtractionAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>public final TextExtractionAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>Copyright © 2025 Google LLC. All rights reserved.