diff --git a/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreGrpc.java b/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreGrpc.java deleted file mode 100644 index f1505421..00000000 --- a/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreGrpc.java +++ /dev/null @@ -1,1472 +0,0 @@ -/* - * Copyright 2020 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.cloud.metastore.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/metastore/v1/metastore.proto") -public final class DataprocMetastoreGrpc { - - private DataprocMetastoreGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.metastore.v1.DataprocMetastore"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.metastore.v1.ListServicesRequest, - com.google.cloud.metastore.v1.ListServicesResponse> - getListServicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServices", - requestType = com.google.cloud.metastore.v1.ListServicesRequest.class, - responseType = com.google.cloud.metastore.v1.ListServicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.metastore.v1.ListServicesRequest, - com.google.cloud.metastore.v1.ListServicesResponse> - getListServicesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.metastore.v1.ListServicesRequest, - com.google.cloud.metastore.v1.ListServicesResponse> - getListServicesMethod; - if ((getListServicesMethod = DataprocMetastoreGrpc.getListServicesMethod) == null) { - synchronized (DataprocMetastoreGrpc.class) { - if ((getListServicesMethod = DataprocMetastoreGrpc.getListServicesMethod) == null) { - DataprocMetastoreGrpc.getListServicesMethod = - getListServicesMethod = - io.grpc.MethodDescriptor - .
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public abstract static class DataprocMetastoreImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Lists services in a project and location. - *- */ - public void listServices( - com.google.cloud.metastore.v1.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Gets the details of a single service. - *- */ - public void getService( - com.google.cloud.metastore.v1.GetServiceRequest request, - io.grpc.stub.StreamObserver
- * Creates a metastore service in a project and location. - *- */ - public void createService( - com.google.cloud.metastore.v1.CreateServiceRequest request, - io.grpc.stub.StreamObserver
- * Updates the parameters of a single service. - *- */ - public void updateService( - com.google.cloud.metastore.v1.UpdateServiceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a single service. - *- */ - public void deleteService( - com.google.cloud.metastore.v1.DeleteServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists imports in a service. - *- */ - public void listMetadataImports( - com.google.cloud.metastore.v1.ListMetadataImportsRequest request, - io.grpc.stub.StreamObserver
- * Gets details of a single import. - *- */ - public void getMetadataImport( - com.google.cloud.metastore.v1.GetMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Creates a new MetadataImport in a given project and location. - *- */ - public void createMetadataImport( - com.google.cloud.metastore.v1.CreateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public void updateMetadataImport( - com.google.cloud.metastore.v1.UpdateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Exports metadata from a service. - *- */ - public void exportMetadata( - com.google.cloud.metastore.v1.ExportMetadataRequest request, - io.grpc.stub.StreamObserver
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public static final class DataprocMetastoreStub - extends io.grpc.stub.AbstractAsyncStub
- * Lists services in a project and location. - *- */ - public void listServices( - com.google.cloud.metastore.v1.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Gets the details of a single service. - *- */ - public void getService( - com.google.cloud.metastore.v1.GetServiceRequest request, - io.grpc.stub.StreamObserver
- * Creates a metastore service in a project and location. - *- */ - public void createService( - com.google.cloud.metastore.v1.CreateServiceRequest request, - io.grpc.stub.StreamObserver
- * Updates the parameters of a single service. - *- */ - public void updateService( - com.google.cloud.metastore.v1.UpdateServiceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a single service. - *- */ - public void deleteService( - com.google.cloud.metastore.v1.DeleteServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists imports in a service. - *- */ - public void listMetadataImports( - com.google.cloud.metastore.v1.ListMetadataImportsRequest request, - io.grpc.stub.StreamObserver
- * Gets details of a single import. - *- */ - public void getMetadataImport( - com.google.cloud.metastore.v1.GetMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Creates a new MetadataImport in a given project and location. - *- */ - public void createMetadataImport( - com.google.cloud.metastore.v1.CreateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public void updateMetadataImport( - com.google.cloud.metastore.v1.UpdateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Exports metadata from a service. - *- */ - public void exportMetadata( - com.google.cloud.metastore.v1.ExportMetadataRequest request, - io.grpc.stub.StreamObserver
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public static final class DataprocMetastoreBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Lists services in a project and location. - *- */ - public com.google.cloud.metastore.v1.ListServicesResponse listServices( - com.google.cloud.metastore.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets the details of a single service. - *- */ - public com.google.cloud.metastore.v1.Service getService( - com.google.cloud.metastore.v1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a metastore service in a project and location. - *- */ - public com.google.longrunning.Operation createService( - com.google.cloud.metastore.v1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates the parameters of a single service. - *- */ - public com.google.longrunning.Operation updateService( - com.google.cloud.metastore.v1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a single service. - *- */ - public com.google.longrunning.Operation deleteService( - com.google.cloud.metastore.v1.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists imports in a service. - *- */ - public com.google.cloud.metastore.v1.ListMetadataImportsResponse listMetadataImports( - com.google.cloud.metastore.v1.ListMetadataImportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMetadataImportsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets details of a single import. - *- */ - public com.google.cloud.metastore.v1.MetadataImport getMetadataImport( - com.google.cloud.metastore.v1.GetMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMetadataImportMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a new MetadataImport in a given project and location. - *- */ - public com.google.longrunning.Operation createMetadataImport( - com.google.cloud.metastore.v1.CreateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMetadataImportMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public com.google.longrunning.Operation updateMetadataImport( - com.google.cloud.metastore.v1.UpdateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMetadataImportMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Exports metadata from a service. - *- */ - public com.google.longrunning.Operation exportMetadata( - com.google.cloud.metastore.v1.ExportMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportMetadataMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public static final class DataprocMetastoreFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Lists services in a project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1.ListServicesResponse> - listServices(com.google.cloud.metastore.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets the details of a single service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates a metastore service in a project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Updates the parameters of a single service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Deletes a single service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Lists imports in a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1.ListMetadataImportsResponse> - listMetadataImports(com.google.cloud.metastore.v1.ListMetadataImportsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMetadataImportsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets details of a single import. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1.MetadataImport> - getMetadataImport(com.google.cloud.metastore.v1.GetMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMetadataImportMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Creates a new MetadataImport in a given project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Exports metadata from a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/metastore/v1alpha/metastore.proto") -public final class DataprocMetastoreGrpc { - - private DataprocMetastoreGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.metastore.v1alpha.DataprocMetastore"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.metastore.v1alpha.ListServicesRequest, - com.google.cloud.metastore.v1alpha.ListServicesResponse> - getListServicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServices", - requestType = com.google.cloud.metastore.v1alpha.ListServicesRequest.class, - responseType = com.google.cloud.metastore.v1alpha.ListServicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.metastore.v1alpha.ListServicesRequest, - com.google.cloud.metastore.v1alpha.ListServicesResponse> - getListServicesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.metastore.v1alpha.ListServicesRequest, - com.google.cloud.metastore.v1alpha.ListServicesResponse> - getListServicesMethod; - if ((getListServicesMethod = DataprocMetastoreGrpc.getListServicesMethod) == null) { - synchronized (DataprocMetastoreGrpc.class) { - if ((getListServicesMethod = DataprocMetastoreGrpc.getListServicesMethod) == null) { - DataprocMetastoreGrpc.getListServicesMethod = - getListServicesMethod = - io.grpc.MethodDescriptor - .
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public abstract static class DataprocMetastoreImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Lists services in a project and location. - *- */ - public void listServices( - com.google.cloud.metastore.v1alpha.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Gets the details of a single service. - *- */ - public void getService( - com.google.cloud.metastore.v1alpha.GetServiceRequest request, - io.grpc.stub.StreamObserver
- * Creates a metastore service in a project and location. - *- */ - public void createService( - com.google.cloud.metastore.v1alpha.CreateServiceRequest request, - io.grpc.stub.StreamObserver
- * Updates the parameters of a single service. - *- */ - public void updateService( - com.google.cloud.metastore.v1alpha.UpdateServiceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a single service. - *- */ - public void deleteService( - com.google.cloud.metastore.v1alpha.DeleteServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists imports in a service. - *- */ - public void listMetadataImports( - com.google.cloud.metastore.v1alpha.ListMetadataImportsRequest request, - io.grpc.stub.StreamObserver
- * Gets details of a single import. - *- */ - public void getMetadataImport( - com.google.cloud.metastore.v1alpha.GetMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Creates a new MetadataImport in a given project and location. - *- */ - public void createMetadataImport( - com.google.cloud.metastore.v1alpha.CreateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public void updateMetadataImport( - com.google.cloud.metastore.v1alpha.UpdateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Exports metadata from a service. - *- */ - public void exportMetadata( - com.google.cloud.metastore.v1alpha.ExportMetadataRequest request, - io.grpc.stub.StreamObserver
- * Restores a service from a backup. - *- */ - public void restoreService( - com.google.cloud.metastore.v1alpha.RestoreServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists backups in a service. - *- */ - public void listBackups( - com.google.cloud.metastore.v1alpha.ListBackupsRequest request, - io.grpc.stub.StreamObserver
- * Gets details of a single backup. - *- */ - public void getBackup( - com.google.cloud.metastore.v1alpha.GetBackupRequest request, - io.grpc.stub.StreamObserver
- * Creates a new Backup in a given project and location. - *- */ - public void createBackup( - com.google.cloud.metastore.v1alpha.CreateBackupRequest request, - io.grpc.stub.StreamObserver
- * Deletes a single backup. - *- */ - public void deleteBackup( - com.google.cloud.metastore.v1alpha.DeleteBackupRequest request, - io.grpc.stub.StreamObserver
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public static final class DataprocMetastoreStub - extends io.grpc.stub.AbstractAsyncStub
- * Lists services in a project and location. - *- */ - public void listServices( - com.google.cloud.metastore.v1alpha.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Gets the details of a single service. - *- */ - public void getService( - com.google.cloud.metastore.v1alpha.GetServiceRequest request, - io.grpc.stub.StreamObserver
- * Creates a metastore service in a project and location. - *- */ - public void createService( - com.google.cloud.metastore.v1alpha.CreateServiceRequest request, - io.grpc.stub.StreamObserver
- * Updates the parameters of a single service. - *- */ - public void updateService( - com.google.cloud.metastore.v1alpha.UpdateServiceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a single service. - *- */ - public void deleteService( - com.google.cloud.metastore.v1alpha.DeleteServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists imports in a service. - *- */ - public void listMetadataImports( - com.google.cloud.metastore.v1alpha.ListMetadataImportsRequest request, - io.grpc.stub.StreamObserver
- * Gets details of a single import. - *- */ - public void getMetadataImport( - com.google.cloud.metastore.v1alpha.GetMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Creates a new MetadataImport in a given project and location. - *- */ - public void createMetadataImport( - com.google.cloud.metastore.v1alpha.CreateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public void updateMetadataImport( - com.google.cloud.metastore.v1alpha.UpdateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Exports metadata from a service. - *- */ - public void exportMetadata( - com.google.cloud.metastore.v1alpha.ExportMetadataRequest request, - io.grpc.stub.StreamObserver
- * Restores a service from a backup. - *- */ - public void restoreService( - com.google.cloud.metastore.v1alpha.RestoreServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists backups in a service. - *- */ - public void listBackups( - com.google.cloud.metastore.v1alpha.ListBackupsRequest request, - io.grpc.stub.StreamObserver
- * Gets details of a single backup. - *- */ - public void getBackup( - com.google.cloud.metastore.v1alpha.GetBackupRequest request, - io.grpc.stub.StreamObserver
- * Creates a new Backup in a given project and location. - *- */ - public void createBackup( - com.google.cloud.metastore.v1alpha.CreateBackupRequest request, - io.grpc.stub.StreamObserver
- * Deletes a single backup. - *- */ - public void deleteBackup( - com.google.cloud.metastore.v1alpha.DeleteBackupRequest request, - io.grpc.stub.StreamObserver
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public static final class DataprocMetastoreBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Lists services in a project and location. - *- */ - public com.google.cloud.metastore.v1alpha.ListServicesResponse listServices( - com.google.cloud.metastore.v1alpha.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets the details of a single service. - *- */ - public com.google.cloud.metastore.v1alpha.Service getService( - com.google.cloud.metastore.v1alpha.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a metastore service in a project and location. - *- */ - public com.google.longrunning.Operation createService( - com.google.cloud.metastore.v1alpha.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates the parameters of a single service. - *- */ - public com.google.longrunning.Operation updateService( - com.google.cloud.metastore.v1alpha.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a single service. - *- */ - public com.google.longrunning.Operation deleteService( - com.google.cloud.metastore.v1alpha.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists imports in a service. - *- */ - public com.google.cloud.metastore.v1alpha.ListMetadataImportsResponse listMetadataImports( - com.google.cloud.metastore.v1alpha.ListMetadataImportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMetadataImportsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets details of a single import. - *- */ - public com.google.cloud.metastore.v1alpha.MetadataImport getMetadataImport( - com.google.cloud.metastore.v1alpha.GetMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMetadataImportMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a new MetadataImport in a given project and location. - *- */ - public com.google.longrunning.Operation createMetadataImport( - com.google.cloud.metastore.v1alpha.CreateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMetadataImportMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public com.google.longrunning.Operation updateMetadataImport( - com.google.cloud.metastore.v1alpha.UpdateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMetadataImportMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Exports metadata from a service. - *- */ - public com.google.longrunning.Operation exportMetadata( - com.google.cloud.metastore.v1alpha.ExportMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportMetadataMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Restores a service from a backup. - *- */ - public com.google.longrunning.Operation restoreService( - com.google.cloud.metastore.v1alpha.RestoreServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists backups in a service. - *- */ - public com.google.cloud.metastore.v1alpha.ListBackupsResponse listBackups( - com.google.cloud.metastore.v1alpha.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets details of a single backup. - *- */ - public com.google.cloud.metastore.v1alpha.Backup getBackup( - com.google.cloud.metastore.v1alpha.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a new Backup in a given project and location. - *- */ - public com.google.longrunning.Operation createBackup( - com.google.cloud.metastore.v1alpha.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a single backup. - *- */ - public com.google.longrunning.Operation deleteBackup( - com.google.cloud.metastore.v1alpha.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public static final class DataprocMetastoreFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Lists services in a project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1alpha.ListServicesResponse> - listServices(com.google.cloud.metastore.v1alpha.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets the details of a single service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1alpha.Service> - getService(com.google.cloud.metastore.v1alpha.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Creates a metastore service in a project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Updates the parameters of a single service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Deletes a single service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Lists imports in a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1alpha.ListMetadataImportsResponse> - listMetadataImports(com.google.cloud.metastore.v1alpha.ListMetadataImportsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMetadataImportsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets details of a single import. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1alpha.MetadataImport> - getMetadataImport(com.google.cloud.metastore.v1alpha.GetMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMetadataImportMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Creates a new MetadataImport in a given project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Exports metadata from a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Restores a service from a backup. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Lists backups in a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1alpha.ListBackupsResponse> - listBackups(com.google.cloud.metastore.v1alpha.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets details of a single backup. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1alpha.Backup> - getBackup(com.google.cloud.metastore.v1alpha.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Creates a new Backup in a given project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Deletes a single backup. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/metastore/v1beta/metastore.proto") -public final class DataprocMetastoreGrpc { - - private DataprocMetastoreGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.metastore.v1beta.DataprocMetastore"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.metastore.v1beta.ListServicesRequest, - com.google.cloud.metastore.v1beta.ListServicesResponse> - getListServicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServices", - requestType = com.google.cloud.metastore.v1beta.ListServicesRequest.class, - responseType = com.google.cloud.metastore.v1beta.ListServicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.metastore.v1beta.ListServicesRequest, - com.google.cloud.metastore.v1beta.ListServicesResponse> - getListServicesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.metastore.v1beta.ListServicesRequest, - com.google.cloud.metastore.v1beta.ListServicesResponse> - getListServicesMethod; - if ((getListServicesMethod = DataprocMetastoreGrpc.getListServicesMethod) == null) { - synchronized (DataprocMetastoreGrpc.class) { - if ((getListServicesMethod = DataprocMetastoreGrpc.getListServicesMethod) == null) { - DataprocMetastoreGrpc.getListServicesMethod = - getListServicesMethod = - io.grpc.MethodDescriptor - .
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public abstract static class DataprocMetastoreImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Lists services in a project and location. - *- */ - public void listServices( - com.google.cloud.metastore.v1beta.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Gets the details of a single service. - *- */ - public void getService( - com.google.cloud.metastore.v1beta.GetServiceRequest request, - io.grpc.stub.StreamObserver
- * Creates a metastore service in a project and location. - *- */ - public void createService( - com.google.cloud.metastore.v1beta.CreateServiceRequest request, - io.grpc.stub.StreamObserver
- * Updates the parameters of a single service. - *- */ - public void updateService( - com.google.cloud.metastore.v1beta.UpdateServiceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a single service. - *- */ - public void deleteService( - com.google.cloud.metastore.v1beta.DeleteServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists imports in a service. - *- */ - public void listMetadataImports( - com.google.cloud.metastore.v1beta.ListMetadataImportsRequest request, - io.grpc.stub.StreamObserver
- * Gets details of a single import. - *- */ - public void getMetadataImport( - com.google.cloud.metastore.v1beta.GetMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Creates a new MetadataImport in a given project and location. - *- */ - public void createMetadataImport( - com.google.cloud.metastore.v1beta.CreateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public void updateMetadataImport( - com.google.cloud.metastore.v1beta.UpdateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Exports metadata from a service. - *- */ - public void exportMetadata( - com.google.cloud.metastore.v1beta.ExportMetadataRequest request, - io.grpc.stub.StreamObserver
- * Restores a service from a backup. - *- */ - public void restoreService( - com.google.cloud.metastore.v1beta.RestoreServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists backups in a service. - *- */ - public void listBackups( - com.google.cloud.metastore.v1beta.ListBackupsRequest request, - io.grpc.stub.StreamObserver
- * Gets details of a single backup. - *- */ - public void getBackup( - com.google.cloud.metastore.v1beta.GetBackupRequest request, - io.grpc.stub.StreamObserver
- * Creates a new Backup in a given project and location. - *- */ - public void createBackup( - com.google.cloud.metastore.v1beta.CreateBackupRequest request, - io.grpc.stub.StreamObserver
- * Deletes a single backup. - *- */ - public void deleteBackup( - com.google.cloud.metastore.v1beta.DeleteBackupRequest request, - io.grpc.stub.StreamObserver
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public static final class DataprocMetastoreStub - extends io.grpc.stub.AbstractAsyncStub
- * Lists services in a project and location. - *- */ - public void listServices( - com.google.cloud.metastore.v1beta.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Gets the details of a single service. - *- */ - public void getService( - com.google.cloud.metastore.v1beta.GetServiceRequest request, - io.grpc.stub.StreamObserver
- * Creates a metastore service in a project and location. - *- */ - public void createService( - com.google.cloud.metastore.v1beta.CreateServiceRequest request, - io.grpc.stub.StreamObserver
- * Updates the parameters of a single service. - *- */ - public void updateService( - com.google.cloud.metastore.v1beta.UpdateServiceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a single service. - *- */ - public void deleteService( - com.google.cloud.metastore.v1beta.DeleteServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists imports in a service. - *- */ - public void listMetadataImports( - com.google.cloud.metastore.v1beta.ListMetadataImportsRequest request, - io.grpc.stub.StreamObserver
- * Gets details of a single import. - *- */ - public void getMetadataImport( - com.google.cloud.metastore.v1beta.GetMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Creates a new MetadataImport in a given project and location. - *- */ - public void createMetadataImport( - com.google.cloud.metastore.v1beta.CreateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public void updateMetadataImport( - com.google.cloud.metastore.v1beta.UpdateMetadataImportRequest request, - io.grpc.stub.StreamObserver
- * Exports metadata from a service. - *- */ - public void exportMetadata( - com.google.cloud.metastore.v1beta.ExportMetadataRequest request, - io.grpc.stub.StreamObserver
- * Restores a service from a backup. - *- */ - public void restoreService( - com.google.cloud.metastore.v1beta.RestoreServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists backups in a service. - *- */ - public void listBackups( - com.google.cloud.metastore.v1beta.ListBackupsRequest request, - io.grpc.stub.StreamObserver
- * Gets details of a single backup. - *- */ - public void getBackup( - com.google.cloud.metastore.v1beta.GetBackupRequest request, - io.grpc.stub.StreamObserver
- * Creates a new Backup in a given project and location. - *- */ - public void createBackup( - com.google.cloud.metastore.v1beta.CreateBackupRequest request, - io.grpc.stub.StreamObserver
- * Deletes a single backup. - *- */ - public void deleteBackup( - com.google.cloud.metastore.v1beta.DeleteBackupRequest request, - io.grpc.stub.StreamObserver
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public static final class DataprocMetastoreBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Lists services in a project and location. - *- */ - public com.google.cloud.metastore.v1beta.ListServicesResponse listServices( - com.google.cloud.metastore.v1beta.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets the details of a single service. - *- */ - public com.google.cloud.metastore.v1beta.Service getService( - com.google.cloud.metastore.v1beta.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a metastore service in a project and location. - *- */ - public com.google.longrunning.Operation createService( - com.google.cloud.metastore.v1beta.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates the parameters of a single service. - *- */ - public com.google.longrunning.Operation updateService( - com.google.cloud.metastore.v1beta.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a single service. - *- */ - public com.google.longrunning.Operation deleteService( - com.google.cloud.metastore.v1beta.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists imports in a service. - *- */ - public com.google.cloud.metastore.v1beta.ListMetadataImportsResponse listMetadataImports( - com.google.cloud.metastore.v1beta.ListMetadataImportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMetadataImportsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets details of a single import. - *- */ - public com.google.cloud.metastore.v1beta.MetadataImport getMetadataImport( - com.google.cloud.metastore.v1beta.GetMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMetadataImportMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a new MetadataImport in a given project and location. - *- */ - public com.google.longrunning.Operation createMetadataImport( - com.google.cloud.metastore.v1beta.CreateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMetadataImportMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public com.google.longrunning.Operation updateMetadataImport( - com.google.cloud.metastore.v1beta.UpdateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMetadataImportMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Exports metadata from a service. - *- */ - public com.google.longrunning.Operation exportMetadata( - com.google.cloud.metastore.v1beta.ExportMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportMetadataMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Restores a service from a backup. - *- */ - public com.google.longrunning.Operation restoreService( - com.google.cloud.metastore.v1beta.RestoreServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists backups in a service. - *- */ - public com.google.cloud.metastore.v1beta.ListBackupsResponse listBackups( - com.google.cloud.metastore.v1beta.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets details of a single backup. - *- */ - public com.google.cloud.metastore.v1beta.Backup getBackup( - com.google.cloud.metastore.v1beta.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a new Backup in a given project and location. - *- */ - public com.google.longrunning.Operation createBackup( - com.google.cloud.metastore.v1beta.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a single backup. - *- */ - public com.google.longrunning.Operation deleteBackup( - com.google.cloud.metastore.v1beta.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * Configures and manages metastore services. - * Metastore services are fully managed, highly available, auto-scaled, - * auto-healing, OSS-native deployments of technical metadata management - * software. Each metastore service exposes a network endpoint through which - * metadata queries are served. Metadata queries can originate from a variety - * of sources, including Apache Hive, Apache Presto, and Apache Spark. - * The Dataproc Metastore API defines the following resource model: - * * The service works with a collection of Google Cloud projects, named: - * `/projects/*` - * * Each project has a collection of available locations, named: `/locations/*` - * (a location must refer to a Google Cloud `region`) - * * Each location has a collection of services, named: `/services/*` - * * Dataproc Metastore services are resources with names of the form: - * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. - *- */ - public static final class DataprocMetastoreFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Lists services in a project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1beta.ListServicesResponse> - listServices(com.google.cloud.metastore.v1beta.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets the details of a single service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1beta.Service> - getService(com.google.cloud.metastore.v1beta.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Creates a metastore service in a project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Updates the parameters of a single service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Deletes a single service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Lists imports in a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1beta.ListMetadataImportsResponse> - listMetadataImports(com.google.cloud.metastore.v1beta.ListMetadataImportsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMetadataImportsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets details of a single import. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1beta.MetadataImport> - getMetadataImport(com.google.cloud.metastore.v1beta.GetMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMetadataImportMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Creates a new MetadataImport in a given project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Exports metadata from a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Restores a service from a backup. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Lists backups in a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1beta.ListBackupsResponse> - listBackups(com.google.cloud.metastore.v1beta.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets details of a single backup. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.metastore.v1beta.Backup> - getBackup(com.google.cloud.metastore.v1beta.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Creates a new Backup in a given project and location. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Deletes a single backup. - *- */ - public com.google.common.util.concurrent.ListenableFuture
The Dataproc Metastore API defines the following resource model: * *
`/projects/{project_number}/locations/{location_id}/services/{service_id}`. @@ -77,13 +77,13 @@ * methods: * *
Sample code: + * + *
{@code + * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) { + * ServiceName service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + * BackupName backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]"); + * Restore response = dataprocMetastoreClient.restoreServiceAsync(service, backup).get(); + * } + * }+ * + * @param service Required. The relative resource name of the metastore service to run restore, in + * the following form: + *
`projects/{project_id}/locations/{location_id}/services/{service_id}`. + * @param backup Required. The relative resource name of the metastore service backup to restore + * from, in the following form: + *
`projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * `projects/{project_id}/locations/{location_id}/services/{service_id}`.
+ * @param backup Required. The relative resource name of the metastore service backup to restore
+ * from, in the following form:
+ * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * `projects/{project_id}/locations/{location_id}/services/{service_id}`.
+ * @param backup Required. The relative resource name of the metastore service backup to restore
+ * from, in the following form:
+ * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * `projects/{project_id}/locations/{location_id}/services/{service_id}`.
+ * @param backup Required. The relative resource name of the metastore service backup to restore
+ * from, in the following form:
+ * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupsPagedResponse listBackups(ServiceName parent) {
+ ListBackupsRequest request =
+ ListBackupsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBackups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists backups in a service.
+ *
+ * Sample code:
+ *
+ * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupsPagedResponse listBackups(String parent) {
+ ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build();
+ return listBackups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists backups in a service.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Backup getBackup(BackupName name) {
+ GetBackupRequest request =
+ GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getBackup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single backup.
+ *
+ * Sample code:
+ *
+ * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Backup getBackup(String name) {
+ GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build();
+ return getBackup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single backup.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ * @param backup Required. The backup to create. The `name` field is ignored. The ID of the
+ * created backup must be provided in the request's `backup_id` field.
+ * @param backupId Required. The ID of the backup, which is used as the final component of the
+ * backup's name.
+ * This value must be between 1 and 64 characters long, begin with a letter, end with a
+ * letter or number, and consist of alpha-numeric ASCII characters or hyphens.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * `projects/{project_number}/locations/{location_id}/services/{service_id}`.
+ * @param backup Required. The backup to create. The `name` field is ignored. The ID of the
+ * created backup must be provided in the request's `backup_id` field.
+ * @param backupId Required. The ID of the backup, which is used as the final component of the
+ * backup's name.
+ * This value must be between 1 and 64 characters long, begin with a letter, end with a
+ * letter or number, and consist of alpha-numeric ASCII characters or hyphens.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * ServiceName service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
+ * String backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
+ * Restore response = dataprocMetastoreClient.restoreServiceAsync(service, backup).get();
+ * }
+ * }
+ *
+ * @param service Required. The relative resource name of the metastore service to run restore, in
+ * the following form:
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * String service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
+ * BackupName backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
+ * Restore response = dataprocMetastoreClient.restoreServiceAsync(service, backup).get();
+ * }
+ * }
+ *
+ * @param service Required. The relative resource name of the metastore service to run restore, in
+ * the following form:
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * String service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
+ * String backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
+ * Restore response = dataprocMetastoreClient.restoreServiceAsync(service, backup).get();
+ * }
+ * }
+ *
+ * @param service Required. The relative resource name of the metastore service to run restore, in
+ * the following form:
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * RestoreServiceRequest request =
+ * RestoreServiceRequest.newBuilder()
+ * .setService(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setBackup(
+ * BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Restore response = dataprocMetastoreClient.restoreServiceAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * RestoreServiceRequest request =
+ * RestoreServiceRequest.newBuilder()
+ * .setService(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setBackup(
+ * BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * RestoreServiceRequest request =
+ * RestoreServiceRequest.newBuilder()
+ * .setService(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setBackup(
+ * BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
+ * for (Backup element : dataprocMetastoreClient.listBackups(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The relative resource name of the service whose backups to list, in the
+ * following form:
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
+ * for (Backup element : dataprocMetastoreClient.listBackups(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The relative resource name of the service whose backups to list, in the
+ * following form:
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * ListBackupsRequest request =
+ * ListBackupsRequest.newBuilder()
+ * .setParent(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (Backup element : dataprocMetastoreClient.listBackups(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) {
+ return listBackupsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists backups in a service.
+ *
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * ListBackupsRequest request =
+ * ListBackupsRequest.newBuilder()
+ * .setParent(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * ListBackupsRequest request =
+ * ListBackupsRequest.newBuilder()
+ * .setParent(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListBackupsResponse response = dataprocMetastoreClient.listBackupsCallable().call(request);
+ * for (Backup element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
+ * Backup response = dataprocMetastoreClient.getBackup(name);
+ * }
+ * }
+ *
+ * @param name Required. The relative resource name of the backup to retrieve, in the following
+ * form:
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * String name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
+ * Backup response = dataprocMetastoreClient.getBackup(name);
+ * }
+ * }
+ *
+ * @param name Required. The relative resource name of the backup to retrieve, in the following
+ * form:
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * GetBackupRequest request =
+ * GetBackupRequest.newBuilder()
+ * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString())
+ * .build();
+ * Backup response = dataprocMetastoreClient.getBackup(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Backup getBackup(GetBackupRequest request) {
+ return getBackupCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single backup.
+ *
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * GetBackupRequest request =
+ * GetBackupRequest.newBuilder()
+ * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
+ * Backup backup = Backup.newBuilder().build();
+ * String backupId = "backupId2121930365";
+ * Backup response = dataprocMetastoreClient.createBackupAsync(parent, backup, backupId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The relative resource name of the service in which to create a backup
+ * of the following form:
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
+ * Backup backup = Backup.newBuilder().build();
+ * String backupId = "backupId2121930365";
+ * Backup response = dataprocMetastoreClient.createBackupAsync(parent, backup, backupId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The relative resource name of the service in which to create a backup
+ * of the following form:
+ * {@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * CreateBackupRequest request =
+ * CreateBackupRequest.newBuilder()
+ * .setParent(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setBackupId("backupId2121930365")
+ * .setBackup(Backup.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Backup response = dataprocMetastoreClient.createBackupAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * CreateBackupRequest request =
+ * CreateBackupRequest.newBuilder()
+ * .setParent(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setBackupId("backupId2121930365")
+ * .setBackup(Backup.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * try (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
+ * CreateBackupRequest request =
+ * CreateBackupRequest.newBuilder()
+ * .setParent(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+ * .setBackupId("backupId2121930365")
+ * .setBackup(Backup.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture