public static final class Word.Builder extends GeneratedMessageV3.Builder<Word.Builder> implements WordOrBuilder
A word representation.Protobuf type
google.cloud.vision.v1p1beta1.Word
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Word.Builder>
public Word.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Word.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Word.Builder>
public Word getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Word build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Word buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Word.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Word.Builder>
public Word.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Word.Builder>
public Word.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Word.Builder>
public Word.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Word.Builder>
public Word.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Word.Builder>
public Word.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Word.Builder>
public Word.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Word.Builder>
public Word.Builder mergeFrom(Word other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Word.Builder>
public Word.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Word.Builder>
IOException
public boolean hasProperty()
Additional information detected for the word.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
hasProperty
in interface WordOrBuilder
public TextAnnotation.TextProperty getProperty()
Additional information detected for the word.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
getProperty
in interface WordOrBuilder
public Word.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected for the word.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
public Word.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the word.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
public Word.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the word.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
public Word.Builder clearProperty()
Additional information detected for the word.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected for the word.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected for the word.
.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty property = 1;
getPropertyOrBuilder
in interface WordOrBuilder
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 vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
hasBoundingBox
in interface WordOrBuilder
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 vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
getBoundingBox
in interface WordOrBuilder
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 vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
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 vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
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 vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
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 vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
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 vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
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 vertice order will still be (0, 1, 2, 3).
.google.cloud.vision.v1p1beta1.BoundingPoly bounding_box = 2;
getBoundingBoxOrBuilder
in interface WordOrBuilder
public List<Symbol> getSymbolsList()
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
getSymbolsList
in interface WordOrBuilder
public int getSymbolsCount()
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
getSymbolsCount
in interface WordOrBuilder
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.v1p1beta1.Symbol symbols = 3;
getSymbols
in interface WordOrBuilder
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.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
public Word.Builder clearSymbols()
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
getSymbolsOrBuilder
in interface WordOrBuilder
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.v1p1beta1.Symbol symbols = 3;
getSymbolsOrBuilderList
in interface WordOrBuilder
public Symbol.Builder addSymbolsBuilder()
List of symbols in the word. The order of the symbols follows the natural reading order.
repeated .google.cloud.vision.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
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.v1p1beta1.Symbol symbols = 3;
public float getConfidence()
Confidence of the OCR results for the word. Range [0, 1].
float confidence = 4;
getConfidence
in interface WordOrBuilder
public Word.Builder setConfidence(float value)
Confidence of the OCR results for the word. Range [0, 1].
float confidence = 4;
value
- The confidence to set.public Word.Builder clearConfidence()
Confidence of the OCR results for the word. Range [0, 1].
float confidence = 4;
public final Word.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Word.Builder>
public final Word.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Word.Builder>
Copyright © 2022 Google LLC. All rights reserved.