Package com.google.cloud.vision.v1
Class Word.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Word.Builder>
com.google.cloud.vision.v1.Word.Builder
- All Implemented Interfaces:
WordOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Word
public static final class Word.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Word.Builder>
implements WordOrBuilder
A word representation.Protobuf type
google.cloud.vision.v1.Word-
Method Summary
Modifier and TypeMethodDescriptionaddAllSymbols(Iterable<? extends Symbol> values) List of symbols in the word.addSymbols(int index, Symbol value) List of symbols in the word.addSymbols(int index, Symbol.Builder builderForValue) List of symbols in the word.addSymbols(Symbol value) List of symbols in the word.addSymbols(Symbol.Builder builderForValue) List of symbols in the word.List of symbols in the word.addSymbolsBuilder(int index) List of symbols in the word.build()clear()The bounding box for the word.Confidence of the OCR results for the word.Additional information detected for the word.List of symbols in the word.The bounding box for the word.The bounding box for the word.The bounding box for the word.floatConfidence of the OCR results for the word.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAdditional information detected for the word.Additional information detected for the word.Additional information detected for the word.getSymbols(int index) List of symbols in the word.getSymbolsBuilder(int index) List of symbols in the word.List of symbols in the word.intList of symbols in the word.List of symbols in the word.getSymbolsOrBuilder(int index) List of symbols in the word.List<? extends SymbolOrBuilder>List of symbols in the word.booleanThe bounding box for the word.booleanAdditional information detected for the word.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBoundingBox(BoundingPoly value) The bounding box for the word.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Additional information detected for the word.removeSymbols(int index) List of symbols in the word.setBoundingBox(BoundingPoly value) The bounding box for the word.setBoundingBox(BoundingPoly.Builder builderForValue) The bounding box for the word.setConfidence(float value) Confidence of the OCR results for the word.Additional information detected for the word.setProperty(TextAnnotation.TextProperty.Builder builderForValue) Additional information detected for the word.setSymbols(int index, Symbol value) List of symbols in the word.setSymbols(int index, Symbol.Builder builderForValue) List of symbols in the word.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Word.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Word.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.GeneratedMessage.Builder<Word.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Word.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Word.Builder>
-
mergeFrom
public Word.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<Word.Builder>- Throws:
IOException
-
hasProperty
public boolean hasProperty()Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;- Specified by:
hasPropertyin interfaceWordOrBuilder- Returns:
- Whether the property field is set.
-
getProperty
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;- Specified by:
getPropertyin interfaceWordOrBuilder- Returns:
- The property.
-
setProperty
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; -
setProperty
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; -
mergeProperty
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; -
clearProperty
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; -
getPropertyBuilder
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; -
getPropertyOrBuilder
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;- Specified by:
getPropertyOrBuilderin interfaceWordOrBuilder
-
hasBoundingBox
public boolean hasBoundingBox()The bounding box for the word. 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.v1.BoundingPoly bounding_box = 2;- Specified by:
hasBoundingBoxin interfaceWordOrBuilder- Returns:
- Whether the boundingBox field is set.
-
getBoundingBox
The bounding box for the word. 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.v1.BoundingPoly bounding_box = 2;- Specified by:
getBoundingBoxin interfaceWordOrBuilder- Returns:
- The boundingBox.
-
setBoundingBox
The bounding box for the word. 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.v1.BoundingPoly bounding_box = 2; -
setBoundingBox
The bounding box for the word. 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.v1.BoundingPoly bounding_box = 2; -
mergeBoundingBox
The bounding box for the word. 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.v1.BoundingPoly bounding_box = 2; -
clearBoundingBox
The bounding box for the word. 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.v1.BoundingPoly bounding_box = 2; -
getBoundingBoxBuilder
The bounding box for the word. 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.v1.BoundingPoly bounding_box = 2; -
getBoundingBoxOrBuilder
The bounding box for the word. 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.v1.BoundingPoly bounding_box = 2;- Specified by:
getBoundingBoxOrBuilderin interfaceWordOrBuilder
-
getSymbolsList
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3;- Specified by:
getSymbolsListin interfaceWordOrBuilder
-
getSymbolsCount
public int getSymbolsCount()List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3;- Specified by:
getSymbolsCountin interfaceWordOrBuilder
-
getSymbols
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3;- Specified by:
getSymbolsin interfaceWordOrBuilder
-
setSymbols
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
setSymbols
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
addSymbols
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
addSymbols
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
addSymbols
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
addSymbols
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
addAllSymbols
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
clearSymbols
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
removeSymbols
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
getSymbolsBuilder
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
getSymbolsOrBuilder
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3;- Specified by:
getSymbolsOrBuilderin interfaceWordOrBuilder
-
getSymbolsOrBuilderList
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3;- Specified by:
getSymbolsOrBuilderListin interfaceWordOrBuilder
-
addSymbolsBuilder
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
addSymbolsBuilder
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
getSymbolsBuilderList
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1.Symbol symbols = 3; -
getConfidence
public float getConfidence()Confidence of the OCR results for the word. Range [0, 1].
float confidence = 4;- Specified by:
getConfidencein interfaceWordOrBuilder- Returns:
- The confidence.
-
setConfidence
Confidence of the OCR results for the word. Range [0, 1].
float confidence = 4;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
Confidence of the OCR results for the word. Range [0, 1].
float confidence = 4;- Returns:
- This builder for chaining.
-