// Code generated by protoc-gen-go. DO NOT EDIT. // source: garden_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/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("garden_service.proto", fileDescriptor_e527eed98167eca4) } var fileDescriptor_e527eed98167eca4 = []byte{ // 198 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4f, 0x2c, 0x4a, 0x49, 0xcd, 0x8b, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0xf1, 0x97, 0x19, 0xea, 0x43, 0x14, 0x41, 0x24, 0x8d, 0x26, 0x33, 0x71, 0xb1, 0xb9, 0x83, 0x05, 0x84, 0xdc, 0xb8, 0x78, 0x20, 0x2c, 0xcf, 0xbc, 0xcc, 0x12, 0x97, 0x24, 0x21, 0x29, 0xbd, 0x82, 0xa4, 0xf8, 0x32, 0x43, 0x3d, 0x64, 0xc1, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x29, 0x09, 0xac, 0x72, 0x05, 0x39, 0x95, 0x4a, 0x0c, 0x42, 0xfe, 0x5c, 0xfc, 0x10, 0x61, 0x8f, 0xfc, 0xd2, 0xe2, 0x54, 0xcf, 0x62, 0xcf, 0x3c, 0x21, 0x59, 0x14, 0xe5, 0x70, 0x71, 0x98, 0x69, 0xd2, 0xb8, 0xa4, 0x21, 0x06, 0x16, 0x70, 0x49, 0x21, 0xc9, 0x04, 0xa5, 0xe6, 0x95, 0x38, 0x67, 0x24, 0xe6, 0xa5, 0xa7, 0xba, 0x65, 0xa6, 0xe6, 0xa4, 0x08, 0x69, 0x60, 0x6a, 0x46, 0x53, 0x02, 0xb3, 0x46, 0x8d, 0x08, 0x95, 0x60, 0x1b, 0x9d, 0x44, 0xa2, 0x84, 0x0a, 0x8a, 0xf2, 0x0b, 0x52, 0x8b, 0x4a, 0x2a, 0x75, 0x8b, 0x2b, 0x8b, 0x4b, 0x52, 0x73, 0xf5, 0x0b, 0x92, 0x92, 0xd8, 0xc0, 0x41, 0x66, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xa1, 0x4d, 0x15, 0x67, 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 // GardenClient is the client API for Garden service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type GardenClient interface { GardenInitDb(ctx context.Context, in *v1.GardenInitDbRequest, opts ...grpc.CallOption) (*v1.GardenInitDbReply, error) // 小区是否有房屋入驻 GardenHouseIsIn(ctx context.Context, in *v1.GardenHouseIsInRequest, opts ...grpc.CallOption) (*v1.GardenHouseIsInReply, error) // 因房屋,小区或单元信息变更需更新租房信息 GardenHouseRentChangeField(ctx context.Context, in *v1.GardenHouseRentChangeFieldRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentChangeFieldReply, error) } type gardenClient struct { cc grpc.ClientConnInterface } func NewGardenClient(cc grpc.ClientConnInterface) GardenClient { return &gardenClient{cc} } func (c *gardenClient) GardenInitDb(ctx context.Context, in *v1.GardenInitDbRequest, opts ...grpc.CallOption) (*v1.GardenInitDbReply, error) { out := new(v1.GardenInitDbReply) err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenInitDb", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *gardenClient) GardenHouseIsIn(ctx context.Context, in *v1.GardenHouseIsInRequest, opts ...grpc.CallOption) (*v1.GardenHouseIsInReply, error) { out := new(v1.GardenHouseIsInReply) err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseIsIn", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *gardenClient) GardenHouseRentChangeField(ctx context.Context, in *v1.GardenHouseRentChangeFieldRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentChangeFieldReply, error) { out := new(v1.GardenHouseRentChangeFieldReply) err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseRentChangeField", in, out, opts...) if err != nil { return nil, err } return out, nil } // GardenServer is the server API for Garden service. type GardenServer interface { GardenInitDb(context.Context, *v1.GardenInitDbRequest) (*v1.GardenInitDbReply, error) // 小区是否有房屋入驻 GardenHouseIsIn(context.Context, *v1.GardenHouseIsInRequest) (*v1.GardenHouseIsInReply, error) // 因房屋,小区或单元信息变更需更新租房信息 GardenHouseRentChangeField(context.Context, *v1.GardenHouseRentChangeFieldRequest) (*v1.GardenHouseRentChangeFieldReply, error) } // UnimplementedGardenServer can be embedded to have forward compatible implementations. type UnimplementedGardenServer struct { } func (*UnimplementedGardenServer) GardenInitDb(ctx context.Context, req *v1.GardenInitDbRequest) (*v1.GardenInitDbReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GardenInitDb not implemented") } func (*UnimplementedGardenServer) GardenHouseIsIn(ctx context.Context, req *v1.GardenHouseIsInRequest) (*v1.GardenHouseIsInReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GardenHouseIsIn not implemented") } func (*UnimplementedGardenServer) GardenHouseRentChangeField(ctx context.Context, req *v1.GardenHouseRentChangeFieldRequest) (*v1.GardenHouseRentChangeFieldReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GardenHouseRentChangeField not implemented") } func RegisterGardenServer(s *grpc.Server, srv GardenServer) { s.RegisterService(&_Garden_serviceDesc, srv) } func _Garden_GardenInitDb_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GardenInitDbRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GardenServer).GardenInitDb(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Garden/GardenInitDb", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GardenServer).GardenInitDb(ctx, req.(*v1.GardenInitDbRequest)) } return interceptor(ctx, in, info, handler) } func _Garden_GardenHouseIsIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GardenHouseIsInRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GardenServer).GardenHouseIsIn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Garden/GardenHouseIsIn", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GardenServer).GardenHouseIsIn(ctx, req.(*v1.GardenHouseIsInRequest)) } return interceptor(ctx, in, info, handler) } func _Garden_GardenHouseRentChangeField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GardenHouseRentChangeFieldRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GardenServer).GardenHouseRentChangeField(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Garden/GardenHouseRentChangeField", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GardenServer).GardenHouseRentChangeField(ctx, req.(*v1.GardenHouseRentChangeFieldRequest)) } return interceptor(ctx, in, info, handler) } var _Garden_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.Garden", HandlerType: (*GardenServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GardenInitDb", Handler: _Garden_GardenInitDb_Handler, }, { MethodName: "GardenHouseIsIn", Handler: _Garden_GardenHouseIsIn_Handler, }, { MethodName: "GardenHouseRentChangeField", Handler: _Garden_GardenHouseRentChangeField_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "garden_service.proto", }