Class BatchDeleteDocumentsMetadata.Builder (2.59.0)

public static final class BatchDeleteDocumentsMetadata.Builder extends GeneratedMessageV3.Builder<BatchDeleteDocumentsMetadata.Builder> implements BatchDeleteDocumentsMetadataOrBuilder

Protobuf type google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata

Static Methods

getDescriptor()

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

Methods

addAllIndividualBatchDeleteStatuses(Iterable<? extends BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus> values)

public BatchDeleteDocumentsMetadata.Builder addAllIndividualBatchDeleteStatuses(Iterable<? extends BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus> values)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus>
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

addIndividualBatchDeleteStatuses(BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus value)

public BatchDeleteDocumentsMetadata.Builder addIndividualBatchDeleteStatuses(BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus value)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameter
Name Description
value BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

addIndividualBatchDeleteStatuses(BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder builderForValue)

public BatchDeleteDocumentsMetadata.Builder addIndividualBatchDeleteStatuses(BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder builderForValue)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameter
Name Description
builderForValue BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

addIndividualBatchDeleteStatuses(int index, BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus value)

public BatchDeleteDocumentsMetadata.Builder addIndividualBatchDeleteStatuses(int index, BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus value)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameters
Name Description
index int
value BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

addIndividualBatchDeleteStatuses(int index, BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder builderForValue)

public BatchDeleteDocumentsMetadata.Builder addIndividualBatchDeleteStatuses(int index, BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder builderForValue)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameters
Name Description
index int
builderForValue BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

addIndividualBatchDeleteStatusesBuilder()

public BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder addIndividualBatchDeleteStatusesBuilder()

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Returns
Type Description
BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder

addIndividualBatchDeleteStatusesBuilder(int index)

public BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder addIndividualBatchDeleteStatusesBuilder(int index)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDeleteDocumentsMetadata build()
Returns
Type Description
BatchDeleteDocumentsMetadata

buildPartial()

public BatchDeleteDocumentsMetadata buildPartial()
Returns
Type Description
BatchDeleteDocumentsMetadata

clear()

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

clearCommonMetadata()

public BatchDeleteDocumentsMetadata.Builder clearCommonMetadata()

The basic metadata of the long-running operation.

.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;

Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

clearErrorDocumentCount()

public BatchDeleteDocumentsMetadata.Builder clearErrorDocumentCount()

Total number of documents that failed to be deleted in storage.

int32 error_document_count = 4;

Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIndividualBatchDeleteStatuses()

public BatchDeleteDocumentsMetadata.Builder clearIndividualBatchDeleteStatuses()

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalDocumentCount()

public BatchDeleteDocumentsMetadata.Builder clearTotalDocumentCount()

Total number of documents deleting from dataset.

int32 total_document_count = 3;

Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

This builder for chaining.

clone()

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

getCommonMetadata()

public CommonOperationMetadata getCommonMetadata()

The basic metadata of the long-running operation.

.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;

Returns
Type Description
CommonOperationMetadata

The commonMetadata.

getCommonMetadataBuilder()

public CommonOperationMetadata.Builder getCommonMetadataBuilder()

The basic metadata of the long-running operation.

.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;

Returns
Type Description
CommonOperationMetadata.Builder

getCommonMetadataOrBuilder()

public CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder()

The basic metadata of the long-running operation.

.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;

Returns
Type Description
CommonOperationMetadataOrBuilder

getDefaultInstanceForType()

public BatchDeleteDocumentsMetadata getDefaultInstanceForType()
Returns
Type Description
BatchDeleteDocumentsMetadata

getDescriptorForType()

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

getErrorDocumentCount()

public int getErrorDocumentCount()

Total number of documents that failed to be deleted in storage.

int32 error_document_count = 4;

Returns
Type Description
int

The errorDocumentCount.

getIndividualBatchDeleteStatuses(int index)

public BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus getIndividualBatchDeleteStatuses(int index)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus

getIndividualBatchDeleteStatusesBuilder(int index)

public BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder getIndividualBatchDeleteStatusesBuilder(int index)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder

getIndividualBatchDeleteStatusesBuilderList()

public List<BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder> getIndividualBatchDeleteStatusesBuilderList()

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Returns
Type Description
List<Builder>

getIndividualBatchDeleteStatusesCount()

public int getIndividualBatchDeleteStatusesCount()

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Returns
Type Description
int

getIndividualBatchDeleteStatusesList()

public List<BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus> getIndividualBatchDeleteStatusesList()

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Returns
Type Description
List<IndividualBatchDeleteStatus>

getIndividualBatchDeleteStatusesOrBuilder(int index)

public BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatusOrBuilder getIndividualBatchDeleteStatusesOrBuilder(int index)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatusOrBuilder

getIndividualBatchDeleteStatusesOrBuilderList()

public List<? extends BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatusOrBuilder> getIndividualBatchDeleteStatusesOrBuilderList()

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Returns
Type Description
List<? extends com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatusOrBuilder>

getTotalDocumentCount()

public int getTotalDocumentCount()

Total number of documents deleting from dataset.

int32 total_document_count = 3;

Returns
Type Description
int

The totalDocumentCount.

hasCommonMetadata()

public boolean hasCommonMetadata()

The basic metadata of the long-running operation.

.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;

Returns
Type Description
boolean

Whether the commonMetadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCommonMetadata(CommonOperationMetadata value)

public BatchDeleteDocumentsMetadata.Builder mergeCommonMetadata(CommonOperationMetadata value)

The basic metadata of the long-running operation.

.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;

Parameter
Name Description
value CommonOperationMetadata
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

mergeFrom(BatchDeleteDocumentsMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeIndividualBatchDeleteStatuses(int index)

public BatchDeleteDocumentsMetadata.Builder removeIndividualBatchDeleteStatuses(int index)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

setCommonMetadata(CommonOperationMetadata value)

public BatchDeleteDocumentsMetadata.Builder setCommonMetadata(CommonOperationMetadata value)

The basic metadata of the long-running operation.

.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;

Parameter
Name Description
value CommonOperationMetadata
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

setCommonMetadata(CommonOperationMetadata.Builder builderForValue)

public BatchDeleteDocumentsMetadata.Builder setCommonMetadata(CommonOperationMetadata.Builder builderForValue)

The basic metadata of the long-running operation.

.google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;

Parameter
Name Description
builderForValue CommonOperationMetadata.Builder
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

setErrorDocumentCount(int value)

public BatchDeleteDocumentsMetadata.Builder setErrorDocumentCount(int value)

Total number of documents that failed to be deleted in storage.

int32 error_document_count = 4;

Parameter
Name Description
value int

The errorDocumentCount to set.

Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIndividualBatchDeleteStatuses(int index, BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus value)

public BatchDeleteDocumentsMetadata.Builder setIndividualBatchDeleteStatuses(int index, BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus value)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameters
Name Description
index int
value BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

setIndividualBatchDeleteStatuses(int index, BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder builderForValue)

public BatchDeleteDocumentsMetadata.Builder setIndividualBatchDeleteStatuses(int index, BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder builderForValue)

The list of response details of each document.

repeated .google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus individual_batch_delete_statuses = 2;

Parameters
Name Description
index int
builderForValue BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder
Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

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

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

setTotalDocumentCount(int value)

public BatchDeleteDocumentsMetadata.Builder setTotalDocumentCount(int value)

Total number of documents deleting from dataset.

int32 total_document_count = 3;

Parameter
Name Description
value int

The totalDocumentCount to set.

Returns
Type Description
BatchDeleteDocumentsMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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