// Code generated by protoc-gen-go. DO NOT EDIT. // source: provincial_management.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( context "context" v1 "dust-monitor/pb/v1" 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("provincial_management.proto", fileDescriptor_3c97b39c1ff38154) } var fileDescriptor_3c97b39c1ff38154 = []byte{ // 305 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0x4a, 0xfb, 0x40, 0x10, 0x80, 0x7f, 0xfc, 0x0e, 0x3d, 0xec, 0xa5, 0xb8, 0x55, 0x91, 0xd6, 0xf8, 0x17, 0xc4, 0x8b, 0x29, 0xd5, 0x27, 0x50, 0x0b, 0x5e, 0x4b, 0xab, 0x22, 0x0a, 0xca, 0x24, 0x99, 0x48, 0xa4, 0xd9, 0x8d, 0xc9, 0x24, 0xd0, 0xf7, 0xf0, 0x81, 0x25, 0x59, 0xd6, 0x75, 0xdb, 0x6c, 0xf0, 0xd8, 0x7e, 0xdf, 0x7c, 0x93, 0x21, 0x84, 0x8d, 0xb2, 0x5c, 0x56, 0x89, 0x08, 0x13, 0x58, 0xbe, 0xa5, 0x20, 0xe0, 0x1d, 0x53, 0x14, 0xe4, 0x67, 0xb9, 0x24, 0xc9, 0xff, 0x67, 0xc1, 0x70, 0x50, 0x4d, 0xc6, 0xc6, 0x51, 0xe0, 0xf2, 0xab, 0xc7, 0xfa, 0x8b, 0x14, 0x72, 0x9a, 0xfd, 0x10, 0x1e, 0xb1,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 0xff, 0xff, 0x55, 0x21, 0x82, 0x20, 0x68, 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", }