// 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-government-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{ // 182 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcc, 0xc9, 0x4f, 0x8f, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x92, 0x12, 0x2b, 0x33, 0xd4, 0xcf, 0x2f, 0x48, 0x2d, 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0x8b, 0xcf, 0xc9, 0x4f, 0x87, 0xc8, 0x19, 0x15, 0x72, 0xf1, 0x04, 0xe7, 0x26, 0x16, 0x95, 0x04, 0x67, 0x96, 0xa4, 0xfa, 0xe4, 0xa7, 0x0b, 0xe9, 0x71, 0xb1, 0xf9, 0xe4, 0xa7, 0x3b, 0xa6, 0xa4, 0x08, 0x09, 0xea, 0x95, 0x19, 0xea, 0x41, 0xd8, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x52, 0xfc, 0xc8, 0x42, 0x05, 0x39, 0x95, 0x4a, 0x0c, 0x42, 0x86, 0x5c, 0xec, 0x3e, 0xf9, 0xe9, 0x3e, 0x99, 0xc5, 0x25, 0x42, 0x42, 0x50, 0x59, 0x10, 0x07, 0xa6, 0x43, 0x00, 0x45, 0x0c, 0xac, 0xc5, 0x49, 0x23, 0x4a, 0xad, 0x18, 0x64, 0xa5, 0x6e, 0x7a, 0x7e, 0x59, 0x6a, 0x51, 0x5e, 0x6e, 0x6a, 0x5e, 0x89, 0x6e, 0x6e, 0x62, 0x5e, 0x62, 0x7a, 0x2a, 0x98, 0x99, 0x9e, 0x58, 0x92, 0x5a, 0x9e, 0x58, 0xa9, 0x5f, 0x90, 0x94, 0xc4, 0x06, 0x76, 0xa3, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x01, 0x05, 0xc1, 0x21, 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", }