Interface Document.Page.LayoutOrBuilder (2.51.0)

public static interface Document.Page.LayoutOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBoundingPoly()

public abstract BoundingPoly getBoundingPoly()

The bounding polygon for the Layout.

.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;

Returns
Type Description
BoundingPoly

The boundingPoly.

getBoundingPolyOrBuilder()

public abstract BoundingPolyOrBuilder getBoundingPolyOrBuilder()

The bounding polygon for the Layout.

.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;

Returns
Type Description
BoundingPolyOrBuilder

getConfidence()

public abstract float getConfidence()

Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range [0, 1].

float confidence = 2;

Returns
Type Description
float

The confidence.

getOrientation()

public abstract Document.Page.Layout.Orientation getOrientation()

Detected orientation for the Layout.

.google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation orientation = 4;

Returns
Type Description
Document.Page.Layout.Orientation

The orientation.

getOrientationValue()

public abstract int getOrientationValue()

Detected orientation for the Layout.

.google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation orientation = 4;

Returns
Type Description
int

The enum numeric value on the wire for orientation.

getTextAnchor()

public abstract Document.TextAnchor getTextAnchor()

Text anchor indexing into the Document.text.

.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;

Returns
Type Description
Document.TextAnchor

The textAnchor.

getTextAnchorOrBuilder()

public abstract Document.TextAnchorOrBuilder getTextAnchorOrBuilder()

Text anchor indexing into the Document.text.

.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;

Returns
Type Description
Document.TextAnchorOrBuilder

hasBoundingPoly()

public abstract boolean hasBoundingPoly()

The bounding polygon for the Layout.

.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;

Returns
Type Description
boolean

Whether the boundingPoly field is set.

hasTextAnchor()

public abstract boolean hasTextAnchor()

Text anchor indexing into the Document.text.

.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;

Returns
Type Description
boolean

Whether the textAnchor field is set.