public static final class Document.ChunkedDocument.Chunk extends com.google.protobuf.GeneratedMessageV3 implements Document.ChunkedDocument.ChunkOrBuilder
Represents a chunk.Protobuf type
google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk| Modifier and Type | Class and Description |
|---|---|
static class |
Document.ChunkedDocument.Chunk.Builder
Represents a chunk.
|
static class |
Document.ChunkedDocument.Chunk.ChunkPageFooter
Represents the page footer associated with the chunk.
|
static interface |
Document.ChunkedDocument.Chunk.ChunkPageFooterOrBuilder |
static class |
Document.ChunkedDocument.Chunk.ChunkPageHeader
Represents the page header associated with the chunk.
|
static interface |
Document.ChunkedDocument.Chunk.ChunkPageHeaderOrBuilder |
static class |
Document.ChunkedDocument.Chunk.ChunkPageSpan
Represents where the chunk starts and ends in the document.
|
static interface |
Document.ChunkedDocument.Chunk.ChunkPageSpanOrBuilder |
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 |
CHUNK_ID_FIELD_NUMBER |
static int |
CONTENT_FIELD_NUMBER |
static int |
PAGE_FOOTERS_FIELD_NUMBER |
static int |
PAGE_HEADERS_FIELD_NUMBER |
static int |
PAGE_SPAN_FIELD_NUMBER |
static int |
SOURCE_BLOCK_IDS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getChunkId()
ID of the chunk.
|
com.google.protobuf.ByteString |
getChunkIdBytes()
ID of the chunk.
|
String |
getContent()
Text content of the chunk.
|
com.google.protobuf.ByteString |
getContentBytes()
Text content of the chunk.
|
static Document.ChunkedDocument.Chunk |
getDefaultInstance() |
Document.ChunkedDocument.Chunk |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Document.ChunkedDocument.Chunk.ChunkPageFooter |
getPageFooters(int index)
Page footers associated with the chunk.
|
int |
getPageFootersCount()
Page footers associated with the chunk.
|
List<Document.ChunkedDocument.Chunk.ChunkPageFooter> |
getPageFootersList()
Page footers associated with the chunk.
|
Document.ChunkedDocument.Chunk.ChunkPageFooterOrBuilder |
getPageFootersOrBuilder(int index)
Page footers associated with the chunk.
|
List<? extends Document.ChunkedDocument.Chunk.ChunkPageFooterOrBuilder> |
getPageFootersOrBuilderList()
Page footers associated with the chunk.
|
Document.ChunkedDocument.Chunk.ChunkPageHeader |
getPageHeaders(int index)
Page headers associated with the chunk.
|
int |
getPageHeadersCount()
Page headers associated with the chunk.
|
List<Document.ChunkedDocument.Chunk.ChunkPageHeader> |
getPageHeadersList()
Page headers associated with the chunk.
|
Document.ChunkedDocument.Chunk.ChunkPageHeaderOrBuilder |
getPageHeadersOrBuilder(int index)
Page headers associated with the chunk.
|
List<? extends Document.ChunkedDocument.Chunk.ChunkPageHeaderOrBuilder> |
getPageHeadersOrBuilderList()
Page headers associated with the chunk.
|
Document.ChunkedDocument.Chunk.ChunkPageSpan |
getPageSpan()
Page span of the chunk.
|
Document.ChunkedDocument.Chunk.ChunkPageSpanOrBuilder |
getPageSpanOrBuilder()
Page span of the chunk.
|
com.google.protobuf.Parser<Document.ChunkedDocument.Chunk> |
getParserForType() |
int |
getSerializedSize() |
String |
getSourceBlockIds(int index)
Unused.
|
com.google.protobuf.ByteString |
getSourceBlockIdsBytes(int index)
Unused.
|
int |
getSourceBlockIdsCount()
Unused.
|
com.google.protobuf.ProtocolStringList |
getSourceBlockIdsList()
Unused.
|
int |
hashCode() |
boolean |
hasPageSpan()
Page span of the chunk.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Document.ChunkedDocument.Chunk.Builder |
newBuilder() |
static Document.ChunkedDocument.Chunk.Builder |
newBuilder(Document.ChunkedDocument.Chunk prototype) |
Document.ChunkedDocument.Chunk.Builder |
newBuilderForType() |
protected Document.ChunkedDocument.Chunk.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Document.ChunkedDocument.Chunk |
parseDelimitedFrom(InputStream input) |
static Document.ChunkedDocument.Chunk |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.ChunkedDocument.Chunk |
parseFrom(byte[] data) |
static Document.ChunkedDocument.Chunk |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.ChunkedDocument.Chunk |
parseFrom(ByteBuffer data) |
static Document.ChunkedDocument.Chunk |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.ChunkedDocument.Chunk |
parseFrom(com.google.protobuf.ByteString data) |
static Document.ChunkedDocument.Chunk |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.ChunkedDocument.Chunk |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Document.ChunkedDocument.Chunk |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.ChunkedDocument.Chunk |
parseFrom(InputStream input) |
static Document.ChunkedDocument.Chunk |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Document.ChunkedDocument.Chunk> |
parser() |
Document.ChunkedDocument.Chunk.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 CHUNK_ID_FIELD_NUMBER
public static final int SOURCE_BLOCK_IDS_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int PAGE_SPAN_FIELD_NUMBER
public static final int PAGE_HEADERS_FIELD_NUMBER
public static final int PAGE_FOOTERS_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 String getChunkId()
ID of the chunk.
string chunk_id = 1;getChunkId in interface Document.ChunkedDocument.ChunkOrBuilderpublic com.google.protobuf.ByteString getChunkIdBytes()
ID of the chunk.
string chunk_id = 1;getChunkIdBytes in interface Document.ChunkedDocument.ChunkOrBuilderpublic com.google.protobuf.ProtocolStringList getSourceBlockIdsList()
Unused.
repeated string source_block_ids = 2;getSourceBlockIdsList in interface Document.ChunkedDocument.ChunkOrBuilderpublic int getSourceBlockIdsCount()
Unused.
repeated string source_block_ids = 2;getSourceBlockIdsCount in interface Document.ChunkedDocument.ChunkOrBuilderpublic String getSourceBlockIds(int index)
Unused.
repeated string source_block_ids = 2;getSourceBlockIds in interface Document.ChunkedDocument.ChunkOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getSourceBlockIdsBytes(int index)
Unused.
repeated string source_block_ids = 2;getSourceBlockIdsBytes in interface Document.ChunkedDocument.ChunkOrBuilderindex - The index of the value to return.public String getContent()
Text content of the chunk.
string content = 3;getContent in interface Document.ChunkedDocument.ChunkOrBuilderpublic com.google.protobuf.ByteString getContentBytes()
Text content of the chunk.
string content = 3;getContentBytes in interface Document.ChunkedDocument.ChunkOrBuilderpublic boolean hasPageSpan()
Page span of the chunk.
.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;
hasPageSpan in interface Document.ChunkedDocument.ChunkOrBuilderpublic Document.ChunkedDocument.Chunk.ChunkPageSpan getPageSpan()
Page span of the chunk.
.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;
getPageSpan in interface Document.ChunkedDocument.ChunkOrBuilderpublic Document.ChunkedDocument.Chunk.ChunkPageSpanOrBuilder getPageSpanOrBuilder()
Page span of the chunk.
.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4;
getPageSpanOrBuilder in interface Document.ChunkedDocument.ChunkOrBuilderpublic List<Document.ChunkedDocument.Chunk.ChunkPageHeader> getPageHeadersList()
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;
getPageHeadersList in interface Document.ChunkedDocument.ChunkOrBuilderpublic List<? extends Document.ChunkedDocument.Chunk.ChunkPageHeaderOrBuilder> getPageHeadersOrBuilderList()
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;
getPageHeadersOrBuilderList in interface Document.ChunkedDocument.ChunkOrBuilderpublic int getPageHeadersCount()
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;
getPageHeadersCount in interface Document.ChunkedDocument.ChunkOrBuilderpublic Document.ChunkedDocument.Chunk.ChunkPageHeader getPageHeaders(int index)
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;
getPageHeaders in interface Document.ChunkedDocument.ChunkOrBuilderpublic Document.ChunkedDocument.Chunk.ChunkPageHeaderOrBuilder getPageHeadersOrBuilder(int index)
Page headers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5;
getPageHeadersOrBuilder in interface Document.ChunkedDocument.ChunkOrBuilderpublic List<Document.ChunkedDocument.Chunk.ChunkPageFooter> getPageFootersList()
Page footers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;
getPageFootersList in interface Document.ChunkedDocument.ChunkOrBuilderpublic List<? extends Document.ChunkedDocument.Chunk.ChunkPageFooterOrBuilder> getPageFootersOrBuilderList()
Page footers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;
getPageFootersOrBuilderList in interface Document.ChunkedDocument.ChunkOrBuilderpublic int getPageFootersCount()
Page footers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;
getPageFootersCount in interface Document.ChunkedDocument.ChunkOrBuilderpublic Document.ChunkedDocument.Chunk.ChunkPageFooter getPageFooters(int index)
Page footers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;
getPageFooters in interface Document.ChunkedDocument.ChunkOrBuilderpublic Document.ChunkedDocument.Chunk.ChunkPageFooterOrBuilder getPageFootersOrBuilder(int index)
Page footers associated with the chunk.
repeated .google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6;
getPageFootersOrBuilder in interface Document.ChunkedDocument.ChunkOrBuilderpublic 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.ChunkedDocument.Chunk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.ChunkedDocument.Chunk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.ChunkedDocument.Chunk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.ChunkedDocument.Chunk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.ChunkedDocument.Chunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.ChunkedDocument.Chunk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.ChunkedDocument.Chunk parseFrom(InputStream input) throws IOException
IOExceptionpublic static Document.ChunkedDocument.Chunk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.ChunkedDocument.Chunk parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Document.ChunkedDocument.Chunk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.ChunkedDocument.Chunk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Document.ChunkedDocument.Chunk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Document.ChunkedDocument.Chunk.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Document.ChunkedDocument.Chunk.Builder newBuilder()
public static Document.ChunkedDocument.Chunk.Builder newBuilder(Document.ChunkedDocument.Chunk prototype)
public Document.ChunkedDocument.Chunk.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Document.ChunkedDocument.Chunk.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Document.ChunkedDocument.Chunk getDefaultInstance()
public static com.google.protobuf.Parser<Document.ChunkedDocument.Chunk> parser()
public com.google.protobuf.Parser<Document.ChunkedDocument.Chunk> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Document.ChunkedDocument.Chunk getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.