Class TableBoundHint (2.33.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.v1beta2.TableBoundHint

Static Fields

BOUNDING_BOX_FIELD_NUMBER

public static final int BOUNDING_BOX_FIELD_NUMBER
Field Value
TypeDescription
int

PAGE_NUMBER_FIELD_NUMBER

public static final int PAGE_NUMBER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TableBoundHint getDefaultInstance()
Returns
TypeDescription
TableBoundHint

getDescriptor()

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

newBuilder()

public static TableBoundHint.Builder newBuilder()
Returns
TypeDescription
TableBoundHint.Builder

newBuilder(TableBoundHint prototype)

public static TableBoundHint.Builder newBuilder(TableBoundHint prototype)
Parameter
NameDescription
prototypeTableBoundHint
Returns
TypeDescription
TableBoundHint.Builder

parseDelimitedFrom(InputStream input)

public static TableBoundHint parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TableBoundHint parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TableBoundHint parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TableBoundHint parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TableBoundHint parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TableBoundHint parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TableBoundHint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableBoundHint
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TableBoundHint> parser()
Returns
TypeDescription
Parser<TableBoundHint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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.v1beta2.BoundingPoly bounding_box = 2;

Returns
TypeDescription
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.v1beta2.BoundingPoly bounding_box = 2;

Returns
TypeDescription
BoundingPolyOrBuilder

getDefaultInstanceForType()

public TableBoundHint getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
int

The pageNumber.

getParserForType()

public Parser<TableBoundHint> getParserForType()
Returns
TypeDescription
Parser<TableBoundHint>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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.v1beta2.BoundingPoly bounding_box = 2;

Returns
TypeDescription
boolean

Whether the boundingBox field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TableBoundHint.Builder newBuilderForType()
Returns
TypeDescription
TableBoundHint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TableBoundHint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TableBoundHint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TableBoundHint.Builder toBuilder()
Returns
TypeDescription
TableBoundHint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException