com.google.firestore.admin.v1.FirestoreAdminGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-google-cloud-firestore-admin-v1 Show documentation
Show all versions of grpc-google-cloud-firestore-admin-v1 Show documentation
GRPC library for grpc-google-cloud-firestore-admin-v1
The newest version!
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.firestore.admin.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
*
*
* The Cloud Firestore Admin API.
* This API provides several administrative services for Cloud Firestore.
* Project, Database, Namespace, Collection, Collection Group, and Document are
* used as defined in the Google Cloud Firestore API.
* Operation: An Operation represents work being performed in the background.
* The index service manages Cloud Firestore indexes.
* Index creation is performed asynchronously.
* An Operation resource is created for each such asynchronous operation.
* The state of the operation (including any errors encountered)
* may be queried via the Operation resource.
* The Operations collection provides a record of actions performed for the
* specified Project (including any Operations in progress). Operations are not
* created directly but through calls on other collections or resources.
* An Operation that is done may be deleted so that it is no longer listed as
* part of the Operation collection. Operations are garbage collected after
* 30 days. By default, ListOperations will only return in progress and failed
* operations. To list completed operation, issue a ListOperations request with
* the filter `done: true`.
* Operations are created by service `FirestoreAdmin`, but are accessed via
* service `google.longrunning.Operations`.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/firestore/admin/v1/firestore_admin.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class FirestoreAdminGrpc {
private FirestoreAdminGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.firestore.admin.v1.FirestoreAdmin";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation>
getCreateIndexMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateIndex",
requestType = com.google.firestore.admin.v1.CreateIndexRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation>
getCreateIndexMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation>
getCreateIndexMethod;
if ((getCreateIndexMethod = FirestoreAdminGrpc.getCreateIndexMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getCreateIndexMethod = FirestoreAdminGrpc.getCreateIndexMethod) == null) {
FirestoreAdminGrpc.getCreateIndexMethod =
getCreateIndexMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateIndex"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.CreateIndexRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("CreateIndex"))
.build();
}
}
}
return getCreateIndexMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListIndexesRequest,
com.google.firestore.admin.v1.ListIndexesResponse>
getListIndexesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListIndexes",
requestType = com.google.firestore.admin.v1.ListIndexesRequest.class,
responseType = com.google.firestore.admin.v1.ListIndexesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListIndexesRequest,
com.google.firestore.admin.v1.ListIndexesResponse>
getListIndexesMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListIndexesRequest,
com.google.firestore.admin.v1.ListIndexesResponse>
getListIndexesMethod;
if ((getListIndexesMethod = FirestoreAdminGrpc.getListIndexesMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getListIndexesMethod = FirestoreAdminGrpc.getListIndexesMethod) == null) {
FirestoreAdminGrpc.getListIndexesMethod =
getListIndexesMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListIndexes"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ListIndexesRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ListIndexesResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("ListIndexes"))
.build();
}
}
}
return getListIndexesMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetIndexRequest, com.google.firestore.admin.v1.Index>
getGetIndexMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetIndex",
requestType = com.google.firestore.admin.v1.GetIndexRequest.class,
responseType = com.google.firestore.admin.v1.Index.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetIndexRequest, com.google.firestore.admin.v1.Index>
getGetIndexMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetIndexRequest, com.google.firestore.admin.v1.Index>
getGetIndexMethod;
if ((getGetIndexMethod = FirestoreAdminGrpc.getGetIndexMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getGetIndexMethod = FirestoreAdminGrpc.getGetIndexMethod) == null) {
FirestoreAdminGrpc.getGetIndexMethod =
getGetIndexMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIndex"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.GetIndexRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.Index.getDefaultInstance()))
.setSchemaDescriptor(new FirestoreAdminMethodDescriptorSupplier("GetIndex"))
.build();
}
}
}
return getGetIndexMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteIndexRequest, com.google.protobuf.Empty>
getDeleteIndexMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteIndex",
requestType = com.google.firestore.admin.v1.DeleteIndexRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteIndexRequest, com.google.protobuf.Empty>
getDeleteIndexMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteIndexRequest, com.google.protobuf.Empty>
getDeleteIndexMethod;
if ((getDeleteIndexMethod = FirestoreAdminGrpc.getDeleteIndexMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getDeleteIndexMethod = FirestoreAdminGrpc.getDeleteIndexMethod) == null) {
FirestoreAdminGrpc.getDeleteIndexMethod =
getDeleteIndexMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteIndex"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.DeleteIndexRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("DeleteIndex"))
.build();
}
}
}
return getDeleteIndexMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetFieldRequest, com.google.firestore.admin.v1.Field>
getGetFieldMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetField",
requestType = com.google.firestore.admin.v1.GetFieldRequest.class,
responseType = com.google.firestore.admin.v1.Field.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetFieldRequest, com.google.firestore.admin.v1.Field>
getGetFieldMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetFieldRequest, com.google.firestore.admin.v1.Field>
getGetFieldMethod;
if ((getGetFieldMethod = FirestoreAdminGrpc.getGetFieldMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getGetFieldMethod = FirestoreAdminGrpc.getGetFieldMethod) == null) {
FirestoreAdminGrpc.getGetFieldMethod =
getGetFieldMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetField"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.GetFieldRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.Field.getDefaultInstance()))
.setSchemaDescriptor(new FirestoreAdminMethodDescriptorSupplier("GetField"))
.build();
}
}
}
return getGetFieldMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.UpdateFieldRequest, com.google.longrunning.Operation>
getUpdateFieldMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateField",
requestType = com.google.firestore.admin.v1.UpdateFieldRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.UpdateFieldRequest, com.google.longrunning.Operation>
getUpdateFieldMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.UpdateFieldRequest, com.google.longrunning.Operation>
getUpdateFieldMethod;
if ((getUpdateFieldMethod = FirestoreAdminGrpc.getUpdateFieldMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getUpdateFieldMethod = FirestoreAdminGrpc.getUpdateFieldMethod) == null) {
FirestoreAdminGrpc.getUpdateFieldMethod =
getUpdateFieldMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateField"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.UpdateFieldRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("UpdateField"))
.build();
}
}
}
return getUpdateFieldMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListFieldsRequest,
com.google.firestore.admin.v1.ListFieldsResponse>
getListFieldsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListFields",
requestType = com.google.firestore.admin.v1.ListFieldsRequest.class,
responseType = com.google.firestore.admin.v1.ListFieldsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListFieldsRequest,
com.google.firestore.admin.v1.ListFieldsResponse>
getListFieldsMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListFieldsRequest,
com.google.firestore.admin.v1.ListFieldsResponse>
getListFieldsMethod;
if ((getListFieldsMethod = FirestoreAdminGrpc.getListFieldsMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getListFieldsMethod = FirestoreAdminGrpc.getListFieldsMethod) == null) {
FirestoreAdminGrpc.getListFieldsMethod =
getListFieldsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFields"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ListFieldsRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ListFieldsResponse
.getDefaultInstance()))
.setSchemaDescriptor(new FirestoreAdminMethodDescriptorSupplier("ListFields"))
.build();
}
}
}
return getListFieldsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ExportDocumentsRequest, com.google.longrunning.Operation>
getExportDocumentsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ExportDocuments",
requestType = com.google.firestore.admin.v1.ExportDocumentsRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ExportDocumentsRequest, com.google.longrunning.Operation>
getExportDocumentsMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ExportDocumentsRequest, com.google.longrunning.Operation>
getExportDocumentsMethod;
if ((getExportDocumentsMethod = FirestoreAdminGrpc.getExportDocumentsMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getExportDocumentsMethod = FirestoreAdminGrpc.getExportDocumentsMethod) == null) {
FirestoreAdminGrpc.getExportDocumentsMethod =
getExportDocumentsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportDocuments"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ExportDocumentsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("ExportDocuments"))
.build();
}
}
}
return getExportDocumentsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ImportDocumentsRequest, com.google.longrunning.Operation>
getImportDocumentsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ImportDocuments",
requestType = com.google.firestore.admin.v1.ImportDocumentsRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ImportDocumentsRequest, com.google.longrunning.Operation>
getImportDocumentsMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ImportDocumentsRequest, com.google.longrunning.Operation>
getImportDocumentsMethod;
if ((getImportDocumentsMethod = FirestoreAdminGrpc.getImportDocumentsMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getImportDocumentsMethod = FirestoreAdminGrpc.getImportDocumentsMethod) == null) {
FirestoreAdminGrpc.getImportDocumentsMethod =
getImportDocumentsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportDocuments"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ImportDocumentsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("ImportDocuments"))
.build();
}
}
}
return getImportDocumentsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.BulkDeleteDocumentsRequest,
com.google.longrunning.Operation>
getBulkDeleteDocumentsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BulkDeleteDocuments",
requestType = com.google.firestore.admin.v1.BulkDeleteDocumentsRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.BulkDeleteDocumentsRequest,
com.google.longrunning.Operation>
getBulkDeleteDocumentsMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.BulkDeleteDocumentsRequest,
com.google.longrunning.Operation>
getBulkDeleteDocumentsMethod;
if ((getBulkDeleteDocumentsMethod = FirestoreAdminGrpc.getBulkDeleteDocumentsMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getBulkDeleteDocumentsMethod = FirestoreAdminGrpc.getBulkDeleteDocumentsMethod)
== null) {
FirestoreAdminGrpc.getBulkDeleteDocumentsMethod =
getBulkDeleteDocumentsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "BulkDeleteDocuments"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.BulkDeleteDocumentsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("BulkDeleteDocuments"))
.build();
}
}
}
return getBulkDeleteDocumentsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.CreateDatabaseRequest, com.google.longrunning.Operation>
getCreateDatabaseMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateDatabase",
requestType = com.google.firestore.admin.v1.CreateDatabaseRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.CreateDatabaseRequest, com.google.longrunning.Operation>
getCreateDatabaseMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.CreateDatabaseRequest, com.google.longrunning.Operation>
getCreateDatabaseMethod;
if ((getCreateDatabaseMethod = FirestoreAdminGrpc.getCreateDatabaseMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getCreateDatabaseMethod = FirestoreAdminGrpc.getCreateDatabaseMethod) == null) {
FirestoreAdminGrpc.getCreateDatabaseMethod =
getCreateDatabaseMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDatabase"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.CreateDatabaseRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("CreateDatabase"))
.build();
}
}
}
return getCreateDatabaseMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetDatabaseRequest, com.google.firestore.admin.v1.Database>
getGetDatabaseMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetDatabase",
requestType = com.google.firestore.admin.v1.GetDatabaseRequest.class,
responseType = com.google.firestore.admin.v1.Database.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetDatabaseRequest, com.google.firestore.admin.v1.Database>
getGetDatabaseMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetDatabaseRequest,
com.google.firestore.admin.v1.Database>
getGetDatabaseMethod;
if ((getGetDatabaseMethod = FirestoreAdminGrpc.getGetDatabaseMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getGetDatabaseMethod = FirestoreAdminGrpc.getGetDatabaseMethod) == null) {
FirestoreAdminGrpc.getGetDatabaseMethod =
getGetDatabaseMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDatabase"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.GetDatabaseRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.Database.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("GetDatabase"))
.build();
}
}
}
return getGetDatabaseMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListDatabasesRequest,
com.google.firestore.admin.v1.ListDatabasesResponse>
getListDatabasesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListDatabases",
requestType = com.google.firestore.admin.v1.ListDatabasesRequest.class,
responseType = com.google.firestore.admin.v1.ListDatabasesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListDatabasesRequest,
com.google.firestore.admin.v1.ListDatabasesResponse>
getListDatabasesMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListDatabasesRequest,
com.google.firestore.admin.v1.ListDatabasesResponse>
getListDatabasesMethod;
if ((getListDatabasesMethod = FirestoreAdminGrpc.getListDatabasesMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getListDatabasesMethod = FirestoreAdminGrpc.getListDatabasesMethod) == null) {
FirestoreAdminGrpc.getListDatabasesMethod =
getListDatabasesMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatabases"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ListDatabasesRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ListDatabasesResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("ListDatabases"))
.build();
}
}
}
return getListDatabasesMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.UpdateDatabaseRequest, com.google.longrunning.Operation>
getUpdateDatabaseMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateDatabase",
requestType = com.google.firestore.admin.v1.UpdateDatabaseRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.UpdateDatabaseRequest, com.google.longrunning.Operation>
getUpdateDatabaseMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.UpdateDatabaseRequest, com.google.longrunning.Operation>
getUpdateDatabaseMethod;
if ((getUpdateDatabaseMethod = FirestoreAdminGrpc.getUpdateDatabaseMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getUpdateDatabaseMethod = FirestoreAdminGrpc.getUpdateDatabaseMethod) == null) {
FirestoreAdminGrpc.getUpdateDatabaseMethod =
getUpdateDatabaseMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDatabase"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.UpdateDatabaseRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("UpdateDatabase"))
.build();
}
}
}
return getUpdateDatabaseMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteDatabaseRequest, com.google.longrunning.Operation>
getDeleteDatabaseMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteDatabase",
requestType = com.google.firestore.admin.v1.DeleteDatabaseRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteDatabaseRequest, com.google.longrunning.Operation>
getDeleteDatabaseMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteDatabaseRequest, com.google.longrunning.Operation>
getDeleteDatabaseMethod;
if ((getDeleteDatabaseMethod = FirestoreAdminGrpc.getDeleteDatabaseMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getDeleteDatabaseMethod = FirestoreAdminGrpc.getDeleteDatabaseMethod) == null) {
FirestoreAdminGrpc.getDeleteDatabaseMethod =
getDeleteDatabaseMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDatabase"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.DeleteDatabaseRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("DeleteDatabase"))
.build();
}
}
}
return getDeleteDatabaseMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetBackupRequest, com.google.firestore.admin.v1.Backup>
getGetBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBackup",
requestType = com.google.firestore.admin.v1.GetBackupRequest.class,
responseType = com.google.firestore.admin.v1.Backup.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetBackupRequest, com.google.firestore.admin.v1.Backup>
getGetBackupMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetBackupRequest, com.google.firestore.admin.v1.Backup>
getGetBackupMethod;
if ((getGetBackupMethod = FirestoreAdminGrpc.getGetBackupMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getGetBackupMethod = FirestoreAdminGrpc.getGetBackupMethod) == null) {
FirestoreAdminGrpc.getGetBackupMethod =
getGetBackupMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.GetBackupRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.Backup.getDefaultInstance()))
.setSchemaDescriptor(new FirestoreAdminMethodDescriptorSupplier("GetBackup"))
.build();
}
}
}
return getGetBackupMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListBackupsRequest,
com.google.firestore.admin.v1.ListBackupsResponse>
getListBackupsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListBackups",
requestType = com.google.firestore.admin.v1.ListBackupsRequest.class,
responseType = com.google.firestore.admin.v1.ListBackupsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListBackupsRequest,
com.google.firestore.admin.v1.ListBackupsResponse>
getListBackupsMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListBackupsRequest,
com.google.firestore.admin.v1.ListBackupsResponse>
getListBackupsMethod;
if ((getListBackupsMethod = FirestoreAdminGrpc.getListBackupsMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getListBackupsMethod = FirestoreAdminGrpc.getListBackupsMethod) == null) {
FirestoreAdminGrpc.getListBackupsMethod =
getListBackupsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ListBackupsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ListBackupsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("ListBackups"))
.build();
}
}
}
return getListBackupsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteBackupRequest, com.google.protobuf.Empty>
getDeleteBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteBackup",
requestType = com.google.firestore.admin.v1.DeleteBackupRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteBackupRequest, com.google.protobuf.Empty>
getDeleteBackupMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteBackupRequest, com.google.protobuf.Empty>
getDeleteBackupMethod;
if ((getDeleteBackupMethod = FirestoreAdminGrpc.getDeleteBackupMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getDeleteBackupMethod = FirestoreAdminGrpc.getDeleteBackupMethod) == null) {
FirestoreAdminGrpc.getDeleteBackupMethod =
getDeleteBackupMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.DeleteBackupRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("DeleteBackup"))
.build();
}
}
}
return getDeleteBackupMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.RestoreDatabaseRequest, com.google.longrunning.Operation>
getRestoreDatabaseMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RestoreDatabase",
requestType = com.google.firestore.admin.v1.RestoreDatabaseRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.RestoreDatabaseRequest, com.google.longrunning.Operation>
getRestoreDatabaseMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.RestoreDatabaseRequest, com.google.longrunning.Operation>
getRestoreDatabaseMethod;
if ((getRestoreDatabaseMethod = FirestoreAdminGrpc.getRestoreDatabaseMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getRestoreDatabaseMethod = FirestoreAdminGrpc.getRestoreDatabaseMethod) == null) {
FirestoreAdminGrpc.getRestoreDatabaseMethod =
getRestoreDatabaseMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreDatabase"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.RestoreDatabaseRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("RestoreDatabase"))
.build();
}
}
}
return getRestoreDatabaseMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.CreateBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>
getCreateBackupScheduleMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateBackupSchedule",
requestType = com.google.firestore.admin.v1.CreateBackupScheduleRequest.class,
responseType = com.google.firestore.admin.v1.BackupSchedule.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.CreateBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>
getCreateBackupScheduleMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.CreateBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>
getCreateBackupScheduleMethod;
if ((getCreateBackupScheduleMethod = FirestoreAdminGrpc.getCreateBackupScheduleMethod)
== null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getCreateBackupScheduleMethod = FirestoreAdminGrpc.getCreateBackupScheduleMethod)
== null) {
FirestoreAdminGrpc.getCreateBackupScheduleMethod =
getCreateBackupScheduleMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "CreateBackupSchedule"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.CreateBackupScheduleRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.BackupSchedule.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("CreateBackupSchedule"))
.build();
}
}
}
return getCreateBackupScheduleMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>
getGetBackupScheduleMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBackupSchedule",
requestType = com.google.firestore.admin.v1.GetBackupScheduleRequest.class,
responseType = com.google.firestore.admin.v1.BackupSchedule.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>
getGetBackupScheduleMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.GetBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>
getGetBackupScheduleMethod;
if ((getGetBackupScheduleMethod = FirestoreAdminGrpc.getGetBackupScheduleMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getGetBackupScheduleMethod = FirestoreAdminGrpc.getGetBackupScheduleMethod) == null) {
FirestoreAdminGrpc.getGetBackupScheduleMethod =
getGetBackupScheduleMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackupSchedule"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.GetBackupScheduleRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.BackupSchedule.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("GetBackupSchedule"))
.build();
}
}
}
return getGetBackupScheduleMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListBackupSchedulesRequest,
com.google.firestore.admin.v1.ListBackupSchedulesResponse>
getListBackupSchedulesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListBackupSchedules",
requestType = com.google.firestore.admin.v1.ListBackupSchedulesRequest.class,
responseType = com.google.firestore.admin.v1.ListBackupSchedulesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListBackupSchedulesRequest,
com.google.firestore.admin.v1.ListBackupSchedulesResponse>
getListBackupSchedulesMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.ListBackupSchedulesRequest,
com.google.firestore.admin.v1.ListBackupSchedulesResponse>
getListBackupSchedulesMethod;
if ((getListBackupSchedulesMethod = FirestoreAdminGrpc.getListBackupSchedulesMethod) == null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getListBackupSchedulesMethod = FirestoreAdminGrpc.getListBackupSchedulesMethod)
== null) {
FirestoreAdminGrpc.getListBackupSchedulesMethod =
getListBackupSchedulesMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ListBackupSchedules"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ListBackupSchedulesRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.ListBackupSchedulesResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("ListBackupSchedules"))
.build();
}
}
}
return getListBackupSchedulesMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.UpdateBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>
getUpdateBackupScheduleMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateBackupSchedule",
requestType = com.google.firestore.admin.v1.UpdateBackupScheduleRequest.class,
responseType = com.google.firestore.admin.v1.BackupSchedule.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.UpdateBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>
getUpdateBackupScheduleMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.UpdateBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>
getUpdateBackupScheduleMethod;
if ((getUpdateBackupScheduleMethod = FirestoreAdminGrpc.getUpdateBackupScheduleMethod)
== null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getUpdateBackupScheduleMethod = FirestoreAdminGrpc.getUpdateBackupScheduleMethod)
== null) {
FirestoreAdminGrpc.getUpdateBackupScheduleMethod =
getUpdateBackupScheduleMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "UpdateBackupSchedule"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.UpdateBackupScheduleRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.BackupSchedule.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("UpdateBackupSchedule"))
.build();
}
}
}
return getUpdateBackupScheduleMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteBackupScheduleRequest, com.google.protobuf.Empty>
getDeleteBackupScheduleMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteBackupSchedule",
requestType = com.google.firestore.admin.v1.DeleteBackupScheduleRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteBackupScheduleRequest, com.google.protobuf.Empty>
getDeleteBackupScheduleMethod() {
io.grpc.MethodDescriptor<
com.google.firestore.admin.v1.DeleteBackupScheduleRequest, com.google.protobuf.Empty>
getDeleteBackupScheduleMethod;
if ((getDeleteBackupScheduleMethod = FirestoreAdminGrpc.getDeleteBackupScheduleMethod)
== null) {
synchronized (FirestoreAdminGrpc.class) {
if ((getDeleteBackupScheduleMethod = FirestoreAdminGrpc.getDeleteBackupScheduleMethod)
== null) {
FirestoreAdminGrpc.getDeleteBackupScheduleMethod =
getDeleteBackupScheduleMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "DeleteBackupSchedule"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.firestore.admin.v1.DeleteBackupScheduleRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new FirestoreAdminMethodDescriptorSupplier("DeleteBackupSchedule"))
.build();
}
}
}
return getDeleteBackupScheduleMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static FirestoreAdminStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FirestoreAdminStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FirestoreAdminStub(channel, callOptions);
}
};
return FirestoreAdminStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static FirestoreAdminBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FirestoreAdminBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FirestoreAdminBlockingStub(channel, callOptions);
}
};
return FirestoreAdminBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static FirestoreAdminFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FirestoreAdminFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FirestoreAdminFutureStub(channel, callOptions);
}
};
return FirestoreAdminFutureStub.newStub(factory, channel);
}
/**
*
*
*
* The Cloud Firestore Admin API.
* This API provides several administrative services for Cloud Firestore.
* Project, Database, Namespace, Collection, Collection Group, and Document are
* used as defined in the Google Cloud Firestore API.
* Operation: An Operation represents work being performed in the background.
* The index service manages Cloud Firestore indexes.
* Index creation is performed asynchronously.
* An Operation resource is created for each such asynchronous operation.
* The state of the operation (including any errors encountered)
* may be queried via the Operation resource.
* The Operations collection provides a record of actions performed for the
* specified Project (including any Operations in progress). Operations are not
* created directly but through calls on other collections or resources.
* An Operation that is done may be deleted so that it is no longer listed as
* part of the Operation collection. Operations are garbage collected after
* 30 days. By default, ListOperations will only return in progress and failed
* operations. To list completed operation, issue a ListOperations request with
* the filter `done: true`.
* Operations are created by service `FirestoreAdmin`, but are accessed via
* service `google.longrunning.Operations`.
*
*/
public interface AsyncService {
/**
*
*
*
* 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].
*
*/
default void createIndex(
com.google.firestore.admin.v1.CreateIndexRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateIndexMethod(), responseObserver);
}
/**
*
*
*
* Lists composite indexes.
*
*/
default void listIndexes(
com.google.firestore.admin.v1.ListIndexesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListIndexesMethod(), responseObserver);
}
/**
*
*
*
* Gets a composite index.
*
*/
default void getIndex(
com.google.firestore.admin.v1.GetIndexRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIndexMethod(), responseObserver);
}
/**
*
*
*
* Deletes a composite index.
*
*/
default void deleteIndex(
com.google.firestore.admin.v1.DeleteIndexRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteIndexMethod(), responseObserver);
}
/**
*
*
*
* Gets the metadata and configuration for a Field.
*
*/
default void getField(
com.google.firestore.admin.v1.GetFieldRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFieldMethod(), responseObserver);
}
/**
*
*
*
* 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/*`.
*
*/
default void updateField(
com.google.firestore.admin.v1.UpdateFieldRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateFieldMethod(), responseObserver);
}
/**
*
*
*
* 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` or
* `ttlConfig:*`.
*
*/
default void listFields(
com.google.firestore.admin.v1.ListFieldsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFieldsMethod(), responseObserver);
}
/**
*
*
*
* 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.
* For more details on export behavior and output format, refer to:
* https://cloud.google.com/firestore/docs/manage-data/export-import
*
*/
default void exportDocuments(
com.google.firestore.admin.v1.ExportDocumentsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getExportDocumentsMethod(), responseObserver);
}
/**
*
*
*
* 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.
*
*/
default void importDocuments(
com.google.firestore.admin.v1.ImportDocumentsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getImportDocumentsMethod(), responseObserver);
}
/**
*
*
*
* Bulk deletes a subset of documents from Google Cloud Firestore.
* Documents created or updated after the underlying system starts to process
* the request will not be deleted. The bulk delete occurs in the background
* and its progress can be monitored and managed via the Operation resource
* that is created.
* For more details on bulk delete behavior, refer to:
* https://cloud.google.com/firestore/docs/manage-data/bulk-delete
*
*/
default void bulkDeleteDocuments(
com.google.firestore.admin.v1.BulkDeleteDocumentsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getBulkDeleteDocumentsMethod(), responseObserver);
}
/**
*
*
*
* Create a database.
*
*/
default void createDatabase(
com.google.firestore.admin.v1.CreateDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateDatabaseMethod(), responseObserver);
}
/**
*
*
*
* Gets information about a database.
*
*/
default void getDatabase(
com.google.firestore.admin.v1.GetDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetDatabaseMethod(), responseObserver);
}
/**
*
*
*
* List all the databases in the project.
*
*/
default void listDatabases(
com.google.firestore.admin.v1.ListDatabasesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListDatabasesMethod(), responseObserver);
}
/**
*
*
*
* Updates a database.
*
*/
default void updateDatabase(
com.google.firestore.admin.v1.UpdateDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateDatabaseMethod(), responseObserver);
}
/**
*
*
*
* Deletes a database.
*
*/
default void deleteDatabase(
com.google.firestore.admin.v1.DeleteDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteDatabaseMethod(), responseObserver);
}
/**
*
*
*
* Gets information about a backup.
*
*/
default void getBackup(
com.google.firestore.admin.v1.GetBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver);
}
/**
*
*
*
* Lists all the backups.
*
*/
default void listBackups(
com.google.firestore.admin.v1.ListBackupsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListBackupsMethod(), responseObserver);
}
/**
*
*
*
* Deletes a backup.
*
*/
default void deleteBackup(
com.google.firestore.admin.v1.DeleteBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteBackupMethod(), responseObserver);
}
/**
*
*
*
* Creates a new database by restoring from an existing backup.
* The new database must be in the same cloud region or multi-region location
* as the existing backup. This behaves similar to
* [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
* except instead of creating a new empty database, a new database is created
* with the database type, index configuration, and documents from an existing
* backup.
* The [long-running operation][google.longrunning.Operation] can be used to
* track the progress of the restore, with the Operation's
* [metadata][google.longrunning.Operation.metadata] field type being the
* [RestoreDatabaseMetadata][google.firestore.admin.v1.RestoreDatabaseMetadata].
* The [response][google.longrunning.Operation.response] type is the
* [Database][google.firestore.admin.v1.Database] if the restore was
* successful. The new database is not readable or writeable until the LRO has
* completed.
*
*/
default void restoreDatabase(
com.google.firestore.admin.v1.RestoreDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getRestoreDatabaseMethod(), responseObserver);
}
/**
*
*
*
* Creates a backup schedule on a database.
* At most two backup schedules can be configured on a database, one daily
* backup schedule and one weekly backup schedule.
*
*/
default void createBackupSchedule(
com.google.firestore.admin.v1.CreateBackupScheduleRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateBackupScheduleMethod(), responseObserver);
}
/**
*
*
*
* Gets information about a backup schedule.
*
*/
default void getBackupSchedule(
com.google.firestore.admin.v1.GetBackupScheduleRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetBackupScheduleMethod(), responseObserver);
}
/**
*
*
*
* List backup schedules.
*
*/
default void listBackupSchedules(
com.google.firestore.admin.v1.ListBackupSchedulesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListBackupSchedulesMethod(), responseObserver);
}
/**
*
*
*
* Updates a backup schedule.
*
*/
default void updateBackupSchedule(
com.google.firestore.admin.v1.UpdateBackupScheduleRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateBackupScheduleMethod(), responseObserver);
}
/**
*
*
*
* Deletes a backup schedule.
*
*/
default void deleteBackupSchedule(
com.google.firestore.admin.v1.DeleteBackupScheduleRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteBackupScheduleMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service FirestoreAdmin.
*
*
* The Cloud Firestore Admin API.
* This API provides several administrative services for Cloud Firestore.
* Project, Database, Namespace, Collection, Collection Group, and Document are
* used as defined in the Google Cloud Firestore API.
* Operation: An Operation represents work being performed in the background.
* The index service manages Cloud Firestore indexes.
* Index creation is performed asynchronously.
* An Operation resource is created for each such asynchronous operation.
* The state of the operation (including any errors encountered)
* may be queried via the Operation resource.
* The Operations collection provides a record of actions performed for the
* specified Project (including any Operations in progress). Operations are not
* created directly but through calls on other collections or resources.
* An Operation that is done may be deleted so that it is no longer listed as
* part of the Operation collection. Operations are garbage collected after
* 30 days. By default, ListOperations will only return in progress and failed
* operations. To list completed operation, issue a ListOperations request with
* the filter `done: true`.
* Operations are created by service `FirestoreAdmin`, but are accessed via
* service `google.longrunning.Operations`.
*
*/
public abstract static class FirestoreAdminImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return FirestoreAdminGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service FirestoreAdmin.
*
*
* The Cloud Firestore Admin API.
* This API provides several administrative services for Cloud Firestore.
* Project, Database, Namespace, Collection, Collection Group, and Document are
* used as defined in the Google Cloud Firestore API.
* Operation: An Operation represents work being performed in the background.
* The index service manages Cloud Firestore indexes.
* Index creation is performed asynchronously.
* An Operation resource is created for each such asynchronous operation.
* The state of the operation (including any errors encountered)
* may be queried via the Operation resource.
* The Operations collection provides a record of actions performed for the
* specified Project (including any Operations in progress). Operations are not
* created directly but through calls on other collections or resources.
* An Operation that is done may be deleted so that it is no longer listed as
* part of the Operation collection. Operations are garbage collected after
* 30 days. By default, ListOperations will only return in progress and failed
* operations. To list completed operation, issue a ListOperations request with
* the filter `done: true`.
* Operations are created by service `FirestoreAdmin`, but are accessed via
* service `google.longrunning.Operations`.
*
*/
public static final class FirestoreAdminStub
extends io.grpc.stub.AbstractAsyncStub {
private FirestoreAdminStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FirestoreAdminStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FirestoreAdminStub(channel, callOptions);
}
/**
*
*
*
* 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 void createIndex(
com.google.firestore.admin.v1.CreateIndexRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateIndexMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Lists composite indexes.
*
*/
public void listIndexes(
com.google.firestore.admin.v1.ListIndexesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListIndexesMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets a composite index.
*
*/
public void getIndex(
com.google.firestore.admin.v1.GetIndexRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetIndexMethod(), getCallOptions()), request, responseObserver);
}
/**
*
*
*
* Deletes a composite index.
*
*/
public void deleteIndex(
com.google.firestore.admin.v1.DeleteIndexRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteIndexMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets the metadata and configuration for a Field.
*
*/
public void getField(
com.google.firestore.admin.v1.GetFieldRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetFieldMethod(), getCallOptions()), request, responseObserver);
}
/**
*
*
*
* 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 void updateField(
com.google.firestore.admin.v1.UpdateFieldRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateFieldMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* 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` or
* `ttlConfig:*`.
*
*/
public void listFields(
com.google.firestore.admin.v1.ListFieldsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListFieldsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
*
*
* 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.
* For more details on export behavior and output format, refer to:
* https://cloud.google.com/firestore/docs/manage-data/export-import
*
*/
public void exportDocuments(
com.google.firestore.admin.v1.ExportDocumentsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getExportDocumentsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* 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.
*
*/
public void importDocuments(
com.google.firestore.admin.v1.ImportDocumentsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getImportDocumentsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Bulk deletes a subset of documents from Google Cloud Firestore.
* Documents created or updated after the underlying system starts to process
* the request will not be deleted. The bulk delete occurs in the background
* and its progress can be monitored and managed via the Operation resource
* that is created.
* For more details on bulk delete behavior, refer to:
* https://cloud.google.com/firestore/docs/manage-data/bulk-delete
*
*/
public void bulkDeleteDocuments(
com.google.firestore.admin.v1.BulkDeleteDocumentsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBulkDeleteDocumentsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Create a database.
*
*/
public void createDatabase(
com.google.firestore.admin.v1.CreateDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateDatabaseMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets information about a database.
*
*/
public void getDatabase(
com.google.firestore.admin.v1.GetDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetDatabaseMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* List all the databases in the project.
*
*/
public void listDatabases(
com.google.firestore.admin.v1.ListDatabasesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListDatabasesMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates a database.
*
*/
public void updateDatabase(
com.google.firestore.admin.v1.UpdateDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateDatabaseMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes a database.
*
*/
public void deleteDatabase(
com.google.firestore.admin.v1.DeleteDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteDatabaseMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets information about a backup.
*
*/
public void getBackup(
com.google.firestore.admin.v1.GetBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver);
}
/**
*
*
*
* Lists all the backups.
*
*/
public void listBackups(
com.google.firestore.admin.v1.ListBackupsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListBackupsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes a backup.
*
*/
public void deleteBackup(
com.google.firestore.admin.v1.DeleteBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteBackupMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Creates a new database by restoring from an existing backup.
* The new database must be in the same cloud region or multi-region location
* as the existing backup. This behaves similar to
* [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
* except instead of creating a new empty database, a new database is created
* with the database type, index configuration, and documents from an existing
* backup.
* The [long-running operation][google.longrunning.Operation] can be used to
* track the progress of the restore, with the Operation's
* [metadata][google.longrunning.Operation.metadata] field type being the
* [RestoreDatabaseMetadata][google.firestore.admin.v1.RestoreDatabaseMetadata].
* The [response][google.longrunning.Operation.response] type is the
* [Database][google.firestore.admin.v1.Database] if the restore was
* successful. The new database is not readable or writeable until the LRO has
* completed.
*
*/
public void restoreDatabase(
com.google.firestore.admin.v1.RestoreDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRestoreDatabaseMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Creates a backup schedule on a database.
* At most two backup schedules can be configured on a database, one daily
* backup schedule and one weekly backup schedule.
*
*/
public void createBackupSchedule(
com.google.firestore.admin.v1.CreateBackupScheduleRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateBackupScheduleMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets information about a backup schedule.
*
*/
public void getBackupSchedule(
com.google.firestore.admin.v1.GetBackupScheduleRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBackupScheduleMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* List backup schedules.
*
*/
public void listBackupSchedules(
com.google.firestore.admin.v1.ListBackupSchedulesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListBackupSchedulesMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates a backup schedule.
*
*/
public void updateBackupSchedule(
com.google.firestore.admin.v1.UpdateBackupScheduleRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateBackupScheduleMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes a backup schedule.
*
*/
public void deleteBackupSchedule(
com.google.firestore.admin.v1.DeleteBackupScheduleRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteBackupScheduleMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service FirestoreAdmin.
*
*
* The Cloud Firestore Admin API.
* This API provides several administrative services for Cloud Firestore.
* Project, Database, Namespace, Collection, Collection Group, and Document are
* used as defined in the Google Cloud Firestore API.
* Operation: An Operation represents work being performed in the background.
* The index service manages Cloud Firestore indexes.
* Index creation is performed asynchronously.
* An Operation resource is created for each such asynchronous operation.
* The state of the operation (including any errors encountered)
* may be queried via the Operation resource.
* The Operations collection provides a record of actions performed for the
* specified Project (including any Operations in progress). Operations are not
* created directly but through calls on other collections or resources.
* An Operation that is done may be deleted so that it is no longer listed as
* part of the Operation collection. Operations are garbage collected after
* 30 days. By default, ListOperations will only return in progress and failed
* operations. To list completed operation, issue a ListOperations request with
* the filter `done: true`.
* Operations are created by service `FirestoreAdmin`, but are accessed via
* service `google.longrunning.Operations`.
*
*/
public static final class FirestoreAdminBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private FirestoreAdminBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FirestoreAdminBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FirestoreAdminBlockingStub(channel, callOptions);
}
/**
*
*
*
* 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.longrunning.Operation createIndex(
com.google.firestore.admin.v1.CreateIndexRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateIndexMethod(), getCallOptions(), request);
}
/**
*
*
*
* Lists composite indexes.
*
*/
public com.google.firestore.admin.v1.ListIndexesResponse listIndexes(
com.google.firestore.admin.v1.ListIndexesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListIndexesMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets a composite index.
*
*/
public com.google.firestore.admin.v1.Index getIndex(
com.google.firestore.admin.v1.GetIndexRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetIndexMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes a composite index.
*
*/
public com.google.protobuf.Empty deleteIndex(
com.google.firestore.admin.v1.DeleteIndexRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteIndexMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets the metadata and configuration for a Field.
*
*/
public com.google.firestore.admin.v1.Field getField(
com.google.firestore.admin.v1.GetFieldRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetFieldMethod(), getCallOptions(), 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.longrunning.Operation updateField(
com.google.firestore.admin.v1.UpdateFieldRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateFieldMethod(), getCallOptions(), 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` or
* `ttlConfig:*`.
*
*/
public com.google.firestore.admin.v1.ListFieldsResponse listFields(
com.google.firestore.admin.v1.ListFieldsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListFieldsMethod(), getCallOptions(), 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.
* For more details on export behavior and output format, refer to:
* https://cloud.google.com/firestore/docs/manage-data/export-import
*
*/
public com.google.longrunning.Operation exportDocuments(
com.google.firestore.admin.v1.ExportDocumentsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getExportDocumentsMethod(), getCallOptions(), 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.
*
*/
public com.google.longrunning.Operation importDocuments(
com.google.firestore.admin.v1.ImportDocumentsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getImportDocumentsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Bulk deletes a subset of documents from Google Cloud Firestore.
* Documents created or updated after the underlying system starts to process
* the request will not be deleted. The bulk delete occurs in the background
* and its progress can be monitored and managed via the Operation resource
* that is created.
* For more details on bulk delete behavior, refer to:
* https://cloud.google.com/firestore/docs/manage-data/bulk-delete
*
*/
public com.google.longrunning.Operation bulkDeleteDocuments(
com.google.firestore.admin.v1.BulkDeleteDocumentsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBulkDeleteDocumentsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Create a database.
*
*/
public com.google.longrunning.Operation createDatabase(
com.google.firestore.admin.v1.CreateDatabaseRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateDatabaseMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets information about a database.
*
*/
public com.google.firestore.admin.v1.Database getDatabase(
com.google.firestore.admin.v1.GetDatabaseRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetDatabaseMethod(), getCallOptions(), request);
}
/**
*
*
*
* List all the databases in the project.
*
*/
public com.google.firestore.admin.v1.ListDatabasesResponse listDatabases(
com.google.firestore.admin.v1.ListDatabasesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListDatabasesMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates a database.
*
*/
public com.google.longrunning.Operation updateDatabase(
com.google.firestore.admin.v1.UpdateDatabaseRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateDatabaseMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes a database.
*
*/
public com.google.longrunning.Operation deleteDatabase(
com.google.firestore.admin.v1.DeleteDatabaseRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteDatabaseMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets information about a backup.
*
*/
public com.google.firestore.admin.v1.Backup getBackup(
com.google.firestore.admin.v1.GetBackupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBackupMethod(), getCallOptions(), request);
}
/**
*
*
*
* Lists all the backups.
*
*/
public com.google.firestore.admin.v1.ListBackupsResponse listBackups(
com.google.firestore.admin.v1.ListBackupsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListBackupsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes a backup.
*
*/
public com.google.protobuf.Empty deleteBackup(
com.google.firestore.admin.v1.DeleteBackupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteBackupMethod(), getCallOptions(), request);
}
/**
*
*
*
* Creates a new database by restoring from an existing backup.
* The new database must be in the same cloud region or multi-region location
* as the existing backup. This behaves similar to
* [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
* except instead of creating a new empty database, a new database is created
* with the database type, index configuration, and documents from an existing
* backup.
* The [long-running operation][google.longrunning.Operation] can be used to
* track the progress of the restore, with the Operation's
* [metadata][google.longrunning.Operation.metadata] field type being the
* [RestoreDatabaseMetadata][google.firestore.admin.v1.RestoreDatabaseMetadata].
* The [response][google.longrunning.Operation.response] type is the
* [Database][google.firestore.admin.v1.Database] if the restore was
* successful. The new database is not readable or writeable until the LRO has
* completed.
*
*/
public com.google.longrunning.Operation restoreDatabase(
com.google.firestore.admin.v1.RestoreDatabaseRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRestoreDatabaseMethod(), getCallOptions(), request);
}
/**
*
*
*
* Creates a backup schedule on a database.
* At most two backup schedules can be configured on a database, one daily
* backup schedule and one weekly backup schedule.
*
*/
public com.google.firestore.admin.v1.BackupSchedule createBackupSchedule(
com.google.firestore.admin.v1.CreateBackupScheduleRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateBackupScheduleMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets information about a backup schedule.
*
*/
public com.google.firestore.admin.v1.BackupSchedule getBackupSchedule(
com.google.firestore.admin.v1.GetBackupScheduleRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBackupScheduleMethod(), getCallOptions(), request);
}
/**
*
*
*
* List backup schedules.
*
*/
public com.google.firestore.admin.v1.ListBackupSchedulesResponse listBackupSchedules(
com.google.firestore.admin.v1.ListBackupSchedulesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListBackupSchedulesMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates a backup schedule.
*
*/
public com.google.firestore.admin.v1.BackupSchedule updateBackupSchedule(
com.google.firestore.admin.v1.UpdateBackupScheduleRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateBackupScheduleMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes a backup schedule.
*
*/
public com.google.protobuf.Empty deleteBackupSchedule(
com.google.firestore.admin.v1.DeleteBackupScheduleRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteBackupScheduleMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service FirestoreAdmin.
*
*
* The Cloud Firestore Admin API.
* This API provides several administrative services for Cloud Firestore.
* Project, Database, Namespace, Collection, Collection Group, and Document are
* used as defined in the Google Cloud Firestore API.
* Operation: An Operation represents work being performed in the background.
* The index service manages Cloud Firestore indexes.
* Index creation is performed asynchronously.
* An Operation resource is created for each such asynchronous operation.
* The state of the operation (including any errors encountered)
* may be queried via the Operation resource.
* The Operations collection provides a record of actions performed for the
* specified Project (including any Operations in progress). Operations are not
* created directly but through calls on other collections or resources.
* An Operation that is done may be deleted so that it is no longer listed as
* part of the Operation collection. Operations are garbage collected after
* 30 days. By default, ListOperations will only return in progress and failed
* operations. To list completed operation, issue a ListOperations request with
* the filter `done: true`.
* Operations are created by service `FirestoreAdmin`, but are accessed via
* service `google.longrunning.Operations`.
*
*/
public static final class FirestoreAdminFutureStub
extends io.grpc.stub.AbstractFutureStub {
private FirestoreAdminFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FirestoreAdminFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FirestoreAdminFutureStub(channel, callOptions);
}
/**
*
*
*
* 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
createIndex(com.google.firestore.admin.v1.CreateIndexRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request);
}
/**
*
*
*
* Lists composite indexes.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.firestore.admin.v1.ListIndexesResponse>
listIndexes(com.google.firestore.admin.v1.ListIndexesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListIndexesMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets a composite index.
*
*/
public com.google.common.util.concurrent.ListenableFuture
getIndex(com.google.firestore.admin.v1.GetIndexRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetIndexMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes a composite index.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteIndex(com.google.firestore.admin.v1.DeleteIndexRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets the metadata and configuration for a Field.
*
*/
public com.google.common.util.concurrent.ListenableFuture
getField(com.google.firestore.admin.v1.GetFieldRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetFieldMethod(), getCallOptions()), 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
updateField(com.google.firestore.admin.v1.UpdateFieldRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateFieldMethod(), getCallOptions()), 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` or
* `ttlConfig:*`.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.firestore.admin.v1.ListFieldsResponse>
listFields(com.google.firestore.admin.v1.ListFieldsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListFieldsMethod(), getCallOptions()), 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.
* For more details on export behavior and output format, refer to:
* https://cloud.google.com/firestore/docs/manage-data/export-import
*
*/
public com.google.common.util.concurrent.ListenableFuture
exportDocuments(com.google.firestore.admin.v1.ExportDocumentsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getExportDocumentsMethod(), getCallOptions()), 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.
*
*/
public com.google.common.util.concurrent.ListenableFuture
importDocuments(com.google.firestore.admin.v1.ImportDocumentsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Bulk deletes a subset of documents from Google Cloud Firestore.
* Documents created or updated after the underlying system starts to process
* the request will not be deleted. The bulk delete occurs in the background
* and its progress can be monitored and managed via the Operation resource
* that is created.
* For more details on bulk delete behavior, refer to:
* https://cloud.google.com/firestore/docs/manage-data/bulk-delete
*
*/
public com.google.common.util.concurrent.ListenableFuture
bulkDeleteDocuments(com.google.firestore.admin.v1.BulkDeleteDocumentsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBulkDeleteDocumentsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Create a database.
*
*/
public com.google.common.util.concurrent.ListenableFuture
createDatabase(com.google.firestore.admin.v1.CreateDatabaseRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateDatabaseMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets information about a database.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.firestore.admin.v1.Database>
getDatabase(com.google.firestore.admin.v1.GetDatabaseRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetDatabaseMethod(), getCallOptions()), request);
}
/**
*
*
*
* List all the databases in the project.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.firestore.admin.v1.ListDatabasesResponse>
listDatabases(com.google.firestore.admin.v1.ListDatabasesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListDatabasesMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates a database.
*
*/
public com.google.common.util.concurrent.ListenableFuture
updateDatabase(com.google.firestore.admin.v1.UpdateDatabaseRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateDatabaseMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes a database.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteDatabase(com.google.firestore.admin.v1.DeleteDatabaseRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteDatabaseMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets information about a backup.
*
*/
public com.google.common.util.concurrent.ListenableFuture
getBackup(com.google.firestore.admin.v1.GetBackupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetBackupMethod(), getCallOptions()), request);
}
/**
*
*
*
* Lists all the backups.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.firestore.admin.v1.ListBackupsResponse>
listBackups(com.google.firestore.admin.v1.ListBackupsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListBackupsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes a backup.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteBackup(com.google.firestore.admin.v1.DeleteBackupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request);
}
/**
*
*
*
* Creates a new database by restoring from an existing backup.
* The new database must be in the same cloud region or multi-region location
* as the existing backup. This behaves similar to
* [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
* except instead of creating a new empty database, a new database is created
* with the database type, index configuration, and documents from an existing
* backup.
* The [long-running operation][google.longrunning.Operation] can be used to
* track the progress of the restore, with the Operation's
* [metadata][google.longrunning.Operation.metadata] field type being the
* [RestoreDatabaseMetadata][google.firestore.admin.v1.RestoreDatabaseMetadata].
* The [response][google.longrunning.Operation.response] type is the
* [Database][google.firestore.admin.v1.Database] if the restore was
* successful. The new database is not readable or writeable until the LRO has
* completed.
*
*/
public com.google.common.util.concurrent.ListenableFuture
restoreDatabase(com.google.firestore.admin.v1.RestoreDatabaseRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRestoreDatabaseMethod(), getCallOptions()), request);
}
/**
*
*
*
* Creates a backup schedule on a database.
* At most two backup schedules can be configured on a database, one daily
* backup schedule and one weekly backup schedule.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.firestore.admin.v1.BackupSchedule>
createBackupSchedule(com.google.firestore.admin.v1.CreateBackupScheduleRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateBackupScheduleMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets information about a backup schedule.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.firestore.admin.v1.BackupSchedule>
getBackupSchedule(com.google.firestore.admin.v1.GetBackupScheduleRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetBackupScheduleMethod(), getCallOptions()), request);
}
/**
*
*
*
* List backup schedules.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.firestore.admin.v1.ListBackupSchedulesResponse>
listBackupSchedules(com.google.firestore.admin.v1.ListBackupSchedulesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListBackupSchedulesMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates a backup schedule.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.firestore.admin.v1.BackupSchedule>
updateBackupSchedule(com.google.firestore.admin.v1.UpdateBackupScheduleRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateBackupScheduleMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes a backup schedule.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteBackupSchedule(com.google.firestore.admin.v1.DeleteBackupScheduleRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteBackupScheduleMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_INDEX = 0;
private static final int METHODID_LIST_INDEXES = 1;
private static final int METHODID_GET_INDEX = 2;
private static final int METHODID_DELETE_INDEX = 3;
private static final int METHODID_GET_FIELD = 4;
private static final int METHODID_UPDATE_FIELD = 5;
private static final int METHODID_LIST_FIELDS = 6;
private static final int METHODID_EXPORT_DOCUMENTS = 7;
private static final int METHODID_IMPORT_DOCUMENTS = 8;
private static final int METHODID_BULK_DELETE_DOCUMENTS = 9;
private static final int METHODID_CREATE_DATABASE = 10;
private static final int METHODID_GET_DATABASE = 11;
private static final int METHODID_LIST_DATABASES = 12;
private static final int METHODID_UPDATE_DATABASE = 13;
private static final int METHODID_DELETE_DATABASE = 14;
private static final int METHODID_GET_BACKUP = 15;
private static final int METHODID_LIST_BACKUPS = 16;
private static final int METHODID_DELETE_BACKUP = 17;
private static final int METHODID_RESTORE_DATABASE = 18;
private static final int METHODID_CREATE_BACKUP_SCHEDULE = 19;
private static final int METHODID_GET_BACKUP_SCHEDULE = 20;
private static final int METHODID_LIST_BACKUP_SCHEDULES = 21;
private static final int METHODID_UPDATE_BACKUP_SCHEDULE = 22;
private static final int METHODID_DELETE_BACKUP_SCHEDULE = 23;
private static final class MethodHandlers
implements io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_CREATE_INDEX:
serviceImpl.createIndex(
(com.google.firestore.admin.v1.CreateIndexRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_INDEXES:
serviceImpl.listIndexes(
(com.google.firestore.admin.v1.ListIndexesRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_GET_INDEX:
serviceImpl.getIndex(
(com.google.firestore.admin.v1.GetIndexRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_INDEX:
serviceImpl.deleteIndex(
(com.google.firestore.admin.v1.DeleteIndexRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_FIELD:
serviceImpl.getField(
(com.google.firestore.admin.v1.GetFieldRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_FIELD:
serviceImpl.updateField(
(com.google.firestore.admin.v1.UpdateFieldRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_FIELDS:
serviceImpl.listFields(
(com.google.firestore.admin.v1.ListFieldsRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_EXPORT_DOCUMENTS:
serviceImpl.exportDocuments(
(com.google.firestore.admin.v1.ExportDocumentsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_IMPORT_DOCUMENTS:
serviceImpl.importDocuments(
(com.google.firestore.admin.v1.ImportDocumentsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_BULK_DELETE_DOCUMENTS:
serviceImpl.bulkDeleteDocuments(
(com.google.firestore.admin.v1.BulkDeleteDocumentsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_DATABASE:
serviceImpl.createDatabase(
(com.google.firestore.admin.v1.CreateDatabaseRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_DATABASE:
serviceImpl.getDatabase(
(com.google.firestore.admin.v1.GetDatabaseRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_LIST_DATABASES:
serviceImpl.listDatabases(
(com.google.firestore.admin.v1.ListDatabasesRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_UPDATE_DATABASE:
serviceImpl.updateDatabase(
(com.google.firestore.admin.v1.UpdateDatabaseRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_DATABASE:
serviceImpl.deleteDatabase(
(com.google.firestore.admin.v1.DeleteDatabaseRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BACKUP:
serviceImpl.getBackup(
(com.google.firestore.admin.v1.GetBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_BACKUPS:
serviceImpl.listBackups(
(com.google.firestore.admin.v1.ListBackupsRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_DELETE_BACKUP:
serviceImpl.deleteBackup(
(com.google.firestore.admin.v1.DeleteBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESTORE_DATABASE:
serviceImpl.restoreDatabase(
(com.google.firestore.admin.v1.RestoreDatabaseRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_BACKUP_SCHEDULE:
serviceImpl.createBackupSchedule(
(com.google.firestore.admin.v1.CreateBackupScheduleRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_GET_BACKUP_SCHEDULE:
serviceImpl.getBackupSchedule(
(com.google.firestore.admin.v1.GetBackupScheduleRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_LIST_BACKUP_SCHEDULES:
serviceImpl.listBackupSchedules(
(com.google.firestore.admin.v1.ListBackupSchedulesRequest) request,
(io.grpc.stub.StreamObserver<
com.google.firestore.admin.v1.ListBackupSchedulesResponse>)
responseObserver);
break;
case METHODID_UPDATE_BACKUP_SCHEDULE:
serviceImpl.updateBackupSchedule(
(com.google.firestore.admin.v1.UpdateBackupScheduleRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_DELETE_BACKUP_SCHEDULE:
serviceImpl.deleteBackupSchedule(
(com.google.firestore.admin.v1.DeleteBackupScheduleRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateIndexMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.CreateIndexRequest,
com.google.longrunning.Operation>(service, METHODID_CREATE_INDEX)))
.addMethod(
getListIndexesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.ListIndexesRequest,
com.google.firestore.admin.v1.ListIndexesResponse>(
service, METHODID_LIST_INDEXES)))
.addMethod(
getGetIndexMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.GetIndexRequest,
com.google.firestore.admin.v1.Index>(service, METHODID_GET_INDEX)))
.addMethod(
getDeleteIndexMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.DeleteIndexRequest, com.google.protobuf.Empty>(
service, METHODID_DELETE_INDEX)))
.addMethod(
getGetFieldMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.GetFieldRequest,
com.google.firestore.admin.v1.Field>(service, METHODID_GET_FIELD)))
.addMethod(
getUpdateFieldMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.UpdateFieldRequest,
com.google.longrunning.Operation>(service, METHODID_UPDATE_FIELD)))
.addMethod(
getListFieldsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.ListFieldsRequest,
com.google.firestore.admin.v1.ListFieldsResponse>(
service, METHODID_LIST_FIELDS)))
.addMethod(
getExportDocumentsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.ExportDocumentsRequest,
com.google.longrunning.Operation>(service, METHODID_EXPORT_DOCUMENTS)))
.addMethod(
getImportDocumentsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.ImportDocumentsRequest,
com.google.longrunning.Operation>(service, METHODID_IMPORT_DOCUMENTS)))
.addMethod(
getBulkDeleteDocumentsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.BulkDeleteDocumentsRequest,
com.google.longrunning.Operation>(service, METHODID_BULK_DELETE_DOCUMENTS)))
.addMethod(
getCreateDatabaseMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.CreateDatabaseRequest,
com.google.longrunning.Operation>(service, METHODID_CREATE_DATABASE)))
.addMethod(
getGetDatabaseMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.GetDatabaseRequest,
com.google.firestore.admin.v1.Database>(service, METHODID_GET_DATABASE)))
.addMethod(
getListDatabasesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.ListDatabasesRequest,
com.google.firestore.admin.v1.ListDatabasesResponse>(
service, METHODID_LIST_DATABASES)))
.addMethod(
getUpdateDatabaseMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.UpdateDatabaseRequest,
com.google.longrunning.Operation>(service, METHODID_UPDATE_DATABASE)))
.addMethod(
getDeleteDatabaseMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.DeleteDatabaseRequest,
com.google.longrunning.Operation>(service, METHODID_DELETE_DATABASE)))
.addMethod(
getGetBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.GetBackupRequest,
com.google.firestore.admin.v1.Backup>(service, METHODID_GET_BACKUP)))
.addMethod(
getListBackupsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.ListBackupsRequest,
com.google.firestore.admin.v1.ListBackupsResponse>(
service, METHODID_LIST_BACKUPS)))
.addMethod(
getDeleteBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.DeleteBackupRequest, com.google.protobuf.Empty>(
service, METHODID_DELETE_BACKUP)))
.addMethod(
getRestoreDatabaseMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.RestoreDatabaseRequest,
com.google.longrunning.Operation>(service, METHODID_RESTORE_DATABASE)))
.addMethod(
getCreateBackupScheduleMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.CreateBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>(
service, METHODID_CREATE_BACKUP_SCHEDULE)))
.addMethod(
getGetBackupScheduleMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.GetBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>(
service, METHODID_GET_BACKUP_SCHEDULE)))
.addMethod(
getListBackupSchedulesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.ListBackupSchedulesRequest,
com.google.firestore.admin.v1.ListBackupSchedulesResponse>(
service, METHODID_LIST_BACKUP_SCHEDULES)))
.addMethod(
getUpdateBackupScheduleMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.UpdateBackupScheduleRequest,
com.google.firestore.admin.v1.BackupSchedule>(
service, METHODID_UPDATE_BACKUP_SCHEDULE)))
.addMethod(
getDeleteBackupScheduleMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.firestore.admin.v1.DeleteBackupScheduleRequest,
com.google.protobuf.Empty>(service, METHODID_DELETE_BACKUP_SCHEDULE)))
.build();
}
private abstract static class FirestoreAdminBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
FirestoreAdminBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.firestore.admin.v1.FirestoreAdminProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("FirestoreAdmin");
}
}
private static final class FirestoreAdminFileDescriptorSupplier
extends FirestoreAdminBaseDescriptorSupplier {
FirestoreAdminFileDescriptorSupplier() {}
}
private static final class FirestoreAdminMethodDescriptorSupplier
extends FirestoreAdminBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
FirestoreAdminMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (FirestoreAdminGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new FirestoreAdminFileDescriptorSupplier())
.addMethod(getCreateIndexMethod())
.addMethod(getListIndexesMethod())
.addMethod(getGetIndexMethod())
.addMethod(getDeleteIndexMethod())
.addMethod(getGetFieldMethod())
.addMethod(getUpdateFieldMethod())
.addMethod(getListFieldsMethod())
.addMethod(getExportDocumentsMethod())
.addMethod(getImportDocumentsMethod())
.addMethod(getBulkDeleteDocumentsMethod())
.addMethod(getCreateDatabaseMethod())
.addMethod(getGetDatabaseMethod())
.addMethod(getListDatabasesMethod())
.addMethod(getUpdateDatabaseMethod())
.addMethod(getDeleteDatabaseMethod())
.addMethod(getGetBackupMethod())
.addMethod(getListBackupsMethod())
.addMethod(getDeleteBackupMethod())
.addMethod(getRestoreDatabaseMethod())
.addMethod(getCreateBackupScheduleMethod())
.addMethod(getGetBackupScheduleMethod())
.addMethod(getListBackupSchedulesMethod())
.addMethod(getUpdateBackupScheduleMethod())
.addMethod(getDeleteBackupScheduleMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy