| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// - protoc-gen-go-grpc v1.3.0 |
| 18 |
// - protoc v4.25.7 |
| 19 |
// source: google/cloud/metastore/v1alpha/metastore.proto |
| 20 |
|
| 21 |
package metastorepb |
| 22 |
|
| 23 |
import ( |
| 24 |
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| 25 |
context "context" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 29 |
) |
| 30 |
|
| 31 |
// This is a compile-time assertion to ensure that this generated file |
| 32 |
// is compatible with the grpc package it is being compiled against. |
| 33 |
// Requires gRPC-Go v1.32.0 or later. |
| 34 |
const _ = grpc.SupportPackageIsVersion7 |
| 35 |
|
| 36 |
const ( |
| 37 |
DataprocMetastore_ListServices_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/ListServices" |
| 38 |
DataprocMetastore_GetService_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/GetService" |
| 39 |
DataprocMetastore_CreateService_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/CreateService" |
| 40 |
DataprocMetastore_UpdateService_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/UpdateService" |
| 41 |
DataprocMetastore_DeleteService_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/DeleteService" |
| 42 |
DataprocMetastore_ListMetadataImports_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/ListMetadataImports" |
| 43 |
DataprocMetastore_GetMetadataImport_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/GetMetadataImport" |
| 44 |
DataprocMetastore_CreateMetadataImport_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/CreateMetadataImport" |
| 45 |
DataprocMetastore_UpdateMetadataImport_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/UpdateMetadataImport" |
| 46 |
DataprocMetastore_ExportMetadata_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/ExportMetadata" |
| 47 |
DataprocMetastore_RestoreService_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/RestoreService" |
| 48 |
DataprocMetastore_ListBackups_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/ListBackups" |
| 49 |
DataprocMetastore_GetBackup_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/GetBackup" |
| 50 |
DataprocMetastore_CreateBackup_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/CreateBackup" |
| 51 |
DataprocMetastore_DeleteBackup_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/DeleteBackup" |
| 52 |
DataprocMetastore_RemoveIamPolicy_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/RemoveIamPolicy" |
| 53 |
DataprocMetastore_QueryMetadata_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/QueryMetadata" |
| 54 |
DataprocMetastore_MoveTableToDatabase_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/MoveTableToDatabase" |
| 55 |
DataprocMetastore_AlterMetadataResourceLocation_FullMethodName = "/google.cloud.metastore.v1alpha.DataprocMetastore/AlterMetadataResourceLocation" |
| 56 |
) |
| 57 |
|
| 58 |
// DataprocMetastoreClient is the client API for DataprocMetastore service. |
| 59 |
// |
| 60 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| 61 |
type DataprocMetastoreClient interface { |
| 62 |
// Lists services in a project and location. |
| 63 |
ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error) |
| 64 |
// Gets the details of a single service. |
| 65 |
GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*Service, error) |
| 66 |
// Creates a metastore service in a project and location. |
| 67 |
CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 68 |
// Updates the parameters of a single service. |
| 69 |
UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 70 |
// Deletes a single service. |
| 71 |
DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 72 |
// Lists imports in a service. |
| 73 |
ListMetadataImports(ctx context.Context, in *ListMetadataImportsRequest, opts ...grpc.CallOption) (*ListMetadataImportsResponse, error) |
| 74 |
// Gets details of a single import. |
| 75 |
GetMetadataImport(ctx context.Context, in *GetMetadataImportRequest, opts ...grpc.CallOption) (*MetadataImport, error) |
| 76 |
// Creates a new MetadataImport in a given project and location. |
| 77 |
CreateMetadataImport(ctx context.Context, in *CreateMetadataImportRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 78 |
// Updates a single import. |
| 79 |
// Only the description field of MetadataImport is supported to be updated. |
| 80 |
UpdateMetadataImport(ctx context.Context, in *UpdateMetadataImportRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 81 |
// Exports metadata from a service. |
| 82 |
ExportMetadata(ctx context.Context, in *ExportMetadataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 83 |
// Restores a service from a backup. |
| 84 |
RestoreService(ctx context.Context, in *RestoreServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 85 |
// Lists backups in a service. |
| 86 |
ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error) |
| 87 |
// Gets details of a single backup. |
| 88 |
GetBackup(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error) |
| 89 |
// Creates a new backup in a given project and location. |
| 90 |
CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 91 |
// Deletes a single backup. |
| 92 |
DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 93 |
// Removes the attached IAM policies for a resource |
| 94 |
RemoveIamPolicy(ctx context.Context, in *RemoveIamPolicyRequest, opts ...grpc.CallOption) (*RemoveIamPolicyResponse, error) |
| 95 |
// Query DPMS metadata. |
| 96 |
QueryMetadata(ctx context.Context, in *QueryMetadataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 97 |
// Move a table to another database. |
| 98 |
MoveTableToDatabase(ctx context.Context, in *MoveTableToDatabaseRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 99 |
// Alter metadata resource location. The metadata resource can be a database, |
| 100 |
// table, or partition. This functionality only updates the parent directory |
| 101 |
// for the respective metadata resource and does not transfer any existing |
| 102 |
// data to the new location. |
| 103 |
AlterMetadataResourceLocation(ctx context.Context, in *AlterMetadataResourceLocationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 104 |
} |
| 105 |
|
| 106 |
type dataprocMetastoreClient struct { |
| 107 |
cc grpc.ClientConnInterface |
| 108 |
} |
| 109 |
|
| 110 |
func NewDataprocMetastoreClient(cc grpc.ClientConnInterface) DataprocMetastoreClient { |
| 111 |
return &dataprocMetastoreClient{cc} |
| 112 |
} |
| 113 |
|
| 114 |
func (c *dataprocMetastoreClient) ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error) { |
| 115 |
out := new(ListServicesResponse) |
| 116 |
err := c.cc.Invoke(ctx, DataprocMetastore_ListServices_FullMethodName, in, out, opts...) |
| 117 |
if err != nil { |
| 118 |
return nil, err |
| 119 |
} |
| 120 |
return out, nil |
| 121 |
} |
| 122 |
|
| 123 |
func (c *dataprocMetastoreClient) GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*Service, error) { |
| 124 |
out := new(Service) |
| 125 |
err := c.cc.Invoke(ctx, DataprocMetastore_GetService_FullMethodName, in, out, opts...) |
| 126 |
if err != nil { |
| 127 |
return nil, err |
| 128 |
} |
| 129 |
return out, nil |
| 130 |
} |
| 131 |
|
| 132 |
func (c *dataprocMetastoreClient) CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 133 |
out := new(longrunningpb.Operation) |
| 134 |
err := c.cc.Invoke(ctx, DataprocMetastore_CreateService_FullMethodName, in, out, opts...) |
| 135 |
if err != nil { |
| 136 |
return nil, err |
| 137 |
} |
| 138 |
return out, nil |
| 139 |
} |
| 140 |
|
| 141 |
func (c *dataprocMetastoreClient) UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 142 |
out := new(longrunningpb.Operation) |
| 143 |
err := c.cc.Invoke(ctx, DataprocMetastore_UpdateService_FullMethodName, in, out, opts...) |
| 144 |
if err != nil { |
| 145 |
return nil, err |
| 146 |
} |
| 147 |
return out, nil |
| 148 |
} |
| 149 |
|
| 150 |
func (c *dataprocMetastoreClient) DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 151 |
out := new(longrunningpb.Operation) |
| 152 |
err := c.cc.Invoke(ctx, DataprocMetastore_DeleteService_FullMethodName, in, out, opts...) |
| 153 |
if err != nil { |
| 154 |
return nil, err |
| 155 |
} |
| 156 |
return out, nil |
| 157 |
} |
| 158 |
|
| 159 |
func (c *dataprocMetastoreClient) ListMetadataImports(ctx context.Context, in *ListMetadataImportsRequest, opts ...grpc.CallOption) (*ListMetadataImportsResponse, error) { |
| 160 |
out := new(ListMetadataImportsResponse) |
| 161 |
err := c.cc.Invoke(ctx, DataprocMetastore_ListMetadataImports_FullMethodName, in, out, opts...) |
| 162 |
if err != nil { |
| 163 |
return nil, err |
| 164 |
} |
| 165 |
return out, nil |
| 166 |
} |
| 167 |
|
| 168 |
func (c *dataprocMetastoreClient) GetMetadataImport(ctx context.Context, in *GetMetadataImportRequest, opts ...grpc.CallOption) (*MetadataImport, error) { |
| 169 |
out := new(MetadataImport) |
| 170 |
err := c.cc.Invoke(ctx, DataprocMetastore_GetMetadataImport_FullMethodName, in, out, opts...) |
| 171 |
if err != nil { |
| 172 |
return nil, err |
| 173 |
} |
| 174 |
return out, nil |
| 175 |
} |
| 176 |
|
| 177 |
func (c *dataprocMetastoreClient) CreateMetadataImport(ctx context.Context, in *CreateMetadataImportRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 178 |
out := new(longrunningpb.Operation) |
| 179 |
err := c.cc.Invoke(ctx, DataprocMetastore_CreateMetadataImport_FullMethodName, in, out, opts...) |
| 180 |
if err != nil { |
| 181 |
return nil, err |
| 182 |
} |
| 183 |
return out, nil |
| 184 |
} |
| 185 |
|
| 186 |
func (c *dataprocMetastoreClient) UpdateMetadataImport(ctx context.Context, in *UpdateMetadataImportRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 187 |
out := new(longrunningpb.Operation) |
| 188 |
err := c.cc.Invoke(ctx, DataprocMetastore_UpdateMetadataImport_FullMethodName, in, out, opts...) |
| 189 |
if err != nil { |
| 190 |
return nil, err |
| 191 |
} |
| 192 |
return out, nil |
| 193 |
} |
| 194 |
|
| 195 |
func (c *dataprocMetastoreClient) ExportMetadata(ctx context.Context, in *ExportMetadataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 196 |
out := new(longrunningpb.Operation) |
| 197 |
err := c.cc.Invoke(ctx, DataprocMetastore_ExportMetadata_FullMethodName, in, out, opts...) |
| 198 |
if err != nil { |
| 199 |
return nil, err |
| 200 |
} |
| 201 |
return out, nil |
| 202 |
} |
| 203 |
|
| 204 |
func (c *dataprocMetastoreClient) RestoreService(ctx context.Context, in *RestoreServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 205 |
out := new(longrunningpb.Operation) |
| 206 |
err := c.cc.Invoke(ctx, DataprocMetastore_RestoreService_FullMethodName, in, out, opts...) |
| 207 |
if err != nil { |
| 208 |
return nil, err |
| 209 |
} |
| 210 |
return out, nil |
| 211 |
} |
| 212 |
|
| 213 |
func (c *dataprocMetastoreClient) ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error) { |
| 214 |
out := new(ListBackupsResponse) |
| 215 |
err := c.cc.Invoke(ctx, DataprocMetastore_ListBackups_FullMethodName, in, out, opts...) |
| 216 |
if err != nil { |
| 217 |
return nil, err |
| 218 |
} |
| 219 |
return out, nil |
| 220 |
} |
| 221 |
|
| 222 |
func (c *dataprocMetastoreClient) GetBackup(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error) { |
| 223 |
out := new(Backup) |
| 224 |
err := c.cc.Invoke(ctx, DataprocMetastore_GetBackup_FullMethodName, in, out, opts...) |
| 225 |
if err != nil { |
| 226 |
return nil, err |
| 227 |
} |
| 228 |
return out, nil |
| 229 |
} |
| 230 |
|
| 231 |
func (c *dataprocMetastoreClient) CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 232 |
out := new(longrunningpb.Operation) |
| 233 |
err := c.cc.Invoke(ctx, DataprocMetastore_CreateBackup_FullMethodName, in, out, opts...) |
| 234 |
if err != nil { |
| 235 |
return nil, err |
| 236 |
} |
| 237 |
return out, nil |
| 238 |
} |
| 239 |
|
| 240 |
func (c *dataprocMetastoreClient) DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 241 |
out := new(longrunningpb.Operation) |
| 242 |
err := c.cc.Invoke(ctx, DataprocMetastore_DeleteBackup_FullMethodName, in, out, opts...) |
| 243 |
if err != nil { |
| 244 |
return nil, err |
| 245 |
} |
| 246 |
return out, nil |
| 247 |
} |
| 248 |
|
| 249 |
func (c *dataprocMetastoreClient) RemoveIamPolicy(ctx context.Context, in *RemoveIamPolicyRequest, opts ...grpc.CallOption) (*RemoveIamPolicyResponse, error) { |
| 250 |
out := new(RemoveIamPolicyResponse) |
| 251 |
err := c.cc.Invoke(ctx, DataprocMetastore_RemoveIamPolicy_FullMethodName, in, out, opts...) |
| 252 |
if err != nil { |
| 253 |
return nil, err |
| 254 |
} |
| 255 |
return out, nil |
| 256 |
} |
| 257 |
|
| 258 |
func (c *dataprocMetastoreClient) QueryMetadata(ctx context.Context, in *QueryMetadataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 259 |
out := new(longrunningpb.Operation) |
| 260 |
err := c.cc.Invoke(ctx, DataprocMetastore_QueryMetadata_FullMethodName, in, out, opts...) |
| 261 |
if err != nil { |
| 262 |
return nil, err |
| 263 |
} |
| 264 |
return out, nil |
| 265 |
} |
| 266 |
|
| 267 |
func (c *dataprocMetastoreClient) MoveTableToDatabase(ctx context.Context, in *MoveTableToDatabaseRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 268 |
out := new(longrunningpb.Operation) |
| 269 |
err := c.cc.Invoke(ctx, DataprocMetastore_MoveTableToDatabase_FullMethodName, in, out, opts...) |
| 270 |
if err != nil { |
| 271 |
return nil, err |
| 272 |
} |
| 273 |
return out, nil |
| 274 |
} |
| 275 |
|
| 276 |
func (c *dataprocMetastoreClient) AlterMetadataResourceLocation(ctx context.Context, in *AlterMetadataResourceLocationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 277 |
out := new(longrunningpb.Operation) |
| 278 |
err := c.cc.Invoke(ctx, DataprocMetastore_AlterMetadataResourceLocation_FullMethodName, in, out, opts...) |
| 279 |
if err != nil { |
| 280 |
return nil, err |
| 281 |
} |
| 282 |
return out, nil |
| 283 |
} |
| 284 |
|
| 285 |
// DataprocMetastoreServer is the server API for DataprocMetastore service. |
| 286 |
// All implementations should embed UnimplementedDataprocMetastoreServer |
| 287 |
// for forward compatibility |
| 288 |
type DataprocMetastoreServer interface { |
| 289 |
// Lists services in a project and location. |
| 290 |
ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) |
| 291 |
// Gets the details of a single service. |
| 292 |
GetService(context.Context, *GetServiceRequest) (*Service, error) |
| 293 |
// Creates a metastore service in a project and location. |
| 294 |
CreateService(context.Context, *CreateServiceRequest) (*longrunningpb.Operation, error) |
| 295 |
// Updates the parameters of a single service. |
| 296 |
UpdateService(context.Context, *UpdateServiceRequest) (*longrunningpb.Operation, error) |
| 297 |
// Deletes a single service. |
| 298 |
DeleteService(context.Context, *DeleteServiceRequest) (*longrunningpb.Operation, error) |
| 299 |
// Lists imports in a service. |
| 300 |
ListMetadataImports(context.Context, *ListMetadataImportsRequest) (*ListMetadataImportsResponse, error) |
| 301 |
// Gets details of a single import. |
| 302 |
GetMetadataImport(context.Context, *GetMetadataImportRequest) (*MetadataImport, error) |
| 303 |
// Creates a new MetadataImport in a given project and location. |
| 304 |
CreateMetadataImport(context.Context, *CreateMetadataImportRequest) (*longrunningpb.Operation, error) |
| 305 |
// Updates a single import. |
| 306 |
// Only the description field of MetadataImport is supported to be updated. |
| 307 |
UpdateMetadataImport(context.Context, *UpdateMetadataImportRequest) (*longrunningpb.Operation, error) |
| 308 |
// Exports metadata from a service. |
| 309 |
ExportMetadata(context.Context, *ExportMetadataRequest) (*longrunningpb.Operation, error) |
| 310 |
// Restores a service from a backup. |
| 311 |
RestoreService(context.Context, *RestoreServiceRequest) (*longrunningpb.Operation, error) |
| 312 |
// Lists backups in a service. |
| 313 |
ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error) |
| 314 |
// Gets details of a single backup. |
| 315 |
GetBackup(context.Context, *GetBackupRequest) (*Backup, error) |
| 316 |
// Creates a new backup in a given project and location. |
| 317 |
CreateBackup(context.Context, *CreateBackupRequest) (*longrunningpb.Operation, error) |
| 318 |
// Deletes a single backup. |
| 319 |
DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error) |
| 320 |
// Removes the attached IAM policies for a resource |
| 321 |
RemoveIamPolicy(context.Context, *RemoveIamPolicyRequest) (*RemoveIamPolicyResponse, error) |
| 322 |
// Query DPMS metadata. |
| 323 |
QueryMetadata(context.Context, *QueryMetadataRequest) (*longrunningpb.Operation, error) |
| 324 |
// Move a table to another database. |
| 325 |
MoveTableToDatabase(context.Context, *MoveTableToDatabaseRequest) (*longrunningpb.Operation, error) |
| 326 |
// Alter metadata resource location. The metadata resource can be a database, |
| 327 |
// table, or partition. This functionality only updates the parent directory |
| 328 |
// for the respective metadata resource and does not transfer any existing |
| 329 |
// data to the new location. |
| 330 |
AlterMetadataResourceLocation(context.Context, *AlterMetadataResourceLocationRequest) (*longrunningpb.Operation, error) |
| 331 |
} |
| 332 |
|
| 333 |
// UnimplementedDataprocMetastoreServer should be embedded to have forward compatible implementations. |
| 334 |
type UnimplementedDataprocMetastoreServer struct { |
| 335 |
} |
| 336 |
|
| 337 |
func (UnimplementedDataprocMetastoreServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { |
| 338 |
return nil, status.Errorf(codes.Unimplemented, "method ListServices not implemented") |
| 339 |
} |
| 340 |
func (UnimplementedDataprocMetastoreServer) GetService(context.Context, *GetServiceRequest) (*Service, error) { |
| 341 |
return nil, status.Errorf(codes.Unimplemented, "method GetService not implemented") |
| 342 |
} |
| 343 |
func (UnimplementedDataprocMetastoreServer) CreateService(context.Context, *CreateServiceRequest) (*longrunningpb.Operation, error) { |
| 344 |
return nil, status.Errorf(codes.Unimplemented, "method CreateService not implemented") |
| 345 |
} |
| 346 |
func (UnimplementedDataprocMetastoreServer) UpdateService(context.Context, *UpdateServiceRequest) (*longrunningpb.Operation, error) { |
| 347 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateService not implemented") |
| 348 |
} |
| 349 |
func (UnimplementedDataprocMetastoreServer) DeleteService(context.Context, *DeleteServiceRequest) (*longrunningpb.Operation, error) { |
| 350 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteService not implemented") |
| 351 |
} |
| 352 |
func (UnimplementedDataprocMetastoreServer) ListMetadataImports(context.Context, *ListMetadataImportsRequest) (*ListMetadataImportsResponse, error) { |
| 353 |
return nil, status.Errorf(codes.Unimplemented, "method ListMetadataImports not implemented") |
| 354 |
} |
| 355 |
func (UnimplementedDataprocMetastoreServer) GetMetadataImport(context.Context, *GetMetadataImportRequest) (*MetadataImport, error) { |
| 356 |
return nil, status.Errorf(codes.Unimplemented, "method GetMetadataImport not implemented") |
| 357 |
} |
| 358 |
func (UnimplementedDataprocMetastoreServer) CreateMetadataImport(context.Context, *CreateMetadataImportRequest) (*longrunningpb.Operation, error) { |
| 359 |
return nil, status.Errorf(codes.Unimplemented, "method CreateMetadataImport not implemented") |
| 360 |
} |
| 361 |
func (UnimplementedDataprocMetastoreServer) UpdateMetadataImport(context.Context, *UpdateMetadataImportRequest) (*longrunningpb.Operation, error) { |
| 362 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateMetadataImport not implemented") |
| 363 |
} |
| 364 |
func (UnimplementedDataprocMetastoreServer) ExportMetadata(context.Context, *ExportMetadataRequest) (*longrunningpb.Operation, error) { |
| 365 |
return nil, status.Errorf(codes.Unimplemented, "method ExportMetadata not implemented") |
| 366 |
} |
| 367 |
func (UnimplementedDataprocMetastoreServer) RestoreService(context.Context, *RestoreServiceRequest) (*longrunningpb.Operation, error) { |
| 368 |
return nil, status.Errorf(codes.Unimplemented, "method RestoreService not implemented") |
| 369 |
} |
| 370 |
func (UnimplementedDataprocMetastoreServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error) { |
| 371 |
return nil, status.Errorf(codes.Unimplemented, "method ListBackups not implemented") |
| 372 |
} |
| 373 |
func (UnimplementedDataprocMetastoreServer) GetBackup(context.Context, *GetBackupRequest) (*Backup, error) { |
| 374 |
return nil, status.Errorf(codes.Unimplemented, "method GetBackup not implemented") |
| 375 |
} |
| 376 |
func (UnimplementedDataprocMetastoreServer) CreateBackup(context.Context, *CreateBackupRequest) (*longrunningpb.Operation, error) { |
| 377 |
return nil, status.Errorf(codes.Unimplemented, "method CreateBackup not implemented") |
| 378 |
} |
| 379 |
func (UnimplementedDataprocMetastoreServer) DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error) { |
| 380 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteBackup not implemented") |
| 381 |
} |
| 382 |
func (UnimplementedDataprocMetastoreServer) RemoveIamPolicy(context.Context, *RemoveIamPolicyRequest) (*RemoveIamPolicyResponse, error) { |
| 383 |
return nil, status.Errorf(codes.Unimplemented, "method RemoveIamPolicy not implemented") |
| 384 |
} |
| 385 |
func (UnimplementedDataprocMetastoreServer) QueryMetadata(context.Context, *QueryMetadataRequest) (*longrunningpb.Operation, error) { |
| 386 |
return nil, status.Errorf(codes.Unimplemented, "method QueryMetadata not implemented") |
| 387 |
} |
| 388 |
func (UnimplementedDataprocMetastoreServer) MoveTableToDatabase(context.Context, *MoveTableToDatabaseRequest) (*longrunningpb.Operation, error) { |
| 389 |
return nil, status.Errorf(codes.Unimplemented, "method MoveTableToDatabase not implemented") |
| 390 |
} |
| 391 |
func (UnimplementedDataprocMetastoreServer) AlterMetadataResourceLocation(context.Context, *AlterMetadataResourceLocationRequest) (*longrunningpb.Operation, error) { |
| 392 |
return nil, status.Errorf(codes.Unimplemented, "method AlterMetadataResourceLocation not implemented") |
| 393 |
} |
| 394 |
|
| 395 |
// UnsafeDataprocMetastoreServer may be embedded to opt out of forward compatibility for this service. |
| 396 |
// Use of this interface is not recommended, as added methods to DataprocMetastoreServer will |
| 397 |
// result in compilation errors. |
| 398 |
type UnsafeDataprocMetastoreServer interface { |
| 399 |
mustEmbedUnimplementedDataprocMetastoreServer() |
| 400 |
} |
| 401 |
|
| 402 |
func RegisterDataprocMetastoreServer(s grpc.ServiceRegistrar, srv DataprocMetastoreServer) { |
| 403 |
s.RegisterService(&DataprocMetastore_ServiceDesc, srv) |
| 404 |
} |
| 405 |
|
| 406 |
func _DataprocMetastore_ListServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 407 |
in := new(ListServicesRequest) |
| 408 |
if err := dec(in); err != nil { |
| 409 |
return nil, err |
| 410 |
} |
| 411 |
if interceptor == nil { |
| 412 |
return srv.(DataprocMetastoreServer).ListServices(ctx, in) |
| 413 |
} |
| 414 |
info := &grpc.UnaryServerInfo{ |
| 415 |
Server: srv, |
| 416 |
FullMethod: DataprocMetastore_ListServices_FullMethodName, |
| 417 |
} |
| 418 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 419 |
return srv.(DataprocMetastoreServer).ListServices(ctx, req.(*ListServicesRequest)) |
| 420 |
} |
| 421 |
return interceptor(ctx, in, info, handler) |
| 422 |
} |
| 423 |
|
| 424 |
func _DataprocMetastore_GetService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 425 |
in := new(GetServiceRequest) |
| 426 |
if err := dec(in); err != nil { |
| 427 |
return nil, err |
| 428 |
} |
| 429 |
if interceptor == nil { |
| 430 |
return srv.(DataprocMetastoreServer).GetService(ctx, in) |
| 431 |
} |
| 432 |
info := &grpc.UnaryServerInfo{ |
| 433 |
Server: srv, |
| 434 |
FullMethod: DataprocMetastore_GetService_FullMethodName, |
| 435 |
} |
| 436 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 437 |
return srv.(DataprocMetastoreServer).GetService(ctx, req.(*GetServiceRequest)) |
| 438 |
} |
| 439 |
return interceptor(ctx, in, info, handler) |
| 440 |
} |
| 441 |
|
| 442 |
func _DataprocMetastore_CreateService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 443 |
in := new(CreateServiceRequest) |
| 444 |
if err := dec(in); err != nil { |
| 445 |
return nil, err |
| 446 |
} |
| 447 |
if interceptor == nil { |
| 448 |
return srv.(DataprocMetastoreServer).CreateService(ctx, in) |
| 449 |
} |
| 450 |
info := &grpc.UnaryServerInfo{ |
| 451 |
Server: srv, |
| 452 |
FullMethod: DataprocMetastore_CreateService_FullMethodName, |
| 453 |
} |
| 454 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 455 |
return srv.(DataprocMetastoreServer).CreateService(ctx, req.(*CreateServiceRequest)) |
| 456 |
} |
| 457 |
return interceptor(ctx, in, info, handler) |
| 458 |
} |
| 459 |
|
| 460 |
func _DataprocMetastore_UpdateService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 461 |
in := new(UpdateServiceRequest) |
| 462 |
if err := dec(in); err != nil { |
| 463 |
return nil, err |
| 464 |
} |
| 465 |
if interceptor == nil { |
| 466 |
return srv.(DataprocMetastoreServer).UpdateService(ctx, in) |
| 467 |
} |
| 468 |
info := &grpc.UnaryServerInfo{ |
| 469 |
Server: srv, |
| 470 |
FullMethod: DataprocMetastore_UpdateService_FullMethodName, |
| 471 |
} |
| 472 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 473 |
return srv.(DataprocMetastoreServer).UpdateService(ctx, req.(*UpdateServiceRequest)) |
| 474 |
} |
| 475 |
return interceptor(ctx, in, info, handler) |
| 476 |
} |
| 477 |
|
| 478 |
func _DataprocMetastore_DeleteService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 479 |
in := new(DeleteServiceRequest) |
| 480 |
if err := dec(in); err != nil { |
| 481 |
return nil, err |
| 482 |
} |
| 483 |
if interceptor == nil { |
| 484 |
return srv.(DataprocMetastoreServer).DeleteService(ctx, in) |
| 485 |
} |
| 486 |
info := &grpc.UnaryServerInfo{ |
| 487 |
Server: srv, |
| 488 |
FullMethod: DataprocMetastore_DeleteService_FullMethodName, |
| 489 |
} |
| 490 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 491 |
return srv.(DataprocMetastoreServer).DeleteService(ctx, req.(*DeleteServiceRequest)) |
| 492 |
} |
| 493 |
return interceptor(ctx, in, info, handler) |
| 494 |
} |
| 495 |
|
| 496 |
func _DataprocMetastore_ListMetadataImports_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 497 |
in := new(ListMetadataImportsRequest) |
| 498 |
if err := dec(in); err != nil { |
| 499 |
return nil, err |
| 500 |
} |
| 501 |
if interceptor == nil { |
| 502 |
return srv.(DataprocMetastoreServer).ListMetadataImports(ctx, in) |
| 503 |
} |
| 504 |
info := &grpc.UnaryServerInfo{ |
| 505 |
Server: srv, |
| 506 |
FullMethod: DataprocMetastore_ListMetadataImports_FullMethodName, |
| 507 |
} |
| 508 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 509 |
return srv.(DataprocMetastoreServer).ListMetadataImports(ctx, req.(*ListMetadataImportsRequest)) |
| 510 |
} |
| 511 |
return interceptor(ctx, in, info, handler) |
| 512 |
} |
| 513 |
|
| 514 |
func _DataprocMetastore_GetMetadataImport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 515 |
in := new(GetMetadataImportRequest) |
| 516 |
if err := dec(in); err != nil { |
| 517 |
return nil, err |
| 518 |
} |
| 519 |
if interceptor == nil { |
| 520 |
return srv.(DataprocMetastoreServer).GetMetadataImport(ctx, in) |
| 521 |
} |
| 522 |
info := &grpc.UnaryServerInfo{ |
| 523 |
Server: srv, |
| 524 |
FullMethod: DataprocMetastore_GetMetadataImport_FullMethodName, |
| 525 |
} |
| 526 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 527 |
return srv.(DataprocMetastoreServer).GetMetadataImport(ctx, req.(*GetMetadataImportRequest)) |
| 528 |
} |
| 529 |
return interceptor(ctx, in, info, handler) |
| 530 |
} |
| 531 |
|
| 532 |
func _DataprocMetastore_CreateMetadataImport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 533 |
in := new(CreateMetadataImportRequest) |
| 534 |
if err := dec(in); err != nil { |
| 535 |
return nil, err |
| 536 |
} |
| 537 |
if interceptor == nil { |
| 538 |
return srv.(DataprocMetastoreServer).CreateMetadataImport(ctx, in) |
| 539 |
} |
| 540 |
info := &grpc.UnaryServerInfo{ |
| 541 |
Server: srv, |
| 542 |
FullMethod: DataprocMetastore_CreateMetadataImport_FullMethodName, |
| 543 |
} |
| 544 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 545 |
return srv.(DataprocMetastoreServer).CreateMetadataImport(ctx, req.(*CreateMetadataImportRequest)) |
| 546 |
} |
| 547 |
return interceptor(ctx, in, info, handler) |
| 548 |
} |
| 549 |
|
| 550 |
func _DataprocMetastore_UpdateMetadataImport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 551 |
in := new(UpdateMetadataImportRequest) |
| 552 |
if err := dec(in); err != nil { |
| 553 |
return nil, err |
| 554 |
} |
| 555 |
if interceptor == nil { |
| 556 |
return srv.(DataprocMetastoreServer).UpdateMetadataImport(ctx, in) |
| 557 |
} |
| 558 |
info := &grpc.UnaryServerInfo{ |
| 559 |
Server: srv, |
| 560 |
FullMethod: DataprocMetastore_UpdateMetadataImport_FullMethodName, |
| 561 |
} |
| 562 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 563 |
return srv.(DataprocMetastoreServer).UpdateMetadataImport(ctx, req.(*UpdateMetadataImportRequest)) |
| 564 |
} |
| 565 |
return interceptor(ctx, in, info, handler) |
| 566 |
} |
| 567 |
|
| 568 |
func _DataprocMetastore_ExportMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 569 |
in := new(ExportMetadataRequest) |
| 570 |
if err := dec(in); err != nil { |
| 571 |
return nil, err |
| 572 |
} |
| 573 |
if interceptor == nil { |
| 574 |
return srv.(DataprocMetastoreServer).ExportMetadata(ctx, in) |
| 575 |
} |
| 576 |
info := &grpc.UnaryServerInfo{ |
| 577 |
Server: srv, |
| 578 |
FullMethod: DataprocMetastore_ExportMetadata_FullMethodName, |
| 579 |
} |
| 580 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 581 |
return srv.(DataprocMetastoreServer).ExportMetadata(ctx, req.(*ExportMetadataRequest)) |
| 582 |
} |
| 583 |
return interceptor(ctx, in, info, handler) |
| 584 |
} |
| 585 |
|
| 586 |
func _DataprocMetastore_RestoreService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 587 |
in := new(RestoreServiceRequest) |
| 588 |
if err := dec(in); err != nil { |
| 589 |
return nil, err |
| 590 |
} |
| 591 |
if interceptor == nil { |
| 592 |
return srv.(DataprocMetastoreServer).RestoreService(ctx, in) |
| 593 |
} |
| 594 |
info := &grpc.UnaryServerInfo{ |
| 595 |
Server: srv, |
| 596 |
FullMethod: DataprocMetastore_RestoreService_FullMethodName, |
| 597 |
} |
| 598 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 599 |
return srv.(DataprocMetastoreServer).RestoreService(ctx, req.(*RestoreServiceRequest)) |
| 600 |
} |
| 601 |
return interceptor(ctx, in, info, handler) |
| 602 |
} |
| 603 |
|
| 604 |
func _DataprocMetastore_ListBackups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 605 |
in := new(ListBackupsRequest) |
| 606 |
if err := dec(in); err != nil { |
| 607 |
return nil, err |
| 608 |
} |
| 609 |
if interceptor == nil { |
| 610 |
return srv.(DataprocMetastoreServer).ListBackups(ctx, in) |
| 611 |
} |
| 612 |
info := &grpc.UnaryServerInfo{ |
| 613 |
Server: srv, |
| 614 |
FullMethod: DataprocMetastore_ListBackups_FullMethodName, |
| 615 |
} |
| 616 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 617 |
return srv.(DataprocMetastoreServer).ListBackups(ctx, req.(*ListBackupsRequest)) |
| 618 |
} |
| 619 |
return interceptor(ctx, in, info, handler) |
| 620 |
} |
| 621 |
|
| 622 |
func _DataprocMetastore_GetBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 623 |
in := new(GetBackupRequest) |
| 624 |
if err := dec(in); err != nil { |
| 625 |
return nil, err |
| 626 |
} |
| 627 |
if interceptor == nil { |
| 628 |
return srv.(DataprocMetastoreServer).GetBackup(ctx, in) |
| 629 |
} |
| 630 |
info := &grpc.UnaryServerInfo{ |
| 631 |
Server: srv, |
| 632 |
FullMethod: DataprocMetastore_GetBackup_FullMethodName, |
| 633 |
} |
| 634 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 635 |
return srv.(DataprocMetastoreServer).GetBackup(ctx, req.(*GetBackupRequest)) |
| 636 |
} |
| 637 |
return interceptor(ctx, in, info, handler) |
| 638 |
} |
| 639 |
|
| 640 |
func _DataprocMetastore_CreateBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 641 |
in := new(CreateBackupRequest) |
| 642 |
if err := dec(in); err != nil { |
| 643 |
return nil, err |
| 644 |
} |
| 645 |
if interceptor == nil { |
| 646 |
return srv.(DataprocMetastoreServer).CreateBackup(ctx, in) |
| 647 |
} |
| 648 |
info := &grpc.UnaryServerInfo{ |
| 649 |
Server: srv, |
| 650 |
FullMethod: DataprocMetastore_CreateBackup_FullMethodName, |
| 651 |
} |
| 652 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 653 |
return srv.(DataprocMetastoreServer).CreateBackup(ctx, req.(*CreateBackupRequest)) |
| 654 |
} |
| 655 |
return interceptor(ctx, in, info, handler) |
| 656 |
} |
| 657 |
|
| 658 |
func _DataprocMetastore_DeleteBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 659 |
in := new(DeleteBackupRequest) |
| 660 |
if err := dec(in); err != nil { |
| 661 |
return nil, err |
| 662 |
} |
| 663 |
if interceptor == nil { |
| 664 |
return srv.(DataprocMetastoreServer).DeleteBackup(ctx, in) |
| 665 |
} |
| 666 |
info := &grpc.UnaryServerInfo{ |
| 667 |
Server: srv, |
| 668 |
FullMethod: DataprocMetastore_DeleteBackup_FullMethodName, |
| 669 |
} |
| 670 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 671 |
return srv.(DataprocMetastoreServer).DeleteBackup(ctx, req.(*DeleteBackupRequest)) |
| 672 |
} |
| 673 |
return interceptor(ctx, in, info, handler) |
| 674 |
} |
| 675 |
|
| 676 |
func _DataprocMetastore_RemoveIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 677 |
in := new(RemoveIamPolicyRequest) |
| 678 |
if err := dec(in); err != nil { |
| 679 |
return nil, err |
| 680 |
} |
| 681 |
if interceptor == nil { |
| 682 |
return srv.(DataprocMetastoreServer).RemoveIamPolicy(ctx, in) |
| 683 |
} |
| 684 |
info := &grpc.UnaryServerInfo{ |
| 685 |
Server: srv, |
| 686 |
FullMethod: DataprocMetastore_RemoveIamPolicy_FullMethodName, |
| 687 |
} |
| 688 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 689 |
return srv.(DataprocMetastoreServer).RemoveIamPolicy(ctx, req.(*RemoveIamPolicyRequest)) |
| 690 |
} |
| 691 |
return interceptor(ctx, in, info, handler) |
| 692 |
} |
| 693 |
|
| 694 |
func _DataprocMetastore_QueryMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 695 |
in := new(QueryMetadataRequest) |
| 696 |
if err := dec(in); err != nil { |
| 697 |
return nil, err |
| 698 |
} |
| 699 |
if interceptor == nil { |
| 700 |
return srv.(DataprocMetastoreServer).QueryMetadata(ctx, in) |
| 701 |
} |
| 702 |
info := &grpc.UnaryServerInfo{ |
| 703 |
Server: srv, |
| 704 |
FullMethod: DataprocMetastore_QueryMetadata_FullMethodName, |
| 705 |
} |
| 706 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 707 |
return srv.(DataprocMetastoreServer).QueryMetadata(ctx, req.(*QueryMetadataRequest)) |
| 708 |
} |
| 709 |
return interceptor(ctx, in, info, handler) |
| 710 |
} |
| 711 |
|
| 712 |
func _DataprocMetastore_MoveTableToDatabase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 713 |
in := new(MoveTableToDatabaseRequest) |
| 714 |
if err := dec(in); err != nil { |
| 715 |
return nil, err |
| 716 |
} |
| 717 |
if interceptor == nil { |
| 718 |
return srv.(DataprocMetastoreServer).MoveTableToDatabase(ctx, in) |
| 719 |
} |
| 720 |
info := &grpc.UnaryServerInfo{ |
| 721 |
Server: srv, |
| 722 |
FullMethod: DataprocMetastore_MoveTableToDatabase_FullMethodName, |
| 723 |
} |
| 724 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 725 |
return srv.(DataprocMetastoreServer).MoveTableToDatabase(ctx, req.(*MoveTableToDatabaseRequest)) |
| 726 |
} |
| 727 |
return interceptor(ctx, in, info, handler) |
| 728 |
} |
| 729 |
|
| 730 |
func _DataprocMetastore_AlterMetadataResourceLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 731 |
in := new(AlterMetadataResourceLocationRequest) |
| 732 |
if err := dec(in); err != nil { |
| 733 |
return nil, err |
| 734 |
} |
| 735 |
if interceptor == nil { |
| 736 |
return srv.(DataprocMetastoreServer).AlterMetadataResourceLocation(ctx, in) |
| 737 |
} |
| 738 |
info := &grpc.UnaryServerInfo{ |
| 739 |
Server: srv, |
| 740 |
FullMethod: DataprocMetastore_AlterMetadataResourceLocation_FullMethodName, |
| 741 |
} |
| 742 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 743 |
return srv.(DataprocMetastoreServer).AlterMetadataResourceLocation(ctx, req.(*AlterMetadataResourceLocationRequest)) |
| 744 |
} |
| 745 |
return interceptor(ctx, in, info, handler) |
| 746 |
} |
| 747 |
|
| 748 |
// DataprocMetastore_ServiceDesc is the grpc.ServiceDesc for DataprocMetastore service. |
| 749 |
// It's only intended for direct use with grpc.RegisterService, |
| 750 |
// and not to be introspected or modified (even as a copy) |
| 751 |
var DataprocMetastore_ServiceDesc = grpc.ServiceDesc{ |
| 752 |
ServiceName: "google.cloud.metastore.v1alpha.DataprocMetastore", |
| 753 |
HandlerType: (*DataprocMetastoreServer)(nil), |
| 754 |
Methods: []grpc.MethodDesc{ |
| 755 |
{ |
| 756 |
MethodName: "ListServices", |
| 757 |
Handler: _DataprocMetastore_ListServices_Handler, |
| 758 |
}, |
| 759 |
{ |
| 760 |
MethodName: "GetService", |
| 761 |
Handler: _DataprocMetastore_GetService_Handler, |
| 762 |
}, |
| 763 |
{ |
| 764 |
MethodName: "CreateService", |
| 765 |
Handler: _DataprocMetastore_CreateService_Handler, |
| 766 |
}, |
| 767 |
{ |
| 768 |
MethodName: "UpdateService", |
| 769 |
Handler: _DataprocMetastore_UpdateService_Handler, |
| 770 |
}, |
| 771 |
{ |
| 772 |
MethodName: "DeleteService", |
| 773 |
Handler: _DataprocMetastore_DeleteService_Handler, |
| 774 |
}, |
| 775 |
{ |
| 776 |
MethodName: "ListMetadataImports", |
| 777 |
Handler: _DataprocMetastore_ListMetadataImports_Handler, |
| 778 |
}, |
| 779 |
{ |
| 780 |
MethodName: "GetMetadataImport", |
| 781 |
Handler: _DataprocMetastore_GetMetadataImport_Handler, |
| 782 |
}, |
| 783 |
{ |
| 784 |
MethodName: "CreateMetadataImport", |
| 785 |
Handler: _DataprocMetastore_CreateMetadataImport_Handler, |
| 786 |
}, |
| 787 |
{ |
| 788 |
MethodName: "UpdateMetadataImport", |
| 789 |
Handler: _DataprocMetastore_UpdateMetadataImport_Handler, |
| 790 |
}, |
| 791 |
{ |
| 792 |
MethodName: "ExportMetadata", |
| 793 |
Handler: _DataprocMetastore_ExportMetadata_Handler, |
| 794 |
}, |
| 795 |
{ |
| 796 |
MethodName: "RestoreService", |
| 797 |
Handler: _DataprocMetastore_RestoreService_Handler, |
| 798 |
}, |
| 799 |
{ |
| 800 |
MethodName: "ListBackups", |
| 801 |
Handler: _DataprocMetastore_ListBackups_Handler, |
| 802 |
}, |
| 803 |
{ |
| 804 |
MethodName: "GetBackup", |
| 805 |
Handler: _DataprocMetastore_GetBackup_Handler, |
| 806 |
}, |
| 807 |
{ |
| 808 |
MethodName: "CreateBackup", |
| 809 |
Handler: _DataprocMetastore_CreateBackup_Handler, |
| 810 |
}, |
| 811 |
{ |
| 812 |
MethodName: "DeleteBackup", |
| 813 |
Handler: _DataprocMetastore_DeleteBackup_Handler, |
| 814 |
}, |
| 815 |
{ |
| 816 |
MethodName: "RemoveIamPolicy", |
| 817 |
Handler: _DataprocMetastore_RemoveIamPolicy_Handler, |
| 818 |
}, |
| 819 |
{ |
| 820 |
MethodName: "QueryMetadata", |
| 821 |
Handler: _DataprocMetastore_QueryMetadata_Handler, |
| 822 |
}, |
| 823 |
{ |
| 824 |
MethodName: "MoveTableToDatabase", |
| 825 |
Handler: _DataprocMetastore_MoveTableToDatabase_Handler, |
| 826 |
}, |
| 827 |
{ |
| 828 |
MethodName: "AlterMetadataResourceLocation", |
| 829 |
Handler: _DataprocMetastore_AlterMetadataResourceLocation_Handler, |
| 830 |
}, |
| 831 |
}, |
| 832 |
Streams: []grpc.StreamDesc{}, |
| 833 |
Metadata: "google/cloud/metastore/v1alpha/metastore.proto", |
| 834 |
} |