Package com.google.cloud.automl.v1beta1
Class TextExtractionAnnotation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
- com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder
-
- All Implemented Interfaces:
TextExtractionAnnotationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TextExtractionAnnotation
public static final class TextExtractionAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder> implements TextExtractionAnnotationOrBuilder
Annotation for identifying spans of text.
Protobuf typegoogle.cloud.automl.v1beta1.TextExtractionAnnotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextExtractionAnnotation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TextExtractionAnnotationbuild()TextExtractionAnnotationbuildPartial()TextExtractionAnnotation.Builderclear()TextExtractionAnnotation.BuilderclearAnnotation()TextExtractionAnnotation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TextExtractionAnnotation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TextExtractionAnnotation.BuilderclearScore()Output only.TextExtractionAnnotation.BuilderclearTextSegment()An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextExtractionAnnotation.Builderclone()TextExtractionAnnotation.AnnotationCasegetAnnotationCase()TextExtractionAnnotationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()floatgetScore()Output only.TextSegmentgetTextSegment()An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextSegment.BuildergetTextSegmentBuilder()An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextSegmentOrBuildergetTextSegmentOrBuilder()An entity annotation will set this, which is the part of the original text to which the annotation pertains.booleanhasTextSegment()An entity annotation will set this, which is the part of the original text to which the annotation pertains.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TextExtractionAnnotation.BuildermergeFrom(TextExtractionAnnotation other)TextExtractionAnnotation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TextExtractionAnnotation.BuildermergeFrom(com.google.protobuf.Message other)TextExtractionAnnotation.BuildermergeTextSegment(TextSegment value)An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextExtractionAnnotation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TextExtractionAnnotation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TextExtractionAnnotation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TextExtractionAnnotation.BuildersetScore(float value)Output only.TextExtractionAnnotation.BuildersetTextSegment(TextSegment value)An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextExtractionAnnotation.BuildersetTextSegment(TextSegment.Builder builderForValue)An entity annotation will set this, which is the part of the original text to which the annotation pertains.TextExtractionAnnotation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
clear
public TextExtractionAnnotation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
getDefaultInstanceForType
public TextExtractionAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TextExtractionAnnotation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TextExtractionAnnotation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TextExtractionAnnotation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
setField
public TextExtractionAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
clearField
public TextExtractionAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
clearOneof
public TextExtractionAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
setRepeatedField
public TextExtractionAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
addRepeatedField
public TextExtractionAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
mergeFrom
public TextExtractionAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextExtractionAnnotation.Builder>
-
mergeFrom
public TextExtractionAnnotation.Builder mergeFrom(TextExtractionAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
mergeFrom
public TextExtractionAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextExtractionAnnotation.Builder>- Throws:
IOException
-
getAnnotationCase
public TextExtractionAnnotation.AnnotationCase getAnnotationCase()
- Specified by:
getAnnotationCasein interfaceTextExtractionAnnotationOrBuilder
-
clearAnnotation
public TextExtractionAnnotation.Builder clearAnnotation()
-
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.v1beta1.TextSegment text_segment = 3;- Specified by:
hasTextSegmentin interfaceTextExtractionAnnotationOrBuilder- Returns:
- Whether the textSegment field is set.
-
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.v1beta1.TextSegment text_segment = 3;- Specified by:
getTextSegmentin interfaceTextExtractionAnnotationOrBuilder- Returns:
- The textSegment.
-
setTextSegment
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.v1beta1.TextSegment text_segment = 3;
-
setTextSegment
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.v1beta1.TextSegment text_segment = 3;
-
mergeTextSegment
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.v1beta1.TextSegment text_segment = 3;
-
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.v1beta1.TextSegment text_segment = 3;
-
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.v1beta1.TextSegment text_segment = 3;
-
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.v1beta1.TextSegment text_segment = 3;- Specified by:
getTextSegmentOrBuilderin interfaceTextExtractionAnnotationOrBuilder
-
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;- Specified by:
getScorein interfaceTextExtractionAnnotationOrBuilder- Returns:
- The score.
-
setScore
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;- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final TextExtractionAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
mergeUnknownFields
public final TextExtractionAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionAnnotation.Builder>
-
-