// Code generated by protoc-gen-go. DO NOT EDIT. // source: thirdparty_service.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" v1 "smart-supplier-management/pb/v1" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("thirdparty_service.proto", fileDescriptor_22d5d2ee5c1185d0) } var fileDescriptor_22d5d2ee5c1185d0 = []byte{ // 230 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x28, 0xc9, 0xc8, 0x2c, 0x4a, 0x29, 0x48, 0x2c, 0x2a, 0xa9, 0x8c, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x92, 0x12, 0x2e, 0x33, 0xd4, 0x47, 0x28, 0x80, 0x48, 0x18, 0x4d, 0x64, 0xe2, 0x12, 0x0e, 0xce, 0x4d, 0x2c, 0x2a, 0x09, 0xce, 0x2c, 0x49, 0x0d, 0x81, 0xcb, 0x0a, 0x99, 0x70, 0x71, 0xb8, 0xa7, 0x96, 0x84, 0x25, 0xe7, 0xa7, 0xa4, 0x0a, 0x09, 0xeb, 0x95, 0x19, 0xea, 0xc1, 0x78, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x52, 0x82, 0xa8, 0x82, 0x05, 0x39, 0x95, 0x4a, 0x0c, 0x42, 0x56, 0x5c, 0x5c, 0xce, 0x19, 0xa9, 0xc9, 0xd9, 0x10, 0x7d, 0xa2, 0x20, 0x25, 0x08, 0x3e, 0x4c, 0xa7, 0x30, 0xba, 0x30, 0x44, 0xaf, 0x39, 0x17, 0x67, 0x70, 0x6a, 0x5e, 0x8a, 0x63, 0x4e, 0x62, 0x51, 0xae, 0x90, 0x08, 0x48, 0x0d, 0x9c, 0x0b, 0xd3, 0x29, 0x84, 0x26, 0x0a, 0xd1, 0xe8, 0xcf, 0x25, 0x08, 0x12, 0x0b, 0xc9, 0x28, 0xca, 0x2f, 0x4d, 0xcf, 0x08, 0x4b, 0x2d, 0xca, 0x4c, 0xab, 0x14, 0x92, 0x81, 0x29, 0x45, 0x11, 0x86, 0x19, 0x24, 0x85, 0x43, 0x16, 0x6c, 0xa0, 0x93, 0x5c, 0x94, 0x4c, 0x31, 0x28, 0x48, 0x74, 0x8b, 0x4b, 0x0b, 0x0a, 0x72, 0x32, 0x53, 0x8b, 0x74, 0x73, 0x13, 0xf3, 0x12, 0xd3, 0x53, 0x73, 0x53, 0xf3, 0x4a, 0xf4, 0x0b, 0x92, 0x92, 0xd8, 0xc0, 0x41, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x68, 0xfc, 0x39, 0xb3, 0x6f, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // SmartSiteThirdpartyClient is the client API for SmartSiteThirdparty service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SmartSiteThirdpartyClient interface { GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) // 手机号验证码验证 CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) // 发送告警 SendAlarm(ctx context.Context, in *v1.SendAlarmRequest, opts ...grpc.CallOption) (*v1.SendAlarmReply, error) // 发送认证通过 SendThroughVerify(ctx context.Context, in *v1.SendThroughVerifyRequest, opts ...grpc.CallOption) (*v1.SendThroughVerifyReply, error) } type smartSiteThirdpartyClient struct { cc grpc.ClientConnInterface } func NewSmartSiteThirdpartyClient(cc grpc.ClientConnInterface) SmartSiteThirdpartyClient { return &smartSiteThirdpartyClient{cc} } func (c *smartSiteThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) { out := new(v1.GetVcodeReply) err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/GetVcode", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartSiteThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) { out := new(v1.CheckVcodeReply) err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/CheckVcode", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartSiteThirdpartyClient) SendAlarm(ctx context.Context, in *v1.SendAlarmRequest, opts ...grpc.CallOption) (*v1.SendAlarmReply, error) { out := new(v1.SendAlarmReply) err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/SendAlarm", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartSiteThirdpartyClient) SendThroughVerify(ctx context.Context, in *v1.SendThroughVerifyRequest, opts ...grpc.CallOption) (*v1.SendThroughVerifyReply, error) { out := new(v1.SendThroughVerifyReply) err := c.cc.Invoke(ctx, "/pb.SmartSiteThirdparty/SendThroughVerify", in, out, opts...) if err != nil { return nil, err } return out, nil } // SmartSiteThirdpartyServer is the server API for SmartSiteThirdparty service. type SmartSiteThirdpartyServer interface { GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) // 手机号验证码验证 CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) // 发送告警 SendAlarm(context.Context, *v1.SendAlarmRequest) (*v1.SendAlarmReply, error) // 发送认证通过 SendThroughVerify(context.Context, *v1.SendThroughVerifyRequest) (*v1.SendThroughVerifyReply, error) } // UnimplementedSmartSiteThirdpartyServer can be embedded to have forward compatible implementations. type UnimplementedSmartSiteThirdpartyServer struct { } func (*UnimplementedSmartSiteThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented") } func (*UnimplementedSmartSiteThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented") } func (*UnimplementedSmartSiteThirdpartyServer) SendAlarm(ctx context.Context, req *v1.SendAlarmRequest) (*v1.SendAlarmReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SendAlarm not implemented") } func (*UnimplementedSmartSiteThirdpartyServer) SendThroughVerify(ctx context.Context, req *v1.SendThroughVerifyRequest) (*v1.SendThroughVerifyReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SendThroughVerify not implemented") } func RegisterSmartSiteThirdpartyServer(s *grpc.Server, srv SmartSiteThirdpartyServer) { s.RegisterService(&_SmartSiteThirdparty_serviceDesc, srv) } func _SmartSiteThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GetVcodeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartSiteThirdpartyServer).GetVcode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartSiteThirdparty/GetVcode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartSiteThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest)) } return interceptor(ctx, in, info, handler) } func _SmartSiteThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CheckVcodeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartSiteThirdpartyServer).CheckVcode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartSiteThirdparty/CheckVcode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartSiteThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest)) } return interceptor(ctx, in, info, handler) } func _SmartSiteThirdparty_SendAlarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SendAlarmRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartSiteThirdpartyServer).SendAlarm(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartSiteThirdparty/SendAlarm", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartSiteThirdpartyServer).SendAlarm(ctx, req.(*v1.SendAlarmRequest)) } return interceptor(ctx, in, info, handler) } func _SmartSiteThirdparty_SendThroughVerify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SendThroughVerifyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartSiteThirdpartyServer).SendThroughVerify(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartSiteThirdparty/SendThroughVerify", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartSiteThirdpartyServer).SendThroughVerify(ctx, req.(*v1.SendThroughVerifyRequest)) } return interceptor(ctx, in, info, handler) } var _SmartSiteThirdparty_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.SmartSiteThirdparty", HandlerType: (*SmartSiteThirdpartyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVcode", Handler: _SmartSiteThirdparty_GetVcode_Handler, }, { MethodName: "CheckVcode", Handler: _SmartSiteThirdparty_CheckVcode_Handler, }, { MethodName: "SendAlarm", Handler: _SmartSiteThirdparty_SendAlarm_Handler, }, { MethodName: "SendThroughVerify", Handler: _SmartSiteThirdparty_SendThroughVerify_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "thirdparty_service.proto", }