Debian Codegraph @

filestore/apiv1/filestorepb/cloud_filestore_service_grpc.pb.go

raw symbols SCIP
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/filestore/v1/cloud_filestore_service.proto
20
21 package filestorepb
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 CloudFilestoreManager_ListInstances_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/ListInstances"
38 CloudFilestoreManager_GetInstance_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/GetInstance"
39 CloudFilestoreManager_CreateInstance_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/CreateInstance"
40 CloudFilestoreManager_UpdateInstance_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/UpdateInstance"
41 CloudFilestoreManager_RestoreInstance_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/RestoreInstance"
42 CloudFilestoreManager_RevertInstance_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/RevertInstance"
43 CloudFilestoreManager_DeleteInstance_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/DeleteInstance"
44 CloudFilestoreManager_ListSnapshots_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/ListSnapshots"
45 CloudFilestoreManager_GetSnapshot_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/GetSnapshot"
46 CloudFilestoreManager_CreateSnapshot_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/CreateSnapshot"
47 CloudFilestoreManager_DeleteSnapshot_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/DeleteSnapshot"
48 CloudFilestoreManager_UpdateSnapshot_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/UpdateSnapshot"
49 CloudFilestoreManager_ListBackups_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/ListBackups"
50 CloudFilestoreManager_GetBackup_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/GetBackup"
51 CloudFilestoreManager_CreateBackup_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/CreateBackup"
52 CloudFilestoreManager_DeleteBackup_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/DeleteBackup"
53 CloudFilestoreManager_UpdateBackup_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/UpdateBackup"
54 CloudFilestoreManager_PromoteReplica_FullMethodName = "/google.cloud.filestore.v1.CloudFilestoreManager/PromoteReplica"
55 )
56
57 // CloudFilestoreManagerClient is the client API for CloudFilestoreManager service.
58 //
59 // 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.
60 type CloudFilestoreManagerClient interface {
61 // Lists all instances in a project for either a specified location
62 // or for all locations.
63 ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error)
64 // Gets the details of a specific instance.
65 GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
66 // Creates an instance.
67 // When creating from a backup, the capacity of the new instance needs to be
68 // equal to or larger than the capacity of the backup (and also equal to or
69 // larger than the minimum capacity of the tier).
70 CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
71 // Updates the settings of a specific instance.
72 UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
73 // Restores an existing instance's file share from a backup.
74 //
75 // The capacity of the instance needs to be equal to or larger than the
76 // capacity of the backup (and also equal to or larger than the minimum
77 // capacity of the tier).
78 RestoreInstance(ctx context.Context, in *RestoreInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
79 // Revert an existing instance's file system to a specified snapshot.
80 RevertInstance(ctx context.Context, in *RevertInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
81 // Deletes an instance.
82 DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
83 // Lists all snapshots in a project for either a specified location
84 // or for all locations.
85 ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error)
86 // Gets the details of a specific snapshot.
87 GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error)
88 // Creates a snapshot.
89 CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
90 // Deletes a snapshot.
91 DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
92 // Updates the settings of a specific snapshot.
93 UpdateSnapshot(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
94 // Lists all backups in a project for either a specified location or for all
95 // locations.
96 ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error)
97 // Gets the details of a specific backup.
98 GetBackup(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error)
99 // Creates a backup.
100 CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
101 // Deletes a backup.
102 DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
103 // Updates the settings of a specific backup.
104 UpdateBackup(ctx context.Context, in *UpdateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
105 // Promote the standby instance (replica).
106 PromoteReplica(ctx context.Context, in *PromoteReplicaRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
107 }
108
109 type cloudFilestoreManagerClient struct {
110 cc grpc.ClientConnInterface
111 }
112
113 func NewCloudFilestoreManagerClient(cc grpc.ClientConnInterface) CloudFilestoreManagerClient {
114 return &cloudFilestoreManagerClient{cc}
115 }
116
117 func (c *cloudFilestoreManagerClient) ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error) {
118 out := new(ListInstancesResponse)
119 err := c.cc.Invoke(ctx, CloudFilestoreManager_ListInstances_FullMethodName, in, out, opts...)
120 if err != nil {
121 return nil, err
122 }
123 return out, nil
124 }
125
126 func (c *cloudFilestoreManagerClient) GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error) {
127 out := new(Instance)
128 err := c.cc.Invoke(ctx, CloudFilestoreManager_GetInstance_FullMethodName, in, out, opts...)
129 if err != nil {
130 return nil, err
131 }
132 return out, nil
133 }
134
135 func (c *cloudFilestoreManagerClient) CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
136 out := new(longrunningpb.Operation)
137 err := c.cc.Invoke(ctx, CloudFilestoreManager_CreateInstance_FullMethodName, in, out, opts...)
138 if err != nil {
139 return nil, err
140 }
141 return out, nil
142 }
143
144 func (c *cloudFilestoreManagerClient) UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
145 out := new(longrunningpb.Operation)
146 err := c.cc.Invoke(ctx, CloudFilestoreManager_UpdateInstance_FullMethodName, in, out, opts...)
147 if err != nil {
148 return nil, err
149 }
150 return out, nil
151 }
152
153 func (c *cloudFilestoreManagerClient) RestoreInstance(ctx context.Context, in *RestoreInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
154 out := new(longrunningpb.Operation)
155 err := c.cc.Invoke(ctx, CloudFilestoreManager_RestoreInstance_FullMethodName, in, out, opts...)
156 if err != nil {
157 return nil, err
158 }
159 return out, nil
160 }
161
162 func (c *cloudFilestoreManagerClient) RevertInstance(ctx context.Context, in *RevertInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
163 out := new(longrunningpb.Operation)
164 err := c.cc.Invoke(ctx, CloudFilestoreManager_RevertInstance_FullMethodName, in, out, opts...)
165 if err != nil {
166 return nil, err
167 }
168 return out, nil
169 }
170
171 func (c *cloudFilestoreManagerClient) DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
172 out := new(longrunningpb.Operation)
173 err := c.cc.Invoke(ctx, CloudFilestoreManager_DeleteInstance_FullMethodName, in, out, opts...)
174 if err != nil {
175 return nil, err
176 }
177 return out, nil
178 }
179
180 func (c *cloudFilestoreManagerClient) ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error) {
181 out := new(ListSnapshotsResponse)
182 err := c.cc.Invoke(ctx, CloudFilestoreManager_ListSnapshots_FullMethodName, in, out, opts...)
183 if err != nil {
184 return nil, err
185 }
186 return out, nil
187 }
188
189 func (c *cloudFilestoreManagerClient) GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error) {
190 out := new(Snapshot)
191 err := c.cc.Invoke(ctx, CloudFilestoreManager_GetSnapshot_FullMethodName, in, out, opts...)
192 if err != nil {
193 return nil, err
194 }
195 return out, nil
196 }
197
198 func (c *cloudFilestoreManagerClient) CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
199 out := new(longrunningpb.Operation)
200 err := c.cc.Invoke(ctx, CloudFilestoreManager_CreateSnapshot_FullMethodName, in, out, opts...)
201 if err != nil {
202 return nil, err
203 }
204 return out, nil
205 }
206
207 func (c *cloudFilestoreManagerClient) DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
208 out := new(longrunningpb.Operation)
209 err := c.cc.Invoke(ctx, CloudFilestoreManager_DeleteSnapshot_FullMethodName, in, out, opts...)
210 if err != nil {
211 return nil, err
212 }
213 return out, nil
214 }
215
216 func (c *cloudFilestoreManagerClient) UpdateSnapshot(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
217 out := new(longrunningpb.Operation)
218 err := c.cc.Invoke(ctx, CloudFilestoreManager_UpdateSnapshot_FullMethodName, in, out, opts...)
219 if err != nil {
220 return nil, err
221 }
222 return out, nil
223 }
224
225 func (c *cloudFilestoreManagerClient) ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error) {
226 out := new(ListBackupsResponse)
227 err := c.cc.Invoke(ctx, CloudFilestoreManager_ListBackups_FullMethodName, in, out, opts...)
228 if err != nil {
229 return nil, err
230 }
231 return out, nil
232 }
233
234 func (c *cloudFilestoreManagerClient) GetBackup(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error) {
235 out := new(Backup)
236 err := c.cc.Invoke(ctx, CloudFilestoreManager_GetBackup_FullMethodName, in, out, opts...)
237 if err != nil {
238 return nil, err
239 }
240 return out, nil
241 }
242
243 func (c *cloudFilestoreManagerClient) CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
244 out := new(longrunningpb.Operation)
245 err := c.cc.Invoke(ctx, CloudFilestoreManager_CreateBackup_FullMethodName, in, out, opts...)
246 if err != nil {
247 return nil, err
248 }
249 return out, nil
250 }
251
252 func (c *cloudFilestoreManagerClient) DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
253 out := new(longrunningpb.Operation)
254 err := c.cc.Invoke(ctx, CloudFilestoreManager_DeleteBackup_FullMethodName, in, out, opts...)
255 if err != nil {
256 return nil, err
257 }
258 return out, nil
259 }
260
261 func (c *cloudFilestoreManagerClient) UpdateBackup(ctx context.Context, in *UpdateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
262 out := new(longrunningpb.Operation)
263 err := c.cc.Invoke(ctx, CloudFilestoreManager_UpdateBackup_FullMethodName, in, out, opts...)
264 if err != nil {
265 return nil, err
266 }
267 return out, nil
268 }
269
270 func (c *cloudFilestoreManagerClient) PromoteReplica(ctx context.Context, in *PromoteReplicaRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
271 out := new(longrunningpb.Operation)
272 err := c.cc.Invoke(ctx, CloudFilestoreManager_PromoteReplica_FullMethodName, in, out, opts...)
273 if err != nil {
274 return nil, err
275 }
276 return out, nil
277 }
278
279 // CloudFilestoreManagerServer is the server API for CloudFilestoreManager service.
280 // All implementations should embed UnimplementedCloudFilestoreManagerServer
281 // for forward compatibility
282 type CloudFilestoreManagerServer interface {
283 // Lists all instances in a project for either a specified location
284 // or for all locations.
285 ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)
286 // Gets the details of a specific instance.
287 GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)
288 // Creates an instance.
289 // When creating from a backup, the capacity of the new instance needs to be
290 // equal to or larger than the capacity of the backup (and also equal to or
291 // larger than the minimum capacity of the tier).
292 CreateInstance(context.Context, *CreateInstanceRequest) (*longrunningpb.Operation, error)
293 // Updates the settings of a specific instance.
294 UpdateInstance(context.Context, *UpdateInstanceRequest) (*longrunningpb.Operation, error)
295 // Restores an existing instance's file share from a backup.
296 //
297 // The capacity of the instance needs to be equal to or larger than the
298 // capacity of the backup (and also equal to or larger than the minimum
299 // capacity of the tier).
300 RestoreInstance(context.Context, *RestoreInstanceRequest) (*longrunningpb.Operation, error)
301 // Revert an existing instance's file system to a specified snapshot.
302 RevertInstance(context.Context, *RevertInstanceRequest) (*longrunningpb.Operation, error)
303 // Deletes an instance.
304 DeleteInstance(context.Context, *DeleteInstanceRequest) (*longrunningpb.Operation, error)
305 // Lists all snapshots in a project for either a specified location
306 // or for all locations.
307 ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
308 // Gets the details of a specific snapshot.
309 GetSnapshot(context.Context, *GetSnapshotRequest) (*Snapshot, error)
310 // Creates a snapshot.
311 CreateSnapshot(context.Context, *CreateSnapshotRequest) (*longrunningpb.Operation, error)
312 // Deletes a snapshot.
313 DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*longrunningpb.Operation, error)
314 // Updates the settings of a specific snapshot.
315 UpdateSnapshot(context.Context, *UpdateSnapshotRequest) (*longrunningpb.Operation, error)
316 // Lists all backups in a project for either a specified location or for all
317 // locations.
318 ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error)
319 // Gets the details of a specific backup.
320 GetBackup(context.Context, *GetBackupRequest) (*Backup, error)
321 // Creates a backup.
322 CreateBackup(context.Context, *CreateBackupRequest) (*longrunningpb.Operation, error)
323 // Deletes a backup.
324 DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error)
325 // Updates the settings of a specific backup.
326 UpdateBackup(context.Context, *UpdateBackupRequest) (*longrunningpb.Operation, error)
327 // Promote the standby instance (replica).
328 PromoteReplica(context.Context, *PromoteReplicaRequest) (*longrunningpb.Operation, error)
329 }
330
331 // UnimplementedCloudFilestoreManagerServer should be embedded to have forward compatible implementations.
332 type UnimplementedCloudFilestoreManagerServer struct {
333 }
334
335 func (UnimplementedCloudFilestoreManagerServer) ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error) {
336 return nil, status.Errorf(codes.Unimplemented, "method ListInstances not implemented")
337 }
338 func (UnimplementedCloudFilestoreManagerServer) GetInstance(context.Context, *GetInstanceRequest) (*Instance, error) {
339 return nil, status.Errorf(codes.Unimplemented, "method GetInstance not implemented")
340 }
341 func (UnimplementedCloudFilestoreManagerServer) CreateInstance(context.Context, *CreateInstanceRequest) (*longrunningpb.Operation, error) {
342 return nil, status.Errorf(codes.Unimplemented, "method CreateInstance not implemented")
343 }
344 func (UnimplementedCloudFilestoreManagerServer) UpdateInstance(context.Context, *UpdateInstanceRequest) (*longrunningpb.Operation, error) {
345 return nil, status.Errorf(codes.Unimplemented, "method UpdateInstance not implemented")
346 }
347 func (UnimplementedCloudFilestoreManagerServer) RestoreInstance(context.Context, *RestoreInstanceRequest) (*longrunningpb.Operation, error) {
348 return nil, status.Errorf(codes.Unimplemented, "method RestoreInstance not implemented")
349 }
350 func (UnimplementedCloudFilestoreManagerServer) RevertInstance(context.Context, *RevertInstanceRequest) (*longrunningpb.Operation, error) {
351 return nil, status.Errorf(codes.Unimplemented, "method RevertInstance not implemented")
352 }
353 func (UnimplementedCloudFilestoreManagerServer) DeleteInstance(context.Context, *DeleteInstanceRequest) (*longrunningpb.Operation, error) {
354 return nil, status.Errorf(codes.Unimplemented, "method DeleteInstance not implemented")
355 }
356 func (UnimplementedCloudFilestoreManagerServer) ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error) {
357 return nil, status.Errorf(codes.Unimplemented, "method ListSnapshots not implemented")
358 }
359 func (UnimplementedCloudFilestoreManagerServer) GetSnapshot(context.Context, *GetSnapshotRequest) (*Snapshot, error) {
360 return nil, status.Errorf(codes.Unimplemented, "method GetSnapshot not implemented")
361 }
362 func (UnimplementedCloudFilestoreManagerServer) CreateSnapshot(context.Context, *CreateSnapshotRequest) (*longrunningpb.Operation, error) {
363 return nil, status.Errorf(codes.Unimplemented, "method CreateSnapshot not implemented")
364 }
365 func (UnimplementedCloudFilestoreManagerServer) DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*longrunningpb.Operation, error) {
366 return nil, status.Errorf(codes.Unimplemented, "method DeleteSnapshot not implemented")
367 }
368 func (UnimplementedCloudFilestoreManagerServer) UpdateSnapshot(context.Context, *UpdateSnapshotRequest) (*longrunningpb.Operation, error) {
369 return nil, status.Errorf(codes.Unimplemented, "method UpdateSnapshot not implemented")
370 }
371 func (UnimplementedCloudFilestoreManagerServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error) {
372 return nil, status.Errorf(codes.Unimplemented, "method ListBackups not implemented")
373 }
374 func (UnimplementedCloudFilestoreManagerServer) GetBackup(context.Context, *GetBackupRequest) (*Backup, error) {
375 return nil, status.Errorf(codes.Unimplemented, "method GetBackup not implemented")
376 }
377 func (UnimplementedCloudFilestoreManagerServer) CreateBackup(context.Context, *CreateBackupRequest) (*longrunningpb.Operation, error) {
378 return nil, status.Errorf(codes.Unimplemented, "method CreateBackup not implemented")
379 }
380 func (UnimplementedCloudFilestoreManagerServer) DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error) {
381 return nil, status.Errorf(codes.Unimplemented, "method DeleteBackup not implemented")
382 }
383 func (UnimplementedCloudFilestoreManagerServer) UpdateBackup(context.Context, *UpdateBackupRequest) (*longrunningpb.Operation, error) {
384 return nil, status.Errorf(codes.Unimplemented, "method UpdateBackup not implemented")
385 }
386 func (UnimplementedCloudFilestoreManagerServer) PromoteReplica(context.Context, *PromoteReplicaRequest) (*longrunningpb.Operation, error) {
387 return nil, status.Errorf(codes.Unimplemented, "method PromoteReplica not implemented")
388 }
389
390 // UnsafeCloudFilestoreManagerServer may be embedded to opt out of forward compatibility for this service.
391 // Use of this interface is not recommended, as added methods to CloudFilestoreManagerServer will
392 // result in compilation errors.
393 type UnsafeCloudFilestoreManagerServer interface {
394 mustEmbedUnimplementedCloudFilestoreManagerServer()
395 }
396
397 func RegisterCloudFilestoreManagerServer(s grpc.ServiceRegistrar, srv CloudFilestoreManagerServer) {
398 s.RegisterService(&CloudFilestoreManager_ServiceDesc, srv)
399 }
400
401 func _CloudFilestoreManager_ListInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
402 in := new(ListInstancesRequest)
403 if err := dec(in); err != nil {
404 return nil, err
405 }
406 if interceptor == nil {
407 return srv.(CloudFilestoreManagerServer).ListInstances(ctx, in)
408 }
409 info := &grpc.UnaryServerInfo{
410 Server: srv,
411 FullMethod: CloudFilestoreManager_ListInstances_FullMethodName,
412 }
413 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
414 return srv.(CloudFilestoreManagerServer).ListInstances(ctx, req.(*ListInstancesRequest))
415 }
416 return interceptor(ctx, in, info, handler)
417 }
418
419 func _CloudFilestoreManager_GetInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
420 in := new(GetInstanceRequest)
421 if err := dec(in); err != nil {
422 return nil, err
423 }
424 if interceptor == nil {
425 return srv.(CloudFilestoreManagerServer).GetInstance(ctx, in)
426 }
427 info := &grpc.UnaryServerInfo{
428 Server: srv,
429 FullMethod: CloudFilestoreManager_GetInstance_FullMethodName,
430 }
431 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
432 return srv.(CloudFilestoreManagerServer).GetInstance(ctx, req.(*GetInstanceRequest))
433 }
434 return interceptor(ctx, in, info, handler)
435 }
436
437 func _CloudFilestoreManager_CreateInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
438 in := new(CreateInstanceRequest)
439 if err := dec(in); err != nil {
440 return nil, err
441 }
442 if interceptor == nil {
443 return srv.(CloudFilestoreManagerServer).CreateInstance(ctx, in)
444 }
445 info := &grpc.UnaryServerInfo{
446 Server: srv,
447 FullMethod: CloudFilestoreManager_CreateInstance_FullMethodName,
448 }
449 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
450 return srv.(CloudFilestoreManagerServer).CreateInstance(ctx, req.(*CreateInstanceRequest))
451 }
452 return interceptor(ctx, in, info, handler)
453 }
454
455 func _CloudFilestoreManager_UpdateInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
456 in := new(UpdateInstanceRequest)
457 if err := dec(in); err != nil {
458 return nil, err
459 }
460 if interceptor == nil {
461 return srv.(CloudFilestoreManagerServer).UpdateInstance(ctx, in)
462 }
463 info := &grpc.UnaryServerInfo{
464 Server: srv,
465 FullMethod: CloudFilestoreManager_UpdateInstance_FullMethodName,
466 }
467 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
468 return srv.(CloudFilestoreManagerServer).UpdateInstance(ctx, req.(*UpdateInstanceRequest))
469 }
470 return interceptor(ctx, in, info, handler)
471 }
472
473 func _CloudFilestoreManager_RestoreInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
474 in := new(RestoreInstanceRequest)
475 if err := dec(in); err != nil {
476 return nil, err
477 }
478 if interceptor == nil {
479 return srv.(CloudFilestoreManagerServer).RestoreInstance(ctx, in)
480 }
481 info := &grpc.UnaryServerInfo{
482 Server: srv,
483 FullMethod: CloudFilestoreManager_RestoreInstance_FullMethodName,
484 }
485 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
486 return srv.(CloudFilestoreManagerServer).RestoreInstance(ctx, req.(*RestoreInstanceRequest))
487 }
488 return interceptor(ctx, in, info, handler)
489 }
490
491 func _CloudFilestoreManager_RevertInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
492 in := new(RevertInstanceRequest)
493 if err := dec(in); err != nil {
494 return nil, err
495 }
496 if interceptor == nil {
497 return srv.(CloudFilestoreManagerServer).RevertInstance(ctx, in)
498 }
499 info := &grpc.UnaryServerInfo{
500 Server: srv,
501 FullMethod: CloudFilestoreManager_RevertInstance_FullMethodName,
502 }
503 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
504 return srv.(CloudFilestoreManagerServer).RevertInstance(ctx, req.(*RevertInstanceRequest))
505 }
506 return interceptor(ctx, in, info, handler)
507 }
508
509 func _CloudFilestoreManager_DeleteInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
510 in := new(DeleteInstanceRequest)
511 if err := dec(in); err != nil {
512 return nil, err
513 }
514 if interceptor == nil {
515 return srv.(CloudFilestoreManagerServer).DeleteInstance(ctx, in)
516 }
517 info := &grpc.UnaryServerInfo{
518 Server: srv,
519 FullMethod: CloudFilestoreManager_DeleteInstance_FullMethodName,
520 }
521 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
522 return srv.(CloudFilestoreManagerServer).DeleteInstance(ctx, req.(*DeleteInstanceRequest))
523 }
524 return interceptor(ctx, in, info, handler)
525 }
526
527 func _CloudFilestoreManager_ListSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
528 in := new(ListSnapshotsRequest)
529 if err := dec(in); err != nil {
530 return nil, err
531 }
532 if interceptor == nil {
533 return srv.(CloudFilestoreManagerServer).ListSnapshots(ctx, in)
534 }
535 info := &grpc.UnaryServerInfo{
536 Server: srv,
537 FullMethod: CloudFilestoreManager_ListSnapshots_FullMethodName,
538 }
539 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
540 return srv.(CloudFilestoreManagerServer).ListSnapshots(ctx, req.(*ListSnapshotsRequest))
541 }
542 return interceptor(ctx, in, info, handler)
543 }
544
545 func _CloudFilestoreManager_GetSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
546 in := new(GetSnapshotRequest)
547 if err := dec(in); err != nil {
548 return nil, err
549 }
550 if interceptor == nil {
551 return srv.(CloudFilestoreManagerServer).GetSnapshot(ctx, in)
552 }
553 info := &grpc.UnaryServerInfo{
554 Server: srv,
555 FullMethod: CloudFilestoreManager_GetSnapshot_FullMethodName,
556 }
557 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
558 return srv.(CloudFilestoreManagerServer).GetSnapshot(ctx, req.(*GetSnapshotRequest))
559 }
560 return interceptor(ctx, in, info, handler)
561 }
562
563 func _CloudFilestoreManager_CreateSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
564 in := new(CreateSnapshotRequest)
565 if err := dec(in); err != nil {
566 return nil, err
567 }
568 if interceptor == nil {
569 return srv.(CloudFilestoreManagerServer).CreateSnapshot(ctx, in)
570 }
571 info := &grpc.UnaryServerInfo{
572 Server: srv,
573 FullMethod: CloudFilestoreManager_CreateSnapshot_FullMethodName,
574 }
575 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
576 return srv.(CloudFilestoreManagerServer).CreateSnapshot(ctx, req.(*CreateSnapshotRequest))
577 }
578 return interceptor(ctx, in, info, handler)
579 }
580
581 func _CloudFilestoreManager_DeleteSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
582 in := new(DeleteSnapshotRequest)
583 if err := dec(in); err != nil {
584 return nil, err
585 }
586 if interceptor == nil {
587 return srv.(CloudFilestoreManagerServer).DeleteSnapshot(ctx, in)
588 }
589 info := &grpc.UnaryServerInfo{
590 Server: srv,
591 FullMethod: CloudFilestoreManager_DeleteSnapshot_FullMethodName,
592 }
593 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
594 return srv.(CloudFilestoreManagerServer).DeleteSnapshot(ctx, req.(*DeleteSnapshotRequest))
595 }
596 return interceptor(ctx, in, info, handler)
597 }
598
599 func _CloudFilestoreManager_UpdateSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
600 in := new(UpdateSnapshotRequest)
601 if err := dec(in); err != nil {
602 return nil, err
603 }
604 if interceptor == nil {
605 return srv.(CloudFilestoreManagerServer).UpdateSnapshot(ctx, in)
606 }
607 info := &grpc.UnaryServerInfo{
608 Server: srv,
609 FullMethod: CloudFilestoreManager_UpdateSnapshot_FullMethodName,
610 }
611 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
612 return srv.(CloudFilestoreManagerServer).UpdateSnapshot(ctx, req.(*UpdateSnapshotRequest))
613 }
614 return interceptor(ctx, in, info, handler)
615 }
616
617 func _CloudFilestoreManager_ListBackups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
618 in := new(ListBackupsRequest)
619 if err := dec(in); err != nil {
620 return nil, err
621 }
622 if interceptor == nil {
623 return srv.(CloudFilestoreManagerServer).ListBackups(ctx, in)
624 }
625 info := &grpc.UnaryServerInfo{
626 Server: srv,
627 FullMethod: CloudFilestoreManager_ListBackups_FullMethodName,
628 }
629 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
630 return srv.(CloudFilestoreManagerServer).ListBackups(ctx, req.(*ListBackupsRequest))
631 }
632 return interceptor(ctx, in, info, handler)
633 }
634
635 func _CloudFilestoreManager_GetBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
636 in := new(GetBackupRequest)
637 if err := dec(in); err != nil {
638 return nil, err
639 }
640 if interceptor == nil {
641 return srv.(CloudFilestoreManagerServer).GetBackup(ctx, in)
642 }
643 info := &grpc.UnaryServerInfo{
644 Server: srv,
645 FullMethod: CloudFilestoreManager_GetBackup_FullMethodName,
646 }
647 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
648 return srv.(CloudFilestoreManagerServer).GetBackup(ctx, req.(*GetBackupRequest))
649 }
650 return interceptor(ctx, in, info, handler)
651 }
652
653 func _CloudFilestoreManager_CreateBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
654 in := new(CreateBackupRequest)
655 if err := dec(in); err != nil {
656 return nil, err
657 }
658 if interceptor == nil {
659 return srv.(CloudFilestoreManagerServer).CreateBackup(ctx, in)
660 }
661 info := &grpc.UnaryServerInfo{
662 Server: srv,
663 FullMethod: CloudFilestoreManager_CreateBackup_FullMethodName,
664 }
665 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
666 return srv.(CloudFilestoreManagerServer).CreateBackup(ctx, req.(*CreateBackupRequest))
667 }
668 return interceptor(ctx, in, info, handler)
669 }
670
671 func _CloudFilestoreManager_DeleteBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
672 in := new(DeleteBackupRequest)
673 if err := dec(in); err != nil {
674 return nil, err
675 }
676 if interceptor == nil {
677 return srv.(CloudFilestoreManagerServer).DeleteBackup(ctx, in)
678 }
679 info := &grpc.UnaryServerInfo{
680 Server: srv,
681 FullMethod: CloudFilestoreManager_DeleteBackup_FullMethodName,
682 }
683 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
684 return srv.(CloudFilestoreManagerServer).DeleteBackup(ctx, req.(*DeleteBackupRequest))
685 }
686 return interceptor(ctx, in, info, handler)
687 }
688
689 func _CloudFilestoreManager_UpdateBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
690 in := new(UpdateBackupRequest)
691 if err := dec(in); err != nil {
692 return nil, err
693 }
694 if interceptor == nil {
695 return srv.(CloudFilestoreManagerServer).UpdateBackup(ctx, in)
696 }
697 info := &grpc.UnaryServerInfo{
698 Server: srv,
699 FullMethod: CloudFilestoreManager_UpdateBackup_FullMethodName,
700 }
701 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
702 return srv.(CloudFilestoreManagerServer).UpdateBackup(ctx, req.(*UpdateBackupRequest))
703 }
704 return interceptor(ctx, in, info, handler)
705 }
706
707 func _CloudFilestoreManager_PromoteReplica_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
708 in := new(PromoteReplicaRequest)
709 if err := dec(in); err != nil {
710 return nil, err
711 }
712 if interceptor == nil {
713 return srv.(CloudFilestoreManagerServer).PromoteReplica(ctx, in)
714 }
715 info := &grpc.UnaryServerInfo{
716 Server: srv,
717 FullMethod: CloudFilestoreManager_PromoteReplica_FullMethodName,
718 }
719 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
720 return srv.(CloudFilestoreManagerServer).PromoteReplica(ctx, req.(*PromoteReplicaRequest))
721 }
722 return interceptor(ctx, in, info, handler)
723 }
724
725 // CloudFilestoreManager_ServiceDesc is the grpc.ServiceDesc for CloudFilestoreManager service.
726 // It's only intended for direct use with grpc.RegisterService,
727 // and not to be introspected or modified (even as a copy)
728 var CloudFilestoreManager_ServiceDesc = grpc.ServiceDesc{
729 ServiceName: "google.cloud.filestore.v1.CloudFilestoreManager",
730 HandlerType: (*CloudFilestoreManagerServer)(nil),
731 Methods: []grpc.MethodDesc{
732 {
733 MethodName: "ListInstances",
734 Handler: _CloudFilestoreManager_ListInstances_Handler,
735 },
736 {
737 MethodName: "GetInstance",
738 Handler: _CloudFilestoreManager_GetInstance_Handler,
739 },
740 {
741 MethodName: "CreateInstance",
742 Handler: _CloudFilestoreManager_CreateInstance_Handler,
743 },
744 {
745 MethodName: "UpdateInstance",
746 Handler: _CloudFilestoreManager_UpdateInstance_Handler,
747 },
748 {
749 MethodName: "RestoreInstance",
750 Handler: _CloudFilestoreManager_RestoreInstance_Handler,
751 },
752 {
753 MethodName: "RevertInstance",
754 Handler: _CloudFilestoreManager_RevertInstance_Handler,
755 },
756 {
757 MethodName: "DeleteInstance",
758 Handler: _CloudFilestoreManager_DeleteInstance_Handler,
759 },
760 {
761 MethodName: "ListSnapshots",
762 Handler: _CloudFilestoreManager_ListSnapshots_Handler,
763 },
764 {
765 MethodName: "GetSnapshot",
766 Handler: _CloudFilestoreManager_GetSnapshot_Handler,
767 },
768 {
769 MethodName: "CreateSnapshot",
770 Handler: _CloudFilestoreManager_CreateSnapshot_Handler,
771 },
772 {
773 MethodName: "DeleteSnapshot",
774 Handler: _CloudFilestoreManager_DeleteSnapshot_Handler,
775 },
776 {
777 MethodName: "UpdateSnapshot",
778 Handler: _CloudFilestoreManager_UpdateSnapshot_Handler,
779 },
780 {
781 MethodName: "ListBackups",
782 Handler: _CloudFilestoreManager_ListBackups_Handler,
783 },
784 {
785 MethodName: "GetBackup",
786 Handler: _CloudFilestoreManager_GetBackup_Handler,
787 },
788 {
789 MethodName: "CreateBackup",
790 Handler: _CloudFilestoreManager_CreateBackup_Handler,
791 },
792 {
793 MethodName: "DeleteBackup",
794 Handler: _CloudFilestoreManager_DeleteBackup_Handler,
795 },
796 {
797 MethodName: "UpdateBackup",
798 Handler: _CloudFilestoreManager_UpdateBackup_Handler,
799 },
800 {
801 MethodName: "PromoteReplica",
802 Handler: _CloudFilestoreManager_PromoteReplica_Handler,
803 },
804 },
805 Streams: []grpc.StreamDesc{},
806 Metadata: "google/cloud/filestore/v1/cloud_filestore_service.proto",
807 }