Debian Codegraph @

servicemanagement/apiv1/servicemanagementpb/servicemanager_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/api/servicemanagement/v1/servicemanager.proto
20
21 package servicemanagementpb
22
23 import (
24 longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
25 context "context"
26 serviceconfig "google.golang.org/genproto/googleapis/api/serviceconfig"
27 grpc "google.golang.org/grpc"
28 codes "google.golang.org/grpc/codes"
29 status "google.golang.org/grpc/status"
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 ServiceManager_ListServices_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/ListServices"
39 ServiceManager_GetService_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/GetService"
40 ServiceManager_CreateService_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/CreateService"
41 ServiceManager_DeleteService_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/DeleteService"
42 ServiceManager_UndeleteService_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/UndeleteService"
43 ServiceManager_ListServiceConfigs_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/ListServiceConfigs"
44 ServiceManager_GetServiceConfig_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/GetServiceConfig"
45 ServiceManager_CreateServiceConfig_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/CreateServiceConfig"
46 ServiceManager_SubmitConfigSource_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/SubmitConfigSource"
47 ServiceManager_ListServiceRollouts_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/ListServiceRollouts"
48 ServiceManager_GetServiceRollout_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/GetServiceRollout"
49 ServiceManager_CreateServiceRollout_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/CreateServiceRollout"
50 ServiceManager_GenerateConfigReport_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/GenerateConfigReport"
51 )
52
53 // ServiceManagerClient is the client API for ServiceManager service.
54 //
55 // 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.
56 type ServiceManagerClient interface {
57 // Lists managed services.
58 //
59 // Returns all public services. For authenticated users, also returns all
60 // services the calling user has "servicemanagement.services.get" permission
61 // for.
62 ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error)
63 // Gets a managed service. Authentication is required unless the service is
64 // public.
65 GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*ManagedService, error)
66 // Creates a new managed service.
67 //
68 // A managed service is immutable, and is subject to mandatory 30-day
69 // data retention. You cannot move a service or recreate it within 30 days
70 // after deletion.
71 //
72 // One producer project can own no more than 500 services. For security and
73 // reliability purposes, a production service should be hosted in a
74 // dedicated producer project.
75 //
76 // Operation<response: ManagedService>
77 CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
78 // Deletes a managed service. This method will change the service to the
79 // `Soft-Delete` state for 30 days. Within this period, service producers may
80 // call
81 // [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService]
82 // to restore the service. After 30 days, the service will be permanently
83 // deleted.
84 //
85 // Operation<response: google.protobuf.Empty>
86 DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
87 // Revives a previously deleted managed service. The method restores the
88 // service using the configuration at the time the service was deleted.
89 // The target service must exist and must have been deleted within the
90 // last 30 days.
91 //
92 // Operation<response: UndeleteServiceResponse>
93 UndeleteService(ctx context.Context, in *UndeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
94 // Lists the history of the service configuration for a managed service,
95 // from the newest to the oldest.
96 ListServiceConfigs(ctx context.Context, in *ListServiceConfigsRequest, opts ...grpc.CallOption) (*ListServiceConfigsResponse, error)
97 // Gets a service configuration (version) for a managed service.
98 GetServiceConfig(ctx context.Context, in *GetServiceConfigRequest, opts ...grpc.CallOption) (*serviceconfig.Service, error)
99 // Creates a new service configuration (version) for a managed service.
100 // This method only stores the service configuration. To roll out the service
101 // configuration to backend systems please call
102 // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
103 //
104 // Only the 100 most recent service configurations and ones referenced by
105 // existing rollouts are kept for each service. The rest will be deleted
106 // eventually.
107 CreateServiceConfig(ctx context.Context, in *CreateServiceConfigRequest, opts ...grpc.CallOption) (*serviceconfig.Service, error)
108 // Creates a new service configuration (version) for a managed service based
109 // on
110 // user-supplied configuration source files (for example: OpenAPI
111 // Specification). This method stores the source configurations as well as the
112 // generated service configuration. To rollout the service configuration to
113 // other services,
114 // please call
115 // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
116 //
117 // Only the 100 most recent configuration sources and ones referenced by
118 // existing service configurtions are kept for each service. The rest will be
119 // deleted eventually.
120 //
121 // Operation<response: SubmitConfigSourceResponse>
122 SubmitConfigSource(ctx context.Context, in *SubmitConfigSourceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
123 // Lists the history of the service configuration rollouts for a managed
124 // service, from the newest to the oldest.
125 ListServiceRollouts(ctx context.Context, in *ListServiceRolloutsRequest, opts ...grpc.CallOption) (*ListServiceRolloutsResponse, error)
126 // Gets a service configuration
127 // [rollout][google.api.servicemanagement.v1.Rollout].
128 GetServiceRollout(ctx context.Context, in *GetServiceRolloutRequest, opts ...grpc.CallOption) (*Rollout, error)
129 // Creates a new service configuration rollout. Based on rollout, the
130 // Google Service Management will roll out the service configurations to
131 // different backend services. For example, the logging configuration will be
132 // pushed to Google Cloud Logging.
133 //
134 // Please note that any previous pending and running Rollouts and associated
135 // Operations will be automatically cancelled so that the latest Rollout will
136 // not be blocked by previous Rollouts.
137 //
138 // Only the 100 most recent (in any state) and the last 10 successful (if not
139 // already part of the set of 100 most recent) rollouts are kept for each
140 // service. The rest will be deleted eventually.
141 //
142 // Operation<response: Rollout>
143 CreateServiceRollout(ctx context.Context, in *CreateServiceRolloutRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
144 // Generates and returns a report (errors, warnings and changes from
145 // existing configurations) associated with
146 // GenerateConfigReportRequest.new_value
147 //
148 // If GenerateConfigReportRequest.old_value is specified,
149 // GenerateConfigReportRequest will contain a single ChangeReport based on the
150 // comparison between GenerateConfigReportRequest.new_value and
151 // GenerateConfigReportRequest.old_value.
152 // If GenerateConfigReportRequest.old_value is not specified, this method
153 // will compare GenerateConfigReportRequest.new_value with the last pushed
154 // service configuration.
155 GenerateConfigReport(ctx context.Context, in *GenerateConfigReportRequest, opts ...grpc.CallOption) (*GenerateConfigReportResponse, error)
156 }
157
158 type serviceManagerClient struct {
159 cc grpc.ClientConnInterface
160 }
161
162 func NewServiceManagerClient(cc grpc.ClientConnInterface) ServiceManagerClient {
163 return &serviceManagerClient{cc}
164 }
165
166 func (c *serviceManagerClient) ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error) {
167 out := new(ListServicesResponse)
168 err := c.cc.Invoke(ctx, ServiceManager_ListServices_FullMethodName, in, out, opts...)
169 if err != nil {
170 return nil, err
171 }
172 return out, nil
173 }
174
175 func (c *serviceManagerClient) GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*ManagedService, error) {
176 out := new(ManagedService)
177 err := c.cc.Invoke(ctx, ServiceManager_GetService_FullMethodName, in, out, opts...)
178 if err != nil {
179 return nil, err
180 }
181 return out, nil
182 }
183
184 func (c *serviceManagerClient) CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
185 out := new(longrunningpb.Operation)
186 err := c.cc.Invoke(ctx, ServiceManager_CreateService_FullMethodName, in, out, opts...)
187 if err != nil {
188 return nil, err
189 }
190 return out, nil
191 }
192
193 func (c *serviceManagerClient) DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
194 out := new(longrunningpb.Operation)
195 err := c.cc.Invoke(ctx, ServiceManager_DeleteService_FullMethodName, in, out, opts...)
196 if err != nil {
197 return nil, err
198 }
199 return out, nil
200 }
201
202 func (c *serviceManagerClient) UndeleteService(ctx context.Context, in *UndeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
203 out := new(longrunningpb.Operation)
204 err := c.cc.Invoke(ctx, ServiceManager_UndeleteService_FullMethodName, in, out, opts...)
205 if err != nil {
206 return nil, err
207 }
208 return out, nil
209 }
210
211 func (c *serviceManagerClient) ListServiceConfigs(ctx context.Context, in *ListServiceConfigsRequest, opts ...grpc.CallOption) (*ListServiceConfigsResponse, error) {
212 out := new(ListServiceConfigsResponse)
213 err := c.cc.Invoke(ctx, ServiceManager_ListServiceConfigs_FullMethodName, in, out, opts...)
214 if err != nil {
215 return nil, err
216 }
217 return out, nil
218 }
219
220 func (c *serviceManagerClient) GetServiceConfig(ctx context.Context, in *GetServiceConfigRequest, opts ...grpc.CallOption) (*serviceconfig.Service, error) {
221 out := new(serviceconfig.Service)
222 err := c.cc.Invoke(ctx, ServiceManager_GetServiceConfig_FullMethodName, in, out, opts...)
223 if err != nil {
224 return nil, err
225 }
226 return out, nil
227 }
228
229 func (c *serviceManagerClient) CreateServiceConfig(ctx context.Context, in *CreateServiceConfigRequest, opts ...grpc.CallOption) (*serviceconfig.Service, error) {
230 out := new(serviceconfig.Service)
231 err := c.cc.Invoke(ctx, ServiceManager_CreateServiceConfig_FullMethodName, in, out, opts...)
232 if err != nil {
233 return nil, err
234 }
235 return out, nil
236 }
237
238 func (c *serviceManagerClient) SubmitConfigSource(ctx context.Context, in *SubmitConfigSourceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
239 out := new(longrunningpb.Operation)
240 err := c.cc.Invoke(ctx, ServiceManager_SubmitConfigSource_FullMethodName, in, out, opts...)
241 if err != nil {
242 return nil, err
243 }
244 return out, nil
245 }
246
247 func (c *serviceManagerClient) ListServiceRollouts(ctx context.Context, in *ListServiceRolloutsRequest, opts ...grpc.CallOption) (*ListServiceRolloutsResponse, error) {
248 out := new(ListServiceRolloutsResponse)
249 err := c.cc.Invoke(ctx, ServiceManager_ListServiceRollouts_FullMethodName, in, out, opts...)
250 if err != nil {
251 return nil, err
252 }
253 return out, nil
254 }
255
256 func (c *serviceManagerClient) GetServiceRollout(ctx context.Context, in *GetServiceRolloutRequest, opts ...grpc.CallOption) (*Rollout, error) {
257 out := new(Rollout)
258 err := c.cc.Invoke(ctx, ServiceManager_GetServiceRollout_FullMethodName, in, out, opts...)
259 if err != nil {
260 return nil, err
261 }
262 return out, nil
263 }
264
265 func (c *serviceManagerClient) CreateServiceRollout(ctx context.Context, in *CreateServiceRolloutRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
266 out := new(longrunningpb.Operation)
267 err := c.cc.Invoke(ctx, ServiceManager_CreateServiceRollout_FullMethodName, in, out, opts...)
268 if err != nil {
269 return nil, err
270 }
271 return out, nil
272 }
273
274 func (c *serviceManagerClient) GenerateConfigReport(ctx context.Context, in *GenerateConfigReportRequest, opts ...grpc.CallOption) (*GenerateConfigReportResponse, error) {
275 out := new(GenerateConfigReportResponse)
276 err := c.cc.Invoke(ctx, ServiceManager_GenerateConfigReport_FullMethodName, in, out, opts...)
277 if err != nil {
278 return nil, err
279 }
280 return out, nil
281 }
282
283 // ServiceManagerServer is the server API for ServiceManager service.
284 // All implementations should embed UnimplementedServiceManagerServer
285 // for forward compatibility
286 type ServiceManagerServer interface {
287 // Lists managed services.
288 //
289 // Returns all public services. For authenticated users, also returns all
290 // services the calling user has "servicemanagement.services.get" permission
291 // for.
292 ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
293 // Gets a managed service. Authentication is required unless the service is
294 // public.
295 GetService(context.Context, *GetServiceRequest) (*ManagedService, error)
296 // Creates a new managed service.
297 //
298 // A managed service is immutable, and is subject to mandatory 30-day
299 // data retention. You cannot move a service or recreate it within 30 days
300 // after deletion.
301 //
302 // One producer project can own no more than 500 services. For security and
303 // reliability purposes, a production service should be hosted in a
304 // dedicated producer project.
305 //
306 // Operation<response: ManagedService>
307 CreateService(context.Context, *CreateServiceRequest) (*longrunningpb.Operation, error)
308 // Deletes a managed service. This method will change the service to the
309 // `Soft-Delete` state for 30 days. Within this period, service producers may
310 // call
311 // [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService]
312 // to restore the service. After 30 days, the service will be permanently
313 // deleted.
314 //
315 // Operation<response: google.protobuf.Empty>
316 DeleteService(context.Context, *DeleteServiceRequest) (*longrunningpb.Operation, error)
317 // Revives a previously deleted managed service. The method restores the
318 // service using the configuration at the time the service was deleted.
319 // The target service must exist and must have been deleted within the
320 // last 30 days.
321 //
322 // Operation<response: UndeleteServiceResponse>
323 UndeleteService(context.Context, *UndeleteServiceRequest) (*longrunningpb.Operation, error)
324 // Lists the history of the service configuration for a managed service,
325 // from the newest to the oldest.
326 ListServiceConfigs(context.Context, *ListServiceConfigsRequest) (*ListServiceConfigsResponse, error)
327 // Gets a service configuration (version) for a managed service.
328 GetServiceConfig(context.Context, *GetServiceConfigRequest) (*serviceconfig.Service, error)
329 // Creates a new service configuration (version) for a managed service.
330 // This method only stores the service configuration. To roll out the service
331 // configuration to backend systems please call
332 // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
333 //
334 // Only the 100 most recent service configurations and ones referenced by
335 // existing rollouts are kept for each service. The rest will be deleted
336 // eventually.
337 CreateServiceConfig(context.Context, *CreateServiceConfigRequest) (*serviceconfig.Service, error)
338 // Creates a new service configuration (version) for a managed service based
339 // on
340 // user-supplied configuration source files (for example: OpenAPI
341 // Specification). This method stores the source configurations as well as the
342 // generated service configuration. To rollout the service configuration to
343 // other services,
344 // please call
345 // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
346 //
347 // Only the 100 most recent configuration sources and ones referenced by
348 // existing service configurtions are kept for each service. The rest will be
349 // deleted eventually.
350 //
351 // Operation<response: SubmitConfigSourceResponse>
352 SubmitConfigSource(context.Context, *SubmitConfigSourceRequest) (*longrunningpb.Operation, error)
353 // Lists the history of the service configuration rollouts for a managed
354 // service, from the newest to the oldest.
355 ListServiceRollouts(context.Context, *ListServiceRolloutsRequest) (*ListServiceRolloutsResponse, error)
356 // Gets a service configuration
357 // [rollout][google.api.servicemanagement.v1.Rollout].
358 GetServiceRollout(context.Context, *GetServiceRolloutRequest) (*Rollout, error)
359 // Creates a new service configuration rollout. Based on rollout, the
360 // Google Service Management will roll out the service configurations to
361 // different backend services. For example, the logging configuration will be
362 // pushed to Google Cloud Logging.
363 //
364 // Please note that any previous pending and running Rollouts and associated
365 // Operations will be automatically cancelled so that the latest Rollout will
366 // not be blocked by previous Rollouts.
367 //
368 // Only the 100 most recent (in any state) and the last 10 successful (if not
369 // already part of the set of 100 most recent) rollouts are kept for each
370 // service. The rest will be deleted eventually.
371 //
372 // Operation<response: Rollout>
373 CreateServiceRollout(context.Context, *CreateServiceRolloutRequest) (*longrunningpb.Operation, error)
374 // Generates and returns a report (errors, warnings and changes from
375 // existing configurations) associated with
376 // GenerateConfigReportRequest.new_value
377 //
378 // If GenerateConfigReportRequest.old_value is specified,
379 // GenerateConfigReportRequest will contain a single ChangeReport based on the
380 // comparison between GenerateConfigReportRequest.new_value and
381 // GenerateConfigReportRequest.old_value.
382 // If GenerateConfigReportRequest.old_value is not specified, this method
383 // will compare GenerateConfigReportRequest.new_value with the last pushed
384 // service configuration.
385 GenerateConfigReport(context.Context, *GenerateConfigReportRequest) (*GenerateConfigReportResponse, error)
386 }
387
388 // UnimplementedServiceManagerServer should be embedded to have forward compatible implementations.
389 type UnimplementedServiceManagerServer struct {
390 }
391
392 func (UnimplementedServiceManagerServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) {
393 return nil, status.Errorf(codes.Unimplemented, "method ListServices not implemented")
394 }
395 func (UnimplementedServiceManagerServer) GetService(context.Context, *GetServiceRequest) (*ManagedService, error) {
396 return nil, status.Errorf(codes.Unimplemented, "method GetService not implemented")
397 }
398 func (UnimplementedServiceManagerServer) CreateService(context.Context, *CreateServiceRequest) (*longrunningpb.Operation, error) {
399 return nil, status.Errorf(codes.Unimplemented, "method CreateService not implemented")
400 }
401 func (UnimplementedServiceManagerServer) DeleteService(context.Context, *DeleteServiceRequest) (*longrunningpb.Operation, error) {
402 return nil, status.Errorf(codes.Unimplemented, "method DeleteService not implemented")
403 }
404 func (UnimplementedServiceManagerServer) UndeleteService(context.Context, *UndeleteServiceRequest) (*longrunningpb.Operation, error) {
405 return nil, status.Errorf(codes.Unimplemented, "method UndeleteService not implemented")
406 }
407 func (UnimplementedServiceManagerServer) ListServiceConfigs(context.Context, *ListServiceConfigsRequest) (*ListServiceConfigsResponse, error) {
408 return nil, status.Errorf(codes.Unimplemented, "method ListServiceConfigs not implemented")
409 }
410 func (UnimplementedServiceManagerServer) GetServiceConfig(context.Context, *GetServiceConfigRequest) (*serviceconfig.Service, error) {
411 return nil, status.Errorf(codes.Unimplemented, "method GetServiceConfig not implemented")
412 }
413 func (UnimplementedServiceManagerServer) CreateServiceConfig(context.Context, *CreateServiceConfigRequest) (*serviceconfig.Service, error) {
414 return nil, status.Errorf(codes.Unimplemented, "method CreateServiceConfig not implemented")
415 }
416 func (UnimplementedServiceManagerServer) SubmitConfigSource(context.Context, *SubmitConfigSourceRequest) (*longrunningpb.Operation, error) {
417 return nil, status.Errorf(codes.Unimplemented, "method SubmitConfigSource not implemented")
418 }
419 func (UnimplementedServiceManagerServer) ListServiceRollouts(context.Context, *ListServiceRolloutsRequest) (*ListServiceRolloutsResponse, error) {
420 return nil, status.Errorf(codes.Unimplemented, "method ListServiceRollouts not implemented")
421 }
422 func (UnimplementedServiceManagerServer) GetServiceRollout(context.Context, *GetServiceRolloutRequest) (*Rollout, error) {
423 return nil, status.Errorf(codes.Unimplemented, "method GetServiceRollout not implemented")
424 }
425 func (UnimplementedServiceManagerServer) CreateServiceRollout(context.Context, *CreateServiceRolloutRequest) (*longrunningpb.Operation, error) {
426 return nil, status.Errorf(codes.Unimplemented, "method CreateServiceRollout not implemented")
427 }
428 func (UnimplementedServiceManagerServer) GenerateConfigReport(context.Context, *GenerateConfigReportRequest) (*GenerateConfigReportResponse, error) {
429 return nil, status.Errorf(codes.Unimplemented, "method GenerateConfigReport not implemented")
430 }
431
432 // UnsafeServiceManagerServer may be embedded to opt out of forward compatibility for this service.
433 // Use of this interface is not recommended, as added methods to ServiceManagerServer will
434 // result in compilation errors.
435 type UnsafeServiceManagerServer interface {
436 mustEmbedUnimplementedServiceManagerServer()
437 }
438
439 func RegisterServiceManagerServer(s grpc.ServiceRegistrar, srv ServiceManagerServer) {
440 s.RegisterService(&ServiceManager_ServiceDesc, srv)
441 }
442
443 func _ServiceManager_ListServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
444 in := new(ListServicesRequest)
445 if err := dec(in); err != nil {
446 return nil, err
447 }
448 if interceptor == nil {
449 return srv.(ServiceManagerServer).ListServices(ctx, in)
450 }
451 info := &grpc.UnaryServerInfo{
452 Server: srv,
453 FullMethod: ServiceManager_ListServices_FullMethodName,
454 }
455 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
456 return srv.(ServiceManagerServer).ListServices(ctx, req.(*ListServicesRequest))
457 }
458 return interceptor(ctx, in, info, handler)
459 }
460
461 func _ServiceManager_GetService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
462 in := new(GetServiceRequest)
463 if err := dec(in); err != nil {
464 return nil, err
465 }
466 if interceptor == nil {
467 return srv.(ServiceManagerServer).GetService(ctx, in)
468 }
469 info := &grpc.UnaryServerInfo{
470 Server: srv,
471 FullMethod: ServiceManager_GetService_FullMethodName,
472 }
473 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
474 return srv.(ServiceManagerServer).GetService(ctx, req.(*GetServiceRequest))
475 }
476 return interceptor(ctx, in, info, handler)
477 }
478
479 func _ServiceManager_CreateService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
480 in := new(CreateServiceRequest)
481 if err := dec(in); err != nil {
482 return nil, err
483 }
484 if interceptor == nil {
485 return srv.(ServiceManagerServer).CreateService(ctx, in)
486 }
487 info := &grpc.UnaryServerInfo{
488 Server: srv,
489 FullMethod: ServiceManager_CreateService_FullMethodName,
490 }
491 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
492 return srv.(ServiceManagerServer).CreateService(ctx, req.(*CreateServiceRequest))
493 }
494 return interceptor(ctx, in, info, handler)
495 }
496
497 func _ServiceManager_DeleteService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
498 in := new(DeleteServiceRequest)
499 if err := dec(in); err != nil {
500 return nil, err
501 }
502 if interceptor == nil {
503 return srv.(ServiceManagerServer).DeleteService(ctx, in)
504 }
505 info := &grpc.UnaryServerInfo{
506 Server: srv,
507 FullMethod: ServiceManager_DeleteService_FullMethodName,
508 }
509 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
510 return srv.(ServiceManagerServer).DeleteService(ctx, req.(*DeleteServiceRequest))
511 }
512 return interceptor(ctx, in, info, handler)
513 }
514
515 func _ServiceManager_UndeleteService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
516 in := new(UndeleteServiceRequest)
517 if err := dec(in); err != nil {
518 return nil, err
519 }
520 if interceptor == nil {
521 return srv.(ServiceManagerServer).UndeleteService(ctx, in)
522 }
523 info := &grpc.UnaryServerInfo{
524 Server: srv,
525 FullMethod: ServiceManager_UndeleteService_FullMethodName,
526 }
527 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
528 return srv.(ServiceManagerServer).UndeleteService(ctx, req.(*UndeleteServiceRequest))
529 }
530 return interceptor(ctx, in, info, handler)
531 }
532
533 func _ServiceManager_ListServiceConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
534 in := new(ListServiceConfigsRequest)
535 if err := dec(in); err != nil {
536 return nil, err
537 }
538 if interceptor == nil {
539 return srv.(ServiceManagerServer).ListServiceConfigs(ctx, in)
540 }
541 info := &grpc.UnaryServerInfo{
542 Server: srv,
543 FullMethod: ServiceManager_ListServiceConfigs_FullMethodName,
544 }
545 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
546 return srv.(ServiceManagerServer).ListServiceConfigs(ctx, req.(*ListServiceConfigsRequest))
547 }
548 return interceptor(ctx, in, info, handler)
549 }
550
551 func _ServiceManager_GetServiceConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
552 in := new(GetServiceConfigRequest)
553 if err := dec(in); err != nil {
554 return nil, err
555 }
556 if interceptor == nil {
557 return srv.(ServiceManagerServer).GetServiceConfig(ctx, in)
558 }
559 info := &grpc.UnaryServerInfo{
560 Server: srv,
561 FullMethod: ServiceManager_GetServiceConfig_FullMethodName,
562 }
563 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
564 return srv.(ServiceManagerServer).GetServiceConfig(ctx, req.(*GetServiceConfigRequest))
565 }
566 return interceptor(ctx, in, info, handler)
567 }
568
569 func _ServiceManager_CreateServiceConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
570 in := new(CreateServiceConfigRequest)
571 if err := dec(in); err != nil {
572 return nil, err
573 }
574 if interceptor == nil {
575 return srv.(ServiceManagerServer).CreateServiceConfig(ctx, in)
576 }
577 info := &grpc.UnaryServerInfo{
578 Server: srv,
579 FullMethod: ServiceManager_CreateServiceConfig_FullMethodName,
580 }
581 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
582 return srv.(ServiceManagerServer).CreateServiceConfig(ctx, req.(*CreateServiceConfigRequest))
583 }
584 return interceptor(ctx, in, info, handler)
585 }
586
587 func _ServiceManager_SubmitConfigSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
588 in := new(SubmitConfigSourceRequest)
589 if err := dec(in); err != nil {
590 return nil, err
591 }
592 if interceptor == nil {
593 return srv.(ServiceManagerServer).SubmitConfigSource(ctx, in)
594 }
595 info := &grpc.UnaryServerInfo{
596 Server: srv,
597 FullMethod: ServiceManager_SubmitConfigSource_FullMethodName,
598 }
599 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
600 return srv.(ServiceManagerServer).SubmitConfigSource(ctx, req.(*SubmitConfigSourceRequest))
601 }
602 return interceptor(ctx, in, info, handler)
603 }
604
605 func _ServiceManager_ListServiceRollouts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
606 in := new(ListServiceRolloutsRequest)
607 if err := dec(in); err != nil {
608 return nil, err
609 }
610 if interceptor == nil {
611 return srv.(ServiceManagerServer).ListServiceRollouts(ctx, in)
612 }
613 info := &grpc.UnaryServerInfo{
614 Server: srv,
615 FullMethod: ServiceManager_ListServiceRollouts_FullMethodName,
616 }
617 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
618 return srv.(ServiceManagerServer).ListServiceRollouts(ctx, req.(*ListServiceRolloutsRequest))
619 }
620 return interceptor(ctx, in, info, handler)
621 }
622
623 func _ServiceManager_GetServiceRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
624 in := new(GetServiceRolloutRequest)
625 if err := dec(in); err != nil {
626 return nil, err
627 }
628 if interceptor == nil {
629 return srv.(ServiceManagerServer).GetServiceRollout(ctx, in)
630 }
631 info := &grpc.UnaryServerInfo{
632 Server: srv,
633 FullMethod: ServiceManager_GetServiceRollout_FullMethodName,
634 }
635 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
636 return srv.(ServiceManagerServer).GetServiceRollout(ctx, req.(*GetServiceRolloutRequest))
637 }
638 return interceptor(ctx, in, info, handler)
639 }
640
641 func _ServiceManager_CreateServiceRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
642 in := new(CreateServiceRolloutRequest)
643 if err := dec(in); err != nil {
644 return nil, err
645 }
646 if interceptor == nil {
647 return srv.(ServiceManagerServer).CreateServiceRollout(ctx, in)
648 }
649 info := &grpc.UnaryServerInfo{
650 Server: srv,
651 FullMethod: ServiceManager_CreateServiceRollout_FullMethodName,
652 }
653 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
654 return srv.(ServiceManagerServer).CreateServiceRollout(ctx, req.(*CreateServiceRolloutRequest))
655 }
656 return interceptor(ctx, in, info, handler)
657 }
658
659 func _ServiceManager_GenerateConfigReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
660 in := new(GenerateConfigReportRequest)
661 if err := dec(in); err != nil {
662 return nil, err
663 }
664 if interceptor == nil {
665 return srv.(ServiceManagerServer).GenerateConfigReport(ctx, in)
666 }
667 info := &grpc.UnaryServerInfo{
668 Server: srv,
669 FullMethod: ServiceManager_GenerateConfigReport_FullMethodName,
670 }
671 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
672 return srv.(ServiceManagerServer).GenerateConfigReport(ctx, req.(*GenerateConfigReportRequest))
673 }
674 return interceptor(ctx, in, info, handler)
675 }
676
677 // ServiceManager_ServiceDesc is the grpc.ServiceDesc for ServiceManager service.
678 // It's only intended for direct use with grpc.RegisterService,
679 // and not to be introspected or modified (even as a copy)
680 var ServiceManager_ServiceDesc = grpc.ServiceDesc{
681 ServiceName: "google.api.servicemanagement.v1.ServiceManager",
682 HandlerType: (*ServiceManagerServer)(nil),
683 Methods: []grpc.MethodDesc{
684 {
685 MethodName: "ListServices",
686 Handler: _ServiceManager_ListServices_Handler,
687 },
688 {
689 MethodName: "GetService",
690 Handler: _ServiceManager_GetService_Handler,
691 },
692 {
693 MethodName: "CreateService",
694 Handler: _ServiceManager_CreateService_Handler,
695 },
696 {
697 MethodName: "DeleteService",
698 Handler: _ServiceManager_DeleteService_Handler,
699 },
700 {
701 MethodName: "UndeleteService",
702 Handler: _ServiceManager_UndeleteService_Handler,
703 },
704 {
705 MethodName: "ListServiceConfigs",
706 Handler: _ServiceManager_ListServiceConfigs_Handler,
707 },
708 {
709 MethodName: "GetServiceConfig",
710 Handler: _ServiceManager_GetServiceConfig_Handler,
711 },
712 {
713 MethodName: "CreateServiceConfig",
714 Handler: _ServiceManager_CreateServiceConfig_Handler,
715 },
716 {
717 MethodName: "SubmitConfigSource",
718 Handler: _ServiceManager_SubmitConfigSource_Handler,
719 },
720 {
721 MethodName: "ListServiceRollouts",
722 Handler: _ServiceManager_ListServiceRollouts_Handler,
723 },
724 {
725 MethodName: "GetServiceRollout",
726 Handler: _ServiceManager_GetServiceRollout_Handler,
727 },
728 {
729 MethodName: "CreateServiceRollout",
730 Handler: _ServiceManager_CreateServiceRollout_Handler,
731 },
732 {
733 MethodName: "GenerateConfigReport",
734 Handler: _ServiceManager_GenerateConfigReport_Handler,
735 },
736 },
737 Streams: []grpc.StreamDesc{},
738 Metadata: "google/api/servicemanagement/v1/servicemanager.proto",
739 }