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