com.google.cloud.metastore.v1.DataprocMetastoreGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-google-cloud-dataproc-metastore-v1 Show documentation
Show all versions of grpc-google-cloud-dataproc-metastore-v1 Show documentation
GRPC library for google-cloud-dataproc-metastore
/*
* 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.cloud.metastore.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
*
*
* Configures and manages metastore services.
* Metastore services are fully managed, highly available, autoscaled,
* autohealing, 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")
@io.grpc.stub.annotations.GrpcGenerated
public final class DataprocMetastoreGrpc {
private DataprocMetastoreGrpc() {}
public static final java.lang.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
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.ListServicesRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.ListServicesResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("ListServices"))
.build();
}
}
}
return getListServicesMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.GetServiceRequest, com.google.cloud.metastore.v1.Service>
getGetServiceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetService",
requestType = com.google.cloud.metastore.v1.GetServiceRequest.class,
responseType = com.google.cloud.metastore.v1.Service.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.GetServiceRequest, com.google.cloud.metastore.v1.Service>
getGetServiceMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.GetServiceRequest, com.google.cloud.metastore.v1.Service>
getGetServiceMethod;
if ((getGetServiceMethod = DataprocMetastoreGrpc.getGetServiceMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getGetServiceMethod = DataprocMetastoreGrpc.getGetServiceMethod) == null) {
DataprocMetastoreGrpc.getGetServiceMethod =
getGetServiceMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.GetServiceRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.Service.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("GetService"))
.build();
}
}
}
return getGetServiceMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.CreateServiceRequest, com.google.longrunning.Operation>
getCreateServiceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateService",
requestType = com.google.cloud.metastore.v1.CreateServiceRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.CreateServiceRequest, com.google.longrunning.Operation>
getCreateServiceMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.CreateServiceRequest, com.google.longrunning.Operation>
getCreateServiceMethod;
if ((getCreateServiceMethod = DataprocMetastoreGrpc.getCreateServiceMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getCreateServiceMethod = DataprocMetastoreGrpc.getCreateServiceMethod) == null) {
DataprocMetastoreGrpc.getCreateServiceMethod =
getCreateServiceMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateService"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.CreateServiceRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("CreateService"))
.build();
}
}
}
return getCreateServiceMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.UpdateServiceRequest, com.google.longrunning.Operation>
getUpdateServiceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateService",
requestType = com.google.cloud.metastore.v1.UpdateServiceRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.UpdateServiceRequest, com.google.longrunning.Operation>
getUpdateServiceMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.UpdateServiceRequest, com.google.longrunning.Operation>
getUpdateServiceMethod;
if ((getUpdateServiceMethod = DataprocMetastoreGrpc.getUpdateServiceMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getUpdateServiceMethod = DataprocMetastoreGrpc.getUpdateServiceMethod) == null) {
DataprocMetastoreGrpc.getUpdateServiceMethod =
getUpdateServiceMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.UpdateServiceRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("UpdateService"))
.build();
}
}
}
return getUpdateServiceMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.DeleteServiceRequest, com.google.longrunning.Operation>
getDeleteServiceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteService",
requestType = com.google.cloud.metastore.v1.DeleteServiceRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.DeleteServiceRequest, com.google.longrunning.Operation>
getDeleteServiceMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.DeleteServiceRequest, com.google.longrunning.Operation>
getDeleteServiceMethod;
if ((getDeleteServiceMethod = DataprocMetastoreGrpc.getDeleteServiceMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getDeleteServiceMethod = DataprocMetastoreGrpc.getDeleteServiceMethod) == null) {
DataprocMetastoreGrpc.getDeleteServiceMethod =
getDeleteServiceMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.DeleteServiceRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("DeleteService"))
.build();
}
}
}
return getDeleteServiceMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.ListMetadataImportsRequest,
com.google.cloud.metastore.v1.ListMetadataImportsResponse>
getListMetadataImportsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListMetadataImports",
requestType = com.google.cloud.metastore.v1.ListMetadataImportsRequest.class,
responseType = com.google.cloud.metastore.v1.ListMetadataImportsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.ListMetadataImportsRequest,
com.google.cloud.metastore.v1.ListMetadataImportsResponse>
getListMetadataImportsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.ListMetadataImportsRequest,
com.google.cloud.metastore.v1.ListMetadataImportsResponse>
getListMetadataImportsMethod;
if ((getListMetadataImportsMethod = DataprocMetastoreGrpc.getListMetadataImportsMethod)
== null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getListMetadataImportsMethod = DataprocMetastoreGrpc.getListMetadataImportsMethod)
== null) {
DataprocMetastoreGrpc.getListMetadataImportsMethod =
getListMetadataImportsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ListMetadataImports"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.ListMetadataImportsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.ListMetadataImportsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("ListMetadataImports"))
.build();
}
}
}
return getListMetadataImportsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.GetMetadataImportRequest,
com.google.cloud.metastore.v1.MetadataImport>
getGetMetadataImportMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetMetadataImport",
requestType = com.google.cloud.metastore.v1.GetMetadataImportRequest.class,
responseType = com.google.cloud.metastore.v1.MetadataImport.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.GetMetadataImportRequest,
com.google.cloud.metastore.v1.MetadataImport>
getGetMetadataImportMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.GetMetadataImportRequest,
com.google.cloud.metastore.v1.MetadataImport>
getGetMetadataImportMethod;
if ((getGetMetadataImportMethod = DataprocMetastoreGrpc.getGetMetadataImportMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getGetMetadataImportMethod = DataprocMetastoreGrpc.getGetMetadataImportMethod)
== null) {
DataprocMetastoreGrpc.getGetMetadataImportMethod =
getGetMetadataImportMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetadataImport"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.GetMetadataImportRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.MetadataImport.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("GetMetadataImport"))
.build();
}
}
}
return getGetMetadataImportMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.CreateMetadataImportRequest,
com.google.longrunning.Operation>
getCreateMetadataImportMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateMetadataImport",
requestType = com.google.cloud.metastore.v1.CreateMetadataImportRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.CreateMetadataImportRequest,
com.google.longrunning.Operation>
getCreateMetadataImportMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.CreateMetadataImportRequest,
com.google.longrunning.Operation>
getCreateMetadataImportMethod;
if ((getCreateMetadataImportMethod = DataprocMetastoreGrpc.getCreateMetadataImportMethod)
== null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getCreateMetadataImportMethod = DataprocMetastoreGrpc.getCreateMetadataImportMethod)
== null) {
DataprocMetastoreGrpc.getCreateMetadataImportMethod =
getCreateMetadataImportMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "CreateMetadataImport"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.CreateMetadataImportRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("CreateMetadataImport"))
.build();
}
}
}
return getCreateMetadataImportMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.UpdateMetadataImportRequest,
com.google.longrunning.Operation>
getUpdateMetadataImportMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateMetadataImport",
requestType = com.google.cloud.metastore.v1.UpdateMetadataImportRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.UpdateMetadataImportRequest,
com.google.longrunning.Operation>
getUpdateMetadataImportMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.UpdateMetadataImportRequest,
com.google.longrunning.Operation>
getUpdateMetadataImportMethod;
if ((getUpdateMetadataImportMethod = DataprocMetastoreGrpc.getUpdateMetadataImportMethod)
== null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getUpdateMetadataImportMethod = DataprocMetastoreGrpc.getUpdateMetadataImportMethod)
== null) {
DataprocMetastoreGrpc.getUpdateMetadataImportMethod =
getUpdateMetadataImportMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "UpdateMetadataImport"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.UpdateMetadataImportRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("UpdateMetadataImport"))
.build();
}
}
}
return getUpdateMetadataImportMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.ExportMetadataRequest, com.google.longrunning.Operation>
getExportMetadataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ExportMetadata",
requestType = com.google.cloud.metastore.v1.ExportMetadataRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.ExportMetadataRequest, com.google.longrunning.Operation>
getExportMetadataMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.ExportMetadataRequest, com.google.longrunning.Operation>
getExportMetadataMethod;
if ((getExportMetadataMethod = DataprocMetastoreGrpc.getExportMetadataMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getExportMetadataMethod = DataprocMetastoreGrpc.getExportMetadataMethod) == null) {
DataprocMetastoreGrpc.getExportMetadataMethod =
getExportMetadataMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportMetadata"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.ExportMetadataRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("ExportMetadata"))
.build();
}
}
}
return getExportMetadataMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.RestoreServiceRequest, com.google.longrunning.Operation>
getRestoreServiceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RestoreService",
requestType = com.google.cloud.metastore.v1.RestoreServiceRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.RestoreServiceRequest, com.google.longrunning.Operation>
getRestoreServiceMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.RestoreServiceRequest, com.google.longrunning.Operation>
getRestoreServiceMethod;
if ((getRestoreServiceMethod = DataprocMetastoreGrpc.getRestoreServiceMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getRestoreServiceMethod = DataprocMetastoreGrpc.getRestoreServiceMethod) == null) {
DataprocMetastoreGrpc.getRestoreServiceMethod =
getRestoreServiceMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreService"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.RestoreServiceRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("RestoreService"))
.build();
}
}
}
return getRestoreServiceMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.ListBackupsRequest,
com.google.cloud.metastore.v1.ListBackupsResponse>
getListBackupsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListBackups",
requestType = com.google.cloud.metastore.v1.ListBackupsRequest.class,
responseType = com.google.cloud.metastore.v1.ListBackupsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.ListBackupsRequest,
com.google.cloud.metastore.v1.ListBackupsResponse>
getListBackupsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.ListBackupsRequest,
com.google.cloud.metastore.v1.ListBackupsResponse>
getListBackupsMethod;
if ((getListBackupsMethod = DataprocMetastoreGrpc.getListBackupsMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getListBackupsMethod = DataprocMetastoreGrpc.getListBackupsMethod) == null) {
DataprocMetastoreGrpc.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.cloud.metastore.v1.ListBackupsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.ListBackupsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("ListBackups"))
.build();
}
}
}
return getListBackupsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.GetBackupRequest, com.google.cloud.metastore.v1.Backup>
getGetBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBackup",
requestType = com.google.cloud.metastore.v1.GetBackupRequest.class,
responseType = com.google.cloud.metastore.v1.Backup.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.GetBackupRequest, com.google.cloud.metastore.v1.Backup>
getGetBackupMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.GetBackupRequest, com.google.cloud.metastore.v1.Backup>
getGetBackupMethod;
if ((getGetBackupMethod = DataprocMetastoreGrpc.getGetBackupMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getGetBackupMethod = DataprocMetastoreGrpc.getGetBackupMethod) == null) {
DataprocMetastoreGrpc.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.cloud.metastore.v1.GetBackupRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.Backup.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("GetBackup"))
.build();
}
}
}
return getGetBackupMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.CreateBackupRequest, com.google.longrunning.Operation>
getCreateBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateBackup",
requestType = com.google.cloud.metastore.v1.CreateBackupRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.CreateBackupRequest, com.google.longrunning.Operation>
getCreateBackupMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.CreateBackupRequest, com.google.longrunning.Operation>
getCreateBackupMethod;
if ((getCreateBackupMethod = DataprocMetastoreGrpc.getCreateBackupMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getCreateBackupMethod = DataprocMetastoreGrpc.getCreateBackupMethod) == null) {
DataprocMetastoreGrpc.getCreateBackupMethod =
getCreateBackupMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackup"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.CreateBackupRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("CreateBackup"))
.build();
}
}
}
return getCreateBackupMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.DeleteBackupRequest, com.google.longrunning.Operation>
getDeleteBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteBackup",
requestType = com.google.cloud.metastore.v1.DeleteBackupRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.DeleteBackupRequest, com.google.longrunning.Operation>
getDeleteBackupMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.DeleteBackupRequest, com.google.longrunning.Operation>
getDeleteBackupMethod;
if ((getDeleteBackupMethod = DataprocMetastoreGrpc.getDeleteBackupMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getDeleteBackupMethod = DataprocMetastoreGrpc.getDeleteBackupMethod) == null) {
DataprocMetastoreGrpc.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.cloud.metastore.v1.DeleteBackupRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("DeleteBackup"))
.build();
}
}
}
return getDeleteBackupMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.QueryMetadataRequest, com.google.longrunning.Operation>
getQueryMetadataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "QueryMetadata",
requestType = com.google.cloud.metastore.v1.QueryMetadataRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.QueryMetadataRequest, com.google.longrunning.Operation>
getQueryMetadataMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.QueryMetadataRequest, com.google.longrunning.Operation>
getQueryMetadataMethod;
if ((getQueryMetadataMethod = DataprocMetastoreGrpc.getQueryMetadataMethod) == null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getQueryMetadataMethod = DataprocMetastoreGrpc.getQueryMetadataMethod) == null) {
DataprocMetastoreGrpc.getQueryMetadataMethod =
getQueryMetadataMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryMetadata"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.QueryMetadataRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("QueryMetadata"))
.build();
}
}
}
return getQueryMetadataMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.MoveTableToDatabaseRequest,
com.google.longrunning.Operation>
getMoveTableToDatabaseMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MoveTableToDatabase",
requestType = com.google.cloud.metastore.v1.MoveTableToDatabaseRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.MoveTableToDatabaseRequest,
com.google.longrunning.Operation>
getMoveTableToDatabaseMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.MoveTableToDatabaseRequest,
com.google.longrunning.Operation>
getMoveTableToDatabaseMethod;
if ((getMoveTableToDatabaseMethod = DataprocMetastoreGrpc.getMoveTableToDatabaseMethod)
== null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getMoveTableToDatabaseMethod = DataprocMetastoreGrpc.getMoveTableToDatabaseMethod)
== null) {
DataprocMetastoreGrpc.getMoveTableToDatabaseMethod =
getMoveTableToDatabaseMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "MoveTableToDatabase"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.MoveTableToDatabaseRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier("MoveTableToDatabase"))
.build();
}
}
}
return getMoveTableToDatabaseMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest,
com.google.longrunning.Operation>
getAlterMetadataResourceLocationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AlterMetadataResourceLocation",
requestType = com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest,
com.google.longrunning.Operation>
getAlterMetadataResourceLocationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest,
com.google.longrunning.Operation>
getAlterMetadataResourceLocationMethod;
if ((getAlterMetadataResourceLocationMethod =
DataprocMetastoreGrpc.getAlterMetadataResourceLocationMethod)
== null) {
synchronized (DataprocMetastoreGrpc.class) {
if ((getAlterMetadataResourceLocationMethod =
DataprocMetastoreGrpc.getAlterMetadataResourceLocationMethod)
== null) {
DataprocMetastoreGrpc.getAlterMetadataResourceLocationMethod =
getAlterMetadataResourceLocationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "AlterMetadataResourceLocation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DataprocMetastoreMethodDescriptorSupplier(
"AlterMetadataResourceLocation"))
.build();
}
}
}
return getAlterMetadataResourceLocationMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static DataprocMetastoreStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DataprocMetastoreStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DataprocMetastoreStub(channel, callOptions);
}
};
return DataprocMetastoreStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static DataprocMetastoreBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DataprocMetastoreBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DataprocMetastoreBlockingStub(channel, callOptions);
}
};
return DataprocMetastoreBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static DataprocMetastoreFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DataprocMetastoreFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DataprocMetastoreFutureStub(channel, callOptions);
}
};
return DataprocMetastoreFutureStub.newStub(factory, channel);
}
/**
*
*
*
* Configures and manages metastore services.
* Metastore services are fully managed, highly available, autoscaled,
* autohealing, 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 interface AsyncService {
/**
*
*
*
* Lists services in a project and location.
*
*/
default void listServices(
com.google.cloud.metastore.v1.ListServicesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListServicesMethod(), responseObserver);
}
/**
*
*
*
* Gets the details of a single service.
*
*/
default void getService(
com.google.cloud.metastore.v1.GetServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver);
}
/**
*
*
*
* Creates a metastore service in a project and location.
*
*/
default void createService(
com.google.cloud.metastore.v1.CreateServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateServiceMethod(), responseObserver);
}
/**
*
*
*
* Updates the parameters of a single service.
*
*/
default void updateService(
com.google.cloud.metastore.v1.UpdateServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateServiceMethod(), responseObserver);
}
/**
*
*
*
* Deletes a single service.
*
*/
default void deleteService(
com.google.cloud.metastore.v1.DeleteServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteServiceMethod(), responseObserver);
}
/**
*
*
*
* Lists imports in a service.
*
*/
default void listMetadataImports(
com.google.cloud.metastore.v1.ListMetadataImportsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListMetadataImportsMethod(), responseObserver);
}
/**
*
*
*
* Gets details of a single import.
*
*/
default void getMetadataImport(
com.google.cloud.metastore.v1.GetMetadataImportRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetMetadataImportMethod(), responseObserver);
}
/**
*
*
*
* Creates a new MetadataImport in a given project and location.
*
*/
default void createMetadataImport(
com.google.cloud.metastore.v1.CreateMetadataImportRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateMetadataImportMethod(), responseObserver);
}
/**
*
*
*
* Updates a single import.
* Only the description field of MetadataImport is supported to be updated.
*
*/
default void updateMetadataImport(
com.google.cloud.metastore.v1.UpdateMetadataImportRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateMetadataImportMethod(), responseObserver);
}
/**
*
*
*
* Exports metadata from a service.
*
*/
default void exportMetadata(
com.google.cloud.metastore.v1.ExportMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getExportMetadataMethod(), responseObserver);
}
/**
*
*
*
* Restores a service from a backup.
*
*/
default void restoreService(
com.google.cloud.metastore.v1.RestoreServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getRestoreServiceMethod(), responseObserver);
}
/**
*
*
*
* Lists backups in a service.
*
*/
default void listBackups(
com.google.cloud.metastore.v1.ListBackupsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListBackupsMethod(), responseObserver);
}
/**
*
*
*
* Gets details of a single backup.
*
*/
default void getBackup(
com.google.cloud.metastore.v1.GetBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver);
}
/**
*
*
*
* Creates a new backup in a given project and location.
*
*/
default void createBackup(
com.google.cloud.metastore.v1.CreateBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateBackupMethod(), responseObserver);
}
/**
*
*
*
* Deletes a single backup.
*
*/
default void deleteBackup(
com.google.cloud.metastore.v1.DeleteBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteBackupMethod(), responseObserver);
}
/**
*
*
*
* Query DPMS metadata.
*
*/
default void queryMetadata(
com.google.cloud.metastore.v1.QueryMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getQueryMetadataMethod(), responseObserver);
}
/**
*
*
*
* Move a table to another database.
*
*/
default void moveTableToDatabase(
com.google.cloud.metastore.v1.MoveTableToDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getMoveTableToDatabaseMethod(), responseObserver);
}
/**
*
*
*
* Alter metadata resource location. The metadata resource can be a database,
* table, or partition. This functionality only updates the parent directory
* for the respective metadata resource and does not transfer any existing
* data to the new location.
*
*/
default void alterMetadataResourceLocation(
com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getAlterMetadataResourceLocationMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service DataprocMetastore.
*
*
* Configures and manages metastore services.
* Metastore services are fully managed, highly available, autoscaled,
* autohealing, 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, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return DataprocMetastoreGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service DataprocMetastore.
*
*
* Configures and manages metastore services.
* Metastore services are fully managed, highly available, autoscaled,
* autohealing, 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 {
private DataprocMetastoreStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DataprocMetastoreStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DataprocMetastoreStub(channel, callOptions);
}
/**
*
*
*
* Lists services in a project and location.
*
*/
public void listServices(
com.google.cloud.metastore.v1.ListServicesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListServicesMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets the details of a single service.
*
*/
public void getService(
com.google.cloud.metastore.v1.GetServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver);
}
/**
*
*
*
* Creates a metastore service in a project and location.
*
*/
public void createService(
com.google.cloud.metastore.v1.CreateServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateServiceMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates the parameters of a single service.
*
*/
public void updateService(
com.google.cloud.metastore.v1.UpdateServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateServiceMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes a single service.
*
*/
public void deleteService(
com.google.cloud.metastore.v1.DeleteServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteServiceMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Lists imports in a service.
*
*/
public void listMetadataImports(
com.google.cloud.metastore.v1.ListMetadataImportsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMetadataImportsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets details of a single import.
*
*/
public void getMetadataImport(
com.google.cloud.metastore.v1.GetMetadataImportRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMetadataImportMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Creates a new MetadataImport in a given project and location.
*
*/
public void createMetadataImport(
com.google.cloud.metastore.v1.CreateMetadataImportRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMetadataImportMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* 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 responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateMetadataImportMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Exports metadata from a service.
*
*/
public void exportMetadata(
com.google.cloud.metastore.v1.ExportMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getExportMetadataMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Restores a service from a backup.
*
*/
public void restoreService(
com.google.cloud.metastore.v1.RestoreServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRestoreServiceMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Lists backups in a service.
*
*/
public void listBackups(
com.google.cloud.metastore.v1.ListBackupsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListBackupsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets details of a single backup.
*
*/
public void getBackup(
com.google.cloud.metastore.v1.GetBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver);
}
/**
*
*
*
* Creates a new backup in a given project and location.
*
*/
public void createBackup(
com.google.cloud.metastore.v1.CreateBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateBackupMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes a single backup.
*
*/
public void deleteBackup(
com.google.cloud.metastore.v1.DeleteBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteBackupMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Query DPMS metadata.
*
*/
public void queryMetadata(
com.google.cloud.metastore.v1.QueryMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getQueryMetadataMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Move a table to another database.
*
*/
public void moveTableToDatabase(
com.google.cloud.metastore.v1.MoveTableToDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMoveTableToDatabaseMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Alter metadata resource location. The metadata resource can be a database,
* table, or partition. This functionality only updates the parent directory
* for the respective metadata resource and does not transfer any existing
* data to the new location.
*
*/
public void alterMetadataResourceLocation(
com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAlterMetadataResourceLocationMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service DataprocMetastore.
*
*
* Configures and manages metastore services.
* Metastore services are fully managed, highly available, autoscaled,
* autohealing, 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 {
private DataprocMetastoreBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DataprocMetastoreBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DataprocMetastoreBlockingStub(channel, callOptions);
}
/**
*
*
*
* 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);
}
/**
*
*
*
* Restores a service from a backup.
*
*/
public com.google.longrunning.Operation restoreService(
com.google.cloud.metastore.v1.RestoreServiceRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRestoreServiceMethod(), getCallOptions(), request);
}
/**
*
*
*
* Lists backups in a service.
*
*/
public com.google.cloud.metastore.v1.ListBackupsResponse listBackups(
com.google.cloud.metastore.v1.ListBackupsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListBackupsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets details of a single backup.
*
*/
public com.google.cloud.metastore.v1.Backup getBackup(
com.google.cloud.metastore.v1.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.v1.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.v1.DeleteBackupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteBackupMethod(), getCallOptions(), request);
}
/**
*
*
*
* Query DPMS metadata.
*
*/
public com.google.longrunning.Operation queryMetadata(
com.google.cloud.metastore.v1.QueryMetadataRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getQueryMetadataMethod(), getCallOptions(), request);
}
/**
*
*
*
* Move a table to another database.
*
*/
public com.google.longrunning.Operation moveTableToDatabase(
com.google.cloud.metastore.v1.MoveTableToDatabaseRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMoveTableToDatabaseMethod(), getCallOptions(), request);
}
/**
*
*
*
* Alter metadata resource location. The metadata resource can be a database,
* table, or partition. This functionality only updates the parent directory
* for the respective metadata resource and does not transfer any existing
* data to the new location.
*
*/
public com.google.longrunning.Operation alterMetadataResourceLocation(
com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAlterMetadataResourceLocationMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service DataprocMetastore.
*
*
* Configures and manages metastore services.
* Metastore services are fully managed, highly available, autoscaled,
* autohealing, 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 {
private DataprocMetastoreFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DataprocMetastoreFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DataprocMetastoreFutureStub(channel, callOptions);
}
/**
*
*
*
* 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
getService(com.google.cloud.metastore.v1.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
createService(com.google.cloud.metastore.v1.CreateServiceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates the parameters of a single service.
*
*/
public com.google.common.util.concurrent.ListenableFuture
updateService(com.google.cloud.metastore.v1.UpdateServiceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes a single service.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteService(com.google.cloud.metastore.v1.DeleteServiceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request);
}
/**
*
*
*
* 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
createMetadataImport(com.google.cloud.metastore.v1.CreateMetadataImportRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMetadataImportMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates a single import.
* Only the description field of MetadataImport is supported to be updated.
*
*/
public com.google.common.util.concurrent.ListenableFuture
updateMetadataImport(com.google.cloud.metastore.v1.UpdateMetadataImportRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateMetadataImportMethod(), getCallOptions()), request);
}
/**
*
*
*
* Exports metadata from a service.
*
*/
public com.google.common.util.concurrent.ListenableFuture
exportMetadata(com.google.cloud.metastore.v1.ExportMetadataRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getExportMetadataMethod(), getCallOptions()), request);
}
/**
*
*
*
* Restores a service from a backup.
*
*/
public com.google.common.util.concurrent.ListenableFuture
restoreService(com.google.cloud.metastore.v1.RestoreServiceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRestoreServiceMethod(), getCallOptions()), request);
}
/**
*
*
*
* Lists backups in a service.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.metastore.v1.ListBackupsResponse>
listBackups(com.google.cloud.metastore.v1.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
getBackup(com.google.cloud.metastore.v1.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
createBackup(com.google.cloud.metastore.v1.CreateBackupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes a single backup.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteBackup(com.google.cloud.metastore.v1.DeleteBackupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request);
}
/**
*
*
*
* Query DPMS metadata.
*
*/
public com.google.common.util.concurrent.ListenableFuture
queryMetadata(com.google.cloud.metastore.v1.QueryMetadataRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getQueryMetadataMethod(), getCallOptions()), request);
}
/**
*
*
*
* Move a table to another database.
*
*/
public com.google.common.util.concurrent.ListenableFuture
moveTableToDatabase(com.google.cloud.metastore.v1.MoveTableToDatabaseRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMoveTableToDatabaseMethod(), getCallOptions()), request);
}
/**
*
*
*
* Alter metadata resource location. The metadata resource can be a database,
* table, or partition. This functionality only updates the parent directory
* for the respective metadata resource and does not transfer any existing
* data to the new location.
*
*/
public com.google.common.util.concurrent.ListenableFuture
alterMetadataResourceLocation(
com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAlterMetadataResourceLocationMethod(), getCallOptions()),
request);
}
}
private static final int METHODID_LIST_SERVICES = 0;
private static final int METHODID_GET_SERVICE = 1;
private static final int METHODID_CREATE_SERVICE = 2;
private static final int METHODID_UPDATE_SERVICE = 3;
private static final int METHODID_DELETE_SERVICE = 4;
private static final int METHODID_LIST_METADATA_IMPORTS = 5;
private static final int METHODID_GET_METADATA_IMPORT = 6;
private static final int METHODID_CREATE_METADATA_IMPORT = 7;
private static final int METHODID_UPDATE_METADATA_IMPORT = 8;
private static final int METHODID_EXPORT_METADATA = 9;
private static final int METHODID_RESTORE_SERVICE = 10;
private static final int METHODID_LIST_BACKUPS = 11;
private static final int METHODID_GET_BACKUP = 12;
private static final int METHODID_CREATE_BACKUP = 13;
private static final int METHODID_DELETE_BACKUP = 14;
private static final int METHODID_QUERY_METADATA = 15;
private static final int METHODID_MOVE_TABLE_TO_DATABASE = 16;
private static final int METHODID_ALTER_METADATA_RESOURCE_LOCATION = 17;
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_LIST_SERVICES:
serviceImpl.listServices(
(com.google.cloud.metastore.v1.ListServicesRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_GET_SERVICE:
serviceImpl.getService(
(com.google.cloud.metastore.v1.GetServiceRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_CREATE_SERVICE:
serviceImpl.createService(
(com.google.cloud.metastore.v1.CreateServiceRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_SERVICE:
serviceImpl.updateService(
(com.google.cloud.metastore.v1.UpdateServiceRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_SERVICE:
serviceImpl.deleteService(
(com.google.cloud.metastore.v1.DeleteServiceRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_METADATA_IMPORTS:
serviceImpl.listMetadataImports(
(com.google.cloud.metastore.v1.ListMetadataImportsRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.metastore.v1.ListMetadataImportsResponse>)
responseObserver);
break;
case METHODID_GET_METADATA_IMPORT:
serviceImpl.getMetadataImport(
(com.google.cloud.metastore.v1.GetMetadataImportRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_CREATE_METADATA_IMPORT:
serviceImpl.createMetadataImport(
(com.google.cloud.metastore.v1.CreateMetadataImportRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_METADATA_IMPORT:
serviceImpl.updateMetadataImport(
(com.google.cloud.metastore.v1.UpdateMetadataImportRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXPORT_METADATA:
serviceImpl.exportMetadata(
(com.google.cloud.metastore.v1.ExportMetadataRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESTORE_SERVICE:
serviceImpl.restoreService(
(com.google.cloud.metastore.v1.RestoreServiceRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_BACKUPS:
serviceImpl.listBackups(
(com.google.cloud.metastore.v1.ListBackupsRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_GET_BACKUP:
serviceImpl.getBackup(
(com.google.cloud.metastore.v1.GetBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_BACKUP:
serviceImpl.createBackup(
(com.google.cloud.metastore.v1.CreateBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_BACKUP:
serviceImpl.deleteBackup(
(com.google.cloud.metastore.v1.DeleteBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_QUERY_METADATA:
serviceImpl.queryMetadata(
(com.google.cloud.metastore.v1.QueryMetadataRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_MOVE_TABLE_TO_DATABASE:
serviceImpl.moveTableToDatabase(
(com.google.cloud.metastore.v1.MoveTableToDatabaseRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ALTER_METADATA_RESOURCE_LOCATION:
serviceImpl.alterMetadataResourceLocation(
(com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest) 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(
getListServicesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.ListServicesRequest,
com.google.cloud.metastore.v1.ListServicesResponse>(
service, METHODID_LIST_SERVICES)))
.addMethod(
getGetServiceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.GetServiceRequest,
com.google.cloud.metastore.v1.Service>(service, METHODID_GET_SERVICE)))
.addMethod(
getCreateServiceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.CreateServiceRequest,
com.google.longrunning.Operation>(service, METHODID_CREATE_SERVICE)))
.addMethod(
getUpdateServiceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.UpdateServiceRequest,
com.google.longrunning.Operation>(service, METHODID_UPDATE_SERVICE)))
.addMethod(
getDeleteServiceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.DeleteServiceRequest,
com.google.longrunning.Operation>(service, METHODID_DELETE_SERVICE)))
.addMethod(
getListMetadataImportsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.ListMetadataImportsRequest,
com.google.cloud.metastore.v1.ListMetadataImportsResponse>(
service, METHODID_LIST_METADATA_IMPORTS)))
.addMethod(
getGetMetadataImportMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.GetMetadataImportRequest,
com.google.cloud.metastore.v1.MetadataImport>(
service, METHODID_GET_METADATA_IMPORT)))
.addMethod(
getCreateMetadataImportMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.CreateMetadataImportRequest,
com.google.longrunning.Operation>(service, METHODID_CREATE_METADATA_IMPORT)))
.addMethod(
getUpdateMetadataImportMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.UpdateMetadataImportRequest,
com.google.longrunning.Operation>(service, METHODID_UPDATE_METADATA_IMPORT)))
.addMethod(
getExportMetadataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.ExportMetadataRequest,
com.google.longrunning.Operation>(service, METHODID_EXPORT_METADATA)))
.addMethod(
getRestoreServiceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.RestoreServiceRequest,
com.google.longrunning.Operation>(service, METHODID_RESTORE_SERVICE)))
.addMethod(
getListBackupsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.ListBackupsRequest,
com.google.cloud.metastore.v1.ListBackupsResponse>(
service, METHODID_LIST_BACKUPS)))
.addMethod(
getGetBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.GetBackupRequest,
com.google.cloud.metastore.v1.Backup>(service, METHODID_GET_BACKUP)))
.addMethod(
getCreateBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.CreateBackupRequest,
com.google.longrunning.Operation>(service, METHODID_CREATE_BACKUP)))
.addMethod(
getDeleteBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.DeleteBackupRequest,
com.google.longrunning.Operation>(service, METHODID_DELETE_BACKUP)))
.addMethod(
getQueryMetadataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.QueryMetadataRequest,
com.google.longrunning.Operation>(service, METHODID_QUERY_METADATA)))
.addMethod(
getMoveTableToDatabaseMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.MoveTableToDatabaseRequest,
com.google.longrunning.Operation>(service, METHODID_MOVE_TABLE_TO_DATABASE)))
.addMethod(
getAlterMetadataResourceLocationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest,
com.google.longrunning.Operation>(
service, METHODID_ALTER_METADATA_RESOURCE_LOCATION)))
.build();
}
private abstract static class DataprocMetastoreBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
DataprocMetastoreBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.cloud.metastore.v1.MetastoreProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("DataprocMetastore");
}
}
private static final class DataprocMetastoreFileDescriptorSupplier
extends DataprocMetastoreBaseDescriptorSupplier {
DataprocMetastoreFileDescriptorSupplier() {}
}
private static final class DataprocMetastoreMethodDescriptorSupplier
extends DataprocMetastoreBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
DataprocMetastoreMethodDescriptorSupplier(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 (DataprocMetastoreGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new DataprocMetastoreFileDescriptorSupplier())
.addMethod(getListServicesMethod())
.addMethod(getGetServiceMethod())
.addMethod(getCreateServiceMethod())
.addMethod(getUpdateServiceMethod())
.addMethod(getDeleteServiceMethod())
.addMethod(getListMetadataImportsMethod())
.addMethod(getGetMetadataImportMethod())
.addMethod(getCreateMetadataImportMethod())
.addMethod(getUpdateMetadataImportMethod())
.addMethod(getExportMetadataMethod())
.addMethod(getRestoreServiceMethod())
.addMethod(getListBackupsMethod())
.addMethod(getGetBackupMethod())
.addMethod(getCreateBackupMethod())
.addMethod(getDeleteBackupMethod())
.addMethod(getQueryMetadataMethod())
.addMethod(getMoveTableToDatabaseMethod())
.addMethod(getAlterMetadataResourceLocationMethod())
.build();
}
}
}
return result;
}
}