public static final class Document.TextAnchor extends com.google.protobuf.GeneratedMessageV3 implements Document.TextAnchorOrBuilder
Text reference indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].Protobuf type
google.cloud.documentai.v1beta2.Document.TextAnchor| Modifier and Type | Class and Description |
|---|---|
static class |
Document.TextAnchor.Builder
Text reference indexing into the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
static class |
Document.TextAnchor.TextSegment
A text segment in the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
static interface |
Document.TextAnchor.TextSegmentOrBuilder |
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 |
CONTENT_FIELD_NUMBER |
static int |
TEXT_SEGMENTS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContent()
Contains the content of the text span so that users do
not have to look it up in the text_segments.
|
com.google.protobuf.ByteString |
getContentBytes()
Contains the content of the text span so that users do
not have to look it up in the text_segments.
|
static Document.TextAnchor |
getDefaultInstance() |
Document.TextAnchor |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Document.TextAnchor> |
getParserForType() |
int |
getSerializedSize() |
Document.TextAnchor.TextSegment |
getTextSegments(int index)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
int |
getTextSegmentsCount()
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
List<Document.TextAnchor.TextSegment> |
getTextSegmentsList()
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.TextAnchor.TextSegmentOrBuilder |
getTextSegmentsOrBuilder(int index)
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
List<? extends Document.TextAnchor.TextSegmentOrBuilder> |
getTextSegmentsOrBuilderList()
The text segments from the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Document.TextAnchor.Builder |
newBuilder() |
static Document.TextAnchor.Builder |
newBuilder(Document.TextAnchor prototype) |
Document.TextAnchor.Builder |
newBuilderForType() |
protected Document.TextAnchor.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Document.TextAnchor |
parseDelimitedFrom(InputStream input) |
static Document.TextAnchor |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.TextAnchor |
parseFrom(byte[] data) |
static Document.TextAnchor |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.TextAnchor |
parseFrom(ByteBuffer data) |
static Document.TextAnchor |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.TextAnchor |
parseFrom(com.google.protobuf.ByteString data) |
static Document.TextAnchor |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.TextAnchor |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Document.TextAnchor |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.TextAnchor |
parseFrom(InputStream input) |
static Document.TextAnchor |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Document.TextAnchor> |
parser() |
Document.TextAnchor.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_SEGMENTS_FIELD_NUMBER
public static final int CONTENT_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 List<Document.TextAnchor.TextSegment> getTextSegmentsList()
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
getTextSegmentsList in interface Document.TextAnchorOrBuilderpublic List<? extends Document.TextAnchor.TextSegmentOrBuilder> getTextSegmentsOrBuilderList()
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
getTextSegmentsOrBuilderList in interface Document.TextAnchorOrBuilderpublic int getTextSegmentsCount()
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
getTextSegmentsCount in interface Document.TextAnchorOrBuilderpublic Document.TextAnchor.TextSegment getTextSegments(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
getTextSegments in interface Document.TextAnchorOrBuilderpublic Document.TextAnchor.TextSegmentOrBuilder getTextSegmentsOrBuilder(int index)
The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment text_segments = 1;
getTextSegmentsOrBuilder in interface Document.TextAnchorOrBuilderpublic String getContent()
Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields.
string content = 2;getContent in interface Document.TextAnchorOrBuilderpublic com.google.protobuf.ByteString getContentBytes()
Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields.
string content = 2;getContentBytes in interface Document.TextAnchorOrBuilderpublic 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.TextAnchor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.TextAnchor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.TextAnchor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.TextAnchor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.TextAnchor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.TextAnchor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.TextAnchor parseFrom(InputStream input) throws IOException
IOExceptionpublic static Document.TextAnchor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.TextAnchor parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Document.TextAnchor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.TextAnchor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Document.TextAnchor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Document.TextAnchor.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Document.TextAnchor.Builder newBuilder()
public static Document.TextAnchor.Builder newBuilder(Document.TextAnchor prototype)
public Document.TextAnchor.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Document.TextAnchor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Document.TextAnchor getDefaultInstance()
public static com.google.protobuf.Parser<Document.TextAnchor> parser()
public com.google.protobuf.Parser<Document.TextAnchor> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Document.TextAnchor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.