public static final class Paragraph.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Paragraph.Builder> implements ParagraphOrBuilder
Structural unit of text representing a number of words in certain order.Protobuf type
google.cloud.vision.v1.Paragraph| Type | Property and Description |
|---|---|
Paragraph.Builder |
clear
Additional information detected for the paragraph.
|
boolean |
has
Additional information detected for the paragraph.
|
| Modifier and Type | Method and Description |
|---|---|
Paragraph.Builder |
addAllWords(java.lang.Iterable<? extends Word> values)
List of words in this paragraph.
|
Paragraph.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Paragraph.Builder |
addWords(int index,
Word.Builder builderForValue)
List of words in this paragraph.
|
Paragraph.Builder |
addWords(int index,
Word value)
List of words in this paragraph.
|
Paragraph.Builder |
addWords(Word.Builder builderForValue)
List of words in this paragraph.
|
Paragraph.Builder |
addWords(Word value)
List of words in this paragraph.
|
Word.Builder |
addWordsBuilder()
List of words in this paragraph.
|
Word.Builder |
addWordsBuilder(int index)
List of words in this paragraph.
|
Paragraph |
build() |
Paragraph |
buildPartial() |
Paragraph.Builder |
clear() |
Paragraph.Builder |
clearBoundingBox()
The bounding box for the paragraph.
|
Paragraph.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Paragraph.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Paragraph.Builder |
clearProperty()
Additional information detected for the paragraph.
|
Paragraph.Builder |
clearWords()
List of words in this paragraph.
|
Paragraph.Builder |
clone() |
BoundingPoly |
getBoundingBox()
The bounding box for the paragraph.
|
BoundingPoly.Builder |
getBoundingBoxBuilder()
The bounding box for the paragraph.
|
BoundingPolyOrBuilder |
getBoundingBoxOrBuilder()
The bounding box for the paragraph.
|
Paragraph |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TextAnnotation.TextProperty |
getProperty()
Additional information detected for the paragraph.
|
TextAnnotation.TextProperty.Builder |
getPropertyBuilder()
Additional information detected for the paragraph.
|
TextAnnotation.TextPropertyOrBuilder |
getPropertyOrBuilder()
Additional information detected for the paragraph.
|
Word |
getWords(int index)
List of words in this paragraph.
|
Word.Builder |
getWordsBuilder(int index)
List of words in this paragraph.
|
java.util.List<Word.Builder> |
getWordsBuilderList()
List of words in this paragraph.
|
int |
getWordsCount()
List of words in this paragraph.
|
java.util.List<Word> |
getWordsList()
List of words in this paragraph.
|
WordOrBuilder |
getWordsOrBuilder(int index)
List of words in this paragraph.
|
java.util.List<? extends WordOrBuilder> |
getWordsOrBuilderList()
List of words in this paragraph.
|
boolean |
hasBoundingBox()
The bounding box for the paragraph.
|
boolean |
hasProperty()
Additional information detected for the paragraph.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Paragraph.Builder |
mergeBoundingBox(BoundingPoly value)
The bounding box for the paragraph.
|
Paragraph.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Paragraph.Builder |
mergeFrom(com.google.protobuf.Message other) |
Paragraph.Builder |
mergeFrom(Paragraph other) |
Paragraph.Builder |
mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the paragraph.
|
Paragraph.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Paragraph.Builder |
removeWords(int index)
List of words in this paragraph.
|
Paragraph.Builder |
setBoundingBox(BoundingPoly.Builder builderForValue)
The bounding box for the paragraph.
|
Paragraph.Builder |
setBoundingBox(BoundingPoly value)
The bounding box for the paragraph.
|
Paragraph.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Paragraph.Builder |
setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the paragraph.
|
Paragraph.Builder |
setProperty(TextAnnotation.TextProperty value)
Additional information detected for the paragraph.
|
Paragraph.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Paragraph.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Paragraph.Builder |
setWords(int index,
Word.Builder builderForValue)
List of words in this paragraph.
|
Paragraph.Builder |
setWords(int index,
Word value)
List of words in this paragraph.
|
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 paragraph.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;hasProperty in interface ParagraphOrBuilderpublic Paragraph.Builder clearProperty
Additional information detected for the paragraph.
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<Paragraph.Builder>public Paragraph.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Paragraph.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<Paragraph.Builder>public Paragraph getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Paragraph build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Paragraph buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Paragraph.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Paragraph.Builder>public Paragraph.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<Paragraph.Builder>public Paragraph.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Paragraph.Builder>public Paragraph.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Paragraph.Builder>public Paragraph.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<Paragraph.Builder>public Paragraph.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<Paragraph.Builder>public Paragraph.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Paragraph.Builder>public Paragraph.Builder mergeFrom(Paragraph other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Paragraph.Builder>public Paragraph.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<Paragraph.Builder>java.io.IOExceptionpublic boolean hasProperty()
Additional information detected for the paragraph.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;hasProperty in interface ParagraphOrBuilderpublic TextAnnotation.TextProperty getProperty()
Additional information detected for the paragraph.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;getProperty in interface ParagraphOrBuilderpublic Paragraph.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected for the paragraph.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public Paragraph.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected for the paragraph.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public Paragraph.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected for the paragraph.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public Paragraph.Builder clearProperty()
Additional information detected for the paragraph.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected for the paragraph.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected for the paragraph.
optional .google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;getPropertyOrBuilder in interface ParagraphOrBuilderpublic boolean hasBoundingBox()
The bounding box for the paragraph.
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 ParagraphOrBuilderpublic BoundingPoly getBoundingBox()
The bounding box for the paragraph.
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 ParagraphOrBuilderpublic Paragraph.Builder setBoundingBox(BoundingPoly value)
The bounding box for the paragraph.
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 Paragraph.Builder setBoundingBox(BoundingPoly.Builder builderForValue)
The bounding box for the paragraph.
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 Paragraph.Builder mergeBoundingBox(BoundingPoly value)
The bounding box for the paragraph.
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 Paragraph.Builder clearBoundingBox()
The bounding box for the paragraph.
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 paragraph.
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 paragraph.
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 ParagraphOrBuilderpublic java.util.List<Word> getWordsList()
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;getWordsList in interface ParagraphOrBuilderpublic int getWordsCount()
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;getWordsCount in interface ParagraphOrBuilderpublic Word getWords(int index)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;getWords in interface ParagraphOrBuilderpublic Paragraph.Builder setWords(int index, Word value)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public Paragraph.Builder setWords(int index, Word.Builder builderForValue)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public Paragraph.Builder addWords(Word value)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public Paragraph.Builder addWords(int index, Word value)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public Paragraph.Builder addWords(Word.Builder builderForValue)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public Paragraph.Builder addWords(int index, Word.Builder builderForValue)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public Paragraph.Builder addAllWords(java.lang.Iterable<? extends Word> values)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public Paragraph.Builder clearWords()
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public Paragraph.Builder removeWords(int index)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public Word.Builder getWordsBuilder(int index)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public WordOrBuilder getWordsOrBuilder(int index)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;getWordsOrBuilder in interface ParagraphOrBuilderpublic java.util.List<? extends WordOrBuilder> getWordsOrBuilderList()
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;getWordsOrBuilderList in interface ParagraphOrBuilderpublic Word.Builder addWordsBuilder()
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public Word.Builder addWordsBuilder(int index)
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public java.util.List<Word.Builder> getWordsBuilderList()
List of words in this paragraph.
repeated .google.cloud.vision.v1.Word words = 3;public final Paragraph.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Paragraph.Builder>public final Paragraph.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Paragraph.Builder>