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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Page.Builder> implements PageOrBuilder
Detected page from OCR.
Protobuf typegoogle.cloud.vision.v1.Page
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.Builder
addAllBlocks(Iterable<? extends Block> values)
List of blocks of text, images etc on this page.Page.Builder
addBlocks(int index, Block value)
List of blocks of text, images etc on this page.Page.Builder
addBlocks(int index, Block.Builder builderForValue)
List of blocks of text, images etc on this page.Page.Builder
addBlocks(Block value)
List of blocks of text, images etc on this page.Page.Builder
addBlocks(Block.Builder builderForValue)
List of blocks of text, images etc on this page.Block.Builder
addBlocksBuilder()
List of blocks of text, images etc on this page.Block.Builder
addBlocksBuilder(int index)
List of blocks of text, images etc on this page.Page.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Page
build()
Page
buildPartial()
Page.Builder
clear()
Page.Builder
clearBlocks()
List of blocks of text, images etc on this page.Page.Builder
clearConfidence()
Confidence of the OCR results on the page.Page.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Page.Builder
clearHeight()
Page height.Page.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Page.Builder
clearProperty()
Additional information detected on the page.Page.Builder
clearWidth()
Page width.Page.Builder
clone()
Block
getBlocks(int index)
List of blocks of text, images etc on this page.Block.Builder
getBlocksBuilder(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.int
getBlocksCount()
List of blocks of text, images etc on this page.List<Block>
getBlocksList()
List of blocks of text, images etc on this page.BlockOrBuilder
getBlocksOrBuilder(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.float
getConfidence()
Confidence of the OCR results on the page.Page
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getHeight()
Page height.TextAnnotation.TextProperty
getProperty()
Additional information detected on the page.TextAnnotation.TextProperty.Builder
getPropertyBuilder()
Additional information detected on the page.TextAnnotation.TextPropertyOrBuilder
getPropertyOrBuilder()
Additional information detected on the page.int
getWidth()
Page width.boolean
hasProperty()
Additional information detected on the page.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Page.Builder
mergeFrom(Page other)
Page.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Page.Builder
mergeFrom(com.google.protobuf.Message other)
Page.Builder
mergeProperty(TextAnnotation.TextProperty value)
Additional information detected on the page.Page.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Page.Builder
removeBlocks(int index)
List of blocks of text, images etc on this page.Page.Builder
setBlocks(int index, Block value)
List of blocks of text, images etc on this page.Page.Builder
setBlocks(int index, Block.Builder builderForValue)
List of blocks of text, images etc on this page.Page.Builder
setConfidence(float value)
Confidence of the OCR results on the page.Page.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Page.Builder
setHeight(int value)
Page height.Page.Builder
setProperty(TextAnnotation.TextProperty value)
Additional information detected on the page.Page.Builder
setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected on the page.Page.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Page.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Page.Builder
setWidth(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
clear
public Page.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
getDefaultInstanceForType
public Page getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Page build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Page buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Page.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
setField
public Page.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
clearField
public Page.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
clearOneof
public Page.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
setRepeatedField
public Page.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
addRepeatedField
public Page.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
mergeFrom
public Page.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Page.Builder>
-
mergeFrom
public Page.Builder mergeFrom(Page other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasProperty
in interfacePageOrBuilder
- Returns:
- Whether the property field is set.
-
getProperty
public TextAnnotation.TextProperty getProperty()
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
- Specified by:
getProperty
in interfacePageOrBuilder
- Returns:
- The property.
-
setProperty
public Page.Builder setProperty(TextAnnotation.TextProperty value)
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
setProperty
public Page.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
mergeProperty
public Page.Builder mergeProperty(TextAnnotation.TextProperty value)
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
clearProperty
public Page.Builder clearProperty()
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
getPropertyBuilder
public TextAnnotation.TextProperty.Builder getPropertyBuilder()
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
-
getPropertyOrBuilder
public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()
Additional information detected on the page.
.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;
- Specified by:
getPropertyOrBuilder
in 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:
getWidth
in 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:
getHeight
in 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.v1.Block blocks = 4;
- Specified by:
getBlocksList
in 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:
getBlocksCount
in interfacePageOrBuilder
-
getBlocks
public Block getBlocks(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
- Specified by:
getBlocks
in interfacePageOrBuilder
-
setBlocks
public Page.Builder setBlocks(int index, Block value)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.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.v1.Block blocks = 4;
-
addBlocks
public Page.Builder addBlocks(Block value)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.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.v1.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.v1.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.v1.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.v1.Block blocks = 4;
-
clearBlocks
public Page.Builder clearBlocks()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
-
removeBlocks
public Page.Builder removeBlocks(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
-
getBlocksBuilder
public Block.Builder getBlocksBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
-
getBlocksOrBuilder
public BlockOrBuilder getBlocksOrBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
- Specified by:
getBlocksOrBuilder
in interfacePageOrBuilder
-
getBlocksOrBuilderList
public List<? extends BlockOrBuilder> getBlocksOrBuilderList()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
- Specified by:
getBlocksOrBuilderList
in interfacePageOrBuilder
-
addBlocksBuilder
public Block.Builder addBlocksBuilder()
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
-
addBlocksBuilder
public Block.Builder addBlocksBuilder(int index)
List of blocks of text, images etc on this page.
repeated .google.cloud.vision.v1.Block blocks = 4;
-
getBlocksBuilderList
public List<Block.Builder> 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:
getConfidence
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
mergeUnknownFields
public final Page.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Page.Builder>
-
-