public final class TextEntityExtractionAnnotation extends GeneratedMessageV3 implements TextEntityExtractionAnnotationOrBuilder
Text entity extraction annotation.
Protobuf type google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
Static Fields
public static final int ANNOTATION_SPEC_FIELD_NUMBER
Field Value
public static final int SEQUENTIAL_SEGMENT_FIELD_NUMBER
Field Value
Static Methods
public static TextEntityExtractionAnnotation getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static TextEntityExtractionAnnotation.Builder newBuilder()
Returns
public static TextEntityExtractionAnnotation.Builder newBuilder(TextEntityExtractionAnnotation prototype)
Parameter
Returns
public static TextEntityExtractionAnnotation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TextEntityExtractionAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextEntityExtractionAnnotation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static TextEntityExtractionAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextEntityExtractionAnnotation parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static TextEntityExtractionAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextEntityExtractionAnnotation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TextEntityExtractionAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextEntityExtractionAnnotation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TextEntityExtractionAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TextEntityExtractionAnnotation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static TextEntityExtractionAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<TextEntityExtractionAnnotation> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public AnnotationSpec getAnnotationSpec()
Label of the text entities.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()
Label of the text entities.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
public TextEntityExtractionAnnotation getDefaultInstanceForType()
Returns
public Parser<TextEntityExtractionAnnotation> getParserForType()
Returns
Overrides
public SequentialSegment getSequentialSegment()
Position of the entity.
.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;
Returns
public SequentialSegmentOrBuilder getSequentialSegmentOrBuilder()
Position of the entity.
.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;
Returns
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasAnnotationSpec()
Label of the text entities.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
Type | Description |
boolean | Whether the annotationSpec field is set.
|
public boolean hasSequentialSegment()
Position of the entity.
.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;
Returns
Type | Description |
boolean | Whether the sequentialSegment field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TextEntityExtractionAnnotation.Builder newBuilderForType()
Returns
protected TextEntityExtractionAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public TextEntityExtractionAnnotation.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions