Class TextEntityExtractionAnnotation.Builder (0.161.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextEntityExtractionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder
Overrides

build()

public TextEntityExtractionAnnotation build()
Returns
TypeDescription
TextEntityExtractionAnnotation

buildPartial()

public TextEntityExtractionAnnotation buildPartial()
Returns
TypeDescription
TextEntityExtractionAnnotation

clear()

public TextEntityExtractionAnnotation.Builder clear()
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder
Overrides

clearAnnotationSpec()

public TextEntityExtractionAnnotation.Builder clearAnnotationSpec()

Label of the text entities.

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

Returns
TypeDescription
TextEntityExtractionAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

public TextEntityExtractionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TextEntityExtractionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder
Overrides

clearSequentialSegment()

public TextEntityExtractionAnnotation.Builder clearSequentialSegment()

Position of the entity.

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

Returns
TypeDescription
TextEntityExtractionAnnotation.Builder

clone()

public TextEntityExtractionAnnotation.Builder clone()
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder
Overrides

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of the text entities.

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

Returns
TypeDescription
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

Label of the text entities.

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

Returns
TypeDescription
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of the text entities.

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

Returns
TypeDescription
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public TextEntityExtractionAnnotation getDefaultInstanceForType()
Returns
TypeDescription
TextEntityExtractionAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSequentialSegment()

public SequentialSegment getSequentialSegment()

Position of the entity.

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

Returns
TypeDescription
SequentialSegment

The sequentialSegment.

getSequentialSegmentBuilder()

public SequentialSegment.Builder getSequentialSegmentBuilder()

Position of the entity.

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

Returns
TypeDescription
SequentialSegment.Builder

getSequentialSegmentOrBuilder()

public SequentialSegmentOrBuilder getSequentialSegmentOrBuilder()

Position of the entity.

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

Returns
TypeDescription
SequentialSegmentOrBuilder

hasAnnotationSpec()

public boolean hasAnnotationSpec()

Label of the text entities.

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

Returns
TypeDescription
boolean

Whether the annotationSpec field is set.

hasSequentialSegment()

public boolean hasSequentialSegment()

Position of the entity.

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

Returns
TypeDescription
boolean

Whether the sequentialSegment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAnnotationSpec
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder

mergeFrom(TextEntityExtractionAnnotation other)

public TextEntityExtractionAnnotation.Builder mergeFrom(TextEntityExtractionAnnotation other)
Parameter
NameDescription
otherTextEntityExtractionAnnotation
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TextEntityExtractionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TextEntityExtractionAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSequentialSegment
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextEntityExtractionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAnnotationSpec
Returns
TypeDescription
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
NameDescription
builderForValueAnnotationSpec.Builder
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TextEntityExtractionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder
Overrides

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

public TextEntityExtractionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSequentialSegment
Returns
TypeDescription
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
NameDescription
builderForValueSequentialSegment.Builder
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final TextEntityExtractionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextEntityExtractionAnnotation.Builder
Overrides