Class BatchProcessDocumentsResponse.Builder (2.34.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.v1beta1.BatchProcessDocumentsResponse

Static Methods

getDescriptor()

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

Methods

addAllResponses(Iterable<? extends ProcessDocumentResponse> values)

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

Responses for each individual document.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1beta1.ProcessDocumentResponse>
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResponses(ProcessDocumentResponse value)

public BatchProcessDocumentsResponse.Builder addResponses(ProcessDocumentResponse value)

Responses for each individual document.

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

Parameter
NameDescription
valueProcessDocumentResponse
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

addResponses(ProcessDocumentResponse.Builder builderForValue)

public BatchProcessDocumentsResponse.Builder addResponses(ProcessDocumentResponse.Builder builderForValue)

Responses for each individual document.

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

Parameter
NameDescription
builderForValueProcessDocumentResponse.Builder
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

addResponses(int index, ProcessDocumentResponse value)

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

Responses for each individual document.

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

Parameters
NameDescription
indexint
valueProcessDocumentResponse
Returns
TypeDescription
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.v1beta1.ProcessDocumentResponse responses = 1;

Parameters
NameDescription
indexint
builderForValueProcessDocumentResponse.Builder
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

addResponsesBuilder()

public ProcessDocumentResponse.Builder addResponsesBuilder()

Responses for each individual document.

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

Returns
TypeDescription
ProcessDocumentResponse.Builder

addResponsesBuilder(int index)

public ProcessDocumentResponse.Builder addResponsesBuilder(int index)

Responses for each individual document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ProcessDocumentResponse.Builder

build()

public BatchProcessDocumentsResponse build()
Returns
TypeDescription
BatchProcessDocumentsResponse

buildPartial()

public BatchProcessDocumentsResponse buildPartial()
Returns
TypeDescription
BatchProcessDocumentsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResponses()

public BatchProcessDocumentsResponse.Builder clearResponses()

Responses for each individual document.

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

Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

clone()

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

getDefaultInstanceForType()

public BatchProcessDocumentsResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchProcessDocumentsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResponses(int index)

public ProcessDocumentResponse getResponses(int index)

Responses for each individual document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ProcessDocumentResponse

getResponsesBuilder(int index)

public ProcessDocumentResponse.Builder getResponsesBuilder(int index)

Responses for each individual document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ProcessDocumentResponse.Builder

getResponsesBuilderList()

public List<ProcessDocumentResponse.Builder> getResponsesBuilderList()

Responses for each individual document.

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

Returns
TypeDescription
List<Builder>

getResponsesCount()

public int getResponsesCount()

Responses for each individual document.

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

Returns
TypeDescription
int

getResponsesList()

public List<ProcessDocumentResponse> getResponsesList()

Responses for each individual document.

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

Returns
TypeDescription
List<ProcessDocumentResponse>

getResponsesOrBuilder(int index)

public ProcessDocumentResponseOrBuilder getResponsesOrBuilder(int index)

Responses for each individual document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ProcessDocumentResponseOrBuilder

getResponsesOrBuilderList()

public List<? extends ProcessDocumentResponseOrBuilder> getResponsesOrBuilderList()

Responses for each individual document.

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

Returns
TypeDescription
List<? extends com.google.cloud.documentai.v1beta1.ProcessDocumentResponseOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchProcessDocumentsResponse other)

public BatchProcessDocumentsResponse.Builder mergeFrom(BatchProcessDocumentsResponse other)
Parameter
NameDescription
otherBatchProcessDocumentsResponse
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResponses(int index)

public BatchProcessDocumentsResponse.Builder removeResponses(int index)

Responses for each individual document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchProcessDocumentsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1beta1.ProcessDocumentResponse responses = 1;

Parameters
NameDescription
indexint
valueProcessDocumentResponse
Returns
TypeDescription
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.v1beta1.ProcessDocumentResponse responses = 1;

Parameters
NameDescription
indexint
builderForValueProcessDocumentResponse.Builder
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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