// Code generated by protoc-gen-go. DO NOT EDIT. // source: provincial_management.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-provincial/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("provincial_management.proto", fileDescriptor_3c97b39c1ff38154) } var fileDescriptor_3c97b39c1ff38154 = []byte{ // 301 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcd, 0x4a, 0xc3, 0x40, 0x10, 0x80, 0xc5, 0x43, 0x0f, 0x7b, 0x11, 0x26, 0x56, 0xa4, 0x35, 0xfe, 0x82, 0x78, 0x31, 0xa5, 0xfa, 0x04, 0x6a, 0xc1, 0x6b, 0x69, 0x55, 0x44, 0x41, 0x99, 0x24, 0x13, 0x89, 0x34, 0x3f, 0x26, 0xd3, 0x40, 0xdf, 0xc3, 0x07, 0x96, 0x64, 0x59, 0xd7, 0x6d, 0xb3, 0xc1, 0x63, 0xf2, 0x7d, 0xfb, 0x4d, 0x96, 0x30, 0x62, 0x98, 0x17, 0x59, 0x15, 0xa7, 0x41, 0x8c, 0x8b, 0xf7, 0x04, 0x53, 0xfc, 0xa0, 0x84, 0x52, 0xf6, 0xf2, 0x22, 0xe3, 0x0c, 0xb6, 0x73, 0x7f, 0xe0, 0x54, 0xe3, 0x91, 0x76, 0x24, 0xb8, 0xfa, 0xee, 0x89, 0x9d, 0x79, 0x82, 0x05, 0x4f, 0x7f, 0x09, 0x84, 0x62, 0x5f, 0x3f, 0xdd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b, 0x6c, 0x03, 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 // SmartProvincialClient is the client API for SmartProvincial service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SmartProvincialClient interface { // 省厅接口 ProvincialGetProjectCode(ctx context.Context, in *v1.ProvincialGetProjectCodeRequest, opts ...grpc.CallOption) (*v1.ProvincialGetProjectCodeReply, error) ProvincialPostProject(ctx context.Context, in *v1.ProvincialPostProjectRequest, opts ...grpc.CallOption) (*v1.ProvincialPostProjectReply, error) ProvincialPostDustDevice(ctx context.Context, in *v1.ProvincialPostDustDeviceRequest, opts ...grpc.CallOption) (*v1.ProvincialPostDustDeviceReply, error) ProvincialPostDustData(ctx context.Context, in *v1.ProvincialPostDustDataRequest, opts ...grpc.CallOption) (*v1.ProvincialPostDustDataReply, error) ProvincialVerifyData(ctx context.Context, in *v1.ProvincialVerifyDataRequest, opts ...grpc.CallOption) (*v1.ProvincialVerifyDataReply, error) ProvincialPostTeam(ctx context.Context, in *v1.ProvincialPostTeamRequest, opts ...grpc.CallOption) (*v1.ProvincialPostTeamReply, error) ProvincialPostStaff(ctx context.Context, in *v1.ProvincialPostStaffRequest, opts ...grpc.CallOption) (*v1.ProvincialPostStaffReply, error) ProvincialPostStaffAttendance(ctx context.Context, in *v1.ProvincialPostStaffAttendanceRequest, opts ...grpc.CallOption) (*v1.ProvincialPostStaffAttendanceReply, error) } type smartProvincialClient struct { cc grpc.ClientConnInterface } func NewSmartProvincialClient(cc grpc.ClientConnInterface) SmartProvincialClient { return &smartProvincialClient{cc} } func (c *smartProvincialClient) ProvincialGetProjectCode(ctx context.Context, in *v1.ProvincialGetProjectCodeRequest, opts ...grpc.CallOption) (*v1.ProvincialGetProjectCodeReply, error) { out := new(v1.ProvincialGetProjectCodeReply) err := c.cc.Invoke(ctx, "/pb.SmartProvincial/ProvincialGetProjectCode", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartProvincialClient) ProvincialPostProject(ctx context.Context, in *v1.ProvincialPostProjectRequest, opts ...grpc.CallOption) (*v1.ProvincialPostProjectReply, error) { out := new(v1.ProvincialPostProjectReply) err := c.cc.Invoke(ctx, "/pb.SmartProvincial/ProvincialPostProject", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartProvincialClient) ProvincialPostDustDevice(ctx context.Context, in *v1.ProvincialPostDustDeviceRequest, opts ...grpc.CallOption) (*v1.ProvincialPostDustDeviceReply, error) { out := new(v1.ProvincialPostDustDeviceReply) err := c.cc.Invoke(ctx, "/pb.SmartProvincial/ProvincialPostDustDevice", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartProvincialClient) ProvincialPostDustData(ctx context.Context, in *v1.ProvincialPostDustDataRequest, opts ...grpc.CallOption) (*v1.ProvincialPostDustDataReply, error) { out := new(v1.ProvincialPostDustDataReply) err := c.cc.Invoke(ctx, "/pb.SmartProvincial/ProvincialPostDustData", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartProvincialClient) ProvincialVerifyData(ctx context.Context, in *v1.ProvincialVerifyDataRequest, opts ...grpc.CallOption) (*v1.ProvincialVerifyDataReply, error) { out := new(v1.ProvincialVerifyDataReply) err := c.cc.Invoke(ctx, "/pb.SmartProvincial/ProvincialVerifyData", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartProvincialClient) ProvincialPostTeam(ctx context.Context, in *v1.ProvincialPostTeamRequest, opts ...grpc.CallOption) (*v1.ProvincialPostTeamReply, error) { out := new(v1.ProvincialPostTeamReply) err := c.cc.Invoke(ctx, "/pb.SmartProvincial/ProvincialPostTeam", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartProvincialClient) ProvincialPostStaff(ctx context.Context, in *v1.ProvincialPostStaffRequest, opts ...grpc.CallOption) (*v1.ProvincialPostStaffReply, error) { out := new(v1.ProvincialPostStaffReply) err := c.cc.Invoke(ctx, "/pb.SmartProvincial/ProvincialPostStaff", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartProvincialClient) ProvincialPostStaffAttendance(ctx context.Context, in *v1.ProvincialPostStaffAttendanceRequest, opts ...grpc.CallOption) (*v1.ProvincialPostStaffAttendanceReply, error) { out := new(v1.ProvincialPostStaffAttendanceReply) err := c.cc.Invoke(ctx, "/pb.SmartProvincial/ProvincialPostStaffAttendance", in, out, opts...) if err != nil { return nil, err } return out, nil } // SmartProvincialServer is the server API for SmartProvincial service. type SmartProvincialServer interface { // 省厅接口 ProvincialGetProjectCode(context.Context, *v1.ProvincialGetProjectCodeRequest) (*v1.ProvincialGetProjectCodeReply, error) ProvincialPostProject(context.Context, *v1.ProvincialPostProjectRequest) (*v1.ProvincialPostProjectReply, error) ProvincialPostDustDevice(context.Context, *v1.ProvincialPostDustDeviceRequest) (*v1.ProvincialPostDustDeviceReply, error) ProvincialPostDustData(context.Context, *v1.ProvincialPostDustDataRequest) (*v1.ProvincialPostDustDataReply, error) ProvincialVerifyData(context.Context, *v1.ProvincialVerifyDataRequest) (*v1.ProvincialVerifyDataReply, error) ProvincialPostTeam(context.Context, *v1.ProvincialPostTeamRequest) (*v1.ProvincialPostTeamReply, error) ProvincialPostStaff(context.Context, *v1.ProvincialPostStaffRequest) (*v1.ProvincialPostStaffReply, error) ProvincialPostStaffAttendance(context.Context, *v1.ProvincialPostStaffAttendanceRequest) (*v1.ProvincialPostStaffAttendanceReply, error) } // UnimplementedSmartProvincialServer can be embedded to have forward compatible implementations. type UnimplementedSmartProvincialServer struct { } func (*UnimplementedSmartProvincialServer) ProvincialGetProjectCode(ctx context.Context, req *v1.ProvincialGetProjectCodeRequest) (*v1.ProvincialGetProjectCodeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ProvincialGetProjectCode not implemented") } func (*UnimplementedSmartProvincialServer) ProvincialPostProject(ctx context.Context, req *v1.ProvincialPostProjectRequest) (*v1.ProvincialPostProjectReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ProvincialPostProject not implemented") } func (*UnimplementedSmartProvincialServer) ProvincialPostDustDevice(ctx context.Context, req *v1.ProvincialPostDustDeviceRequest) (*v1.ProvincialPostDustDeviceReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ProvincialPostDustDevice not implemented") } func (*UnimplementedSmartProvincialServer) ProvincialPostDustData(ctx context.Context, req *v1.ProvincialPostDustDataRequest) (*v1.ProvincialPostDustDataReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ProvincialPostDustData not implemented") } func (*UnimplementedSmartProvincialServer) ProvincialVerifyData(ctx context.Context, req *v1.ProvincialVerifyDataRequest) (*v1.ProvincialVerifyDataReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ProvincialVerifyData not implemented") } func (*UnimplementedSmartProvincialServer) ProvincialPostTeam(ctx context.Context, req *v1.ProvincialPostTeamRequest) (*v1.ProvincialPostTeamReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ProvincialPostTeam not implemented") } func (*UnimplementedSmartProvincialServer) ProvincialPostStaff(ctx context.Context, req *v1.ProvincialPostStaffRequest) (*v1.ProvincialPostStaffReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ProvincialPostStaff not implemented") } func (*UnimplementedSmartProvincialServer) ProvincialPostStaffAttendance(ctx context.Context, req *v1.ProvincialPostStaffAttendanceRequest) (*v1.ProvincialPostStaffAttendanceReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ProvincialPostStaffAttendance not implemented") } func RegisterSmartProvincialServer(s *grpc.Server, srv SmartProvincialServer) { s.RegisterService(&_SmartProvincial_serviceDesc, srv) } func _SmartProvincial_ProvincialGetProjectCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ProvincialGetProjectCodeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartProvincialServer).ProvincialGetProjectCode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartProvincial/ProvincialGetProjectCode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartProvincialServer).ProvincialGetProjectCode(ctx, req.(*v1.ProvincialGetProjectCodeRequest)) } return interceptor(ctx, in, info, handler) } func _SmartProvincial_ProvincialPostProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ProvincialPostProjectRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartProvincialServer).ProvincialPostProject(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartProvincial/ProvincialPostProject", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartProvincialServer).ProvincialPostProject(ctx, req.(*v1.ProvincialPostProjectRequest)) } return interceptor(ctx, in, info, handler) } func _SmartProvincial_ProvincialPostDustDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ProvincialPostDustDeviceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartProvincialServer).ProvincialPostDustDevice(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartProvincial/ProvincialPostDustDevice", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartProvincialServer).ProvincialPostDustDevice(ctx, req.(*v1.ProvincialPostDustDeviceRequest)) } return interceptor(ctx, in, info, handler) } func _SmartProvincial_ProvincialPostDustData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ProvincialPostDustDataRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartProvincialServer).ProvincialPostDustData(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartProvincial/ProvincialPostDustData", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartProvincialServer).ProvincialPostDustData(ctx, req.(*v1.ProvincialPostDustDataRequest)) } return interceptor(ctx, in, info, handler) } func _SmartProvincial_ProvincialVerifyData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ProvincialVerifyDataRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartProvincialServer).ProvincialVerifyData(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartProvincial/ProvincialVerifyData", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartProvincialServer).ProvincialVerifyData(ctx, req.(*v1.ProvincialVerifyDataRequest)) } return interceptor(ctx, in, info, handler) } func _SmartProvincial_ProvincialPostTeam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ProvincialPostTeamRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartProvincialServer).ProvincialPostTeam(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartProvincial/ProvincialPostTeam", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartProvincialServer).ProvincialPostTeam(ctx, req.(*v1.ProvincialPostTeamRequest)) } return interceptor(ctx, in, info, handler) } func _SmartProvincial_ProvincialPostStaff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ProvincialPostStaffRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartProvincialServer).ProvincialPostStaff(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartProvincial/ProvincialPostStaff", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartProvincialServer).ProvincialPostStaff(ctx, req.(*v1.ProvincialPostStaffRequest)) } return interceptor(ctx, in, info, handler) } func _SmartProvincial_ProvincialPostStaffAttendance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ProvincialPostStaffAttendanceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartProvincialServer).ProvincialPostStaffAttendance(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartProvincial/ProvincialPostStaffAttendance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartProvincialServer).ProvincialPostStaffAttendance(ctx, req.(*v1.ProvincialPostStaffAttendanceRequest)) } return interceptor(ctx, in, info, handler) } var _SmartProvincial_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.SmartProvincial", HandlerType: (*SmartProvincialServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ProvincialGetProjectCode", Handler: _SmartProvincial_ProvincialGetProjectCode_Handler, }, { MethodName: "ProvincialPostProject", Handler: _SmartProvincial_ProvincialPostProject_Handler, }, { MethodName: "ProvincialPostDustDevice", Handler: _SmartProvincial_ProvincialPostDustDevice_Handler, }, { MethodName: "ProvincialPostDustData", Handler: _SmartProvincial_ProvincialPostDustData_Handler, }, { MethodName: "ProvincialVerifyData", Handler: _SmartProvincial_ProvincialVerifyData_Handler, }, { MethodName: "ProvincialPostTeam", Handler: _SmartProvincial_ProvincialPostTeam_Handler, }, { MethodName: "ProvincialPostStaff", Handler: _SmartProvincial_ProvincialPostStaff_Handler, }, { MethodName: "ProvincialPostStaffAttendance", Handler: _SmartProvincial_ProvincialPostStaffAttendance_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "provincial_management.proto", }