// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v4.25.3 // source: sms/sms.proto package sms import ( context "context" 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 ( SMSService_HandleSMSSend_FullMethodName = "/SMSService/HandleSMSSend" SMSService_HandleSMSQueue_FullMethodName = "/SMSService/HandleSMSQueue" SMSService_HandleGetProducts_FullMethodName = "/SMSService/HandleGetProducts" SMSService_HandleChangeRatePlan_FullMethodName = "/SMSService/HandleChangeRatePlan" SMSService_HandleCustomAttributes_FullMethodName = "/SMSService/HandleCustomAttributes" SMSService_HandleDeviceDetails_FullMethodName = "/SMSService/HandleDeviceDetails" ) // SMSServiceClient is the client API for SMSService 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 SMSServiceClient interface { HandleSMSSend(ctx context.Context, in *SendSMSRequest, opts ...grpc.CallOption) (*SMSDetailsResponse, error) HandleSMSQueue(ctx context.Context, in *SendSMSRequest, opts ...grpc.CallOption) (*SMSQueueResponse, error) HandleGetProducts(ctx context.Context, in *GetAvailableProductsRequest, opts ...grpc.CallOption) (*GetAvailableProductsResponse, error) HandleChangeRatePlan(ctx context.Context, in *ChangeRatePlanRequest, opts ...grpc.CallOption) (*ChangeRatePlanResponse, error) HandleCustomAttributes(ctx context.Context, in *CustomAtributesRequest, opts ...grpc.CallOption) (*CustomAtributeResponse, error) HandleDeviceDetails(ctx context.Context, in *DeviceDetailsRequest, opts ...grpc.CallOption) (*DeviceDetailsResponse, error) } type sMSServiceClient struct { cc grpc.ClientConnInterface } func NewSMSServiceClient(cc grpc.ClientConnInterface) SMSServiceClient { return &sMSServiceClient{cc} } func (c *sMSServiceClient) HandleSMSSend(ctx context.Context, in *SendSMSRequest, opts ...grpc.CallOption) (*SMSDetailsResponse, error) { out := new(SMSDetailsResponse) err := c.cc.Invoke(ctx, SMSService_HandleSMSSend_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *sMSServiceClient) HandleSMSQueue(ctx context.Context, in *SendSMSRequest, opts ...grpc.CallOption) (*SMSQueueResponse, error) { out := new(SMSQueueResponse) err := c.cc.Invoke(ctx, SMSService_HandleSMSQueue_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *sMSServiceClient) HandleGetProducts(ctx context.Context, in *GetAvailableProductsRequest, opts ...grpc.CallOption) (*GetAvailableProductsResponse, error) { out := new(GetAvailableProductsResponse) err := c.cc.Invoke(ctx, SMSService_HandleGetProducts_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *sMSServiceClient) HandleChangeRatePlan(ctx context.Context, in *ChangeRatePlanRequest, opts ...grpc.CallOption) (*ChangeRatePlanResponse, error) { out := new(ChangeRatePlanResponse) err := c.cc.Invoke(ctx, SMSService_HandleChangeRatePlan_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *sMSServiceClient) HandleCustomAttributes(ctx context.Context, in *CustomAtributesRequest, opts ...grpc.CallOption) (*CustomAtributeResponse, error) { out := new(CustomAtributeResponse) err := c.cc.Invoke(ctx, SMSService_HandleCustomAttributes_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *sMSServiceClient) HandleDeviceDetails(ctx context.Context, in *DeviceDetailsRequest, opts ...grpc.CallOption) (*DeviceDetailsResponse, error) { out := new(DeviceDetailsResponse) err := c.cc.Invoke(ctx, SMSService_HandleDeviceDetails_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // SMSServiceServer is the server API for SMSService service. // All implementations must embed UnimplementedSMSServiceServer // for forward compatibility type SMSServiceServer interface { HandleSMSSend(context.Context, *SendSMSRequest) (*SMSDetailsResponse, error) HandleSMSQueue(context.Context, *SendSMSRequest) (*SMSQueueResponse, error) HandleGetProducts(context.Context, *GetAvailableProductsRequest) (*GetAvailableProductsResponse, error) HandleChangeRatePlan(context.Context, *ChangeRatePlanRequest) (*ChangeRatePlanResponse, error) HandleCustomAttributes(context.Context, *CustomAtributesRequest) (*CustomAtributeResponse, error) HandleDeviceDetails(context.Context, *DeviceDetailsRequest) (*DeviceDetailsResponse, error) mustEmbedUnimplementedSMSServiceServer() } // UnimplementedSMSServiceServer must be embedded to have forward compatible implementations. type UnimplementedSMSServiceServer struct { } func (UnimplementedSMSServiceServer) HandleSMSSend(context.Context, *SendSMSRequest) (*SMSDetailsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method HandleSMSSend not implemented") } func (UnimplementedSMSServiceServer) HandleSMSQueue(context.Context, *SendSMSRequest) (*SMSQueueResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method HandleSMSQueue not implemented") } func (UnimplementedSMSServiceServer) HandleGetProducts(context.Context, *GetAvailableProductsRequest) (*GetAvailableProductsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method HandleGetProducts not implemented") } func (UnimplementedSMSServiceServer) HandleChangeRatePlan(context.Context, *ChangeRatePlanRequest) (*ChangeRatePlanResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method HandleChangeRatePlan not implemented") } func (UnimplementedSMSServiceServer) HandleCustomAttributes(context.Context, *CustomAtributesRequest) (*CustomAtributeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method HandleCustomAttributes not implemented") } func (UnimplementedSMSServiceServer) HandleDeviceDetails(context.Context, *DeviceDetailsRequest) (*DeviceDetailsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method HandleDeviceDetails not implemented") } func (UnimplementedSMSServiceServer) mustEmbedUnimplementedSMSServiceServer() {} // UnsafeSMSServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SMSServiceServer will // result in compilation errors. type UnsafeSMSServiceServer interface { mustEmbedUnimplementedSMSServiceServer() } func RegisterSMSServiceServer(s grpc.ServiceRegistrar, srv SMSServiceServer) { s.RegisterService(&SMSService_ServiceDesc, srv) } func _SMSService_HandleSMSSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SendSMSRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SMSServiceServer).HandleSMSSend(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SMSService_HandleSMSSend_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SMSServiceServer).HandleSMSSend(ctx, req.(*SendSMSRequest)) } return interceptor(ctx, in, info, handler) } func _SMSService_HandleSMSQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SendSMSRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SMSServiceServer).HandleSMSQueue(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SMSService_HandleSMSQueue_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SMSServiceServer).HandleSMSQueue(ctx, req.(*SendSMSRequest)) } return interceptor(ctx, in, info, handler) } func _SMSService_HandleGetProducts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetAvailableProductsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SMSServiceServer).HandleGetProducts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SMSService_HandleGetProducts_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SMSServiceServer).HandleGetProducts(ctx, req.(*GetAvailableProductsRequest)) } return interceptor(ctx, in, info, handler) } func _SMSService_HandleChangeRatePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeRatePlanRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SMSServiceServer).HandleChangeRatePlan(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SMSService_HandleChangeRatePlan_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SMSServiceServer).HandleChangeRatePlan(ctx, req.(*ChangeRatePlanRequest)) } return interceptor(ctx, in, info, handler) } func _SMSService_HandleCustomAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CustomAtributesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SMSServiceServer).HandleCustomAttributes(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SMSService_HandleCustomAttributes_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SMSServiceServer).HandleCustomAttributes(ctx, req.(*CustomAtributesRequest)) } return interceptor(ctx, in, info, handler) } func _SMSService_HandleDeviceDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeviceDetailsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SMSServiceServer).HandleDeviceDetails(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SMSService_HandleDeviceDetails_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SMSServiceServer).HandleDeviceDetails(ctx, req.(*DeviceDetailsRequest)) } return interceptor(ctx, in, info, handler) } // SMSService_ServiceDesc is the grpc.ServiceDesc for SMSService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var SMSService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "SMSService", HandlerType: (*SMSServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HandleSMSSend", Handler: _SMSService_HandleSMSSend_Handler, }, { MethodName: "HandleSMSQueue", Handler: _SMSService_HandleSMSQueue_Handler, }, { MethodName: "HandleGetProducts", Handler: _SMSService_HandleGetProducts_Handler, }, { MethodName: "HandleChangeRatePlan", Handler: _SMSService_HandleChangeRatePlan_Handler, }, { MethodName: "HandleCustomAttributes", Handler: _SMSService_HandleCustomAttributes_Handler, }, { MethodName: "HandleDeviceDetails", Handler: _SMSService_HandleDeviceDetails_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sms/sms.proto", }