Class ProcessOptions.IndividualPageSelector.Builder (2.32.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.v1beta3.ProcessOptions.IndividualPageSelector

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends java.lang.Integer>

The pages to add.

Returns
TypeDescription
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
NameDescription
valueint

The pages to add.

Returns
TypeDescription
ProcessOptions.IndividualPageSelector.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProcessOptions.IndividualPageSelector build()
Returns
TypeDescription
ProcessOptions.IndividualPageSelector

buildPartial()

public ProcessOptions.IndividualPageSelector buildPartial()
Returns
TypeDescription
ProcessOptions.IndividualPageSelector

clear()

public ProcessOptions.IndividualPageSelector.Builder clear()
Returns
TypeDescription
ProcessOptions.IndividualPageSelector.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessOptions.IndividualPageSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ProcessOptions.IndividualPageSelector.Builder

This builder for chaining.

clone()

public ProcessOptions.IndividualPageSelector.Builder clone()
Returns
TypeDescription
ProcessOptions.IndividualPageSelector.Builder
Overrides

getDefaultInstanceForType()

public ProcessOptions.IndividualPageSelector getDefaultInstanceForType()
Returns
TypeDescription
ProcessOptions.IndividualPageSelector

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<Integer>

A list containing the pages.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProcessOptions.IndividualPageSelector other)

public ProcessOptions.IndividualPageSelector.Builder mergeFrom(ProcessOptions.IndividualPageSelector other)
Parameter
NameDescription
otherProcessOptions.IndividualPageSelector
Returns
TypeDescription
ProcessOptions.IndividualPageSelector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ProcessOptions.IndividualPageSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

The pages to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ProcessOptions.IndividualPageSelector.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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