// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v4.23.2 // source: api.proto package api 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 ( RollDataService_BdRollData_FullMethodName = "/api.RollDataService/BdRollData" RollDataService_UrRollData_FullMethodName = "/api.RollDataService/UrRollData" RollDataService_EdRollData_FullMethodName = "/api.RollDataService/EdRollData" RollDataService_UfRollData_FullMethodName = "/api.RollDataService/UfRollData" ) // RollDataServiceClient is the client API for RollDataService 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 RollDataServiceClient interface { BdRollData(ctx context.Context, in *BdRollDataReq, opts ...grpc.CallOption) (*BdRollDataRes, error) UrRollData(ctx context.Context, in *UrRollDataReq, opts ...grpc.CallOption) (*UrRollDataRes, error) EdRollData(ctx context.Context, in *EdRollDataReq, opts ...grpc.CallOption) (*EdRollDataRes, error) UfRollData(ctx context.Context, in *UfRollDataReq, opts ...grpc.CallOption) (*UfRollDataRes, error) } type rollDataServiceClient struct { cc grpc.ClientConnInterface } func NewRollDataServiceClient(cc grpc.ClientConnInterface) RollDataServiceClient { return &rollDataServiceClient{cc} } func (c *rollDataServiceClient) BdRollData(ctx context.Context, in *BdRollDataReq, opts ...grpc.CallOption) (*BdRollDataRes, error) { out := new(BdRollDataRes) err := c.cc.Invoke(ctx, RollDataService_BdRollData_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *rollDataServiceClient) UrRollData(ctx context.Context, in *UrRollDataReq, opts ...grpc.CallOption) (*UrRollDataRes, error) { out := new(UrRollDataRes) err := c.cc.Invoke(ctx, RollDataService_UrRollData_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *rollDataServiceClient) EdRollData(ctx context.Context, in *EdRollDataReq, opts ...grpc.CallOption) (*EdRollDataRes, error) { out := new(EdRollDataRes) err := c.cc.Invoke(ctx, RollDataService_EdRollData_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *rollDataServiceClient) UfRollData(ctx context.Context, in *UfRollDataReq, opts ...grpc.CallOption) (*UfRollDataRes, error) { out := new(UfRollDataRes) err := c.cc.Invoke(ctx, RollDataService_UfRollData_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // RollDataServiceServer is the server API for RollDataService service. // All implementations must embed UnimplementedRollDataServiceServer // for forward compatibility type RollDataServiceServer interface { BdRollData(context.Context, *BdRollDataReq) (*BdRollDataRes, error) UrRollData(context.Context, *UrRollDataReq) (*UrRollDataRes, error) EdRollData(context.Context, *EdRollDataReq) (*EdRollDataRes, error) UfRollData(context.Context, *UfRollDataReq) (*UfRollDataRes, error) mustEmbedUnimplementedRollDataServiceServer() } // UnimplementedRollDataServiceServer must be embedded to have forward compatible implementations. type UnimplementedRollDataServiceServer struct { } func (UnimplementedRollDataServiceServer) BdRollData(context.Context, *BdRollDataReq) (*BdRollDataRes, error) { return nil, status.Errorf(codes.Unimplemented, "method BdRollData not implemented") } func (UnimplementedRollDataServiceServer) UrRollData(context.Context, *UrRollDataReq) (*UrRollDataRes, error) { return nil, status.Errorf(codes.Unimplemented, "method UrRollData not implemented") } func (UnimplementedRollDataServiceServer) EdRollData(context.Context, *EdRollDataReq) (*EdRollDataRes, error) { return nil, status.Errorf(codes.Unimplemented, "method EdRollData not implemented") } func (UnimplementedRollDataServiceServer) UfRollData(context.Context, *UfRollDataReq) (*UfRollDataRes, error) { return nil, status.Errorf(codes.Unimplemented, "method UfRollData not implemented") } func (UnimplementedRollDataServiceServer) mustEmbedUnimplementedRollDataServiceServer() {} // UnsafeRollDataServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RollDataServiceServer will // result in compilation errors. type UnsafeRollDataServiceServer interface { mustEmbedUnimplementedRollDataServiceServer() } func RegisterRollDataServiceServer(s grpc.ServiceRegistrar, srv RollDataServiceServer) { s.RegisterService(&RollDataService_ServiceDesc, srv) } func _RollDataService_BdRollData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(BdRollDataReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(RollDataServiceServer).BdRollData(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: RollDataService_BdRollData_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RollDataServiceServer).BdRollData(ctx, req.(*BdRollDataReq)) } return interceptor(ctx, in, info, handler) } func _RollDataService_UrRollData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UrRollDataReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(RollDataServiceServer).UrRollData(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: RollDataService_UrRollData_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RollDataServiceServer).UrRollData(ctx, req.(*UrRollDataReq)) } return interceptor(ctx, in, info, handler) } func _RollDataService_EdRollData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(EdRollDataReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(RollDataServiceServer).EdRollData(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: RollDataService_EdRollData_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RollDataServiceServer).EdRollData(ctx, req.(*EdRollDataReq)) } return interceptor(ctx, in, info, handler) } func _RollDataService_UfRollData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UfRollDataReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(RollDataServiceServer).UfRollData(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: RollDataService_UfRollData_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RollDataServiceServer).UfRollData(ctx, req.(*UfRollDataReq)) } return interceptor(ctx, in, info, handler) } // RollDataService_ServiceDesc is the grpc.ServiceDesc for RollDataService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var RollDataService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.RollDataService", HandlerType: (*RollDataServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "BdRollData", Handler: _RollDataService_BdRollData_Handler, }, { MethodName: "UrRollData", Handler: _RollDataService_UrRollData_Handler, }, { MethodName: "EdRollData", Handler: _RollDataService_EdRollData_Handler, }, { MethodName: "UfRollData", Handler: _RollDataService_UfRollData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", }