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.v1beta1.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<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 |
MENTION_ID_FIELD_NUMBER |
static int |
MENTION_TEXT_FIELD_NUMBER |
static int |
TEXT_ANCHOR_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Document.Entity |
getDefaultInstance() |
Document.Entity |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getMentionId()
Canonical mention name.
|
com.google.protobuf.ByteString |
getMentionIdBytes()
Canonical mention name.
|
String |
getMentionText()
Text value in the document e.g.
|
com.google.protobuf.ByteString |
getMentionTextBytes()
Text value in the document e.g.
|
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()
Required.
|
com.google.protobuf.ByteString |
getTypeBytes()
Required.
|
int |
hashCode() |
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, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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 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
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 boolean hasTextAnchor()
Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].
.google.cloud.documentai.v1beta1.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.v1beta1.Document.text].
.google.cloud.documentai.v1beta1.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.v1beta1.Document.text].
.google.cloud.documentai.v1beta1.Document.TextAnchor text_anchor = 1;getTextAnchorOrBuilder in interface Document.EntityOrBuilderpublic String getType()
Required. Entity type from a schema e.g. `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];getType in interface Document.EntityOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
Required. Entity type from a schema e.g. `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];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()
Canonical mention name. This will be a unique value in the entity list for this document.
string mention_id = 4;getMentionId in interface Document.EntityOrBuilderpublic com.google.protobuf.ByteString getMentionIdBytes()
Canonical mention name. This will be a unique value in the entity list for this document.
string mention_id = 4;getMentionIdBytes 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 © 2024 Google LLC. All rights reserved.