// Code generated by protoc-gen-go. DO NOT EDIT. // source: property_log_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 "property-log/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("property_log_service.proto", fileDescriptor_125fb2f2843ba13c) } var fileDescriptor_125fb2f2843ba13c = []byte{ // 240 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x28, 0xca, 0x2f, 0x48, 0x2d, 0x2a, 0xa9, 0x8c, 0xcf, 0xc9, 0x4f, 0x8f, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0x89, 0x96, 0x19, 0xea, 0x23, 0x2b, 0x85, 0x28, 0x31, 0x3a, 0xc0, 0xcc, 0xc5, 0x1d, 0x00, 0x15, 0xf6, 0xc9, 0x4f, 0x17, 0xf2, 0xe4, 0xe2, 0x75, 0xce, 0xcf, 0x2d, 0x48, 0xcc, 0x03, 0xf1, 0x1c, 0x53, 0x52, 0x84, 0xa4, 0xf5, 0x0a, 0x92, 0xe2, 0xcb, 0x0c, 0xf5, 0x50, 0x44, 0x83, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0xa4, 0x24, 0xb1, 0x4b, 0x16, 0xe4, 0x54, 0x2a, 0x31, 0x08, 0x39, 0x70, 0x71, 0x21, 0xc4, 0x85, 0x24, 0x30, 0x94, 0xc2, 0x0c, 0x11, 0xc3, 0x22, 0x03, 0x31, 0xc1, 0x8d, 0x8b, 0x27, 0xb8, 0xb2, 0xb8, 0x24, 0x35, 0x17, 0xea, 0x16, 0x29, 0xa8, 0x4a, 0x64, 0x41, 0x98, 0x29, 0x12, 0x58, 0xe5, 0x20, 0xe6, 0xd8, 0x72, 0x71, 0xc2, 0x85, 0x85, 0xc4, 0xd1, 0x15, 0xc2, 0x4c, 0x10, 0xc5, 0x94, 0x80, 0x68, 0x0f, 0xe2, 0x12, 0xf0, 0x4d, 0xcc, 0x4b, 0x4c, 0x4f, 0xcd, 0x4d, 0xcd, 0x2b, 0x81, 0x3a, 0x45, 0x0e, 0xaa, 0x18, 0x5d, 0x02, 0x66, 0x98, 0x0c, 0x4e, 0x79, 0x88, 0x99, 0x9e, 0x5c, 0xbc, 0x28, 0x52, 0xf0, 0x70, 0x46, 0x11, 0x45, 0x0f, 0x67, 0x34, 0x49, 0xb0, 0x51, 0x4e, 0x82, 0x51, 0xfc, 0xb0, 0x88, 0xd5, 0xcd, 0xc9, 0x4f, 0xd7, 0x2f, 0x48, 0x4a, 0x62, 0x03, 0x47, 0xae, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x3d, 0xbb, 0x07, 0x1c, 0x1d, 0x02, 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 // PropertyLogClient is the client API for PropertyLog service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type PropertyLogClient interface { // 物业公司操作日志 CompanyLogAdd(ctx context.Context, in *v1.CompanyLogAddRequest, opts ...grpc.CallOption) (*v1.CompanyLogAddReply, error) CompanyLog(ctx context.Context, in *v1.CompanyLogRequest, opts ...grpc.CallOption) (*v1.CompanyLogReply, error) // 物业操作日志 SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error) SystemLog(ctx context.Context, in *v1.SystemLogRequest, opts ...grpc.CallOption) (*v1.SystemLogReply, error) // 运营后台操作日志 ManagementLogAdd(ctx context.Context, in *v1.ManagementLogAddRequest, opts ...grpc.CallOption) (*v1.ManagementLogAddReply, error) ManagementLog(ctx context.Context, in *v1.ManagementLogRequest, opts ...grpc.CallOption) (*v1.ManagementLogReply, error) } type propertyLogClient struct { cc grpc.ClientConnInterface } func NewPropertyLogClient(cc grpc.ClientConnInterface) PropertyLogClient { return &propertyLogClient{cc} } func (c *propertyLogClient) CompanyLogAdd(ctx context.Context, in *v1.CompanyLogAddRequest, opts ...grpc.CallOption) (*v1.CompanyLogAddReply, error) { out := new(v1.CompanyLogAddReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/CompanyLogAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyLogClient) CompanyLog(ctx context.Context, in *v1.CompanyLogRequest, opts ...grpc.CallOption) (*v1.CompanyLogReply, error) { out := new(v1.CompanyLogReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/CompanyLog", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyLogClient) SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error) { out := new(v1.SystemLogAddReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/SystemLogAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyLogClient) SystemLog(ctx context.Context, in *v1.SystemLogRequest, opts ...grpc.CallOption) (*v1.SystemLogReply, error) { out := new(v1.SystemLogReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/SystemLog", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyLogClient) ManagementLogAdd(ctx context.Context, in *v1.ManagementLogAddRequest, opts ...grpc.CallOption) (*v1.ManagementLogAddReply, error) { out := new(v1.ManagementLogAddReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/ManagementLogAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *propertyLogClient) ManagementLog(ctx context.Context, in *v1.ManagementLogRequest, opts ...grpc.CallOption) (*v1.ManagementLogReply, error) { out := new(v1.ManagementLogReply) err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/ManagementLog", in, out, opts...) if err != nil { return nil, err } return out, nil } // PropertyLogServer is the server API for PropertyLog service. type PropertyLogServer interface { // 物业公司操作日志 CompanyLogAdd(context.Context, *v1.CompanyLogAddRequest) (*v1.CompanyLogAddReply, error) CompanyLog(context.Context, *v1.CompanyLogRequest) (*v1.CompanyLogReply, error) // 物业操作日志 SystemLogAdd(context.Context, *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error) SystemLog(context.Context, *v1.SystemLogRequest) (*v1.SystemLogReply, error) // 运营后台操作日志 ManagementLogAdd(context.Context, *v1.ManagementLogAddRequest) (*v1.ManagementLogAddReply, error) ManagementLog(context.Context, *v1.ManagementLogRequest) (*v1.ManagementLogReply, error) } // UnimplementedPropertyLogServer can be embedded to have forward compatible implementations. type UnimplementedPropertyLogServer struct { } func (*UnimplementedPropertyLogServer) CompanyLogAdd(ctx context.Context, req *v1.CompanyLogAddRequest) (*v1.CompanyLogAddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyLogAdd not implemented") } func (*UnimplementedPropertyLogServer) CompanyLog(ctx context.Context, req *v1.CompanyLogRequest) (*v1.CompanyLogReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyLog not implemented") } func (*UnimplementedPropertyLogServer) SystemLogAdd(ctx context.Context, req *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemLogAdd not implemented") } func (*UnimplementedPropertyLogServer) SystemLog(ctx context.Context, req *v1.SystemLogRequest) (*v1.SystemLogReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemLog not implemented") } func (*UnimplementedPropertyLogServer) ManagementLogAdd(ctx context.Context, req *v1.ManagementLogAddRequest) (*v1.ManagementLogAddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ManagementLogAdd not implemented") } func (*UnimplementedPropertyLogServer) ManagementLog(ctx context.Context, req *v1.ManagementLogRequest) (*v1.ManagementLogReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ManagementLog not implemented") } func RegisterPropertyLogServer(s *grpc.Server, srv PropertyLogServer) { s.RegisterService(&_PropertyLog_serviceDesc, srv) } func _PropertyLog_CompanyLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyLogAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyLogServer).CompanyLogAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyLog/CompanyLogAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyLogServer).CompanyLogAdd(ctx, req.(*v1.CompanyLogAddRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyLog_CompanyLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyLogRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyLogServer).CompanyLog(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyLog/CompanyLog", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyLogServer).CompanyLog(ctx, req.(*v1.CompanyLogRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyLog_SystemLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SystemLogAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyLogServer).SystemLogAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyLog/SystemLogAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyLogServer).SystemLogAdd(ctx, req.(*v1.SystemLogAddRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyLog_SystemLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SystemLogRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyLogServer).SystemLog(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyLog/SystemLog", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyLogServer).SystemLog(ctx, req.(*v1.SystemLogRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyLog_ManagementLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ManagementLogAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyLogServer).ManagementLogAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyLog/ManagementLogAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyLogServer).ManagementLogAdd(ctx, req.(*v1.ManagementLogAddRequest)) } return interceptor(ctx, in, info, handler) } func _PropertyLog_ManagementLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ManagementLogRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PropertyLogServer).ManagementLog(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.PropertyLog/ManagementLog", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PropertyLogServer).ManagementLog(ctx, req.(*v1.ManagementLogRequest)) } return interceptor(ctx, in, info, handler) } var _PropertyLog_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.PropertyLog", HandlerType: (*PropertyLogServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CompanyLogAdd", Handler: _PropertyLog_CompanyLogAdd_Handler, }, { MethodName: "CompanyLog", Handler: _PropertyLog_CompanyLog_Handler, }, { MethodName: "SystemLogAdd", Handler: _PropertyLog_SystemLogAdd_Handler, }, { MethodName: "SystemLog", Handler: _PropertyLog_SystemLog_Handler, }, { MethodName: "ManagementLogAdd", Handler: _PropertyLog_ManagementLogAdd_Handler, }, { MethodName: "ManagementLog", Handler: _PropertyLog_ManagementLog_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "property_log_service.proto", }