Class Page.Builder (3.50.0)

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

Detected page from OCR.

Protobuf type google.cloud.vision.v1p1beta1.Page

Implements

PageOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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.v1p1beta1.Block blocks = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vision.v1p1beta1.Block>
Returns
Type Description
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.v1p1beta1.Block blocks = 4;

Parameter
Name Description
value Block
Returns
Type Description
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.v1p1beta1.Block blocks = 4;

Parameter
Name Description
builderForValue Block.Builder
Returns
Type Description
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.v1p1beta1.Block blocks = 4;

Parameters
Name Description
index int
value Block
Returns
Type Description
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.v1p1beta1.Block blocks = 4;

Parameters
Name Description
index int
builderForValue Block.Builder
Returns
Type Description
Page.Builder

addBlocksBuilder()

public Block.Builder addBlocksBuilder()

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

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

Returns
Type Description
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.v1p1beta1.Block blocks = 4;

Parameter
Name Description
index int
Returns
Type Description
Block.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Page.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Page.Builder
Overrides

build()

public Page build()
Returns
Type Description
Page

buildPartial()

public Page buildPartial()
Returns
Type Description
Page

clear()

public Page.Builder clear()
Returns
Type Description
Page.Builder
Overrides

clearBlocks()

public Page.Builder clearBlocks()

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

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

Returns
Type Description
Page.Builder

clearConfidence()

public Page.Builder clearConfidence()

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

float confidence = 5;

Returns
Type Description
Page.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Page.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Page.Builder
Overrides

clearHeight()

public Page.Builder clearHeight()

Page height in pixels.

int32 height = 3;

Returns
Type Description
Page.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Page.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Page.Builder
Overrides

clearProperty()

public Page.Builder clearProperty()

Additional information detected on the page.

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

Returns
Type Description
Page.Builder

clearWidth()

public Page.Builder clearWidth()

Page width in pixels.

int32 width = 2;

Returns
Type Description
Page.Builder

This builder for chaining.

clone()

public Page.Builder clone()
Returns
Type Description
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.v1p1beta1.Block blocks = 4;

Parameter
Name Description
index int
Returns
Type Description
Block

getBlocksBuilder(int index)

public Block.Builder getBlocksBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
Block.Builder

getBlocksBuilderList()

public List<Block.Builder> getBlocksBuilderList()

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

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

Returns
Type Description
List<Builder>

getBlocksCount()

public int getBlocksCount()

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

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

Returns
Type Description
int

getBlocksList()

public List<Block> getBlocksList()

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

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

Returns
Type Description
List<Block>

getBlocksOrBuilder(int index)

public BlockOrBuilder getBlocksOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
BlockOrBuilder

getBlocksOrBuilderList()

public List<? extends BlockOrBuilder> getBlocksOrBuilderList()

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

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

Returns
Type Description
List<? extends com.google.cloud.vision.v1p1beta1.BlockOrBuilder>

getConfidence()

public float getConfidence()

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

float confidence = 5;

Returns
Type Description
float

The confidence.

getDefaultInstanceForType()

public Page getDefaultInstanceForType()
Returns
Type Description
Page

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHeight()

public int getHeight()

Page height in pixels.

int32 height = 3;

Returns
Type Description
int

The height.

getProperty()

public TextAnnotation.TextProperty getProperty()

Additional information detected on the page.

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

Returns
Type Description
TextAnnotation.TextProperty

The property.

getPropertyBuilder()

public TextAnnotation.TextProperty.Builder getPropertyBuilder()

Additional information detected on the page.

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

Returns
Type Description
TextAnnotation.TextProperty.Builder

getPropertyOrBuilder()

public TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder()

Additional information detected on the page.

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

Returns
Type Description
TextAnnotation.TextPropertyOrBuilder

getWidth()

public int getWidth()

Page width in pixels.

int32 width = 2;

Returns
Type Description
int

The width.

hasProperty()

public boolean hasProperty()

Additional information detected on the page.

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

Returns
Type Description
boolean

Whether the property field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Page other)

public Page.Builder mergeFrom(Page other)
Parameter
Name Description
other Page
Returns
Type Description
Page.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Page.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Page.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Page.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Page.Builder
Overrides

mergeProperty(TextAnnotation.TextProperty value)

public Page.Builder mergeProperty(TextAnnotation.TextProperty value)

Additional information detected on the page.

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

Parameter
Name Description
value TextAnnotation.TextProperty
Returns
Type Description
Page.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Page.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.v1p1beta1.Block blocks = 4;

Parameter
Name Description
index int
Returns
Type Description
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.v1p1beta1.Block blocks = 4;

Parameters
Name Description
index int
value Block
Returns
Type Description
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.v1p1beta1.Block blocks = 4;

Parameters
Name Description
index int
builderForValue Block.Builder
Returns
Type Description
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
Name Description
value float

The confidence to set.

Returns
Type Description
Page.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Page.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Page.Builder
Overrides

setHeight(int value)

public Page.Builder setHeight(int value)

Page height in pixels.

int32 height = 3;

Parameter
Name Description
value int

The height to set.

Returns
Type Description
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.v1p1beta1.TextAnnotation.TextProperty property = 1;

Parameter
Name Description
value TextAnnotation.TextProperty
Returns
Type Description
Page.Builder

setProperty(TextAnnotation.TextProperty.Builder builderForValue)

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

Additional information detected on the page.

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

Parameter
Name Description
builderForValue TextAnnotation.TextProperty.Builder
Returns
Type Description
Page.Builder

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

public Page.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Page.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Page.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Page.Builder
Overrides

setWidth(int value)

public Page.Builder setWidth(int value)

Page width in pixels.

int32 width = 2;

Parameter
Name Description
value int

The width to set.

Returns
Type Description
Page.Builder

This builder for chaining.