// 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-system-gateway/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{ // 204 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, 0x5a, 0xc8, 0xc4, 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, 0x00, 0x6b, 0x77, 0x92, 0x89, 0x82, 0x07, 0xb2, 0x6e, 0x31, 0x58, 0x52, 0x37, 0x3d, 0xb1, 0x24, 0xb5, 0x3c, 0xb1, 0x52, 0xbf, 0x20, 0x29, 0x89, 0x0d, 0x1c, 0x90, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x29, 0x43, 0x18, 0x82, 0x89, 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 // 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) } 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 } // 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) } // 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 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) } 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, }, }, Streams: []grpc.StreamDesc{}, Metadata: "property_log_service.proto", }