Class BatchDeleteDocumentsRequest.Builder (2.48.0)

public static final class BatchDeleteDocumentsRequest.Builder extends GeneratedMessageV3.Builder<BatchDeleteDocumentsRequest.Builder> implements BatchDeleteDocumentsRequestOrBuilder

Protobuf type google.cloud.documentai.v1beta3.BatchDeleteDocumentsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDeleteDocumentsRequest build()
Returns
Type Description
BatchDeleteDocumentsRequest

buildPartial()

public BatchDeleteDocumentsRequest buildPartial()
Returns
Type Description
BatchDeleteDocumentsRequest

clear()

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

clearDataset()

public BatchDeleteDocumentsRequest.Builder clearDataset()

Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchDeleteDocumentsRequest.Builder

This builder for chaining.

clearDatasetDocuments()

public BatchDeleteDocumentsRequest.Builder clearDatasetDocuments()

Required. Dataset documents input. If given filter, all documents satisfying the filter will be deleted. If given documentIds, a maximum of 50 documents can be deleted in a batch. The request will be rejected if more than 50 document_ids are provided.

.google.cloud.documentai.v1beta3.BatchDatasetDocuments dataset_documents = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchDeleteDocumentsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDataset()

public String getDataset()

Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dataset.

getDatasetDocuments()

public BatchDatasetDocuments getDatasetDocuments()

Required. Dataset documents input. If given filter, all documents satisfying the filter will be deleted. If given documentIds, a maximum of 50 documents can be deleted in a batch. The request will be rejected if more than 50 document_ids are provided.

.google.cloud.documentai.v1beta3.BatchDatasetDocuments dataset_documents = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchDatasetDocuments

The datasetDocuments.

getDatasetDocumentsBuilder()

public BatchDatasetDocuments.Builder getDatasetDocumentsBuilder()

Required. Dataset documents input. If given filter, all documents satisfying the filter will be deleted. If given documentIds, a maximum of 50 documents can be deleted in a batch. The request will be rejected if more than 50 document_ids are provided.

.google.cloud.documentai.v1beta3.BatchDatasetDocuments dataset_documents = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchDatasetDocuments.Builder

getDatasetDocumentsOrBuilder()

public BatchDatasetDocumentsOrBuilder getDatasetDocumentsOrBuilder()

Required. Dataset documents input. If given filter, all documents satisfying the filter will be deleted. If given documentIds, a maximum of 50 documents can be deleted in a batch. The request will be rejected if more than 50 document_ids are provided.

.google.cloud.documentai.v1beta3.BatchDatasetDocuments dataset_documents = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchDatasetDocumentsOrBuilder

getDefaultInstanceForType()

public BatchDeleteDocumentsRequest getDefaultInstanceForType()
Returns
Type Description
BatchDeleteDocumentsRequest

getDescriptorForType()

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

hasDatasetDocuments()

public boolean hasDatasetDocuments()

Required. Dataset documents input. If given filter, all documents satisfying the filter will be deleted. If given documentIds, a maximum of 50 documents can be deleted in a batch. The request will be rejected if more than 50 document_ids are provided.

.google.cloud.documentai.v1beta3.BatchDatasetDocuments dataset_documents = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the datasetDocuments field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDatasetDocuments(BatchDatasetDocuments value)

public BatchDeleteDocumentsRequest.Builder mergeDatasetDocuments(BatchDatasetDocuments value)

Required. Dataset documents input. If given filter, all documents satisfying the filter will be deleted. If given documentIds, a maximum of 50 documents can be deleted in a batch. The request will be rejected if more than 50 document_ids are provided.

.google.cloud.documentai.v1beta3.BatchDatasetDocuments dataset_documents = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BatchDatasetDocuments
Returns
Type Description
BatchDeleteDocumentsRequest.Builder

mergeFrom(BatchDeleteDocumentsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataset(String value)

public BatchDeleteDocumentsRequest.Builder setDataset(String value)

Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The dataset to set.

Returns
Type Description
BatchDeleteDocumentsRequest.Builder

This builder for chaining.

setDatasetBytes(ByteString value)

public BatchDeleteDocumentsRequest.Builder setDatasetBytes(ByteString value)

Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for dataset to set.

Returns
Type Description
BatchDeleteDocumentsRequest.Builder

This builder for chaining.

setDatasetDocuments(BatchDatasetDocuments value)

public BatchDeleteDocumentsRequest.Builder setDatasetDocuments(BatchDatasetDocuments value)

Required. Dataset documents input. If given filter, all documents satisfying the filter will be deleted. If given documentIds, a maximum of 50 documents can be deleted in a batch. The request will be rejected if more than 50 document_ids are provided.

.google.cloud.documentai.v1beta3.BatchDatasetDocuments dataset_documents = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BatchDatasetDocuments
Returns
Type Description
BatchDeleteDocumentsRequest.Builder

setDatasetDocuments(BatchDatasetDocuments.Builder builderForValue)

public BatchDeleteDocumentsRequest.Builder setDatasetDocuments(BatchDatasetDocuments.Builder builderForValue)

Required. Dataset documents input. If given filter, all documents satisfying the filter will be deleted. If given documentIds, a maximum of 50 documents can be deleted in a batch. The request will be rejected if more than 50 document_ids are provided.

.google.cloud.documentai.v1beta3.BatchDatasetDocuments dataset_documents = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BatchDatasetDocuments.Builder
Returns
Type Description
BatchDeleteDocumentsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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