Class ProcessOptions.IndividualPageSelector.Builder (2.56.0)

public static final class ProcessOptions.IndividualPageSelector.Builder extends GeneratedMessageV3.Builder<ProcessOptions.IndividualPageSelector.Builder> implements ProcessOptions.IndividualPageSelectorOrBuilder

A list of individual page numbers.

Protobuf type google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector

Static Methods

getDescriptor()

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

Methods

addAllPages(Iterable<? extends Integer> values)

public ProcessOptions.IndividualPageSelector.Builder addAllPages(Iterable<? extends Integer> values)

Optional. Indices of the pages (starting from 1).

repeated int32 pages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends java.lang.Integer>

The pages to add.

Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder

This builder for chaining.

addPages(int value)

public ProcessOptions.IndividualPageSelector.Builder addPages(int value)

Optional. Indices of the pages (starting from 1).

repeated int32 pages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pages to add.

Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProcessOptions.IndividualPageSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides

build()

public ProcessOptions.IndividualPageSelector build()
Returns
Type Description
ProcessOptions.IndividualPageSelector

buildPartial()

public ProcessOptions.IndividualPageSelector buildPartial()
Returns
Type Description
ProcessOptions.IndividualPageSelector

clear()

public ProcessOptions.IndividualPageSelector.Builder clear()
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ProcessOptions.IndividualPageSelector.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessOptions.IndividualPageSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides

clearPages()

public ProcessOptions.IndividualPageSelector.Builder clearPages()

Optional. Indices of the pages (starting from 1).

repeated int32 pages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder

This builder for chaining.

clone()

public ProcessOptions.IndividualPageSelector.Builder clone()
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides

getDefaultInstanceForType()

public ProcessOptions.IndividualPageSelector getDefaultInstanceForType()
Returns
Type Description
ProcessOptions.IndividualPageSelector

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPages(int index)

public int getPages(int index)

Optional. Indices of the pages (starting from 1).

repeated int32 pages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The pages at the given index.

getPagesCount()

public int getPagesCount()

Optional. Indices of the pages (starting from 1).

repeated int32 pages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of pages.

getPagesList()

public List<Integer> getPagesList()

Optional. Indices of the pages (starting from 1).

repeated int32 pages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the pages.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProcessOptions.IndividualPageSelector other)

public ProcessOptions.IndividualPageSelector.Builder mergeFrom(ProcessOptions.IndividualPageSelector other)
Parameter
Name Description
other ProcessOptions.IndividualPageSelector
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProcessOptions.IndividualPageSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProcessOptions.IndividualPageSelector.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProcessOptions.IndividualPageSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ProcessOptions.IndividualPageSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides

setPages(int index, int value)

public ProcessOptions.IndividualPageSelector.Builder setPages(int index, int value)

Optional. Indices of the pages (starting from 1).

repeated int32 pages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

The pages to set.

Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder

This builder for chaining.

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

public ProcessOptions.IndividualPageSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProcessOptions.IndividualPageSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessOptions.IndividualPageSelector.Builder
Overrides