public static final class TextEntityExtractionAnnotation.Builder extends GeneratedMessageV3.Builder<TextEntityExtractionAnnotation.Builder> implements TextEntityExtractionAnnotationOrBuilder
Text entity extraction annotation.
Protobuf type google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation
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()
Returns
Methods
public TextEntityExtractionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public TextEntityExtractionAnnotation build()
Returns
public TextEntityExtractionAnnotation buildPartial()
Returns
public TextEntityExtractionAnnotation.Builder clear()
Returns
Overrides
public TextEntityExtractionAnnotation.Builder clearAnnotationSpec()
Label of the text entities.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
public TextEntityExtractionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public TextEntityExtractionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public TextEntityExtractionAnnotation.Builder clearSequentialSegment()
Position of the entity.
.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;
Returns
public TextEntityExtractionAnnotation.Builder clone()
Returns
Overrides
public AnnotationSpec getAnnotationSpec()
Label of the text entities.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
public AnnotationSpec.Builder getAnnotationSpecBuilder()
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 Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public SequentialSegment getSequentialSegment()
Position of the entity.
.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;
Returns
public SequentialSegment.Builder getSequentialSegmentBuilder()
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 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TextEntityExtractionAnnotation.Builder mergeAnnotationSpec(AnnotationSpec value)
Label of the text entities.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Parameter
Returns
public TextEntityExtractionAnnotation.Builder mergeFrom(TextEntityExtractionAnnotation other)
Parameter
Returns
public TextEntityExtractionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public TextEntityExtractionAnnotation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public TextEntityExtractionAnnotation.Builder mergeSequentialSegment(SequentialSegment value)
Position of the entity.
.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;
Parameter
Returns
public final TextEntityExtractionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public TextEntityExtractionAnnotation.Builder setAnnotationSpec(AnnotationSpec value)
Label of the text entities.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Parameter
Returns
public TextEntityExtractionAnnotation.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)
Label of the text entities.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Parameter
Returns
public TextEntityExtractionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public TextEntityExtractionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public TextEntityExtractionAnnotation.Builder setSequentialSegment(SequentialSegment value)
Position of the entity.
.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;
Parameter
Returns
public TextEntityExtractionAnnotation.Builder setSequentialSegment(SequentialSegment.Builder builderForValue)
Position of the entity.
.google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2;
Parameter
Returns
public final TextEntityExtractionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides