public static final class Document.Entity extends com.google.protobuf.GeneratedMessageV3 implements Document.EntityOrBuilder
A phrase in the text that is a known entity type, such as a person, an organization, or location.Protobuf type
google.cloud.documentai.v1beta2.Document.Entity| Modifier and Type | Class and Description |
|---|---|
static class |
Document.Entity.Builder
A phrase in the text that is a known entity type, such as a person, an
organization, or location.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BOUNDING_POLY_FOR_DEMO_FRONTEND_FIELD_NUMBER |
static int |
CONFIDENCE_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
MENTION_ID_FIELD_NUMBER |
static int |
MENTION_TEXT_FIELD_NUMBER |
static int |
PAGE_ANCHOR_FIELD_NUMBER |
static int |
TEXT_ANCHOR_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BoundingPoly |
getBoundingPolyForDemoFrontend()
Optional.
|
BoundingPolyOrBuilder |
getBoundingPolyForDemoFrontendOrBuilder()
Optional.
|
float |
getConfidence()
Optional.
|
static Document.Entity |
getDefaultInstance() |
Document.Entity |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getId()
Optional.
|
com.google.protobuf.ByteString |
getIdBytes()
Optional.
|
String |
getMentionId()
Deprecated.
|
com.google.protobuf.ByteString |
getMentionIdBytes()
Deprecated.
|
String |
getMentionText()
Text value in the document e.g.
|
com.google.protobuf.ByteString |
getMentionTextBytes()
Text value in the document e.g.
|
Document.PageAnchor |
getPageAnchor()
Optional.
|
Document.PageAnchorOrBuilder |
getPageAnchorOrBuilder()
Optional.
|
com.google.protobuf.Parser<Document.Entity> |
getParserForType() |
int |
getSerializedSize() |
Document.TextAnchor |
getTextAnchor()
Provenance of the entity.
|
Document.TextAnchorOrBuilder |
getTextAnchorOrBuilder()
Provenance of the entity.
|
String |
getType()
Entity type from a schema e.g.
|
com.google.protobuf.ByteString |
getTypeBytes()
Entity type from a schema e.g.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBoundingPolyForDemoFrontend()
Optional.
|
int |
hashCode() |
boolean |
hasPageAnchor()
Optional.
|
boolean |
hasTextAnchor()
Provenance of the entity.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Document.Entity.Builder |
newBuilder() |
static Document.Entity.Builder |
newBuilder(Document.Entity prototype) |
Document.Entity.Builder |
newBuilderForType() |
protected Document.Entity.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Document.Entity |
parseDelimitedFrom(InputStream input) |
static Document.Entity |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Entity |
parseFrom(byte[] data) |
static Document.Entity |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Entity |
parseFrom(ByteBuffer data) |
static Document.Entity |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Entity |
parseFrom(com.google.protobuf.ByteString data) |
static Document.Entity |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Entity |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Document.Entity |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Entity |
parseFrom(InputStream input) |
static Document.Entity |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Document.Entity> |
parser() |
Document.Entity.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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 TEXT_ANCHOR_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int MENTION_TEXT_FIELD_NUMBER
public static final int MENTION_ID_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
public static final int PAGE_ANCHOR_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int BOUNDING_POLY_FOR_DEMO_FRONTEND_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields 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 boolean hasTextAnchor()
Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;hasTextAnchor in interface Document.EntityOrBuilderpublic Document.TextAnchor getTextAnchor()
Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;getTextAnchor in interface Document.EntityOrBuilderpublic Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1;getTextAnchorOrBuilder in interface Document.EntityOrBuilderpublic String getType()
Entity type from a schema e.g. `Address`.
string type = 2;getType in interface Document.EntityOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
Entity type from a schema e.g. `Address`.
string type = 2;getTypeBytes in interface Document.EntityOrBuilderpublic String getMentionText()
Text value in the document e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3;getMentionText in interface Document.EntityOrBuilderpublic com.google.protobuf.ByteString getMentionTextBytes()
Text value in the document e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3;getMentionTextBytes in interface Document.EntityOrBuilderpublic String getMentionId()
Deprecated. Use `id` field instead.
string mention_id = 4;getMentionId in interface Document.EntityOrBuilderpublic com.google.protobuf.ByteString getMentionIdBytes()
Deprecated. Use `id` field instead.
string mention_id = 4;getMentionIdBytes in interface Document.EntityOrBuilderpublic float getConfidence()
Optional. Confidence of detected Schema entity. Range [0, 1].
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];getConfidence in interface Document.EntityOrBuilderpublic boolean hasPageAnchor()
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
hasPageAnchor in interface Document.EntityOrBuilderpublic Document.PageAnchor getPageAnchor()
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
getPageAnchor in interface Document.EntityOrBuilderpublic Document.PageAnchorOrBuilder getPageAnchorOrBuilder()
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
getPageAnchorOrBuilder in interface Document.EntityOrBuilderpublic String getId()
Optional. Canonical id. This will be a unique value in the entity list for this document.
string id = 7 [(.google.api.field_behavior) = OPTIONAL];getId in interface Document.EntityOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
Optional. Canonical id. This will be a unique value in the entity list for this document.
string id = 7 [(.google.api.field_behavior) = OPTIONAL];getIdBytes in interface Document.EntityOrBuilderpublic boolean hasBoundingPolyForDemoFrontend()
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
hasBoundingPolyForDemoFrontend in interface Document.EntityOrBuilderpublic BoundingPoly getBoundingPolyForDemoFrontend()
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
getBoundingPolyForDemoFrontend in interface Document.EntityOrBuilderpublic BoundingPolyOrBuilder getBoundingPolyForDemoFrontendOrBuilder()
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
getBoundingPolyForDemoFrontendOrBuilder in interface Document.EntityOrBuilderpublic 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.Entity parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Entity parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Entity parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Entity parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Entity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Entity parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Entity parseFrom(InputStream input) throws IOException
IOExceptionpublic static Document.Entity parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.Entity parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Document.Entity parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.Entity parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Document.Entity parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Document.Entity.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Document.Entity.Builder newBuilder()
public static Document.Entity.Builder newBuilder(Document.Entity prototype)
public Document.Entity.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Document.Entity.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Document.Entity getDefaultInstance()
public static com.google.protobuf.Parser<Document.Entity> parser()
public com.google.protobuf.Parser<Document.Entity> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Document.Entity getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.