public static final class FirestoreAdminGrpc.FirestoreAdminFutureStub extends io.grpc.stub.AbstractStub<FirestoreAdminGrpc.FirestoreAdminFutureStub>
Operations are created by service `FirestoreAdmin`, but are accessed via service `google.longrunning.Operations`.
| Modifier and Type | Method and Description |
|---|---|
protected FirestoreAdminGrpc.FirestoreAdminFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
createIndex(CreateIndexRequest request)
Creates a composite index.
|
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> |
deleteIndex(DeleteIndexRequest request)
Deletes a composite index.
|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
exportDocuments(ExportDocumentsRequest request)
Exports a copy of all or a subset of documents from Google Cloud Firestore
to another storage system, such as Google Cloud Storage.
|
com.google.common.util.concurrent.ListenableFuture<Field> |
getField(GetFieldRequest request)
Gets the metadata and configuration for a Field.
|
com.google.common.util.concurrent.ListenableFuture<Index> |
getIndex(GetIndexRequest request)
Gets a composite index.
|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
importDocuments(ImportDocumentsRequest request)
Imports documents into Google Cloud Firestore.
|
com.google.common.util.concurrent.ListenableFuture<ListFieldsResponse> |
listFields(ListFieldsRequest request)
Lists the field configuration and metadata for this database.
|
com.google.common.util.concurrent.ListenableFuture<ListIndexesResponse> |
listIndexes(ListIndexesRequest request)
Lists composite indexes.
|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
updateField(UpdateFieldRequest request)
Updates a field configuration.
|
getCallOptions, getChannel, newStub, newStub, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReadyprotected FirestoreAdminGrpc.FirestoreAdminFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<FirestoreAdminGrpc.FirestoreAdminFutureStub>public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> createIndex(CreateIndexRequest request)
Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to track the status of the creation. The metadata for the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
public com.google.common.util.concurrent.ListenableFuture<ListIndexesResponse> listIndexes(ListIndexesRequest request)
Lists composite indexes.
public com.google.common.util.concurrent.ListenableFuture<Index> getIndex(GetIndexRequest request)
Gets a composite index.
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteIndex(DeleteIndexRequest request)
Deletes a composite index.
public com.google.common.util.concurrent.ListenableFuture<Field> getField(GetFieldRequest request)
Gets the metadata and configuration for a Field.
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> updateField(UpdateFieldRequest request)
Updates a field configuration. Currently, field updates apply only to
single field index configuration. However, calls to
[FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
changing any configuration that the caller isn't aware of. The field mask
should be specified as: `{ paths: "index_config" }`.
This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
track the status of the field update. The metadata for
the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
To configure the default field settings for the database, use
the special `Field` with resource name:
`projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
public com.google.common.util.concurrent.ListenableFuture<ListFieldsResponse> listFields(ListFieldsRequest request)
Lists the field configuration and metadata for this database. Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields that have been explicitly overridden. To issue this query, call [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to `indexConfig.usesAncestorConfig:false`.
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> exportDocuments(ExportDocumentsRequest request)
Exports a copy of all or a subset of documents from Google Cloud Firestore to another storage system, such as Google Cloud Storage. Recent updates to documents may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> importDocuments(ImportDocumentsRequest request)
Imports documents into Google Cloud Firestore. Existing documents with the same name are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportDocuments operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Firestore.
Copyright © 2020 Google LLC. All rights reserved.