public static final class Document.PageAnchor extends GeneratedMessageV3 implements Document.PageAnchorOrBuilder
Referencing the visual context of the entity in the Document.pages.
Page anchors can be cross-page, consist of multiple bounding polygons and
optionally reference specific layout element types.
Protobuf type google.cloud.documentai.v1beta3.Document.PageAnchor
Static Fields
PAGE_REFS_FIELD_NUMBER
public static final int PAGE_REFS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Document.PageAnchor getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Document.PageAnchor.Builder newBuilder()
Returns
newBuilder(Document.PageAnchor prototype)
public static Document.PageAnchor.Builder newBuilder(Document.PageAnchor prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static Document.PageAnchor parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.PageAnchor parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Document.PageAnchor parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document.PageAnchor parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Document.PageAnchor parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.PageAnchor parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static Document.PageAnchor parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.PageAnchor parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static Document.PageAnchor parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.PageAnchor parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Document.PageAnchor parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document.PageAnchor parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Document.PageAnchor> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Document.PageAnchor getDefaultInstanceForType()
Returns
public Document.PageAnchor.PageRef getPageRefs(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Returns
public int getPageRefsCount()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns
public List<Document.PageAnchor.PageRef> getPageRefsList()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns
public Document.PageAnchor.PageRefOrBuilder getPageRefsOrBuilder(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Returns
public List<? extends Document.PageAnchor.PageRefOrBuilder> getPageRefsOrBuilderList()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns
Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRefOrBuilder> | |
getParserForType()
public Parser<Document.PageAnchor> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Document.PageAnchor.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document.PageAnchor.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Document.PageAnchor.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions