Class DocumentPageRange (2.27.0)

public final class DocumentPageRange extends GeneratedMessageV3 implements DocumentPageRangeOrBuilder

Range of pages present in a document.

Protobuf type google.cloud.documentai.v1beta3.DocumentPageRange

Static Fields

END_FIELD_NUMBER

public static final int END_FIELD_NUMBER
Field Value
TypeDescription
int

START_FIELD_NUMBER

public static final int START_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DocumentPageRange getDefaultInstance()
Returns
TypeDescription
DocumentPageRange

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DocumentPageRange.Builder newBuilder()
Returns
TypeDescription
DocumentPageRange.Builder

newBuilder(DocumentPageRange prototype)

public static DocumentPageRange.Builder newBuilder(DocumentPageRange prototype)
Parameter
NameDescription
prototypeDocumentPageRange
Returns
TypeDescription
DocumentPageRange.Builder

parseDelimitedFrom(InputStream input)

public static DocumentPageRange parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DocumentPageRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DocumentPageRange parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DocumentPageRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DocumentPageRange parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DocumentPageRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DocumentPageRange parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DocumentPageRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DocumentPageRange parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DocumentPageRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DocumentPageRange parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DocumentPageRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentPageRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DocumentPageRange> parser()
Returns
TypeDescription
Parser<DocumentPageRange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DocumentPageRange getDefaultInstanceForType()
Returns
TypeDescription
DocumentPageRange

getEnd()

public int getEnd()

Last page number (one-based index) to be returned.

int32 end = 2;

Returns
TypeDescription
int

The end.

getParserForType()

public Parser<DocumentPageRange> getParserForType()
Returns
TypeDescription
Parser<DocumentPageRange>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStart()

public int getStart()

First page number (one-based index) to be returned.

int32 start = 1;

Returns
TypeDescription
int

The start.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DocumentPageRange.Builder newBuilderForType()
Returns
TypeDescription
DocumentPageRange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DocumentPageRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DocumentPageRange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DocumentPageRange.Builder toBuilder()
Returns
TypeDescription
DocumentPageRange.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException