public final class TextExtractionAnnotation extends GeneratedMessageV3 implements TextExtractionAnnotationOrBuilder
Annotation for identifying spans of text.
Protobuf type google.cloud.automl.v1.TextExtractionAnnotation
Static Fields
public static final int SCORE_FIELD_NUMBER
Field Value
public static final int TEXT_SEGMENT_FIELD_NUMBER
Field Value
Static Methods
public static TextExtractionAnnotation getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static TextExtractionAnnotation.Builder newBuilder()
Returns
public static TextExtractionAnnotation.Builder newBuilder(TextExtractionAnnotation prototype)
Parameter
Returns
public static TextExtractionAnnotation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TextExtractionAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionAnnotation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static TextExtractionAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionAnnotation parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static TextExtractionAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionAnnotation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TextExtractionAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionAnnotation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TextExtractionAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextExtractionAnnotation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static TextExtractionAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<TextExtractionAnnotation> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public TextExtractionAnnotation.AnnotationCase getAnnotationCase()
Returns
public TextExtractionAnnotation getDefaultInstanceForType()
Returns
public Parser<TextExtractionAnnotation> getParserForType()
Returns
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 int getSerializedSize()
Returns
Overrides
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;
Returns
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;
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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;
Returns
Type | Description |
boolean | Whether the textSegment field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TextExtractionAnnotation.Builder newBuilderForType()
Returns
protected TextExtractionAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public TextExtractionAnnotation.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions