Class Document.ChunkedDocument.Chunk.ChunkPageHeader (2.52.0)

public static final class Document.ChunkedDocument.Chunk.ChunkPageHeader extends GeneratedMessageV3 implements Document.ChunkedDocument.Chunk.ChunkPageHeaderOrBuilder

Represents the page header associated with the chunk.

Protobuf type google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Document.ChunkedDocument.Chunk.ChunkPageHeader

Static Fields

PAGE_SPAN_FIELD_NUMBER

public static final int PAGE_SPAN_FIELD_NUMBER
Field Value
Type Description
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Document.ChunkedDocument.Chunk.ChunkPageHeader getDefaultInstance()
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder newBuilder()
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder

newBuilder(Document.ChunkedDocument.Chunk.ChunkPageHeader prototype)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder newBuilder(Document.ChunkedDocument.Chunk.ChunkPageHeader prototype)
Parameter
Name Description
prototype Document.ChunkedDocument.Chunk.ChunkPageHeader
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder

parseDelimitedFrom(InputStream input)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Document.ChunkedDocument.Chunk.ChunkPageHeader parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Document.ChunkedDocument.Chunk.ChunkPageHeader> parser()
Returns
Type Description
Parser<ChunkPageHeader>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Document.ChunkedDocument.Chunk.ChunkPageHeader getDefaultInstanceForType()
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader

getPageSpan()

public Document.ChunkedDocument.Chunk.ChunkPageSpan getPageSpan()

Page span of the header.

.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 2;

Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageSpan

The pageSpan.

getPageSpanOrBuilder()

public Document.ChunkedDocument.Chunk.ChunkPageSpanOrBuilder getPageSpanOrBuilder()

Page span of the header.

.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 2;

Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageSpanOrBuilder

getParserForType()

public Parser<Document.ChunkedDocument.Chunk.ChunkPageHeader> getParserForType()
Returns
Type Description
Parser<ChunkPageHeader>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getText()

public String getText()

Header in text format.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Header in text format.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

hasPageSpan()

public boolean hasPageSpan()

Page span of the header.

.google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 2;

Returns
Type Description
boolean

Whether the pageSpan field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder newBuilderForType()
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder toBuilder()
Returns
Type Description
Document.ChunkedDocument.Chunk.ChunkPageHeader.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException