public static final class BulkDeleteDocumentsRequest.Builder extends GeneratedMessageV3.Builder<BulkDeleteDocumentsRequest.Builder> implements BulkDeleteDocumentsRequestOrBuilder
The request for FirestoreAdmin.BulkDeleteDocuments.
When both collection_ids and namespace_ids are set, only documents satisfying both conditions will be deleted.
Requests with namespace_ids and collection_ids both empty will be rejected. Please use FirestoreAdmin.DeleteDatabase instead.
Protobuf type google.firestore.admin.v1.BulkDeleteDocumentsRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BulkDeleteDocumentsRequest.BuilderImplements
BulkDeleteDocumentsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllCollectionIds(Iterable<String> values)
public BulkDeleteDocumentsRequest.Builder addAllCollectionIds(Iterable<String> values)
Optional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The collectionIds to add. |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
addAllNamespaceIds(Iterable<String> values)
public BulkDeleteDocumentsRequest.Builder addAllNamespaceIds(Iterable<String> values)
Optional. Namespaces to delete.
An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them.
Each namespace in this list must be unique.
repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The namespaceIds to add. |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
addCollectionIds(String value)
public BulkDeleteDocumentsRequest.Builder addCollectionIds(String value)
Optional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The collectionIds to add. |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
addCollectionIdsBytes(ByteString value)
public BulkDeleteDocumentsRequest.Builder addCollectionIdsBytes(ByteString value)
Optional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the collectionIds to add. |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
addNamespaceIds(String value)
public BulkDeleteDocumentsRequest.Builder addNamespaceIds(String value)
Optional. Namespaces to delete.
An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them.
Each namespace in this list must be unique.
repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The namespaceIds to add. |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
addNamespaceIdsBytes(ByteString value)
public BulkDeleteDocumentsRequest.Builder addNamespaceIdsBytes(ByteString value)
Optional. Namespaces to delete.
An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them.
Each namespace in this list must be unique.
repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the namespaceIds to add. |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BulkDeleteDocumentsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
build()
public BulkDeleteDocumentsRequest build()
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest |
buildPartial()
public BulkDeleteDocumentsRequest buildPartial()
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest |
clear()
public BulkDeleteDocumentsRequest.Builder clear()
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
clearCollectionIds()
public BulkDeleteDocumentsRequest.Builder clearCollectionIds()
Optional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BulkDeleteDocumentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
clearName()
public BulkDeleteDocumentsRequest.Builder clearName()
Required. Database to operate. Should be of the form:
projects/{project_id}/databases/{database_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
clearNamespaceIds()
public BulkDeleteDocumentsRequest.Builder clearNamespaceIds()
Optional. Namespaces to delete.
An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them.
Each namespace in this list must be unique.
repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public BulkDeleteDocumentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
clone()
public BulkDeleteDocumentsRequest.Builder clone()
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
getCollectionIds(int index)
public String getCollectionIds(int index)
Optional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The collectionIds at the given index. |
getCollectionIdsBytes(int index)
public ByteString getCollectionIdsBytes(int index)
Optional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the collectionIds at the given index. |
getCollectionIdsCount()
public int getCollectionIdsCount()
Optional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The count of collectionIds. |
getCollectionIdsList()
public ProtocolStringList getCollectionIdsList()
Optional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the collectionIds. |
getDefaultInstanceForType()
public BulkDeleteDocumentsRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getName()
public String getName()
Required. Database to operate. Should be of the form:
projects/{project_id}/databases/{database_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Required. Database to operate. Should be of the form:
projects/{project_id}/databases/{database_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getNamespaceIds(int index)
public String getNamespaceIds(int index)
Optional. Namespaces to delete.
An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them.
Each namespace in this list must be unique.
repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The namespaceIds at the given index. |
getNamespaceIdsBytes(int index)
public ByteString getNamespaceIdsBytes(int index)
Optional. Namespaces to delete.
An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them.
Each namespace in this list must be unique.
repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the namespaceIds at the given index. |
getNamespaceIdsCount()
public int getNamespaceIdsCount()
Optional. Namespaces to delete.
An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them.
Each namespace in this list must be unique.
repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The count of namespaceIds. |
getNamespaceIdsList()
public ProtocolStringList getNamespaceIdsList()
Optional. Namespaces to delete.
An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them.
Each namespace in this list must be unique.
repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the namespaceIds. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(BulkDeleteDocumentsRequest other)
public BulkDeleteDocumentsRequest.Builder mergeFrom(BulkDeleteDocumentsRequest other)
Parameter | |
---|---|
Name | Description |
other |
BulkDeleteDocumentsRequest |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BulkDeleteDocumentsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public BulkDeleteDocumentsRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BulkDeleteDocumentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
setCollectionIds(int index, String value)
public BulkDeleteDocumentsRequest.Builder setCollectionIds(int index, String value)
Optional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The collectionIds to set. |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BulkDeleteDocumentsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
setName(String value)
public BulkDeleteDocumentsRequest.Builder setName(String value)
Required. Database to operate. Should be of the form:
projects/{project_id}/databases/{database_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public BulkDeleteDocumentsRequest.Builder setNameBytes(ByteString value)
Required. Database to operate. Should be of the form:
projects/{project_id}/databases/{database_id}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
setNamespaceIds(int index, String value)
public BulkDeleteDocumentsRequest.Builder setNamespaceIds(int index, String value)
Optional. Namespaces to delete.
An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them.
Each namespace in this list must be unique.
repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The namespaceIds to set. |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BulkDeleteDocumentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final BulkDeleteDocumentsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BulkDeleteDocumentsRequest.Builder |