Class TableBoundHint.Builder (2.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TableBoundHint build()
Returns
TypeDescription
TableBoundHint

buildPartial()

public TableBoundHint buildPartial()
Returns
TypeDescription
TableBoundHint

clear()

public TableBoundHint.Builder clear()
Returns
TypeDescription
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
TypeDescription
TableBoundHint.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TableBoundHint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
TableBoundHint.Builder

This builder for chaining.

clone()

public TableBoundHint.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BoundingPolyOrBuilder

getDefaultInstanceForType()

public TableBoundHint getDefaultInstanceForType()
Returns
TypeDescription
TableBoundHint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the boundingBox field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBoundingPoly
Returns
TypeDescription
TableBoundHint.Builder

mergeFrom(TableBoundHint other)

public TableBoundHint.Builder mergeFrom(TableBoundHint other)
Parameter
NameDescription
otherTableBoundHint
Returns
TypeDescription
TableBoundHint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TableBoundHint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBoundingPoly
Returns
TypeDescription
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
NameDescription
builderForValueBoundingPoly.Builder
Returns
TypeDescription
TableBoundHint.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TableBoundHint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The pageNumber to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TableBoundHint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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