Package com.google.firestore.admin.v1
Class BulkDeleteDocumentsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BulkDeleteDocumentsRequest.Builder>
com.google.firestore.admin.v1.BulkDeleteDocumentsRequest.Builder
- All Implemented Interfaces:
BulkDeleteDocumentsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BulkDeleteDocumentsRequest
public static final class BulkDeleteDocumentsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BulkDeleteDocumentsRequest.Builder>
implements BulkDeleteDocumentsRequestOrBuilder
The request for [FirestoreAdmin.BulkDeleteDocuments][google.firestore.admin.v1.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][google.firestore.admin.v1.FirestoreAdmin.DeleteDatabase] instead.Protobuf type
google.firestore.admin.v1.BulkDeleteDocumentsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllCollectionIds(Iterable<String> values) Optional.addAllNamespaceIds(Iterable<String> values) Optional.addCollectionIds(String value) Optional.addCollectionIdsBytes(com.google.protobuf.ByteString value) Optional.addNamespaceIds(String value) Optional.addNamespaceIdsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Required.Optional.getCollectionIds(int index) Optional.com.google.protobuf.ByteStringgetCollectionIdsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.getNamespaceIds(int index) Optional.com.google.protobuf.ByteStringgetNamespaceIdsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCollectionIds(int index, String value) Optional.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setNamespaceIds(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BulkDeleteDocumentsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BulkDeleteDocumentsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BulkDeleteDocumentsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BulkDeleteDocumentsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BulkDeleteDocumentsRequest.Builder>
-
mergeFrom
public BulkDeleteDocumentsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BulkDeleteDocumentsRequest.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getNamein interfaceBulkDeleteDocumentsRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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) = { ... }- Specified by:
getNameBytesin interfaceBulkDeleteDocumentsRequestOrBuilder- Returns:
- The bytes for name.
-
setName
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) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getCollectionIdsList
public com.google.protobuf.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];- Specified by:
getCollectionIdsListin interfaceBulkDeleteDocumentsRequestOrBuilder- Returns:
- A list containing the collectionIds.
-
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];- Specified by:
getCollectionIdsCountin interfaceBulkDeleteDocumentsRequestOrBuilder- Returns:
- The count of collectionIds.
-
getCollectionIds
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];- Specified by:
getCollectionIdsin interfaceBulkDeleteDocumentsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The collectionIds at the given index.
-
getCollectionIdsBytes
public com.google.protobuf.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];- Specified by:
getCollectionIdsBytesin interfaceBulkDeleteDocumentsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the collectionIds at the given index.
-
setCollectionIds
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:
index- The index to set the value at.value- The collectionIds to set.- Returns:
- This builder for chaining.
-
addCollectionIds
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:
value- The collectionIds to add.- Returns:
- This builder for chaining.
-
addAllCollectionIds
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:
values- The collectionIds to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addCollectionIdsBytes
public BulkDeleteDocumentsRequest.Builder addCollectionIdsBytes(com.google.protobuf.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];- Parameters:
value- The bytes of the collectionIds to add.- Returns:
- This builder for chaining.
-
getNamespaceIdsList
public com.google.protobuf.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];- Specified by:
getNamespaceIdsListin interfaceBulkDeleteDocumentsRequestOrBuilder- Returns:
- A list containing the namespaceIds.
-
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];- Specified by:
getNamespaceIdsCountin interfaceBulkDeleteDocumentsRequestOrBuilder- Returns:
- The count of namespaceIds.
-
getNamespaceIds
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];- Specified by:
getNamespaceIdsin interfaceBulkDeleteDocumentsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The namespaceIds at the given index.
-
getNamespaceIdsBytes
public com.google.protobuf.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];- Specified by:
getNamespaceIdsBytesin interfaceBulkDeleteDocumentsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the namespaceIds at the given index.
-
setNamespaceIds
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:
index- The index to set the value at.value- The namespaceIds to set.- Returns:
- This builder for chaining.
-
addNamespaceIds
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:
value- The namespaceIds to add.- Returns:
- This builder for chaining.
-
addAllNamespaceIds
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:
values- The namespaceIds to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addNamespaceIdsBytes
public BulkDeleteDocumentsRequest.Builder addNamespaceIdsBytes(com.google.protobuf.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];- Parameters:
value- The bytes of the namespaceIds to add.- Returns:
- This builder for chaining.
-