// Code generated by protoc-gen-go. DO NOT EDIT. // source: system_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-task/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("system_service.proto", fileDescriptor_5d35c01297e407e4) } var fileDescriptor_5d35c01297e407e4 = []byte{ // 198 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x29, 0xae, 0x2c, 0x2e, 0x49, 0xcd, 0x8d, 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, 0x7a, 0x99, 0xb8, 0xd8, 0x82, 0xc1, 0x02, 0x42, 0xb6, 0x5c, 0x9c, 0xee, 0x89, 0x45, 0x29, 0xa9, 0x79, 0x9e, 0x29, 0xc5, 0x42, 0xe2, 0x7a, 0x05, 0x49, 0xf1, 0x65, 0x86, 0x7a, 0x70, 0x91, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x29, 0x51, 0x4c, 0x89, 0x82, 0x9c, 0x4a, 0x25, 0x06, 0xa1, 0x68, 0x2e, 0x61, 0xdf, 0xe2, 0xf4, 0x80, 0xc4, 0xe4, 0xec, 0xc4, 0xf4, 0x54, 0xff, 0xa2, 0x94, 0xd4, 0x22, 0x9f, 0xcc, 0xe2, 0x12, 0x21, 0x45, 0xa8, 0x7a, 0x2c, 0x72, 0x30, 0x23, 0xe5, 0xf1, 0x29, 0x81, 0x18, 0x9e, 0xce, 0x25, 0x8e, 0x26, 0xeb, 0x92, 0x9a, 0x5c, 0x94, 0x9a, 0x58, 0x9c, 0x2a, 0xa4, 0x8a, 0x5d, 0x37, 0x4c, 0x1e, 0x66, 0x89, 0x32, 0x21, 0x65, 0x60, 0x8b, 0x9c, 0x84, 0xa2, 0x04, 0x0a, 0x8a, 0xf2, 0x0b, 0x52, 0x8b, 0x4a, 0x2a, 0x75, 0x4b, 0x12, 0x8b, 0xb3, 0xf5, 0x0b, 0x92, 0x92, 0xd8, 0xc0, 0x41, 0x65, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xea, 0xa3, 0xb4, 0x59, 0x5f, 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 // SystemClient is the client API for System service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SystemClient interface { GardenIds(ctx context.Context, in *v1.GardenIdsRequest, opts ...grpc.CallOption) (*v1.GardenIdsReply, error) // 短信套餐相关 MsgPackageOrderList(ctx context.Context, in *v1.MsgPackageOrderListRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderListReply, error) MsgPackageOrderDecrease(ctx context.Context, in *v1.MsgPackageOrderDecreaseRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderDecreaseReply, error) } type systemClient struct { cc grpc.ClientConnInterface } func NewSystemClient(cc grpc.ClientConnInterface) SystemClient { return &systemClient{cc} } func (c *systemClient) GardenIds(ctx context.Context, in *v1.GardenIdsRequest, opts ...grpc.CallOption) (*v1.GardenIdsReply, error) { out := new(v1.GardenIdsReply) err := c.cc.Invoke(ctx, "/pb.service.System/GardenIds", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) MsgPackageOrderList(ctx context.Context, in *v1.MsgPackageOrderListRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderListReply, error) { out := new(v1.MsgPackageOrderListReply) err := c.cc.Invoke(ctx, "/pb.service.System/MsgPackageOrderList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *systemClient) MsgPackageOrderDecrease(ctx context.Context, in *v1.MsgPackageOrderDecreaseRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderDecreaseReply, error) { out := new(v1.MsgPackageOrderDecreaseReply) err := c.cc.Invoke(ctx, "/pb.service.System/MsgPackageOrderDecrease", in, out, opts...) if err != nil { return nil, err } return out, nil } // SystemServer is the server API for System service. type SystemServer interface { GardenIds(context.Context, *v1.GardenIdsRequest) (*v1.GardenIdsReply, error) // 短信套餐相关 MsgPackageOrderList(context.Context, *v1.MsgPackageOrderListRequest) (*v1.MsgPackageOrderListReply, error) MsgPackageOrderDecrease(context.Context, *v1.MsgPackageOrderDecreaseRequest) (*v1.MsgPackageOrderDecreaseReply, error) } // UnimplementedSystemServer can be embedded to have forward compatible implementations. type UnimplementedSystemServer struct { } func (*UnimplementedSystemServer) GardenIds(ctx context.Context, req *v1.GardenIdsRequest) (*v1.GardenIdsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GardenIds not implemented") } func (*UnimplementedSystemServer) MsgPackageOrderList(ctx context.Context, req *v1.MsgPackageOrderListRequest) (*v1.MsgPackageOrderListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method MsgPackageOrderList not implemented") } func (*UnimplementedSystemServer) MsgPackageOrderDecrease(ctx context.Context, req *v1.MsgPackageOrderDecreaseRequest) (*v1.MsgPackageOrderDecreaseReply, error) { return nil, status.Errorf(codes.Unimplemented, "method MsgPackageOrderDecrease not implemented") } func RegisterSystemServer(s *grpc.Server, srv SystemServer) { s.RegisterService(&_System_serviceDesc, srv) } func _System_GardenIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GardenIdsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).GardenIds(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/GardenIds", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).GardenIds(ctx, req.(*v1.GardenIdsRequest)) } return interceptor(ctx, in, info, handler) } func _System_MsgPackageOrderList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.MsgPackageOrderListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).MsgPackageOrderList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/MsgPackageOrderList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).MsgPackageOrderList(ctx, req.(*v1.MsgPackageOrderListRequest)) } return interceptor(ctx, in, info, handler) } func _System_MsgPackageOrderDecrease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.MsgPackageOrderDecreaseRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SystemServer).MsgPackageOrderDecrease(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.System/MsgPackageOrderDecrease", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SystemServer).MsgPackageOrderDecrease(ctx, req.(*v1.MsgPackageOrderDecreaseRequest)) } return interceptor(ctx, in, info, handler) } var _System_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.System", HandlerType: (*SystemServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GardenIds", Handler: _System_GardenIds_Handler, }, { MethodName: "MsgPackageOrderList", Handler: _System_MsgPackageOrderList_Handler, }, { MethodName: "MsgPackageOrderDecrease", Handler: _System_MsgPackageOrderDecrease_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "system_service.proto", }