// Code generated by protoc-gen-go. DO NOT EDIT. // source: adm_task_service.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( v1 "adm-ads/pb/v1" 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" ) // 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("adm_task_service.proto", fileDescriptor_b888879dea74b804) } var fileDescriptor_b888879dea74b804 = []byte{ // 198 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0x4c, 0xc9, 0x8d, 0x2f, 0x49, 0x2c, 0xce, 0x8e, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0xf1, 0x96, 0x19, 0xea, 0x83, 0x94, 0x40, 0xa4, 0x8c, 0x3e, 0x30, 0x72, 0xb1, 0x3b, 0xa6, 0xe4, 0x86, 0x24, 0x16, 0x67, 0x0b, 0x85, 0x72, 0x09, 0xbb, 0xa7, 0x96, 0x80, 0x98, 0x4e, 0x95, 0xc1, 0xf9, 0xa5, 0x45, 0xc9, 0xa9, 0xce, 0xf9, 0x29, 0xa9, 0x42, 0x72, 0x7a, 0x65, 0x86, 0x7a, 0x58, 0x24, 0x82, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0xa4, 0x64, 0x70, 0xca, 0x17, 0xe4, 0x54, 0x2a, 0x31, 0x08, 0xf9, 0x73, 0x09, 0x86, 0x16, 0xa4, 0x24, 0x96, 0xa4, 0xfa, 0xa7, 0xa5, 0xe5, 0x64, 0xe6, 0xa5, 0x82, 0xed, 0x02, 0x6b, 0xc2, 0x10, 0x86, 0x19, 0x29, 0x85, 0x43, 0x16, 0x62, 0xa0, 0x2d, 0x17, 0xb7, 0x73, 0x46, 0x6a, 0x72, 0xb6, 0x5b, 0x7e, 0x51, 0x6e, 0x62, 0x89, 0x90, 0x18, 0x48, 0x31, 0x92, 0x00, 0xcc, 0x10, 0x11, 0x0c, 0x71, 0xb0, 0x76, 0x27, 0x9e, 0x28, 0xae, 0xc4, 0x94, 0x5c, 0xdd, 0xc4, 0x94, 0x62, 0xfd, 0x82, 0xa4, 0x24, 0x36, 0x70, 0x38, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x05, 0xa1, 0x14, 0x3c, 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 // AdmTaskClient is the client API for AdmTask service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type AdmTaskClient interface { // Sends a greeting GetTaskBySourceCode(ctx context.Context, in *v1.GetTaskBySourceCodeRequest, opts ...grpc.CallOption) (*v1.GetTaskBySourceCodeReply, error) UpdateOfflineTask(ctx context.Context, in *v1.UpdateOfflineTaskRequest, opts ...grpc.CallOption) (*v1.UpdateOfflineTaskReply, error) CheckFormat(ctx context.Context, in *v1.CheckFormatRequest, opts ...grpc.CallOption) (*v1.CheckFormatReply, error) } type admTaskClient struct { cc grpc.ClientConnInterface } func NewAdmTaskClient(cc grpc.ClientConnInterface) AdmTaskClient { return &admTaskClient{cc} } func (c *admTaskClient) GetTaskBySourceCode(ctx context.Context, in *v1.GetTaskBySourceCodeRequest, opts ...grpc.CallOption) (*v1.GetTaskBySourceCodeReply, error) { out := new(v1.GetTaskBySourceCodeReply) err := c.cc.Invoke(ctx, "/pb.service.AdmTask/GetTaskBySourceCode", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *admTaskClient) UpdateOfflineTask(ctx context.Context, in *v1.UpdateOfflineTaskRequest, opts ...grpc.CallOption) (*v1.UpdateOfflineTaskReply, error) { out := new(v1.UpdateOfflineTaskReply) err := c.cc.Invoke(ctx, "/pb.service.AdmTask/UpdateOfflineTask", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *admTaskClient) CheckFormat(ctx context.Context, in *v1.CheckFormatRequest, opts ...grpc.CallOption) (*v1.CheckFormatReply, error) { out := new(v1.CheckFormatReply) err := c.cc.Invoke(ctx, "/pb.service.AdmTask/CheckFormat", in, out, opts...) if err != nil { return nil, err } return out, nil } // AdmTaskServer is the server API for AdmTask service. type AdmTaskServer interface { // Sends a greeting GetTaskBySourceCode(context.Context, *v1.GetTaskBySourceCodeRequest) (*v1.GetTaskBySourceCodeReply, error) UpdateOfflineTask(context.Context, *v1.UpdateOfflineTaskRequest) (*v1.UpdateOfflineTaskReply, error) CheckFormat(context.Context, *v1.CheckFormatRequest) (*v1.CheckFormatReply, error) } // UnimplementedAdmTaskServer can be embedded to have forward compatible implementations. type UnimplementedAdmTaskServer struct { } func (*UnimplementedAdmTaskServer) GetTaskBySourceCode(ctx context.Context, req *v1.GetTaskBySourceCodeRequest) (*v1.GetTaskBySourceCodeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTaskBySourceCode not implemented") } func (*UnimplementedAdmTaskServer) UpdateOfflineTask(ctx context.Context, req *v1.UpdateOfflineTaskRequest) (*v1.UpdateOfflineTaskReply, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateOfflineTask not implemented") } func (*UnimplementedAdmTaskServer) CheckFormat(ctx context.Context, req *v1.CheckFormatRequest) (*v1.CheckFormatReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckFormat not implemented") } func RegisterAdmTaskServer(s *grpc.Server, srv AdmTaskServer) { s.RegisterService(&_AdmTask_serviceDesc, srv) } func _AdmTask_GetTaskBySourceCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GetTaskBySourceCodeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AdmTaskServer).GetTaskBySourceCode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.AdmTask/GetTaskBySourceCode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AdmTaskServer).GetTaskBySourceCode(ctx, req.(*v1.GetTaskBySourceCodeRequest)) } return interceptor(ctx, in, info, handler) } func _AdmTask_UpdateOfflineTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.UpdateOfflineTaskRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AdmTaskServer).UpdateOfflineTask(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.AdmTask/UpdateOfflineTask", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AdmTaskServer).UpdateOfflineTask(ctx, req.(*v1.UpdateOfflineTaskRequest)) } return interceptor(ctx, in, info, handler) } func _AdmTask_CheckFormat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CheckFormatRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AdmTaskServer).CheckFormat(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.AdmTask/CheckFormat", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AdmTaskServer).CheckFormat(ctx, req.(*v1.CheckFormatRequest)) } return interceptor(ctx, in, info, handler) } var _AdmTask_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.AdmTask", HandlerType: (*AdmTaskServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTaskBySourceCode", Handler: _AdmTask_GetTaskBySourceCode_Handler, }, { MethodName: "UpdateOfflineTask", Handler: _AdmTask_UpdateOfflineTask_Handler, }, { MethodName: "CheckFormat", Handler: _AdmTask_CheckFormat_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "adm_task_service.proto", }