| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 | // Code generated by protoc-gen-go-grpc. DO NOT EDIT.package checkimport (	context "context"	common "git.ikuban.com/server/pw-protobuf/api/common"	grpc "google.golang.org/grpc"	codes "google.golang.org/grpc/codes"	status "google.golang.org/grpc/status"	emptypb "google.golang.org/protobuf/types/known/emptypb")// 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// CheckClient is the client API for Check 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 CheckClient interface {	CheckText(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error)	CheckPicture(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error)	CheckVoice(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error)	CronRefreshBaiduToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)	CheckPictureV2(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error)	CheckScripSamplePicture(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error)	CheckTextHttp(ctx context.Context, in *CheckTextHttpRequest, opts ...grpc.CallOption) (*CheckReply, error)	CheckIdentify(ctx context.Context, in *common.CheckIdentifyRequest, opts ...grpc.CallOption) (*common.CheckIdentifyReply, error)}type checkClient struct {	cc grpc.ClientConnInterface}func NewCheckClient(cc grpc.ClientConnInterface) CheckClient {	return &checkClient{cc}}func (c *checkClient) CheckText(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error) {	out := new(CheckReply)	err := c.cc.Invoke(ctx, "/api.check.Check/CheckText", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *checkClient) CheckPicture(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error) {	out := new(CheckReply)	err := c.cc.Invoke(ctx, "/api.check.Check/CheckPicture", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *checkClient) CheckVoice(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error) {	out := new(CheckReply)	err := c.cc.Invoke(ctx, "/api.check.Check/CheckVoice", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *checkClient) CronRefreshBaiduToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {	out := new(emptypb.Empty)	err := c.cc.Invoke(ctx, "/api.check.Check/CronRefreshBaiduToken", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *checkClient) CheckPictureV2(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error) {	out := new(CheckReply)	err := c.cc.Invoke(ctx, "/api.check.Check/CheckPictureV2", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *checkClient) CheckScripSamplePicture(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckReply, error) {	out := new(CheckReply)	err := c.cc.Invoke(ctx, "/api.check.Check/CheckScripSamplePicture", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *checkClient) CheckTextHttp(ctx context.Context, in *CheckTextHttpRequest, opts ...grpc.CallOption) (*CheckReply, error) {	out := new(CheckReply)	err := c.cc.Invoke(ctx, "/api.check.Check/CheckTextHttp", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *checkClient) CheckIdentify(ctx context.Context, in *common.CheckIdentifyRequest, opts ...grpc.CallOption) (*common.CheckIdentifyReply, error) {	out := new(common.CheckIdentifyReply)	err := c.cc.Invoke(ctx, "/api.check.Check/CheckIdentify", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}// CheckServer is the server API for Check service.// All implementations must embed UnimplementedCheckServer// for forward compatibilitytype CheckServer interface {	CheckText(context.Context, *CheckRequest) (*CheckReply, error)	CheckPicture(context.Context, *CheckRequest) (*CheckReply, error)	CheckVoice(context.Context, *CheckRequest) (*CheckReply, error)	CronRefreshBaiduToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error)	CheckPictureV2(context.Context, *CheckRequest) (*CheckReply, error)	CheckScripSamplePicture(context.Context, *CheckRequest) (*CheckReply, error)	CheckTextHttp(context.Context, *CheckTextHttpRequest) (*CheckReply, error)	CheckIdentify(context.Context, *common.CheckIdentifyRequest) (*common.CheckIdentifyReply, error)	mustEmbedUnimplementedCheckServer()}// UnimplementedCheckServer must be embedded to have forward compatible implementations.type UnimplementedCheckServer struct {}func (UnimplementedCheckServer) CheckText(context.Context, *CheckRequest) (*CheckReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckText not implemented")}func (UnimplementedCheckServer) CheckPicture(context.Context, *CheckRequest) (*CheckReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckPicture not implemented")}func (UnimplementedCheckServer) CheckVoice(context.Context, *CheckRequest) (*CheckReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckVoice not implemented")}func (UnimplementedCheckServer) CronRefreshBaiduToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {	return nil, status.Errorf(codes.Unimplemented, "method CronRefreshBaiduToken not implemented")}func (UnimplementedCheckServer) CheckPictureV2(context.Context, *CheckRequest) (*CheckReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckPictureV2 not implemented")}func (UnimplementedCheckServer) CheckScripSamplePicture(context.Context, *CheckRequest) (*CheckReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckScripSamplePicture not implemented")}func (UnimplementedCheckServer) CheckTextHttp(context.Context, *CheckTextHttpRequest) (*CheckReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckTextHttp not implemented")}func (UnimplementedCheckServer) CheckIdentify(context.Context, *common.CheckIdentifyRequest) (*common.CheckIdentifyReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckIdentify not implemented")}func (UnimplementedCheckServer) mustEmbedUnimplementedCheckServer() {}// UnsafeCheckServer may be embedded to opt out of forward compatibility for this service.// Use of this interface is not recommended, as added methods to CheckServer will// result in compilation errors.type UnsafeCheckServer interface {	mustEmbedUnimplementedCheckServer()}func RegisterCheckServer(s grpc.ServiceRegistrar, srv CheckServer) {	s.RegisterService(&Check_ServiceDesc, srv)}func _Check_CheckText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(CheckRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(CheckServer).CheckText(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.check.Check/CheckText",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(CheckServer).CheckText(ctx, req.(*CheckRequest))	}	return interceptor(ctx, in, info, handler)}func _Check_CheckPicture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(CheckRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(CheckServer).CheckPicture(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.check.Check/CheckPicture",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(CheckServer).CheckPicture(ctx, req.(*CheckRequest))	}	return interceptor(ctx, in, info, handler)}func _Check_CheckVoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(CheckRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(CheckServer).CheckVoice(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.check.Check/CheckVoice",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(CheckServer).CheckVoice(ctx, req.(*CheckRequest))	}	return interceptor(ctx, in, info, handler)}func _Check_CronRefreshBaiduToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(emptypb.Empty)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(CheckServer).CronRefreshBaiduToken(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.check.Check/CronRefreshBaiduToken",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(CheckServer).CronRefreshBaiduToken(ctx, req.(*emptypb.Empty))	}	return interceptor(ctx, in, info, handler)}func _Check_CheckPictureV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(CheckRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(CheckServer).CheckPictureV2(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.check.Check/CheckPictureV2",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(CheckServer).CheckPictureV2(ctx, req.(*CheckRequest))	}	return interceptor(ctx, in, info, handler)}func _Check_CheckScripSamplePicture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(CheckRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(CheckServer).CheckScripSamplePicture(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.check.Check/CheckScripSamplePicture",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(CheckServer).CheckScripSamplePicture(ctx, req.(*CheckRequest))	}	return interceptor(ctx, in, info, handler)}func _Check_CheckTextHttp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(CheckTextHttpRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(CheckServer).CheckTextHttp(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.check.Check/CheckTextHttp",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(CheckServer).CheckTextHttp(ctx, req.(*CheckTextHttpRequest))	}	return interceptor(ctx, in, info, handler)}func _Check_CheckIdentify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(common.CheckIdentifyRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(CheckServer).CheckIdentify(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.check.Check/CheckIdentify",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(CheckServer).CheckIdentify(ctx, req.(*common.CheckIdentifyRequest))	}	return interceptor(ctx, in, info, handler)}// Check_ServiceDesc is the grpc.ServiceDesc for Check service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)var Check_ServiceDesc = grpc.ServiceDesc{	ServiceName: "api.check.Check",	HandlerType: (*CheckServer)(nil),	Methods: []grpc.MethodDesc{		{			MethodName: "CheckText",			Handler:    _Check_CheckText_Handler,		},		{			MethodName: "CheckPicture",			Handler:    _Check_CheckPicture_Handler,		},		{			MethodName: "CheckVoice",			Handler:    _Check_CheckVoice_Handler,		},		{			MethodName: "CronRefreshBaiduToken",			Handler:    _Check_CronRefreshBaiduToken_Handler,		},		{			MethodName: "CheckPictureV2",			Handler:    _Check_CheckPictureV2_Handler,		},		{			MethodName: "CheckScripSamplePicture",			Handler:    _Check_CheckScripSamplePicture_Handler,		},		{			MethodName: "CheckTextHttp",			Handler:    _Check_CheckTextHttp_Handler,		},		{			MethodName: "CheckIdentify",			Handler:    _Check_CheckIdentify_Handler,		},	},	Streams:  []grpc.StreamDesc{},	Metadata: "check.proto",}
 |