public static final class Word.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder> implements WordOrBuilder
A word representation.Protobuf type
google.cloud.vision.v1.Word| Type | Property and Description |
|---|---|
Word.Builder |
clear
Additional information detected for the word.
|
boolean |
has
Additional information detected for the word.
|
| Modifier and Type | Method and Description |
|---|---|
Word.Builder |
addAllSymbols(java.lang.Iterable<? extends Symbol> values)
List of symbols in the word.
|
Word.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Word.Builder |
addSymbols(int index,
Symbol.Builder builderForValue)
List of symbols in the word.
|
Word.Builder |
addSymbols(int index,
Symbol value)
List of symbols in the word.
|
Word.Builder |
addSymbols(Symbol.Builder builderForValue)
List of symbols in the word.
|
Word.Builder |
addSymbols(Symbol value)
List of symbols in the word.
|
Symbol.Builder |
addSymbolsBuilder()
List of symbols in the word.
|
Symbol.Builder |
addSymbolsBuilder(int index)
List of symbols in the word.
|
Word |
build() |
Word |
buildPartial() |
Word.Builder |
clear() |
Word.Builder |
clearBoundingBox()
The bounding box for the word.
|
Word.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Word.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Word.Builder |
clearProperty()
Additional information detected for the word.
|
Word.Builder |
clearSymbols()
List of symbols in the word.
|
Word.Builder |
clone() |
BoundingPoly |
getBoundingBox()
The bounding box for the word.
|
BoundingPoly.Builder |
getBoundingBoxBuilder()
The bounding box for the word.
|
BoundingPolyOrBuilder |
getBoundingBoxOrBuilder()
The bounding box for the word.
|
Word |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TextAnnotation.TextProperty |
getProperty()
Additional information detected for the word.
|
TextAnnotation.TextProperty.Builder |
getPropertyBuilder()
Additional information detected for the word.
|
TextAnnotation.TextPropertyOrBuilder |
getPropertyOrBuilder()
Additional information detected for the word.
|
Symbol |
getSymbols(int index)
List of symbols in the word.
|
Symbol.Builder |
getSymbolsBuilder(int index)
List of symbols in the word.
|
java.util.List<Symbol.Builder> |
getSymbolsBuilderList()
List of symbols in the word.
|
int |
getSymbolsCount()
List of symbols in the word.
|
java.util.List<Symbol> |
getSymbolsList()
List of symbols in the word.
|
SymbolOrBuilder |
getSymbolsOrBuilder(int index)
List of symbols in the word.
|
java.util.List<? extends SymbolOrBuilder> |
getSymbolsOrBuilderList()
List of symbols in the word.
|
boolean |
hasBoundingBox()
The bounding box for the word.
|
boolean |
hasProperty()
Additional information detected for the word.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Word.Builder |
mergeBoundingBox(BoundingPoly value)
The bounding box for the word.
|
Word.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Word.Builder |
mergeFrom(com.google.protobuf.Message other) |
Word.Builder |
mergeFrom(Word other) |
Word.Builder |
mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the word.
|
Word.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Word.Builder |
removeSymbols(int index)
List of symbols in the word.
|
Word.Builder |
setBoundingBox(BoundingPoly.Builder builderForValue)
The bounding box for the word.
|
Word.Builder |
setBoundingBox(BoundingPoly value)
The bounding box for the word.
|
Word.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Word.Builder |
setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the word.
|
Word.Builder |
setProperty(TextAnnotation.TextProperty value)
Additional information detected for the word.
|
Word.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Word.Builder |
setSymbols(int index,
Symbol.Builder builderForValue)
List of symbols in the word.
|
Word.Builder |
setSymbols(int index,
Symbol value)
List of symbols in the word.
|
Word.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic boolean hasProperty
Additional information detected for the word.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;hasProperty in interface WordOrBuilderpublic Word.Builder clearProperty
Additional information detected for the word.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public Word.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public Word getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Word build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Word buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Word.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public Word.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public Word.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public Word.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public Word.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public Word.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public Word.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Word.Builder>public Word.Builder mergeFrom(Word other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public Word.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Word.Builder>java.io.IOExceptionpublic boolean hasProperty()
Additional information detected for the word.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;hasProperty in interface WordOrBuilderpublic TextAnnotation.TextProperty getProperty()
Additional information detected for the word.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;getProperty in interface WordOrBuilderpublic Word.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected for the word.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public Word.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the word.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public Word.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the word.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public Word.Builder clearProperty()
Additional information detected for the word.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected for the word.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected for the word.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;getPropertyOrBuilder in interface WordOrBuilderpublic 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).
optional .google.cloud.vision.v1.BoundingPoly bounding_box = 2;hasBoundingBox in interface WordOrBuilderpublic 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).
optional .google.cloud.vision.v1.BoundingPoly bounding_box = 2;getBoundingBox in interface WordOrBuilderpublic 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).
optional .google.cloud.vision.v1.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).
optional .google.cloud.vision.v1.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).
optional .google.cloud.vision.v1.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).
optional .google.cloud.vision.v1.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).
optional .google.cloud.vision.v1.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).
optional .google.cloud.vision.v1.BoundingPoly bounding_box = 2;getBoundingBoxOrBuilder in interface WordOrBuilderpublic java.util.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;getSymbolsList in interface WordOrBuilderpublic 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;getSymbolsCount in interface WordOrBuilderpublic 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;getSymbols in interface WordOrBuilderpublic 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;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;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;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;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;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;public Word.Builder addAllSymbols(java.lang.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;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;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;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;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;getSymbolsOrBuilder in interface WordOrBuilderpublic java.util.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;getSymbolsOrBuilderList in interface WordOrBuilderpublic 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;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;public java.util.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;public final Word.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>public final Word.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Word.Builder>