Class Page.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
- com.google.cloud.vision.v1p2beta1.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.GeneratedMessageV3.Builder<Page.Builder> implements PageOrBuilder
Detected page from OCR.
Protobuf typegoogle.cloud.vision.v1p2beta1.Page
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.BuilderaddAllBlocks(Iterable<? extends Block> values)List of blocks of text, images etc on this page.Page.BuilderaddBlocks(int index, Block value)List of blocks of text, images etc on this page.Page.BuilderaddBlocks(int index, Block.Builder builderForValue)List of blocks of text, images etc on this page.Page.BuilderaddBlocks(Block value)List of blocks of text, images etc on this page.Page.BuilderaddBlocks(Block.Builder builderForValue)List of blocks of text, images etc on this page.Block.BuilderaddBlocksBuilder()List of blocks of text, images etc on this page.Block.BuilderaddBlocksBuilder(int index)List of blocks of text, images etc on this page.Page.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Pagebuild()PagebuildPartial()Page.Builderclear()Page.BuilderclearBlocks()List of blocks of text, images etc on this page.Page.BuilderclearConfidence()Confidence of the OCR results on the page.Page.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Page.BuilderclearHeight()Page height.Page.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Page.BuilderclearProperty()Additional information detected on the page.Page.BuilderclearWidth()Page width.Page.Builderclone()BlockgetBlocks(int index)List of blocks of text, images etc on this page.Block.BuildergetBlocksBuilder(int index)List of blocks of text, images etc on this page.List<Block.Builder>getBlocksBuilderList()List of blocks of text, images etc on this page.intgetBlocksCount()List of blocks of text, images etc on this page.List<Block>getBlocksList()List of blocks of text, images etc on this page.BlockOrBuildergetBlocksOrBuilder(int index)List of blocks of text, images etc on this page.List<? extends BlockOrBuilder>getBlocksOrBuilderList()List of blocks of text, images etc on this page.floatgetConfidence()Confidence of the OCR results on the page.PagegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetHeight()Page height.TextAnnotation.TextPropertygetProperty()Additional information detected on the page.TextAnnotation.TextProperty.BuildergetPropertyBuilder()Additional information detected on the page.TextAnnotation.TextPropertyOrBuildergetPropertyOrBuilder()Additional information detected on the page.intgetWidth()Page width.booleanhasProperty()Additional information detected on the page.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Page.BuildermergeFrom(Page other)Page.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Page.BuildermergeFrom(com.google.protobuf.Message other)Page.BuildermergeProperty(TextAnnotation.TextProperty value)Additional information detected on the page.Page.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Page.BuilderremoveBlocks(int index)List of blocks of text, images etc on this page.Page.BuildersetBlocks(int index, Block value)List of blocks of text, images etc on this page.Page.BuildersetBlocks(int index, Block.Builder builderForValue)List of blocks of text, images etc on this page.Page.BuildersetConfidence(float value)Confidence of the OCR results on the page.Page.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Page.BuildersetHeight(int value)Page height.Page.BuildersetProperty(TextAnnotation.TextProperty value)Additional information detected on the page.Page.BuildersetProperty(TextAnnotation.TextProperty.Builder builderForValue)Additional information detected on the page.Page.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Page.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Page.BuildersetWidth(int value)Page width.-
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<Page.Builder>
-
clear
public Page.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<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.GeneratedMessageV3.Builder<Page.Builder>
-
getDefaultInstanceForType
public Page getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Page build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Page buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Page.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<Page.Builder>
-
setField
public Page.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<Page.Builder>
-
clearField
public Page.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
clearOneof
public Page.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
setRepeatedField
public Page.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<Page.Builder>
-
addRepeatedField
public Page.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<Page.Builder>
-
mergeFrom
public Page.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Page.Builder>
-
mergeFrom
public Page.Builder mergeFrom(Page other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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.v1p2beta1.TextAnnotation.TextProperty property = 1;- Specified by:
hasPropertyin interfacePageOrBuilder- Returns:
- Whether the property field is set.
-
getProperty
public TextAnnotation.TextProperty getProperty()
Additional information detected on the page.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;- Specified by:
getPropertyin interfacePageOrBuilder- Returns:
- The property.
-
setProperty
public Page.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected on the page.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
-
setProperty
public Page.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected on the page.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
-
mergeProperty
public Page.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected on the page.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
-
clearProperty
public Page.Builder clearProperty()
Additional information detected on the page.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
-
getPropertyBuilder
public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected on the page.
.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty property = 1;
-
getPropertyOrBuilder
public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected on the page.
.google.cloud.vision.v1p2beta1.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
public Page.Builder setWidth(int value)
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
public Page.Builder 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
public Page.Builder setHeight(int value)
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
public Page.Builder 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
public List<Block> getBlocksList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.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.v1p2beta1.Block blocks = 4;- Specified by:
getBlocksCountin interfacePageOrBuilder
-
getBlocks
public Block getBlocks(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;- Specified by:
getBlocksin interfacePageOrBuilder
-
setBlocks
public Page.Builder setBlocks(int index, Block value)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
setBlocks
public Page.Builder setBlocks(int index, Block.Builder builderForValue)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
addBlocks
public Page.Builder addBlocks(Block value)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
addBlocks
public Page.Builder addBlocks(int index, Block value)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
addBlocks
public Page.Builder addBlocks(Block.Builder builderForValue)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
addBlocks
public Page.Builder addBlocks(int index, Block.Builder builderForValue)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
addAllBlocks
public Page.Builder addAllBlocks(Iterable<? extends Block> values)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
clearBlocks
public Page.Builder clearBlocks()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
removeBlocks
public Page.Builder removeBlocks(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
getBlocksBuilder
public Block.Builder getBlocksBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
getBlocksOrBuilder
public BlockOrBuilder getBlocksOrBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;- Specified by:
getBlocksOrBuilderin interfacePageOrBuilder
-
getBlocksOrBuilderList
public List<? extends BlockOrBuilder> getBlocksOrBuilderList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;- Specified by:
getBlocksOrBuilderListin interfacePageOrBuilder
-
addBlocksBuilder
public Block.Builder addBlocksBuilder()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
addBlocksBuilder
public Block.Builder addBlocksBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.Block blocks = 4;
-
getBlocksBuilderList
public List<Block.Builder> getBlocksBuilderList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1p2beta1.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
public Page.Builder setConfidence(float value)
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
public Page.Builder clearConfidence()
Confidence of the OCR results on the page. Range [0, 1].
float confidence = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Page.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
mergeUnknownFields
public final Page.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
-