Class BatchDeleteDocumentsRequest.Builder (2.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDeleteDocumentsRequest build()
Returns
TypeDescription
BatchDeleteDocumentsRequest

buildPartial()

public BatchDeleteDocumentsRequest buildPartial()
Returns
TypeDescription
BatchDeleteDocumentsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public BatchDeleteDocumentsRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BatchDatasetDocumentsOrBuilder

getDefaultInstanceForType()

public BatchDeleteDocumentsRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchDeleteDocumentsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the datasetDocuments field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(BatchDeleteDocumentsRequest other)

public BatchDeleteDocumentsRequest.Builder mergeFrom(BatchDeleteDocumentsRequest other)
Parameter
NameDescription
otherBatchDeleteDocumentsRequest
Returns
TypeDescription
BatchDeleteDocumentsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchDeleteDocumentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The dataset to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for dataset to set.

Returns
TypeDescription
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
NameDescription
valueBatchDatasetDocuments
Returns
TypeDescription
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
NameDescription
builderForValueBatchDatasetDocuments.Builder
Returns
TypeDescription
BatchDeleteDocumentsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchDeleteDocumentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchDeleteDocumentsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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