Debian Codegraph @

gkemulticloud/apiv1/gkemulticloudpb/attached_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/gkemulticloud/v1/attached_service.proto
20
21 package gkemulticloudpb
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 AttachedClusters_CreateAttachedCluster_FullMethodName = "/google.cloud.gkemulticloud.v1.AttachedClusters/CreateAttachedCluster"
38 AttachedClusters_UpdateAttachedCluster_FullMethodName = "/google.cloud.gkemulticloud.v1.AttachedClusters/UpdateAttachedCluster"
39 AttachedClusters_ImportAttachedCluster_FullMethodName = "/google.cloud.gkemulticloud.v1.AttachedClusters/ImportAttachedCluster"
40 AttachedClusters_GetAttachedCluster_FullMethodName = "/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedCluster"
41 AttachedClusters_ListAttachedClusters_FullMethodName = "/google.cloud.gkemulticloud.v1.AttachedClusters/ListAttachedClusters"
42 AttachedClusters_DeleteAttachedCluster_FullMethodName = "/google.cloud.gkemulticloud.v1.AttachedClusters/DeleteAttachedCluster"
43 AttachedClusters_GetAttachedServerConfig_FullMethodName = "/google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedServerConfig"
44 AttachedClusters_GenerateAttachedClusterInstallManifest_FullMethodName = "/google.cloud.gkemulticloud.v1.AttachedClusters/GenerateAttachedClusterInstallManifest"
45 AttachedClusters_GenerateAttachedClusterAgentToken_FullMethodName = "/google.cloud.gkemulticloud.v1.AttachedClusters/GenerateAttachedClusterAgentToken"
46 )
47
48 // AttachedClustersClient is the client API for AttachedClusters service.
49 //
50 // 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.
51 type AttachedClustersClient interface {
52 // Creates a new
53 // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
54 // on a given Google Cloud Platform project and region.
55 //
56 // If successful, the response contains a newly created
57 // [Operation][google.longrunning.Operation] resource that can be
58 // described to track the status of the operation.
59 CreateAttachedCluster(ctx context.Context, in *CreateAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
60 // Updates an
61 // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
62 UpdateAttachedCluster(ctx context.Context, in *UpdateAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
63 // Imports creates a new
64 // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
65 // by importing an existing Fleet Membership resource.
66 //
67 // Attached Clusters created before the introduction of the Anthos Multi-Cloud
68 // API can be imported through this method.
69 //
70 // If successful, the response contains a newly created
71 // [Operation][google.longrunning.Operation] resource that can be
72 // described to track the status of the operation.
73 ImportAttachedCluster(ctx context.Context, in *ImportAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
74 // Describes a specific
75 // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
76 GetAttachedCluster(ctx context.Context, in *GetAttachedClusterRequest, opts ...grpc.CallOption) (*AttachedCluster, error)
77 // Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
78 // resources on a given Google Cloud project and region.
79 ListAttachedClusters(ctx context.Context, in *ListAttachedClustersRequest, opts ...grpc.CallOption) (*ListAttachedClustersResponse, error)
80 // Deletes a specific
81 // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
82 //
83 // If successful, the response contains a newly created
84 // [Operation][google.longrunning.Operation] resource that can be
85 // described to track the status of the operation.
86 DeleteAttachedCluster(ctx context.Context, in *DeleteAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
87 // Returns information, such as supported Kubernetes versions, on a given
88 // Google Cloud location.
89 GetAttachedServerConfig(ctx context.Context, in *GetAttachedServerConfigRequest, opts ...grpc.CallOption) (*AttachedServerConfig, error)
90 // Generates the install manifest to be installed on the target cluster.
91 GenerateAttachedClusterInstallManifest(ctx context.Context, in *GenerateAttachedClusterInstallManifestRequest, opts ...grpc.CallOption) (*GenerateAttachedClusterInstallManifestResponse, error)
92 // Generates an access token for a cluster agent.
93 GenerateAttachedClusterAgentToken(ctx context.Context, in *GenerateAttachedClusterAgentTokenRequest, opts ...grpc.CallOption) (*GenerateAttachedClusterAgentTokenResponse, error)
94 }
95
96 type attachedClustersClient struct {
97 cc grpc.ClientConnInterface
98 }
99
100 func NewAttachedClustersClient(cc grpc.ClientConnInterface) AttachedClustersClient {
101 return &attachedClustersClient{cc}
102 }
103
104 func (c *attachedClustersClient) CreateAttachedCluster(ctx context.Context, in *CreateAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
105 out := new(longrunningpb.Operation)
106 err := c.cc.Invoke(ctx, AttachedClusters_CreateAttachedCluster_FullMethodName, in, out, opts...)
107 if err != nil {
108 return nil, err
109 }
110 return out, nil
111 }
112
113 func (c *attachedClustersClient) UpdateAttachedCluster(ctx context.Context, in *UpdateAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
114 out := new(longrunningpb.Operation)
115 err := c.cc.Invoke(ctx, AttachedClusters_UpdateAttachedCluster_FullMethodName, in, out, opts...)
116 if err != nil {
117 return nil, err
118 }
119 return out, nil
120 }
121
122 func (c *attachedClustersClient) ImportAttachedCluster(ctx context.Context, in *ImportAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
123 out := new(longrunningpb.Operation)
124 err := c.cc.Invoke(ctx, AttachedClusters_ImportAttachedCluster_FullMethodName, in, out, opts...)
125 if err != nil {
126 return nil, err
127 }
128 return out, nil
129 }
130
131 func (c *attachedClustersClient) GetAttachedCluster(ctx context.Context, in *GetAttachedClusterRequest, opts ...grpc.CallOption) (*AttachedCluster, error) {
132 out := new(AttachedCluster)
133 err := c.cc.Invoke(ctx, AttachedClusters_GetAttachedCluster_FullMethodName, in, out, opts...)
134 if err != nil {
135 return nil, err
136 }
137 return out, nil
138 }
139
140 func (c *attachedClustersClient) ListAttachedClusters(ctx context.Context, in *ListAttachedClustersRequest, opts ...grpc.CallOption) (*ListAttachedClustersResponse, error) {
141 out := new(ListAttachedClustersResponse)
142 err := c.cc.Invoke(ctx, AttachedClusters_ListAttachedClusters_FullMethodName, in, out, opts...)
143 if err != nil {
144 return nil, err
145 }
146 return out, nil
147 }
148
149 func (c *attachedClustersClient) DeleteAttachedCluster(ctx context.Context, in *DeleteAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
150 out := new(longrunningpb.Operation)
151 err := c.cc.Invoke(ctx, AttachedClusters_DeleteAttachedCluster_FullMethodName, in, out, opts...)
152 if err != nil {
153 return nil, err
154 }
155 return out, nil
156 }
157
158 func (c *attachedClustersClient) GetAttachedServerConfig(ctx context.Context, in *GetAttachedServerConfigRequest, opts ...grpc.CallOption) (*AttachedServerConfig, error) {
159 out := new(AttachedServerConfig)
160 err := c.cc.Invoke(ctx, AttachedClusters_GetAttachedServerConfig_FullMethodName, in, out, opts...)
161 if err != nil {
162 return nil, err
163 }
164 return out, nil
165 }
166
167 func (c *attachedClustersClient) GenerateAttachedClusterInstallManifest(ctx context.Context, in *GenerateAttachedClusterInstallManifestRequest, opts ...grpc.CallOption) (*GenerateAttachedClusterInstallManifestResponse, error) {
168 out := new(GenerateAttachedClusterInstallManifestResponse)
169 err := c.cc.Invoke(ctx, AttachedClusters_GenerateAttachedClusterInstallManifest_FullMethodName, in, out, opts...)
170 if err != nil {
171 return nil, err
172 }
173 return out, nil
174 }
175
176 func (c *attachedClustersClient) GenerateAttachedClusterAgentToken(ctx context.Context, in *GenerateAttachedClusterAgentTokenRequest, opts ...grpc.CallOption) (*GenerateAttachedClusterAgentTokenResponse, error) {
177 out := new(GenerateAttachedClusterAgentTokenResponse)
178 err := c.cc.Invoke(ctx, AttachedClusters_GenerateAttachedClusterAgentToken_FullMethodName, in, out, opts...)
179 if err != nil {
180 return nil, err
181 }
182 return out, nil
183 }
184
185 // AttachedClustersServer is the server API for AttachedClusters service.
186 // All implementations should embed UnimplementedAttachedClustersServer
187 // for forward compatibility
188 type AttachedClustersServer interface {
189 // Creates a new
190 // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
191 // on a given Google Cloud Platform project and region.
192 //
193 // If successful, the response contains a newly created
194 // [Operation][google.longrunning.Operation] resource that can be
195 // described to track the status of the operation.
196 CreateAttachedCluster(context.Context, *CreateAttachedClusterRequest) (*longrunningpb.Operation, error)
197 // Updates an
198 // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
199 UpdateAttachedCluster(context.Context, *UpdateAttachedClusterRequest) (*longrunningpb.Operation, error)
200 // Imports creates a new
201 // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
202 // by importing an existing Fleet Membership resource.
203 //
204 // Attached Clusters created before the introduction of the Anthos Multi-Cloud
205 // API can be imported through this method.
206 //
207 // If successful, the response contains a newly created
208 // [Operation][google.longrunning.Operation] resource that can be
209 // described to track the status of the operation.
210 ImportAttachedCluster(context.Context, *ImportAttachedClusterRequest) (*longrunningpb.Operation, error)
211 // Describes a specific
212 // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
213 GetAttachedCluster(context.Context, *GetAttachedClusterRequest) (*AttachedCluster, error)
214 // Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
215 // resources on a given Google Cloud project and region.
216 ListAttachedClusters(context.Context, *ListAttachedClustersRequest) (*ListAttachedClustersResponse, error)
217 // Deletes a specific
218 // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
219 //
220 // If successful, the response contains a newly created
221 // [Operation][google.longrunning.Operation] resource that can be
222 // described to track the status of the operation.
223 DeleteAttachedCluster(context.Context, *DeleteAttachedClusterRequest) (*longrunningpb.Operation, error)
224 // Returns information, such as supported Kubernetes versions, on a given
225 // Google Cloud location.
226 GetAttachedServerConfig(context.Context, *GetAttachedServerConfigRequest) (*AttachedServerConfig, error)
227 // Generates the install manifest to be installed on the target cluster.
228 GenerateAttachedClusterInstallManifest(context.Context, *GenerateAttachedClusterInstallManifestRequest) (*GenerateAttachedClusterInstallManifestResponse, error)
229 // Generates an access token for a cluster agent.
230 GenerateAttachedClusterAgentToken(context.Context, *GenerateAttachedClusterAgentTokenRequest) (*GenerateAttachedClusterAgentTokenResponse, error)
231 }
232
233 // UnimplementedAttachedClustersServer should be embedded to have forward compatible implementations.
234 type UnimplementedAttachedClustersServer struct {
235 }
236
237 func (UnimplementedAttachedClustersServer) CreateAttachedCluster(context.Context, *CreateAttachedClusterRequest) (*longrunningpb.Operation, error) {
238 return nil, status.Errorf(codes.Unimplemented, "method CreateAttachedCluster not implemented")
239 }
240 func (UnimplementedAttachedClustersServer) UpdateAttachedCluster(context.Context, *UpdateAttachedClusterRequest) (*longrunningpb.Operation, error) {
241 return nil, status.Errorf(codes.Unimplemented, "method UpdateAttachedCluster not implemented")
242 }
243 func (UnimplementedAttachedClustersServer) ImportAttachedCluster(context.Context, *ImportAttachedClusterRequest) (*longrunningpb.Operation, error) {
244 return nil, status.Errorf(codes.Unimplemented, "method ImportAttachedCluster not implemented")
245 }
246 func (UnimplementedAttachedClustersServer) GetAttachedCluster(context.Context, *GetAttachedClusterRequest) (*AttachedCluster, error) {
247 return nil, status.Errorf(codes.Unimplemented, "method GetAttachedCluster not implemented")
248 }
249 func (UnimplementedAttachedClustersServer) ListAttachedClusters(context.Context, *ListAttachedClustersRequest) (*ListAttachedClustersResponse, error) {
250 return nil, status.Errorf(codes.Unimplemented, "method ListAttachedClusters not implemented")
251 }
252 func (UnimplementedAttachedClustersServer) DeleteAttachedCluster(context.Context, *DeleteAttachedClusterRequest) (*longrunningpb.Operation, error) {
253 return nil, status.Errorf(codes.Unimplemented, "method DeleteAttachedCluster not implemented")
254 }
255 func (UnimplementedAttachedClustersServer) GetAttachedServerConfig(context.Context, *GetAttachedServerConfigRequest) (*AttachedServerConfig, error) {
256 return nil, status.Errorf(codes.Unimplemented, "method GetAttachedServerConfig not implemented")
257 }
258 func (UnimplementedAttachedClustersServer) GenerateAttachedClusterInstallManifest(context.Context, *GenerateAttachedClusterInstallManifestRequest) (*GenerateAttachedClusterInstallManifestResponse, error) {
259 return nil, status.Errorf(codes.Unimplemented, "method GenerateAttachedClusterInstallManifest not implemented")
260 }
261 func (UnimplementedAttachedClustersServer) GenerateAttachedClusterAgentToken(context.Context, *GenerateAttachedClusterAgentTokenRequest) (*GenerateAttachedClusterAgentTokenResponse, error) {
262 return nil, status.Errorf(codes.Unimplemented, "method GenerateAttachedClusterAgentToken not implemented")
263 }
264
265 // UnsafeAttachedClustersServer may be embedded to opt out of forward compatibility for this service.
266 // Use of this interface is not recommended, as added methods to AttachedClustersServer will
267 // result in compilation errors.
268 type UnsafeAttachedClustersServer interface {
269 mustEmbedUnimplementedAttachedClustersServer()
270 }
271
272 func RegisterAttachedClustersServer(s grpc.ServiceRegistrar, srv AttachedClustersServer) {
273 s.RegisterService(&AttachedClusters_ServiceDesc, srv)
274 }
275
276 func _AttachedClusters_CreateAttachedCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
277 in := new(CreateAttachedClusterRequest)
278 if err := dec(in); err != nil {
279 return nil, err
280 }
281 if interceptor == nil {
282 return srv.(AttachedClustersServer).CreateAttachedCluster(ctx, in)
283 }
284 info := &grpc.UnaryServerInfo{
285 Server: srv,
286 FullMethod: AttachedClusters_CreateAttachedCluster_FullMethodName,
287 }
288 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
289 return srv.(AttachedClustersServer).CreateAttachedCluster(ctx, req.(*CreateAttachedClusterRequest))
290 }
291 return interceptor(ctx, in, info, handler)
292 }
293
294 func _AttachedClusters_UpdateAttachedCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
295 in := new(UpdateAttachedClusterRequest)
296 if err := dec(in); err != nil {
297 return nil, err
298 }
299 if interceptor == nil {
300 return srv.(AttachedClustersServer).UpdateAttachedCluster(ctx, in)
301 }
302 info := &grpc.UnaryServerInfo{
303 Server: srv,
304 FullMethod: AttachedClusters_UpdateAttachedCluster_FullMethodName,
305 }
306 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
307 return srv.(AttachedClustersServer).UpdateAttachedCluster(ctx, req.(*UpdateAttachedClusterRequest))
308 }
309 return interceptor(ctx, in, info, handler)
310 }
311
312 func _AttachedClusters_ImportAttachedCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
313 in := new(ImportAttachedClusterRequest)
314 if err := dec(in); err != nil {
315 return nil, err
316 }
317 if interceptor == nil {
318 return srv.(AttachedClustersServer).ImportAttachedCluster(ctx, in)
319 }
320 info := &grpc.UnaryServerInfo{
321 Server: srv,
322 FullMethod: AttachedClusters_ImportAttachedCluster_FullMethodName,
323 }
324 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
325 return srv.(AttachedClustersServer).ImportAttachedCluster(ctx, req.(*ImportAttachedClusterRequest))
326 }
327 return interceptor(ctx, in, info, handler)
328 }
329
330 func _AttachedClusters_GetAttachedCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
331 in := new(GetAttachedClusterRequest)
332 if err := dec(in); err != nil {
333 return nil, err
334 }
335 if interceptor == nil {
336 return srv.(AttachedClustersServer).GetAttachedCluster(ctx, in)
337 }
338 info := &grpc.UnaryServerInfo{
339 Server: srv,
340 FullMethod: AttachedClusters_GetAttachedCluster_FullMethodName,
341 }
342 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
343 return srv.(AttachedClustersServer).GetAttachedCluster(ctx, req.(*GetAttachedClusterRequest))
344 }
345 return interceptor(ctx, in, info, handler)
346 }
347
348 func _AttachedClusters_ListAttachedClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
349 in := new(ListAttachedClustersRequest)
350 if err := dec(in); err != nil {
351 return nil, err
352 }
353 if interceptor == nil {
354 return srv.(AttachedClustersServer).ListAttachedClusters(ctx, in)
355 }
356 info := &grpc.UnaryServerInfo{
357 Server: srv,
358 FullMethod: AttachedClusters_ListAttachedClusters_FullMethodName,
359 }
360 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
361 return srv.(AttachedClustersServer).ListAttachedClusters(ctx, req.(*ListAttachedClustersRequest))
362 }
363 return interceptor(ctx, in, info, handler)
364 }
365
366 func _AttachedClusters_DeleteAttachedCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
367 in := new(DeleteAttachedClusterRequest)
368 if err := dec(in); err != nil {
369 return nil, err
370 }
371 if interceptor == nil {
372 return srv.(AttachedClustersServer).DeleteAttachedCluster(ctx, in)
373 }
374 info := &grpc.UnaryServerInfo{
375 Server: srv,
376 FullMethod: AttachedClusters_DeleteAttachedCluster_FullMethodName,
377 }
378 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
379 return srv.(AttachedClustersServer).DeleteAttachedCluster(ctx, req.(*DeleteAttachedClusterRequest))
380 }
381 return interceptor(ctx, in, info, handler)
382 }
383
384 func _AttachedClusters_GetAttachedServerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
385 in := new(GetAttachedServerConfigRequest)
386 if err := dec(in); err != nil {
387 return nil, err
388 }
389 if interceptor == nil {
390 return srv.(AttachedClustersServer).GetAttachedServerConfig(ctx, in)
391 }
392 info := &grpc.UnaryServerInfo{
393 Server: srv,
394 FullMethod: AttachedClusters_GetAttachedServerConfig_FullMethodName,
395 }
396 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
397 return srv.(AttachedClustersServer).GetAttachedServerConfig(ctx, req.(*GetAttachedServerConfigRequest))
398 }
399 return interceptor(ctx, in, info, handler)
400 }
401
402 func _AttachedClusters_GenerateAttachedClusterInstallManifest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
403 in := new(GenerateAttachedClusterInstallManifestRequest)
404 if err := dec(in); err != nil {
405 return nil, err
406 }
407 if interceptor == nil {
408 return srv.(AttachedClustersServer).GenerateAttachedClusterInstallManifest(ctx, in)
409 }
410 info := &grpc.UnaryServerInfo{
411 Server: srv,
412 FullMethod: AttachedClusters_GenerateAttachedClusterInstallManifest_FullMethodName,
413 }
414 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
415 return srv.(AttachedClustersServer).GenerateAttachedClusterInstallManifest(ctx, req.(*GenerateAttachedClusterInstallManifestRequest))
416 }
417 return interceptor(ctx, in, info, handler)
418 }
419
420 func _AttachedClusters_GenerateAttachedClusterAgentToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
421 in := new(GenerateAttachedClusterAgentTokenRequest)
422 if err := dec(in); err != nil {
423 return nil, err
424 }
425 if interceptor == nil {
426 return srv.(AttachedClustersServer).GenerateAttachedClusterAgentToken(ctx, in)
427 }
428 info := &grpc.UnaryServerInfo{
429 Server: srv,
430 FullMethod: AttachedClusters_GenerateAttachedClusterAgentToken_FullMethodName,
431 }
432 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
433 return srv.(AttachedClustersServer).GenerateAttachedClusterAgentToken(ctx, req.(*GenerateAttachedClusterAgentTokenRequest))
434 }
435 return interceptor(ctx, in, info, handler)
436 }
437
438 // AttachedClusters_ServiceDesc is the grpc.ServiceDesc for AttachedClusters service.
439 // It's only intended for direct use with grpc.RegisterService,
440 // and not to be introspected or modified (even as a copy)
441 var AttachedClusters_ServiceDesc = grpc.ServiceDesc{
442 ServiceName: "google.cloud.gkemulticloud.v1.AttachedClusters",
443 HandlerType: (*AttachedClustersServer)(nil),
444 Methods: []grpc.MethodDesc{
445 {
446 MethodName: "CreateAttachedCluster",
447 Handler: _AttachedClusters_CreateAttachedCluster_Handler,
448 },
449 {
450 MethodName: "UpdateAttachedCluster",
451 Handler: _AttachedClusters_UpdateAttachedCluster_Handler,
452 },
453 {
454 MethodName: "ImportAttachedCluster",
455 Handler: _AttachedClusters_ImportAttachedCluster_Handler,
456 },
457 {
458 MethodName: "GetAttachedCluster",
459 Handler: _AttachedClusters_GetAttachedCluster_Handler,
460 },
461 {
462 MethodName: "ListAttachedClusters",
463 Handler: _AttachedClusters_ListAttachedClusters_Handler,
464 },
465 {
466 MethodName: "DeleteAttachedCluster",
467 Handler: _AttachedClusters_DeleteAttachedCluster_Handler,
468 },
469 {
470 MethodName: "GetAttachedServerConfig",
471 Handler: _AttachedClusters_GetAttachedServerConfig_Handler,
472 },
473 {
474 MethodName: "GenerateAttachedClusterInstallManifest",
475 Handler: _AttachedClusters_GenerateAttachedClusterInstallManifest_Handler,
476 },
477 {
478 MethodName: "GenerateAttachedClusterAgentToken",
479 Handler: _AttachedClusters_GenerateAttachedClusterAgentToken_Handler,
480 },
481 },
482 Streams: []grpc.StreamDesc{},
483 Metadata: "google/cloud/gkemulticloud/v1/attached_service.proto",
484 }