| 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/gkebackup/v1/gkebackup.proto |
| 20 |
|
| 21 |
package gkebackuppb |
| 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 |
BackupForGKE_CreateBackupPlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateBackupPlan" |
| 38 |
BackupForGKE_ListBackupPlans_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListBackupPlans" |
| 39 |
BackupForGKE_GetBackupPlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetBackupPlan" |
| 40 |
BackupForGKE_UpdateBackupPlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateBackupPlan" |
| 41 |
BackupForGKE_DeleteBackupPlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteBackupPlan" |
| 42 |
BackupForGKE_CreateBackupChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateBackupChannel" |
| 43 |
BackupForGKE_ListBackupChannels_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListBackupChannels" |
| 44 |
BackupForGKE_GetBackupChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetBackupChannel" |
| 45 |
BackupForGKE_UpdateBackupChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateBackupChannel" |
| 46 |
BackupForGKE_DeleteBackupChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteBackupChannel" |
| 47 |
BackupForGKE_ListBackupPlanBindings_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListBackupPlanBindings" |
| 48 |
BackupForGKE_GetBackupPlanBinding_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetBackupPlanBinding" |
| 49 |
BackupForGKE_CreateBackup_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateBackup" |
| 50 |
BackupForGKE_ListBackups_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListBackups" |
| 51 |
BackupForGKE_GetBackup_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetBackup" |
| 52 |
BackupForGKE_UpdateBackup_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateBackup" |
| 53 |
BackupForGKE_DeleteBackup_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteBackup" |
| 54 |
BackupForGKE_ListVolumeBackups_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListVolumeBackups" |
| 55 |
BackupForGKE_GetVolumeBackup_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetVolumeBackup" |
| 56 |
BackupForGKE_CreateRestorePlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateRestorePlan" |
| 57 |
BackupForGKE_ListRestorePlans_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListRestorePlans" |
| 58 |
BackupForGKE_GetRestorePlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetRestorePlan" |
| 59 |
BackupForGKE_UpdateRestorePlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateRestorePlan" |
| 60 |
BackupForGKE_DeleteRestorePlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteRestorePlan" |
| 61 |
BackupForGKE_CreateRestoreChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateRestoreChannel" |
| 62 |
BackupForGKE_ListRestoreChannels_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListRestoreChannels" |
| 63 |
BackupForGKE_GetRestoreChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetRestoreChannel" |
| 64 |
BackupForGKE_UpdateRestoreChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateRestoreChannel" |
| 65 |
BackupForGKE_DeleteRestoreChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteRestoreChannel" |
| 66 |
BackupForGKE_ListRestorePlanBindings_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListRestorePlanBindings" |
| 67 |
BackupForGKE_GetRestorePlanBinding_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetRestorePlanBinding" |
| 68 |
BackupForGKE_CreateRestore_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateRestore" |
| 69 |
BackupForGKE_ListRestores_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListRestores" |
| 70 |
BackupForGKE_GetRestore_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetRestore" |
| 71 |
BackupForGKE_UpdateRestore_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateRestore" |
| 72 |
BackupForGKE_DeleteRestore_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteRestore" |
| 73 |
BackupForGKE_ListVolumeRestores_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListVolumeRestores" |
| 74 |
BackupForGKE_GetVolumeRestore_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetVolumeRestore" |
| 75 |
BackupForGKE_GetBackupIndexDownloadUrl_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetBackupIndexDownloadUrl" |
| 76 |
) |
| 77 |
|
| 78 |
// BackupForGKEClient is the client API for BackupForGKE service. |
| 79 |
// |
| 80 |
// 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. |
| 81 |
type BackupForGKEClient interface { |
| 82 |
// Creates a new BackupPlan in a given location. |
| 83 |
CreateBackupPlan(ctx context.Context, in *CreateBackupPlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 84 |
// Lists BackupPlans in a given location. |
| 85 |
ListBackupPlans(ctx context.Context, in *ListBackupPlansRequest, opts ...grpc.CallOption) (*ListBackupPlansResponse, error) |
| 86 |
// Retrieve the details of a single BackupPlan. |
| 87 |
GetBackupPlan(ctx context.Context, in *GetBackupPlanRequest, opts ...grpc.CallOption) (*BackupPlan, error) |
| 88 |
// Update a BackupPlan. |
| 89 |
UpdateBackupPlan(ctx context.Context, in *UpdateBackupPlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 90 |
// Deletes an existing BackupPlan. |
| 91 |
DeleteBackupPlan(ctx context.Context, in *DeleteBackupPlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 92 |
// Creates a new BackupChannel in a given location. |
| 93 |
CreateBackupChannel(ctx context.Context, in *CreateBackupChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 94 |
// Lists BackupChannels in a given location. |
| 95 |
ListBackupChannels(ctx context.Context, in *ListBackupChannelsRequest, opts ...grpc.CallOption) (*ListBackupChannelsResponse, error) |
| 96 |
// Retrieve the details of a single BackupChannel. |
| 97 |
GetBackupChannel(ctx context.Context, in *GetBackupChannelRequest, opts ...grpc.CallOption) (*BackupChannel, error) |
| 98 |
// Update a BackupChannel. |
| 99 |
UpdateBackupChannel(ctx context.Context, in *UpdateBackupChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 100 |
// Deletes an existing BackupChannel. |
| 101 |
DeleteBackupChannel(ctx context.Context, in *DeleteBackupChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 102 |
// Lists BackupPlanBindings in a given location. |
| 103 |
ListBackupPlanBindings(ctx context.Context, in *ListBackupPlanBindingsRequest, opts ...grpc.CallOption) (*ListBackupPlanBindingsResponse, error) |
| 104 |
// Retrieve the details of a single BackupPlanBinding. |
| 105 |
GetBackupPlanBinding(ctx context.Context, in *GetBackupPlanBindingRequest, opts ...grpc.CallOption) (*BackupPlanBinding, error) |
| 106 |
// Creates a Backup for the given BackupPlan. |
| 107 |
CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 108 |
// Lists the Backups for a given BackupPlan. |
| 109 |
ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error) |
| 110 |
// Retrieve the details of a single Backup. |
| 111 |
GetBackup(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error) |
| 112 |
// Update a Backup. |
| 113 |
UpdateBackup(ctx context.Context, in *UpdateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 114 |
// Deletes an existing Backup. |
| 115 |
DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 116 |
// Lists the VolumeBackups for a given Backup. |
| 117 |
ListVolumeBackups(ctx context.Context, in *ListVolumeBackupsRequest, opts ...grpc.CallOption) (*ListVolumeBackupsResponse, error) |
| 118 |
// Retrieve the details of a single VolumeBackup. |
| 119 |
GetVolumeBackup(ctx context.Context, in *GetVolumeBackupRequest, opts ...grpc.CallOption) (*VolumeBackup, error) |
| 120 |
// Creates a new RestorePlan in a given location. |
| 121 |
CreateRestorePlan(ctx context.Context, in *CreateRestorePlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 122 |
// Lists RestorePlans in a given location. |
| 123 |
ListRestorePlans(ctx context.Context, in *ListRestorePlansRequest, opts ...grpc.CallOption) (*ListRestorePlansResponse, error) |
| 124 |
// Retrieve the details of a single RestorePlan. |
| 125 |
GetRestorePlan(ctx context.Context, in *GetRestorePlanRequest, opts ...grpc.CallOption) (*RestorePlan, error) |
| 126 |
// Update a RestorePlan. |
| 127 |
UpdateRestorePlan(ctx context.Context, in *UpdateRestorePlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 128 |
// Deletes an existing RestorePlan. |
| 129 |
DeleteRestorePlan(ctx context.Context, in *DeleteRestorePlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 130 |
// Creates a new RestoreChannel in a given location. |
| 131 |
CreateRestoreChannel(ctx context.Context, in *CreateRestoreChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 132 |
// Lists RestoreChannels in a given location. |
| 133 |
ListRestoreChannels(ctx context.Context, in *ListRestoreChannelsRequest, opts ...grpc.CallOption) (*ListRestoreChannelsResponse, error) |
| 134 |
// Retrieve the details of a single RestoreChannel. |
| 135 |
GetRestoreChannel(ctx context.Context, in *GetRestoreChannelRequest, opts ...grpc.CallOption) (*RestoreChannel, error) |
| 136 |
// Update a RestoreChannel. |
| 137 |
UpdateRestoreChannel(ctx context.Context, in *UpdateRestoreChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 138 |
// Deletes an existing RestoreChannel. |
| 139 |
DeleteRestoreChannel(ctx context.Context, in *DeleteRestoreChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 140 |
// Lists RestorePlanBindings in a given location. |
| 141 |
ListRestorePlanBindings(ctx context.Context, in *ListRestorePlanBindingsRequest, opts ...grpc.CallOption) (*ListRestorePlanBindingsResponse, error) |
| 142 |
// Retrieve the details of a single RestorePlanBinding. |
| 143 |
GetRestorePlanBinding(ctx context.Context, in *GetRestorePlanBindingRequest, opts ...grpc.CallOption) (*RestorePlanBinding, error) |
| 144 |
// Creates a new Restore for the given RestorePlan. |
| 145 |
CreateRestore(ctx context.Context, in *CreateRestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 146 |
// Lists the Restores for a given RestorePlan. |
| 147 |
ListRestores(ctx context.Context, in *ListRestoresRequest, opts ...grpc.CallOption) (*ListRestoresResponse, error) |
| 148 |
// Retrieves the details of a single Restore. |
| 149 |
GetRestore(ctx context.Context, in *GetRestoreRequest, opts ...grpc.CallOption) (*Restore, error) |
| 150 |
// Update a Restore. |
| 151 |
UpdateRestore(ctx context.Context, in *UpdateRestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 152 |
// Deletes an existing Restore. |
| 153 |
DeleteRestore(ctx context.Context, in *DeleteRestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 154 |
// Lists the VolumeRestores for a given Restore. |
| 155 |
ListVolumeRestores(ctx context.Context, in *ListVolumeRestoresRequest, opts ...grpc.CallOption) (*ListVolumeRestoresResponse, error) |
| 156 |
// Retrieve the details of a single VolumeRestore. |
| 157 |
GetVolumeRestore(ctx context.Context, in *GetVolumeRestoreRequest, opts ...grpc.CallOption) (*VolumeRestore, error) |
| 158 |
// Retrieve the link to the backupIndex. |
| 159 |
GetBackupIndexDownloadUrl(ctx context.Context, in *GetBackupIndexDownloadUrlRequest, opts ...grpc.CallOption) (*GetBackupIndexDownloadUrlResponse, error) |
| 160 |
} |
| 161 |
|
| 162 |
type backupForGKEClient struct { |
| 163 |
cc grpc.ClientConnInterface |
| 164 |
} |
| 165 |
|
| 166 |
func NewBackupForGKEClient(cc grpc.ClientConnInterface) BackupForGKEClient { |
| 167 |
return &backupForGKEClient{cc} |
| 168 |
} |
| 169 |
|
| 170 |
func (c *backupForGKEClient) CreateBackupPlan(ctx context.Context, in *CreateBackupPlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 171 |
out := new(longrunningpb.Operation) |
| 172 |
err := c.cc.Invoke(ctx, BackupForGKE_CreateBackupPlan_FullMethodName, in, out, opts...) |
| 173 |
if err != nil { |
| 174 |
return nil, err |
| 175 |
} |
| 176 |
return out, nil |
| 177 |
} |
| 178 |
|
| 179 |
func (c *backupForGKEClient) ListBackupPlans(ctx context.Context, in *ListBackupPlansRequest, opts ...grpc.CallOption) (*ListBackupPlansResponse, error) { |
| 180 |
out := new(ListBackupPlansResponse) |
| 181 |
err := c.cc.Invoke(ctx, BackupForGKE_ListBackupPlans_FullMethodName, in, out, opts...) |
| 182 |
if err != nil { |
| 183 |
return nil, err |
| 184 |
} |
| 185 |
return out, nil |
| 186 |
} |
| 187 |
|
| 188 |
func (c *backupForGKEClient) GetBackupPlan(ctx context.Context, in *GetBackupPlanRequest, opts ...grpc.CallOption) (*BackupPlan, error) { |
| 189 |
out := new(BackupPlan) |
| 190 |
err := c.cc.Invoke(ctx, BackupForGKE_GetBackupPlan_FullMethodName, in, out, opts...) |
| 191 |
if err != nil { |
| 192 |
return nil, err |
| 193 |
} |
| 194 |
return out, nil |
| 195 |
} |
| 196 |
|
| 197 |
func (c *backupForGKEClient) UpdateBackupPlan(ctx context.Context, in *UpdateBackupPlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 198 |
out := new(longrunningpb.Operation) |
| 199 |
err := c.cc.Invoke(ctx, BackupForGKE_UpdateBackupPlan_FullMethodName, in, out, opts...) |
| 200 |
if err != nil { |
| 201 |
return nil, err |
| 202 |
} |
| 203 |
return out, nil |
| 204 |
} |
| 205 |
|
| 206 |
func (c *backupForGKEClient) DeleteBackupPlan(ctx context.Context, in *DeleteBackupPlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 207 |
out := new(longrunningpb.Operation) |
| 208 |
err := c.cc.Invoke(ctx, BackupForGKE_DeleteBackupPlan_FullMethodName, in, out, opts...) |
| 209 |
if err != nil { |
| 210 |
return nil, err |
| 211 |
} |
| 212 |
return out, nil |
| 213 |
} |
| 214 |
|
| 215 |
func (c *backupForGKEClient) CreateBackupChannel(ctx context.Context, in *CreateBackupChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 216 |
out := new(longrunningpb.Operation) |
| 217 |
err := c.cc.Invoke(ctx, BackupForGKE_CreateBackupChannel_FullMethodName, in, out, opts...) |
| 218 |
if err != nil { |
| 219 |
return nil, err |
| 220 |
} |
| 221 |
return out, nil |
| 222 |
} |
| 223 |
|
| 224 |
func (c *backupForGKEClient) ListBackupChannels(ctx context.Context, in *ListBackupChannelsRequest, opts ...grpc.CallOption) (*ListBackupChannelsResponse, error) { |
| 225 |
out := new(ListBackupChannelsResponse) |
| 226 |
err := c.cc.Invoke(ctx, BackupForGKE_ListBackupChannels_FullMethodName, in, out, opts...) |
| 227 |
if err != nil { |
| 228 |
return nil, err |
| 229 |
} |
| 230 |
return out, nil |
| 231 |
} |
| 232 |
|
| 233 |
func (c *backupForGKEClient) GetBackupChannel(ctx context.Context, in *GetBackupChannelRequest, opts ...grpc.CallOption) (*BackupChannel, error) { |
| 234 |
out := new(BackupChannel) |
| 235 |
err := c.cc.Invoke(ctx, BackupForGKE_GetBackupChannel_FullMethodName, in, out, opts...) |
| 236 |
if err != nil { |
| 237 |
return nil, err |
| 238 |
} |
| 239 |
return out, nil |
| 240 |
} |
| 241 |
|
| 242 |
func (c *backupForGKEClient) UpdateBackupChannel(ctx context.Context, in *UpdateBackupChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 243 |
out := new(longrunningpb.Operation) |
| 244 |
err := c.cc.Invoke(ctx, BackupForGKE_UpdateBackupChannel_FullMethodName, in, out, opts...) |
| 245 |
if err != nil { |
| 246 |
return nil, err |
| 247 |
} |
| 248 |
return out, nil |
| 249 |
} |
| 250 |
|
| 251 |
func (c *backupForGKEClient) DeleteBackupChannel(ctx context.Context, in *DeleteBackupChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 252 |
out := new(longrunningpb.Operation) |
| 253 |
err := c.cc.Invoke(ctx, BackupForGKE_DeleteBackupChannel_FullMethodName, in, out, opts...) |
| 254 |
if err != nil { |
| 255 |
return nil, err |
| 256 |
} |
| 257 |
return out, nil |
| 258 |
} |
| 259 |
|
| 260 |
func (c *backupForGKEClient) ListBackupPlanBindings(ctx context.Context, in *ListBackupPlanBindingsRequest, opts ...grpc.CallOption) (*ListBackupPlanBindingsResponse, error) { |
| 261 |
out := new(ListBackupPlanBindingsResponse) |
| 262 |
err := c.cc.Invoke(ctx, BackupForGKE_ListBackupPlanBindings_FullMethodName, in, out, opts...) |
| 263 |
if err != nil { |
| 264 |
return nil, err |
| 265 |
} |
| 266 |
return out, nil |
| 267 |
} |
| 268 |
|
| 269 |
func (c *backupForGKEClient) GetBackupPlanBinding(ctx context.Context, in *GetBackupPlanBindingRequest, opts ...grpc.CallOption) (*BackupPlanBinding, error) { |
| 270 |
out := new(BackupPlanBinding) |
| 271 |
err := c.cc.Invoke(ctx, BackupForGKE_GetBackupPlanBinding_FullMethodName, in, out, opts...) |
| 272 |
if err != nil { |
| 273 |
return nil, err |
| 274 |
} |
| 275 |
return out, nil |
| 276 |
} |
| 277 |
|
| 278 |
func (c *backupForGKEClient) CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 279 |
out := new(longrunningpb.Operation) |
| 280 |
err := c.cc.Invoke(ctx, BackupForGKE_CreateBackup_FullMethodName, in, out, opts...) |
| 281 |
if err != nil { |
| 282 |
return nil, err |
| 283 |
} |
| 284 |
return out, nil |
| 285 |
} |
| 286 |
|
| 287 |
func (c *backupForGKEClient) ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error) { |
| 288 |
out := new(ListBackupsResponse) |
| 289 |
err := c.cc.Invoke(ctx, BackupForGKE_ListBackups_FullMethodName, in, out, opts...) |
| 290 |
if err != nil { |
| 291 |
return nil, err |
| 292 |
} |
| 293 |
return out, nil |
| 294 |
} |
| 295 |
|
| 296 |
func (c *backupForGKEClient) GetBackup(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error) { |
| 297 |
out := new(Backup) |
| 298 |
err := c.cc.Invoke(ctx, BackupForGKE_GetBackup_FullMethodName, in, out, opts...) |
| 299 |
if err != nil { |
| 300 |
return nil, err |
| 301 |
} |
| 302 |
return out, nil |
| 303 |
} |
| 304 |
|
| 305 |
func (c *backupForGKEClient) UpdateBackup(ctx context.Context, in *UpdateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 306 |
out := new(longrunningpb.Operation) |
| 307 |
err := c.cc.Invoke(ctx, BackupForGKE_UpdateBackup_FullMethodName, in, out, opts...) |
| 308 |
if err != nil { |
| 309 |
return nil, err |
| 310 |
} |
| 311 |
return out, nil |
| 312 |
} |
| 313 |
|
| 314 |
func (c *backupForGKEClient) DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 315 |
out := new(longrunningpb.Operation) |
| 316 |
err := c.cc.Invoke(ctx, BackupForGKE_DeleteBackup_FullMethodName, in, out, opts...) |
| 317 |
if err != nil { |
| 318 |
return nil, err |
| 319 |
} |
| 320 |
return out, nil |
| 321 |
} |
| 322 |
|
| 323 |
func (c *backupForGKEClient) ListVolumeBackups(ctx context.Context, in *ListVolumeBackupsRequest, opts ...grpc.CallOption) (*ListVolumeBackupsResponse, error) { |
| 324 |
out := new(ListVolumeBackupsResponse) |
| 325 |
err := c.cc.Invoke(ctx, BackupForGKE_ListVolumeBackups_FullMethodName, in, out, opts...) |
| 326 |
if err != nil { |
| 327 |
return nil, err |
| 328 |
} |
| 329 |
return out, nil |
| 330 |
} |
| 331 |
|
| 332 |
func (c *backupForGKEClient) GetVolumeBackup(ctx context.Context, in *GetVolumeBackupRequest, opts ...grpc.CallOption) (*VolumeBackup, error) { |
| 333 |
out := new(VolumeBackup) |
| 334 |
err := c.cc.Invoke(ctx, BackupForGKE_GetVolumeBackup_FullMethodName, in, out, opts...) |
| 335 |
if err != nil { |
| 336 |
return nil, err |
| 337 |
} |
| 338 |
return out, nil |
| 339 |
} |
| 340 |
|
| 341 |
func (c *backupForGKEClient) CreateRestorePlan(ctx context.Context, in *CreateRestorePlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 342 |
out := new(longrunningpb.Operation) |
| 343 |
err := c.cc.Invoke(ctx, BackupForGKE_CreateRestorePlan_FullMethodName, in, out, opts...) |
| 344 |
if err != nil { |
| 345 |
return nil, err |
| 346 |
} |
| 347 |
return out, nil |
| 348 |
} |
| 349 |
|
| 350 |
func (c *backupForGKEClient) ListRestorePlans(ctx context.Context, in *ListRestorePlansRequest, opts ...grpc.CallOption) (*ListRestorePlansResponse, error) { |
| 351 |
out := new(ListRestorePlansResponse) |
| 352 |
err := c.cc.Invoke(ctx, BackupForGKE_ListRestorePlans_FullMethodName, in, out, opts...) |
| 353 |
if err != nil { |
| 354 |
return nil, err |
| 355 |
} |
| 356 |
return out, nil |
| 357 |
} |
| 358 |
|
| 359 |
func (c *backupForGKEClient) GetRestorePlan(ctx context.Context, in *GetRestorePlanRequest, opts ...grpc.CallOption) (*RestorePlan, error) { |
| 360 |
out := new(RestorePlan) |
| 361 |
err := c.cc.Invoke(ctx, BackupForGKE_GetRestorePlan_FullMethodName, in, out, opts...) |
| 362 |
if err != nil { |
| 363 |
return nil, err |
| 364 |
} |
| 365 |
return out, nil |
| 366 |
} |
| 367 |
|
| 368 |
func (c *backupForGKEClient) UpdateRestorePlan(ctx context.Context, in *UpdateRestorePlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 369 |
out := new(longrunningpb.Operation) |
| 370 |
err := c.cc.Invoke(ctx, BackupForGKE_UpdateRestorePlan_FullMethodName, in, out, opts...) |
| 371 |
if err != nil { |
| 372 |
return nil, err |
| 373 |
} |
| 374 |
return out, nil |
| 375 |
} |
| 376 |
|
| 377 |
func (c *backupForGKEClient) DeleteRestorePlan(ctx context.Context, in *DeleteRestorePlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 378 |
out := new(longrunningpb.Operation) |
| 379 |
err := c.cc.Invoke(ctx, BackupForGKE_DeleteRestorePlan_FullMethodName, in, out, opts...) |
| 380 |
if err != nil { |
| 381 |
return nil, err |
| 382 |
} |
| 383 |
return out, nil |
| 384 |
} |
| 385 |
|
| 386 |
func (c *backupForGKEClient) CreateRestoreChannel(ctx context.Context, in *CreateRestoreChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 387 |
out := new(longrunningpb.Operation) |
| 388 |
err := c.cc.Invoke(ctx, BackupForGKE_CreateRestoreChannel_FullMethodName, in, out, opts...) |
| 389 |
if err != nil { |
| 390 |
return nil, err |
| 391 |
} |
| 392 |
return out, nil |
| 393 |
} |
| 394 |
|
| 395 |
func (c *backupForGKEClient) ListRestoreChannels(ctx context.Context, in *ListRestoreChannelsRequest, opts ...grpc.CallOption) (*ListRestoreChannelsResponse, error) { |
| 396 |
out := new(ListRestoreChannelsResponse) |
| 397 |
err := c.cc.Invoke(ctx, BackupForGKE_ListRestoreChannels_FullMethodName, in, out, opts...) |
| 398 |
if err != nil { |
| 399 |
return nil, err |
| 400 |
} |
| 401 |
return out, nil |
| 402 |
} |
| 403 |
|
| 404 |
func (c *backupForGKEClient) GetRestoreChannel(ctx context.Context, in *GetRestoreChannelRequest, opts ...grpc.CallOption) (*RestoreChannel, error) { |
| 405 |
out := new(RestoreChannel) |
| 406 |
err := c.cc.Invoke(ctx, BackupForGKE_GetRestoreChannel_FullMethodName, in, out, opts...) |
| 407 |
if err != nil { |
| 408 |
return nil, err |
| 409 |
} |
| 410 |
return out, nil |
| 411 |
} |
| 412 |
|
| 413 |
func (c *backupForGKEClient) UpdateRestoreChannel(ctx context.Context, in *UpdateRestoreChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 414 |
out := new(longrunningpb.Operation) |
| 415 |
err := c.cc.Invoke(ctx, BackupForGKE_UpdateRestoreChannel_FullMethodName, in, out, opts...) |
| 416 |
if err != nil { |
| 417 |
return nil, err |
| 418 |
} |
| 419 |
return out, nil |
| 420 |
} |
| 421 |
|
| 422 |
func (c *backupForGKEClient) DeleteRestoreChannel(ctx context.Context, in *DeleteRestoreChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 423 |
out := new(longrunningpb.Operation) |
| 424 |
err := c.cc.Invoke(ctx, BackupForGKE_DeleteRestoreChannel_FullMethodName, in, out, opts...) |
| 425 |
if err != nil { |
| 426 |
return nil, err |
| 427 |
} |
| 428 |
return out, nil |
| 429 |
} |
| 430 |
|
| 431 |
func (c *backupForGKEClient) ListRestorePlanBindings(ctx context.Context, in *ListRestorePlanBindingsRequest, opts ...grpc.CallOption) (*ListRestorePlanBindingsResponse, error) { |
| 432 |
out := new(ListRestorePlanBindingsResponse) |
| 433 |
err := c.cc.Invoke(ctx, BackupForGKE_ListRestorePlanBindings_FullMethodName, in, out, opts...) |
| 434 |
if err != nil { |
| 435 |
return nil, err |
| 436 |
} |
| 437 |
return out, nil |
| 438 |
} |
| 439 |
|
| 440 |
func (c *backupForGKEClient) GetRestorePlanBinding(ctx context.Context, in *GetRestorePlanBindingRequest, opts ...grpc.CallOption) (*RestorePlanBinding, error) { |
| 441 |
out := new(RestorePlanBinding) |
| 442 |
err := c.cc.Invoke(ctx, BackupForGKE_GetRestorePlanBinding_FullMethodName, in, out, opts...) |
| 443 |
if err != nil { |
| 444 |
return nil, err |
| 445 |
} |
| 446 |
return out, nil |
| 447 |
} |
| 448 |
|
| 449 |
func (c *backupForGKEClient) CreateRestore(ctx context.Context, in *CreateRestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 450 |
out := new(longrunningpb.Operation) |
| 451 |
err := c.cc.Invoke(ctx, BackupForGKE_CreateRestore_FullMethodName, in, out, opts...) |
| 452 |
if err != nil { |
| 453 |
return nil, err |
| 454 |
} |
| 455 |
return out, nil |
| 456 |
} |
| 457 |
|
| 458 |
func (c *backupForGKEClient) ListRestores(ctx context.Context, in *ListRestoresRequest, opts ...grpc.CallOption) (*ListRestoresResponse, error) { |
| 459 |
out := new(ListRestoresResponse) |
| 460 |
err := c.cc.Invoke(ctx, BackupForGKE_ListRestores_FullMethodName, in, out, opts...) |
| 461 |
if err != nil { |
| 462 |
return nil, err |
| 463 |
} |
| 464 |
return out, nil |
| 465 |
} |
| 466 |
|
| 467 |
func (c *backupForGKEClient) GetRestore(ctx context.Context, in *GetRestoreRequest, opts ...grpc.CallOption) (*Restore, error) { |
| 468 |
out := new(Restore) |
| 469 |
err := c.cc.Invoke(ctx, BackupForGKE_GetRestore_FullMethodName, in, out, opts...) |
| 470 |
if err != nil { |
| 471 |
return nil, err |
| 472 |
} |
| 473 |
return out, nil |
| 474 |
} |
| 475 |
|
| 476 |
func (c *backupForGKEClient) UpdateRestore(ctx context.Context, in *UpdateRestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 477 |
out := new(longrunningpb.Operation) |
| 478 |
err := c.cc.Invoke(ctx, BackupForGKE_UpdateRestore_FullMethodName, in, out, opts...) |
| 479 |
if err != nil { |
| 480 |
return nil, err |
| 481 |
} |
| 482 |
return out, nil |
| 483 |
} |
| 484 |
|
| 485 |
func (c *backupForGKEClient) DeleteRestore(ctx context.Context, in *DeleteRestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 486 |
out := new(longrunningpb.Operation) |
| 487 |
err := c.cc.Invoke(ctx, BackupForGKE_DeleteRestore_FullMethodName, in, out, opts...) |
| 488 |
if err != nil { |
| 489 |
return nil, err |
| 490 |
} |
| 491 |
return out, nil |
| 492 |
} |
| 493 |
|
| 494 |
func (c *backupForGKEClient) ListVolumeRestores(ctx context.Context, in *ListVolumeRestoresRequest, opts ...grpc.CallOption) (*ListVolumeRestoresResponse, error) { |
| 495 |
out := new(ListVolumeRestoresResponse) |
| 496 |
err := c.cc.Invoke(ctx, BackupForGKE_ListVolumeRestores_FullMethodName, in, out, opts...) |
| 497 |
if err != nil { |
| 498 |
return nil, err |
| 499 |
} |
| 500 |
return out, nil |
| 501 |
} |
| 502 |
|
| 503 |
func (c *backupForGKEClient) GetVolumeRestore(ctx context.Context, in *GetVolumeRestoreRequest, opts ...grpc.CallOption) (*VolumeRestore, error) { |
| 504 |
out := new(VolumeRestore) |
| 505 |
err := c.cc.Invoke(ctx, BackupForGKE_GetVolumeRestore_FullMethodName, in, out, opts...) |
| 506 |
if err != nil { |
| 507 |
return nil, err |
| 508 |
} |
| 509 |
return out, nil |
| 510 |
} |
| 511 |
|
| 512 |
func (c *backupForGKEClient) GetBackupIndexDownloadUrl(ctx context.Context, in *GetBackupIndexDownloadUrlRequest, opts ...grpc.CallOption) (*GetBackupIndexDownloadUrlResponse, error) { |
| 513 |
out := new(GetBackupIndexDownloadUrlResponse) |
| 514 |
err := c.cc.Invoke(ctx, BackupForGKE_GetBackupIndexDownloadUrl_FullMethodName, in, out, opts...) |
| 515 |
if err != nil { |
| 516 |
return nil, err |
| 517 |
} |
| 518 |
return out, nil |
| 519 |
} |
| 520 |
|
| 521 |
// BackupForGKEServer is the server API for BackupForGKE service. |
| 522 |
// All implementations should embed UnimplementedBackupForGKEServer |
| 523 |
// for forward compatibility |
| 524 |
type BackupForGKEServer interface { |
| 525 |
// Creates a new BackupPlan in a given location. |
| 526 |
CreateBackupPlan(context.Context, *CreateBackupPlanRequest) (*longrunningpb.Operation, error) |
| 527 |
// Lists BackupPlans in a given location. |
| 528 |
ListBackupPlans(context.Context, *ListBackupPlansRequest) (*ListBackupPlansResponse, error) |
| 529 |
// Retrieve the details of a single BackupPlan. |
| 530 |
GetBackupPlan(context.Context, *GetBackupPlanRequest) (*BackupPlan, error) |
| 531 |
// Update a BackupPlan. |
| 532 |
UpdateBackupPlan(context.Context, *UpdateBackupPlanRequest) (*longrunningpb.Operation, error) |
| 533 |
// Deletes an existing BackupPlan. |
| 534 |
DeleteBackupPlan(context.Context, *DeleteBackupPlanRequest) (*longrunningpb.Operation, error) |
| 535 |
// Creates a new BackupChannel in a given location. |
| 536 |
CreateBackupChannel(context.Context, *CreateBackupChannelRequest) (*longrunningpb.Operation, error) |
| 537 |
// Lists BackupChannels in a given location. |
| 538 |
ListBackupChannels(context.Context, *ListBackupChannelsRequest) (*ListBackupChannelsResponse, error) |
| 539 |
// Retrieve the details of a single BackupChannel. |
| 540 |
GetBackupChannel(context.Context, *GetBackupChannelRequest) (*BackupChannel, error) |
| 541 |
// Update a BackupChannel. |
| 542 |
UpdateBackupChannel(context.Context, *UpdateBackupChannelRequest) (*longrunningpb.Operation, error) |
| 543 |
// Deletes an existing BackupChannel. |
| 544 |
DeleteBackupChannel(context.Context, *DeleteBackupChannelRequest) (*longrunningpb.Operation, error) |
| 545 |
// Lists BackupPlanBindings in a given location. |
| 546 |
ListBackupPlanBindings(context.Context, *ListBackupPlanBindingsRequest) (*ListBackupPlanBindingsResponse, error) |
| 547 |
// Retrieve the details of a single BackupPlanBinding. |
| 548 |
GetBackupPlanBinding(context.Context, *GetBackupPlanBindingRequest) (*BackupPlanBinding, error) |
| 549 |
// Creates a Backup for the given BackupPlan. |
| 550 |
CreateBackup(context.Context, *CreateBackupRequest) (*longrunningpb.Operation, error) |
| 551 |
// Lists the Backups for a given BackupPlan. |
| 552 |
ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error) |
| 553 |
// Retrieve the details of a single Backup. |
| 554 |
GetBackup(context.Context, *GetBackupRequest) (*Backup, error) |
| 555 |
// Update a Backup. |
| 556 |
UpdateBackup(context.Context, *UpdateBackupRequest) (*longrunningpb.Operation, error) |
| 557 |
// Deletes an existing Backup. |
| 558 |
DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error) |
| 559 |
// Lists the VolumeBackups for a given Backup. |
| 560 |
ListVolumeBackups(context.Context, *ListVolumeBackupsRequest) (*ListVolumeBackupsResponse, error) |
| 561 |
// Retrieve the details of a single VolumeBackup. |
| 562 |
GetVolumeBackup(context.Context, *GetVolumeBackupRequest) (*VolumeBackup, error) |
| 563 |
// Creates a new RestorePlan in a given location. |
| 564 |
CreateRestorePlan(context.Context, *CreateRestorePlanRequest) (*longrunningpb.Operation, error) |
| 565 |
// Lists RestorePlans in a given location. |
| 566 |
ListRestorePlans(context.Context, *ListRestorePlansRequest) (*ListRestorePlansResponse, error) |
| 567 |
// Retrieve the details of a single RestorePlan. |
| 568 |
GetRestorePlan(context.Context, *GetRestorePlanRequest) (*RestorePlan, error) |
| 569 |
// Update a RestorePlan. |
| 570 |
UpdateRestorePlan(context.Context, *UpdateRestorePlanRequest) (*longrunningpb.Operation, error) |
| 571 |
// Deletes an existing RestorePlan. |
| 572 |
DeleteRestorePlan(context.Context, *DeleteRestorePlanRequest) (*longrunningpb.Operation, error) |
| 573 |
// Creates a new RestoreChannel in a given location. |
| 574 |
CreateRestoreChannel(context.Context, *CreateRestoreChannelRequest) (*longrunningpb.Operation, error) |
| 575 |
// Lists RestoreChannels in a given location. |
| 576 |
ListRestoreChannels(context.Context, *ListRestoreChannelsRequest) (*ListRestoreChannelsResponse, error) |
| 577 |
// Retrieve the details of a single RestoreChannel. |
| 578 |
GetRestoreChannel(context.Context, *GetRestoreChannelRequest) (*RestoreChannel, error) |
| 579 |
// Update a RestoreChannel. |
| 580 |
UpdateRestoreChannel(context.Context, *UpdateRestoreChannelRequest) (*longrunningpb.Operation, error) |
| 581 |
// Deletes an existing RestoreChannel. |
| 582 |
DeleteRestoreChannel(context.Context, *DeleteRestoreChannelRequest) (*longrunningpb.Operation, error) |
| 583 |
// Lists RestorePlanBindings in a given location. |
| 584 |
ListRestorePlanBindings(context.Context, *ListRestorePlanBindingsRequest) (*ListRestorePlanBindingsResponse, error) |
| 585 |
// Retrieve the details of a single RestorePlanBinding. |
| 586 |
GetRestorePlanBinding(context.Context, *GetRestorePlanBindingRequest) (*RestorePlanBinding, error) |
| 587 |
// Creates a new Restore for the given RestorePlan. |
| 588 |
CreateRestore(context.Context, *CreateRestoreRequest) (*longrunningpb.Operation, error) |
| 589 |
// Lists the Restores for a given RestorePlan. |
| 590 |
ListRestores(context.Context, *ListRestoresRequest) (*ListRestoresResponse, error) |
| 591 |
// Retrieves the details of a single Restore. |
| 592 |
GetRestore(context.Context, *GetRestoreRequest) (*Restore, error) |
| 593 |
// Update a Restore. |
| 594 |
UpdateRestore(context.Context, *UpdateRestoreRequest) (*longrunningpb.Operation, error) |
| 595 |
// Deletes an existing Restore. |
| 596 |
DeleteRestore(context.Context, *DeleteRestoreRequest) (*longrunningpb.Operation, error) |
| 597 |
// Lists the VolumeRestores for a given Restore. |
| 598 |
ListVolumeRestores(context.Context, *ListVolumeRestoresRequest) (*ListVolumeRestoresResponse, error) |
| 599 |
// Retrieve the details of a single VolumeRestore. |
| 600 |
GetVolumeRestore(context.Context, *GetVolumeRestoreRequest) (*VolumeRestore, error) |
| 601 |
// Retrieve the link to the backupIndex. |
| 602 |
GetBackupIndexDownloadUrl(context.Context, *GetBackupIndexDownloadUrlRequest) (*GetBackupIndexDownloadUrlResponse, error) |
| 603 |
} |
| 604 |
|
| 605 |
// UnimplementedBackupForGKEServer should be embedded to have forward compatible implementations. |
| 606 |
type UnimplementedBackupForGKEServer struct { |
| 607 |
} |
| 608 |
|
| 609 |
func (UnimplementedBackupForGKEServer) CreateBackupPlan(context.Context, *CreateBackupPlanRequest) (*longrunningpb.Operation, error) { |
| 610 |
return nil, status.Errorf(codes.Unimplemented, "method CreateBackupPlan not implemented") |
| 611 |
} |
| 612 |
func (UnimplementedBackupForGKEServer) ListBackupPlans(context.Context, *ListBackupPlansRequest) (*ListBackupPlansResponse, error) { |
| 613 |
return nil, status.Errorf(codes.Unimplemented, "method ListBackupPlans not implemented") |
| 614 |
} |
| 615 |
func (UnimplementedBackupForGKEServer) GetBackupPlan(context.Context, *GetBackupPlanRequest) (*BackupPlan, error) { |
| 616 |
return nil, status.Errorf(codes.Unimplemented, "method GetBackupPlan not implemented") |
| 617 |
} |
| 618 |
func (UnimplementedBackupForGKEServer) UpdateBackupPlan(context.Context, *UpdateBackupPlanRequest) (*longrunningpb.Operation, error) { |
| 619 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateBackupPlan not implemented") |
| 620 |
} |
| 621 |
func (UnimplementedBackupForGKEServer) DeleteBackupPlan(context.Context, *DeleteBackupPlanRequest) (*longrunningpb.Operation, error) { |
| 622 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteBackupPlan not implemented") |
| 623 |
} |
| 624 |
func (UnimplementedBackupForGKEServer) CreateBackupChannel(context.Context, *CreateBackupChannelRequest) (*longrunningpb.Operation, error) { |
| 625 |
return nil, status.Errorf(codes.Unimplemented, "method CreateBackupChannel not implemented") |
| 626 |
} |
| 627 |
func (UnimplementedBackupForGKEServer) ListBackupChannels(context.Context, *ListBackupChannelsRequest) (*ListBackupChannelsResponse, error) { |
| 628 |
return nil, status.Errorf(codes.Unimplemented, "method ListBackupChannels not implemented") |
| 629 |
} |
| 630 |
func (UnimplementedBackupForGKEServer) GetBackupChannel(context.Context, *GetBackupChannelRequest) (*BackupChannel, error) { |
| 631 |
return nil, status.Errorf(codes.Unimplemented, "method GetBackupChannel not implemented") |
| 632 |
} |
| 633 |
func (UnimplementedBackupForGKEServer) UpdateBackupChannel(context.Context, *UpdateBackupChannelRequest) (*longrunningpb.Operation, error) { |
| 634 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateBackupChannel not implemented") |
| 635 |
} |
| 636 |
func (UnimplementedBackupForGKEServer) DeleteBackupChannel(context.Context, *DeleteBackupChannelRequest) (*longrunningpb.Operation, error) { |
| 637 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteBackupChannel not implemented") |
| 638 |
} |
| 639 |
func (UnimplementedBackupForGKEServer) ListBackupPlanBindings(context.Context, *ListBackupPlanBindingsRequest) (*ListBackupPlanBindingsResponse, error) { |
| 640 |
return nil, status.Errorf(codes.Unimplemented, "method ListBackupPlanBindings not implemented") |
| 641 |
} |
| 642 |
func (UnimplementedBackupForGKEServer) GetBackupPlanBinding(context.Context, *GetBackupPlanBindingRequest) (*BackupPlanBinding, error) { |
| 643 |
return nil, status.Errorf(codes.Unimplemented, "method GetBackupPlanBinding not implemented") |
| 644 |
} |
| 645 |
func (UnimplementedBackupForGKEServer) CreateBackup(context.Context, *CreateBackupRequest) (*longrunningpb.Operation, error) { |
| 646 |
return nil, status.Errorf(codes.Unimplemented, "method CreateBackup not implemented") |
| 647 |
} |
| 648 |
func (UnimplementedBackupForGKEServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error) { |
| 649 |
return nil, status.Errorf(codes.Unimplemented, "method ListBackups not implemented") |
| 650 |
} |
| 651 |
func (UnimplementedBackupForGKEServer) GetBackup(context.Context, *GetBackupRequest) (*Backup, error) { |
| 652 |
return nil, status.Errorf(codes.Unimplemented, "method GetBackup not implemented") |
| 653 |
} |
| 654 |
func (UnimplementedBackupForGKEServer) UpdateBackup(context.Context, *UpdateBackupRequest) (*longrunningpb.Operation, error) { |
| 655 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateBackup not implemented") |
| 656 |
} |
| 657 |
func (UnimplementedBackupForGKEServer) DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error) { |
| 658 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteBackup not implemented") |
| 659 |
} |
| 660 |
func (UnimplementedBackupForGKEServer) ListVolumeBackups(context.Context, *ListVolumeBackupsRequest) (*ListVolumeBackupsResponse, error) { |
| 661 |
return nil, status.Errorf(codes.Unimplemented, "method ListVolumeBackups not implemented") |
| 662 |
} |
| 663 |
func (UnimplementedBackupForGKEServer) GetVolumeBackup(context.Context, *GetVolumeBackupRequest) (*VolumeBackup, error) { |
| 664 |
return nil, status.Errorf(codes.Unimplemented, "method GetVolumeBackup not implemented") |
| 665 |
} |
| 666 |
func (UnimplementedBackupForGKEServer) CreateRestorePlan(context.Context, *CreateRestorePlanRequest) (*longrunningpb.Operation, error) { |
| 667 |
return nil, status.Errorf(codes.Unimplemented, "method CreateRestorePlan not implemented") |
| 668 |
} |
| 669 |
func (UnimplementedBackupForGKEServer) ListRestorePlans(context.Context, *ListRestorePlansRequest) (*ListRestorePlansResponse, error) { |
| 670 |
return nil, status.Errorf(codes.Unimplemented, "method ListRestorePlans not implemented") |
| 671 |
} |
| 672 |
func (UnimplementedBackupForGKEServer) GetRestorePlan(context.Context, *GetRestorePlanRequest) (*RestorePlan, error) { |
| 673 |
return nil, status.Errorf(codes.Unimplemented, "method GetRestorePlan not implemented") |
| 674 |
} |
| 675 |
func (UnimplementedBackupForGKEServer) UpdateRestorePlan(context.Context, *UpdateRestorePlanRequest) (*longrunningpb.Operation, error) { |
| 676 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateRestorePlan not implemented") |
| 677 |
} |
| 678 |
func (UnimplementedBackupForGKEServer) DeleteRestorePlan(context.Context, *DeleteRestorePlanRequest) (*longrunningpb.Operation, error) { |
| 679 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteRestorePlan not implemented") |
| 680 |
} |
| 681 |
func (UnimplementedBackupForGKEServer) CreateRestoreChannel(context.Context, *CreateRestoreChannelRequest) (*longrunningpb.Operation, error) { |
| 682 |
return nil, status.Errorf(codes.Unimplemented, "method CreateRestoreChannel not implemented") |
| 683 |
} |
| 684 |
func (UnimplementedBackupForGKEServer) ListRestoreChannels(context.Context, *ListRestoreChannelsRequest) (*ListRestoreChannelsResponse, error) { |
| 685 |
return nil, status.Errorf(codes.Unimplemented, "method ListRestoreChannels not implemented") |
| 686 |
} |
| 687 |
func (UnimplementedBackupForGKEServer) GetRestoreChannel(context.Context, *GetRestoreChannelRequest) (*RestoreChannel, error) { |
| 688 |
return nil, status.Errorf(codes.Unimplemented, "method GetRestoreChannel not implemented") |
| 689 |
} |
| 690 |
func (UnimplementedBackupForGKEServer) UpdateRestoreChannel(context.Context, *UpdateRestoreChannelRequest) (*longrunningpb.Operation, error) { |
| 691 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateRestoreChannel not implemented") |
| 692 |
} |
| 693 |
func (UnimplementedBackupForGKEServer) DeleteRestoreChannel(context.Context, *DeleteRestoreChannelRequest) (*longrunningpb.Operation, error) { |
| 694 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteRestoreChannel not implemented") |
| 695 |
} |
| 696 |
func (UnimplementedBackupForGKEServer) ListRestorePlanBindings(context.Context, *ListRestorePlanBindingsRequest) (*ListRestorePlanBindingsResponse, error) { |
| 697 |
return nil, status.Errorf(codes.Unimplemented, "method ListRestorePlanBindings not implemented") |
| 698 |
} |
| 699 |
func (UnimplementedBackupForGKEServer) GetRestorePlanBinding(context.Context, *GetRestorePlanBindingRequest) (*RestorePlanBinding, error) { |
| 700 |
return nil, status.Errorf(codes.Unimplemented, "method GetRestorePlanBinding not implemented") |
| 701 |
} |
| 702 |
func (UnimplementedBackupForGKEServer) CreateRestore(context.Context, *CreateRestoreRequest) (*longrunningpb.Operation, error) { |
| 703 |
return nil, status.Errorf(codes.Unimplemented, "method CreateRestore not implemented") |
| 704 |
} |
| 705 |
func (UnimplementedBackupForGKEServer) ListRestores(context.Context, *ListRestoresRequest) (*ListRestoresResponse, error) { |
| 706 |
return nil, status.Errorf(codes.Unimplemented, "method ListRestores not implemented") |
| 707 |
} |
| 708 |
func (UnimplementedBackupForGKEServer) GetRestore(context.Context, *GetRestoreRequest) (*Restore, error) { |
| 709 |
return nil, status.Errorf(codes.Unimplemented, "method GetRestore not implemented") |
| 710 |
} |
| 711 |
func (UnimplementedBackupForGKEServer) UpdateRestore(context.Context, *UpdateRestoreRequest) (*longrunningpb.Operation, error) { |
| 712 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateRestore not implemented") |
| 713 |
} |
| 714 |
func (UnimplementedBackupForGKEServer) DeleteRestore(context.Context, *DeleteRestoreRequest) (*longrunningpb.Operation, error) { |
| 715 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteRestore not implemented") |
| 716 |
} |
| 717 |
func (UnimplementedBackupForGKEServer) ListVolumeRestores(context.Context, *ListVolumeRestoresRequest) (*ListVolumeRestoresResponse, error) { |
| 718 |
return nil, status.Errorf(codes.Unimplemented, "method ListVolumeRestores not implemented") |
| 719 |
} |
| 720 |
func (UnimplementedBackupForGKEServer) GetVolumeRestore(context.Context, *GetVolumeRestoreRequest) (*VolumeRestore, error) { |
| 721 |
return nil, status.Errorf(codes.Unimplemented, "method GetVolumeRestore not implemented") |
| 722 |
} |
| 723 |
func (UnimplementedBackupForGKEServer) GetBackupIndexDownloadUrl(context.Context, *GetBackupIndexDownloadUrlRequest) (*GetBackupIndexDownloadUrlResponse, error) { |
| 724 |
return nil, status.Errorf(codes.Unimplemented, "method GetBackupIndexDownloadUrl not implemented") |
| 725 |
} |
| 726 |
|
| 727 |
// UnsafeBackupForGKEServer may be embedded to opt out of forward compatibility for this service. |
| 728 |
// Use of this interface is not recommended, as added methods to BackupForGKEServer will |
| 729 |
// result in compilation errors. |
| 730 |
type UnsafeBackupForGKEServer interface { |
| 731 |
mustEmbedUnimplementedBackupForGKEServer() |
| 732 |
} |
| 733 |
|
| 734 |
func RegisterBackupForGKEServer(s grpc.ServiceRegistrar, srv BackupForGKEServer) { |
| 735 |
s.RegisterService(&BackupForGKE_ServiceDesc, srv) |
| 736 |
} |
| 737 |
|
| 738 |
func _BackupForGKE_CreateBackupPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 739 |
in := new(CreateBackupPlanRequest) |
| 740 |
if err := dec(in); err != nil { |
| 741 |
return nil, err |
| 742 |
} |
| 743 |
if interceptor == nil { |
| 744 |
return srv.(BackupForGKEServer).CreateBackupPlan(ctx, in) |
| 745 |
} |
| 746 |
info := &grpc.UnaryServerInfo{ |
| 747 |
Server: srv, |
| 748 |
FullMethod: BackupForGKE_CreateBackupPlan_FullMethodName, |
| 749 |
} |
| 750 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 751 |
return srv.(BackupForGKEServer).CreateBackupPlan(ctx, req.(*CreateBackupPlanRequest)) |
| 752 |
} |
| 753 |
return interceptor(ctx, in, info, handler) |
| 754 |
} |
| 755 |
|
| 756 |
func _BackupForGKE_ListBackupPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 757 |
in := new(ListBackupPlansRequest) |
| 758 |
if err := dec(in); err != nil { |
| 759 |
return nil, err |
| 760 |
} |
| 761 |
if interceptor == nil { |
| 762 |
return srv.(BackupForGKEServer).ListBackupPlans(ctx, in) |
| 763 |
} |
| 764 |
info := &grpc.UnaryServerInfo{ |
| 765 |
Server: srv, |
| 766 |
FullMethod: BackupForGKE_ListBackupPlans_FullMethodName, |
| 767 |
} |
| 768 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 769 |
return srv.(BackupForGKEServer).ListBackupPlans(ctx, req.(*ListBackupPlansRequest)) |
| 770 |
} |
| 771 |
return interceptor(ctx, in, info, handler) |
| 772 |
} |
| 773 |
|
| 774 |
func _BackupForGKE_GetBackupPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 775 |
in := new(GetBackupPlanRequest) |
| 776 |
if err := dec(in); err != nil { |
| 777 |
return nil, err |
| 778 |
} |
| 779 |
if interceptor == nil { |
| 780 |
return srv.(BackupForGKEServer).GetBackupPlan(ctx, in) |
| 781 |
} |
| 782 |
info := &grpc.UnaryServerInfo{ |
| 783 |
Server: srv, |
| 784 |
FullMethod: BackupForGKE_GetBackupPlan_FullMethodName, |
| 785 |
} |
| 786 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 787 |
return srv.(BackupForGKEServer).GetBackupPlan(ctx, req.(*GetBackupPlanRequest)) |
| 788 |
} |
| 789 |
return interceptor(ctx, in, info, handler) |
| 790 |
} |
| 791 |
|
| 792 |
func _BackupForGKE_UpdateBackupPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 793 |
in := new(UpdateBackupPlanRequest) |
| 794 |
if err := dec(in); err != nil { |
| 795 |
return nil, err |
| 796 |
} |
| 797 |
if interceptor == nil { |
| 798 |
return srv.(BackupForGKEServer).UpdateBackupPlan(ctx, in) |
| 799 |
} |
| 800 |
info := &grpc.UnaryServerInfo{ |
| 801 |
Server: srv, |
| 802 |
FullMethod: BackupForGKE_UpdateBackupPlan_FullMethodName, |
| 803 |
} |
| 804 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 805 |
return srv.(BackupForGKEServer).UpdateBackupPlan(ctx, req.(*UpdateBackupPlanRequest)) |
| 806 |
} |
| 807 |
return interceptor(ctx, in, info, handler) |
| 808 |
} |
| 809 |
|
| 810 |
func _BackupForGKE_DeleteBackupPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 811 |
in := new(DeleteBackupPlanRequest) |
| 812 |
if err := dec(in); err != nil { |
| 813 |
return nil, err |
| 814 |
} |
| 815 |
if interceptor == nil { |
| 816 |
return srv.(BackupForGKEServer).DeleteBackupPlan(ctx, in) |
| 817 |
} |
| 818 |
info := &grpc.UnaryServerInfo{ |
| 819 |
Server: srv, |
| 820 |
FullMethod: BackupForGKE_DeleteBackupPlan_FullMethodName, |
| 821 |
} |
| 822 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 823 |
return srv.(BackupForGKEServer).DeleteBackupPlan(ctx, req.(*DeleteBackupPlanRequest)) |
| 824 |
} |
| 825 |
return interceptor(ctx, in, info, handler) |
| 826 |
} |
| 827 |
|
| 828 |
func _BackupForGKE_CreateBackupChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 829 |
in := new(CreateBackupChannelRequest) |
| 830 |
if err := dec(in); err != nil { |
| 831 |
return nil, err |
| 832 |
} |
| 833 |
if interceptor == nil { |
| 834 |
return srv.(BackupForGKEServer).CreateBackupChannel(ctx, in) |
| 835 |
} |
| 836 |
info := &grpc.UnaryServerInfo{ |
| 837 |
Server: srv, |
| 838 |
FullMethod: BackupForGKE_CreateBackupChannel_FullMethodName, |
| 839 |
} |
| 840 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 841 |
return srv.(BackupForGKEServer).CreateBackupChannel(ctx, req.(*CreateBackupChannelRequest)) |
| 842 |
} |
| 843 |
return interceptor(ctx, in, info, handler) |
| 844 |
} |
| 845 |
|
| 846 |
func _BackupForGKE_ListBackupChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 847 |
in := new(ListBackupChannelsRequest) |
| 848 |
if err := dec(in); err != nil { |
| 849 |
return nil, err |
| 850 |
} |
| 851 |
if interceptor == nil { |
| 852 |
return srv.(BackupForGKEServer).ListBackupChannels(ctx, in) |
| 853 |
} |
| 854 |
info := &grpc.UnaryServerInfo{ |
| 855 |
Server: srv, |
| 856 |
FullMethod: BackupForGKE_ListBackupChannels_FullMethodName, |
| 857 |
} |
| 858 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 859 |
return srv.(BackupForGKEServer).ListBackupChannels(ctx, req.(*ListBackupChannelsRequest)) |
| 860 |
} |
| 861 |
return interceptor(ctx, in, info, handler) |
| 862 |
} |
| 863 |
|
| 864 |
func _BackupForGKE_GetBackupChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 865 |
in := new(GetBackupChannelRequest) |
| 866 |
if err := dec(in); err != nil { |
| 867 |
return nil, err |
| 868 |
} |
| 869 |
if interceptor == nil { |
| 870 |
return srv.(BackupForGKEServer).GetBackupChannel(ctx, in) |
| 871 |
} |
| 872 |
info := &grpc.UnaryServerInfo{ |
| 873 |
Server: srv, |
| 874 |
FullMethod: BackupForGKE_GetBackupChannel_FullMethodName, |
| 875 |
} |
| 876 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 877 |
return srv.(BackupForGKEServer).GetBackupChannel(ctx, req.(*GetBackupChannelRequest)) |
| 878 |
} |
| 879 |
return interceptor(ctx, in, info, handler) |
| 880 |
} |
| 881 |
|
| 882 |
func _BackupForGKE_UpdateBackupChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 883 |
in := new(UpdateBackupChannelRequest) |
| 884 |
if err := dec(in); err != nil { |
| 885 |
return nil, err |
| 886 |
} |
| 887 |
if interceptor == nil { |
| 888 |
return srv.(BackupForGKEServer).UpdateBackupChannel(ctx, in) |
| 889 |
} |
| 890 |
info := &grpc.UnaryServerInfo{ |
| 891 |
Server: srv, |
| 892 |
FullMethod: BackupForGKE_UpdateBackupChannel_FullMethodName, |
| 893 |
} |
| 894 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 895 |
return srv.(BackupForGKEServer).UpdateBackupChannel(ctx, req.(*UpdateBackupChannelRequest)) |
| 896 |
} |
| 897 |
return interceptor(ctx, in, info, handler) |
| 898 |
} |
| 899 |
|
| 900 |
func _BackupForGKE_DeleteBackupChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 901 |
in := new(DeleteBackupChannelRequest) |
| 902 |
if err := dec(in); err != nil { |
| 903 |
return nil, err |
| 904 |
} |
| 905 |
if interceptor == nil { |
| 906 |
return srv.(BackupForGKEServer).DeleteBackupChannel(ctx, in) |
| 907 |
} |
| 908 |
info := &grpc.UnaryServerInfo{ |
| 909 |
Server: srv, |
| 910 |
FullMethod: BackupForGKE_DeleteBackupChannel_FullMethodName, |
| 911 |
} |
| 912 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 913 |
return srv.(BackupForGKEServer).DeleteBackupChannel(ctx, req.(*DeleteBackupChannelRequest)) |
| 914 |
} |
| 915 |
return interceptor(ctx, in, info, handler) |
| 916 |
} |
| 917 |
|
| 918 |
func _BackupForGKE_ListBackupPlanBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 919 |
in := new(ListBackupPlanBindingsRequest) |
| 920 |
if err := dec(in); err != nil { |
| 921 |
return nil, err |
| 922 |
} |
| 923 |
if interceptor == nil { |
| 924 |
return srv.(BackupForGKEServer).ListBackupPlanBindings(ctx, in) |
| 925 |
} |
| 926 |
info := &grpc.UnaryServerInfo{ |
| 927 |
Server: srv, |
| 928 |
FullMethod: BackupForGKE_ListBackupPlanBindings_FullMethodName, |
| 929 |
} |
| 930 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 931 |
return srv.(BackupForGKEServer).ListBackupPlanBindings(ctx, req.(*ListBackupPlanBindingsRequest)) |
| 932 |
} |
| 933 |
return interceptor(ctx, in, info, handler) |
| 934 |
} |
| 935 |
|
| 936 |
func _BackupForGKE_GetBackupPlanBinding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 937 |
in := new(GetBackupPlanBindingRequest) |
| 938 |
if err := dec(in); err != nil { |
| 939 |
return nil, err |
| 940 |
} |
| 941 |
if interceptor == nil { |
| 942 |
return srv.(BackupForGKEServer).GetBackupPlanBinding(ctx, in) |
| 943 |
} |
| 944 |
info := &grpc.UnaryServerInfo{ |
| 945 |
Server: srv, |
| 946 |
FullMethod: BackupForGKE_GetBackupPlanBinding_FullMethodName, |
| 947 |
} |
| 948 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 949 |
return srv.(BackupForGKEServer).GetBackupPlanBinding(ctx, req.(*GetBackupPlanBindingRequest)) |
| 950 |
} |
| 951 |
return interceptor(ctx, in, info, handler) |
| 952 |
} |
| 953 |
|
| 954 |
func _BackupForGKE_CreateBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 955 |
in := new(CreateBackupRequest) |
| 956 |
if err := dec(in); err != nil { |
| 957 |
return nil, err |
| 958 |
} |
| 959 |
if interceptor == nil { |
| 960 |
return srv.(BackupForGKEServer).CreateBackup(ctx, in) |
| 961 |
} |
| 962 |
info := &grpc.UnaryServerInfo{ |
| 963 |
Server: srv, |
| 964 |
FullMethod: BackupForGKE_CreateBackup_FullMethodName, |
| 965 |
} |
| 966 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 967 |
return srv.(BackupForGKEServer).CreateBackup(ctx, req.(*CreateBackupRequest)) |
| 968 |
} |
| 969 |
return interceptor(ctx, in, info, handler) |
| 970 |
} |
| 971 |
|
| 972 |
func _BackupForGKE_ListBackups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 973 |
in := new(ListBackupsRequest) |
| 974 |
if err := dec(in); err != nil { |
| 975 |
return nil, err |
| 976 |
} |
| 977 |
if interceptor == nil { |
| 978 |
return srv.(BackupForGKEServer).ListBackups(ctx, in) |
| 979 |
} |
| 980 |
info := &grpc.UnaryServerInfo{ |
| 981 |
Server: srv, |
| 982 |
FullMethod: BackupForGKE_ListBackups_FullMethodName, |
| 983 |
} |
| 984 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 985 |
return srv.(BackupForGKEServer).ListBackups(ctx, req.(*ListBackupsRequest)) |
| 986 |
} |
| 987 |
return interceptor(ctx, in, info, handler) |
| 988 |
} |
| 989 |
|
| 990 |
func _BackupForGKE_GetBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 991 |
in := new(GetBackupRequest) |
| 992 |
if err := dec(in); err != nil { |
| 993 |
return nil, err |
| 994 |
} |
| 995 |
if interceptor == nil { |
| 996 |
return srv.(BackupForGKEServer).GetBackup(ctx, in) |
| 997 |
} |
| 998 |
info := &grpc.UnaryServerInfo{ |
| 999 |
Server: srv, |
| 1000 |
FullMethod: BackupForGKE_GetBackup_FullMethodName, |
| 1001 |
} |
| 1002 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1003 |
return srv.(BackupForGKEServer).GetBackup(ctx, req.(*GetBackupRequest)) |
| 1004 |
} |
| 1005 |
return interceptor(ctx, in, info, handler) |
| 1006 |
} |
| 1007 |
|
| 1008 |
func _BackupForGKE_UpdateBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1009 |
in := new(UpdateBackupRequest) |
| 1010 |
if err := dec(in); err != nil { |
| 1011 |
return nil, err |
| 1012 |
} |
| 1013 |
if interceptor == nil { |
| 1014 |
return srv.(BackupForGKEServer).UpdateBackup(ctx, in) |
| 1015 |
} |
| 1016 |
info := &grpc.UnaryServerInfo{ |
| 1017 |
Server: srv, |
| 1018 |
FullMethod: BackupForGKE_UpdateBackup_FullMethodName, |
| 1019 |
} |
| 1020 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1021 |
return srv.(BackupForGKEServer).UpdateBackup(ctx, req.(*UpdateBackupRequest)) |
| 1022 |
} |
| 1023 |
return interceptor(ctx, in, info, handler) |
| 1024 |
} |
| 1025 |
|
| 1026 |
func _BackupForGKE_DeleteBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1027 |
in := new(DeleteBackupRequest) |
| 1028 |
if err := dec(in); err != nil { |
| 1029 |
return nil, err |
| 1030 |
} |
| 1031 |
if interceptor == nil { |
| 1032 |
return srv.(BackupForGKEServer).DeleteBackup(ctx, in) |
| 1033 |
} |
| 1034 |
info := &grpc.UnaryServerInfo{ |
| 1035 |
Server: srv, |
| 1036 |
FullMethod: BackupForGKE_DeleteBackup_FullMethodName, |
| 1037 |
} |
| 1038 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1039 |
return srv.(BackupForGKEServer).DeleteBackup(ctx, req.(*DeleteBackupRequest)) |
| 1040 |
} |
| 1041 |
return interceptor(ctx, in, info, handler) |
| 1042 |
} |
| 1043 |
|
| 1044 |
func _BackupForGKE_ListVolumeBackups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1045 |
in := new(ListVolumeBackupsRequest) |
| 1046 |
if err := dec(in); err != nil { |
| 1047 |
return nil, err |
| 1048 |
} |
| 1049 |
if interceptor == nil { |
| 1050 |
return srv.(BackupForGKEServer).ListVolumeBackups(ctx, in) |
| 1051 |
} |
| 1052 |
info := &grpc.UnaryServerInfo{ |
| 1053 |
Server: srv, |
| 1054 |
FullMethod: BackupForGKE_ListVolumeBackups_FullMethodName, |
| 1055 |
} |
| 1056 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1057 |
return srv.(BackupForGKEServer).ListVolumeBackups(ctx, req.(*ListVolumeBackupsRequest)) |
| 1058 |
} |
| 1059 |
return interceptor(ctx, in, info, handler) |
| 1060 |
} |
| 1061 |
|
| 1062 |
func _BackupForGKE_GetVolumeBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1063 |
in := new(GetVolumeBackupRequest) |
| 1064 |
if err := dec(in); err != nil { |
| 1065 |
return nil, err |
| 1066 |
} |
| 1067 |
if interceptor == nil { |
| 1068 |
return srv.(BackupForGKEServer).GetVolumeBackup(ctx, in) |
| 1069 |
} |
| 1070 |
info := &grpc.UnaryServerInfo{ |
| 1071 |
Server: srv, |
| 1072 |
FullMethod: BackupForGKE_GetVolumeBackup_FullMethodName, |
| 1073 |
} |
| 1074 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1075 |
return srv.(BackupForGKEServer).GetVolumeBackup(ctx, req.(*GetVolumeBackupRequest)) |
| 1076 |
} |
| 1077 |
return interceptor(ctx, in, info, handler) |
| 1078 |
} |
| 1079 |
|
| 1080 |
func _BackupForGKE_CreateRestorePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1081 |
in := new(CreateRestorePlanRequest) |
| 1082 |
if err := dec(in); err != nil { |
| 1083 |
return nil, err |
| 1084 |
} |
| 1085 |
if interceptor == nil { |
| 1086 |
return srv.(BackupForGKEServer).CreateRestorePlan(ctx, in) |
| 1087 |
} |
| 1088 |
info := &grpc.UnaryServerInfo{ |
| 1089 |
Server: srv, |
| 1090 |
FullMethod: BackupForGKE_CreateRestorePlan_FullMethodName, |
| 1091 |
} |
| 1092 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1093 |
return srv.(BackupForGKEServer).CreateRestorePlan(ctx, req.(*CreateRestorePlanRequest)) |
| 1094 |
} |
| 1095 |
return interceptor(ctx, in, info, handler) |
| 1096 |
} |
| 1097 |
|
| 1098 |
func _BackupForGKE_ListRestorePlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1099 |
in := new(ListRestorePlansRequest) |
| 1100 |
if err := dec(in); err != nil { |
| 1101 |
return nil, err |
| 1102 |
} |
| 1103 |
if interceptor == nil { |
| 1104 |
return srv.(BackupForGKEServer).ListRestorePlans(ctx, in) |
| 1105 |
} |
| 1106 |
info := &grpc.UnaryServerInfo{ |
| 1107 |
Server: srv, |
| 1108 |
FullMethod: BackupForGKE_ListRestorePlans_FullMethodName, |
| 1109 |
} |
| 1110 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1111 |
return srv.(BackupForGKEServer).ListRestorePlans(ctx, req.(*ListRestorePlansRequest)) |
| 1112 |
} |
| 1113 |
return interceptor(ctx, in, info, handler) |
| 1114 |
} |
| 1115 |
|
| 1116 |
func _BackupForGKE_GetRestorePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1117 |
in := new(GetRestorePlanRequest) |
| 1118 |
if err := dec(in); err != nil { |
| 1119 |
return nil, err |
| 1120 |
} |
| 1121 |
if interceptor == nil { |
| 1122 |
return srv.(BackupForGKEServer).GetRestorePlan(ctx, in) |
| 1123 |
} |
| 1124 |
info := &grpc.UnaryServerInfo{ |
| 1125 |
Server: srv, |
| 1126 |
FullMethod: BackupForGKE_GetRestorePlan_FullMethodName, |
| 1127 |
} |
| 1128 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1129 |
return srv.(BackupForGKEServer).GetRestorePlan(ctx, req.(*GetRestorePlanRequest)) |
| 1130 |
} |
| 1131 |
return interceptor(ctx, in, info, handler) |
| 1132 |
} |
| 1133 |
|
| 1134 |
func _BackupForGKE_UpdateRestorePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1135 |
in := new(UpdateRestorePlanRequest) |
| 1136 |
if err := dec(in); err != nil { |
| 1137 |
return nil, err |
| 1138 |
} |
| 1139 |
if interceptor == nil { |
| 1140 |
return srv.(BackupForGKEServer).UpdateRestorePlan(ctx, in) |
| 1141 |
} |
| 1142 |
info := &grpc.UnaryServerInfo{ |
| 1143 |
Server: srv, |
| 1144 |
FullMethod: BackupForGKE_UpdateRestorePlan_FullMethodName, |
| 1145 |
} |
| 1146 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1147 |
return srv.(BackupForGKEServer).UpdateRestorePlan(ctx, req.(*UpdateRestorePlanRequest)) |
| 1148 |
} |
| 1149 |
return interceptor(ctx, in, info, handler) |
| 1150 |
} |
| 1151 |
|
| 1152 |
func _BackupForGKE_DeleteRestorePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1153 |
in := new(DeleteRestorePlanRequest) |
| 1154 |
if err := dec(in); err != nil { |
| 1155 |
return nil, err |
| 1156 |
} |
| 1157 |
if interceptor == nil { |
| 1158 |
return srv.(BackupForGKEServer).DeleteRestorePlan(ctx, in) |
| 1159 |
} |
| 1160 |
info := &grpc.UnaryServerInfo{ |
| 1161 |
Server: srv, |
| 1162 |
FullMethod: BackupForGKE_DeleteRestorePlan_FullMethodName, |
| 1163 |
} |
| 1164 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1165 |
return srv.(BackupForGKEServer).DeleteRestorePlan(ctx, req.(*DeleteRestorePlanRequest)) |
| 1166 |
} |
| 1167 |
return interceptor(ctx, in, info, handler) |
| 1168 |
} |
| 1169 |
|
| 1170 |
func _BackupForGKE_CreateRestoreChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1171 |
in := new(CreateRestoreChannelRequest) |
| 1172 |
if err := dec(in); err != nil { |
| 1173 |
return nil, err |
| 1174 |
} |
| 1175 |
if interceptor == nil { |
| 1176 |
return srv.(BackupForGKEServer).CreateRestoreChannel(ctx, in) |
| 1177 |
} |
| 1178 |
info := &grpc.UnaryServerInfo{ |
| 1179 |
Server: srv, |
| 1180 |
FullMethod: BackupForGKE_CreateRestoreChannel_FullMethodName, |
| 1181 |
} |
| 1182 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1183 |
return srv.(BackupForGKEServer).CreateRestoreChannel(ctx, req.(*CreateRestoreChannelRequest)) |
| 1184 |
} |
| 1185 |
return interceptor(ctx, in, info, handler) |
| 1186 |
} |
| 1187 |
|
| 1188 |
func _BackupForGKE_ListRestoreChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1189 |
in := new(ListRestoreChannelsRequest) |
| 1190 |
if err := dec(in); err != nil { |
| 1191 |
return nil, err |
| 1192 |
} |
| 1193 |
if interceptor == nil { |
| 1194 |
return srv.(BackupForGKEServer).ListRestoreChannels(ctx, in) |
| 1195 |
} |
| 1196 |
info := &grpc.UnaryServerInfo{ |
| 1197 |
Server: srv, |
| 1198 |
FullMethod: BackupForGKE_ListRestoreChannels_FullMethodName, |
| 1199 |
} |
| 1200 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1201 |
return srv.(BackupForGKEServer).ListRestoreChannels(ctx, req.(*ListRestoreChannelsRequest)) |
| 1202 |
} |
| 1203 |
return interceptor(ctx, in, info, handler) |
| 1204 |
} |
| 1205 |
|
| 1206 |
func _BackupForGKE_GetRestoreChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1207 |
in := new(GetRestoreChannelRequest) |
| 1208 |
if err := dec(in); err != nil { |
| 1209 |
return nil, err |
| 1210 |
} |
| 1211 |
if interceptor == nil { |
| 1212 |
return srv.(BackupForGKEServer).GetRestoreChannel(ctx, in) |
| 1213 |
} |
| 1214 |
info := &grpc.UnaryServerInfo{ |
| 1215 |
Server: srv, |
| 1216 |
FullMethod: BackupForGKE_GetRestoreChannel_FullMethodName, |
| 1217 |
} |
| 1218 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1219 |
return srv.(BackupForGKEServer).GetRestoreChannel(ctx, req.(*GetRestoreChannelRequest)) |
| 1220 |
} |
| 1221 |
return interceptor(ctx, in, info, handler) |
| 1222 |
} |
| 1223 |
|
| 1224 |
func _BackupForGKE_UpdateRestoreChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1225 |
in := new(UpdateRestoreChannelRequest) |
| 1226 |
if err := dec(in); err != nil { |
| 1227 |
return nil, err |
| 1228 |
} |
| 1229 |
if interceptor == nil { |
| 1230 |
return srv.(BackupForGKEServer).UpdateRestoreChannel(ctx, in) |
| 1231 |
} |
| 1232 |
info := &grpc.UnaryServerInfo{ |
| 1233 |
Server: srv, |
| 1234 |
FullMethod: BackupForGKE_UpdateRestoreChannel_FullMethodName, |
| 1235 |
} |
| 1236 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1237 |
return srv.(BackupForGKEServer).UpdateRestoreChannel(ctx, req.(*UpdateRestoreChannelRequest)) |
| 1238 |
} |
| 1239 |
return interceptor(ctx, in, info, handler) |
| 1240 |
} |
| 1241 |
|
| 1242 |
func _BackupForGKE_DeleteRestoreChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1243 |
in := new(DeleteRestoreChannelRequest) |
| 1244 |
if err := dec(in); err != nil { |
| 1245 |
return nil, err |
| 1246 |
} |
| 1247 |
if interceptor == nil { |
| 1248 |
return srv.(BackupForGKEServer).DeleteRestoreChannel(ctx, in) |
| 1249 |
} |
| 1250 |
info := &grpc.UnaryServerInfo{ |
| 1251 |
Server: srv, |
| 1252 |
FullMethod: BackupForGKE_DeleteRestoreChannel_FullMethodName, |
| 1253 |
} |
| 1254 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1255 |
return srv.(BackupForGKEServer).DeleteRestoreChannel(ctx, req.(*DeleteRestoreChannelRequest)) |
| 1256 |
} |
| 1257 |
return interceptor(ctx, in, info, handler) |
| 1258 |
} |
| 1259 |
|
| 1260 |
func _BackupForGKE_ListRestorePlanBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1261 |
in := new(ListRestorePlanBindingsRequest) |
| 1262 |
if err := dec(in); err != nil { |
| 1263 |
return nil, err |
| 1264 |
} |
| 1265 |
if interceptor == nil { |
| 1266 |
return srv.(BackupForGKEServer).ListRestorePlanBindings(ctx, in) |
| 1267 |
} |
| 1268 |
info := &grpc.UnaryServerInfo{ |
| 1269 |
Server: srv, |
| 1270 |
FullMethod: BackupForGKE_ListRestorePlanBindings_FullMethodName, |
| 1271 |
} |
| 1272 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1273 |
return srv.(BackupForGKEServer).ListRestorePlanBindings(ctx, req.(*ListRestorePlanBindingsRequest)) |
| 1274 |
} |
| 1275 |
return interceptor(ctx, in, info, handler) |
| 1276 |
} |
| 1277 |
|
| 1278 |
func _BackupForGKE_GetRestorePlanBinding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1279 |
in := new(GetRestorePlanBindingRequest) |
| 1280 |
if err := dec(in); err != nil { |
| 1281 |
return nil, err |
| 1282 |
} |
| 1283 |
if interceptor == nil { |
| 1284 |
return srv.(BackupForGKEServer).GetRestorePlanBinding(ctx, in) |
| 1285 |
} |
| 1286 |
info := &grpc.UnaryServerInfo{ |
| 1287 |
Server: srv, |
| 1288 |
FullMethod: BackupForGKE_GetRestorePlanBinding_FullMethodName, |
| 1289 |
} |
| 1290 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1291 |
return srv.(BackupForGKEServer).GetRestorePlanBinding(ctx, req.(*GetRestorePlanBindingRequest)) |
| 1292 |
} |
| 1293 |
return interceptor(ctx, in, info, handler) |
| 1294 |
} |
| 1295 |
|
| 1296 |
func _BackupForGKE_CreateRestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1297 |
in := new(CreateRestoreRequest) |
| 1298 |
if err := dec(in); err != nil { |
| 1299 |
return nil, err |
| 1300 |
} |
| 1301 |
if interceptor == nil { |
| 1302 |
return srv.(BackupForGKEServer).CreateRestore(ctx, in) |
| 1303 |
} |
| 1304 |
info := &grpc.UnaryServerInfo{ |
| 1305 |
Server: srv, |
| 1306 |
FullMethod: BackupForGKE_CreateRestore_FullMethodName, |
| 1307 |
} |
| 1308 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1309 |
return srv.(BackupForGKEServer).CreateRestore(ctx, req.(*CreateRestoreRequest)) |
| 1310 |
} |
| 1311 |
return interceptor(ctx, in, info, handler) |
| 1312 |
} |
| 1313 |
|
| 1314 |
func _BackupForGKE_ListRestores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1315 |
in := new(ListRestoresRequest) |
| 1316 |
if err := dec(in); err != nil { |
| 1317 |
return nil, err |
| 1318 |
} |
| 1319 |
if interceptor == nil { |
| 1320 |
return srv.(BackupForGKEServer).ListRestores(ctx, in) |
| 1321 |
} |
| 1322 |
info := &grpc.UnaryServerInfo{ |
| 1323 |
Server: srv, |
| 1324 |
FullMethod: BackupForGKE_ListRestores_FullMethodName, |
| 1325 |
} |
| 1326 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1327 |
return srv.(BackupForGKEServer).ListRestores(ctx, req.(*ListRestoresRequest)) |
| 1328 |
} |
| 1329 |
return interceptor(ctx, in, info, handler) |
| 1330 |
} |
| 1331 |
|
| 1332 |
func _BackupForGKE_GetRestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1333 |
in := new(GetRestoreRequest) |
| 1334 |
if err := dec(in); err != nil { |
| 1335 |
return nil, err |
| 1336 |
} |
| 1337 |
if interceptor == nil { |
| 1338 |
return srv.(BackupForGKEServer).GetRestore(ctx, in) |
| 1339 |
} |
| 1340 |
info := &grpc.UnaryServerInfo{ |
| 1341 |
Server: srv, |
| 1342 |
FullMethod: BackupForGKE_GetRestore_FullMethodName, |
| 1343 |
} |
| 1344 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1345 |
return srv.(BackupForGKEServer).GetRestore(ctx, req.(*GetRestoreRequest)) |
| 1346 |
} |
| 1347 |
return interceptor(ctx, in, info, handler) |
| 1348 |
} |
| 1349 |
|
| 1350 |
func _BackupForGKE_UpdateRestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1351 |
in := new(UpdateRestoreRequest) |
| 1352 |
if err := dec(in); err != nil { |
| 1353 |
return nil, err |
| 1354 |
} |
| 1355 |
if interceptor == nil { |
| 1356 |
return srv.(BackupForGKEServer).UpdateRestore(ctx, in) |
| 1357 |
} |
| 1358 |
info := &grpc.UnaryServerInfo{ |
| 1359 |
Server: srv, |
| 1360 |
FullMethod: BackupForGKE_UpdateRestore_FullMethodName, |
| 1361 |
} |
| 1362 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1363 |
return srv.(BackupForGKEServer).UpdateRestore(ctx, req.(*UpdateRestoreRequest)) |
| 1364 |
} |
| 1365 |
return interceptor(ctx, in, info, handler) |
| 1366 |
} |
| 1367 |
|
| 1368 |
func _BackupForGKE_DeleteRestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1369 |
in := new(DeleteRestoreRequest) |
| 1370 |
if err := dec(in); err != nil { |
| 1371 |
return nil, err |
| 1372 |
} |
| 1373 |
if interceptor == nil { |
| 1374 |
return srv.(BackupForGKEServer).DeleteRestore(ctx, in) |
| 1375 |
} |
| 1376 |
info := &grpc.UnaryServerInfo{ |
| 1377 |
Server: srv, |
| 1378 |
FullMethod: BackupForGKE_DeleteRestore_FullMethodName, |
| 1379 |
} |
| 1380 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1381 |
return srv.(BackupForGKEServer).DeleteRestore(ctx, req.(*DeleteRestoreRequest)) |
| 1382 |
} |
| 1383 |
return interceptor(ctx, in, info, handler) |
| 1384 |
} |
| 1385 |
|
| 1386 |
func _BackupForGKE_ListVolumeRestores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1387 |
in := new(ListVolumeRestoresRequest) |
| 1388 |
if err := dec(in); err != nil { |
| 1389 |
return nil, err |
| 1390 |
} |
| 1391 |
if interceptor == nil { |
| 1392 |
return srv.(BackupForGKEServer).ListVolumeRestores(ctx, in) |
| 1393 |
} |
| 1394 |
info := &grpc.UnaryServerInfo{ |
| 1395 |
Server: srv, |
| 1396 |
FullMethod: BackupForGKE_ListVolumeRestores_FullMethodName, |
| 1397 |
} |
| 1398 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1399 |
return srv.(BackupForGKEServer).ListVolumeRestores(ctx, req.(*ListVolumeRestoresRequest)) |
| 1400 |
} |
| 1401 |
return interceptor(ctx, in, info, handler) |
| 1402 |
} |
| 1403 |
|
| 1404 |
func _BackupForGKE_GetVolumeRestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1405 |
in := new(GetVolumeRestoreRequest) |
| 1406 |
if err := dec(in); err != nil { |
| 1407 |
return nil, err |
| 1408 |
} |
| 1409 |
if interceptor == nil { |
| 1410 |
return srv.(BackupForGKEServer).GetVolumeRestore(ctx, in) |
| 1411 |
} |
| 1412 |
info := &grpc.UnaryServerInfo{ |
| 1413 |
Server: srv, |
| 1414 |
FullMethod: BackupForGKE_GetVolumeRestore_FullMethodName, |
| 1415 |
} |
| 1416 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1417 |
return srv.(BackupForGKEServer).GetVolumeRestore(ctx, req.(*GetVolumeRestoreRequest)) |
| 1418 |
} |
| 1419 |
return interceptor(ctx, in, info, handler) |
| 1420 |
} |
| 1421 |
|
| 1422 |
func _BackupForGKE_GetBackupIndexDownloadUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1423 |
in := new(GetBackupIndexDownloadUrlRequest) |
| 1424 |
if err := dec(in); err != nil { |
| 1425 |
return nil, err |
| 1426 |
} |
| 1427 |
if interceptor == nil { |
| 1428 |
return srv.(BackupForGKEServer).GetBackupIndexDownloadUrl(ctx, in) |
| 1429 |
} |
| 1430 |
info := &grpc.UnaryServerInfo{ |
| 1431 |
Server: srv, |
| 1432 |
FullMethod: BackupForGKE_GetBackupIndexDownloadUrl_FullMethodName, |
| 1433 |
} |
| 1434 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1435 |
return srv.(BackupForGKEServer).GetBackupIndexDownloadUrl(ctx, req.(*GetBackupIndexDownloadUrlRequest)) |
| 1436 |
} |
| 1437 |
return interceptor(ctx, in, info, handler) |
| 1438 |
} |
| 1439 |
|
| 1440 |
// BackupForGKE_ServiceDesc is the grpc.ServiceDesc for BackupForGKE service. |
| 1441 |
// It's only intended for direct use with grpc.RegisterService, |
| 1442 |
// and not to be introspected or modified (even as a copy) |
| 1443 |
var BackupForGKE_ServiceDesc = grpc.ServiceDesc{ |
| 1444 |
ServiceName: "google.cloud.gkebackup.v1.BackupForGKE", |
| 1445 |
HandlerType: (*BackupForGKEServer)(nil), |
| 1446 |
Methods: []grpc.MethodDesc{ |
| 1447 |
{ |
| 1448 |
MethodName: "CreateBackupPlan", |
| 1449 |
Handler: _BackupForGKE_CreateBackupPlan_Handler, |
| 1450 |
}, |
| 1451 |
{ |
| 1452 |
MethodName: "ListBackupPlans", |
| 1453 |
Handler: _BackupForGKE_ListBackupPlans_Handler, |
| 1454 |
}, |
| 1455 |
{ |
| 1456 |
MethodName: "GetBackupPlan", |
| 1457 |
Handler: _BackupForGKE_GetBackupPlan_Handler, |
| 1458 |
}, |
| 1459 |
{ |
| 1460 |
MethodName: "UpdateBackupPlan", |
| 1461 |
Handler: _BackupForGKE_UpdateBackupPlan_Handler, |
| 1462 |
}, |
| 1463 |
{ |
| 1464 |
MethodName: "DeleteBackupPlan", |
| 1465 |
Handler: _BackupForGKE_DeleteBackupPlan_Handler, |
| 1466 |
}, |
| 1467 |
{ |
| 1468 |
MethodName: "CreateBackupChannel", |
| 1469 |
Handler: _BackupForGKE_CreateBackupChannel_Handler, |
| 1470 |
}, |
| 1471 |
{ |
| 1472 |
MethodName: "ListBackupChannels", |
| 1473 |
Handler: _BackupForGKE_ListBackupChannels_Handler, |
| 1474 |
}, |
| 1475 |
{ |
| 1476 |
MethodName: "GetBackupChannel", |
| 1477 |
Handler: _BackupForGKE_GetBackupChannel_Handler, |
| 1478 |
}, |
| 1479 |
{ |
| 1480 |
MethodName: "UpdateBackupChannel", |
| 1481 |
Handler: _BackupForGKE_UpdateBackupChannel_Handler, |
| 1482 |
}, |
| 1483 |
{ |
| 1484 |
MethodName: "DeleteBackupChannel", |
| 1485 |
Handler: _BackupForGKE_DeleteBackupChannel_Handler, |
| 1486 |
}, |
| 1487 |
{ |
| 1488 |
MethodName: "ListBackupPlanBindings", |
| 1489 |
Handler: _BackupForGKE_ListBackupPlanBindings_Handler, |
| 1490 |
}, |
| 1491 |
{ |
| 1492 |
MethodName: "GetBackupPlanBinding", |
| 1493 |
Handler: _BackupForGKE_GetBackupPlanBinding_Handler, |
| 1494 |
}, |
| 1495 |
{ |
| 1496 |
MethodName: "CreateBackup", |
| 1497 |
Handler: _BackupForGKE_CreateBackup_Handler, |
| 1498 |
}, |
| 1499 |
{ |
| 1500 |
MethodName: "ListBackups", |
| 1501 |
Handler: _BackupForGKE_ListBackups_Handler, |
| 1502 |
}, |
| 1503 |
{ |
| 1504 |
MethodName: "GetBackup", |
| 1505 |
Handler: _BackupForGKE_GetBackup_Handler, |
| 1506 |
}, |
| 1507 |
{ |
| 1508 |
MethodName: "UpdateBackup", |
| 1509 |
Handler: _BackupForGKE_UpdateBackup_Handler, |
| 1510 |
}, |
| 1511 |
{ |
| 1512 |
MethodName: "DeleteBackup", |
| 1513 |
Handler: _BackupForGKE_DeleteBackup_Handler, |
| 1514 |
}, |
| 1515 |
{ |
| 1516 |
MethodName: "ListVolumeBackups", |
| 1517 |
Handler: _BackupForGKE_ListVolumeBackups_Handler, |
| 1518 |
}, |
| 1519 |
{ |
| 1520 |
MethodName: "GetVolumeBackup", |
| 1521 |
Handler: _BackupForGKE_GetVolumeBackup_Handler, |
| 1522 |
}, |
| 1523 |
{ |
| 1524 |
MethodName: "CreateRestorePlan", |
| 1525 |
Handler: _BackupForGKE_CreateRestorePlan_Handler, |
| 1526 |
}, |
| 1527 |
{ |
| 1528 |
MethodName: "ListRestorePlans", |
| 1529 |
Handler: _BackupForGKE_ListRestorePlans_Handler, |
| 1530 |
}, |
| 1531 |
{ |
| 1532 |
MethodName: "GetRestorePlan", |
| 1533 |
Handler: _BackupForGKE_GetRestorePlan_Handler, |
| 1534 |
}, |
| 1535 |
{ |
| 1536 |
MethodName: "UpdateRestorePlan", |
| 1537 |
Handler: _BackupForGKE_UpdateRestorePlan_Handler, |
| 1538 |
}, |
| 1539 |
{ |
| 1540 |
MethodName: "DeleteRestorePlan", |
| 1541 |
Handler: _BackupForGKE_DeleteRestorePlan_Handler, |
| 1542 |
}, |
| 1543 |
{ |
| 1544 |
MethodName: "CreateRestoreChannel", |
| 1545 |
Handler: _BackupForGKE_CreateRestoreChannel_Handler, |
| 1546 |
}, |
| 1547 |
{ |
| 1548 |
MethodName: "ListRestoreChannels", |
| 1549 |
Handler: _BackupForGKE_ListRestoreChannels_Handler, |
| 1550 |
}, |
| 1551 |
{ |
| 1552 |
MethodName: "GetRestoreChannel", |
| 1553 |
Handler: _BackupForGKE_GetRestoreChannel_Handler, |
| 1554 |
}, |
| 1555 |
{ |
| 1556 |
MethodName: "UpdateRestoreChannel", |
| 1557 |
Handler: _BackupForGKE_UpdateRestoreChannel_Handler, |
| 1558 |
}, |
| 1559 |
{ |
| 1560 |
MethodName: "DeleteRestoreChannel", |
| 1561 |
Handler: _BackupForGKE_DeleteRestoreChannel_Handler, |
| 1562 |
}, |
| 1563 |
{ |
| 1564 |
MethodName: "ListRestorePlanBindings", |
| 1565 |
Handler: _BackupForGKE_ListRestorePlanBindings_Handler, |
| 1566 |
}, |
| 1567 |
{ |
| 1568 |
MethodName: "GetRestorePlanBinding", |
| 1569 |
Handler: _BackupForGKE_GetRestorePlanBinding_Handler, |
| 1570 |
}, |
| 1571 |
{ |
| 1572 |
MethodName: "CreateRestore", |
| 1573 |
Handler: _BackupForGKE_CreateRestore_Handler, |
| 1574 |
}, |
| 1575 |
{ |
| 1576 |
MethodName: "ListRestores", |
| 1577 |
Handler: _BackupForGKE_ListRestores_Handler, |
| 1578 |
}, |
| 1579 |
{ |
| 1580 |
MethodName: "GetRestore", |
| 1581 |
Handler: _BackupForGKE_GetRestore_Handler, |
| 1582 |
}, |
| 1583 |
{ |
| 1584 |
MethodName: "UpdateRestore", |
| 1585 |
Handler: _BackupForGKE_UpdateRestore_Handler, |
| 1586 |
}, |
| 1587 |
{ |
| 1588 |
MethodName: "DeleteRestore", |
| 1589 |
Handler: _BackupForGKE_DeleteRestore_Handler, |
| 1590 |
}, |
| 1591 |
{ |
| 1592 |
MethodName: "ListVolumeRestores", |
| 1593 |
Handler: _BackupForGKE_ListVolumeRestores_Handler, |
| 1594 |
}, |
| 1595 |
{ |
| 1596 |
MethodName: "GetVolumeRestore", |
| 1597 |
Handler: _BackupForGKE_GetVolumeRestore_Handler, |
| 1598 |
}, |
| 1599 |
{ |
| 1600 |
MethodName: "GetBackupIndexDownloadUrl", |
| 1601 |
Handler: _BackupForGKE_GetBackupIndexDownloadUrl_Handler, |
| 1602 |
}, |
| 1603 |
}, |
| 1604 |
Streams: []grpc.StreamDesc{}, |
| 1605 |
Metadata: "google/cloud/gkebackup/v1/gkebackup.proto", |
| 1606 |
} |