Class DocumentPageRange.Builder (2.32.0)

public static final class DocumentPageRange.Builder extends GeneratedMessageV3.Builder<DocumentPageRange.Builder> implements DocumentPageRangeOrBuilder

Range of pages present in a document.

Protobuf type google.cloud.documentai.v1beta3.DocumentPageRange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DocumentPageRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DocumentPageRange.Builder
Overrides

build()

public DocumentPageRange build()
Returns
TypeDescription
DocumentPageRange

buildPartial()

public DocumentPageRange buildPartial()
Returns
TypeDescription
DocumentPageRange

clear()

public DocumentPageRange.Builder clear()
Returns
TypeDescription
DocumentPageRange.Builder
Overrides

clearEnd()

public DocumentPageRange.Builder clearEnd()

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

int32 end = 2;

Returns
TypeDescription
DocumentPageRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DocumentPageRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DocumentPageRange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentPageRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DocumentPageRange.Builder
Overrides

clearStart()

public DocumentPageRange.Builder clearStart()

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

int32 start = 1;

Returns
TypeDescription
DocumentPageRange.Builder

This builder for chaining.

clone()

public DocumentPageRange.Builder clone()
Returns
TypeDescription
DocumentPageRange.Builder
Overrides

getDefaultInstanceForType()

public DocumentPageRange getDefaultInstanceForType()
Returns
TypeDescription
DocumentPageRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnd()

public int getEnd()

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

int32 end = 2;

Returns
TypeDescription
int

The end.

getStart()

public int getStart()

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

int32 start = 1;

Returns
TypeDescription
int

The start.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DocumentPageRange other)

public DocumentPageRange.Builder mergeFrom(DocumentPageRange other)
Parameter
NameDescription
otherDocumentPageRange
Returns
TypeDescription
DocumentPageRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DocumentPageRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentPageRange.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DocumentPageRange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DocumentPageRange.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentPageRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentPageRange.Builder
Overrides

setEnd(int value)

public DocumentPageRange.Builder setEnd(int value)

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

int32 end = 2;

Parameter
NameDescription
valueint

The end to set.

Returns
TypeDescription
DocumentPageRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DocumentPageRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DocumentPageRange.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DocumentPageRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DocumentPageRange.Builder
Overrides

setStart(int value)

public DocumentPageRange.Builder setStart(int value)

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

int32 start = 1;

Parameter
NameDescription
valueint

The start to set.

Returns
TypeDescription
DocumentPageRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentPageRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentPageRange.Builder
Overrides