Debian Codegraph @

managedkafka/apiv1/managedkafkapb/managed_kafka_grpc.pb.go

raw
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/managedkafka/v1/managed_kafka.proto
20
21 package managedkafkapb
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 emptypb "google.golang.org/protobuf/types/known/emptypb"
30 )
31
32 // This is a compile-time assertion to ensure that this generated file
33 // is compatible with the grpc package it is being compiled against.
34 // Requires gRPC-Go v1.32.0 or later.
35 const _ = grpc.SupportPackageIsVersion7
36
37 const (
38 ManagedKafka_ListClusters_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/ListClusters"
39 ManagedKafka_GetCluster_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/GetCluster"
40 ManagedKafka_CreateCluster_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/CreateCluster"
41 ManagedKafka_UpdateCluster_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/UpdateCluster"
42 ManagedKafka_DeleteCluster_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/DeleteCluster"
43 ManagedKafka_ListTopics_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/ListTopics"
44 ManagedKafka_GetTopic_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/GetTopic"
45 ManagedKafka_CreateTopic_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/CreateTopic"
46 ManagedKafka_UpdateTopic_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/UpdateTopic"
47 ManagedKafka_DeleteTopic_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/DeleteTopic"
48 ManagedKafka_ListConsumerGroups_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/ListConsumerGroups"
49 ManagedKafka_GetConsumerGroup_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/GetConsumerGroup"
50 ManagedKafka_UpdateConsumerGroup_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/UpdateConsumerGroup"
51 ManagedKafka_DeleteConsumerGroup_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/DeleteConsumerGroup"
52 ManagedKafka_ListAcls_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/ListAcls"
53 ManagedKafka_GetAcl_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/GetAcl"
54 ManagedKafka_CreateAcl_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/CreateAcl"
55 ManagedKafka_UpdateAcl_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/UpdateAcl"
56 ManagedKafka_DeleteAcl_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/DeleteAcl"
57 ManagedKafka_AddAclEntry_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/AddAclEntry"
58 ManagedKafka_RemoveAclEntry_FullMethodName = "/google.cloud.managedkafka.v1.ManagedKafka/RemoveAclEntry"
59 )
60
61 // ManagedKafkaClient is the client API for ManagedKafka service.
62 //
63 // 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.
64 type ManagedKafkaClient interface {
65 // Lists the clusters in a given project and location.
66 ListClusters(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error)
67 // Returns the properties of a single cluster.
68 GetCluster(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error)
69 // Creates a new cluster in a given project and location.
70 CreateCluster(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
71 // Updates the properties of a single cluster.
72 UpdateCluster(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
73 // Deletes a single cluster.
74 DeleteCluster(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
75 // Lists the topics in a given cluster.
76 ListTopics(ctx context.Context, in *ListTopicsRequest, opts ...grpc.CallOption) (*ListTopicsResponse, error)
77 // Returns the properties of a single topic.
78 GetTopic(ctx context.Context, in *GetTopicRequest, opts ...grpc.CallOption) (*Topic, error)
79 // Creates a new topic in a given project and location.
80 CreateTopic(ctx context.Context, in *CreateTopicRequest, opts ...grpc.CallOption) (*Topic, error)
81 // Updates the properties of a single topic.
82 UpdateTopic(ctx context.Context, in *UpdateTopicRequest, opts ...grpc.CallOption) (*Topic, error)
83 // Deletes a single topic.
84 DeleteTopic(ctx context.Context, in *DeleteTopicRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
85 // Lists the consumer groups in a given cluster.
86 ListConsumerGroups(ctx context.Context, in *ListConsumerGroupsRequest, opts ...grpc.CallOption) (*ListConsumerGroupsResponse, error)
87 // Returns the properties of a single consumer group.
88 GetConsumerGroup(ctx context.Context, in *GetConsumerGroupRequest, opts ...grpc.CallOption) (*ConsumerGroup, error)
89 // Updates the properties of a single consumer group.
90 UpdateConsumerGroup(ctx context.Context, in *UpdateConsumerGroupRequest, opts ...grpc.CallOption) (*ConsumerGroup, error)
91 // Deletes a single consumer group.
92 DeleteConsumerGroup(ctx context.Context, in *DeleteConsumerGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
93 // Lists the acls in a given cluster.
94 ListAcls(ctx context.Context, in *ListAclsRequest, opts ...grpc.CallOption) (*ListAclsResponse, error)
95 // Returns the properties of a single acl.
96 GetAcl(ctx context.Context, in *GetAclRequest, opts ...grpc.CallOption) (*Acl, error)
97 // Creates a new acl in the given project, location, and cluster.
98 CreateAcl(ctx context.Context, in *CreateAclRequest, opts ...grpc.CallOption) (*Acl, error)
99 // Updates the properties of a single acl.
100 UpdateAcl(ctx context.Context, in *UpdateAclRequest, opts ...grpc.CallOption) (*Acl, error)
101 // Deletes an acl.
102 DeleteAcl(ctx context.Context, in *DeleteAclRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
103 // Incremental update: Adds an acl entry to an acl. Creates the acl if it does
104 // not exist yet.
105 AddAclEntry(ctx context.Context, in *AddAclEntryRequest, opts ...grpc.CallOption) (*AddAclEntryResponse, error)
106 // Incremental update: Removes an acl entry from an acl. Deletes the acl if
107 // its acl entries become empty (i.e. if the removed entry was the last one in
108 // the acl).
109 RemoveAclEntry(ctx context.Context, in *RemoveAclEntryRequest, opts ...grpc.CallOption) (*RemoveAclEntryResponse, error)
110 }
111
112 type managedKafkaClient struct {
113 cc grpc.ClientConnInterface
114 }
115
116 func NewManagedKafkaClient(cc grpc.ClientConnInterface) ManagedKafkaClient {
117 return &managedKafkaClient{cc}
118 }
119
120 func (c *managedKafkaClient) ListClusters(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error) {
121 out := new(ListClustersResponse)
122 err := c.cc.Invoke(ctx, ManagedKafka_ListClusters_FullMethodName, in, out, opts...)
123 if err != nil {
124 return nil, err
125 }
126 return out, nil
127 }
128
129 func (c *managedKafkaClient) GetCluster(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error) {
130 out := new(Cluster)
131 err := c.cc.Invoke(ctx, ManagedKafka_GetCluster_FullMethodName, in, out, opts...)
132 if err != nil {
133 return nil, err
134 }
135 return out, nil
136 }
137
138 func (c *managedKafkaClient) CreateCluster(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
139 out := new(longrunningpb.Operation)
140 err := c.cc.Invoke(ctx, ManagedKafka_CreateCluster_FullMethodName, in, out, opts...)
141 if err != nil {
142 return nil, err
143 }
144 return out, nil
145 }
146
147 func (c *managedKafkaClient) UpdateCluster(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
148 out := new(longrunningpb.Operation)
149 err := c.cc.Invoke(ctx, ManagedKafka_UpdateCluster_FullMethodName, in, out, opts...)
150 if err != nil {
151 return nil, err
152 }
153 return out, nil
154 }
155
156 func (c *managedKafkaClient) DeleteCluster(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
157 out := new(longrunningpb.Operation)
158 err := c.cc.Invoke(ctx, ManagedKafka_DeleteCluster_FullMethodName, in, out, opts...)
159 if err != nil {
160 return nil, err
161 }
162 return out, nil
163 }
164
165 func (c *managedKafkaClient) ListTopics(ctx context.Context, in *ListTopicsRequest, opts ...grpc.CallOption) (*ListTopicsResponse, error) {
166 out := new(ListTopicsResponse)
167 err := c.cc.Invoke(ctx, ManagedKafka_ListTopics_FullMethodName, in, out, opts...)
168 if err != nil {
169 return nil, err
170 }
171 return out, nil
172 }
173
174 func (c *managedKafkaClient) GetTopic(ctx context.Context, in *GetTopicRequest, opts ...grpc.CallOption) (*Topic, error) {
175 out := new(Topic)
176 err := c.cc.Invoke(ctx, ManagedKafka_GetTopic_FullMethodName, in, out, opts...)
177 if err != nil {
178 return nil, err
179 }
180 return out, nil
181 }
182
183 func (c *managedKafkaClient) CreateTopic(ctx context.Context, in *CreateTopicRequest, opts ...grpc.CallOption) (*Topic, error) {
184 out := new(Topic)
185 err := c.cc.Invoke(ctx, ManagedKafka_CreateTopic_FullMethodName, in, out, opts...)
186 if err != nil {
187 return nil, err
188 }
189 return out, nil
190 }
191
192 func (c *managedKafkaClient) UpdateTopic(ctx context.Context, in *UpdateTopicRequest, opts ...grpc.CallOption) (*Topic, error) {
193 out := new(Topic)
194 err := c.cc.Invoke(ctx, ManagedKafka_UpdateTopic_FullMethodName, in, out, opts...)
195 if err != nil {
196 return nil, err
197 }
198 return out, nil
199 }
200
201 func (c *managedKafkaClient) DeleteTopic(ctx context.Context, in *DeleteTopicRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
202 out := new(emptypb.Empty)
203 err := c.cc.Invoke(ctx, ManagedKafka_DeleteTopic_FullMethodName, in, out, opts...)
204 if err != nil {
205 return nil, err
206 }
207 return out, nil
208 }
209
210 func (c *managedKafkaClient) ListConsumerGroups(ctx context.Context, in *ListConsumerGroupsRequest, opts ...grpc.CallOption) (*ListConsumerGroupsResponse, error) {
211 out := new(ListConsumerGroupsResponse)
212 err := c.cc.Invoke(ctx, ManagedKafka_ListConsumerGroups_FullMethodName, in, out, opts...)
213 if err != nil {
214 return nil, err
215 }
216 return out, nil
217 }
218
219 func (c *managedKafkaClient) GetConsumerGroup(ctx context.Context, in *GetConsumerGroupRequest, opts ...grpc.CallOption) (*ConsumerGroup, error) {
220 out := new(ConsumerGroup)
221 err := c.cc.Invoke(ctx, ManagedKafka_GetConsumerGroup_FullMethodName, in, out, opts...)
222 if err != nil {
223 return nil, err
224 }
225 return out, nil
226 }
227
228 func (c *managedKafkaClient) UpdateConsumerGroup(ctx context.Context, in *UpdateConsumerGroupRequest, opts ...grpc.CallOption) (*ConsumerGroup, error) {
229 out := new(ConsumerGroup)
230 err := c.cc.Invoke(ctx, ManagedKafka_UpdateConsumerGroup_FullMethodName, in, out, opts...)
231 if err != nil {
232 return nil, err
233 }
234 return out, nil
235 }
236
237 func (c *managedKafkaClient) DeleteConsumerGroup(ctx context.Context, in *DeleteConsumerGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
238 out := new(emptypb.Empty)
239 err := c.cc.Invoke(ctx, ManagedKafka_DeleteConsumerGroup_FullMethodName, in, out, opts...)
240 if err != nil {
241 return nil, err
242 }
243 return out, nil
244 }
245
246 func (c *managedKafkaClient) ListAcls(ctx context.Context, in *ListAclsRequest, opts ...grpc.CallOption) (*ListAclsResponse, error) {
247 out := new(ListAclsResponse)
248 err := c.cc.Invoke(ctx, ManagedKafka_ListAcls_FullMethodName, in, out, opts...)
249 if err != nil {
250 return nil, err
251 }
252 return out, nil
253 }
254
255 func (c *managedKafkaClient) GetAcl(ctx context.Context, in *GetAclRequest, opts ...grpc.CallOption) (*Acl, error) {
256 out := new(Acl)
257 err := c.cc.Invoke(ctx, ManagedKafka_GetAcl_FullMethodName, in, out, opts...)
258 if err != nil {
259 return nil, err
260 }
261 return out, nil
262 }
263
264 func (c *managedKafkaClient) CreateAcl(ctx context.Context, in *CreateAclRequest, opts ...grpc.CallOption) (*Acl, error) {
265 out := new(Acl)
266 err := c.cc.Invoke(ctx, ManagedKafka_CreateAcl_FullMethodName, in, out, opts...)
267 if err != nil {
268 return nil, err
269 }
270 return out, nil
271 }
272
273 func (c *managedKafkaClient) UpdateAcl(ctx context.Context, in *UpdateAclRequest, opts ...grpc.CallOption) (*Acl, error) {
274 out := new(Acl)
275 err := c.cc.Invoke(ctx, ManagedKafka_UpdateAcl_FullMethodName, in, out, opts...)
276 if err != nil {
277 return nil, err
278 }
279 return out, nil
280 }
281
282 func (c *managedKafkaClient) DeleteAcl(ctx context.Context, in *DeleteAclRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
283 out := new(emptypb.Empty)
284 err := c.cc.Invoke(ctx, ManagedKafka_DeleteAcl_FullMethodName, in, out, opts...)
285 if err != nil {
286 return nil, err
287 }
288 return out, nil
289 }
290
291 func (c *managedKafkaClient) AddAclEntry(ctx context.Context, in *AddAclEntryRequest, opts ...grpc.CallOption) (*AddAclEntryResponse, error) {
292 out := new(AddAclEntryResponse)
293 err := c.cc.Invoke(ctx, ManagedKafka_AddAclEntry_FullMethodName, in, out, opts...)
294 if err != nil {
295 return nil, err
296 }
297 return out, nil
298 }
299
300 func (c *managedKafkaClient) RemoveAclEntry(ctx context.Context, in *RemoveAclEntryRequest, opts ...grpc.CallOption) (*RemoveAclEntryResponse, error) {
301 out := new(RemoveAclEntryResponse)
302 err := c.cc.Invoke(ctx, ManagedKafka_RemoveAclEntry_FullMethodName, in, out, opts...)
303 if err != nil {
304 return nil, err
305 }
306 return out, nil
307 }
308
309 // ManagedKafkaServer is the server API for ManagedKafka service.
310 // All implementations should embed UnimplementedManagedKafkaServer
311 // for forward compatibility
312 type ManagedKafkaServer interface {
313 // Lists the clusters in a given project and location.
314 ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error)
315 // Returns the properties of a single cluster.
316 GetCluster(context.Context, *GetClusterRequest) (*Cluster, error)
317 // Creates a new cluster in a given project and location.
318 CreateCluster(context.Context, *CreateClusterRequest) (*longrunningpb.Operation, error)
319 // Updates the properties of a single cluster.
320 UpdateCluster(context.Context, *UpdateClusterRequest) (*longrunningpb.Operation, error)
321 // Deletes a single cluster.
322 DeleteCluster(context.Context, *DeleteClusterRequest) (*longrunningpb.Operation, error)
323 // Lists the topics in a given cluster.
324 ListTopics(context.Context, *ListTopicsRequest) (*ListTopicsResponse, error)
325 // Returns the properties of a single topic.
326 GetTopic(context.Context, *GetTopicRequest) (*Topic, error)
327 // Creates a new topic in a given project and location.
328 CreateTopic(context.Context, *CreateTopicRequest) (*Topic, error)
329 // Updates the properties of a single topic.
330 UpdateTopic(context.Context, *UpdateTopicRequest) (*Topic, error)
331 // Deletes a single topic.
332 DeleteTopic(context.Context, *DeleteTopicRequest) (*emptypb.Empty, error)
333 // Lists the consumer groups in a given cluster.
334 ListConsumerGroups(context.Context, *ListConsumerGroupsRequest) (*ListConsumerGroupsResponse, error)
335 // Returns the properties of a single consumer group.
336 GetConsumerGroup(context.Context, *GetConsumerGroupRequest) (*ConsumerGroup, error)
337 // Updates the properties of a single consumer group.
338 UpdateConsumerGroup(context.Context, *UpdateConsumerGroupRequest) (*ConsumerGroup, error)
339 // Deletes a single consumer group.
340 DeleteConsumerGroup(context.Context, *DeleteConsumerGroupRequest) (*emptypb.Empty, error)
341 // Lists the acls in a given cluster.
342 ListAcls(context.Context, *ListAclsRequest) (*ListAclsResponse, error)
343 // Returns the properties of a single acl.
344 GetAcl(context.Context, *GetAclRequest) (*Acl, error)
345 // Creates a new acl in the given project, location, and cluster.
346 CreateAcl(context.Context, *CreateAclRequest) (*Acl, error)
347 // Updates the properties of a single acl.
348 UpdateAcl(context.Context, *UpdateAclRequest) (*Acl, error)
349 // Deletes an acl.
350 DeleteAcl(context.Context, *DeleteAclRequest) (*emptypb.Empty, error)
351 // Incremental update: Adds an acl entry to an acl. Creates the acl if it does
352 // not exist yet.
353 AddAclEntry(context.Context, *AddAclEntryRequest) (*AddAclEntryResponse, error)
354 // Incremental update: Removes an acl entry from an acl. Deletes the acl if
355 // its acl entries become empty (i.e. if the removed entry was the last one in
356 // the acl).
357 RemoveAclEntry(context.Context, *RemoveAclEntryRequest) (*RemoveAclEntryResponse, error)
358 }
359
360 // UnimplementedManagedKafkaServer should be embedded to have forward compatible implementations.
361 type UnimplementedManagedKafkaServer struct {
362 }
363
364 func (UnimplementedManagedKafkaServer) ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error) {
365 return nil, status.Errorf(codes.Unimplemented, "method ListClusters not implemented")
366 }
367 func (UnimplementedManagedKafkaServer) GetCluster(context.Context, *GetClusterRequest) (*Cluster, error) {
368 return nil, status.Errorf(codes.Unimplemented, "method GetCluster not implemented")
369 }
370 func (UnimplementedManagedKafkaServer) CreateCluster(context.Context, *CreateClusterRequest) (*longrunningpb.Operation, error) {
371 return nil, status.Errorf(codes.Unimplemented, "method CreateCluster not implemented")
372 }
373 func (UnimplementedManagedKafkaServer) UpdateCluster(context.Context, *UpdateClusterRequest) (*longrunningpb.Operation, error) {
374 return nil, status.Errorf(codes.Unimplemented, "method UpdateCluster not implemented")
375 }
376 func (UnimplementedManagedKafkaServer) DeleteCluster(context.Context, *DeleteClusterRequest) (*longrunningpb.Operation, error) {
377 return nil, status.Errorf(codes.Unimplemented, "method DeleteCluster not implemented")
378 }
379 func (UnimplementedManagedKafkaServer) ListTopics(context.Context, *ListTopicsRequest) (*ListTopicsResponse, error) {
380 return nil, status.Errorf(codes.Unimplemented, "method ListTopics not implemented")
381 }
382 func (UnimplementedManagedKafkaServer) GetTopic(context.Context, *GetTopicRequest) (*Topic, error) {
383 return nil, status.Errorf(codes.Unimplemented, "method GetTopic not implemented")
384 }
385 func (UnimplementedManagedKafkaServer) CreateTopic(context.Context, *CreateTopicRequest) (*Topic, error) {
386 return nil, status.Errorf(codes.Unimplemented, "method CreateTopic not implemented")
387 }
388 func (UnimplementedManagedKafkaServer) UpdateTopic(context.Context, *UpdateTopicRequest) (*Topic, error) {
389 return nil, status.Errorf(codes.Unimplemented, "method UpdateTopic not implemented")
390 }
391 func (UnimplementedManagedKafkaServer) DeleteTopic(context.Context, *DeleteTopicRequest) (*emptypb.Empty, error) {
392 return nil, status.Errorf(codes.Unimplemented, "method DeleteTopic not implemented")
393 }
394 func (UnimplementedManagedKafkaServer) ListConsumerGroups(context.Context, *ListConsumerGroupsRequest) (*ListConsumerGroupsResponse, error) {
395 return nil, status.Errorf(codes.Unimplemented, "method ListConsumerGroups not implemented")
396 }
397 func (UnimplementedManagedKafkaServer) GetConsumerGroup(context.Context, *GetConsumerGroupRequest) (*ConsumerGroup, error) {
398 return nil, status.Errorf(codes.Unimplemented, "method GetConsumerGroup not implemented")
399 }
400 func (UnimplementedManagedKafkaServer) UpdateConsumerGroup(context.Context, *UpdateConsumerGroupRequest) (*ConsumerGroup, error) {
401 return nil, status.Errorf(codes.Unimplemented, "method UpdateConsumerGroup not implemented")
402 }
403 func (UnimplementedManagedKafkaServer) DeleteConsumerGroup(context.Context, *DeleteConsumerGroupRequest) (*emptypb.Empty, error) {
404 return nil, status.Errorf(codes.Unimplemented, "method DeleteConsumerGroup not implemented")
405 }
406 func (UnimplementedManagedKafkaServer) ListAcls(context.Context, *ListAclsRequest) (*ListAclsResponse, error) {
407 return nil, status.Errorf(codes.Unimplemented, "method ListAcls not implemented")
408 }
409 func (UnimplementedManagedKafkaServer) GetAcl(context.Context, *GetAclRequest) (*Acl, error) {
410 return nil, status.Errorf(codes.Unimplemented, "method GetAcl not implemented")
411 }
412 func (UnimplementedManagedKafkaServer) CreateAcl(context.Context, *CreateAclRequest) (*Acl, error) {
413 return nil, status.Errorf(codes.Unimplemented, "method CreateAcl not implemented")
414 }
415 func (UnimplementedManagedKafkaServer) UpdateAcl(context.Context, *UpdateAclRequest) (*Acl, error) {
416 return nil, status.Errorf(codes.Unimplemented, "method UpdateAcl not implemented")
417 }
418 func (UnimplementedManagedKafkaServer) DeleteAcl(context.Context, *DeleteAclRequest) (*emptypb.Empty, error) {
419 return nil, status.Errorf(codes.Unimplemented, "method DeleteAcl not implemented")
420 }
421 func (UnimplementedManagedKafkaServer) AddAclEntry(context.Context, *AddAclEntryRequest) (*AddAclEntryResponse, error) {
422 return nil, status.Errorf(codes.Unimplemented, "method AddAclEntry not implemented")
423 }
424 func (UnimplementedManagedKafkaServer) RemoveAclEntry(context.Context, *RemoveAclEntryRequest) (*RemoveAclEntryResponse, error) {
425 return nil, status.Errorf(codes.Unimplemented, "method RemoveAclEntry not implemented")
426 }
427
428 // UnsafeManagedKafkaServer may be embedded to opt out of forward compatibility for this service.
429 // Use of this interface is not recommended, as added methods to ManagedKafkaServer will
430 // result in compilation errors.
431 type UnsafeManagedKafkaServer interface {
432 mustEmbedUnimplementedManagedKafkaServer()
433 }
434
435 func RegisterManagedKafkaServer(s grpc.ServiceRegistrar, srv ManagedKafkaServer) {
436 s.RegisterService(&ManagedKafka_ServiceDesc, srv)
437 }
438
439 func _ManagedKafka_ListClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
440 in := new(ListClustersRequest)
441 if err := dec(in); err != nil {
442 return nil, err
443 }
444 if interceptor == nil {
445 return srv.(ManagedKafkaServer).ListClusters(ctx, in)
446 }
447 info := &grpc.UnaryServerInfo{
448 Server: srv,
449 FullMethod: ManagedKafka_ListClusters_FullMethodName,
450 }
451 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
452 return srv.(ManagedKafkaServer).ListClusters(ctx, req.(*ListClustersRequest))
453 }
454 return interceptor(ctx, in, info, handler)
455 }
456
457 func _ManagedKafka_GetCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
458 in := new(GetClusterRequest)
459 if err := dec(in); err != nil {
460 return nil, err
461 }
462 if interceptor == nil {
463 return srv.(ManagedKafkaServer).GetCluster(ctx, in)
464 }
465 info := &grpc.UnaryServerInfo{
466 Server: srv,
467 FullMethod: ManagedKafka_GetCluster_FullMethodName,
468 }
469 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
470 return srv.(ManagedKafkaServer).GetCluster(ctx, req.(*GetClusterRequest))
471 }
472 return interceptor(ctx, in, info, handler)
473 }
474
475 func _ManagedKafka_CreateCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
476 in := new(CreateClusterRequest)
477 if err := dec(in); err != nil {
478 return nil, err
479 }
480 if interceptor == nil {
481 return srv.(ManagedKafkaServer).CreateCluster(ctx, in)
482 }
483 info := &grpc.UnaryServerInfo{
484 Server: srv,
485 FullMethod: ManagedKafka_CreateCluster_FullMethodName,
486 }
487 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
488 return srv.(ManagedKafkaServer).CreateCluster(ctx, req.(*CreateClusterRequest))
489 }
490 return interceptor(ctx, in, info, handler)
491 }
492
493 func _ManagedKafka_UpdateCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
494 in := new(UpdateClusterRequest)
495 if err := dec(in); err != nil {
496 return nil, err
497 }
498 if interceptor == nil {
499 return srv.(ManagedKafkaServer).UpdateCluster(ctx, in)
500 }
501 info := &grpc.UnaryServerInfo{
502 Server: srv,
503 FullMethod: ManagedKafka_UpdateCluster_FullMethodName,
504 }
505 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
506 return srv.(ManagedKafkaServer).UpdateCluster(ctx, req.(*UpdateClusterRequest))
507 }
508 return interceptor(ctx, in, info, handler)
509 }
510
511 func _ManagedKafka_DeleteCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
512 in := new(DeleteClusterRequest)
513 if err := dec(in); err != nil {
514 return nil, err
515 }
516 if interceptor == nil {
517 return srv.(ManagedKafkaServer).DeleteCluster(ctx, in)
518 }
519 info := &grpc.UnaryServerInfo{
520 Server: srv,
521 FullMethod: ManagedKafka_DeleteCluster_FullMethodName,
522 }
523 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
524 return srv.(ManagedKafkaServer).DeleteCluster(ctx, req.(*DeleteClusterRequest))
525 }
526 return interceptor(ctx, in, info, handler)
527 }
528
529 func _ManagedKafka_ListTopics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
530 in := new(ListTopicsRequest)
531 if err := dec(in); err != nil {
532 return nil, err
533 }
534 if interceptor == nil {
535 return srv.(ManagedKafkaServer).ListTopics(ctx, in)
536 }
537 info := &grpc.UnaryServerInfo{
538 Server: srv,
539 FullMethod: ManagedKafka_ListTopics_FullMethodName,
540 }
541 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
542 return srv.(ManagedKafkaServer).ListTopics(ctx, req.(*ListTopicsRequest))
543 }
544 return interceptor(ctx, in, info, handler)
545 }
546
547 func _ManagedKafka_GetTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
548 in := new(GetTopicRequest)
549 if err := dec(in); err != nil {
550 return nil, err
551 }
552 if interceptor == nil {
553 return srv.(ManagedKafkaServer).GetTopic(ctx, in)
554 }
555 info := &grpc.UnaryServerInfo{
556 Server: srv,
557 FullMethod: ManagedKafka_GetTopic_FullMethodName,
558 }
559 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
560 return srv.(ManagedKafkaServer).GetTopic(ctx, req.(*GetTopicRequest))
561 }
562 return interceptor(ctx, in, info, handler)
563 }
564
565 func _ManagedKafka_CreateTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
566 in := new(CreateTopicRequest)
567 if err := dec(in); err != nil {
568 return nil, err
569 }
570 if interceptor == nil {
571 return srv.(ManagedKafkaServer).CreateTopic(ctx, in)
572 }
573 info := &grpc.UnaryServerInfo{
574 Server: srv,
575 FullMethod: ManagedKafka_CreateTopic_FullMethodName,
576 }
577 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
578 return srv.(ManagedKafkaServer).CreateTopic(ctx, req.(*CreateTopicRequest))
579 }
580 return interceptor(ctx, in, info, handler)
581 }
582
583 func _ManagedKafka_UpdateTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
584 in := new(UpdateTopicRequest)
585 if err := dec(in); err != nil {
586 return nil, err
587 }
588 if interceptor == nil {
589 return srv.(ManagedKafkaServer).UpdateTopic(ctx, in)
590 }
591 info := &grpc.UnaryServerInfo{
592 Server: srv,
593 FullMethod: ManagedKafka_UpdateTopic_FullMethodName,
594 }
595 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
596 return srv.(ManagedKafkaServer).UpdateTopic(ctx, req.(*UpdateTopicRequest))
597 }
598 return interceptor(ctx, in, info, handler)
599 }
600
601 func _ManagedKafka_DeleteTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
602 in := new(DeleteTopicRequest)
603 if err := dec(in); err != nil {
604 return nil, err
605 }
606 if interceptor == nil {
607 return srv.(ManagedKafkaServer).DeleteTopic(ctx, in)
608 }
609 info := &grpc.UnaryServerInfo{
610 Server: srv,
611 FullMethod: ManagedKafka_DeleteTopic_FullMethodName,
612 }
613 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
614 return srv.(ManagedKafkaServer).DeleteTopic(ctx, req.(*DeleteTopicRequest))
615 }
616 return interceptor(ctx, in, info, handler)
617 }
618
619 func _ManagedKafka_ListConsumerGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
620 in := new(ListConsumerGroupsRequest)
621 if err := dec(in); err != nil {
622 return nil, err
623 }
624 if interceptor == nil {
625 return srv.(ManagedKafkaServer).ListConsumerGroups(ctx, in)
626 }
627 info := &grpc.UnaryServerInfo{
628 Server: srv,
629 FullMethod: ManagedKafka_ListConsumerGroups_FullMethodName,
630 }
631 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
632 return srv.(ManagedKafkaServer).ListConsumerGroups(ctx, req.(*ListConsumerGroupsRequest))
633 }
634 return interceptor(ctx, in, info, handler)
635 }
636
637 func _ManagedKafka_GetConsumerGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
638 in := new(GetConsumerGroupRequest)
639 if err := dec(in); err != nil {
640 return nil, err
641 }
642 if interceptor == nil {
643 return srv.(ManagedKafkaServer).GetConsumerGroup(ctx, in)
644 }
645 info := &grpc.UnaryServerInfo{
646 Server: srv,
647 FullMethod: ManagedKafka_GetConsumerGroup_FullMethodName,
648 }
649 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
650 return srv.(ManagedKafkaServer).GetConsumerGroup(ctx, req.(*GetConsumerGroupRequest))
651 }
652 return interceptor(ctx, in, info, handler)
653 }
654
655 func _ManagedKafka_UpdateConsumerGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
656 in := new(UpdateConsumerGroupRequest)
657 if err := dec(in); err != nil {
658 return nil, err
659 }
660 if interceptor == nil {
661 return srv.(ManagedKafkaServer).UpdateConsumerGroup(ctx, in)
662 }
663 info := &grpc.UnaryServerInfo{
664 Server: srv,
665 FullMethod: ManagedKafka_UpdateConsumerGroup_FullMethodName,
666 }
667 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
668 return srv.(ManagedKafkaServer).UpdateConsumerGroup(ctx, req.(*UpdateConsumerGroupRequest))
669 }
670 return interceptor(ctx, in, info, handler)
671 }
672
673 func _ManagedKafka_DeleteConsumerGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
674 in := new(DeleteConsumerGroupRequest)
675 if err := dec(in); err != nil {
676 return nil, err
677 }
678 if interceptor == nil {
679 return srv.(ManagedKafkaServer).DeleteConsumerGroup(ctx, in)
680 }
681 info := &grpc.UnaryServerInfo{
682 Server: srv,
683 FullMethod: ManagedKafka_DeleteConsumerGroup_FullMethodName,
684 }
685 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
686 return srv.(ManagedKafkaServer).DeleteConsumerGroup(ctx, req.(*DeleteConsumerGroupRequest))
687 }
688 return interceptor(ctx, in, info, handler)
689 }
690
691 func _ManagedKafka_ListAcls_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
692 in := new(ListAclsRequest)
693 if err := dec(in); err != nil {
694 return nil, err
695 }
696 if interceptor == nil {
697 return srv.(ManagedKafkaServer).ListAcls(ctx, in)
698 }
699 info := &grpc.UnaryServerInfo{
700 Server: srv,
701 FullMethod: ManagedKafka_ListAcls_FullMethodName,
702 }
703 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
704 return srv.(ManagedKafkaServer).ListAcls(ctx, req.(*ListAclsRequest))
705 }
706 return interceptor(ctx, in, info, handler)
707 }
708
709 func _ManagedKafka_GetAcl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
710 in := new(GetAclRequest)
711 if err := dec(in); err != nil {
712 return nil, err
713 }
714 if interceptor == nil {
715 return srv.(ManagedKafkaServer).GetAcl(ctx, in)
716 }
717 info := &grpc.UnaryServerInfo{
718 Server: srv,
719 FullMethod: ManagedKafka_GetAcl_FullMethodName,
720 }
721 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
722 return srv.(ManagedKafkaServer).GetAcl(ctx, req.(*GetAclRequest))
723 }
724 return interceptor(ctx, in, info, handler)
725 }
726
727 func _ManagedKafka_CreateAcl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
728 in := new(CreateAclRequest)
729 if err := dec(in); err != nil {
730 return nil, err
731 }
732 if interceptor == nil {
733 return srv.(ManagedKafkaServer).CreateAcl(ctx, in)
734 }
735 info := &grpc.UnaryServerInfo{
736 Server: srv,
737 FullMethod: ManagedKafka_CreateAcl_FullMethodName,
738 }
739 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
740 return srv.(ManagedKafkaServer).CreateAcl(ctx, req.(*CreateAclRequest))
741 }
742 return interceptor(ctx, in, info, handler)
743 }
744
745 func _ManagedKafka_UpdateAcl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
746 in := new(UpdateAclRequest)
747 if err := dec(in); err != nil {
748 return nil, err
749 }
750 if interceptor == nil {
751 return srv.(ManagedKafkaServer).UpdateAcl(ctx, in)
752 }
753 info := &grpc.UnaryServerInfo{
754 Server: srv,
755 FullMethod: ManagedKafka_UpdateAcl_FullMethodName,
756 }
757 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
758 return srv.(ManagedKafkaServer).UpdateAcl(ctx, req.(*UpdateAclRequest))
759 }
760 return interceptor(ctx, in, info, handler)
761 }
762
763 func _ManagedKafka_DeleteAcl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
764 in := new(DeleteAclRequest)
765 if err := dec(in); err != nil {
766 return nil, err
767 }
768 if interceptor == nil {
769 return srv.(ManagedKafkaServer).DeleteAcl(ctx, in)
770 }
771 info := &grpc.UnaryServerInfo{
772 Server: srv,
773 FullMethod: ManagedKafka_DeleteAcl_FullMethodName,
774 }
775 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
776 return srv.(ManagedKafkaServer).DeleteAcl(ctx, req.(*DeleteAclRequest))
777 }
778 return interceptor(ctx, in, info, handler)
779 }
780
781 func _ManagedKafka_AddAclEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
782 in := new(AddAclEntryRequest)
783 if err := dec(in); err != nil {
784 return nil, err
785 }
786 if interceptor == nil {
787 return srv.(ManagedKafkaServer).AddAclEntry(ctx, in)
788 }
789 info := &grpc.UnaryServerInfo{
790 Server: srv,
791 FullMethod: ManagedKafka_AddAclEntry_FullMethodName,
792 }
793 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
794 return srv.(ManagedKafkaServer).AddAclEntry(ctx, req.(*AddAclEntryRequest))
795 }
796 return interceptor(ctx, in, info, handler)
797 }
798
799 func _ManagedKafka_RemoveAclEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
800 in := new(RemoveAclEntryRequest)
801 if err := dec(in); err != nil {
802 return nil, err
803 }
804 if interceptor == nil {
805 return srv.(ManagedKafkaServer).RemoveAclEntry(ctx, in)
806 }
807 info := &grpc.UnaryServerInfo{
808 Server: srv,
809 FullMethod: ManagedKafka_RemoveAclEntry_FullMethodName,
810 }
811 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
812 return srv.(ManagedKafkaServer).RemoveAclEntry(ctx, req.(*RemoveAclEntryRequest))
813 }
814 return interceptor(ctx, in, info, handler)
815 }
816
817 // ManagedKafka_ServiceDesc is the grpc.ServiceDesc for ManagedKafka service.
818 // It's only intended for direct use with grpc.RegisterService,
819 // and not to be introspected or modified (even as a copy)
820 var ManagedKafka_ServiceDesc = grpc.ServiceDesc{
821 ServiceName: "google.cloud.managedkafka.v1.ManagedKafka",
822 HandlerType: (*ManagedKafkaServer)(nil),
823 Methods: []grpc.MethodDesc{
824 {
825 MethodName: "ListClusters",
826 Handler: _ManagedKafka_ListClusters_Handler,
827 },
828 {
829 MethodName: "GetCluster",
830 Handler: _ManagedKafka_GetCluster_Handler,
831 },
832 {
833 MethodName: "CreateCluster",
834 Handler: _ManagedKafka_CreateCluster_Handler,
835 },
836 {
837 MethodName: "UpdateCluster",
838 Handler: _ManagedKafka_UpdateCluster_Handler,
839 },
840 {
841 MethodName: "DeleteCluster",
842 Handler: _ManagedKafka_DeleteCluster_Handler,
843 },
844 {
845 MethodName: "ListTopics",
846 Handler: _ManagedKafka_ListTopics_Handler,
847 },
848 {
849 MethodName: "GetTopic",
850 Handler: _ManagedKafka_GetTopic_Handler,
851 },
852 {
853 MethodName: "CreateTopic",
854 Handler: _ManagedKafka_CreateTopic_Handler,
855 },
856 {
857 MethodName: "UpdateTopic",
858 Handler: _ManagedKafka_UpdateTopic_Handler,
859 },
860 {
861 MethodName: "DeleteTopic",
862 Handler: _ManagedKafka_DeleteTopic_Handler,
863 },
864 {
865 MethodName: "ListConsumerGroups",
866 Handler: _ManagedKafka_ListConsumerGroups_Handler,
867 },
868 {
869 MethodName: "GetConsumerGroup",
870 Handler: _ManagedKafka_GetConsumerGroup_Handler,
871 },
872 {
873 MethodName: "UpdateConsumerGroup",
874 Handler: _ManagedKafka_UpdateConsumerGroup_Handler,
875 },
876 {
877 MethodName: "DeleteConsumerGroup",
878 Handler: _ManagedKafka_DeleteConsumerGroup_Handler,
879 },
880 {
881 MethodName: "ListAcls",
882 Handler: _ManagedKafka_ListAcls_Handler,
883 },
884 {
885 MethodName: "GetAcl",
886 Handler: _ManagedKafka_GetAcl_Handler,
887 },
888 {
889 MethodName: "CreateAcl",
890 Handler: _ManagedKafka_CreateAcl_Handler,
891 },
892 {
893 MethodName: "UpdateAcl",
894 Handler: _ManagedKafka_UpdateAcl_Handler,
895 },
896 {
897 MethodName: "DeleteAcl",
898 Handler: _ManagedKafka_DeleteAcl_Handler,
899 },
900 {
901 MethodName: "AddAclEntry",
902 Handler: _ManagedKafka_AddAclEntry_Handler,
903 },
904 {
905 MethodName: "RemoveAclEntry",
906 Handler: _ManagedKafka_RemoveAclEntry_Handler,
907 },
908 },
909 Streams: []grpc.StreamDesc{},
910 Metadata: "google/cloud/managedkafka/v1/managed_kafka.proto",
911 }