Class TableBoundHint.Builder (2.50.0)

public static final class TableBoundHint.Builder extends GeneratedMessageV3.Builder<TableBoundHint.Builder> implements TableBoundHintOrBuilder

A hint for a table bounding box on the page for table parsing.

Protobuf type google.cloud.documentai.v1beta1.TableBoundHint

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TableBoundHint build()
Returns
Type Description
TableBoundHint

buildPartial()

public TableBoundHint buildPartial()
Returns
Type Description
TableBoundHint

clear()

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

clearBoundingBox()

public TableBoundHint.Builder clearBoundingBox()

Bounding box hint for a table on this page. The coordinates must be normalized to [0,1] and the bounding box must be an axis-aligned rectangle.

.google.cloud.documentai.v1beta1.BoundingPoly bounding_box = 2;

Returns
Type Description
TableBoundHint.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageNumber()

public TableBoundHint.Builder clearPageNumber()

Optional. Page number for multi-paged inputs this hint applies to. If not provided, this hint will apply to all pages by default. This value is 1-based.

int32 page_number = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TableBoundHint.Builder

This builder for chaining.

clone()

public TableBoundHint.Builder clone()
Returns
Type Description
TableBoundHint.Builder
Overrides

getBoundingBox()

public BoundingPoly getBoundingBox()

Bounding box hint for a table on this page. The coordinates must be normalized to [0,1] and the bounding box must be an axis-aligned rectangle.

.google.cloud.documentai.v1beta1.BoundingPoly bounding_box = 2;

Returns
Type Description
BoundingPoly

The boundingBox.

getBoundingBoxBuilder()

public BoundingPoly.Builder getBoundingBoxBuilder()

Bounding box hint for a table on this page. The coordinates must be normalized to [0,1] and the bounding box must be an axis-aligned rectangle.

.google.cloud.documentai.v1beta1.BoundingPoly bounding_box = 2;

Returns
Type Description
BoundingPoly.Builder

getBoundingBoxOrBuilder()

public BoundingPolyOrBuilder getBoundingBoxOrBuilder()

Bounding box hint for a table on this page. The coordinates must be normalized to [0,1] and the bounding box must be an axis-aligned rectangle.

.google.cloud.documentai.v1beta1.BoundingPoly bounding_box = 2;

Returns
Type Description
BoundingPolyOrBuilder

getDefaultInstanceForType()

public TableBoundHint getDefaultInstanceForType()
Returns
Type Description
TableBoundHint

getDescriptorForType()

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

getPageNumber()

public int getPageNumber()

Optional. Page number for multi-paged inputs this hint applies to. If not provided, this hint will apply to all pages by default. This value is 1-based.

int32 page_number = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageNumber.

hasBoundingBox()

public boolean hasBoundingBox()

Bounding box hint for a table on this page. The coordinates must be normalized to [0,1] and the bounding box must be an axis-aligned rectangle.

.google.cloud.documentai.v1beta1.BoundingPoly bounding_box = 2;

Returns
Type Description
boolean

Whether the boundingBox field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBoundingBox(BoundingPoly value)

public TableBoundHint.Builder mergeBoundingBox(BoundingPoly value)

Bounding box hint for a table on this page. The coordinates must be normalized to [0,1] and the bounding box must be an axis-aligned rectangle.

.google.cloud.documentai.v1beta1.BoundingPoly bounding_box = 2;

Parameter
Name Description
value BoundingPoly
Returns
Type Description
TableBoundHint.Builder

mergeFrom(TableBoundHint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TableBoundHint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TableBoundHint.Builder
Overrides

setBoundingBox(BoundingPoly value)

public TableBoundHint.Builder setBoundingBox(BoundingPoly value)

Bounding box hint for a table on this page. The coordinates must be normalized to [0,1] and the bounding box must be an axis-aligned rectangle.

.google.cloud.documentai.v1beta1.BoundingPoly bounding_box = 2;

Parameter
Name Description
value BoundingPoly
Returns
Type Description
TableBoundHint.Builder

setBoundingBox(BoundingPoly.Builder builderForValue)

public TableBoundHint.Builder setBoundingBox(BoundingPoly.Builder builderForValue)

Bounding box hint for a table on this page. The coordinates must be normalized to [0,1] and the bounding box must be an axis-aligned rectangle.

.google.cloud.documentai.v1beta1.BoundingPoly bounding_box = 2;

Parameter
Name Description
builderForValue BoundingPoly.Builder
Returns
Type Description
TableBoundHint.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageNumber(int value)

public TableBoundHint.Builder setPageNumber(int value)

Optional. Page number for multi-paged inputs this hint applies to. If not provided, this hint will apply to all pages by default. This value is 1-based.

int32 page_number = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageNumber to set.

Returns
Type Description
TableBoundHint.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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