// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v4.25.7 // source: google/api/servicemanagement/v1/servicemanager.proto package servicemanagementpb import ( longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" context "context" serviceconfig "google.golang.org/genproto/googleapis/api/serviceconfig" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 const ( ServiceManager_ListServices_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/ListServices" ServiceManager_GetService_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/GetService" ServiceManager_CreateService_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/CreateService" ServiceManager_DeleteService_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/DeleteService" ServiceManager_UndeleteService_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/UndeleteService" ServiceManager_ListServiceConfigs_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/ListServiceConfigs" ServiceManager_GetServiceConfig_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/GetServiceConfig" ServiceManager_CreateServiceConfig_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/CreateServiceConfig" ServiceManager_SubmitConfigSource_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/SubmitConfigSource" ServiceManager_ListServiceRollouts_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/ListServiceRollouts" ServiceManager_GetServiceRollout_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/GetServiceRollout" ServiceManager_CreateServiceRollout_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/CreateServiceRollout" ServiceManager_GenerateConfigReport_FullMethodName = "/google.api.servicemanagement.v1.ServiceManager/GenerateConfigReport" ) // ServiceManagerClient is the client API for ServiceManager service. // // 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. type ServiceManagerClient interface { // Lists managed services. // // Returns all public services. For authenticated users, also returns all // services the calling user has "servicemanagement.services.get" permission // for. ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error) // Gets a managed service. Authentication is required unless the service is // public. GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*ManagedService, error) // Creates a new managed service. // // A managed service is immutable, and is subject to mandatory 30-day // data retention. You cannot move a service or recreate it within 30 days // after deletion. // // One producer project can own no more than 500 services. For security and // reliability purposes, a production service should be hosted in a // dedicated producer project. // // Operation CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Deletes a managed service. This method will change the service to the // `Soft-Delete` state for 30 days. Within this period, service producers may // call // [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] // to restore the service. After 30 days, the service will be permanently // deleted. // // Operation DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Revives a previously deleted managed service. The method restores the // service using the configuration at the time the service was deleted. // The target service must exist and must have been deleted within the // last 30 days. // // Operation UndeleteService(ctx context.Context, in *UndeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Lists the history of the service configuration for a managed service, // from the newest to the oldest. ListServiceConfigs(ctx context.Context, in *ListServiceConfigsRequest, opts ...grpc.CallOption) (*ListServiceConfigsResponse, error) // Gets a service configuration (version) for a managed service. GetServiceConfig(ctx context.Context, in *GetServiceConfigRequest, opts ...grpc.CallOption) (*serviceconfig.Service, error) // Creates a new service configuration (version) for a managed service. // This method only stores the service configuration. To roll out the service // configuration to backend systems please call // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. // // Only the 100 most recent service configurations and ones referenced by // existing rollouts are kept for each service. The rest will be deleted // eventually. CreateServiceConfig(ctx context.Context, in *CreateServiceConfigRequest, opts ...grpc.CallOption) (*serviceconfig.Service, error) // Creates a new service configuration (version) for a managed service based // on // user-supplied configuration source files (for example: OpenAPI // Specification). This method stores the source configurations as well as the // generated service configuration. To rollout the service configuration to // other services, // please call // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. // // Only the 100 most recent configuration sources and ones referenced by // existing service configurtions are kept for each service. The rest will be // deleted eventually. // // Operation SubmitConfigSource(ctx context.Context, in *SubmitConfigSourceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Lists the history of the service configuration rollouts for a managed // service, from the newest to the oldest. ListServiceRollouts(ctx context.Context, in *ListServiceRolloutsRequest, opts ...grpc.CallOption) (*ListServiceRolloutsResponse, error) // Gets a service configuration // [rollout][google.api.servicemanagement.v1.Rollout]. GetServiceRollout(ctx context.Context, in *GetServiceRolloutRequest, opts ...grpc.CallOption) (*Rollout, error) // Creates a new service configuration rollout. Based on rollout, the // Google Service Management will roll out the service configurations to // different backend services. For example, the logging configuration will be // pushed to Google Cloud Logging. // // Please note that any previous pending and running Rollouts and associated // Operations will be automatically cancelled so that the latest Rollout will // not be blocked by previous Rollouts. // // Only the 100 most recent (in any state) and the last 10 successful (if not // already part of the set of 100 most recent) rollouts are kept for each // service. The rest will be deleted eventually. // // Operation CreateServiceRollout(ctx context.Context, in *CreateServiceRolloutRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Generates and returns a report (errors, warnings and changes from // existing configurations) associated with // GenerateConfigReportRequest.new_value // // If GenerateConfigReportRequest.old_value is specified, // GenerateConfigReportRequest will contain a single ChangeReport based on the // comparison between GenerateConfigReportRequest.new_value and // GenerateConfigReportRequest.old_value. // If GenerateConfigReportRequest.old_value is not specified, this method // will compare GenerateConfigReportRequest.new_value with the last pushed // service configuration. GenerateConfigReport(ctx context.Context, in *GenerateConfigReportRequest, opts ...grpc.CallOption) (*GenerateConfigReportResponse, error) } type serviceManagerClient struct { cc grpc.ClientConnInterface } func NewServiceManagerClient(cc grpc.ClientConnInterface) ServiceManagerClient { return &serviceManagerClient{cc} } func (c *serviceManagerClient) ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error) { out := new(ListServicesResponse) err := c.cc.Invoke(ctx, ServiceManager_ListServices_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*ManagedService, error) { out := new(ManagedService) err := c.cc.Invoke(ctx, ServiceManager_GetService_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { out := new(longrunningpb.Operation) err := c.cc.Invoke(ctx, ServiceManager_CreateService_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { out := new(longrunningpb.Operation) err := c.cc.Invoke(ctx, ServiceManager_DeleteService_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) UndeleteService(ctx context.Context, in *UndeleteServiceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { out := new(longrunningpb.Operation) err := c.cc.Invoke(ctx, ServiceManager_UndeleteService_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) ListServiceConfigs(ctx context.Context, in *ListServiceConfigsRequest, opts ...grpc.CallOption) (*ListServiceConfigsResponse, error) { out := new(ListServiceConfigsResponse) err := c.cc.Invoke(ctx, ServiceManager_ListServiceConfigs_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) GetServiceConfig(ctx context.Context, in *GetServiceConfigRequest, opts ...grpc.CallOption) (*serviceconfig.Service, error) { out := new(serviceconfig.Service) err := c.cc.Invoke(ctx, ServiceManager_GetServiceConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) CreateServiceConfig(ctx context.Context, in *CreateServiceConfigRequest, opts ...grpc.CallOption) (*serviceconfig.Service, error) { out := new(serviceconfig.Service) err := c.cc.Invoke(ctx, ServiceManager_CreateServiceConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) SubmitConfigSource(ctx context.Context, in *SubmitConfigSourceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { out := new(longrunningpb.Operation) err := c.cc.Invoke(ctx, ServiceManager_SubmitConfigSource_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) ListServiceRollouts(ctx context.Context, in *ListServiceRolloutsRequest, opts ...grpc.CallOption) (*ListServiceRolloutsResponse, error) { out := new(ListServiceRolloutsResponse) err := c.cc.Invoke(ctx, ServiceManager_ListServiceRollouts_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) GetServiceRollout(ctx context.Context, in *GetServiceRolloutRequest, opts ...grpc.CallOption) (*Rollout, error) { out := new(Rollout) err := c.cc.Invoke(ctx, ServiceManager_GetServiceRollout_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) CreateServiceRollout(ctx context.Context, in *CreateServiceRolloutRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { out := new(longrunningpb.Operation) err := c.cc.Invoke(ctx, ServiceManager_CreateServiceRollout_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *serviceManagerClient) GenerateConfigReport(ctx context.Context, in *GenerateConfigReportRequest, opts ...grpc.CallOption) (*GenerateConfigReportResponse, error) { out := new(GenerateConfigReportResponse) err := c.cc.Invoke(ctx, ServiceManager_GenerateConfigReport_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // ServiceManagerServer is the server API for ServiceManager service. // All implementations should embed UnimplementedServiceManagerServer // for forward compatibility type ServiceManagerServer interface { // Lists managed services. // // Returns all public services. For authenticated users, also returns all // services the calling user has "servicemanagement.services.get" permission // for. ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) // Gets a managed service. Authentication is required unless the service is // public. GetService(context.Context, *GetServiceRequest) (*ManagedService, error) // Creates a new managed service. // // A managed service is immutable, and is subject to mandatory 30-day // data retention. You cannot move a service or recreate it within 30 days // after deletion. // // One producer project can own no more than 500 services. For security and // reliability purposes, a production service should be hosted in a // dedicated producer project. // // Operation CreateService(context.Context, *CreateServiceRequest) (*longrunningpb.Operation, error) // Deletes a managed service. This method will change the service to the // `Soft-Delete` state for 30 days. Within this period, service producers may // call // [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] // to restore the service. After 30 days, the service will be permanently // deleted. // // Operation DeleteService(context.Context, *DeleteServiceRequest) (*longrunningpb.Operation, error) // Revives a previously deleted managed service. The method restores the // service using the configuration at the time the service was deleted. // The target service must exist and must have been deleted within the // last 30 days. // // Operation UndeleteService(context.Context, *UndeleteServiceRequest) (*longrunningpb.Operation, error) // Lists the history of the service configuration for a managed service, // from the newest to the oldest. ListServiceConfigs(context.Context, *ListServiceConfigsRequest) (*ListServiceConfigsResponse, error) // Gets a service configuration (version) for a managed service. GetServiceConfig(context.Context, *GetServiceConfigRequest) (*serviceconfig.Service, error) // Creates a new service configuration (version) for a managed service. // This method only stores the service configuration. To roll out the service // configuration to backend systems please call // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. // // Only the 100 most recent service configurations and ones referenced by // existing rollouts are kept for each service. The rest will be deleted // eventually. CreateServiceConfig(context.Context, *CreateServiceConfigRequest) (*serviceconfig.Service, error) // Creates a new service configuration (version) for a managed service based // on // user-supplied configuration source files (for example: OpenAPI // Specification). This method stores the source configurations as well as the // generated service configuration. To rollout the service configuration to // other services, // please call // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. // // Only the 100 most recent configuration sources and ones referenced by // existing service configurtions are kept for each service. The rest will be // deleted eventually. // // Operation SubmitConfigSource(context.Context, *SubmitConfigSourceRequest) (*longrunningpb.Operation, error) // Lists the history of the service configuration rollouts for a managed // service, from the newest to the oldest. ListServiceRollouts(context.Context, *ListServiceRolloutsRequest) (*ListServiceRolloutsResponse, error) // Gets a service configuration // [rollout][google.api.servicemanagement.v1.Rollout]. GetServiceRollout(context.Context, *GetServiceRolloutRequest) (*Rollout, error) // Creates a new service configuration rollout. Based on rollout, the // Google Service Management will roll out the service configurations to // different backend services. For example, the logging configuration will be // pushed to Google Cloud Logging. // // Please note that any previous pending and running Rollouts and associated // Operations will be automatically cancelled so that the latest Rollout will // not be blocked by previous Rollouts. // // Only the 100 most recent (in any state) and the last 10 successful (if not // already part of the set of 100 most recent) rollouts are kept for each // service. The rest will be deleted eventually. // // Operation CreateServiceRollout(context.Context, *CreateServiceRolloutRequest) (*longrunningpb.Operation, error) // Generates and returns a report (errors, warnings and changes from // existing configurations) associated with // GenerateConfigReportRequest.new_value // // If GenerateConfigReportRequest.old_value is specified, // GenerateConfigReportRequest will contain a single ChangeReport based on the // comparison between GenerateConfigReportRequest.new_value and // GenerateConfigReportRequest.old_value. // If GenerateConfigReportRequest.old_value is not specified, this method // will compare GenerateConfigReportRequest.new_value with the last pushed // service configuration. GenerateConfigReport(context.Context, *GenerateConfigReportRequest) (*GenerateConfigReportResponse, error) } // UnimplementedServiceManagerServer should be embedded to have forward compatible implementations. type UnimplementedServiceManagerServer struct { } func (UnimplementedServiceManagerServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListServices not implemented") } func (UnimplementedServiceManagerServer) GetService(context.Context, *GetServiceRequest) (*ManagedService, error) { return nil, status.Errorf(codes.Unimplemented, "method GetService not implemented") } func (UnimplementedServiceManagerServer) CreateService(context.Context, *CreateServiceRequest) (*longrunningpb.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateService not implemented") } func (UnimplementedServiceManagerServer) DeleteService(context.Context, *DeleteServiceRequest) (*longrunningpb.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteService not implemented") } func (UnimplementedServiceManagerServer) UndeleteService(context.Context, *UndeleteServiceRequest) (*longrunningpb.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method UndeleteService not implemented") } func (UnimplementedServiceManagerServer) ListServiceConfigs(context.Context, *ListServiceConfigsRequest) (*ListServiceConfigsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListServiceConfigs not implemented") } func (UnimplementedServiceManagerServer) GetServiceConfig(context.Context, *GetServiceConfigRequest) (*serviceconfig.Service, error) { return nil, status.Errorf(codes.Unimplemented, "method GetServiceConfig not implemented") } func (UnimplementedServiceManagerServer) CreateServiceConfig(context.Context, *CreateServiceConfigRequest) (*serviceconfig.Service, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateServiceConfig not implemented") } func (UnimplementedServiceManagerServer) SubmitConfigSource(context.Context, *SubmitConfigSourceRequest) (*longrunningpb.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitConfigSource not implemented") } func (UnimplementedServiceManagerServer) ListServiceRollouts(context.Context, *ListServiceRolloutsRequest) (*ListServiceRolloutsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListServiceRollouts not implemented") } func (UnimplementedServiceManagerServer) GetServiceRollout(context.Context, *GetServiceRolloutRequest) (*Rollout, error) { return nil, status.Errorf(codes.Unimplemented, "method GetServiceRollout not implemented") } func (UnimplementedServiceManagerServer) CreateServiceRollout(context.Context, *CreateServiceRolloutRequest) (*longrunningpb.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateServiceRollout not implemented") } func (UnimplementedServiceManagerServer) GenerateConfigReport(context.Context, *GenerateConfigReportRequest) (*GenerateConfigReportResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateConfigReport not implemented") } // UnsafeServiceManagerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ServiceManagerServer will // result in compilation errors. type UnsafeServiceManagerServer interface { mustEmbedUnimplementedServiceManagerServer() } func RegisterServiceManagerServer(s grpc.ServiceRegistrar, srv ServiceManagerServer) { s.RegisterService(&ServiceManager_ServiceDesc, srv) } func _ServiceManager_ListServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListServicesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).ListServices(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_ListServices_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).ListServices(ctx, req.(*ListServicesRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_GetService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetServiceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).GetService(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_GetService_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).GetService(ctx, req.(*GetServiceRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_CreateService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateServiceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).CreateService(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_CreateService_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).CreateService(ctx, req.(*CreateServiceRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_DeleteService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteServiceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).DeleteService(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_DeleteService_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).DeleteService(ctx, req.(*DeleteServiceRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_UndeleteService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UndeleteServiceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).UndeleteService(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_UndeleteService_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).UndeleteService(ctx, req.(*UndeleteServiceRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_ListServiceConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListServiceConfigsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).ListServiceConfigs(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_ListServiceConfigs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).ListServiceConfigs(ctx, req.(*ListServiceConfigsRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_GetServiceConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetServiceConfigRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).GetServiceConfig(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_GetServiceConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).GetServiceConfig(ctx, req.(*GetServiceConfigRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_CreateServiceConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateServiceConfigRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).CreateServiceConfig(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_CreateServiceConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).CreateServiceConfig(ctx, req.(*CreateServiceConfigRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_SubmitConfigSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SubmitConfigSourceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).SubmitConfigSource(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_SubmitConfigSource_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).SubmitConfigSource(ctx, req.(*SubmitConfigSourceRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_ListServiceRollouts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListServiceRolloutsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).ListServiceRollouts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_ListServiceRollouts_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).ListServiceRollouts(ctx, req.(*ListServiceRolloutsRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_GetServiceRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetServiceRolloutRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).GetServiceRollout(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_GetServiceRollout_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).GetServiceRollout(ctx, req.(*GetServiceRolloutRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_CreateServiceRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateServiceRolloutRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).CreateServiceRollout(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_CreateServiceRollout_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).CreateServiceRollout(ctx, req.(*CreateServiceRolloutRequest)) } return interceptor(ctx, in, info, handler) } func _ServiceManager_GenerateConfigReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GenerateConfigReportRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceManagerServer).GenerateConfigReport(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ServiceManager_GenerateConfigReport_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceManagerServer).GenerateConfigReport(ctx, req.(*GenerateConfigReportRequest)) } return interceptor(ctx, in, info, handler) } // ServiceManager_ServiceDesc is the grpc.ServiceDesc for ServiceManager service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ServiceManager_ServiceDesc = grpc.ServiceDesc{ ServiceName: "google.api.servicemanagement.v1.ServiceManager", HandlerType: (*ServiceManagerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListServices", Handler: _ServiceManager_ListServices_Handler, }, { MethodName: "GetService", Handler: _ServiceManager_GetService_Handler, }, { MethodName: "CreateService", Handler: _ServiceManager_CreateService_Handler, }, { MethodName: "DeleteService", Handler: _ServiceManager_DeleteService_Handler, }, { MethodName: "UndeleteService", Handler: _ServiceManager_UndeleteService_Handler, }, { MethodName: "ListServiceConfigs", Handler: _ServiceManager_ListServiceConfigs_Handler, }, { MethodName: "GetServiceConfig", Handler: _ServiceManager_GetServiceConfig_Handler, }, { MethodName: "CreateServiceConfig", Handler: _ServiceManager_CreateServiceConfig_Handler, }, { MethodName: "SubmitConfigSource", Handler: _ServiceManager_SubmitConfigSource_Handler, }, { MethodName: "ListServiceRollouts", Handler: _ServiceManager_ListServiceRollouts_Handler, }, { MethodName: "GetServiceRollout", Handler: _ServiceManager_GetServiceRollout_Handler, }, { MethodName: "CreateServiceRollout", Handler: _ServiceManager_CreateServiceRollout_Handler, }, { MethodName: "GenerateConfigReport", Handler: _ServiceManager_GenerateConfigReport_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/api/servicemanagement/v1/servicemanager.proto", }