Class Page.Builder (3.14.0)

public static final class Page.Builder extends GeneratedMessageV3.Builder<Page.Builder> implements PageOrBuilder

Detected page from OCR.

Protobuf type google.cloud.vision.v1p4beta1.Page

Implements

PageOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllBlocks(Iterable<? extends Block> values)

public Page.Builder addAllBlocks(Iterable<? extends Block> values)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.Block>
Returns
TypeDescription
Page.Builder

addBlocks(Block value)

public Page.Builder addBlocks(Block value)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameter
NameDescription
valueBlock
Returns
TypeDescription
Page.Builder

addBlocks(Block.Builder builderForValue)

public Page.Builder addBlocks(Block.Builder builderForValue)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameter
NameDescription
builderForValueBlock.Builder
Returns
TypeDescription
Page.Builder

addBlocks(int index, Block value)

public Page.Builder addBlocks(int index, Block value)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameters
NameDescription
indexint
valueBlock
Returns
TypeDescription
Page.Builder

addBlocks(int index, Block.Builder builderForValue)

public Page.Builder addBlocks(int index, Block.Builder builderForValue)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameters
NameDescription
indexint
builderForValueBlock.Builder
Returns
TypeDescription
Page.Builder

addBlocksBuilder()

public Block.Builder addBlocksBuilder()

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Returns
TypeDescription
Block.Builder

addBlocksBuilder(int index)

public Block.Builder addBlocksBuilder(int index)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Block.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Page.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Page.Builder
Overrides

build()

public Page build()
Returns
TypeDescription
Page

buildPartial()

public Page buildPartial()
Returns
TypeDescription
Page

clear()

public Page.Builder clear()
Returns
TypeDescription
Page.Builder
Overrides

clearBlocks()

public Page.Builder clearBlocks()

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Returns
TypeDescription
Page.Builder

clearConfidence()

public Page.Builder clearConfidence()

Confidence of the OCR results on the page. Range [0, 1].

float confidence = 5;

Returns
TypeDescription
Page.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Page.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Page.Builder
Overrides

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
TypeDescription
Page.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Page.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Page.Builder
Overrides

clearProperty()

public Page.Builder clearProperty()

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Returns
TypeDescription
Page.Builder

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
TypeDescription
Page.Builder

This builder for chaining.

clone()

public Page.Builder clone()
Returns
TypeDescription
Page.Builder
Overrides

getBlocks(int index)

public Block getBlocks(int index)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Block

getBlocksBuilder(int index)

public Block.Builder getBlocksBuilder(int index)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Block.Builder

getBlocksBuilderList()

public List<Block.Builder> getBlocksBuilderList()

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Returns
TypeDescription
List<Builder>

getBlocksCount()

public int getBlocksCount()

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Returns
TypeDescription
int

getBlocksList()

public List<Block> getBlocksList()

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Returns
TypeDescription
List<Block>

getBlocksOrBuilder(int index)

public BlockOrBuilder getBlocksOrBuilder(int index)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
BlockOrBuilder

getBlocksOrBuilderList()

public List<? extends BlockOrBuilder> getBlocksOrBuilderList()

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p4beta1.BlockOrBuilder>

getConfidence()

public float getConfidence()

Confidence of the OCR results on the page. Range [0, 1].

float confidence = 5;

Returns
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public Page getDefaultInstanceForType()
Returns
TypeDescription
Page

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeight()

public int getHeight()

Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

int32 height = 3;

Returns
TypeDescription
int

The height.

getProperty()

public TextAnnotation.TextProperty getProperty()

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Returns
TypeDescription
TextAnnotation.TextProperty

The property.

getPropertyBuilder()

public TextAnnotation.TextProperty.Builder getPropertyBuilder()

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Returns
TypeDescription
TextAnnotation.TextProperty.Builder

getPropertyOrBuilder()

public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Returns
TypeDescription
TextAnnotation.TextPropertyOrBuilder

getWidth()

public int getWidth()

Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

int32 width = 2;

Returns
TypeDescription
int

The width.

hasProperty()

public boolean hasProperty()

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Returns
TypeDescription
boolean

Whether the property field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Page other)

public Page.Builder mergeFrom(Page other)
Parameter
NameDescription
otherPage
Returns
TypeDescription
Page.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Page.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Page.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Page.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Page.Builder
Overrides

mergeProperty(TextAnnotation.TextProperty value)

public Page.Builder mergeProperty(TextAnnotation.TextProperty value)

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Parameter
NameDescription
valueTextAnnotation.TextProperty
Returns
TypeDescription
Page.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Page.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Page.Builder
Overrides

removeBlocks(int index)

public Page.Builder removeBlocks(int index)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Page.Builder

setBlocks(int index, Block value)

public Page.Builder setBlocks(int index, Block value)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameters
NameDescription
indexint
valueBlock
Returns
TypeDescription
Page.Builder

setBlocks(int index, Block.Builder builderForValue)

public Page.Builder setBlocks(int index, Block.Builder builderForValue)

List of blocks of text, images etc on this page.

repeated .google.cloud.vision.v1p4beta1.Block blocks = 4;

Parameters
NameDescription
indexint
builderForValueBlock.Builder
Returns
TypeDescription
Page.Builder

setConfidence(float value)

public Page.Builder setConfidence(float value)

Confidence of the OCR results on the page. Range [0, 1].

float confidence = 5;

Parameter
NameDescription
valuefloat

The confidence to set.

Returns
TypeDescription
Page.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Page.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Page.Builder
Overrides

setHeight(int value)

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;

Parameter
NameDescription
valueint

The height to set.

Returns
TypeDescription
Page.Builder

This builder for chaining.

setProperty(TextAnnotation.TextProperty value)

public Page.Builder setProperty(TextAnnotation.TextProperty value)

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Parameter
NameDescription
valueTextAnnotation.TextProperty
Returns
TypeDescription
Page.Builder

setProperty(TextAnnotation.TextProperty.Builder builderForValue)

public Page.Builder setProperty(TextAnnotation.TextProperty.Builder builderForValue)

Additional information detected on the page.

.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty property = 1;

Parameter
NameDescription
builderForValueTextAnnotation.TextProperty.Builder
Returns
TypeDescription
Page.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Page.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Page.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Page.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Page.Builder
Overrides

setWidth(int value)

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;

Parameter
NameDescription
valueint

The width to set.

Returns
TypeDescription
Page.Builder

This builder for chaining.