Class BatchDeleteDocumentsMetadata.Builder (2.32.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus>
Returns
TypeDescription
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
NameDescription
valueBatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
Returns
TypeDescription
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
NameDescription
builderForValueBatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDeleteDocumentsMetadata build()
Returns
TypeDescription
BatchDeleteDocumentsMetadata

buildPartial()

public BatchDeleteDocumentsMetadata buildPartial()
Returns
TypeDescription
BatchDeleteDocumentsMetadata

clear()

public BatchDeleteDocumentsMetadata.Builder clear()
Returns
TypeDescription
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
TypeDescription
BatchDeleteDocumentsMetadata.Builder

clearErrorDocumentCount()

public BatchDeleteDocumentsMetadata.Builder clearErrorDocumentCount()

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

int32 error_document_count = 4;

Returns
TypeDescription
BatchDeleteDocumentsMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BatchDeleteDocumentsMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
BatchDeleteDocumentsMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalDocumentCount()

public BatchDeleteDocumentsMetadata.Builder clearTotalDocumentCount()

Total number of documents deleting from dataset.

int32 total_document_count = 3;

Returns
TypeDescription
BatchDeleteDocumentsMetadata.Builder

This builder for chaining.

clone()

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

getCommonMetadata()

public CommonOperationMetadata getCommonMetadata()

The basic metadata of the long-running operation.

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

Returns
TypeDescription
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
TypeDescription
CommonOperationMetadata.Builder

getCommonMetadataOrBuilder()

public CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder()

The basic metadata of the long-running operation.

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

Returns
TypeDescription
CommonOperationMetadataOrBuilder

getDefaultInstanceForType()

public BatchDeleteDocumentsMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchDeleteDocumentsMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorDocumentCount()

public int getErrorDocumentCount()

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

int32 error_document_count = 4;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The totalDocumentCount.

hasCommonMetadata()

public boolean hasCommonMetadata()

The basic metadata of the long-running operation.

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

Returns
TypeDescription
boolean

Whether the commonMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCommonOperationMetadata
Returns
TypeDescription
BatchDeleteDocumentsMetadata.Builder

mergeFrom(BatchDeleteDocumentsMetadata other)

public BatchDeleteDocumentsMetadata.Builder mergeFrom(BatchDeleteDocumentsMetadata other)
Parameter
NameDescription
otherBatchDeleteDocumentsMetadata
Returns
TypeDescription
BatchDeleteDocumentsMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchDeleteDocumentsMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueCommonOperationMetadata
Returns
TypeDescription
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
NameDescription
builderForValueCommonOperationMetadata.Builder
Returns
TypeDescription
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
NameDescription
valueint

The errorDocumentCount to set.

Returns
TypeDescription
BatchDeleteDocumentsMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchDeleteDocumentsMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The totalDocumentCount to set.

Returns
TypeDescription
BatchDeleteDocumentsMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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