| | |
| | | // Code generated by protoc-gen-go. DO NOT EDIT. |
| | | // versions: |
| | | // protoc-gen-go v1.28.1 |
| | | // protoc v3.19.4 |
| | | // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| | | // source: dataprocess.proto |
| | | |
| | | package protomsg |
| | | |
| | | import ( |
| | | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| | | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| | | reflect "reflect" |
| | | sync "sync" |
| | | fmt "fmt" |
| | | proto "github.com/golang/protobuf/proto" |
| | | io "io" |
| | | math "math" |
| | | math_bits "math/bits" |
| | | ) |
| | | |
| | | const ( |
| | | // Verify that this generated code is sufficiently up-to-date. |
| | | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| | | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| | | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| | | ) |
| | | // 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 |
| | | |
| | | type TaskBasicInfo struct { |
| | | state protoimpl.MessageState |
| | | sizeCache protoimpl.SizeCache |
| | | unknownFields protoimpl.UnknownFields |
| | | |
| | | CamId string `protobuf:"bytes,1,opt,name=CamId,proto3" json:"CamId,omitempty"` |
| | | CamName string `protobuf:"bytes,2,opt,name=CamName,proto3" json:"CamName,omitempty"` |
| | | TaskID string `protobuf:"bytes,3,opt,name=TaskID,proto3" json:"TaskID,omitempty"` |
| | | TaskName string `protobuf:"bytes,4,opt,name=TaskName,proto3" json:"TaskName,omitempty"` |
| | | HandleTime string `protobuf:"bytes,5,opt,name=HandleTime,proto3" json:"HandleTime,omitempty"` |
| | | ImageId int64 `protobuf:"varint,6,opt,name=ImageId,proto3" json:"ImageId,omitempty"` |
| | | ImageTime string `protobuf:"bytes,7,opt,name=ImageTime,proto3" json:"ImageTime,omitempty"` |
| | | IsEndRecord bool `protobuf:"varint,8,opt,name=IsEndRecord,proto3" json:"IsEndRecord,omitempty"` |
| | | FileId string `protobuf:"bytes,9,opt,name=FileId,proto3" json:"FileId,omitempty"` // 数据栈中的文件id |
| | | CamId string `protobuf:"bytes,1,opt,name=CamId,proto3" json:"CamId,omitempty"` |
| | | CamName string `protobuf:"bytes,2,opt,name=CamName,proto3" json:"CamName,omitempty"` |
| | | TaskID string `protobuf:"bytes,3,opt,name=TaskID,proto3" json:"TaskID,omitempty"` |
| | | TaskName string `protobuf:"bytes,4,opt,name=TaskName,proto3" json:"TaskName,omitempty"` |
| | | HandleTime string `protobuf:"bytes,5,opt,name=HandleTime,proto3" json:"HandleTime,omitempty"` |
| | | ImageId int64 `protobuf:"varint,6,opt,name=ImageId,proto3" json:"ImageId,omitempty"` |
| | | ImageTime string `protobuf:"bytes,7,opt,name=ImageTime,proto3" json:"ImageTime,omitempty"` |
| | | IsEndRecord bool `protobuf:"varint,8,opt,name=IsEndRecord,proto3" json:"IsEndRecord,omitempty"` |
| | | FileId string `protobuf:"bytes,9,opt,name=FileId,proto3" json:"FileId,omitempty"` |
| | | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| | | XXX_unrecognized []byte `json:"-"` |
| | | XXX_sizecache int32 `json:"-"` |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) Reset() { |
| | | *x = TaskBasicInfo{} |
| | | if protoimpl.UnsafeEnabled { |
| | | mi := &file_dataprocess_proto_msgTypes[0] |
| | | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | ms.StoreMessageInfo(mi) |
| | | } |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) String() string { |
| | | return protoimpl.X.MessageStringOf(x) |
| | | } |
| | | |
| | | func (*TaskBasicInfo) ProtoMessage() {} |
| | | |
| | | func (x *TaskBasicInfo) ProtoReflect() protoreflect.Message { |
| | | mi := &file_dataprocess_proto_msgTypes[0] |
| | | if protoimpl.UnsafeEnabled && x != nil { |
| | | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | if ms.LoadMessageInfo() == nil { |
| | | ms.StoreMessageInfo(mi) |
| | | } |
| | | return ms |
| | | } |
| | | return mi.MessageOf(x) |
| | | } |
| | | |
| | | // Deprecated: Use TaskBasicInfo.ProtoReflect.Descriptor instead. |
| | | func (m *TaskBasicInfo) Reset() { *m = TaskBasicInfo{} } |
| | | func (m *TaskBasicInfo) String() string { return proto.CompactTextString(m) } |
| | | func (*TaskBasicInfo) ProtoMessage() {} |
| | | func (*TaskBasicInfo) Descriptor() ([]byte, []int) { |
| | | return file_dataprocess_proto_rawDescGZIP(), []int{0} |
| | | return fileDescriptor_02f614a9207041cc, []int{0} |
| | | } |
| | | func (m *TaskBasicInfo) XXX_Unmarshal(b []byte) error { |
| | | return m.Unmarshal(b) |
| | | } |
| | | func (m *TaskBasicInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| | | if deterministic { |
| | | return xxx_messageInfo_TaskBasicInfo.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return b[:n], nil |
| | | } |
| | | } |
| | | func (m *TaskBasicInfo) XXX_Merge(src proto.Message) { |
| | | xxx_messageInfo_TaskBasicInfo.Merge(m, src) |
| | | } |
| | | func (m *TaskBasicInfo) XXX_Size() int { |
| | | return m.Size() |
| | | } |
| | | func (m *TaskBasicInfo) XXX_DiscardUnknown() { |
| | | xxx_messageInfo_TaskBasicInfo.DiscardUnknown(m) |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) GetCamId() string { |
| | | if x != nil { |
| | | return x.CamId |
| | | var xxx_messageInfo_TaskBasicInfo proto.InternalMessageInfo |
| | | |
| | | func (m *TaskBasicInfo) GetCamId() string { |
| | | if m != nil { |
| | | return m.CamId |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) GetCamName() string { |
| | | if x != nil { |
| | | return x.CamName |
| | | func (m *TaskBasicInfo) GetCamName() string { |
| | | if m != nil { |
| | | return m.CamName |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) GetTaskID() string { |
| | | if x != nil { |
| | | return x.TaskID |
| | | func (m *TaskBasicInfo) GetTaskID() string { |
| | | if m != nil { |
| | | return m.TaskID |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) GetTaskName() string { |
| | | if x != nil { |
| | | return x.TaskName |
| | | func (m *TaskBasicInfo) GetTaskName() string { |
| | | if m != nil { |
| | | return m.TaskName |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) GetHandleTime() string { |
| | | if x != nil { |
| | | return x.HandleTime |
| | | func (m *TaskBasicInfo) GetHandleTime() string { |
| | | if m != nil { |
| | | return m.HandleTime |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) GetImageId() int64 { |
| | | if x != nil { |
| | | return x.ImageId |
| | | func (m *TaskBasicInfo) GetImageId() int64 { |
| | | if m != nil { |
| | | return m.ImageId |
| | | } |
| | | return 0 |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) GetImageTime() string { |
| | | if x != nil { |
| | | return x.ImageTime |
| | | func (m *TaskBasicInfo) GetImageTime() string { |
| | | if m != nil { |
| | | return m.ImageTime |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) GetIsEndRecord() bool { |
| | | if x != nil { |
| | | return x.IsEndRecord |
| | | func (m *TaskBasicInfo) GetIsEndRecord() bool { |
| | | if m != nil { |
| | | return m.IsEndRecord |
| | | } |
| | | return false |
| | | } |
| | | |
| | | func (x *TaskBasicInfo) GetFileId() string { |
| | | if x != nil { |
| | | return x.FileId |
| | | func (m *TaskBasicInfo) GetFileId() string { |
| | | if m != nil { |
| | | return m.FileId |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | type SoTarget struct { |
| | | state protoimpl.MessageState |
| | | sizeCache protoimpl.SizeCache |
| | | unknownFields protoimpl.UnknownFields |
| | | |
| | | SrcTarget *Target `protobuf:"bytes,1,opt,name=SrcTarget,proto3" json:"SrcTarget,omitempty"` |
| | | AreaId string `protobuf:"bytes,2,opt,name=AreaId,proto3" json:"AreaId,omitempty"` |
| | | AreaName string `protobuf:"bytes,3,opt,name=AreaName,proto3" json:"AreaName,omitempty"` |
| | | BelongsTargetID string `protobuf:"bytes,4,opt,name=BelongsTargetID,proto3" json:"BelongsTargetID,omitempty"` |
| | | CompDbInfo []*RuleBaseCompareInfo `protobuf:"bytes,5,rep,name=CompDbInfo,proto3" json:"CompDbInfo,omitempty"` |
| | | ImageId int64 `protobuf:"varint,6,opt,name=ImageId,proto3" json:"ImageId,omitempty"` |
| | | SrcTarget *Target `protobuf:"bytes,1,opt,name=SrcTarget,proto3" json:"SrcTarget,omitempty"` |
| | | AreaId string `protobuf:"bytes,2,opt,name=AreaId,proto3" json:"AreaId,omitempty"` |
| | | AreaName string `protobuf:"bytes,3,opt,name=AreaName,proto3" json:"AreaName,omitempty"` |
| | | BelongsTargetID string `protobuf:"bytes,4,opt,name=BelongsTargetID,proto3" json:"BelongsTargetID,omitempty"` |
| | | CompDbInfo []*RuleBaseCompareInfo `protobuf:"bytes,5,rep,name=CompDbInfo,proto3" json:"CompDbInfo,omitempty"` |
| | | ImageId int64 `protobuf:"varint,6,opt,name=ImageId,proto3" json:"ImageId,omitempty"` |
| | | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| | | XXX_unrecognized []byte `json:"-"` |
| | | XXX_sizecache int32 `json:"-"` |
| | | } |
| | | |
| | | func (x *SoTarget) Reset() { |
| | | *x = SoTarget{} |
| | | if protoimpl.UnsafeEnabled { |
| | | mi := &file_dataprocess_proto_msgTypes[1] |
| | | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | ms.StoreMessageInfo(mi) |
| | | } |
| | | } |
| | | |
| | | func (x *SoTarget) String() string { |
| | | return protoimpl.X.MessageStringOf(x) |
| | | } |
| | | |
| | | func (*SoTarget) ProtoMessage() {} |
| | | |
| | | func (x *SoTarget) ProtoReflect() protoreflect.Message { |
| | | mi := &file_dataprocess_proto_msgTypes[1] |
| | | if protoimpl.UnsafeEnabled && x != nil { |
| | | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | if ms.LoadMessageInfo() == nil { |
| | | ms.StoreMessageInfo(mi) |
| | | } |
| | | return ms |
| | | } |
| | | return mi.MessageOf(x) |
| | | } |
| | | |
| | | // Deprecated: Use SoTarget.ProtoReflect.Descriptor instead. |
| | | func (m *SoTarget) Reset() { *m = SoTarget{} } |
| | | func (m *SoTarget) String() string { return proto.CompactTextString(m) } |
| | | func (*SoTarget) ProtoMessage() {} |
| | | func (*SoTarget) Descriptor() ([]byte, []int) { |
| | | return file_dataprocess_proto_rawDescGZIP(), []int{1} |
| | | return fileDescriptor_02f614a9207041cc, []int{1} |
| | | } |
| | | func (m *SoTarget) XXX_Unmarshal(b []byte) error { |
| | | return m.Unmarshal(b) |
| | | } |
| | | func (m *SoTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| | | if deterministic { |
| | | return xxx_messageInfo_SoTarget.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return b[:n], nil |
| | | } |
| | | } |
| | | func (m *SoTarget) XXX_Merge(src proto.Message) { |
| | | xxx_messageInfo_SoTarget.Merge(m, src) |
| | | } |
| | | func (m *SoTarget) XXX_Size() int { |
| | | return m.Size() |
| | | } |
| | | func (m *SoTarget) XXX_DiscardUnknown() { |
| | | xxx_messageInfo_SoTarget.DiscardUnknown(m) |
| | | } |
| | | |
| | | func (x *SoTarget) GetSrcTarget() *Target { |
| | | if x != nil { |
| | | return x.SrcTarget |
| | | var xxx_messageInfo_SoTarget proto.InternalMessageInfo |
| | | |
| | | func (m *SoTarget) GetSrcTarget() *Target { |
| | | if m != nil { |
| | | return m.SrcTarget |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | func (x *SoTarget) GetAreaId() string { |
| | | if x != nil { |
| | | return x.AreaId |
| | | func (m *SoTarget) GetAreaId() string { |
| | | if m != nil { |
| | | return m.AreaId |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (x *SoTarget) GetAreaName() string { |
| | | if x != nil { |
| | | return x.AreaName |
| | | func (m *SoTarget) GetAreaName() string { |
| | | if m != nil { |
| | | return m.AreaName |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (x *SoTarget) GetBelongsTargetID() string { |
| | | if x != nil { |
| | | return x.BelongsTargetID |
| | | func (m *SoTarget) GetBelongsTargetID() string { |
| | | if m != nil { |
| | | return m.BelongsTargetID |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (x *SoTarget) GetCompDbInfo() []*RuleBaseCompareInfo { |
| | | if x != nil { |
| | | return x.CompDbInfo |
| | | func (m *SoTarget) GetCompDbInfo() []*RuleBaseCompareInfo { |
| | | if m != nil { |
| | | return m.CompDbInfo |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | func (x *SoTarget) GetImageId() int64 { |
| | | if x != nil { |
| | | return x.ImageId |
| | | func (m *SoTarget) GetImageId() int64 { |
| | | if m != nil { |
| | | return m.ImageId |
| | | } |
| | | return 0 |
| | | } |
| | | |
| | | type EventCache struct { |
| | | state protoimpl.MessageState |
| | | sizeCache protoimpl.SizeCache |
| | | unknownFields protoimpl.UnknownFields |
| | | |
| | | Targets map[uint64]*SoTarget `protobuf:"bytes,1,rep,name=Targets,proto3" json:"Targets,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | RuleGroups map[string]*GroupRule `protobuf:"bytes,2,rep,name=RuleGroups,proto3" json:"RuleGroups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | Images map[int64]*Image `protobuf:"bytes,3,rep,name=Images,proto3" json:"Images,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | Targets map[uint64]*SoTarget `protobuf:"bytes,1,rep,name=Targets,proto3" json:"Targets,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | RuleGroups map[string]*GroupRule `protobuf:"bytes,2,rep,name=RuleGroups,proto3" json:"RuleGroups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | Images map[int64]*Image `protobuf:"bytes,3,rep,name=Images,proto3" json:"Images,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| | | XXX_unrecognized []byte `json:"-"` |
| | | XXX_sizecache int32 `json:"-"` |
| | | } |
| | | |
| | | func (x *EventCache) Reset() { |
| | | *x = EventCache{} |
| | | if protoimpl.UnsafeEnabled { |
| | | mi := &file_dataprocess_proto_msgTypes[2] |
| | | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | ms.StoreMessageInfo(mi) |
| | | } |
| | | } |
| | | |
| | | func (x *EventCache) String() string { |
| | | return protoimpl.X.MessageStringOf(x) |
| | | } |
| | | |
| | | func (*EventCache) ProtoMessage() {} |
| | | |
| | | func (x *EventCache) ProtoReflect() protoreflect.Message { |
| | | mi := &file_dataprocess_proto_msgTypes[2] |
| | | if protoimpl.UnsafeEnabled && x != nil { |
| | | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | if ms.LoadMessageInfo() == nil { |
| | | ms.StoreMessageInfo(mi) |
| | | } |
| | | return ms |
| | | } |
| | | return mi.MessageOf(x) |
| | | } |
| | | |
| | | // Deprecated: Use EventCache.ProtoReflect.Descriptor instead. |
| | | func (m *EventCache) Reset() { *m = EventCache{} } |
| | | func (m *EventCache) String() string { return proto.CompactTextString(m) } |
| | | func (*EventCache) ProtoMessage() {} |
| | | func (*EventCache) Descriptor() ([]byte, []int) { |
| | | return file_dataprocess_proto_rawDescGZIP(), []int{2} |
| | | return fileDescriptor_02f614a9207041cc, []int{2} |
| | | } |
| | | func (m *EventCache) XXX_Unmarshal(b []byte) error { |
| | | return m.Unmarshal(b) |
| | | } |
| | | func (m *EventCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| | | if deterministic { |
| | | return xxx_messageInfo_EventCache.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return b[:n], nil |
| | | } |
| | | } |
| | | func (m *EventCache) XXX_Merge(src proto.Message) { |
| | | xxx_messageInfo_EventCache.Merge(m, src) |
| | | } |
| | | func (m *EventCache) XXX_Size() int { |
| | | return m.Size() |
| | | } |
| | | func (m *EventCache) XXX_DiscardUnknown() { |
| | | xxx_messageInfo_EventCache.DiscardUnknown(m) |
| | | } |
| | | |
| | | func (x *EventCache) GetTargets() map[uint64]*SoTarget { |
| | | if x != nil { |
| | | return x.Targets |
| | | var xxx_messageInfo_EventCache proto.InternalMessageInfo |
| | | |
| | | func (m *EventCache) GetTargets() map[uint64]*SoTarget { |
| | | if m != nil { |
| | | return m.Targets |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | func (x *EventCache) GetRuleGroups() map[string]*GroupRule { |
| | | if x != nil { |
| | | return x.RuleGroups |
| | | func (m *EventCache) GetRuleGroups() map[string]*GroupRule { |
| | | if m != nil { |
| | | return m.RuleGroups |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | func (x *EventCache) GetImages() map[int64]*Image { |
| | | if x != nil { |
| | | return x.Images |
| | | func (m *EventCache) GetImages() map[int64]*Image { |
| | | if m != nil { |
| | | return m.Images |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | type TargetCache struct { |
| | | state protoimpl.MessageState |
| | | sizeCache protoimpl.SizeCache |
| | | unknownFields protoimpl.UnknownFields |
| | | |
| | | Target []*SoTarget `protobuf:"bytes,1,rep,name=Target,proto3" json:"Target,omitempty"` |
| | | RuleGroups map[string]*GroupRule `protobuf:"bytes,2,rep,name=RuleGroups,proto3" json:"RuleGroups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | Image *Image `protobuf:"bytes,3,opt,name=Image,proto3" json:"Image,omitempty"` |
| | | Target []*SoTarget `protobuf:"bytes,1,rep,name=Target,proto3" json:"Target,omitempty"` |
| | | RuleGroups map[string]*GroupRule `protobuf:"bytes,2,rep,name=RuleGroups,proto3" json:"RuleGroups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | Image *Image `protobuf:"bytes,3,opt,name=Image,proto3" json:"Image,omitempty"` |
| | | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| | | XXX_unrecognized []byte `json:"-"` |
| | | XXX_sizecache int32 `json:"-"` |
| | | } |
| | | |
| | | func (x *TargetCache) Reset() { |
| | | *x = TargetCache{} |
| | | if protoimpl.UnsafeEnabled { |
| | | mi := &file_dataprocess_proto_msgTypes[3] |
| | | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | ms.StoreMessageInfo(mi) |
| | | } |
| | | } |
| | | |
| | | func (x *TargetCache) String() string { |
| | | return protoimpl.X.MessageStringOf(x) |
| | | } |
| | | |
| | | func (*TargetCache) ProtoMessage() {} |
| | | |
| | | func (x *TargetCache) ProtoReflect() protoreflect.Message { |
| | | mi := &file_dataprocess_proto_msgTypes[3] |
| | | if protoimpl.UnsafeEnabled && x != nil { |
| | | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | if ms.LoadMessageInfo() == nil { |
| | | ms.StoreMessageInfo(mi) |
| | | } |
| | | return ms |
| | | } |
| | | return mi.MessageOf(x) |
| | | } |
| | | |
| | | // Deprecated: Use TargetCache.ProtoReflect.Descriptor instead. |
| | | func (m *TargetCache) Reset() { *m = TargetCache{} } |
| | | func (m *TargetCache) String() string { return proto.CompactTextString(m) } |
| | | func (*TargetCache) ProtoMessage() {} |
| | | func (*TargetCache) Descriptor() ([]byte, []int) { |
| | | return file_dataprocess_proto_rawDescGZIP(), []int{3} |
| | | return fileDescriptor_02f614a9207041cc, []int{3} |
| | | } |
| | | func (m *TargetCache) XXX_Unmarshal(b []byte) error { |
| | | return m.Unmarshal(b) |
| | | } |
| | | func (m *TargetCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| | | if deterministic { |
| | | return xxx_messageInfo_TargetCache.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return b[:n], nil |
| | | } |
| | | } |
| | | func (m *TargetCache) XXX_Merge(src proto.Message) { |
| | | xxx_messageInfo_TargetCache.Merge(m, src) |
| | | } |
| | | func (m *TargetCache) XXX_Size() int { |
| | | return m.Size() |
| | | } |
| | | func (m *TargetCache) XXX_DiscardUnknown() { |
| | | xxx_messageInfo_TargetCache.DiscardUnknown(m) |
| | | } |
| | | |
| | | func (x *TargetCache) GetTarget() []*SoTarget { |
| | | if x != nil { |
| | | return x.Target |
| | | var xxx_messageInfo_TargetCache proto.InternalMessageInfo |
| | | |
| | | func (m *TargetCache) GetTarget() []*SoTarget { |
| | | if m != nil { |
| | | return m.Target |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | func (x *TargetCache) GetRuleGroups() map[string]*GroupRule { |
| | | if x != nil { |
| | | return x.RuleGroups |
| | | func (m *TargetCache) GetRuleGroups() map[string]*GroupRule { |
| | | if m != nil { |
| | | return m.RuleGroups |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | func (x *TargetCache) GetImage() *Image { |
| | | if x != nil { |
| | | return x.Image |
| | | func (m *TargetCache) GetImage() *Image { |
| | | if m != nil { |
| | | return m.Image |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | type FilterResult struct { |
| | | state protoimpl.MessageState |
| | | sizeCache protoimpl.SizeCache |
| | | unknownFields protoimpl.UnknownFields |
| | | |
| | | BaseInfo *TaskBasicInfo `protobuf:"bytes,1,opt,name=BaseInfo,proto3" json:"BaseInfo,omitempty"` |
| | | Events map[string]*EventCache `protobuf:"bytes,2,rep,name=Events,proto3" json:"Events,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | Targets map[string]*TargetCache `protobuf:"bytes,3,rep,name=Targets,proto3" json:"Targets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | BaseInfo *TaskBasicInfo `protobuf:"bytes,1,opt,name=BaseInfo,proto3" json:"BaseInfo,omitempty"` |
| | | Events map[string]*EventCache `protobuf:"bytes,2,rep,name=Events,proto3" json:"Events,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | Targets map[string]*TargetCache `protobuf:"bytes,3,rep,name=Targets,proto3" json:"Targets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| | | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| | | XXX_unrecognized []byte `json:"-"` |
| | | XXX_sizecache int32 `json:"-"` |
| | | } |
| | | |
| | | func (x *FilterResult) Reset() { |
| | | *x = FilterResult{} |
| | | if protoimpl.UnsafeEnabled { |
| | | mi := &file_dataprocess_proto_msgTypes[4] |
| | | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | ms.StoreMessageInfo(mi) |
| | | } |
| | | } |
| | | |
| | | func (x *FilterResult) String() string { |
| | | return protoimpl.X.MessageStringOf(x) |
| | | } |
| | | |
| | | func (*FilterResult) ProtoMessage() {} |
| | | |
| | | func (x *FilterResult) ProtoReflect() protoreflect.Message { |
| | | mi := &file_dataprocess_proto_msgTypes[4] |
| | | if protoimpl.UnsafeEnabled && x != nil { |
| | | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | if ms.LoadMessageInfo() == nil { |
| | | ms.StoreMessageInfo(mi) |
| | | } |
| | | return ms |
| | | } |
| | | return mi.MessageOf(x) |
| | | } |
| | | |
| | | // Deprecated: Use FilterResult.ProtoReflect.Descriptor instead. |
| | | func (m *FilterResult) Reset() { *m = FilterResult{} } |
| | | func (m *FilterResult) String() string { return proto.CompactTextString(m) } |
| | | func (*FilterResult) ProtoMessage() {} |
| | | func (*FilterResult) Descriptor() ([]byte, []int) { |
| | | return file_dataprocess_proto_rawDescGZIP(), []int{4} |
| | | return fileDescriptor_02f614a9207041cc, []int{4} |
| | | } |
| | | func (m *FilterResult) XXX_Unmarshal(b []byte) error { |
| | | return m.Unmarshal(b) |
| | | } |
| | | func (m *FilterResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| | | if deterministic { |
| | | return xxx_messageInfo_FilterResult.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return b[:n], nil |
| | | } |
| | | } |
| | | func (m *FilterResult) XXX_Merge(src proto.Message) { |
| | | xxx_messageInfo_FilterResult.Merge(m, src) |
| | | } |
| | | func (m *FilterResult) XXX_Size() int { |
| | | return m.Size() |
| | | } |
| | | func (m *FilterResult) XXX_DiscardUnknown() { |
| | | xxx_messageInfo_FilterResult.DiscardUnknown(m) |
| | | } |
| | | |
| | | func (x *FilterResult) GetBaseInfo() *TaskBasicInfo { |
| | | if x != nil { |
| | | return x.BaseInfo |
| | | var xxx_messageInfo_FilterResult proto.InternalMessageInfo |
| | | |
| | | func (m *FilterResult) GetBaseInfo() *TaskBasicInfo { |
| | | if m != nil { |
| | | return m.BaseInfo |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | func (x *FilterResult) GetEvents() map[string]*EventCache { |
| | | if x != nil { |
| | | return x.Events |
| | | func (m *FilterResult) GetEvents() map[string]*EventCache { |
| | | if m != nil { |
| | | return m.Events |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | func (x *FilterResult) GetTargets() map[string]*TargetCache { |
| | | if x != nil { |
| | | return x.Targets |
| | | func (m *FilterResult) GetTargets() map[string]*TargetCache { |
| | | if m != nil { |
| | | return m.Targets |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | var File_dataprocess_proto protoreflect.FileDescriptor |
| | | func init() { |
| | | proto.RegisterType((*TaskBasicInfo)(nil), "protomsg.TaskBasicInfo") |
| | | proto.RegisterType((*SoTarget)(nil), "protomsg.SoTarget") |
| | | proto.RegisterType((*EventCache)(nil), "protomsg.EventCache") |
| | | proto.RegisterMapType((map[int64]*Image)(nil), "protomsg.EventCache.ImagesEntry") |
| | | proto.RegisterMapType((map[string]*GroupRule)(nil), "protomsg.EventCache.RuleGroupsEntry") |
| | | proto.RegisterMapType((map[uint64]*SoTarget)(nil), "protomsg.EventCache.TargetsEntry") |
| | | proto.RegisterType((*TargetCache)(nil), "protomsg.TargetCache") |
| | | proto.RegisterMapType((map[string]*GroupRule)(nil), "protomsg.TargetCache.RuleGroupsEntry") |
| | | proto.RegisterType((*FilterResult)(nil), "protomsg.FilterResult") |
| | | proto.RegisterMapType((map[string]*EventCache)(nil), "protomsg.FilterResult.EventsEntry") |
| | | proto.RegisterMapType((map[string]*TargetCache)(nil), "protomsg.FilterResult.TargetsEntry") |
| | | } |
| | | |
| | | var file_dataprocess_proto_rawDesc = []byte{ |
| | | 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, |
| | | 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x1a, 0x09, 0x73, |
| | | 0x64, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x70, |
| | | 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x70, |
| | | 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x02, 0x0a, 0x0d, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x61, 0x73, |
| | | 0x69, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x43, 0x61, 0x6d, 0x49, 0x64, 0x18, |
| | | 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x43, 0x61, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, |
| | | 0x43, 0x61, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, |
| | | 0x61, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x44, |
| | | 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x44, 0x12, 0x1a, |
| | | 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, |
| | | 0x52, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x48, 0x61, |
| | | 0x6e, 0x64, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, |
| | | 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x49, 0x6d, |
| | | 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x49, 0x6d, 0x61, |
| | | 0x67, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x69, 0x6d, |
| | | 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x69, |
| | | 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x49, 0x73, 0x45, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, |
| | | 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x49, 0x73, 0x45, 0x6e, 0x64, 0x52, 0x65, |
| | | 0x63, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x09, |
| | | 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xf1, 0x01, 0x0a, |
| | | 0x08, 0x53, 0x6f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x53, 0x72, 0x63, |
| | | 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, |
| | | 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x09, |
| | | 0x53, 0x72, 0x63, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x72, 0x65, |
| | | 0x61, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x72, 0x65, 0x61, 0x49, |
| | | 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x72, 0x65, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, |
| | | 0x01, 0x28, 0x09, 0x52, 0x08, 0x41, 0x72, 0x65, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, |
| | | 0x0f, 0x42, 0x65, 0x6c, 0x6f, 0x6e, 0x67, 0x73, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x44, |
| | | 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x42, 0x65, 0x6c, 0x6f, 0x6e, 0x67, 0x73, 0x54, |
| | | 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x44, 0x12, 0x3d, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x70, 0x44, |
| | | 0x62, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, |
| | | 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x65, 0x43, |
| | | 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x43, 0x6f, 0x6d, 0x70, |
| | | 0x44, 0x62, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x49, |
| | | 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x49, 0x64, |
| | | 0x22, 0xb9, 0x03, 0x0a, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, |
| | | 0x3b, 0x0a, 0x07, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, |
| | | 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x45, 0x76, 0x65, 0x6e, |
| | | 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x45, 0x6e, |
| | | 0x74, 0x72, 0x79, 0x52, 0x07, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x12, 0x44, 0x0a, 0x0a, |
| | | 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, |
| | | 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x45, 0x76, 0x65, 0x6e, |
| | | 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, |
| | | 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, |
| | | 0x70, 0x73, 0x12, 0x38, 0x0a, 0x06, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, |
| | | 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x45, 0x76, |
| | | 0x65, 0x6e, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x45, |
| | | 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x1a, 0x4e, 0x0a, 0x0c, |
| | | 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, |
| | | 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x28, |
| | | 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, |
| | | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x53, 0x6f, 0x54, 0x61, 0x72, 0x67, 0x65, |
| | | 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x52, 0x0a, 0x0f, |
| | | 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, |
| | | 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, |
| | | 0x79, 0x12, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, |
| | | 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x47, 0x72, 0x6f, 0x75, |
| | | 0x70, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, |
| | | 0x1a, 0x4a, 0x0a, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, |
| | | 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, |
| | | 0x79, 0x12, 0x25, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, |
| | | 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x49, 0x6d, 0x61, 0x67, |
| | | 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xfb, 0x01, 0x0a, |
| | | 0x0b, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x2a, 0x0a, 0x06, |
| | | 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, |
| | | 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x53, 0x6f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, |
| | | 0x52, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x45, 0x0a, 0x0a, 0x52, 0x75, 0x6c, 0x65, |
| | | 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, |
| | | 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43, 0x61, |
| | | 0x63, 0x68, 0x65, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x45, 0x6e, |
| | | 0x74, 0x72, 0x79, 0x52, 0x0a, 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, |
| | | 0x25, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, |
| | | 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, |
| | | 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x1a, 0x52, 0x0a, 0x0f, 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, |
| | | 0x6f, 0x75, 0x70, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, |
| | | 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x29, 0x0a, 0x05, 0x76, |
| | | 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, |
| | | 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x52, |
| | | 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe2, 0x02, 0x0a, 0x0c, 0x46, |
| | | 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x33, 0x0a, 0x08, 0x42, |
| | | 0x61, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, |
| | | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x61, 0x73, |
| | | 0x69, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x42, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, |
| | | 0x12, 0x3a, 0x0a, 0x06, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, |
| | | 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x46, 0x69, 0x6c, 0x74, |
| | | 0x65, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x45, |
| | | 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x07, |
| | | 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, |
| | | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, |
| | | 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, |
| | | 0x72, 0x79, 0x52, 0x07, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x1a, 0x4f, 0x0a, 0x0b, 0x45, |
| | | 0x76, 0x65, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, |
| | | 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, |
| | | 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x72, |
| | | 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x63, 0x68, |
| | | 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x51, 0x0a, 0x0c, |
| | | 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, |
| | | 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2b, |
| | | 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, |
| | | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43, |
| | | 0x61, 0x63, 0x68, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, |
| | | 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6d, 0x73, 0x67, 0x62, 0x06, |
| | | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| | | func init() { proto.RegisterFile("dataprocess.proto", fileDescriptor_02f614a9207041cc) } |
| | | |
| | | var fileDescriptor_02f614a9207041cc = []byte{ |
| | | // 665 bytes of a gzipped FileDescriptorProto |
| | | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xcd, 0x6e, 0xd3, 0x40, |
| | | 0x10, 0xc7, 0x71, 0xdc, 0xa4, 0xc9, 0xb8, 0xd0, 0xb2, 0x14, 0xb0, 0x22, 0x1a, 0x19, 0x43, 0x25, |
| | | 0x53, 0xa4, 0x20, 0xb5, 0x97, 0xaa, 0x55, 0x0f, 0xe4, 0xa3, 0x60, 0x0e, 0x45, 0x6c, 0x7b, 0xe2, |
| | | 0xb6, 0x8d, 0x97, 0x10, 0xd5, 0x1f, 0x91, 0xd7, 0xa9, 0xd4, 0x07, 0xe0, 0x1d, 0x78, 0x15, 0xde, |
| | | 0x80, 0x23, 0x8f, 0x80, 0xc2, 0x13, 0x70, 0xe6, 0x82, 0x76, 0xd6, 0x8e, 0x37, 0x95, 0x23, 0x4e, |
| | | 0x9c, 0xb2, 0x33, 0x9e, 0xff, 0x6f, 0x67, 0xe7, 0x23, 0x70, 0x3f, 0x60, 0x19, 0x9b, 0xa6, 0xc9, |
| | | 0x88, 0x0b, 0xd1, 0x9d, 0xa6, 0x49, 0x96, 0x90, 0x26, 0xfe, 0x44, 0x62, 0xdc, 0x6e, 0x89, 0xe0, |
| | | 0x4a, 0x39, 0xdb, 0x90, 0xce, 0x42, 0x9e, 0x9f, 0xef, 0x15, 0x01, 0xca, 0x76, 0xbf, 0xd4, 0xe0, |
| | | 0xee, 0x05, 0x13, 0x57, 0x3d, 0x26, 0x26, 0x23, 0x3f, 0xfe, 0x94, 0x90, 0x6d, 0xa8, 0xf7, 0x59, |
| | | 0xe4, 0x07, 0xb6, 0xe1, 0x18, 0x5e, 0x8b, 0x2a, 0x83, 0xd8, 0xb0, 0xde, 0x67, 0xd1, 0x19, 0x8b, |
| | | 0xb8, 0x5d, 0x43, 0x7f, 0x61, 0x92, 0x47, 0xd0, 0x90, 0x00, 0x7f, 0x60, 0x9b, 0xf8, 0x21, 0xb7, |
| | | 0x48, 0x1b, 0x9a, 0xf2, 0x84, 0x92, 0x35, 0xfc, 0xb2, 0xb0, 0x49, 0x07, 0xe0, 0x2d, 0x8b, 0x83, |
| | | 0x90, 0x5f, 0x4c, 0x22, 0x6e, 0xd7, 0xf1, 0xab, 0xe6, 0x91, 0xb7, 0xf9, 0x11, 0x1b, 0x73, 0x3f, |
| | | 0xb0, 0x1b, 0x8e, 0xe1, 0x99, 0xb4, 0x30, 0xc9, 0x13, 0x68, 0xe1, 0x11, 0x85, 0xeb, 0x28, 0x2c, |
| | | 0x1d, 0xc4, 0x01, 0xcb, 0x17, 0xc3, 0x38, 0xa0, 0x7c, 0x94, 0xa4, 0x81, 0xdd, 0x74, 0x0c, 0xaf, |
| | | 0x49, 0x75, 0x97, 0xcc, 0xf6, 0x74, 0x12, 0x4a, 0x70, 0x4b, 0x65, 0xab, 0x2c, 0xf7, 0xb7, 0x01, |
| | | 0xcd, 0xf3, 0xe4, 0x82, 0xa5, 0x63, 0x9e, 0x91, 0x2e, 0xb4, 0xce, 0xd3, 0x91, 0x32, 0xb0, 0x0c, |
| | | 0xd6, 0xfe, 0x56, 0x77, 0x51, 0x38, 0xe5, 0xa7, 0x65, 0x88, 0x84, 0xbe, 0x4e, 0x39, 0xf3, 0x83, |
| | | 0xbc, 0x36, 0xb9, 0x25, 0x4b, 0x20, 0x4f, 0x58, 0x02, 0x55, 0x9c, 0x85, 0x4d, 0x3c, 0xd8, 0xec, |
| | | 0xf1, 0x30, 0x89, 0xc7, 0x42, 0x41, 0xfc, 0x41, 0x5e, 0xa5, 0xdb, 0x6e, 0x72, 0x02, 0xd0, 0x4f, |
| | | 0xa2, 0xe9, 0xe0, 0x52, 0xb6, 0xc7, 0xae, 0x3b, 0xa6, 0x67, 0xed, 0xef, 0x94, 0xe9, 0xd0, 0x59, |
| | | 0xc8, 0x7b, 0x4c, 0x70, 0x19, 0xc3, 0x52, 0x2e, 0x83, 0xa8, 0x26, 0x58, 0x5d, 0x4b, 0xf7, 0x9b, |
| | | 0x09, 0x30, 0xbc, 0xe6, 0x71, 0xd6, 0x67, 0xa3, 0xcf, 0x9c, 0x1c, 0xc3, 0xba, 0xba, 0x53, 0xd8, |
| | | 0x06, 0x5e, 0xf2, 0xb4, 0xbc, 0xa4, 0x0c, 0xcb, 0x9f, 0x2f, 0x86, 0x71, 0x96, 0xde, 0xd0, 0x42, |
| | | 0x41, 0x06, 0x00, 0x32, 0x91, 0x37, 0x69, 0x32, 0x9b, 0x0a, 0xbb, 0x86, 0xfa, 0xe7, 0x95, 0xfa, |
| | | 0x32, 0x4c, 0x21, 0x34, 0x1d, 0x39, 0x84, 0x06, 0x26, 0x27, 0x6c, 0x13, 0x09, 0x4e, 0x25, 0x41, |
| | | 0x85, 0x28, 0x75, 0x1e, 0xdf, 0x3e, 0x83, 0x0d, 0x3d, 0x31, 0xb2, 0x05, 0xe6, 0x15, 0xbf, 0xc1, |
| | | 0xe6, 0xad, 0x51, 0x79, 0x24, 0x1e, 0xd4, 0xaf, 0x59, 0x38, 0x53, 0xf3, 0x6b, 0xed, 0x93, 0x12, |
| | | 0x5d, 0xf4, 0x9d, 0xaa, 0x80, 0xa3, 0xda, 0xa1, 0xd1, 0xa6, 0xb0, 0x79, 0x2b, 0x51, 0x1d, 0xd9, |
| | | 0x52, 0xc8, 0x17, 0xcb, 0xc8, 0x07, 0x25, 0x12, 0x75, 0x12, 0xa0, 0x33, 0xdf, 0x81, 0xa5, 0xa5, |
| | | 0xae, 0xf3, 0x4c, 0xc5, 0xdb, 0x5d, 0xe6, 0x6d, 0x96, 0x3c, 0xd4, 0x69, 0x2c, 0xf7, 0x8f, 0x01, |
| | | 0x96, 0xca, 0x5a, 0x35, 0x6f, 0x4f, 0x6e, 0x61, 0x3e, 0xaf, 0xe6, 0x8a, 0xe7, 0xe5, 0x11, 0x64, |
| | | 0x58, 0xd1, 0xab, 0xdd, 0xdb, 0xf3, 0xfd, 0xef, 0x66, 0xed, 0x42, 0x1d, 0xd3, 0xc2, 0xd1, 0xae, |
| | | 0xca, 0x16, 0x7f, 0xfe, 0x47, 0x25, 0xdd, 0x79, 0x0d, 0x36, 0x4e, 0x27, 0x61, 0xc6, 0x53, 0xca, |
| | | 0xc5, 0x2c, 0xcc, 0xc8, 0x01, 0x34, 0xe5, 0x0e, 0xe0, 0x86, 0xa8, 0x85, 0x7d, 0xac, 0x3f, 0x48, |
| | | 0xfb, 0x7f, 0xa3, 0x8b, 0x40, 0x72, 0x04, 0x0d, 0x9c, 0xaa, 0xa2, 0x06, 0x6e, 0x29, 0xd1, 0xe1, |
| | | 0x6a, 0xf4, 0x8a, 0x79, 0x53, 0x06, 0x39, 0x29, 0x97, 0x45, 0x8d, 0xea, 0xb3, 0x15, 0xe2, 0xca, |
| | | 0x75, 0x69, 0xbf, 0x07, 0x4b, 0xa3, 0x56, 0x14, 0x64, 0x6f, 0xb9, 0x20, 0xdb, 0x55, 0x8b, 0xa0, |
| | | 0xcf, 0xd6, 0x87, 0xd5, 0xf3, 0x9f, 0x13, 0x5f, 0x2e, 0x13, 0x1f, 0x56, 0x36, 0x5c, 0x43, 0xf6, |
| | | 0x76, 0xbe, 0xcf, 0x3b, 0xc6, 0x8f, 0x79, 0xc7, 0xf8, 0x39, 0xef, 0x18, 0x5f, 0x7f, 0x75, 0xee, |
| | | 0x7c, 0xb4, 0xba, 0xaf, 0x8e, 0x0b, 0xd5, 0x65, 0x03, 0x4f, 0x07, 0x7f, 0x03, 0x00, 0x00, 0xff, |
| | | 0xff, 0x48, 0x0f, 0xda, 0x74, 0x86, 0x06, 0x00, 0x00, |
| | | } |
| | | |
| | | func (m *TaskBasicInfo) Marshal() (dAtA []byte, err error) { |
| | | size := m.Size() |
| | | dAtA = make([]byte, size) |
| | | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return dAtA[:n], nil |
| | | } |
| | | |
| | | func (m *TaskBasicInfo) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *TaskBasicInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if m.XXX_unrecognized != nil { |
| | | i -= len(m.XXX_unrecognized) |
| | | copy(dAtA[i:], m.XXX_unrecognized) |
| | | } |
| | | if len(m.FileId) > 0 { |
| | | i -= len(m.FileId) |
| | | copy(dAtA[i:], m.FileId) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(m.FileId))) |
| | | i-- |
| | | dAtA[i] = 0x4a |
| | | } |
| | | if m.IsEndRecord { |
| | | i-- |
| | | if m.IsEndRecord { |
| | | dAtA[i] = 1 |
| | | } else { |
| | | dAtA[i] = 0 |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x40 |
| | | } |
| | | if len(m.ImageTime) > 0 { |
| | | i -= len(m.ImageTime) |
| | | copy(dAtA[i:], m.ImageTime) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(m.ImageTime))) |
| | | i-- |
| | | dAtA[i] = 0x3a |
| | | } |
| | | if m.ImageId != 0 { |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(m.ImageId)) |
| | | i-- |
| | | dAtA[i] = 0x30 |
| | | } |
| | | if len(m.HandleTime) > 0 { |
| | | i -= len(m.HandleTime) |
| | | copy(dAtA[i:], m.HandleTime) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(m.HandleTime))) |
| | | i-- |
| | | dAtA[i] = 0x2a |
| | | } |
| | | if len(m.TaskName) > 0 { |
| | | i -= len(m.TaskName) |
| | | copy(dAtA[i:], m.TaskName) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(m.TaskName))) |
| | | i-- |
| | | dAtA[i] = 0x22 |
| | | } |
| | | if len(m.TaskID) > 0 { |
| | | i -= len(m.TaskID) |
| | | copy(dAtA[i:], m.TaskID) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(m.TaskID))) |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | } |
| | | if len(m.CamName) > 0 { |
| | | i -= len(m.CamName) |
| | | copy(dAtA[i:], m.CamName) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(m.CamName))) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | if len(m.CamId) > 0 { |
| | | i -= len(m.CamId) |
| | | copy(dAtA[i:], m.CamId) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(m.CamId))) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | } |
| | | return len(dAtA) - i, nil |
| | | } |
| | | |
| | | func (m *SoTarget) Marshal() (dAtA []byte, err error) { |
| | | size := m.Size() |
| | | dAtA = make([]byte, size) |
| | | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return dAtA[:n], nil |
| | | } |
| | | |
| | | func (m *SoTarget) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *SoTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if m.XXX_unrecognized != nil { |
| | | i -= len(m.XXX_unrecognized) |
| | | copy(dAtA[i:], m.XXX_unrecognized) |
| | | } |
| | | if m.ImageId != 0 { |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(m.ImageId)) |
| | | i-- |
| | | dAtA[i] = 0x30 |
| | | } |
| | | if len(m.CompDbInfo) > 0 { |
| | | for iNdEx := len(m.CompDbInfo) - 1; iNdEx >= 0; iNdEx-- { |
| | | { |
| | | size, err := m.CompDbInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x2a |
| | | } |
| | | } |
| | | if len(m.BelongsTargetID) > 0 { |
| | | i -= len(m.BelongsTargetID) |
| | | copy(dAtA[i:], m.BelongsTargetID) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(m.BelongsTargetID))) |
| | | i-- |
| | | dAtA[i] = 0x22 |
| | | } |
| | | if len(m.AreaName) > 0 { |
| | | i -= len(m.AreaName) |
| | | copy(dAtA[i:], m.AreaName) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(m.AreaName))) |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | } |
| | | if len(m.AreaId) > 0 { |
| | | i -= len(m.AreaId) |
| | | copy(dAtA[i:], m.AreaId) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(m.AreaId))) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | if m.SrcTarget != nil { |
| | | { |
| | | size, err := m.SrcTarget.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | } |
| | | return len(dAtA) - i, nil |
| | | } |
| | | |
| | | func (m *EventCache) Marshal() (dAtA []byte, err error) { |
| | | size := m.Size() |
| | | dAtA = make([]byte, size) |
| | | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return dAtA[:n], nil |
| | | } |
| | | |
| | | func (m *EventCache) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *EventCache) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if m.XXX_unrecognized != nil { |
| | | i -= len(m.XXX_unrecognized) |
| | | copy(dAtA[i:], m.XXX_unrecognized) |
| | | } |
| | | if len(m.Images) > 0 { |
| | | for k := range m.Images { |
| | | v := m.Images[k] |
| | | baseI := i |
| | | if v != nil { |
| | | { |
| | | size, err := v.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(k)) |
| | | i-- |
| | | dAtA[i] = 0x8 |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(baseI-i)) |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | } |
| | | } |
| | | if len(m.RuleGroups) > 0 { |
| | | for k := range m.RuleGroups { |
| | | v := m.RuleGroups[k] |
| | | baseI := i |
| | | if v != nil { |
| | | { |
| | | size, err := v.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | i -= len(k) |
| | | copy(dAtA[i:], k) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(k))) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(baseI-i)) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | } |
| | | if len(m.Targets) > 0 { |
| | | for k := range m.Targets { |
| | | v := m.Targets[k] |
| | | baseI := i |
| | | if v != nil { |
| | | { |
| | | size, err := v.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(k)) |
| | | i-- |
| | | dAtA[i] = 0x8 |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(baseI-i)) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | } |
| | | } |
| | | return len(dAtA) - i, nil |
| | | } |
| | | |
| | | func (m *TargetCache) Marshal() (dAtA []byte, err error) { |
| | | size := m.Size() |
| | | dAtA = make([]byte, size) |
| | | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return dAtA[:n], nil |
| | | } |
| | | |
| | | func (m *TargetCache) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *TargetCache) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if m.XXX_unrecognized != nil { |
| | | i -= len(m.XXX_unrecognized) |
| | | copy(dAtA[i:], m.XXX_unrecognized) |
| | | } |
| | | if m.Image != nil { |
| | | { |
| | | size, err := m.Image.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | } |
| | | if len(m.RuleGroups) > 0 { |
| | | for k := range m.RuleGroups { |
| | | v := m.RuleGroups[k] |
| | | baseI := i |
| | | if v != nil { |
| | | { |
| | | size, err := v.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | i -= len(k) |
| | | copy(dAtA[i:], k) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(k))) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(baseI-i)) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | } |
| | | if len(m.Target) > 0 { |
| | | for iNdEx := len(m.Target) - 1; iNdEx >= 0; iNdEx-- { |
| | | { |
| | | size, err := m.Target[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | } |
| | | } |
| | | return len(dAtA) - i, nil |
| | | } |
| | | |
| | | func (m *FilterResult) Marshal() (dAtA []byte, err error) { |
| | | size := m.Size() |
| | | dAtA = make([]byte, size) |
| | | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return dAtA[:n], nil |
| | | } |
| | | |
| | | func (m *FilterResult) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *FilterResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if m.XXX_unrecognized != nil { |
| | | i -= len(m.XXX_unrecognized) |
| | | copy(dAtA[i:], m.XXX_unrecognized) |
| | | } |
| | | if len(m.Targets) > 0 { |
| | | for k := range m.Targets { |
| | | v := m.Targets[k] |
| | | baseI := i |
| | | if v != nil { |
| | | { |
| | | size, err := v.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | i -= len(k) |
| | | copy(dAtA[i:], k) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(k))) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(baseI-i)) |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | } |
| | | } |
| | | if len(m.Events) > 0 { |
| | | for k := range m.Events { |
| | | v := m.Events[k] |
| | | baseI := i |
| | | if v != nil { |
| | | { |
| | | size, err := v.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | i -= len(k) |
| | | copy(dAtA[i:], k) |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(len(k))) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(baseI-i)) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | } |
| | | if m.BaseInfo != nil { |
| | | { |
| | | size, err := m.BaseInfo.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintDataprocess(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | } |
| | | return len(dAtA) - i, nil |
| | | } |
| | | |
| | | func encodeVarintDataprocess(dAtA []byte, offset int, v uint64) int { |
| | | offset -= sovDataprocess(v) |
| | | base := offset |
| | | for v >= 1<<7 { |
| | | dAtA[offset] = uint8(v&0x7f | 0x80) |
| | | v >>= 7 |
| | | offset++ |
| | | } |
| | | dAtA[offset] = uint8(v) |
| | | return base |
| | | } |
| | | func (m *TaskBasicInfo) Size() (n int) { |
| | | if m == nil { |
| | | return 0 |
| | | } |
| | | var l int |
| | | _ = l |
| | | l = len(m.CamId) |
| | | if l > 0 { |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | l = len(m.CamName) |
| | | if l > 0 { |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | l = len(m.TaskID) |
| | | if l > 0 { |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | l = len(m.TaskName) |
| | | if l > 0 { |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | l = len(m.HandleTime) |
| | | if l > 0 { |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | if m.ImageId != 0 { |
| | | n += 1 + sovDataprocess(uint64(m.ImageId)) |
| | | } |
| | | l = len(m.ImageTime) |
| | | if l > 0 { |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | if m.IsEndRecord { |
| | | n += 2 |
| | | } |
| | | l = len(m.FileId) |
| | | if l > 0 { |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | if m.XXX_unrecognized != nil { |
| | | n += len(m.XXX_unrecognized) |
| | | } |
| | | return n |
| | | } |
| | | |
| | | func (m *SoTarget) Size() (n int) { |
| | | if m == nil { |
| | | return 0 |
| | | } |
| | | var l int |
| | | _ = l |
| | | if m.SrcTarget != nil { |
| | | l = m.SrcTarget.Size() |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | l = len(m.AreaId) |
| | | if l > 0 { |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | l = len(m.AreaName) |
| | | if l > 0 { |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | l = len(m.BelongsTargetID) |
| | | if l > 0 { |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | if len(m.CompDbInfo) > 0 { |
| | | for _, e := range m.CompDbInfo { |
| | | l = e.Size() |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | } |
| | | if m.ImageId != 0 { |
| | | n += 1 + sovDataprocess(uint64(m.ImageId)) |
| | | } |
| | | if m.XXX_unrecognized != nil { |
| | | n += len(m.XXX_unrecognized) |
| | | } |
| | | return n |
| | | } |
| | | |
| | | func (m *EventCache) Size() (n int) { |
| | | if m == nil { |
| | | return 0 |
| | | } |
| | | var l int |
| | | _ = l |
| | | if len(m.Targets) > 0 { |
| | | for k, v := range m.Targets { |
| | | _ = k |
| | | _ = v |
| | | l = 0 |
| | | if v != nil { |
| | | l = v.Size() |
| | | l += 1 + sovDataprocess(uint64(l)) |
| | | } |
| | | mapEntrySize := 1 + sovDataprocess(uint64(k)) + l |
| | | n += mapEntrySize + 1 + sovDataprocess(uint64(mapEntrySize)) |
| | | } |
| | | } |
| | | if len(m.RuleGroups) > 0 { |
| | | for k, v := range m.RuleGroups { |
| | | _ = k |
| | | _ = v |
| | | l = 0 |
| | | if v != nil { |
| | | l = v.Size() |
| | | l += 1 + sovDataprocess(uint64(l)) |
| | | } |
| | | mapEntrySize := 1 + len(k) + sovDataprocess(uint64(len(k))) + l |
| | | n += mapEntrySize + 1 + sovDataprocess(uint64(mapEntrySize)) |
| | | } |
| | | } |
| | | if len(m.Images) > 0 { |
| | | for k, v := range m.Images { |
| | | _ = k |
| | | _ = v |
| | | l = 0 |
| | | if v != nil { |
| | | l = v.Size() |
| | | l += 1 + sovDataprocess(uint64(l)) |
| | | } |
| | | mapEntrySize := 1 + sovDataprocess(uint64(k)) + l |
| | | n += mapEntrySize + 1 + sovDataprocess(uint64(mapEntrySize)) |
| | | } |
| | | } |
| | | if m.XXX_unrecognized != nil { |
| | | n += len(m.XXX_unrecognized) |
| | | } |
| | | return n |
| | | } |
| | | |
| | | func (m *TargetCache) Size() (n int) { |
| | | if m == nil { |
| | | return 0 |
| | | } |
| | | var l int |
| | | _ = l |
| | | if len(m.Target) > 0 { |
| | | for _, e := range m.Target { |
| | | l = e.Size() |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | } |
| | | if len(m.RuleGroups) > 0 { |
| | | for k, v := range m.RuleGroups { |
| | | _ = k |
| | | _ = v |
| | | l = 0 |
| | | if v != nil { |
| | | l = v.Size() |
| | | l += 1 + sovDataprocess(uint64(l)) |
| | | } |
| | | mapEntrySize := 1 + len(k) + sovDataprocess(uint64(len(k))) + l |
| | | n += mapEntrySize + 1 + sovDataprocess(uint64(mapEntrySize)) |
| | | } |
| | | } |
| | | if m.Image != nil { |
| | | l = m.Image.Size() |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | if m.XXX_unrecognized != nil { |
| | | n += len(m.XXX_unrecognized) |
| | | } |
| | | return n |
| | | } |
| | | |
| | | func (m *FilterResult) Size() (n int) { |
| | | if m == nil { |
| | | return 0 |
| | | } |
| | | var l int |
| | | _ = l |
| | | if m.BaseInfo != nil { |
| | | l = m.BaseInfo.Size() |
| | | n += 1 + l + sovDataprocess(uint64(l)) |
| | | } |
| | | if len(m.Events) > 0 { |
| | | for k, v := range m.Events { |
| | | _ = k |
| | | _ = v |
| | | l = 0 |
| | | if v != nil { |
| | | l = v.Size() |
| | | l += 1 + sovDataprocess(uint64(l)) |
| | | } |
| | | mapEntrySize := 1 + len(k) + sovDataprocess(uint64(len(k))) + l |
| | | n += mapEntrySize + 1 + sovDataprocess(uint64(mapEntrySize)) |
| | | } |
| | | } |
| | | if len(m.Targets) > 0 { |
| | | for k, v := range m.Targets { |
| | | _ = k |
| | | _ = v |
| | | l = 0 |
| | | if v != nil { |
| | | l = v.Size() |
| | | l += 1 + sovDataprocess(uint64(l)) |
| | | } |
| | | mapEntrySize := 1 + len(k) + sovDataprocess(uint64(len(k))) + l |
| | | n += mapEntrySize + 1 + sovDataprocess(uint64(mapEntrySize)) |
| | | } |
| | | } |
| | | if m.XXX_unrecognized != nil { |
| | | n += len(m.XXX_unrecognized) |
| | | } |
| | | return n |
| | | } |
| | | |
| | | func sovDataprocess(x uint64) (n int) { |
| | | return (math_bits.Len64(x|1) + 6) / 7 |
| | | } |
| | | func sozDataprocess(x uint64) (n int) { |
| | | return sovDataprocess(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| | | } |
| | | func (m *TaskBasicInfo) Unmarshal(dAtA []byte) error { |
| | | l := len(dAtA) |
| | | iNdEx := 0 |
| | | for iNdEx < l { |
| | | preIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | wireType := int(wire & 0x7) |
| | | if wireType == 4 { |
| | | return fmt.Errorf("proto: TaskBasicInfo: wiretype end group for non-group") |
| | | } |
| | | if fieldNum <= 0 { |
| | | return fmt.Errorf("proto: TaskBasicInfo: illegal tag %d (wire type %d)", fieldNum, wire) |
| | | } |
| | | switch fieldNum { |
| | | case 1: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field CamId", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.CamId = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 2: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field CamName", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.CamName = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 3: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field TaskID", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.TaskID = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 4: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field TaskName", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.TaskName = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 5: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field HandleTime", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.HandleTime = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 6: |
| | | if wireType != 0 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field ImageId", wireType) |
| | | } |
| | | m.ImageId = 0 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | m.ImageId |= int64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | case 7: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field ImageTime", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.ImageTime = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 8: |
| | | if wireType != 0 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field IsEndRecord", wireType) |
| | | } |
| | | var v int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | v |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | m.IsEndRecord = bool(v != 0) |
| | | case 9: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field FileId", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.FileId = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | default: |
| | | iNdEx = preIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | |
| | | if iNdEx > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | return nil |
| | | } |
| | | func (m *SoTarget) Unmarshal(dAtA []byte) error { |
| | | l := len(dAtA) |
| | | iNdEx := 0 |
| | | for iNdEx < l { |
| | | preIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | wireType := int(wire & 0x7) |
| | | if wireType == 4 { |
| | | return fmt.Errorf("proto: SoTarget: wiretype end group for non-group") |
| | | } |
| | | if fieldNum <= 0 { |
| | | return fmt.Errorf("proto: SoTarget: illegal tag %d (wire type %d)", fieldNum, wire) |
| | | } |
| | | switch fieldNum { |
| | | case 1: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field SrcTarget", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | if m.SrcTarget == nil { |
| | | m.SrcTarget = &Target{} |
| | | } |
| | | if err := m.SrcTarget.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postIndex |
| | | case 2: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field AreaId", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.AreaId = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 3: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field AreaName", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.AreaName = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 4: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field BelongsTargetID", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.BelongsTargetID = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 5: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field CompDbInfo", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.CompDbInfo = append(m.CompDbInfo, &RuleBaseCompareInfo{}) |
| | | if err := m.CompDbInfo[len(m.CompDbInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postIndex |
| | | case 6: |
| | | if wireType != 0 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field ImageId", wireType) |
| | | } |
| | | m.ImageId = 0 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | m.ImageId |= int64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | default: |
| | | iNdEx = preIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | |
| | | if iNdEx > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | return nil |
| | | } |
| | | func (m *EventCache) Unmarshal(dAtA []byte) error { |
| | | l := len(dAtA) |
| | | iNdEx := 0 |
| | | for iNdEx < l { |
| | | preIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | wireType := int(wire & 0x7) |
| | | if wireType == 4 { |
| | | return fmt.Errorf("proto: EventCache: wiretype end group for non-group") |
| | | } |
| | | if fieldNum <= 0 { |
| | | return fmt.Errorf("proto: EventCache: illegal tag %d (wire type %d)", fieldNum, wire) |
| | | } |
| | | switch fieldNum { |
| | | case 1: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | if m.Targets == nil { |
| | | m.Targets = make(map[uint64]*SoTarget) |
| | | } |
| | | var mapkey uint64 |
| | | var mapvalue *SoTarget |
| | | for iNdEx < postIndex { |
| | | entryPreIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | if fieldNum == 1 { |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | mapkey |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | } else if fieldNum == 2 { |
| | | var mapmsglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | mapmsglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if mapmsglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postmsgIndex := iNdEx + mapmsglen |
| | | if postmsgIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postmsgIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | mapvalue = &SoTarget{} |
| | | if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postmsgIndex |
| | | } else { |
| | | iNdEx = entryPreIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > postIndex { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | m.Targets[mapkey] = mapvalue |
| | | iNdEx = postIndex |
| | | case 2: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field RuleGroups", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | if m.RuleGroups == nil { |
| | | m.RuleGroups = make(map[string]*GroupRule) |
| | | } |
| | | var mapkey string |
| | | var mapvalue *GroupRule |
| | | for iNdEx < postIndex { |
| | | entryPreIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | if fieldNum == 1 { |
| | | var stringLenmapkey uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLenmapkey |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLenmapkey := int(stringLenmapkey) |
| | | if intStringLenmapkey < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| | | if postStringIndexmapkey < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postStringIndexmapkey > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| | | iNdEx = postStringIndexmapkey |
| | | } else if fieldNum == 2 { |
| | | var mapmsglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | mapmsglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if mapmsglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postmsgIndex := iNdEx + mapmsglen |
| | | if postmsgIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postmsgIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | mapvalue = &GroupRule{} |
| | | if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postmsgIndex |
| | | } else { |
| | | iNdEx = entryPreIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > postIndex { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | m.RuleGroups[mapkey] = mapvalue |
| | | iNdEx = postIndex |
| | | case 3: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | if m.Images == nil { |
| | | m.Images = make(map[int64]*Image) |
| | | } |
| | | var mapkey int64 |
| | | var mapvalue *Image |
| | | for iNdEx < postIndex { |
| | | entryPreIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | if fieldNum == 1 { |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | mapkey |= int64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | } else if fieldNum == 2 { |
| | | var mapmsglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | mapmsglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if mapmsglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postmsgIndex := iNdEx + mapmsglen |
| | | if postmsgIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postmsgIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | mapvalue = &Image{} |
| | | if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postmsgIndex |
| | | } else { |
| | | iNdEx = entryPreIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > postIndex { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | m.Images[mapkey] = mapvalue |
| | | iNdEx = postIndex |
| | | default: |
| | | iNdEx = preIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | |
| | | if iNdEx > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | return nil |
| | | } |
| | | func (m *TargetCache) Unmarshal(dAtA []byte) error { |
| | | l := len(dAtA) |
| | | iNdEx := 0 |
| | | for iNdEx < l { |
| | | preIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | wireType := int(wire & 0x7) |
| | | if wireType == 4 { |
| | | return fmt.Errorf("proto: TargetCache: wiretype end group for non-group") |
| | | } |
| | | if fieldNum <= 0 { |
| | | return fmt.Errorf("proto: TargetCache: illegal tag %d (wire type %d)", fieldNum, wire) |
| | | } |
| | | switch fieldNum { |
| | | case 1: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.Target = append(m.Target, &SoTarget{}) |
| | | if err := m.Target[len(m.Target)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postIndex |
| | | case 2: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field RuleGroups", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | if m.RuleGroups == nil { |
| | | m.RuleGroups = make(map[string]*GroupRule) |
| | | } |
| | | var mapkey string |
| | | var mapvalue *GroupRule |
| | | for iNdEx < postIndex { |
| | | entryPreIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | if fieldNum == 1 { |
| | | var stringLenmapkey uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLenmapkey |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLenmapkey := int(stringLenmapkey) |
| | | if intStringLenmapkey < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| | | if postStringIndexmapkey < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postStringIndexmapkey > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| | | iNdEx = postStringIndexmapkey |
| | | } else if fieldNum == 2 { |
| | | var mapmsglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | mapmsglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if mapmsglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postmsgIndex := iNdEx + mapmsglen |
| | | if postmsgIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postmsgIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | mapvalue = &GroupRule{} |
| | | if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postmsgIndex |
| | | } else { |
| | | iNdEx = entryPreIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > postIndex { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | m.RuleGroups[mapkey] = mapvalue |
| | | iNdEx = postIndex |
| | | case 3: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | if m.Image == nil { |
| | | m.Image = &Image{} |
| | | } |
| | | if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postIndex |
| | | default: |
| | | iNdEx = preIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | |
| | | if iNdEx > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | return nil |
| | | } |
| | | func (m *FilterResult) Unmarshal(dAtA []byte) error { |
| | | l := len(dAtA) |
| | | iNdEx := 0 |
| | | for iNdEx < l { |
| | | preIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | wireType := int(wire & 0x7) |
| | | if wireType == 4 { |
| | | return fmt.Errorf("proto: FilterResult: wiretype end group for non-group") |
| | | } |
| | | if fieldNum <= 0 { |
| | | return fmt.Errorf("proto: FilterResult: illegal tag %d (wire type %d)", fieldNum, wire) |
| | | } |
| | | switch fieldNum { |
| | | case 1: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field BaseInfo", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | if m.BaseInfo == nil { |
| | | m.BaseInfo = &TaskBasicInfo{} |
| | | } |
| | | if err := m.BaseInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postIndex |
| | | case 2: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | if m.Events == nil { |
| | | m.Events = make(map[string]*EventCache) |
| | | } |
| | | var mapkey string |
| | | var mapvalue *EventCache |
| | | for iNdEx < postIndex { |
| | | entryPreIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | if fieldNum == 1 { |
| | | var stringLenmapkey uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLenmapkey |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLenmapkey := int(stringLenmapkey) |
| | | if intStringLenmapkey < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| | | if postStringIndexmapkey < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postStringIndexmapkey > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| | | iNdEx = postStringIndexmapkey |
| | | } else if fieldNum == 2 { |
| | | var mapmsglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | mapmsglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if mapmsglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postmsgIndex := iNdEx + mapmsglen |
| | | if postmsgIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postmsgIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | mapvalue = &EventCache{} |
| | | if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postmsgIndex |
| | | } else { |
| | | iNdEx = entryPreIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > postIndex { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | m.Events[mapkey] = mapvalue |
| | | iNdEx = postIndex |
| | | case 3: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | if m.Targets == nil { |
| | | m.Targets = make(map[string]*TargetCache) |
| | | } |
| | | var mapkey string |
| | | var mapvalue *TargetCache |
| | | for iNdEx < postIndex { |
| | | entryPreIndex := iNdEx |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | fieldNum := int32(wire >> 3) |
| | | if fieldNum == 1 { |
| | | var stringLenmapkey uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLenmapkey |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLenmapkey := int(stringLenmapkey) |
| | | if intStringLenmapkey < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| | | if postStringIndexmapkey < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postStringIndexmapkey > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| | | iNdEx = postStringIndexmapkey |
| | | } else if fieldNum == 2 { |
| | | var mapmsglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | mapmsglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if mapmsglen < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | postmsgIndex := iNdEx + mapmsglen |
| | | if postmsgIndex < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if postmsgIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | mapvalue = &TargetCache{} |
| | | if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postmsgIndex |
| | | } else { |
| | | iNdEx = entryPreIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > postIndex { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | m.Targets[mapkey] = mapvalue |
| | | iNdEx = postIndex |
| | | default: |
| | | iNdEx = preIndex |
| | | skippy, err := skipDataprocess(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| | | return ErrInvalidLengthDataprocess |
| | | } |
| | | if (iNdEx + skippy) > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | |
| | | if iNdEx > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | return nil |
| | | } |
| | | func skipDataprocess(dAtA []byte) (n int, err error) { |
| | | l := len(dAtA) |
| | | iNdEx := 0 |
| | | depth := 0 |
| | | for iNdEx < l { |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return 0, ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return 0, io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | wire |= (uint64(b) & 0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | wireType := int(wire & 0x7) |
| | | switch wireType { |
| | | case 0: |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return 0, ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return 0, io.ErrUnexpectedEOF |
| | | } |
| | | iNdEx++ |
| | | if dAtA[iNdEx-1] < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | case 1: |
| | | iNdEx += 8 |
| | | case 2: |
| | | var length int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return 0, ErrIntOverflowDataprocess |
| | | } |
| | | if iNdEx >= l { |
| | | return 0, io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | length |= (int(b) & 0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if length < 0 { |
| | | return 0, ErrInvalidLengthDataprocess |
| | | } |
| | | iNdEx += length |
| | | case 3: |
| | | depth++ |
| | | case 4: |
| | | if depth == 0 { |
| | | return 0, ErrUnexpectedEndOfGroupDataprocess |
| | | } |
| | | depth-- |
| | | case 5: |
| | | iNdEx += 4 |
| | | default: |
| | | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| | | } |
| | | if iNdEx < 0 { |
| | | return 0, ErrInvalidLengthDataprocess |
| | | } |
| | | if depth == 0 { |
| | | return iNdEx, nil |
| | | } |
| | | } |
| | | return 0, io.ErrUnexpectedEOF |
| | | } |
| | | |
| | | var ( |
| | | file_dataprocess_proto_rawDescOnce sync.Once |
| | | file_dataprocess_proto_rawDescData = file_dataprocess_proto_rawDesc |
| | | ErrInvalidLengthDataprocess = fmt.Errorf("proto: negative length found during unmarshaling") |
| | | ErrIntOverflowDataprocess = fmt.Errorf("proto: integer overflow") |
| | | ErrUnexpectedEndOfGroupDataprocess = fmt.Errorf("proto: unexpected end of group") |
| | | ) |
| | | |
| | | func file_dataprocess_proto_rawDescGZIP() []byte { |
| | | file_dataprocess_proto_rawDescOnce.Do(func() { |
| | | file_dataprocess_proto_rawDescData = protoimpl.X.CompressGZIP(file_dataprocess_proto_rawDescData) |
| | | }) |
| | | return file_dataprocess_proto_rawDescData |
| | | } |
| | | |
| | | var file_dataprocess_proto_msgTypes = make([]protoimpl.MessageInfo, 11) |
| | | var file_dataprocess_proto_goTypes = []interface{}{ |
| | | (*TaskBasicInfo)(nil), // 0: protomsg.TaskBasicInfo |
| | | (*SoTarget)(nil), // 1: protomsg.SoTarget |
| | | (*EventCache)(nil), // 2: protomsg.EventCache |
| | | (*TargetCache)(nil), // 3: protomsg.TargetCache |
| | | (*FilterResult)(nil), // 4: protomsg.FilterResult |
| | | nil, // 5: protomsg.EventCache.TargetsEntry |
| | | nil, // 6: protomsg.EventCache.RuleGroupsEntry |
| | | nil, // 7: protomsg.EventCache.ImagesEntry |
| | | nil, // 8: protomsg.TargetCache.RuleGroupsEntry |
| | | nil, // 9: protomsg.FilterResult.EventsEntry |
| | | nil, // 10: protomsg.FilterResult.TargetsEntry |
| | | (*Target)(nil), // 11: protomsg.Target |
| | | (*RuleBaseCompareInfo)(nil), // 12: protomsg.RuleBaseCompareInfo |
| | | (*Image)(nil), // 13: protomsg.Image |
| | | (*GroupRule)(nil), // 14: protomsg.GroupRule |
| | | } |
| | | var file_dataprocess_proto_depIdxs = []int32{ |
| | | 11, // 0: protomsg.SoTarget.SrcTarget:type_name -> protomsg.Target |
| | | 12, // 1: protomsg.SoTarget.CompDbInfo:type_name -> protomsg.RuleBaseCompareInfo |
| | | 5, // 2: protomsg.EventCache.Targets:type_name -> protomsg.EventCache.TargetsEntry |
| | | 6, // 3: protomsg.EventCache.RuleGroups:type_name -> protomsg.EventCache.RuleGroupsEntry |
| | | 7, // 4: protomsg.EventCache.Images:type_name -> protomsg.EventCache.ImagesEntry |
| | | 1, // 5: protomsg.TargetCache.Target:type_name -> protomsg.SoTarget |
| | | 8, // 6: protomsg.TargetCache.RuleGroups:type_name -> protomsg.TargetCache.RuleGroupsEntry |
| | | 13, // 7: protomsg.TargetCache.Image:type_name -> protomsg.Image |
| | | 0, // 8: protomsg.FilterResult.BaseInfo:type_name -> protomsg.TaskBasicInfo |
| | | 9, // 9: protomsg.FilterResult.Events:type_name -> protomsg.FilterResult.EventsEntry |
| | | 10, // 10: protomsg.FilterResult.Targets:type_name -> protomsg.FilterResult.TargetsEntry |
| | | 1, // 11: protomsg.EventCache.TargetsEntry.value:type_name -> protomsg.SoTarget |
| | | 14, // 12: protomsg.EventCache.RuleGroupsEntry.value:type_name -> protomsg.GroupRule |
| | | 13, // 13: protomsg.EventCache.ImagesEntry.value:type_name -> protomsg.Image |
| | | 14, // 14: protomsg.TargetCache.RuleGroupsEntry.value:type_name -> protomsg.GroupRule |
| | | 2, // 15: protomsg.FilterResult.EventsEntry.value:type_name -> protomsg.EventCache |
| | | 3, // 16: protomsg.FilterResult.TargetsEntry.value:type_name -> protomsg.TargetCache |
| | | 17, // [17:17] is the sub-list for method output_type |
| | | 17, // [17:17] is the sub-list for method input_type |
| | | 17, // [17:17] is the sub-list for extension type_name |
| | | 17, // [17:17] is the sub-list for extension extendee |
| | | 0, // [0:17] is the sub-list for field type_name |
| | | } |
| | | |
| | | func init() { file_dataprocess_proto_init() } |
| | | func file_dataprocess_proto_init() { |
| | | if File_dataprocess_proto != nil { |
| | | return |
| | | } |
| | | file_sdk_proto_init() |
| | | file_rule_proto_init() |
| | | file_protomsg_proto_init() |
| | | if !protoimpl.UnsafeEnabled { |
| | | file_dataprocess_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| | | switch v := v.(*TaskBasicInfo); i { |
| | | case 0: |
| | | return &v.state |
| | | case 1: |
| | | return &v.sizeCache |
| | | case 2: |
| | | return &v.unknownFields |
| | | default: |
| | | return nil |
| | | } |
| | | } |
| | | file_dataprocess_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| | | switch v := v.(*SoTarget); i { |
| | | case 0: |
| | | return &v.state |
| | | case 1: |
| | | return &v.sizeCache |
| | | case 2: |
| | | return &v.unknownFields |
| | | default: |
| | | return nil |
| | | } |
| | | } |
| | | file_dataprocess_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| | | switch v := v.(*EventCache); i { |
| | | case 0: |
| | | return &v.state |
| | | case 1: |
| | | return &v.sizeCache |
| | | case 2: |
| | | return &v.unknownFields |
| | | default: |
| | | return nil |
| | | } |
| | | } |
| | | file_dataprocess_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| | | switch v := v.(*TargetCache); i { |
| | | case 0: |
| | | return &v.state |
| | | case 1: |
| | | return &v.sizeCache |
| | | case 2: |
| | | return &v.unknownFields |
| | | default: |
| | | return nil |
| | | } |
| | | } |
| | | file_dataprocess_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| | | switch v := v.(*FilterResult); i { |
| | | case 0: |
| | | return &v.state |
| | | case 1: |
| | | return &v.sizeCache |
| | | case 2: |
| | | return &v.unknownFields |
| | | default: |
| | | return nil |
| | | } |
| | | } |
| | | } |
| | | type x struct{} |
| | | out := protoimpl.TypeBuilder{ |
| | | File: protoimpl.DescBuilder{ |
| | | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| | | RawDescriptor: file_dataprocess_proto_rawDesc, |
| | | NumEnums: 0, |
| | | NumMessages: 11, |
| | | NumExtensions: 0, |
| | | NumServices: 0, |
| | | }, |
| | | GoTypes: file_dataprocess_proto_goTypes, |
| | | DependencyIndexes: file_dataprocess_proto_depIdxs, |
| | | MessageInfos: file_dataprocess_proto_msgTypes, |
| | | }.Build() |
| | | File_dataprocess_proto = out.File |
| | | file_dataprocess_proto_rawDesc = nil |
| | | file_dataprocess_proto_goTypes = nil |
| | | file_dataprocess_proto_depIdxs = nil |
| | | } |