Package com.google.cloud.vision.v1
Class Page.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Page.Builder>
com.google.cloud.vision.v1.Page.Builder
- All Implemented Interfaces:
PageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Page
public static final class Page.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Page.Builder>
implements PageOrBuilder
Detected page from OCR.Protobuf type
google.cloud.vision.v1.Page-
Method Summary
Modifier and TypeMethodDescriptionaddAllBlocks(Iterable<? extends Block> values) List of blocks of text, images etc on this page.List of blocks of text, images etc on this page.addBlocks(int index, Block.Builder builderForValue) List of blocks of text, images etc on this page.List of blocks of text, images etc on this page.addBlocks(Block.Builder builderForValue) List of blocks of text, images etc on this page.List of blocks of text, images etc on this page.addBlocksBuilder(int index) List of blocks of text, images etc on this page.build()clear()List of blocks of text, images etc on this page.Confidence of the OCR results on the page.Page height.Additional information detected on the page.Page width.getBlocks(int index) List of blocks of text, images etc on this page.getBlocksBuilder(int index) List of blocks of text, images etc on this page.List of blocks of text, images etc on this page.intList of blocks of text, images etc on this page.List of blocks of text, images etc on this page.getBlocksOrBuilder(int index) List of blocks of text, images etc on this page.List<? extends BlockOrBuilder>List of blocks of text, images etc on this page.floatConfidence of the OCR results on the page.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintPage height.Additional information detected on the page.Additional information detected on the page.Additional information detected on the page.intgetWidth()Page width.booleanAdditional information detected on the page.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Additional information detected on the page.removeBlocks(int index) List of blocks of text, images etc on this page.List of blocks of text, images etc on this page.setBlocks(int index, Block.Builder builderForValue) List of blocks of text, images etc on this page.setConfidence(float value) Confidence of the OCR results on the page.setHeight(int value) Page height.Additional information detected on the page.setProperty(TextAnnotation.TextProperty.Builder builderForValue) Additional information detected on the page.setWidth(int value) Page width.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<Page.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<Page.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<Page.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<Page.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Page.Builder>
-
mergeFrom
public Page.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<Page.Builder>- Throws:
IOException
-
hasProperty
public boolean hasProperty()Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;- Specified by:
hasPropertyin interfacePageOrBuilder- Returns:
- Whether the property field is set.
-
getProperty
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;- Specified by:
getPropertyin interfacePageOrBuilder- Returns:
- The property.
-
setProperty
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; -
setProperty
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; -
mergeProperty
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; -
clearProperty
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; -
getPropertyBuilder
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1; -
getPropertyOrBuilder
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;- Specified by:
getPropertyOrBuilderin interfacePageOrBuilder
-
getWidth
public int getWidth()Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 width = 2;- Specified by:
getWidthin interfacePageOrBuilder- Returns:
- The width.
-
setWidth
Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 width = 2;- Parameters:
value- The width to set.- Returns:
- This builder for chaining.
-
clearWidth
Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 width = 2;- Returns:
- This builder for chaining.
-
getHeight
public int getHeight()Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 height = 3;- Specified by:
getHeightin interfacePageOrBuilder- Returns:
- The height.
-
setHeight
Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 height = 3;- Parameters:
value- The height to set.- Returns:
- This builder for chaining.
-
clearHeight
Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
int32 height = 3;- Returns:
- This builder for chaining.
-
getBlocksList
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;- Specified by:
getBlocksListin interfacePageOrBuilder
-
getBlocksCount
public int getBlocksCount()List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;- Specified by:
getBlocksCountin interfacePageOrBuilder
-
getBlocks
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;- Specified by:
getBlocksin interfacePageOrBuilder
-
setBlocks
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
setBlocks
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
addBlocks
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
addBlocks
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
addBlocks
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
addBlocks
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
addAllBlocks
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
clearBlocks
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
removeBlocks
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
getBlocksBuilder
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
getBlocksOrBuilder
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;- Specified by:
getBlocksOrBuilderin interfacePageOrBuilder
-
getBlocksOrBuilderList
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;- Specified by:
getBlocksOrBuilderListin interfacePageOrBuilder
-
addBlocksBuilder
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
addBlocksBuilder
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
getBlocksBuilderList
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4; -
getConfidence
public float getConfidence()Confidence of the OCR results on the page. Range [0, 1].
float confidence = 5;- Specified by:
getConfidencein interfacePageOrBuilder- Returns:
- The confidence.
-
setConfidence
Confidence of the OCR results on the page. Range [0, 1].
float confidence = 5;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
Confidence of the OCR results on the page. Range [0, 1].
float confidence = 5;- Returns:
- This builder for chaining.
-