public static final class Document.PageAnchor.PageRef extends com.google.protobuf.GeneratedMessageV3 implements Document.PageAnchor.PageRefOrBuilder
Represents a weak reference to a page element within a document.Protobuf type
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef| Modifier and Type | Class and Description |
|---|---|
static class |
Document.PageAnchor.PageRef.Builder
Represents a weak reference to a page element within a document.
|
static class |
Document.PageAnchor.PageRef.LayoutType
The type of layout that is being referenced.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BOUNDING_POLY_FIELD_NUMBER |
static int |
CONFIDENCE_FIELD_NUMBER |
static int |
LAYOUT_ID_FIELD_NUMBER |
static int |
LAYOUT_TYPE_FIELD_NUMBER |
static int |
PAGE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BoundingPoly |
getBoundingPoly()
Optional.
|
BoundingPolyOrBuilder |
getBoundingPolyOrBuilder()
Optional.
|
float |
getConfidence()
Optional.
|
static Document.PageAnchor.PageRef |
getDefaultInstance() |
Document.PageAnchor.PageRef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getLayoutId()
Deprecated.
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.layout_id is
deprecated. See google/cloud/documentai/v1beta2/document.proto;l=782
|
com.google.protobuf.ByteString |
getLayoutIdBytes()
Deprecated.
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.layout_id is
deprecated. See google/cloud/documentai/v1beta2/document.proto;l=782
|
Document.PageAnchor.PageRef.LayoutType |
getLayoutType()
Optional.
|
int |
getLayoutTypeValue()
Optional.
|
long |
getPage()
Required.
|
com.google.protobuf.Parser<Document.PageAnchor.PageRef> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasBoundingPoly()
Optional.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Document.PageAnchor.PageRef.Builder |
newBuilder() |
static Document.PageAnchor.PageRef.Builder |
newBuilder(Document.PageAnchor.PageRef prototype) |
Document.PageAnchor.PageRef.Builder |
newBuilderForType() |
protected Document.PageAnchor.PageRef.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Document.PageAnchor.PageRef |
parseDelimitedFrom(InputStream input) |
static Document.PageAnchor.PageRef |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.PageAnchor.PageRef |
parseFrom(byte[] data) |
static Document.PageAnchor.PageRef |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.PageAnchor.PageRef |
parseFrom(ByteBuffer data) |
static Document.PageAnchor.PageRef |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.PageAnchor.PageRef |
parseFrom(com.google.protobuf.ByteString data) |
static Document.PageAnchor.PageRef |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.PageAnchor.PageRef |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Document.PageAnchor.PageRef |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.PageAnchor.PageRef |
parseFrom(InputStream input) |
static Document.PageAnchor.PageRef |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Document.PageAnchor.PageRef> |
parser() |
Document.PageAnchor.PageRef.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PAGE_FIELD_NUMBER
public static final int LAYOUT_TYPE_FIELD_NUMBER
public static final int LAYOUT_ID_FIELD_NUMBER
public static final int BOUNDING_POLY_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public long getPage()
Required. Index into the [Document.pages][google.cloud.documentai.v1beta2.Document.pages] element, for example using `[Document.pages][page_refs.page]` to locate the related page element. This field is skipped when its value is the default `0`. See https://developers.google.com/protocol-buffers/docs/proto3#json.
int64 page = 1 [(.google.api.field_behavior) = REQUIRED];getPage in interface Document.PageAnchor.PageRefOrBuilderpublic int getLayoutTypeValue()
Optional. The type of the layout element that is being referenced if any.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
getLayoutTypeValue in interface Document.PageAnchor.PageRefOrBuilderpublic Document.PageAnchor.PageRef.LayoutType getLayoutType()
Optional. The type of the layout element that is being referenced if any.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
getLayoutType in interface Document.PageAnchor.PageRefOrBuilder@Deprecated public String getLayoutId()
Optional. Deprecated. Use [PageRef.bounding_poly][google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.bounding_poly] instead.
string layout_id = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
getLayoutId in interface Document.PageAnchor.PageRefOrBuilder@Deprecated public com.google.protobuf.ByteString getLayoutIdBytes()
Optional. Deprecated. Use [PageRef.bounding_poly][google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.bounding_poly] instead.
string layout_id = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
getLayoutIdBytes in interface Document.PageAnchor.PageRefOrBuilderpublic boolean hasBoundingPoly()
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
hasBoundingPoly in interface Document.PageAnchor.PageRefOrBuilderpublic BoundingPoly getBoundingPoly()
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
getBoundingPoly in interface Document.PageAnchor.PageRefOrBuilderpublic BoundingPolyOrBuilder getBoundingPolyOrBuilder()
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
getBoundingPolyOrBuilder in interface Document.PageAnchor.PageRefOrBuilderpublic float getConfidence()
Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];getConfidence in interface Document.PageAnchor.PageRefOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Document.PageAnchor.PageRef parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.PageAnchor.PageRef parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.PageAnchor.PageRef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.PageAnchor.PageRef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.PageAnchor.PageRef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.PageAnchor.PageRef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.PageAnchor.PageRef parseFrom(InputStream input) throws IOException
IOExceptionpublic static Document.PageAnchor.PageRef parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.PageAnchor.PageRef parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Document.PageAnchor.PageRef parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.PageAnchor.PageRef parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Document.PageAnchor.PageRef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Document.PageAnchor.PageRef.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Document.PageAnchor.PageRef.Builder newBuilder()
public static Document.PageAnchor.PageRef.Builder newBuilder(Document.PageAnchor.PageRef prototype)
public Document.PageAnchor.PageRef.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Document.PageAnchor.PageRef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Document.PageAnchor.PageRef getDefaultInstance()
public static com.google.protobuf.Parser<Document.PageAnchor.PageRef> parser()
public com.google.protobuf.Parser<Document.PageAnchor.PageRef> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Document.PageAnchor.PageRef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.