// 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-callback-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("garden_service.proto", fileDescriptor_e527eed98167eca4) } var fileDescriptor_e527eed98167eca4 = []byte{ // 151 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, 0x27, 0x67, 0x24, 0x16, 0xa5, 0x43, 0x25, 0x8d, 0xc2, 0xb8, 0xd8, 0xdc, 0xc1, 0x9a, 0x84, 0x7c, 0xb8, 0xf8, 0x9c, 0xc1, 0x32, 0xfe, 0x45, 0x29, 0xa9, 0x45, 0x01, 0x89, 0x95, 0x42, 0x32, 0x7a, 0x05, 0x49, 0xf1, 0x65, 0x86, 0x7a, 0xa8, 0xc2, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x52, 0x52, 0x38, 0x64, 0x0b, 0x72, 0x2a, 0x95, 0x18, 0x9c, 0xe4, 0xa2, 0x64, 0x0a, 0x8a, 0xf2, 0x0b, 0x52, 0x8b, 0x4a, 0x2a, 0x75, 0x93, 0x13, 0x73, 0x72, 0x92, 0x12, 0x93, 0xb3, 0x75, 0xd3, 0x13, 0x4b, 0x52, 0xcb, 0x13, 0x2b, 0xf5, 0x0b, 0x92, 0x92, 0xd8, 0xc0, 0xd6, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xbc, 0xee, 0x1f, 0xf2, 0xb3, 0x00, 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 { // 确认订单已支付 ChargeOrderPay(ctx context.Context, in *v1.ChargeOrderPayRequest, opts ...grpc.CallOption) (*v1.ChargeOrderPayReply, error) } type gardenClient struct { cc grpc.ClientConnInterface } func NewGardenClient(cc grpc.ClientConnInterface) GardenClient { return &gardenClient{cc} } func (c *gardenClient) ChargeOrderPay(ctx context.Context, in *v1.ChargeOrderPayRequest, opts ...grpc.CallOption) (*v1.ChargeOrderPayReply, error) { out := new(v1.ChargeOrderPayReply) err := c.cc.Invoke(ctx, "/pb.service.Garden/ChargeOrderPay", in, out, opts...) if err != nil { return nil, err } return out, nil } // GardenServer is the server API for Garden service. type GardenServer interface { // 确认订单已支付 ChargeOrderPay(context.Context, *v1.ChargeOrderPayRequest) (*v1.ChargeOrderPayReply, error) } // UnimplementedGardenServer can be embedded to have forward compatible implementations. type UnimplementedGardenServer struct { } func (*UnimplementedGardenServer) ChargeOrderPay(ctx context.Context, req *v1.ChargeOrderPayRequest) (*v1.ChargeOrderPayReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ChargeOrderPay not implemented") } func RegisterGardenServer(s *grpc.Server, srv GardenServer) { s.RegisterService(&_Garden_serviceDesc, srv) } func _Garden_ChargeOrderPay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ChargeOrderPayRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GardenServer).ChargeOrderPay(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Garden/ChargeOrderPay", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GardenServer).ChargeOrderPay(ctx, req.(*v1.ChargeOrderPayRequest)) } return interceptor(ctx, in, info, handler) } var _Garden_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.Garden", HandlerType: (*GardenServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ChargeOrderPay", Handler: _Garden_ChargeOrderPay_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "garden_service.proto", }