Interface Document.Page.LayoutOrBuilder (2.6.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.v1.BoundingPoly bounding_poly = 3;

Returns
TypeDescription
BoundingPoly

The boundingPoly.

getBoundingPolyOrBuilder()

public abstract BoundingPolyOrBuilder getBoundingPolyOrBuilder()

The bounding polygon for the Layout.

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

Returns
TypeDescription
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
TypeDescription
float

The confidence.

getOrientation()

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

Detected orientation for the Layout.

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

Returns
TypeDescription
Document.Page.Layout.Orientation

The orientation.

getOrientationValue()

public abstract int getOrientationValue()

Detected orientation for the Layout.

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

Returns
TypeDescription
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.v1.Document.TextAnchor text_anchor = 1;

Returns
TypeDescription
Document.TextAnchor

The textAnchor.

getTextAnchorOrBuilder()

public abstract Document.TextAnchorOrBuilder getTextAnchorOrBuilder()

Text anchor indexing into the Document.text.

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

Returns
TypeDescription
Document.TextAnchorOrBuilder

hasBoundingPoly()

public abstract boolean hasBoundingPoly()

The bounding polygon for the Layout.

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

Returns
TypeDescription
boolean

Whether the boundingPoly field is set.

hasTextAnchor()

public abstract boolean hasTextAnchor()

Text anchor indexing into the Document.text.

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

Returns
TypeDescription
boolean

Whether the textAnchor field is set.