Class TextEntityExtractionAnnotation.Builder (0.173.0)

public static final class TextEntityExtractionAnnotation.Builder extends GeneratedMessageV3.Builder<TextEntityExtractionAnnotation.Builder> implements TextEntityExtractionAnnotationOrBuilder

Text entity extraction annotation.

Protobuf type google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextEntityExtractionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides

build()

public TextEntityExtractionAnnotation build()
Returns
Type Description
TextEntityExtractionAnnotation

buildPartial()

public TextEntityExtractionAnnotation buildPartial()
Returns
Type Description
TextEntityExtractionAnnotation

clear()

public TextEntityExtractionAnnotation.Builder clear()
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides

clearAnnotationSpec()

public TextEntityExtractionAnnotation.Builder clearAnnotationSpec()

Label of the text entities.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
TextEntityExtractionAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

public TextEntityExtractionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TextEntityExtractionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides

clearSequentialSegment()

public TextEntityExtractionAnnotation.Builder clearSequentialSegment()

Position of the entity.

.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;

Returns
Type Description
TextEntityExtractionAnnotation.Builder

clone()

public TextEntityExtractionAnnotation.Builder clone()
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of the text entities.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

Label of the text entities.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of the text entities.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public TextEntityExtractionAnnotation getDefaultInstanceForType()
Returns
Type Description
TextEntityExtractionAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSequentialSegment()

public SequentialSegment getSequentialSegment()

Position of the entity.

.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;

Returns
Type Description
SequentialSegment

The sequentialSegment.

getSequentialSegmentBuilder()

public SequentialSegment.Builder getSequentialSegmentBuilder()

Position of the entity.

.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;

Returns
Type Description
SequentialSegment.Builder

getSequentialSegmentOrBuilder()

public SequentialSegmentOrBuilder getSequentialSegmentOrBuilder()

Position of the entity.

.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;

Returns
Type Description
SequentialSegmentOrBuilder

hasAnnotationSpec()

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.

hasSequentialSegment()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnnotationSpec(AnnotationSpec value)

public TextEntityExtractionAnnotation.Builder mergeAnnotationSpec(AnnotationSpec value)

Label of the text entities.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
TextEntityExtractionAnnotation.Builder

mergeFrom(TextEntityExtractionAnnotation other)

public TextEntityExtractionAnnotation.Builder mergeFrom(TextEntityExtractionAnnotation other)
Parameter
Name Description
other TextEntityExtractionAnnotation
Returns
Type Description
TextEntityExtractionAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TextEntityExtractionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TextEntityExtractionAnnotation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides

mergeSequentialSegment(SequentialSegment value)

public TextEntityExtractionAnnotation.Builder mergeSequentialSegment(SequentialSegment value)

Position of the entity.

.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;

Parameter
Name Description
value SequentialSegment
Returns
Type Description
TextEntityExtractionAnnotation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextEntityExtractionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides

setAnnotationSpec(AnnotationSpec value)

public TextEntityExtractionAnnotation.Builder setAnnotationSpec(AnnotationSpec value)

Label of the text entities.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
TextEntityExtractionAnnotation.Builder

setAnnotationSpec(AnnotationSpec.Builder builderForValue)

public TextEntityExtractionAnnotation.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)

Label of the text entities.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
Name Description
builderForValue AnnotationSpec.Builder
Returns
Type Description
TextEntityExtractionAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TextEntityExtractionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TextEntityExtractionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides

setSequentialSegment(SequentialSegment value)

public TextEntityExtractionAnnotation.Builder setSequentialSegment(SequentialSegment value)

Position of the entity.

.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;

Parameter
Name Description
value SequentialSegment
Returns
Type Description
TextEntityExtractionAnnotation.Builder

setSequentialSegment(SequentialSegment.Builder builderForValue)

public TextEntityExtractionAnnotation.Builder setSequentialSegment(SequentialSegment.Builder builderForValue)

Position of the entity.

.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;

Parameter
Name Description
builderForValue SequentialSegment.Builder
Returns
Type Description
TextEntityExtractionAnnotation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final TextEntityExtractionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TextEntityExtractionAnnotation.Builder
Overrides