Class BatchProcessDocumentsResponse.Builder (2.48.0)

public static final class BatchProcessDocumentsResponse.Builder extends GeneratedMessageV3.Builder<BatchProcessDocumentsResponse.Builder> implements BatchProcessDocumentsResponseOrBuilder

Response to an batch document processing request. This is returned in the LRO Operation after the operation is complete.

Protobuf type google.cloud.documentai.v1beta2.BatchProcessDocumentsResponse

Static Methods

getDescriptor()

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

Methods

addAllResponses(Iterable<? extends ProcessDocumentResponse> values)

public BatchProcessDocumentsResponse.Builder addAllResponses(Iterable<? extends ProcessDocumentResponse> values)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.documentai.v1beta2.ProcessDocumentResponse>
Returns
Type Description
BatchProcessDocumentsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResponses(ProcessDocumentResponse value)

public BatchProcessDocumentsResponse.Builder addResponses(ProcessDocumentResponse value)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameter
Name Description
value ProcessDocumentResponse
Returns
Type Description
BatchProcessDocumentsResponse.Builder

addResponses(ProcessDocumentResponse.Builder builderForValue)

public BatchProcessDocumentsResponse.Builder addResponses(ProcessDocumentResponse.Builder builderForValue)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameter
Name Description
builderForValue ProcessDocumentResponse.Builder
Returns
Type Description
BatchProcessDocumentsResponse.Builder

addResponses(int index, ProcessDocumentResponse value)

public BatchProcessDocumentsResponse.Builder addResponses(int index, ProcessDocumentResponse value)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameters
Name Description
index int
value ProcessDocumentResponse
Returns
Type Description
BatchProcessDocumentsResponse.Builder

addResponses(int index, ProcessDocumentResponse.Builder builderForValue)

public BatchProcessDocumentsResponse.Builder addResponses(int index, ProcessDocumentResponse.Builder builderForValue)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameters
Name Description
index int
builderForValue ProcessDocumentResponse.Builder
Returns
Type Description
BatchProcessDocumentsResponse.Builder

addResponsesBuilder()

public ProcessDocumentResponse.Builder addResponsesBuilder()

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Returns
Type Description
ProcessDocumentResponse.Builder

addResponsesBuilder(int index)

public ProcessDocumentResponse.Builder addResponsesBuilder(int index)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
ProcessDocumentResponse.Builder

build()

public BatchProcessDocumentsResponse build()
Returns
Type Description
BatchProcessDocumentsResponse

buildPartial()

public BatchProcessDocumentsResponse buildPartial()
Returns
Type Description
BatchProcessDocumentsResponse

clear()

public BatchProcessDocumentsResponse.Builder clear()
Returns
Type Description
BatchProcessDocumentsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResponses()

public BatchProcessDocumentsResponse.Builder clearResponses()

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Returns
Type Description
BatchProcessDocumentsResponse.Builder

clone()

public BatchProcessDocumentsResponse.Builder clone()
Returns
Type Description
BatchProcessDocumentsResponse.Builder
Overrides

getDefaultInstanceForType()

public BatchProcessDocumentsResponse getDefaultInstanceForType()
Returns
Type Description
BatchProcessDocumentsResponse

getDescriptorForType()

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

getResponses(int index)

public ProcessDocumentResponse getResponses(int index)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
ProcessDocumentResponse

getResponsesBuilder(int index)

public ProcessDocumentResponse.Builder getResponsesBuilder(int index)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
ProcessDocumentResponse.Builder

getResponsesBuilderList()

public List<ProcessDocumentResponse.Builder> getResponsesBuilderList()

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Returns
Type Description
List<Builder>

getResponsesCount()

public int getResponsesCount()

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Returns
Type Description
int

getResponsesList()

public List<ProcessDocumentResponse> getResponsesList()

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Returns
Type Description
List<ProcessDocumentResponse>

getResponsesOrBuilder(int index)

public ProcessDocumentResponseOrBuilder getResponsesOrBuilder(int index)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
ProcessDocumentResponseOrBuilder

getResponsesOrBuilderList()

public List<? extends ProcessDocumentResponseOrBuilder> getResponsesOrBuilderList()

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Returns
Type Description
List<? extends com.google.cloud.documentai.v1beta2.ProcessDocumentResponseOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchProcessDocumentsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResponses(int index)

public BatchProcessDocumentsResponse.Builder removeResponses(int index)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
BatchProcessDocumentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResponses(int index, ProcessDocumentResponse value)

public BatchProcessDocumentsResponse.Builder setResponses(int index, ProcessDocumentResponse value)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameters
Name Description
index int
value ProcessDocumentResponse
Returns
Type Description
BatchProcessDocumentsResponse.Builder

setResponses(int index, ProcessDocumentResponse.Builder builderForValue)

public BatchProcessDocumentsResponse.Builder setResponses(int index, ProcessDocumentResponse.Builder builderForValue)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentResponse responses = 1;

Parameters
Name Description
index int
builderForValue ProcessDocumentResponse.Builder
Returns
Type Description
BatchProcessDocumentsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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