123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: company_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-garden/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("company_service.proto", fileDescriptor_cfe012e92534f5dd)
- }
- var fileDescriptor_cfe012e92534f5dd = []byte{
- // 194 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0xce, 0xcf, 0x2d,
- 0x48, 0xcc, 0xab, 0x8c, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f,
- 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0x09, 0x94, 0x19, 0xea, 0x43, 0x55, 0x41,
- 0x64, 0x8d, 0xe6, 0x32, 0x71, 0xb1, 0x3b, 0x43, 0x44, 0x84, 0x9c, 0xb9, 0xb8, 0xa1, 0x4c, 0xcf,
- 0xbc, 0xb4, 0x7c, 0x21, 0x49, 0xbd, 0x82, 0xa4, 0xf8, 0x32, 0x43, 0x3d, 0x24, 0xb1, 0xa0, 0xd4,
- 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x29, 0x71, 0x6c, 0x52, 0x05, 0x39, 0x95, 0x4a, 0x0c, 0x42, 0x29,
- 0x5c, 0x62, 0x50, 0x51, 0xff, 0xa4, 0xac, 0xe0, 0x92, 0xc4, 0x92, 0xcc, 0xe2, 0x92, 0xcc, 0xe4,
- 0xe0, 0xd4, 0x12, 0x21, 0x15, 0x54, 0x4d, 0x68, 0xd2, 0x30, 0xa3, 0x95, 0x08, 0xa8, 0x82, 0xd8,
- 0x92, 0xce, 0x25, 0x0e, 0x55, 0xe0, 0x92, 0x9a, 0x98, 0x83, 0x62, 0x8d, 0x2a, 0xaa, 0x01, 0xe8,
- 0xf2, 0x30, 0x7b, 0x94, 0x09, 0x29, 0x03, 0x5b, 0xe4, 0x24, 0x12, 0x25, 0x54, 0x50, 0x94, 0x5f,
- 0x90, 0x5a, 0x54, 0x52, 0xa9, 0x9b, 0x9e, 0x58, 0x94, 0x92, 0x9a, 0xa7, 0x5f, 0x90, 0x94, 0xc4,
- 0x06, 0x0e, 0x3c, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6e, 0xa0, 0x44, 0x6b, 0x73, 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
- // CompanyClient is the client API for Company service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type CompanyClient interface {
- //
- CompanyInfo(ctx context.Context, in *v1.CompanyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyInfoReply, error)
- CompanyObjStatisticSet(ctx context.Context, in *v1.CompanyObjStatisticSetRequest, opts ...grpc.CallOption) (*v1.CompanyObjStatisticSetReply, error)
- CompanyDealStatisticSet(ctx context.Context, in *v1.CompanyDealStatisticSetRequest, opts ...grpc.CallOption) (*v1.CompanyDealStatisticSetReply, error)
- }
- type companyClient struct {
- cc grpc.ClientConnInterface
- }
- func NewCompanyClient(cc grpc.ClientConnInterface) CompanyClient {
- return &companyClient{cc}
- }
- func (c *companyClient) CompanyInfo(ctx context.Context, in *v1.CompanyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyInfoReply, error) {
- out := new(v1.CompanyInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyObjStatisticSet(ctx context.Context, in *v1.CompanyObjStatisticSetRequest, opts ...grpc.CallOption) (*v1.CompanyObjStatisticSetReply, error) {
- out := new(v1.CompanyObjStatisticSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyObjStatisticSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyDealStatisticSet(ctx context.Context, in *v1.CompanyDealStatisticSetRequest, opts ...grpc.CallOption) (*v1.CompanyDealStatisticSetReply, error) {
- out := new(v1.CompanyDealStatisticSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyDealStatisticSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // CompanyServer is the server API for Company service.
- type CompanyServer interface {
- //
- CompanyInfo(context.Context, *v1.CompanyInfoRequest) (*v1.CompanyInfoReply, error)
- CompanyObjStatisticSet(context.Context, *v1.CompanyObjStatisticSetRequest) (*v1.CompanyObjStatisticSetReply, error)
- CompanyDealStatisticSet(context.Context, *v1.CompanyDealStatisticSetRequest) (*v1.CompanyDealStatisticSetReply, error)
- }
- // UnimplementedCompanyServer can be embedded to have forward compatible implementations.
- type UnimplementedCompanyServer struct {
- }
- func (*UnimplementedCompanyServer) CompanyInfo(ctx context.Context, req *v1.CompanyInfoRequest) (*v1.CompanyInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyInfo not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyObjStatisticSet(ctx context.Context, req *v1.CompanyObjStatisticSetRequest) (*v1.CompanyObjStatisticSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyObjStatisticSet not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyDealStatisticSet(ctx context.Context, req *v1.CompanyDealStatisticSetRequest) (*v1.CompanyDealStatisticSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyDealStatisticSet not implemented")
- }
- func RegisterCompanyServer(s *grpc.Server, srv CompanyServer) {
- s.RegisterService(&_Company_serviceDesc, srv)
- }
- func _Company_CompanyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyInfo(ctx, req.(*v1.CompanyInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyObjStatisticSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyObjStatisticSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyObjStatisticSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyObjStatisticSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyObjStatisticSet(ctx, req.(*v1.CompanyObjStatisticSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyDealStatisticSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyDealStatisticSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyDealStatisticSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyDealStatisticSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyDealStatisticSet(ctx, req.(*v1.CompanyDealStatisticSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Company_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Company",
- HandlerType: (*CompanyServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "CompanyInfo",
- Handler: _Company_CompanyInfo_Handler,
- },
- {
- MethodName: "CompanyObjStatisticSet",
- Handler: _Company_CompanyObjStatisticSet_Handler,
- },
- {
- MethodName: "CompanyDealStatisticSet",
- Handler: _Company_CompanyDealStatisticSet_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "company_service.proto",
- }
|