public static final class TextExtractionAnnotation.Builder extends GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder> implements TextExtractionAnnotationOrBuilder
Annotation for identifying spans of text.
Protobuf type google.cloud.automl.v1beta1.TextExtractionAnnotation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public TextExtractionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public TextExtractionAnnotation build()
public TextExtractionAnnotation buildPartial()
public TextExtractionAnnotation.Builder clear()
Overrides
public TextExtractionAnnotation.Builder clearAnnotation()
public TextExtractionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public TextExtractionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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 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.v1beta1.TextSegment text_segment = 3;
public TextExtractionAnnotation.Builder clone()
Overrides
public TextExtractionAnnotation.AnnotationCase getAnnotationCase()
public TextExtractionAnnotation getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 |
---|
Type | Description |
float | The score.
|
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.v1beta1.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.v1beta1.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.v1beta1.TextSegment text_segment = 3;
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.v1beta1.TextSegment text_segment = 3;
Returns |
---|
Type | Description |
boolean | Whether the textSegment field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public TextExtractionAnnotation.Builder mergeFrom(TextExtractionAnnotation other)
public TextExtractionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public TextExtractionAnnotation.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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.v1beta1.TextSegment text_segment = 3;
public final TextExtractionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public TextExtractionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public TextExtractionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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;
Parameter |
---|
Name | Description |
value | float
The score to set.
|
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.v1beta1.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.v1beta1.TextSegment text_segment = 3;
public final TextExtractionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides