Interface Document.Page.LayoutOrBuilder (2.4.3)

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
TypeDescription
BoundingPoly

The boundingPoly.

getBoundingPolyOrBuilder()

public abstract BoundingPolyOrBuilder getBoundingPolyOrBuilder()

The bounding polygon for the Layout.

.google.cloud.documentai.v1beta2.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.

getId()

public abstract String getId()

Optional. This is the identifier used by referencing PageAnchors.

string id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

Optional. This is the identifier used by referencing PageAnchors.

string id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for id.

getOrientation()

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

Detected orientation for the Layout.

.google.cloud.documentai.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.Document.TextAnchor text_anchor = 1;

Returns
TypeDescription
Document.TextAnchorOrBuilder

hasBoundingPoly()

public abstract boolean hasBoundingPoly()

The bounding polygon for the Layout.

.google.cloud.documentai.v1beta2.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.v1beta2.Document.TextAnchor text_anchor = 1;

Returns
TypeDescription
boolean

Whether the textAnchor field is set.