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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Word.Builder> implements WordOrBuilder
A word representation.
Protobuf typegoogle.cloud.vision.v1.Word
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Word.BuilderaddAllSymbols(Iterable<? extends Symbol> values)List of symbols in the word.Word.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Word.BuilderaddSymbols(int index, Symbol value)List of symbols in the word.Word.BuilderaddSymbols(int index, Symbol.Builder builderForValue)List of symbols in the word.Word.BuilderaddSymbols(Symbol value)List of symbols in the word.Word.BuilderaddSymbols(Symbol.Builder builderForValue)List of symbols in the word.Symbol.BuilderaddSymbolsBuilder()List of symbols in the word.Symbol.BuilderaddSymbolsBuilder(int index)List of symbols in the word.Wordbuild()WordbuildPartial()Word.Builderclear()Word.BuilderclearBoundingBox()The bounding box for the word.Word.BuilderclearConfidence()Confidence of the OCR results for the word.Word.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Word.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Word.BuilderclearProperty()Additional information detected for the word.Word.BuilderclearSymbols()List of symbols in the word.Word.Builderclone()BoundingPolygetBoundingBox()The bounding box for the word.BoundingPoly.BuildergetBoundingBoxBuilder()The bounding box for the word.BoundingPolyOrBuildergetBoundingBoxOrBuilder()The bounding box for the word.floatgetConfidence()Confidence of the OCR results for the word.WordgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()TextAnnotation.TextPropertygetProperty()Additional information detected for the word.TextAnnotation.TextProperty.BuildergetPropertyBuilder()Additional information detected for the word.TextAnnotation.TextPropertyOrBuildergetPropertyOrBuilder()Additional information detected for the word.SymbolgetSymbols(int index)List of symbols in the word.Symbol.BuildergetSymbolsBuilder(int index)List of symbols in the word.List<Symbol.Builder>getSymbolsBuilderList()List of symbols in the word.intgetSymbolsCount()List of symbols in the word.List<Symbol>getSymbolsList()List of symbols in the word.SymbolOrBuildergetSymbolsOrBuilder(int index)List of symbols in the word.List<? extends SymbolOrBuilder>getSymbolsOrBuilderList()List of symbols in the word.booleanhasBoundingBox()The bounding box for the word.booleanhasProperty()Additional information detected for the word.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Word.BuildermergeBoundingBox(BoundingPoly value)The bounding box for the word.Word.BuildermergeFrom(Word other)Word.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Word.BuildermergeFrom(com.google.protobuf.Message other)Word.BuildermergeProperty(TextAnnotation.TextProperty value)Additional information detected for the word.Word.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Word.BuilderremoveSymbols(int index)List of symbols in the word.Word.BuildersetBoundingBox(BoundingPoly value)The bounding box for the word.Word.BuildersetBoundingBox(BoundingPoly.Builder builderForValue)The bounding box for the word.Word.BuildersetConfidence(float value)Confidence of the OCR results for the word.Word.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Word.BuildersetProperty(TextAnnotation.TextProperty value)Additional information detected for the word.Word.BuildersetProperty(TextAnnotation.TextProperty.Builder builderForValue)Additional information detected for the word.Word.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Word.BuildersetSymbols(int index, Symbol value)List of symbols in the word.Word.BuildersetSymbols(int index, Symbol.Builder builderForValue)List of symbols in the word.Word.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<Word.Builder>
-
clear
public Word.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<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.GeneratedMessageV3.Builder<Word.Builder>
-
getDefaultInstanceForType
public Word getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Word build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Word buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Word.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<Word.Builder>
-
setField
public Word.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<Word.Builder>
-
clearField
public Word.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>
-
clearOneof
public Word.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>
-
setRepeatedField
public Word.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<Word.Builder>
-
addRepeatedField
public Word.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<Word.Builder>
-
mergeFrom
public Word.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Word.Builder>
-
mergeFrom
public Word.Builder mergeFrom(Word other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public TextAnnotation.TextProperty getProperty()
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;- Specified by:
getPropertyin interfaceWordOrBuilder- Returns:
- The property.
-
setProperty
public Word.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
setProperty
public Word.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
mergeProperty
public Word.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
clearProperty
public Word.Builder clearProperty()
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
getPropertyBuilder
public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected for the word.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
getPropertyOrBuilder
public TextAnnotation.TextPropertyOrBuilder 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
public BoundingPoly 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
public Word.Builder setBoundingBox(BoundingPoly value)
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
public Word.Builder setBoundingBox(BoundingPoly.Builder builderForValue)
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
public Word.Builder mergeBoundingBox(BoundingPoly value)
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
public Word.Builder 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
public BoundingPoly.Builder 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
public BoundingPolyOrBuilder 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
public List<Symbol> 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
public Symbol getSymbols(int index)
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
public Word.Builder setSymbols(int index, Symbol value)
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
public Word.Builder setSymbols(int index, Symbol.Builder builderForValue)
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
public Word.Builder addSymbols(Symbol value)
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
public Word.Builder addSymbols(int index, Symbol value)
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
public Word.Builder addSymbols(Symbol.Builder builderForValue)
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
public Word.Builder addSymbols(int index, Symbol.Builder builderForValue)
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
public Word.Builder addAllSymbols(Iterable<? extends Symbol> values)
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
public Word.Builder 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
public Word.Builder removeSymbols(int index)
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
public Symbol.Builder getSymbolsBuilder(int index)
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
public SymbolOrBuilder getSymbolsOrBuilder(int index)
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
public List<? extends SymbolOrBuilder> 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
public Symbol.Builder 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
public Symbol.Builder addSymbolsBuilder(int index)
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
public List<Symbol.Builder> 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
public Word.Builder setConfidence(float value)
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
public Word.Builder clearConfidence()
Confidence of the OCR results for the word. Range [0, 1].
float confidence = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Word.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>
-
mergeUnknownFields
public final Word.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>
-
-