// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.4.0 // - protoc v5.27.1 // source: matchmaking/v1/option/optionInr.proto package v1 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.62.0 or later. const _ = grpc.SupportPackageIsVersion8 const ( OptionInr_GetBotStockOptionInrTrade_FullMethodName = "/matchmaking.v1.OptionInr/GetBotStockOptionInrTrade" OptionInr_OptionInrPlaceOrder_FullMethodName = "/matchmaking.v1.OptionInr/OptionInrPlaceOrder" OptionInr_OptionInrUpdateOrder_FullMethodName = "/matchmaking.v1.OptionInr/OptionInrUpdateOrder" OptionInr_OptionInrCancel_FullMethodName = "/matchmaking.v1.OptionInr/OptionInrCancel" OptionInr_OptionInrPosition_FullMethodName = "/matchmaking.v1.OptionInr/OptionInrPosition" OptionInr_OptionInrAllPosition_FullMethodName = "/matchmaking.v1.OptionInr/OptionInrAllPosition" ) // OptionInrClient is the client API for OptionInr 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 OptionInrClient interface { // GetBotStockOptionInrTrade 期权-印度股列表查询 GetBotStockOptionInrTrade(ctx context.Context, in *GetBotStockOptionInrTradeRequest, opts ...grpc.CallOption) (*GetBotStockOptionInrTradeReply, error) // OptionInrPlaceOrder 期权-印度股下单 OptionInrPlaceOrder(ctx context.Context, in *OptionInrOrderRequest, opts ...grpc.CallOption) (*OptionInrOrderReply, error) // OptionInrUpdateOrder 期权-印度股设置止盈止损 OptionInrUpdateOrder(ctx context.Context, in *UpdateOptionInrOrderRequest, opts ...grpc.CallOption) (*OptionInrOrderReply, error) // OptionInrCancel 期权-印度股撤单 OptionInrCancel(ctx context.Context, in *CancelOptionInrOrderRequest, opts ...grpc.CallOption) (*OptionInrOrderReply, error) // OptionInrPosition 期权-印度股平仓 OptionInrPosition(ctx context.Context, in *CancelOptionInrOrderRequest, opts ...grpc.CallOption) (*OptionInrOrderReply, error) // OptionInrAllPosition 期权-印度股一键平仓 OptionInrAllPosition(ctx context.Context, in *AllOptionInrOrderRequest, opts ...grpc.CallOption) (*AllOptionInrOrderReply, error) } type optionInrClient struct { cc grpc.ClientConnInterface } func NewOptionInrClient(cc grpc.ClientConnInterface) OptionInrClient { return &optionInrClient{cc} } func (c *optionInrClient) GetBotStockOptionInrTrade(ctx context.Context, in *GetBotStockOptionInrTradeRequest, opts ...grpc.CallOption) (*GetBotStockOptionInrTradeReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetBotStockOptionInrTradeReply) err := c.cc.Invoke(ctx, OptionInr_GetBotStockOptionInrTrade_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *optionInrClient) OptionInrPlaceOrder(ctx context.Context, in *OptionInrOrderRequest, opts ...grpc.CallOption) (*OptionInrOrderReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OptionInrOrderReply) err := c.cc.Invoke(ctx, OptionInr_OptionInrPlaceOrder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *optionInrClient) OptionInrUpdateOrder(ctx context.Context, in *UpdateOptionInrOrderRequest, opts ...grpc.CallOption) (*OptionInrOrderReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OptionInrOrderReply) err := c.cc.Invoke(ctx, OptionInr_OptionInrUpdateOrder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *optionInrClient) OptionInrCancel(ctx context.Context, in *CancelOptionInrOrderRequest, opts ...grpc.CallOption) (*OptionInrOrderReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OptionInrOrderReply) err := c.cc.Invoke(ctx, OptionInr_OptionInrCancel_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *optionInrClient) OptionInrPosition(ctx context.Context, in *CancelOptionInrOrderRequest, opts ...grpc.CallOption) (*OptionInrOrderReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OptionInrOrderReply) err := c.cc.Invoke(ctx, OptionInr_OptionInrPosition_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *optionInrClient) OptionInrAllPosition(ctx context.Context, in *AllOptionInrOrderRequest, opts ...grpc.CallOption) (*AllOptionInrOrderReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AllOptionInrOrderReply) err := c.cc.Invoke(ctx, OptionInr_OptionInrAllPosition_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // OptionInrServer is the server API for OptionInr service. // All implementations must embed UnimplementedOptionInrServer // for forward compatibility type OptionInrServer interface { // GetBotStockOptionInrTrade 期权-印度股列表查询 GetBotStockOptionInrTrade(context.Context, *GetBotStockOptionInrTradeRequest) (*GetBotStockOptionInrTradeReply, error) // OptionInrPlaceOrder 期权-印度股下单 OptionInrPlaceOrder(context.Context, *OptionInrOrderRequest) (*OptionInrOrderReply, error) // OptionInrUpdateOrder 期权-印度股设置止盈止损 OptionInrUpdateOrder(context.Context, *UpdateOptionInrOrderRequest) (*OptionInrOrderReply, error) // OptionInrCancel 期权-印度股撤单 OptionInrCancel(context.Context, *CancelOptionInrOrderRequest) (*OptionInrOrderReply, error) // OptionInrPosition 期权-印度股平仓 OptionInrPosition(context.Context, *CancelOptionInrOrderRequest) (*OptionInrOrderReply, error) // OptionInrAllPosition 期权-印度股一键平仓 OptionInrAllPosition(context.Context, *AllOptionInrOrderRequest) (*AllOptionInrOrderReply, error) mustEmbedUnimplementedOptionInrServer() } // UnimplementedOptionInrServer must be embedded to have forward compatible implementations. type UnimplementedOptionInrServer struct { } func (UnimplementedOptionInrServer) GetBotStockOptionInrTrade(context.Context, *GetBotStockOptionInrTradeRequest) (*GetBotStockOptionInrTradeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBotStockOptionInrTrade not implemented") } func (UnimplementedOptionInrServer) OptionInrPlaceOrder(context.Context, *OptionInrOrderRequest) (*OptionInrOrderReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OptionInrPlaceOrder not implemented") } func (UnimplementedOptionInrServer) OptionInrUpdateOrder(context.Context, *UpdateOptionInrOrderRequest) (*OptionInrOrderReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OptionInrUpdateOrder not implemented") } func (UnimplementedOptionInrServer) OptionInrCancel(context.Context, *CancelOptionInrOrderRequest) (*OptionInrOrderReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OptionInrCancel not implemented") } func (UnimplementedOptionInrServer) OptionInrPosition(context.Context, *CancelOptionInrOrderRequest) (*OptionInrOrderReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OptionInrPosition not implemented") } func (UnimplementedOptionInrServer) OptionInrAllPosition(context.Context, *AllOptionInrOrderRequest) (*AllOptionInrOrderReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OptionInrAllPosition not implemented") } func (UnimplementedOptionInrServer) mustEmbedUnimplementedOptionInrServer() {} // UnsafeOptionInrServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OptionInrServer will // result in compilation errors. type UnsafeOptionInrServer interface { mustEmbedUnimplementedOptionInrServer() } func RegisterOptionInrServer(s grpc.ServiceRegistrar, srv OptionInrServer) { s.RegisterService(&OptionInr_ServiceDesc, srv) } func _OptionInr_GetBotStockOptionInrTrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetBotStockOptionInrTradeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OptionInrServer).GetBotStockOptionInrTrade(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: OptionInr_GetBotStockOptionInrTrade_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OptionInrServer).GetBotStockOptionInrTrade(ctx, req.(*GetBotStockOptionInrTradeRequest)) } return interceptor(ctx, in, info, handler) } func _OptionInr_OptionInrPlaceOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(OptionInrOrderRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OptionInrServer).OptionInrPlaceOrder(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: OptionInr_OptionInrPlaceOrder_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OptionInrServer).OptionInrPlaceOrder(ctx, req.(*OptionInrOrderRequest)) } return interceptor(ctx, in, info, handler) } func _OptionInr_OptionInrUpdateOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateOptionInrOrderRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OptionInrServer).OptionInrUpdateOrder(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: OptionInr_OptionInrUpdateOrder_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OptionInrServer).OptionInrUpdateOrder(ctx, req.(*UpdateOptionInrOrderRequest)) } return interceptor(ctx, in, info, handler) } func _OptionInr_OptionInrCancel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CancelOptionInrOrderRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OptionInrServer).OptionInrCancel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: OptionInr_OptionInrCancel_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OptionInrServer).OptionInrCancel(ctx, req.(*CancelOptionInrOrderRequest)) } return interceptor(ctx, in, info, handler) } func _OptionInr_OptionInrPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CancelOptionInrOrderRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OptionInrServer).OptionInrPosition(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: OptionInr_OptionInrPosition_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OptionInrServer).OptionInrPosition(ctx, req.(*CancelOptionInrOrderRequest)) } return interceptor(ctx, in, info, handler) } func _OptionInr_OptionInrAllPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AllOptionInrOrderRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(OptionInrServer).OptionInrAllPosition(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: OptionInr_OptionInrAllPosition_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OptionInrServer).OptionInrAllPosition(ctx, req.(*AllOptionInrOrderRequest)) } return interceptor(ctx, in, info, handler) } // OptionInr_ServiceDesc is the grpc.ServiceDesc for OptionInr service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var OptionInr_ServiceDesc = grpc.ServiceDesc{ ServiceName: "matchmaking.v1.OptionInr", HandlerType: (*OptionInrServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBotStockOptionInrTrade", Handler: _OptionInr_GetBotStockOptionInrTrade_Handler, }, { MethodName: "OptionInrPlaceOrder", Handler: _OptionInr_OptionInrPlaceOrder_Handler, }, { MethodName: "OptionInrUpdateOrder", Handler: _OptionInr_OptionInrUpdateOrder_Handler, }, { MethodName: "OptionInrCancel", Handler: _OptionInr_OptionInrCancel_Handler, }, { MethodName: "OptionInrPosition", Handler: _OptionInr_OptionInrPosition_Handler, }, { MethodName: "OptionInrAllPosition", Handler: _OptionInr_OptionInrAllPosition_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "matchmaking/v1/option/optionInr.proto", }