public static final class Document.Page.Layout extends GeneratedMessageV3 implements Document.Page.LayoutOrBuilder
Visual element describing a layout unit on a page.
Protobuf type google.cloud.documentai.v1beta2.Document.Page.Layout
Fields
BOUNDING_POLY_FIELD_NUMBER
public static final int BOUNDING_POLY_FIELD_NUMBER
Field Value
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
Field Value
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value
ORIENTATION_FIELD_NUMBER
public static final int ORIENTATION_FIELD_NUMBER
Field Value
TEXT_ANCHOR_FIELD_NUMBER
public static final int TEXT_ANCHOR_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBoundingPoly()
public BoundingPoly getBoundingPoly()
The bounding polygon for the Layout.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;
Returns
getBoundingPolyOrBuilder()
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
The bounding polygon for the Layout.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 3;
Returns
getConfidence()
public 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.
|
getDefaultInstance()
public static Document.Page.Layout getDefaultInstance()
Returns
getDefaultInstanceForType()
public Document.Page.Layout getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getId()
Optional. This is the identifier used by referencing PageAnchors.
string id = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
getIdBytes()
public ByteString getIdBytes()
Optional. This is the identifier used by referencing PageAnchors.
string id = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
getOrientation()
public Document.Page.Layout.Orientation getOrientation()
Detected orientation for the Layout.
.google.cloud.documentai.v1beta2.Document.Page.Layout.Orientation orientation = 4;
Returns
getOrientationValue()
public 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.
|
getParserForType()
public Parser<Document.Page.Layout> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTextAnchor()
public Document.TextAnchor getTextAnchor()
Text anchor indexing into the Document.text.
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;
Returns
getTextAnchorOrBuilder()
public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Text anchor indexing into the Document.text.
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasBoundingPoly()
public 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 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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Document.Page.Layout.Builder newBuilder()
Returns
newBuilder(Document.Page.Layout prototype)
public static Document.Page.Layout.Builder newBuilder(Document.Page.Layout prototype)
Parameter
Returns
newBuilderForType()
public Document.Page.Layout.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document.Page.Layout.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
parseDelimitedFrom(InputStream input)
public static Document.Page.Layout parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Layout parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Document.Page.Layout parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Layout parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Document.Page.Layout parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Layout parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static Document.Page.Layout parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Layout parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static Document.Page.Layout parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Layout parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Document.Page.Layout parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document.Page.Layout parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Document.Page.Layout> parser()
Returns
toBuilder()
public Document.Page.Layout.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions