Class Symbol.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Symbol.Builder>
-
- com.google.cloud.vision.v1p4beta1.Symbol.Builder
-
- All Implemented Interfaces:
SymbolOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Symbol
public static final class Symbol.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Symbol.Builder> implements SymbolOrBuilder
A single symbol representation.
Protobuf typegoogle.cloud.vision.v1p4beta1.Symbol
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Symbol.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Symbolbuild()SymbolbuildPartial()Symbol.Builderclear()Symbol.BuilderclearBoundingBox()The bounding box for the symbol.Symbol.BuilderclearConfidence()Confidence of the OCR results for the symbol.Symbol.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Symbol.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Symbol.BuilderclearProperty()Additional information detected for the symbol.Symbol.BuilderclearText()The actual UTF-8 representation of the symbol.Symbol.Builderclone()BoundingPolygetBoundingBox()The bounding box for the symbol.BoundingPoly.BuildergetBoundingBoxBuilder()The bounding box for the symbol.BoundingPolyOrBuildergetBoundingBoxOrBuilder()The bounding box for the symbol.floatgetConfidence()Confidence of the OCR results for the symbol.SymbolgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()TextAnnotation.TextPropertygetProperty()Additional information detected for the symbol.TextAnnotation.TextProperty.BuildergetPropertyBuilder()Additional information detected for the symbol.TextAnnotation.TextPropertyOrBuildergetPropertyOrBuilder()Additional information detected for the symbol.StringgetText()The actual UTF-8 representation of the symbol.com.google.protobuf.ByteStringgetTextBytes()The actual UTF-8 representation of the symbol.booleanhasBoundingBox()The bounding box for the symbol.booleanhasProperty()Additional information detected for the symbol.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Symbol.BuildermergeBoundingBox(BoundingPoly value)The bounding box for the symbol.Symbol.BuildermergeFrom(Symbol other)Symbol.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Symbol.BuildermergeFrom(com.google.protobuf.Message other)Symbol.BuildermergeProperty(TextAnnotation.TextProperty value)Additional information detected for the symbol.Symbol.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Symbol.BuildersetBoundingBox(BoundingPoly value)The bounding box for the symbol.Symbol.BuildersetBoundingBox(BoundingPoly.Builder builderForValue)The bounding box for the symbol.Symbol.BuildersetConfidence(float value)Confidence of the OCR results for the symbol.Symbol.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Symbol.BuildersetProperty(TextAnnotation.TextProperty value)Additional information detected for the symbol.Symbol.BuildersetProperty(TextAnnotation.TextProperty.Builder builderForValue)Additional information detected for the symbol.Symbol.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Symbol.BuildersetText(String value)The actual UTF-8 representation of the symbol.Symbol.BuildersetTextBytes(com.google.protobuf.ByteString value)The actual UTF-8 representation of the symbol.Symbol.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<Symbol.Builder>
-
clear
public Symbol.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<Symbol.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<Symbol.Builder>
-
getDefaultInstanceForType
public Symbol getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Symbol build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Symbol buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Symbol.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<Symbol.Builder>
-
setField
public Symbol.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<Symbol.Builder>
-
clearField
public Symbol.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Symbol.Builder>
-
clearOneof
public Symbol.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Symbol.Builder>
-
setRepeatedField
public Symbol.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<Symbol.Builder>
-
addRepeatedField
public Symbol.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<Symbol.Builder>
-
mergeFrom
public Symbol.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Symbol.Builder>
-
mergeFrom
public Symbol.Builder mergeFrom(Symbol other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Symbol.Builder>
-
mergeFrom
public Symbol.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<Symbol.Builder>- Throws:
IOException
-
hasProperty
public boolean hasProperty()
Additional information detected for the symbol.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;- Specified by:
hasPropertyin interfaceSymbolOrBuilder- Returns:
- Whether the property field is set.
-
getProperty
public TextAnnotation.TextProperty getProperty()
Additional information detected for the symbol.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;- Specified by:
getPropertyin interfaceSymbolOrBuilder- Returns:
- The property.
-
setProperty
public Symbol.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected for the symbol.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;
-
setProperty
public Symbol.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the symbol.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;
-
mergeProperty
public Symbol.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the symbol.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;
-
clearProperty
public Symbol.Builder clearProperty()
Additional information detected for the symbol.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;
-
getPropertyBuilder
public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected for the symbol.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;
-
getPropertyOrBuilder
public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected for the symbol.
.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;- Specified by:
getPropertyOrBuilderin interfaceSymbolOrBuilder
-
hasBoundingBox
public boolean hasBoundingBox()
The bounding box for the symbol. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example: * when the text is horizontal it might look like: 0----1 | | 3----2 * when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3)..google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;- Specified by:
hasBoundingBoxin interfaceSymbolOrBuilder- Returns:
- Whether the boundingBox field is set.
-
getBoundingBox
public BoundingPoly getBoundingBox()
The bounding box for the symbol. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example: * when the text is horizontal it might look like: 0----1 | | 3----2 * when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3)..google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;- Specified by:
getBoundingBoxin interfaceSymbolOrBuilder- Returns:
- The boundingBox.
-
setBoundingBox
public Symbol.Builder setBoundingBox(BoundingPoly value)
The bounding box for the symbol. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example: * when the text is horizontal it might look like: 0----1 | | 3----2 * when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3)..google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
-
setBoundingBox
public Symbol.Builder setBoundingBox(BoundingPoly.Builder builderForValue)
The bounding box for the symbol. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example: * when the text is horizontal it might look like: 0----1 | | 3----2 * when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3)..google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
-
mergeBoundingBox
public Symbol.Builder mergeBoundingBox(BoundingPoly value)
The bounding box for the symbol. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example: * when the text is horizontal it might look like: 0----1 | | 3----2 * when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3)..google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
-
clearBoundingBox
public Symbol.Builder clearBoundingBox()
The bounding box for the symbol. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example: * when the text is horizontal it might look like: 0----1 | | 3----2 * when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3)..google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
-
getBoundingBoxBuilder
public BoundingPoly.Builder getBoundingBoxBuilder()
The bounding box for the symbol. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example: * when the text is horizontal it might look like: 0----1 | | 3----2 * when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3)..google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;
-
getBoundingBoxOrBuilder
public BoundingPolyOrBuilder getBoundingBoxOrBuilder()
The bounding box for the symbol. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example: * when the text is horizontal it might look like: 0----1 | | 3----2 * when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3)..google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2;- Specified by:
getBoundingBoxOrBuilderin interfaceSymbolOrBuilder
-
getText
public String getText()
The actual UTF-8 representation of the symbol.
string text = 3;- Specified by:
getTextin interfaceSymbolOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()
The actual UTF-8 representation of the symbol.
string text = 3;- Specified by:
getTextBytesin interfaceSymbolOrBuilder- Returns:
- The bytes for text.
-
setText
public Symbol.Builder setText(String value)
The actual UTF-8 representation of the symbol.
string text = 3;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
public Symbol.Builder clearText()
The actual UTF-8 representation of the symbol.
string text = 3;- Returns:
- This builder for chaining.
-
setTextBytes
public Symbol.Builder setTextBytes(com.google.protobuf.ByteString value)
The actual UTF-8 representation of the symbol.
string text = 3;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
getConfidence
public float getConfidence()
Confidence of the OCR results for the symbol. Range [0, 1].
float confidence = 4;- Specified by:
getConfidencein interfaceSymbolOrBuilder- Returns:
- The confidence.
-
setConfidence
public Symbol.Builder setConfidence(float value)
Confidence of the OCR results for the symbol. Range [0, 1].
float confidence = 4;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
public Symbol.Builder clearConfidence()
Confidence of the OCR results for the symbol. Range [0, 1].
float confidence = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Symbol.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Symbol.Builder>
-
mergeUnknownFields
public final Symbol.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Symbol.Builder>
-
-