Class TableBoundHint (2.46.0)

public final class TableBoundHint extends GeneratedMessageV3 implements TableBoundHintOrBuilder

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

Protobuf type google.cloud.documentai.v1beta1.TableBoundHint

Static Fields

BOUNDING_BOX_FIELD_NUMBER

public static final int BOUNDING_BOX_FIELD_NUMBER
Field Value
Type Description
int

PAGE_NUMBER_FIELD_NUMBER

public static final int PAGE_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TableBoundHint getDefaultInstance()
Returns
Type Description
TableBoundHint

getDescriptor()

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

newBuilder()

public static TableBoundHint.Builder newBuilder()
Returns
Type Description
TableBoundHint.Builder

newBuilder(TableBoundHint prototype)

public static TableBoundHint.Builder newBuilder(TableBoundHint prototype)
Parameter
Name Description
prototype TableBoundHint
Returns
Type Description
TableBoundHint.Builder

parseDelimitedFrom(InputStream input)

public static TableBoundHint parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TableBoundHint
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TableBoundHint
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TableBoundHint parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TableBoundHint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TableBoundHint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TableBoundHint parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TableBoundHint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TableBoundHint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TableBoundHint parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TableBoundHint
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TableBoundHint
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TableBoundHint parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TableBoundHint
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TableBoundHint
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TableBoundHint parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TableBoundHint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TableBoundHint
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TableBoundHint> parser()
Returns
Type Description
Parser<TableBoundHint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

getParserForType()

public Parser<TableBoundHint> getParserForType()
Returns
Type Description
Parser<TableBoundHint>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TableBoundHint.Builder newBuilderForType()
Returns
Type Description
TableBoundHint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TableBoundHint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TableBoundHint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TableBoundHint.Builder toBuilder()
Returns
Type Description
TableBoundHint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException