| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 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 |
|
| 32 |
|
| 33 |
|
| 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 |
|
| 49 |
|
| 50 |
|
| 51 |
type AttachedClustersClient interface { |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
CreateAttachedCluster(ctx context.Context, in *CreateAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 60 |
|
| 61 |
|
| 62 |
UpdateAttachedCluster(ctx context.Context, in *UpdateAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
ImportAttachedCluster(ctx context.Context, in *ImportAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 74 |
|
| 75 |
|
| 76 |
GetAttachedCluster(ctx context.Context, in *GetAttachedClusterRequest, opts ...grpc.CallOption) (*AttachedCluster, error) |
| 77 |
|
| 78 |
|
| 79 |
ListAttachedClusters(ctx context.Context, in *ListAttachedClustersRequest, opts ...grpc.CallOption) (*ListAttachedClustersResponse, error) |
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
DeleteAttachedCluster(ctx context.Context, in *DeleteAttachedClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 87 |
|
| 88 |
|
| 89 |
GetAttachedServerConfig(ctx context.Context, in *GetAttachedServerConfigRequest, opts ...grpc.CallOption) (*AttachedServerConfig, error) |
| 90 |
|
| 91 |
GenerateAttachedClusterInstallManifest(ctx context.Context, in *GenerateAttachedClusterInstallManifestRequest, opts ...grpc.CallOption) (*GenerateAttachedClusterInstallManifestResponse, error) |
| 92 |
|
| 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 |
|
| 186 |
|
| 187 |
|
| 188 |
type AttachedClustersServer interface { |
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
CreateAttachedCluster(context.Context, *CreateAttachedClusterRequest) (*longrunningpb.Operation, error) |
| 197 |
|
| 198 |
|
| 199 |
UpdateAttachedCluster(context.Context, *UpdateAttachedClusterRequest) (*longrunningpb.Operation, error) |
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
ImportAttachedCluster(context.Context, *ImportAttachedClusterRequest) (*longrunningpb.Operation, error) |
| 211 |
|
| 212 |
|
| 213 |
GetAttachedCluster(context.Context, *GetAttachedClusterRequest) (*AttachedCluster, error) |
| 214 |
|
| 215 |
|
| 216 |
ListAttachedClusters(context.Context, *ListAttachedClustersRequest) (*ListAttachedClustersResponse, error) |
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
DeleteAttachedCluster(context.Context, *DeleteAttachedClusterRequest) (*longrunningpb.Operation, error) |
| 224 |
|
| 225 |
|
| 226 |
GetAttachedServerConfig(context.Context, *GetAttachedServerConfigRequest) (*AttachedServerConfig, error) |
| 227 |
|
| 228 |
GenerateAttachedClusterInstallManifest(context.Context, *GenerateAttachedClusterInstallManifestRequest) (*GenerateAttachedClusterInstallManifestResponse, error) |
| 229 |
|
| 230 |
GenerateAttachedClusterAgentToken(context.Context, *GenerateAttachedClusterAgentTokenRequest) (*GenerateAttachedClusterAgentTokenResponse, error) |
| 231 |
} |
| 232 |
|
| 233 |
|
| 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 |
|
| 266 |
|
| 267 |
|
| 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 |
|
| 439 |
|
| 440 |
|
| 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 |
} |