// Code generated by protoc-gen-go. DO NOT EDIT. // source: 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 "smart-enterprise-management-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("log_service.proto", fileDescriptor_c40f363b56b74b92) } var fileDescriptor_c40f363b56b74b92 = []byte{ // 180 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8e, 0xb1, 0x0a, 0xc2, 0x30, 0x10, 0x40, 0xc5, 0xa1, 0x42, 0x10, 0xb4, 0x19, 0x1c, 0x3a, 0x3a, 0x88, 0x4b, 0x53, 0xaa, 0x5f, 0xa0, 0x73, 0x26, 0xbb, 0xb9, 0x94, 0xd4, 0x1e, 0x21, 0xd0, 0xe6, 0xd2, 0xe4, 0xac, 0xf4, 0xef, 0xa5, 0xad, 0x82, 0x6e, 0x77, 0xef, 0xf1, 0xb8, 0x63, 0x71, 0x83, 0xba, 0x0c, 0xe0, 0x7b, 0xf3, 0x00, 0xe1, 0x3c, 0x12, 0xf2, 0xa5, 0xab, 0x92, 0x5d, 0x9f, 0x67, 0xe8, 0xc0, 0x2b, 0x32, 0x68, 0xcb, 0x06, 0xf5, 0xec, 0x4e, 0x1d, 0x5b, 0x17, 0xad, 0xf2, 0x54, 0x18, 0x02, 0x89, 0x9a, 0x0b, 0x16, 0x49, 0xd4, 0x97, 0xba, 0xe6, 0xb1, 0xe8, 0x73, 0x31, 0xcf, 0x37, 0xe8, 0x9e, 0x10, 0x28, 0xd9, 0xfc, 0x22, 0xd7, 0x0c, 0xfb, 0x05, 0xcf, 0xd9, 0x4a, 0xa2, 0x96, 0x26, 0x10, 0xe7, 0x1f, 0x3b, 0x2e, 0xdf, 0x62, 0xfb, 0xc7, 0xa6, 0xe4, 0x7a, 0xbc, 0x1f, 0xc2, 0x78, 0x32, 0x05, 0x4b, 0xe0, 0x9d, 0x37, 0x01, 0xd2, 0x56, 0x59, 0xa5, 0xa1, 0x05, 0x4b, 0xa9, 0x56, 0x04, 0x2f, 0x35, 0x64, 0xae, 0xaa, 0xa2, 0xe9, 0xc7, 0xf3, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x8d, 0x49, 0x6f, 0xd4, 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 // SmartSiteLogClient is the client API for SmartSiteLog service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SmartSiteLogClient interface { LogAdd(ctx context.Context, in *v1.LogAddRequest, opts ...grpc.CallOption) (*v1.LogAddReply, error) LogList(ctx context.Context, in *v1.LogListRequest, opts ...grpc.CallOption) (*v1.LogListReply, error) } type smartSiteLogClient struct { cc grpc.ClientConnInterface } func NewSmartSiteLogClient(cc grpc.ClientConnInterface) SmartSiteLogClient { return &smartSiteLogClient{cc} } func (c *smartSiteLogClient) LogAdd(ctx context.Context, in *v1.LogAddRequest, opts ...grpc.CallOption) (*v1.LogAddReply, error) { out := new(v1.LogAddReply) err := c.cc.Invoke(ctx, "/pb.SmartSiteLog/LogAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *smartSiteLogClient) LogList(ctx context.Context, in *v1.LogListRequest, opts ...grpc.CallOption) (*v1.LogListReply, error) { out := new(v1.LogListReply) err := c.cc.Invoke(ctx, "/pb.SmartSiteLog/LogList", in, out, opts...) if err != nil { return nil, err } return out, nil } // SmartSiteLogServer is the server API for SmartSiteLog service. type SmartSiteLogServer interface { LogAdd(context.Context, *v1.LogAddRequest) (*v1.LogAddReply, error) LogList(context.Context, *v1.LogListRequest) (*v1.LogListReply, error) } // UnimplementedSmartSiteLogServer can be embedded to have forward compatible implementations. type UnimplementedSmartSiteLogServer struct { } func (*UnimplementedSmartSiteLogServer) LogAdd(ctx context.Context, req *v1.LogAddRequest) (*v1.LogAddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method LogAdd not implemented") } func (*UnimplementedSmartSiteLogServer) LogList(ctx context.Context, req *v1.LogListRequest) (*v1.LogListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method LogList not implemented") } func RegisterSmartSiteLogServer(s *grpc.Server, srv SmartSiteLogServer) { s.RegisterService(&_SmartSiteLog_serviceDesc, srv) } func _SmartSiteLog_LogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.LogAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartSiteLogServer).LogAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartSiteLog/LogAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartSiteLogServer).LogAdd(ctx, req.(*v1.LogAddRequest)) } return interceptor(ctx, in, info, handler) } func _SmartSiteLog_LogList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.LogListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SmartSiteLogServer).LogList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.SmartSiteLog/LogList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SmartSiteLogServer).LogList(ctx, req.(*v1.LogListRequest)) } return interceptor(ctx, in, info, handler) } var _SmartSiteLog_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.SmartSiteLog", HandlerType: (*SmartSiteLogServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LogAdd", Handler: _SmartSiteLog_LogAdd_Handler, }, { MethodName: "LogList", Handler: _SmartSiteLog_LogList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "log_service.proto", }