Debian Codegraph @

networkservices/apiv1/networkservicespb/dep_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/networkservices/v1/dep.proto
20
21 package networkservicespb
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 DepService_ListLbTrafficExtensions_FullMethodName = "/google.cloud.networkservices.v1.DepService/ListLbTrafficExtensions"
38 DepService_GetLbTrafficExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/GetLbTrafficExtension"
39 DepService_CreateLbTrafficExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/CreateLbTrafficExtension"
40 DepService_UpdateLbTrafficExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/UpdateLbTrafficExtension"
41 DepService_DeleteLbTrafficExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/DeleteLbTrafficExtension"
42 DepService_ListLbRouteExtensions_FullMethodName = "/google.cloud.networkservices.v1.DepService/ListLbRouteExtensions"
43 DepService_GetLbRouteExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/GetLbRouteExtension"
44 DepService_CreateLbRouteExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/CreateLbRouteExtension"
45 DepService_UpdateLbRouteExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/UpdateLbRouteExtension"
46 DepService_DeleteLbRouteExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/DeleteLbRouteExtension"
47 DepService_ListAuthzExtensions_FullMethodName = "/google.cloud.networkservices.v1.DepService/ListAuthzExtensions"
48 DepService_GetAuthzExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/GetAuthzExtension"
49 DepService_CreateAuthzExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/CreateAuthzExtension"
50 DepService_UpdateAuthzExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/UpdateAuthzExtension"
51 DepService_DeleteAuthzExtension_FullMethodName = "/google.cloud.networkservices.v1.DepService/DeleteAuthzExtension"
52 )
53
54 // DepServiceClient is the client API for DepService service.
55 //
56 // 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.
57 type DepServiceClient interface {
58 // Lists `LbTrafficExtension` resources in a given project and location.
59 ListLbTrafficExtensions(ctx context.Context, in *ListLbTrafficExtensionsRequest, opts ...grpc.CallOption) (*ListLbTrafficExtensionsResponse, error)
60 // Gets details of the specified `LbTrafficExtension` resource.
61 GetLbTrafficExtension(ctx context.Context, in *GetLbTrafficExtensionRequest, opts ...grpc.CallOption) (*LbTrafficExtension, error)
62 // Creates a new `LbTrafficExtension` resource in a given project and
63 // location.
64 CreateLbTrafficExtension(ctx context.Context, in *CreateLbTrafficExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
65 // Updates the parameters of the specified `LbTrafficExtension` resource.
66 UpdateLbTrafficExtension(ctx context.Context, in *UpdateLbTrafficExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
67 // Deletes the specified `LbTrafficExtension` resource.
68 DeleteLbTrafficExtension(ctx context.Context, in *DeleteLbTrafficExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
69 // Lists `LbRouteExtension` resources in a given project and location.
70 ListLbRouteExtensions(ctx context.Context, in *ListLbRouteExtensionsRequest, opts ...grpc.CallOption) (*ListLbRouteExtensionsResponse, error)
71 // Gets details of the specified `LbRouteExtension` resource.
72 GetLbRouteExtension(ctx context.Context, in *GetLbRouteExtensionRequest, opts ...grpc.CallOption) (*LbRouteExtension, error)
73 // Creates a new `LbRouteExtension` resource in a given project and location.
74 CreateLbRouteExtension(ctx context.Context, in *CreateLbRouteExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
75 // Updates the parameters of the specified `LbRouteExtension` resource.
76 UpdateLbRouteExtension(ctx context.Context, in *UpdateLbRouteExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
77 // Deletes the specified `LbRouteExtension` resource.
78 DeleteLbRouteExtension(ctx context.Context, in *DeleteLbRouteExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
79 // Lists `AuthzExtension` resources in a given project and location.
80 ListAuthzExtensions(ctx context.Context, in *ListAuthzExtensionsRequest, opts ...grpc.CallOption) (*ListAuthzExtensionsResponse, error)
81 // Gets details of the specified `AuthzExtension` resource.
82 GetAuthzExtension(ctx context.Context, in *GetAuthzExtensionRequest, opts ...grpc.CallOption) (*AuthzExtension, error)
83 // Creates a new `AuthzExtension` resource in a given project
84 // and location.
85 CreateAuthzExtension(ctx context.Context, in *CreateAuthzExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
86 // Updates the parameters of the specified `AuthzExtension`
87 // resource.
88 UpdateAuthzExtension(ctx context.Context, in *UpdateAuthzExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
89 // Deletes the specified `AuthzExtension` resource.
90 DeleteAuthzExtension(ctx context.Context, in *DeleteAuthzExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
91 }
92
93 type depServiceClient struct {
94 cc grpc.ClientConnInterface
95 }
96
97 func NewDepServiceClient(cc grpc.ClientConnInterface) DepServiceClient {
98 return &depServiceClient{cc}
99 }
100
101 func (c *depServiceClient) ListLbTrafficExtensions(ctx context.Context, in *ListLbTrafficExtensionsRequest, opts ...grpc.CallOption) (*ListLbTrafficExtensionsResponse, error) {
102 out := new(ListLbTrafficExtensionsResponse)
103 err := c.cc.Invoke(ctx, DepService_ListLbTrafficExtensions_FullMethodName, in, out, opts...)
104 if err != nil {
105 return nil, err
106 }
107 return out, nil
108 }
109
110 func (c *depServiceClient) GetLbTrafficExtension(ctx context.Context, in *GetLbTrafficExtensionRequest, opts ...grpc.CallOption) (*LbTrafficExtension, error) {
111 out := new(LbTrafficExtension)
112 err := c.cc.Invoke(ctx, DepService_GetLbTrafficExtension_FullMethodName, in, out, opts...)
113 if err != nil {
114 return nil, err
115 }
116 return out, nil
117 }
118
119 func (c *depServiceClient) CreateLbTrafficExtension(ctx context.Context, in *CreateLbTrafficExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
120 out := new(longrunningpb.Operation)
121 err := c.cc.Invoke(ctx, DepService_CreateLbTrafficExtension_FullMethodName, in, out, opts...)
122 if err != nil {
123 return nil, err
124 }
125 return out, nil
126 }
127
128 func (c *depServiceClient) UpdateLbTrafficExtension(ctx context.Context, in *UpdateLbTrafficExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
129 out := new(longrunningpb.Operation)
130 err := c.cc.Invoke(ctx, DepService_UpdateLbTrafficExtension_FullMethodName, in, out, opts...)
131 if err != nil {
132 return nil, err
133 }
134 return out, nil
135 }
136
137 func (c *depServiceClient) DeleteLbTrafficExtension(ctx context.Context, in *DeleteLbTrafficExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
138 out := new(longrunningpb.Operation)
139 err := c.cc.Invoke(ctx, DepService_DeleteLbTrafficExtension_FullMethodName, in, out, opts...)
140 if err != nil {
141 return nil, err
142 }
143 return out, nil
144 }
145
146 func (c *depServiceClient) ListLbRouteExtensions(ctx context.Context, in *ListLbRouteExtensionsRequest, opts ...grpc.CallOption) (*ListLbRouteExtensionsResponse, error) {
147 out := new(ListLbRouteExtensionsResponse)
148 err := c.cc.Invoke(ctx, DepService_ListLbRouteExtensions_FullMethodName, in, out, opts...)
149 if err != nil {
150 return nil, err
151 }
152 return out, nil
153 }
154
155 func (c *depServiceClient) GetLbRouteExtension(ctx context.Context, in *GetLbRouteExtensionRequest, opts ...grpc.CallOption) (*LbRouteExtension, error) {
156 out := new(LbRouteExtension)
157 err := c.cc.Invoke(ctx, DepService_GetLbRouteExtension_FullMethodName, in, out, opts...)
158 if err != nil {
159 return nil, err
160 }
161 return out, nil
162 }
163
164 func (c *depServiceClient) CreateLbRouteExtension(ctx context.Context, in *CreateLbRouteExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
165 out := new(longrunningpb.Operation)
166 err := c.cc.Invoke(ctx, DepService_CreateLbRouteExtension_FullMethodName, in, out, opts...)
167 if err != nil {
168 return nil, err
169 }
170 return out, nil
171 }
172
173 func (c *depServiceClient) UpdateLbRouteExtension(ctx context.Context, in *UpdateLbRouteExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
174 out := new(longrunningpb.Operation)
175 err := c.cc.Invoke(ctx, DepService_UpdateLbRouteExtension_FullMethodName, in, out, opts...)
176 if err != nil {
177 return nil, err
178 }
179 return out, nil
180 }
181
182 func (c *depServiceClient) DeleteLbRouteExtension(ctx context.Context, in *DeleteLbRouteExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
183 out := new(longrunningpb.Operation)
184 err := c.cc.Invoke(ctx, DepService_DeleteLbRouteExtension_FullMethodName, in, out, opts...)
185 if err != nil {
186 return nil, err
187 }
188 return out, nil
189 }
190
191 func (c *depServiceClient) ListAuthzExtensions(ctx context.Context, in *ListAuthzExtensionsRequest, opts ...grpc.CallOption) (*ListAuthzExtensionsResponse, error) {
192 out := new(ListAuthzExtensionsResponse)
193 err := c.cc.Invoke(ctx, DepService_ListAuthzExtensions_FullMethodName, in, out, opts...)
194 if err != nil {
195 return nil, err
196 }
197 return out, nil
198 }
199
200 func (c *depServiceClient) GetAuthzExtension(ctx context.Context, in *GetAuthzExtensionRequest, opts ...grpc.CallOption) (*AuthzExtension, error) {
201 out := new(AuthzExtension)
202 err := c.cc.Invoke(ctx, DepService_GetAuthzExtension_FullMethodName, in, out, opts...)
203 if err != nil {
204 return nil, err
205 }
206 return out, nil
207 }
208
209 func (c *depServiceClient) CreateAuthzExtension(ctx context.Context, in *CreateAuthzExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
210 out := new(longrunningpb.Operation)
211 err := c.cc.Invoke(ctx, DepService_CreateAuthzExtension_FullMethodName, in, out, opts...)
212 if err != nil {
213 return nil, err
214 }
215 return out, nil
216 }
217
218 func (c *depServiceClient) UpdateAuthzExtension(ctx context.Context, in *UpdateAuthzExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
219 out := new(longrunningpb.Operation)
220 err := c.cc.Invoke(ctx, DepService_UpdateAuthzExtension_FullMethodName, in, out, opts...)
221 if err != nil {
222 return nil, err
223 }
224 return out, nil
225 }
226
227 func (c *depServiceClient) DeleteAuthzExtension(ctx context.Context, in *DeleteAuthzExtensionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
228 out := new(longrunningpb.Operation)
229 err := c.cc.Invoke(ctx, DepService_DeleteAuthzExtension_FullMethodName, in, out, opts...)
230 if err != nil {
231 return nil, err
232 }
233 return out, nil
234 }
235
236 // DepServiceServer is the server API for DepService service.
237 // All implementations should embed UnimplementedDepServiceServer
238 // for forward compatibility
239 type DepServiceServer interface {
240 // Lists `LbTrafficExtension` resources in a given project and location.
241 ListLbTrafficExtensions(context.Context, *ListLbTrafficExtensionsRequest) (*ListLbTrafficExtensionsResponse, error)
242 // Gets details of the specified `LbTrafficExtension` resource.
243 GetLbTrafficExtension(context.Context, *GetLbTrafficExtensionRequest) (*LbTrafficExtension, error)
244 // Creates a new `LbTrafficExtension` resource in a given project and
245 // location.
246 CreateLbTrafficExtension(context.Context, *CreateLbTrafficExtensionRequest) (*longrunningpb.Operation, error)
247 // Updates the parameters of the specified `LbTrafficExtension` resource.
248 UpdateLbTrafficExtension(context.Context, *UpdateLbTrafficExtensionRequest) (*longrunningpb.Operation, error)
249 // Deletes the specified `LbTrafficExtension` resource.
250 DeleteLbTrafficExtension(context.Context, *DeleteLbTrafficExtensionRequest) (*longrunningpb.Operation, error)
251 // Lists `LbRouteExtension` resources in a given project and location.
252 ListLbRouteExtensions(context.Context, *ListLbRouteExtensionsRequest) (*ListLbRouteExtensionsResponse, error)
253 // Gets details of the specified `LbRouteExtension` resource.
254 GetLbRouteExtension(context.Context, *GetLbRouteExtensionRequest) (*LbRouteExtension, error)
255 // Creates a new `LbRouteExtension` resource in a given project and location.
256 CreateLbRouteExtension(context.Context, *CreateLbRouteExtensionRequest) (*longrunningpb.Operation, error)
257 // Updates the parameters of the specified `LbRouteExtension` resource.
258 UpdateLbRouteExtension(context.Context, *UpdateLbRouteExtensionRequest) (*longrunningpb.Operation, error)
259 // Deletes the specified `LbRouteExtension` resource.
260 DeleteLbRouteExtension(context.Context, *DeleteLbRouteExtensionRequest) (*longrunningpb.Operation, error)
261 // Lists `AuthzExtension` resources in a given project and location.
262 ListAuthzExtensions(context.Context, *ListAuthzExtensionsRequest) (*ListAuthzExtensionsResponse, error)
263 // Gets details of the specified `AuthzExtension` resource.
264 GetAuthzExtension(context.Context, *GetAuthzExtensionRequest) (*AuthzExtension, error)
265 // Creates a new `AuthzExtension` resource in a given project
266 // and location.
267 CreateAuthzExtension(context.Context, *CreateAuthzExtensionRequest) (*longrunningpb.Operation, error)
268 // Updates the parameters of the specified `AuthzExtension`
269 // resource.
270 UpdateAuthzExtension(context.Context, *UpdateAuthzExtensionRequest) (*longrunningpb.Operation, error)
271 // Deletes the specified `AuthzExtension` resource.
272 DeleteAuthzExtension(context.Context, *DeleteAuthzExtensionRequest) (*longrunningpb.Operation, error)
273 }
274
275 // UnimplementedDepServiceServer should be embedded to have forward compatible implementations.
276 type UnimplementedDepServiceServer struct {
277 }
278
279 func (UnimplementedDepServiceServer) ListLbTrafficExtensions(context.Context, *ListLbTrafficExtensionsRequest) (*ListLbTrafficExtensionsResponse, error) {
280 return nil, status.Errorf(codes.Unimplemented, "method ListLbTrafficExtensions not implemented")
281 }
282 func (UnimplementedDepServiceServer) GetLbTrafficExtension(context.Context, *GetLbTrafficExtensionRequest) (*LbTrafficExtension, error) {
283 return nil, status.Errorf(codes.Unimplemented, "method GetLbTrafficExtension not implemented")
284 }
285 func (UnimplementedDepServiceServer) CreateLbTrafficExtension(context.Context, *CreateLbTrafficExtensionRequest) (*longrunningpb.Operation, error) {
286 return nil, status.Errorf(codes.Unimplemented, "method CreateLbTrafficExtension not implemented")
287 }
288 func (UnimplementedDepServiceServer) UpdateLbTrafficExtension(context.Context, *UpdateLbTrafficExtensionRequest) (*longrunningpb.Operation, error) {
289 return nil, status.Errorf(codes.Unimplemented, "method UpdateLbTrafficExtension not implemented")
290 }
291 func (UnimplementedDepServiceServer) DeleteLbTrafficExtension(context.Context, *DeleteLbTrafficExtensionRequest) (*longrunningpb.Operation, error) {
292 return nil, status.Errorf(codes.Unimplemented, "method DeleteLbTrafficExtension not implemented")
293 }
294 func (UnimplementedDepServiceServer) ListLbRouteExtensions(context.Context, *ListLbRouteExtensionsRequest) (*ListLbRouteExtensionsResponse, error) {
295 return nil, status.Errorf(codes.Unimplemented, "method ListLbRouteExtensions not implemented")
296 }
297 func (UnimplementedDepServiceServer) GetLbRouteExtension(context.Context, *GetLbRouteExtensionRequest) (*LbRouteExtension, error) {
298 return nil, status.Errorf(codes.Unimplemented, "method GetLbRouteExtension not implemented")
299 }
300 func (UnimplementedDepServiceServer) CreateLbRouteExtension(context.Context, *CreateLbRouteExtensionRequest) (*longrunningpb.Operation, error) {
301 return nil, status.Errorf(codes.Unimplemented, "method CreateLbRouteExtension not implemented")
302 }
303 func (UnimplementedDepServiceServer) UpdateLbRouteExtension(context.Context, *UpdateLbRouteExtensionRequest) (*longrunningpb.Operation, error) {
304 return nil, status.Errorf(codes.Unimplemented, "method UpdateLbRouteExtension not implemented")
305 }
306 func (UnimplementedDepServiceServer) DeleteLbRouteExtension(context.Context, *DeleteLbRouteExtensionRequest) (*longrunningpb.Operation, error) {
307 return nil, status.Errorf(codes.Unimplemented, "method DeleteLbRouteExtension not implemented")
308 }
309 func (UnimplementedDepServiceServer) ListAuthzExtensions(context.Context, *ListAuthzExtensionsRequest) (*ListAuthzExtensionsResponse, error) {
310 return nil, status.Errorf(codes.Unimplemented, "method ListAuthzExtensions not implemented")
311 }
312 func (UnimplementedDepServiceServer) GetAuthzExtension(context.Context, *GetAuthzExtensionRequest) (*AuthzExtension, error) {
313 return nil, status.Errorf(codes.Unimplemented, "method GetAuthzExtension not implemented")
314 }
315 func (UnimplementedDepServiceServer) CreateAuthzExtension(context.Context, *CreateAuthzExtensionRequest) (*longrunningpb.Operation, error) {
316 return nil, status.Errorf(codes.Unimplemented, "method CreateAuthzExtension not implemented")
317 }
318 func (UnimplementedDepServiceServer) UpdateAuthzExtension(context.Context, *UpdateAuthzExtensionRequest) (*longrunningpb.Operation, error) {
319 return nil, status.Errorf(codes.Unimplemented, "method UpdateAuthzExtension not implemented")
320 }
321 func (UnimplementedDepServiceServer) DeleteAuthzExtension(context.Context, *DeleteAuthzExtensionRequest) (*longrunningpb.Operation, error) {
322 return nil, status.Errorf(codes.Unimplemented, "method DeleteAuthzExtension not implemented")
323 }
324
325 // UnsafeDepServiceServer may be embedded to opt out of forward compatibility for this service.
326 // Use of this interface is not recommended, as added methods to DepServiceServer will
327 // result in compilation errors.
328 type UnsafeDepServiceServer interface {
329 mustEmbedUnimplementedDepServiceServer()
330 }
331
332 func RegisterDepServiceServer(s grpc.ServiceRegistrar, srv DepServiceServer) {
333 s.RegisterService(&DepService_ServiceDesc, srv)
334 }
335
336 func _DepService_ListLbTrafficExtensions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
337 in := new(ListLbTrafficExtensionsRequest)
338 if err := dec(in); err != nil {
339 return nil, err
340 }
341 if interceptor == nil {
342 return srv.(DepServiceServer).ListLbTrafficExtensions(ctx, in)
343 }
344 info := &grpc.UnaryServerInfo{
345 Server: srv,
346 FullMethod: DepService_ListLbTrafficExtensions_FullMethodName,
347 }
348 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
349 return srv.(DepServiceServer).ListLbTrafficExtensions(ctx, req.(*ListLbTrafficExtensionsRequest))
350 }
351 return interceptor(ctx, in, info, handler)
352 }
353
354 func _DepService_GetLbTrafficExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
355 in := new(GetLbTrafficExtensionRequest)
356 if err := dec(in); err != nil {
357 return nil, err
358 }
359 if interceptor == nil {
360 return srv.(DepServiceServer).GetLbTrafficExtension(ctx, in)
361 }
362 info := &grpc.UnaryServerInfo{
363 Server: srv,
364 FullMethod: DepService_GetLbTrafficExtension_FullMethodName,
365 }
366 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
367 return srv.(DepServiceServer).GetLbTrafficExtension(ctx, req.(*GetLbTrafficExtensionRequest))
368 }
369 return interceptor(ctx, in, info, handler)
370 }
371
372 func _DepService_CreateLbTrafficExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
373 in := new(CreateLbTrafficExtensionRequest)
374 if err := dec(in); err != nil {
375 return nil, err
376 }
377 if interceptor == nil {
378 return srv.(DepServiceServer).CreateLbTrafficExtension(ctx, in)
379 }
380 info := &grpc.UnaryServerInfo{
381 Server: srv,
382 FullMethod: DepService_CreateLbTrafficExtension_FullMethodName,
383 }
384 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
385 return srv.(DepServiceServer).CreateLbTrafficExtension(ctx, req.(*CreateLbTrafficExtensionRequest))
386 }
387 return interceptor(ctx, in, info, handler)
388 }
389
390 func _DepService_UpdateLbTrafficExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
391 in := new(UpdateLbTrafficExtensionRequest)
392 if err := dec(in); err != nil {
393 return nil, err
394 }
395 if interceptor == nil {
396 return srv.(DepServiceServer).UpdateLbTrafficExtension(ctx, in)
397 }
398 info := &grpc.UnaryServerInfo{
399 Server: srv,
400 FullMethod: DepService_UpdateLbTrafficExtension_FullMethodName,
401 }
402 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
403 return srv.(DepServiceServer).UpdateLbTrafficExtension(ctx, req.(*UpdateLbTrafficExtensionRequest))
404 }
405 return interceptor(ctx, in, info, handler)
406 }
407
408 func _DepService_DeleteLbTrafficExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
409 in := new(DeleteLbTrafficExtensionRequest)
410 if err := dec(in); err != nil {
411 return nil, err
412 }
413 if interceptor == nil {
414 return srv.(DepServiceServer).DeleteLbTrafficExtension(ctx, in)
415 }
416 info := &grpc.UnaryServerInfo{
417 Server: srv,
418 FullMethod: DepService_DeleteLbTrafficExtension_FullMethodName,
419 }
420 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
421 return srv.(DepServiceServer).DeleteLbTrafficExtension(ctx, req.(*DeleteLbTrafficExtensionRequest))
422 }
423 return interceptor(ctx, in, info, handler)
424 }
425
426 func _DepService_ListLbRouteExtensions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
427 in := new(ListLbRouteExtensionsRequest)
428 if err := dec(in); err != nil {
429 return nil, err
430 }
431 if interceptor == nil {
432 return srv.(DepServiceServer).ListLbRouteExtensions(ctx, in)
433 }
434 info := &grpc.UnaryServerInfo{
435 Server: srv,
436 FullMethod: DepService_ListLbRouteExtensions_FullMethodName,
437 }
438 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
439 return srv.(DepServiceServer).ListLbRouteExtensions(ctx, req.(*ListLbRouteExtensionsRequest))
440 }
441 return interceptor(ctx, in, info, handler)
442 }
443
444 func _DepService_GetLbRouteExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
445 in := new(GetLbRouteExtensionRequest)
446 if err := dec(in); err != nil {
447 return nil, err
448 }
449 if interceptor == nil {
450 return srv.(DepServiceServer).GetLbRouteExtension(ctx, in)
451 }
452 info := &grpc.UnaryServerInfo{
453 Server: srv,
454 FullMethod: DepService_GetLbRouteExtension_FullMethodName,
455 }
456 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
457 return srv.(DepServiceServer).GetLbRouteExtension(ctx, req.(*GetLbRouteExtensionRequest))
458 }
459 return interceptor(ctx, in, info, handler)
460 }
461
462 func _DepService_CreateLbRouteExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
463 in := new(CreateLbRouteExtensionRequest)
464 if err := dec(in); err != nil {
465 return nil, err
466 }
467 if interceptor == nil {
468 return srv.(DepServiceServer).CreateLbRouteExtension(ctx, in)
469 }
470 info := &grpc.UnaryServerInfo{
471 Server: srv,
472 FullMethod: DepService_CreateLbRouteExtension_FullMethodName,
473 }
474 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
475 return srv.(DepServiceServer).CreateLbRouteExtension(ctx, req.(*CreateLbRouteExtensionRequest))
476 }
477 return interceptor(ctx, in, info, handler)
478 }
479
480 func _DepService_UpdateLbRouteExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
481 in := new(UpdateLbRouteExtensionRequest)
482 if err := dec(in); err != nil {
483 return nil, err
484 }
485 if interceptor == nil {
486 return srv.(DepServiceServer).UpdateLbRouteExtension(ctx, in)
487 }
488 info := &grpc.UnaryServerInfo{
489 Server: srv,
490 FullMethod: DepService_UpdateLbRouteExtension_FullMethodName,
491 }
492 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
493 return srv.(DepServiceServer).UpdateLbRouteExtension(ctx, req.(*UpdateLbRouteExtensionRequest))
494 }
495 return interceptor(ctx, in, info, handler)
496 }
497
498 func _DepService_DeleteLbRouteExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
499 in := new(DeleteLbRouteExtensionRequest)
500 if err := dec(in); err != nil {
501 return nil, err
502 }
503 if interceptor == nil {
504 return srv.(DepServiceServer).DeleteLbRouteExtension(ctx, in)
505 }
506 info := &grpc.UnaryServerInfo{
507 Server: srv,
508 FullMethod: DepService_DeleteLbRouteExtension_FullMethodName,
509 }
510 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
511 return srv.(DepServiceServer).DeleteLbRouteExtension(ctx, req.(*DeleteLbRouteExtensionRequest))
512 }
513 return interceptor(ctx, in, info, handler)
514 }
515
516 func _DepService_ListAuthzExtensions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
517 in := new(ListAuthzExtensionsRequest)
518 if err := dec(in); err != nil {
519 return nil, err
520 }
521 if interceptor == nil {
522 return srv.(DepServiceServer).ListAuthzExtensions(ctx, in)
523 }
524 info := &grpc.UnaryServerInfo{
525 Server: srv,
526 FullMethod: DepService_ListAuthzExtensions_FullMethodName,
527 }
528 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
529 return srv.(DepServiceServer).ListAuthzExtensions(ctx, req.(*ListAuthzExtensionsRequest))
530 }
531 return interceptor(ctx, in, info, handler)
532 }
533
534 func _DepService_GetAuthzExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
535 in := new(GetAuthzExtensionRequest)
536 if err := dec(in); err != nil {
537 return nil, err
538 }
539 if interceptor == nil {
540 return srv.(DepServiceServer).GetAuthzExtension(ctx, in)
541 }
542 info := &grpc.UnaryServerInfo{
543 Server: srv,
544 FullMethod: DepService_GetAuthzExtension_FullMethodName,
545 }
546 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
547 return srv.(DepServiceServer).GetAuthzExtension(ctx, req.(*GetAuthzExtensionRequest))
548 }
549 return interceptor(ctx, in, info, handler)
550 }
551
552 func _DepService_CreateAuthzExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
553 in := new(CreateAuthzExtensionRequest)
554 if err := dec(in); err != nil {
555 return nil, err
556 }
557 if interceptor == nil {
558 return srv.(DepServiceServer).CreateAuthzExtension(ctx, in)
559 }
560 info := &grpc.UnaryServerInfo{
561 Server: srv,
562 FullMethod: DepService_CreateAuthzExtension_FullMethodName,
563 }
564 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
565 return srv.(DepServiceServer).CreateAuthzExtension(ctx, req.(*CreateAuthzExtensionRequest))
566 }
567 return interceptor(ctx, in, info, handler)
568 }
569
570 func _DepService_UpdateAuthzExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
571 in := new(UpdateAuthzExtensionRequest)
572 if err := dec(in); err != nil {
573 return nil, err
574 }
575 if interceptor == nil {
576 return srv.(DepServiceServer).UpdateAuthzExtension(ctx, in)
577 }
578 info := &grpc.UnaryServerInfo{
579 Server: srv,
580 FullMethod: DepService_UpdateAuthzExtension_FullMethodName,
581 }
582 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
583 return srv.(DepServiceServer).UpdateAuthzExtension(ctx, req.(*UpdateAuthzExtensionRequest))
584 }
585 return interceptor(ctx, in, info, handler)
586 }
587
588 func _DepService_DeleteAuthzExtension_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
589 in := new(DeleteAuthzExtensionRequest)
590 if err := dec(in); err != nil {
591 return nil, err
592 }
593 if interceptor == nil {
594 return srv.(DepServiceServer).DeleteAuthzExtension(ctx, in)
595 }
596 info := &grpc.UnaryServerInfo{
597 Server: srv,
598 FullMethod: DepService_DeleteAuthzExtension_FullMethodName,
599 }
600 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
601 return srv.(DepServiceServer).DeleteAuthzExtension(ctx, req.(*DeleteAuthzExtensionRequest))
602 }
603 return interceptor(ctx, in, info, handler)
604 }
605
606 // DepService_ServiceDesc is the grpc.ServiceDesc for DepService service.
607 // It's only intended for direct use with grpc.RegisterService,
608 // and not to be introspected or modified (even as a copy)
609 var DepService_ServiceDesc = grpc.ServiceDesc{
610 ServiceName: "google.cloud.networkservices.v1.DepService",
611 HandlerType: (*DepServiceServer)(nil),
612 Methods: []grpc.MethodDesc{
613 {
614 MethodName: "ListLbTrafficExtensions",
615 Handler: _DepService_ListLbTrafficExtensions_Handler,
616 },
617 {
618 MethodName: "GetLbTrafficExtension",
619 Handler: _DepService_GetLbTrafficExtension_Handler,
620 },
621 {
622 MethodName: "CreateLbTrafficExtension",
623 Handler: _DepService_CreateLbTrafficExtension_Handler,
624 },
625 {
626 MethodName: "UpdateLbTrafficExtension",
627 Handler: _DepService_UpdateLbTrafficExtension_Handler,
628 },
629 {
630 MethodName: "DeleteLbTrafficExtension",
631 Handler: _DepService_DeleteLbTrafficExtension_Handler,
632 },
633 {
634 MethodName: "ListLbRouteExtensions",
635 Handler: _DepService_ListLbRouteExtensions_Handler,
636 },
637 {
638 MethodName: "GetLbRouteExtension",
639 Handler: _DepService_GetLbRouteExtension_Handler,
640 },
641 {
642 MethodName: "CreateLbRouteExtension",
643 Handler: _DepService_CreateLbRouteExtension_Handler,
644 },
645 {
646 MethodName: "UpdateLbRouteExtension",
647 Handler: _DepService_UpdateLbRouteExtension_Handler,
648 },
649 {
650 MethodName: "DeleteLbRouteExtension",
651 Handler: _DepService_DeleteLbRouteExtension_Handler,
652 },
653 {
654 MethodName: "ListAuthzExtensions",
655 Handler: _DepService_ListAuthzExtensions_Handler,
656 },
657 {
658 MethodName: "GetAuthzExtension",
659 Handler: _DepService_GetAuthzExtension_Handler,
660 },
661 {
662 MethodName: "CreateAuthzExtension",
663 Handler: _DepService_CreateAuthzExtension_Handler,
664 },
665 {
666 MethodName: "UpdateAuthzExtension",
667 Handler: _DepService_UpdateAuthzExtension_Handler,
668 },
669 {
670 MethodName: "DeleteAuthzExtension",
671 Handler: _DepService_DeleteAuthzExtension_Handler,
672 },
673 },
674 Streams: []grpc.StreamDesc{},
675 Metadata: "google/cloud/networkservices/v1/dep.proto",
676 }