- 2.51.0 (latest)
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.18
- 2.2.3
- 2.1.23
public static final class TextExtractionAnnotation.Builder extends GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder> implements TextExtractionAnnotationOrBuilder
Annotation for identifying spans of text.
Protobuf type google.cloud.automl.v1.TextExtractionAnnotation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TextExtractionAnnotation.BuilderImplements
TextExtractionAnnotationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextExtractionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TextExtractionAnnotation.Builder |
build()
public TextExtractionAnnotation build()
Type | Description |
TextExtractionAnnotation |
buildPartial()
public TextExtractionAnnotation buildPartial()
Type | Description |
TextExtractionAnnotation |
clear()
public TextExtractionAnnotation.Builder clear()
Type | Description |
TextExtractionAnnotation.Builder |
clearAnnotation()
public TextExtractionAnnotation.Builder clearAnnotation()
Type | Description |
TextExtractionAnnotation.Builder |
clearField(Descriptors.FieldDescriptor field)
public TextExtractionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TextExtractionAnnotation.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TextExtractionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TextExtractionAnnotation.Builder |
clearScore()
public TextExtractionAnnotation.Builder clearScore()
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;
Type | Description |
TextExtractionAnnotation.Builder | This builder for chaining. |
clearTextSegment()
public TextExtractionAnnotation.Builder clearTextSegment()
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;
Type | Description |
TextExtractionAnnotation.Builder |
clone()
public TextExtractionAnnotation.Builder clone()
Type | Description |
TextExtractionAnnotation.Builder |
getAnnotationCase()
public TextExtractionAnnotation.AnnotationCase getAnnotationCase()
Type | Description |
TextExtractionAnnotation.AnnotationCase |
getDefaultInstanceForType()
public TextExtractionAnnotation getDefaultInstanceForType()
Type | Description |
TextExtractionAnnotation |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getScore()
public float getScore()
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;
Type | Description |
float | The score. |
getTextSegment()
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;
Type | Description |
TextSegment | The textSegment. |
getTextSegmentBuilder()
public TextSegment.Builder getTextSegmentBuilder()
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;
Type | Description |
TextSegment.Builder |
getTextSegmentOrBuilder()
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;
Type | Description |
TextSegmentOrBuilder |
hasTextSegment()
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;
Type | Description |
boolean | Whether the textSegment field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(TextExtractionAnnotation other)
public TextExtractionAnnotation.Builder mergeFrom(TextExtractionAnnotation other)
Name | Description |
other | TextExtractionAnnotation |
Type | Description |
TextExtractionAnnotation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextExtractionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TextExtractionAnnotation.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TextExtractionAnnotation.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TextExtractionAnnotation.Builder |
mergeTextSegment(TextSegment value)
public TextExtractionAnnotation.Builder mergeTextSegment(TextSegment value)
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;
Name | Description |
value | TextSegment |
Type | Description |
TextExtractionAnnotation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextExtractionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TextExtractionAnnotation.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TextExtractionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TextExtractionAnnotation.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextExtractionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TextExtractionAnnotation.Builder |
setScore(float value)
public TextExtractionAnnotation.Builder setScore(float value)
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;
Name | Description |
value | float The score to set. |
Type | Description |
TextExtractionAnnotation.Builder | This builder for chaining. |
setTextSegment(TextSegment value)
public TextExtractionAnnotation.Builder setTextSegment(TextSegment value)
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;
Name | Description |
value | TextSegment |
Type | Description |
TextExtractionAnnotation.Builder |
setTextSegment(TextSegment.Builder builderForValue)
public TextExtractionAnnotation.Builder setTextSegment(TextSegment.Builder builderForValue)
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;
Name | Description |
builderForValue | TextSegment.Builder |
Type | Description |
TextExtractionAnnotation.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TextExtractionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TextExtractionAnnotation.Builder |