From fd8d6b7bbbd521b3164167ffa809b82b012f1030 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期一, 15 十一月 2021 17:55:02 +0800 Subject: [PATCH] 添加iconblob2字段 --- protomsg.pb.go | 15222 ++-------------------------------------------------------- 1 files changed, 754 insertions(+), 14,468 deletions(-) diff --git a/protomsg.pb.go b/protomsg.pb.go index b6e0793..93c3e21 100644 --- a/protomsg.pb.go +++ b/protomsg.pb.go @@ -1,15 +1,12 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: protomsg.proto package protomsg import ( - encoding_binary "encoding/binary" fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" + proto "github.com/golang/protobuf/proto" math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -21,7 +18,7 @@ // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package //TableChanged enum type TableChanged int32 @@ -174,9 +171,12 @@ //Area缁撴瀯浣� type Area struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Parentid int32 `protobuf:"varint,2,opt,name=parentid,proto3" json:"parentid,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Parentid int32 `protobuf:"varint,2,opt,name=parentid,proto3" json:"parentid,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Area) Reset() { *m = Area{} } @@ -185,26 +185,18 @@ func (*Area) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{0} } + func (m *Area) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Area.Unmarshal(m, b) } func (m *Area) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Area.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Area.Marshal(b, m, deterministic) } func (m *Area) XXX_Merge(src proto.Message) { xxx_messageInfo_Area.Merge(m, src) } func (m *Area) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Area.Size(m) } func (m *Area) XXX_DiscardUnknown() { xxx_messageInfo_Area.DiscardUnknown(m) @@ -235,34 +227,37 @@ //Camera缁撴瀯浣� type Camera struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` - SnapshotUrl string `protobuf:"bytes,4,opt,name=snapshot_url,json=snapshotUrl,proto3" json:"snapshot_url,omitempty"` - Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` - Addr string `protobuf:"bytes,6,opt,name=addr,proto3" json:"addr,omitempty"` - Longitude float32 `protobuf:"fixed32,7,opt,name=longitude,proto3" json:"longitude,omitempty"` - Latitude float32 `protobuf:"fixed32,8,opt,name=latitude,proto3" json:"latitude,omitempty"` - Floor int32 `protobuf:"varint,9,opt,name=floor,proto3" json:"floor,omitempty"` - Rtsp string `protobuf:"bytes,10,opt,name=rtsp,proto3" json:"rtsp,omitempty"` - Ip string `protobuf:"bytes,11,opt,name=ip,proto3" json:"ip,omitempty"` - Port int32 `protobuf:"varint,12,opt,name=port,proto3" json:"port,omitempty"` - Username string `protobuf:"bytes,13,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,14,opt,name=password,proto3" json:"password,omitempty"` - Brand string `protobuf:"bytes,15,opt,name=brand,proto3" json:"brand,omitempty"` - Reserved string `protobuf:"bytes,16,opt,name=reserved,proto3" json:"reserved,omitempty"` - IsRunning bool `protobuf:"varint,17,opt,name=is_running,json=isRunning,proto3" json:"is_running,omitempty"` - RunEnable bool `protobuf:"varint,18,opt,name=run_enable,json=runEnable,proto3" json:"run_enable,omitempty"` - RunType int32 `protobuf:"varint,19,opt,name=run_type,json=runType,proto3" json:"run_type,omitempty"` - RunServerId string `protobuf:"bytes,20,opt,name=run_server_id,json=runServerId,proto3" json:"run_server_id,omitempty"` - ResolutionWidth int32 `protobuf:"varint,21,opt,name=resolution_width,json=resolutionWidth,proto3" json:"resolution_width,omitempty"` - ResolutionHeight int32 `protobuf:"varint,22,opt,name=resolution_height,json=resolutionHeight,proto3" json:"resolution_height,omitempty"` - Fps int32 `protobuf:"varint,23,opt,name=fps,proto3" json:"fps,omitempty"` - Sensors []*Sensor `protobuf:"bytes,24,rep,name=sensors,proto3" json:"sensors,omitempty"` - VoiceEnable bool `protobuf:"varint,25,opt,name=voiceEnable,proto3" json:"voiceEnable,omitempty"` - VoiceId string `protobuf:"bytes,26,opt,name=voiceId,proto3" json:"voiceId,omitempty"` - CoordTransform string `protobuf:"bytes,27,opt,name=coordTransform,proto3" json:"coordTransform,omitempty"` - Status int32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` + SnapshotUrl string `protobuf:"bytes,4,opt,name=snapshot_url,json=snapshotUrl,proto3" json:"snapshot_url,omitempty"` + Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` + Addr string `protobuf:"bytes,6,opt,name=addr,proto3" json:"addr,omitempty"` + Longitude float32 `protobuf:"fixed32,7,opt,name=longitude,proto3" json:"longitude,omitempty"` + Latitude float32 `protobuf:"fixed32,8,opt,name=latitude,proto3" json:"latitude,omitempty"` + Floor int32 `protobuf:"varint,9,opt,name=floor,proto3" json:"floor,omitempty"` + Rtsp string `protobuf:"bytes,10,opt,name=rtsp,proto3" json:"rtsp,omitempty"` + Ip string `protobuf:"bytes,11,opt,name=ip,proto3" json:"ip,omitempty"` + Port int32 `protobuf:"varint,12,opt,name=port,proto3" json:"port,omitempty"` + Username string `protobuf:"bytes,13,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,14,opt,name=password,proto3" json:"password,omitempty"` + Brand string `protobuf:"bytes,15,opt,name=brand,proto3" json:"brand,omitempty"` + Reserved string `protobuf:"bytes,16,opt,name=reserved,proto3" json:"reserved,omitempty"` + IsRunning bool `protobuf:"varint,17,opt,name=is_running,json=isRunning,proto3" json:"is_running,omitempty"` + RunEnable bool `protobuf:"varint,18,opt,name=run_enable,json=runEnable,proto3" json:"run_enable,omitempty"` + RunType int32 `protobuf:"varint,19,opt,name=run_type,json=runType,proto3" json:"run_type,omitempty"` + RunServerId string `protobuf:"bytes,20,opt,name=run_server_id,json=runServerId,proto3" json:"run_server_id,omitempty"` + ResolutionWidth int32 `protobuf:"varint,21,opt,name=resolution_width,json=resolutionWidth,proto3" json:"resolution_width,omitempty"` + ResolutionHeight int32 `protobuf:"varint,22,opt,name=resolution_height,json=resolutionHeight,proto3" json:"resolution_height,omitempty"` + Fps int32 `protobuf:"varint,23,opt,name=fps,proto3" json:"fps,omitempty"` + Sensors []*Sensor `protobuf:"bytes,24,rep,name=sensors,proto3" json:"sensors,omitempty"` + VoiceEnable bool `protobuf:"varint,25,opt,name=voiceEnable,proto3" json:"voiceEnable,omitempty"` + VoiceId string `protobuf:"bytes,26,opt,name=voiceId,proto3" json:"voiceId,omitempty"` + CoordTransform string `protobuf:"bytes,27,opt,name=coordTransform,proto3" json:"coordTransform,omitempty"` + Status int32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Camera) Reset() { *m = Camera{} } @@ -271,26 +266,18 @@ func (*Camera) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{1} } + func (m *Camera) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Camera.Unmarshal(m, b) } func (m *Camera) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Camera.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Camera.Marshal(b, m, deterministic) } func (m *Camera) XXX_Merge(src proto.Message) { xxx_messageInfo_Camera.Merge(m, src) } func (m *Camera) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Camera.Size(m) } func (m *Camera) XXX_DiscardUnknown() { xxx_messageInfo_Camera.DiscardUnknown(m) @@ -495,14 +482,17 @@ } type Sensor struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` - Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` - Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` - Threshold int32 `protobuf:"varint,7,opt,name=threshold,proto3" json:"threshold,omitempty"` - Enable bool `protobuf:"varint,8,opt,name=enable,proto3" json:"enable,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` + Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` + Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` + Threshold int32 `protobuf:"varint,7,opt,name=threshold,proto3" json:"threshold,omitempty"` + Enable bool `protobuf:"varint,8,opt,name=enable,proto3" json:"enable,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Sensor) Reset() { *m = Sensor{} } @@ -511,26 +501,18 @@ func (*Sensor) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{2} } + func (m *Sensor) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Sensor.Unmarshal(m, b) } func (m *Sensor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Sensor.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Sensor.Marshal(b, m, deterministic) } func (m *Sensor) XXX_Merge(src proto.Message) { xxx_messageInfo_Sensor.Merge(m, src) } func (m *Sensor) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Sensor.Size(m) } func (m *Sensor) XXX_DiscardUnknown() { xxx_messageInfo_Sensor.DiscardUnknown(m) @@ -596,8 +578,11 @@ //鎽勫儚鏈鸿仈鍔� type CameraLink struct { - CameraIds string `protobuf:"bytes,1,opt,name=camera_ids,json=cameraIds,proto3" json:"camera_ids,omitempty"` - LinkTaskId string `protobuf:"bytes,2,opt,name=link_task_id,json=linkTaskId,proto3" json:"link_task_id,omitempty"` + CameraIds string `protobuf:"bytes,1,opt,name=camera_ids,json=cameraIds,proto3" json:"camera_ids,omitempty"` + LinkTaskId string `protobuf:"bytes,2,opt,name=link_task_id,json=linkTaskId,proto3" json:"link_task_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraLink) Reset() { *m = CameraLink{} } @@ -606,26 +591,18 @@ func (*CameraLink) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{3} } + func (m *CameraLink) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraLink.Unmarshal(m, b) } func (m *CameraLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraLink.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraLink.Marshal(b, m, deterministic) } func (m *CameraLink) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraLink.Merge(m, src) } func (m *CameraLink) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraLink.Size(m) } func (m *CameraLink) XXX_DiscardUnknown() { xxx_messageInfo_CameraLink.DiscardUnknown(m) @@ -648,12 +625,15 @@ } type SdkRun struct { - IpcId string `protobuf:"bytes,1,opt,name=ipc_id,json=ipcId,proto3" json:"ipc_id,omitempty"` - SdkType string `protobuf:"bytes,2,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` - IsTriggerByPreSdk int32 `protobuf:"varint,3,opt,name=isTriggerByPreSdk,proto3" json:"isTriggerByPreSdk,omitempty"` - Confidence int32 `protobuf:"varint,4,opt,name=confidence,proto3" json:"confidence,omitempty"` - BReid bool `protobuf:"varint,5,opt,name=bReid,proto3" json:"bReid,omitempty"` - TriggerNextSdkType int32 `protobuf:"varint,6,opt,name=triggerNextSdkType,proto3" json:"triggerNextSdkType,omitempty"` + IpcId string `protobuf:"bytes,1,opt,name=ipc_id,json=ipcId,proto3" json:"ipc_id,omitempty"` + SdkType string `protobuf:"bytes,2,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` + IsTriggerByPreSdk int32 `protobuf:"varint,3,opt,name=isTriggerByPreSdk,proto3" json:"isTriggerByPreSdk,omitempty"` + Confidence int32 `protobuf:"varint,4,opt,name=confidence,proto3" json:"confidence,omitempty"` + BReid bool `protobuf:"varint,5,opt,name=bReid,proto3" json:"bReid,omitempty"` + TriggerNextSdkType int32 `protobuf:"varint,6,opt,name=triggerNextSdkType,proto3" json:"triggerNextSdkType,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SdkRun) Reset() { *m = SdkRun{} } @@ -662,26 +642,18 @@ func (*SdkRun) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{4} } + func (m *SdkRun) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_SdkRun.Unmarshal(m, b) } func (m *SdkRun) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SdkRun.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_SdkRun.Marshal(b, m, deterministic) } func (m *SdkRun) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkRun.Merge(m, src) } func (m *SdkRun) XXX_Size() int { - return m.Size() + return xxx_messageInfo_SdkRun.Size(m) } func (m *SdkRun) XXX_DiscardUnknown() { xxx_messageInfo_SdkRun.DiscardUnknown(m) @@ -733,9 +705,12 @@ //鎽勫儚鏈哄竷闃茬殑鏃堕棿瑙勫垯锛屽彲浠ヨ缃涓�,鐢╥d鍏宠仈鍒板叿浣撶殑瑙勫垯閰嶇疆涓� type CameraTimerule struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - TimeRule string `protobuf:"bytes,3,opt,name=time_rule,json=timeRule,proto3" json:"time_rule,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TimeRule string `protobuf:"bytes,3,opt,name=time_rule,json=timeRule,proto3" json:"time_rule,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraTimerule) Reset() { *m = CameraTimerule{} } @@ -744,26 +719,18 @@ func (*CameraTimerule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{5} } + func (m *CameraTimerule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraTimerule.Unmarshal(m, b) } func (m *CameraTimerule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraTimerule.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraTimerule.Marshal(b, m, deterministic) } func (m *CameraTimerule) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraTimerule.Merge(m, src) } func (m *CameraTimerule) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraTimerule.Size(m) } func (m *CameraTimerule) XXX_DiscardUnknown() { xxx_messageInfo_CameraTimerule.DiscardUnknown(m) @@ -794,8 +761,11 @@ //DayCtl struct 姣忓ぉ鐨勬椂闂存帶鍒惰鍒� type DayCtl struct { - Day int32 `protobuf:"varint,1,opt,name=day,proto3" json:"day,omitempty"` - TimeRange []*TimeRange `protobuf:"bytes,2,rep,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"` + Day int32 `protobuf:"varint,1,opt,name=day,proto3" json:"day,omitempty"` + TimeRange []*TimeRange `protobuf:"bytes,2,rep,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DayCtl) Reset() { *m = DayCtl{} } @@ -804,26 +774,18 @@ func (*DayCtl) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{6} } + func (m *DayCtl) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_DayCtl.Unmarshal(m, b) } func (m *DayCtl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DayCtl.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_DayCtl.Marshal(b, m, deterministic) } func (m *DayCtl) XXX_Merge(src proto.Message) { xxx_messageInfo_DayCtl.Merge(m, src) } func (m *DayCtl) XXX_Size() int { - return m.Size() + return xxx_messageInfo_DayCtl.Size(m) } func (m *DayCtl) XXX_DiscardUnknown() { xxx_messageInfo_DayCtl.DiscardUnknown(m) @@ -847,8 +809,11 @@ //鏃堕棿璧峰鑼冨洿 type TimeRange struct { - Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` - End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` + Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` + End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TimeRange) Reset() { *m = TimeRange{} } @@ -857,26 +822,18 @@ func (*TimeRange) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{7} } + func (m *TimeRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_TimeRange.Unmarshal(m, b) } func (m *TimeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TimeRange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_TimeRange.Marshal(b, m, deterministic) } func (m *TimeRange) XXX_Merge(src proto.Message) { xxx_messageInfo_TimeRange.Merge(m, src) } func (m *TimeRange) XXX_Size() int { - return m.Size() + return xxx_messageInfo_TimeRange.Size(m) } func (m *TimeRange) XXX_DiscardUnknown() { xxx_messageInfo_TimeRange.DiscardUnknown(m) @@ -900,9 +857,12 @@ //Polygon struct type Polygon struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Points []*Point `protobuf:"bytes,3,rep,name=points,proto3" json:"points,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Points []*Point `protobuf:"bytes,3,rep,name=points,proto3" json:"points,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Polygon) Reset() { *m = Polygon{} } @@ -911,26 +871,18 @@ func (*Polygon) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{8} } + func (m *Polygon) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Polygon.Unmarshal(m, b) } func (m *Polygon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Polygon.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Polygon.Marshal(b, m, deterministic) } func (m *Polygon) XXX_Merge(src proto.Message) { xxx_messageInfo_Polygon.Merge(m, src) } func (m *Polygon) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Polygon.Size(m) } func (m *Polygon) XXX_DiscardUnknown() { xxx_messageInfo_Polygon.DiscardUnknown(m) @@ -960,10 +912,13 @@ } type CameraInfo struct { - RunServerName string `protobuf:"bytes,1,opt,name=runServerName,proto3" json:"runServerName,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - RunType int32 `protobuf:"varint,4,opt,name=run_type,json=runType,proto3" json:"run_type,omitempty"` + RunServerName string `protobuf:"bytes,1,opt,name=runServerName,proto3" json:"runServerName,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + RunType int32 `protobuf:"varint,4,opt,name=run_type,json=runType,proto3" json:"run_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraInfo) Reset() { *m = CameraInfo{} } @@ -972,26 +927,18 @@ func (*CameraInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{9} } + func (m *CameraInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraInfo.Unmarshal(m, b) } func (m *CameraInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraInfo.Marshal(b, m, deterministic) } func (m *CameraInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraInfo.Merge(m, src) } func (m *CameraInfo) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraInfo.Size(m) } func (m *CameraInfo) XXX_DiscardUnknown() { xxx_messageInfo_CameraInfo.DiscardUnknown(m) @@ -1028,8 +975,11 @@ } type CameraAndRules struct { - CameraInfo *CameraInfo `protobuf:"bytes,1,opt,name=cameraInfo,proto3" json:"cameraInfo,omitempty"` - Rules []*GroupRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` + CameraInfo *CameraInfo `protobuf:"bytes,1,opt,name=cameraInfo,proto3" json:"cameraInfo,omitempty"` + Rules []*GroupRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraAndRules) Reset() { *m = CameraAndRules{} } @@ -1038,26 +988,18 @@ func (*CameraAndRules) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{10} } + func (m *CameraAndRules) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraAndRules.Unmarshal(m, b) } func (m *CameraAndRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraAndRules.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraAndRules.Marshal(b, m, deterministic) } func (m *CameraAndRules) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraAndRules.Merge(m, src) } func (m *CameraAndRules) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraAndRules.Size(m) } func (m *CameraAndRules) XXX_DiscardUnknown() { xxx_messageInfo_CameraAndRules.DiscardUnknown(m) @@ -1080,19 +1022,22 @@ } type GroupRule struct { - CameraIds []string `protobuf:"bytes,1,rep,name=cameraIds,proto3" json:"cameraIds,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - GroupText string `protobuf:"bytes,3,opt,name=group_text,json=groupText,proto3" json:"group_text,omitempty"` - AlarmLevel int32 `protobuf:"varint,4,opt,name=alarm_level,json=alarmLevel,proto3" json:"alarm_level,omitempty"` - Rules []*Rule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"` - SetType string `protobuf:"bytes,6,opt,name=set_type,json=setType,proto3" json:"set_type,omitempty"` - TemplateId string `protobuf:"bytes,7,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` - TemplateRule string `protobuf:"bytes,8,opt,name=template_rule,json=templateRule,proto3" json:"template_rule,omitempty"` - TimeRuleId string `protobuf:"bytes,9,opt,name=time_rule_id,json=timeRuleId,proto3" json:"time_rule_id,omitempty"` - SceneName string `protobuf:"bytes,10,opt,name=scene_name,json=sceneName,proto3" json:"scene_name,omitempty"` - Desc string `protobuf:"bytes,11,opt,name=desc,proto3" json:"desc,omitempty"` - Enable bool `protobuf:"varint,12,opt,name=enable,proto3" json:"enable,omitempty"` - VoiceId string `protobuf:"bytes,13,opt,name=voiceId,proto3" json:"voiceId,omitempty"` + CameraIds []string `protobuf:"bytes,1,rep,name=cameraIds,proto3" json:"cameraIds,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + GroupText string `protobuf:"bytes,3,opt,name=group_text,json=groupText,proto3" json:"group_text,omitempty"` + AlarmLevel int32 `protobuf:"varint,4,opt,name=alarm_level,json=alarmLevel,proto3" json:"alarm_level,omitempty"` + Rules []*Rule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"` + SetType string `protobuf:"bytes,6,opt,name=set_type,json=setType,proto3" json:"set_type,omitempty"` + TemplateId string `protobuf:"bytes,7,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + TemplateRule string `protobuf:"bytes,8,opt,name=template_rule,json=templateRule,proto3" json:"template_rule,omitempty"` + TimeRuleId string `protobuf:"bytes,9,opt,name=time_rule_id,json=timeRuleId,proto3" json:"time_rule_id,omitempty"` + SceneName string `protobuf:"bytes,10,opt,name=scene_name,json=sceneName,proto3" json:"scene_name,omitempty"` + Desc string `protobuf:"bytes,11,opt,name=desc,proto3" json:"desc,omitempty"` + Enable bool `protobuf:"varint,12,opt,name=enable,proto3" json:"enable,omitempty"` + VoiceId string `protobuf:"bytes,13,opt,name=voiceId,proto3" json:"voiceId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GroupRule) Reset() { *m = GroupRule{} } @@ -1101,26 +1046,18 @@ func (*GroupRule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{11} } + func (m *GroupRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_GroupRule.Unmarshal(m, b) } func (m *GroupRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupRule.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_GroupRule.Marshal(b, m, deterministic) } func (m *GroupRule) XXX_Merge(src proto.Message) { xxx_messageInfo_GroupRule.Merge(m, src) } func (m *GroupRule) XXX_Size() int { - return m.Size() + return xxx_messageInfo_GroupRule.Size(m) } func (m *GroupRule) XXX_DiscardUnknown() { xxx_messageInfo_GroupRule.DiscardUnknown(m) @@ -1220,10 +1157,13 @@ } type GroupRuleSdks struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - SceneName string `protobuf:"bytes,2,opt,name=scene_name,json=sceneName,proto3" json:"scene_name,omitempty"` - Sdks []*SdkRun `protobuf:"bytes,3,rep,name=sdks,proto3" json:"sdks,omitempty"` - SdkIds []string `protobuf:"bytes,4,rep,name=sdkIds,proto3" json:"sdkIds,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + SceneName string `protobuf:"bytes,2,opt,name=scene_name,json=sceneName,proto3" json:"scene_name,omitempty"` + Sdks []*SdkRun `protobuf:"bytes,3,rep,name=sdks,proto3" json:"sdks,omitempty"` + SdkIds []string `protobuf:"bytes,4,rep,name=sdkIds,proto3" json:"sdkIds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GroupRuleSdks) Reset() { *m = GroupRuleSdks{} } @@ -1232,26 +1172,18 @@ func (*GroupRuleSdks) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{12} } + func (m *GroupRuleSdks) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_GroupRuleSdks.Unmarshal(m, b) } func (m *GroupRuleSdks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupRuleSdks.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_GroupRuleSdks.Marshal(b, m, deterministic) } func (m *GroupRuleSdks) XXX_Merge(src proto.Message) { xxx_messageInfo_GroupRuleSdks.Merge(m, src) } func (m *GroupRuleSdks) XXX_Size() int { - return m.Size() + return xxx_messageInfo_GroupRuleSdks.Size(m) } func (m *GroupRuleSdks) XXX_DiscardUnknown() { xxx_messageInfo_GroupRuleSdks.DiscardUnknown(m) @@ -1288,15 +1220,18 @@ } type Rule struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` - PolygonId string `protobuf:"bytes,3,opt,name=polygon_id,json=polygonId,proto3" json:"polygon_id,omitempty"` - SdkId string `protobuf:"bytes,4,opt,name=sdk_id,json=sdkId,proto3" json:"sdk_id,omitempty"` - SdkSet []*SdkSetBase `protobuf:"bytes,5,rep,name=sdk_set,json=sdkSet,proto3" json:"sdk_set,omitempty"` - RuleWithPre string `protobuf:"bytes,6,opt,name=rule_with_pre,json=ruleWithPre,proto3" json:"rule_with_pre,omitempty"` - IsSaveAnyhow bool `protobuf:"varint,7,opt,name=is_save_anyhow,json=isSaveAnyhow,proto3" json:"is_save_anyhow,omitempty"` - GroupId string `protobuf:"bytes,8,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - Sort int32 `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` + PolygonId string `protobuf:"bytes,3,opt,name=polygon_id,json=polygonId,proto3" json:"polygon_id,omitempty"` + SdkId string `protobuf:"bytes,4,opt,name=sdk_id,json=sdkId,proto3" json:"sdk_id,omitempty"` + SdkSet []*SdkSetBase `protobuf:"bytes,5,rep,name=sdk_set,json=sdkSet,proto3" json:"sdk_set,omitempty"` + RuleWithPre string `protobuf:"bytes,6,opt,name=rule_with_pre,json=ruleWithPre,proto3" json:"rule_with_pre,omitempty"` + IsSaveAnyhow bool `protobuf:"varint,7,opt,name=is_save_anyhow,json=isSaveAnyhow,proto3" json:"is_save_anyhow,omitempty"` + GroupId string `protobuf:"bytes,8,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + Sort int32 `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Rule) Reset() { *m = Rule{} } @@ -1305,26 +1240,18 @@ func (*Rule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{13} } + func (m *Rule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Rule.Unmarshal(m, b) } func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Rule.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Rule.Marshal(b, m, deterministic) } func (m *Rule) XXX_Merge(src proto.Message) { xxx_messageInfo_Rule.Merge(m, src) } func (m *Rule) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Rule.Size(m) } func (m *Rule) XXX_DiscardUnknown() { xxx_messageInfo_Rule.DiscardUnknown(m) @@ -1396,11 +1323,14 @@ } type RuleTemplate struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` - Txt string `protobuf:"bytes,4,opt,name=txt,proto3" json:"txt,omitempty"` - Rules []*TemplateArg `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` + Txt string `protobuf:"bytes,4,opt,name=txt,proto3" json:"txt,omitempty"` + Rules []*TemplateArg `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RuleTemplate) Reset() { *m = RuleTemplate{} } @@ -1409,26 +1339,18 @@ func (*RuleTemplate) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{14} } + func (m *RuleTemplate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_RuleTemplate.Unmarshal(m, b) } func (m *RuleTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RuleTemplate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_RuleTemplate.Marshal(b, m, deterministic) } func (m *RuleTemplate) XXX_Merge(src proto.Message) { xxx_messageInfo_RuleTemplate.Merge(m, src) } func (m *RuleTemplate) XXX_Size() int { - return m.Size() + return xxx_messageInfo_RuleTemplate.Size(m) } func (m *RuleTemplate) XXX_DiscardUnknown() { xxx_messageInfo_RuleTemplate.DiscardUnknown(m) @@ -1472,7 +1394,10 @@ } type RuleTemplateList struct { - List []*RuleTemplate `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + List []*RuleTemplate `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RuleTemplateList) Reset() { *m = RuleTemplateList{} } @@ -1481,26 +1406,18 @@ func (*RuleTemplateList) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{15} } + func (m *RuleTemplateList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_RuleTemplateList.Unmarshal(m, b) } func (m *RuleTemplateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RuleTemplateList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_RuleTemplateList.Marshal(b, m, deterministic) } func (m *RuleTemplateList) XXX_Merge(src proto.Message) { xxx_messageInfo_RuleTemplateList.Merge(m, src) } func (m *RuleTemplateList) XXX_Size() int { - return m.Size() + return xxx_messageInfo_RuleTemplateList.Size(m) } func (m *RuleTemplateList) XXX_DiscardUnknown() { xxx_messageInfo_RuleTemplateList.DiscardUnknown(m) @@ -1516,12 +1433,15 @@ } type TemplateArg struct { - SdkId string `protobuf:"bytes,1,opt,name=sdk_id,json=sdkId,proto3" json:"sdk_id,omitempty"` - SdkArgAlias string `protobuf:"bytes,2,opt,name=sdk_arg_alias,json=sdkArgAlias,proto3" json:"sdk_arg_alias,omitempty"` - Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` - SdkArgValue string `protobuf:"bytes,4,opt,name=sdk_arg_value,json=sdkArgValue,proto3" json:"sdk_arg_value,omitempty"` - Sort string `protobuf:"bytes,5,opt,name=sort,proto3" json:"sort,omitempty"` - RuleWithPre string `protobuf:"bytes,6,opt,name=rule_with_pre,json=ruleWithPre,proto3" json:"rule_with_pre,omitempty"` + SdkId string `protobuf:"bytes,1,opt,name=sdk_id,json=sdkId,proto3" json:"sdk_id,omitempty"` + SdkArgAlias string `protobuf:"bytes,2,opt,name=sdk_arg_alias,json=sdkArgAlias,proto3" json:"sdk_arg_alias,omitempty"` + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` + SdkArgValue string `protobuf:"bytes,4,opt,name=sdk_arg_value,json=sdkArgValue,proto3" json:"sdk_arg_value,omitempty"` + Sort string `protobuf:"bytes,5,opt,name=sort,proto3" json:"sort,omitempty"` + RuleWithPre string `protobuf:"bytes,6,opt,name=rule_with_pre,json=ruleWithPre,proto3" json:"rule_with_pre,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TemplateArg) Reset() { *m = TemplateArg{} } @@ -1530,26 +1450,18 @@ func (*TemplateArg) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{16} } + func (m *TemplateArg) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_TemplateArg.Unmarshal(m, b) } func (m *TemplateArg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TemplateArg.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_TemplateArg.Marshal(b, m, deterministic) } func (m *TemplateArg) XXX_Merge(src proto.Message) { xxx_messageInfo_TemplateArg.Merge(m, src) } func (m *TemplateArg) XXX_Size() int { - return m.Size() + return xxx_messageInfo_TemplateArg.Size(m) } func (m *TemplateArg) XXX_DiscardUnknown() { xxx_messageInfo_TemplateArg.DiscardUnknown(m) @@ -1600,11 +1512,14 @@ } type SdkSetBase struct { - SdkArgAlias string `protobuf:"bytes,1,opt,name=sdk_arg_alias,json=sdkArgAlias,proto3" json:"sdk_arg_alias,omitempty"` - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - OperatorType string `protobuf:"bytes,3,opt,name=operator_type,json=operatorType,proto3" json:"operator_type,omitempty"` - SdkArgValue string `protobuf:"bytes,4,opt,name=sdk_arg_value,json=sdkArgValue,proto3" json:"sdk_arg_value,omitempty"` - Sort int32 `protobuf:"varint,5,opt,name=sort,proto3" json:"sort,omitempty"` + SdkArgAlias string `protobuf:"bytes,1,opt,name=sdk_arg_alias,json=sdkArgAlias,proto3" json:"sdk_arg_alias,omitempty"` + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + OperatorType string `protobuf:"bytes,3,opt,name=operator_type,json=operatorType,proto3" json:"operator_type,omitempty"` + SdkArgValue string `protobuf:"bytes,4,opt,name=sdk_arg_value,json=sdkArgValue,proto3" json:"sdk_arg_value,omitempty"` + Sort int32 `protobuf:"varint,5,opt,name=sort,proto3" json:"sort,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SdkSetBase) Reset() { *m = SdkSetBase{} } @@ -1613,26 +1528,18 @@ func (*SdkSetBase) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{17} } + func (m *SdkSetBase) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_SdkSetBase.Unmarshal(m, b) } func (m *SdkSetBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SdkSetBase.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_SdkSetBase.Marshal(b, m, deterministic) } func (m *SdkSetBase) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkSetBase.Merge(m, src) } func (m *SdkSetBase) XXX_Size() int { - return m.Size() + return xxx_messageInfo_SdkSetBase.Size(m) } func (m *SdkSetBase) XXX_DiscardUnknown() { xxx_messageInfo_SdkSetBase.DiscardUnknown(m) @@ -1677,23 +1584,27 @@ //Sdk struct type Sdk struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - IpcId string `protobuf:"bytes,2,opt,name=ipc_id,json=ipcId,proto3" json:"ipc_id,omitempty"` - SdkType string `protobuf:"bytes,3,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` - SdkName string `protobuf:"bytes,4,opt,name=sdk_name,json=sdkName,proto3" json:"sdk_name,omitempty"` - Args []*SdkArg `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"` - Icon string `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"` - Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` - CreateTime string `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - UpdateTime string `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - CreateBy string `protobuf:"bytes,10,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"` - Enable bool `protobuf:"varint,11,opt,name=enable,proto3" json:"enable,omitempty"` - DelFlag int32 `protobuf:"varint,12,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` - IconBlob string `protobuf:"bytes,13,opt,name=iconBlob,proto3" json:"iconBlob,omitempty"` - Version string `protobuf:"bytes,14,opt,name=version,proto3" json:"version,omitempty"` - EnTrack bool `protobuf:"varint,15,opt,name=enTrack,proto3" json:"enTrack,omitempty"` - ArgDef string `protobuf:"bytes,16,opt,name=argDef,proto3" json:"argDef,omitempty"` - RuleSo string `protobuf:"bytes,17,opt,name=ruleSo,proto3" json:"ruleSo,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + IpcId string `protobuf:"bytes,2,opt,name=ipc_id,json=ipcId,proto3" json:"ipc_id,omitempty"` + SdkType string `protobuf:"bytes,3,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` + SdkName string `protobuf:"bytes,4,opt,name=sdk_name,json=sdkName,proto3" json:"sdk_name,omitempty"` + Args []*SdkArg `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"` + Icon string `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"` + Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` + CreateTime string `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + UpdateTime string `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + CreateBy string `protobuf:"bytes,10,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"` + Enable bool `protobuf:"varint,11,opt,name=enable,proto3" json:"enable,omitempty"` + DelFlag int32 `protobuf:"varint,12,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` + IconBlob string `protobuf:"bytes,13,opt,name=iconBlob,proto3" json:"iconBlob,omitempty"` + Version string `protobuf:"bytes,14,opt,name=version,proto3" json:"version,omitempty"` + EnTrack bool `protobuf:"varint,15,opt,name=enTrack,proto3" json:"enTrack,omitempty"` + ArgDef string `protobuf:"bytes,16,opt,name=argDef,proto3" json:"argDef,omitempty"` + RuleSo string `protobuf:"bytes,17,opt,name=ruleSo,proto3" json:"ruleSo,omitempty"` + IconBlob2 string `protobuf:"bytes,18,opt,name=iconBlob2,proto3" json:"iconBlob2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Sdk) Reset() { *m = Sdk{} } @@ -1702,26 +1613,18 @@ func (*Sdk) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{18} } + func (m *Sdk) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Sdk.Unmarshal(m, b) } func (m *Sdk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Sdk.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Sdk.Marshal(b, m, deterministic) } func (m *Sdk) XXX_Merge(src proto.Message) { xxx_messageInfo_Sdk.Merge(m, src) } func (m *Sdk) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Sdk.Size(m) } func (m *Sdk) XXX_DiscardUnknown() { xxx_messageInfo_Sdk.DiscardUnknown(m) @@ -1848,17 +1751,27 @@ return "" } +func (m *Sdk) GetIconBlob2() string { + if m != nil { + return m.IconBlob2 + } + return "" +} + //SdkArg struct type SdkArg struct { - Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - Must bool `protobuf:"varint,4,opt,name=must,proto3" json:"must,omitempty"` - Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` - Range string `protobuf:"bytes,6,opt,name=range,proto3" json:"range,omitempty"` - DefaultValue string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` - DefaultOperator string `protobuf:"bytes,8,opt,name=default_operator,json=defaultOperator,proto3" json:"default_operator,omitempty"` - Sort int32 `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"` + Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Must bool `protobuf:"varint,4,opt,name=must,proto3" json:"must,omitempty"` + Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` + Range string `protobuf:"bytes,6,opt,name=range,proto3" json:"range,omitempty"` + DefaultValue string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + DefaultOperator string `protobuf:"bytes,8,opt,name=default_operator,json=defaultOperator,proto3" json:"default_operator,omitempty"` + Sort int32 `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SdkArg) Reset() { *m = SdkArg{} } @@ -1867,26 +1780,18 @@ func (*SdkArg) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{19} } + func (m *SdkArg) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_SdkArg.Unmarshal(m, b) } func (m *SdkArg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SdkArg.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_SdkArg.Marshal(b, m, deterministic) } func (m *SdkArg) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkArg.Merge(m, src) } func (m *SdkArg) XXX_Size() int { - return m.Size() + return xxx_messageInfo_SdkArg.Size(m) } func (m *SdkArg) XXX_DiscardUnknown() { xxx_messageInfo_SdkArg.DiscardUnknown(m) @@ -1958,10 +1863,13 @@ } type SdkChanSet struct { - SdkType string `protobuf:"bytes,1,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` - ChanNum int32 `protobuf:"varint,2,opt,name=chan_num,json=chanNum,proto3" json:"chan_num,omitempty"` - ConfidenceInc int32 `protobuf:"varint,3,opt,name=confidenceInc,proto3" json:"confidenceInc,omitempty"` - MinMovePos int32 `protobuf:"varint,4,opt,name=minMovePos,proto3" json:"minMovePos,omitempty"` + SdkType string `protobuf:"bytes,1,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` + ChanNum int32 `protobuf:"varint,2,opt,name=chan_num,json=chanNum,proto3" json:"chan_num,omitempty"` + ConfidenceInc int32 `protobuf:"varint,3,opt,name=confidenceInc,proto3" json:"confidenceInc,omitempty"` + MinMovePos int32 `protobuf:"varint,4,opt,name=minMovePos,proto3" json:"minMovePos,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SdkChanSet) Reset() { *m = SdkChanSet{} } @@ -1970,26 +1878,18 @@ func (*SdkChanSet) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{20} } + func (m *SdkChanSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_SdkChanSet.Unmarshal(m, b) } func (m *SdkChanSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SdkChanSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_SdkChanSet.Marshal(b, m, deterministic) } func (m *SdkChanSet) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkChanSet.Merge(m, src) } func (m *SdkChanSet) XXX_Size() int { - return m.Size() + return xxx_messageInfo_SdkChanSet.Size(m) } func (m *SdkChanSet) XXX_DiscardUnknown() { xxx_messageInfo_SdkChanSet.DiscardUnknown(m) @@ -2027,10 +1927,13 @@ //publish db change message type DbChangeMessage struct { - Table TableChanged `protobuf:"varint,1,opt,name=table,proto3,enum=protomsg.TableChanged" json:"table,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Action DbAction `protobuf:"varint,3,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"` - Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` + Table TableChanged `protobuf:"varint,1,opt,name=table,proto3,enum=protomsg.TableChanged" json:"table,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Action DbAction `protobuf:"varint,3,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"` + Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DbChangeMessage) Reset() { *m = DbChangeMessage{} } @@ -2039,26 +1942,18 @@ func (*DbChangeMessage) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{21} } + func (m *DbChangeMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_DbChangeMessage.Unmarshal(m, b) } func (m *DbChangeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DbChangeMessage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_DbChangeMessage.Marshal(b, m, deterministic) } func (m *DbChangeMessage) XXX_Merge(src proto.Message) { xxx_messageInfo_DbChangeMessage.Merge(m, src) } func (m *DbChangeMessage) XXX_Size() int { - return m.Size() + return xxx_messageInfo_DbChangeMessage.Size(m) } func (m *DbChangeMessage) XXX_DiscardUnknown() { xxx_messageInfo_DbChangeMessage.DiscardUnknown(m) @@ -2095,15 +1990,18 @@ } type CameraPolygon struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Polygon string `protobuf:"bytes,4,opt,name=polygon,proto3" json:"polygon,omitempty"` - TriggerLine string `protobuf:"bytes,5,opt,name=trigger_line,json=triggerLine,proto3" json:"trigger_line,omitempty"` - DirectionLine string `protobuf:"bytes,6,opt,name=direction_line,json=directionLine,proto3" json:"direction_line,omitempty"` - Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` - DefenceState int32 `protobuf:"varint,8,opt,name=defence_state,json=defenceState,proto3" json:"defence_state,omitempty"` - CameraName string `protobuf:"bytes,9,opt,name=camera_name,json=cameraName,proto3" json:"camera_name,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Polygon string `protobuf:"bytes,4,opt,name=polygon,proto3" json:"polygon,omitempty"` + TriggerLine string `protobuf:"bytes,5,opt,name=trigger_line,json=triggerLine,proto3" json:"trigger_line,omitempty"` + DirectionLine string `protobuf:"bytes,6,opt,name=direction_line,json=directionLine,proto3" json:"direction_line,omitempty"` + Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` + DefenceState int32 `protobuf:"varint,8,opt,name=defence_state,json=defenceState,proto3" json:"defence_state,omitempty"` + CameraName string `protobuf:"bytes,9,opt,name=camera_name,json=cameraName,proto3" json:"camera_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraPolygon) Reset() { *m = CameraPolygon{} } @@ -2112,26 +2010,18 @@ func (*CameraPolygon) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{22} } + func (m *CameraPolygon) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraPolygon.Unmarshal(m, b) } func (m *CameraPolygon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraPolygon.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraPolygon.Marshal(b, m, deterministic) } func (m *CameraPolygon) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraPolygon.Merge(m, src) } func (m *CameraPolygon) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraPolygon.Size(m) } func (m *CameraPolygon) XXX_DiscardUnknown() { xxx_messageInfo_CameraPolygon.DiscardUnknown(m) @@ -2203,11 +2093,14 @@ } type CameraPolygonRelation struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - SourceCameraId string `protobuf:"bytes,2,opt,name=source_camera_id,json=sourceCameraId,proto3" json:"source_camera_id,omitempty"` - SourcePolygonId string `protobuf:"bytes,3,opt,name=source_polygon_id,json=sourcePolygonId,proto3" json:"source_polygon_id,omitempty"` - TargetCameraId string `protobuf:"bytes,4,opt,name=target_camera_id,json=targetCameraId,proto3" json:"target_camera_id,omitempty"` - TargetPolygonId string `protobuf:"bytes,5,opt,name=target_polygon_id,json=targetPolygonId,proto3" json:"target_polygon_id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + SourceCameraId string `protobuf:"bytes,2,opt,name=source_camera_id,json=sourceCameraId,proto3" json:"source_camera_id,omitempty"` + SourcePolygonId string `protobuf:"bytes,3,opt,name=source_polygon_id,json=sourcePolygonId,proto3" json:"source_polygon_id,omitempty"` + TargetCameraId string `protobuf:"bytes,4,opt,name=target_camera_id,json=targetCameraId,proto3" json:"target_camera_id,omitempty"` + TargetPolygonId string `protobuf:"bytes,5,opt,name=target_polygon_id,json=targetPolygonId,proto3" json:"target_polygon_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraPolygonRelation) Reset() { *m = CameraPolygonRelation{} } @@ -2216,26 +2109,18 @@ func (*CameraPolygonRelation) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{23} } + func (m *CameraPolygonRelation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraPolygonRelation.Unmarshal(m, b) } func (m *CameraPolygonRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraPolygonRelation.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraPolygonRelation.Marshal(b, m, deterministic) } func (m *CameraPolygonRelation) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraPolygonRelation.Merge(m, src) } func (m *CameraPolygonRelation) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraPolygonRelation.Size(m) } func (m *CameraPolygonRelation) XXX_DiscardUnknown() { xxx_messageInfo_CameraPolygonRelation.DiscardUnknown(m) @@ -2279,13 +2164,16 @@ } type VideotapeInfo struct { - EsDataId string `protobuf:"bytes,1,opt,name=esDataId,proto3" json:"esDataId,omitempty"` - CameraId string `protobuf:"bytes,2,opt,name=cameraId,proto3" json:"cameraId,omitempty"` - TaskId string `protobuf:"bytes,3,opt,name=taskId,proto3" json:"taskId,omitempty"` - ImgId int64 `protobuf:"varint,4,opt,name=imgId,proto3" json:"imgId,omitempty"` - VideoUrl string `protobuf:"bytes,5,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"` - SdkIds []string `protobuf:"bytes,6,rep,name=sdkIds,proto3" json:"sdkIds,omitempty"` - Type int32 `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"` + EsDataId string `protobuf:"bytes,1,opt,name=esDataId,proto3" json:"esDataId,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=cameraId,proto3" json:"cameraId,omitempty"` + TaskId string `protobuf:"bytes,3,opt,name=taskId,proto3" json:"taskId,omitempty"` + ImgId int64 `protobuf:"varint,4,opt,name=imgId,proto3" json:"imgId,omitempty"` + VideoUrl string `protobuf:"bytes,5,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"` + SdkIds []string `protobuf:"bytes,6,rep,name=sdkIds,proto3" json:"sdkIds,omitempty"` + Type int32 `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *VideotapeInfo) Reset() { *m = VideotapeInfo{} } @@ -2294,26 +2182,18 @@ func (*VideotapeInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{24} } + func (m *VideotapeInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_VideotapeInfo.Unmarshal(m, b) } func (m *VideotapeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VideotapeInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_VideotapeInfo.Marshal(b, m, deterministic) } func (m *VideotapeInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_VideotapeInfo.Merge(m, src) } func (m *VideotapeInfo) XXX_Size() int { - return m.Size() + return xxx_messageInfo_VideotapeInfo.Size(m) } func (m *VideotapeInfo) XXX_DiscardUnknown() { xxx_messageInfo_VideotapeInfo.DiscardUnknown(m) @@ -2371,9 +2251,12 @@ } type Voice struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Voice) Reset() { *m = Voice{} } @@ -2382,26 +2265,18 @@ func (*Voice) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{25} } + func (m *Voice) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Voice.Unmarshal(m, b) } func (m *Voice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Voice.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Voice.Marshal(b, m, deterministic) } func (m *Voice) XXX_Merge(src proto.Message) { xxx_messageInfo_Voice.Merge(m, src) } func (m *Voice) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Voice.Size(m) } func (m *Voice) XXX_DiscardUnknown() { xxx_messageInfo_Voice.DiscardUnknown(m) @@ -2431,7 +2306,10 @@ } type VoiceList struct { - List []*Voice `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + List []*Voice `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *VoiceList) Reset() { *m = VoiceList{} } @@ -2440,26 +2318,18 @@ func (*VoiceList) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{26} } + func (m *VoiceList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_VoiceList.Unmarshal(m, b) } func (m *VoiceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VoiceList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_VoiceList.Marshal(b, m, deterministic) } func (m *VoiceList) XXX_Merge(src proto.Message) { xxx_messageInfo_VoiceList.Merge(m, src) } func (m *VoiceList) XXX_Size() int { - return m.Size() + return xxx_messageInfo_VoiceList.Size(m) } func (m *VoiceList) XXX_DiscardUnknown() { xxx_messageInfo_VoiceList.DiscardUnknown(m) @@ -2475,20 +2345,23 @@ } type CompareArgs struct { - TableIds []string `protobuf:"bytes,1,rep,name=tableIds,proto3" json:"tableIds,omitempty"` - CompareThreshold float32 `protobuf:"fixed32,2,opt,name=compareThreshold,proto3" json:"compareThreshold,omitempty"` - FaceFeature []byte `protobuf:"bytes,3,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` - Tasks []string `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` - TreeNodes []string `protobuf:"bytes,5,rep,name=treeNodes,proto3" json:"treeNodes,omitempty"` - Tabs []string `protobuf:"bytes,6,rep,name=tabs,proto3" json:"tabs,omitempty"` - AlarmLevel string `protobuf:"bytes,7,opt,name=alarmLevel,proto3" json:"alarmLevel,omitempty"` - SearchTime []string `protobuf:"bytes,8,rep,name=searchTime,proto3" json:"searchTime,omitempty"` - InputValue string `protobuf:"bytes,9,opt,name=inputValue,proto3" json:"inputValue,omitempty"` - Collection string `protobuf:"bytes,10,opt,name=collection,proto3" json:"collection,omitempty"` - Source bool `protobuf:"varint,11,opt,name=source,proto3" json:"source,omitempty"` - AnalyServerId string `protobuf:"bytes,12,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` - CompareTarget string `protobuf:"bytes,13,opt,name=compareTarget,proto3" json:"compareTarget,omitempty"` - IsCompareAll bool `protobuf:"varint,14,opt,name=isCompareAll,proto3" json:"isCompareAll,omitempty"` + TableIds []string `protobuf:"bytes,1,rep,name=tableIds,proto3" json:"tableIds,omitempty"` + CompareThreshold float32 `protobuf:"fixed32,2,opt,name=compareThreshold,proto3" json:"compareThreshold,omitempty"` + FaceFeature []byte `protobuf:"bytes,3,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` + Tasks []string `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` + TreeNodes []string `protobuf:"bytes,5,rep,name=treeNodes,proto3" json:"treeNodes,omitempty"` + Tabs []string `protobuf:"bytes,6,rep,name=tabs,proto3" json:"tabs,omitempty"` + AlarmLevel string `protobuf:"bytes,7,opt,name=alarmLevel,proto3" json:"alarmLevel,omitempty"` + SearchTime []string `protobuf:"bytes,8,rep,name=searchTime,proto3" json:"searchTime,omitempty"` + InputValue string `protobuf:"bytes,9,opt,name=inputValue,proto3" json:"inputValue,omitempty"` + Collection string `protobuf:"bytes,10,opt,name=collection,proto3" json:"collection,omitempty"` + Source bool `protobuf:"varint,11,opt,name=source,proto3" json:"source,omitempty"` + AnalyServerId string `protobuf:"bytes,12,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` + CompareTarget string `protobuf:"bytes,13,opt,name=compareTarget,proto3" json:"compareTarget,omitempty"` + IsCompareAll bool `protobuf:"varint,14,opt,name=isCompareAll,proto3" json:"isCompareAll,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CompareArgs) Reset() { *m = CompareArgs{} } @@ -2497,26 +2370,18 @@ func (*CompareArgs) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{27} } + func (m *CompareArgs) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CompareArgs.Unmarshal(m, b) } func (m *CompareArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompareArgs.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CompareArgs.Marshal(b, m, deterministic) } func (m *CompareArgs) XXX_Merge(src proto.Message) { xxx_messageInfo_CompareArgs.Merge(m, src) } func (m *CompareArgs) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CompareArgs.Size(m) } func (m *CompareArgs) XXX_DiscardUnknown() { xxx_messageInfo_CompareArgs.DiscardUnknown(m) @@ -2623,8 +2488,11 @@ } type CompareEvent struct { - EventType CompareEventType `protobuf:"varint,1,opt,name=eventType,proto3,enum=protomsg.CompareEventType" json:"eventType,omitempty"` - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + EventType CompareEventType `protobuf:"varint,1,opt,name=eventType,proto3,enum=protomsg.CompareEventType" json:"eventType,omitempty"` + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CompareEvent) Reset() { *m = CompareEvent{} } @@ -2633,26 +2501,18 @@ func (*CompareEvent) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{28} } + func (m *CompareEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CompareEvent.Unmarshal(m, b) } func (m *CompareEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompareEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CompareEvent.Marshal(b, m, deterministic) } func (m *CompareEvent) XXX_Merge(src proto.Message) { xxx_messageInfo_CompareEvent.Merge(m, src) } func (m *CompareEvent) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CompareEvent.Size(m) } func (m *CompareEvent) XXX_DiscardUnknown() { xxx_messageInfo_CompareEvent.DiscardUnknown(m) @@ -2675,9 +2535,12 @@ } type SdkCompareEach struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Tableid string `protobuf:"bytes,2,opt,name=tableid,proto3" json:"tableid,omitempty"` - CompareScore float32 `protobuf:"fixed32,3,opt,name=compareScore,proto3" json:"compareScore,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Tableid string `protobuf:"bytes,2,opt,name=tableid,proto3" json:"tableid,omitempty"` + CompareScore float32 `protobuf:"fixed32,3,opt,name=compareScore,proto3" json:"compareScore,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SdkCompareEach) Reset() { *m = SdkCompareEach{} } @@ -2686,26 +2549,18 @@ func (*SdkCompareEach) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{29} } + func (m *SdkCompareEach) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_SdkCompareEach.Unmarshal(m, b) } func (m *SdkCompareEach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SdkCompareEach.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_SdkCompareEach.Marshal(b, m, deterministic) } func (m *SdkCompareEach) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkCompareEach.Merge(m, src) } func (m *SdkCompareEach) XXX_Size() int { - return m.Size() + return xxx_messageInfo_SdkCompareEach.Size(m) } func (m *SdkCompareEach) XXX_DiscardUnknown() { xxx_messageInfo_SdkCompareEach.DiscardUnknown(m) @@ -2735,7 +2590,10 @@ } type SdkCompareResult struct { - CompareResult []*SdkCompareEach `protobuf:"bytes,1,rep,name=compareResult,proto3" json:"compareResult,omitempty"` + CompareResult []*SdkCompareEach `protobuf:"bytes,1,rep,name=compareResult,proto3" json:"compareResult,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SdkCompareResult) Reset() { *m = SdkCompareResult{} } @@ -2744,26 +2602,18 @@ func (*SdkCompareResult) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{30} } + func (m *SdkCompareResult) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_SdkCompareResult.Unmarshal(m, b) } func (m *SdkCompareResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SdkCompareResult.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_SdkCompareResult.Marshal(b, m, deterministic) } func (m *SdkCompareResult) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkCompareResult.Merge(m, src) } func (m *SdkCompareResult) XXX_Size() int { - return m.Size() + return xxx_messageInfo_SdkCompareResult.Size(m) } func (m *SdkCompareResult) XXX_DiscardUnknown() { xxx_messageInfo_SdkCompareResult.DiscardUnknown(m) @@ -2779,20 +2629,23 @@ } type EventPush struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - TimeStart string `protobuf:"bytes,3,opt,name=time_start,json=timeStart,proto3" json:"time_start,omitempty"` - TimeEnd string `protobuf:"bytes,4,opt,name=time_end,json=timeEnd,proto3" json:"time_end,omitempty"` - IsSatisfyAll bool `protobuf:"varint,5,opt,name=is_satisfy_all,json=isSatisfyAll,proto3" json:"is_satisfy_all,omitempty"` - RuleText string `protobuf:"bytes,6,opt,name=rule_text,json=ruleText,proto3" json:"rule_text,omitempty"` - Enable bool `protobuf:"varint,7,opt,name=enable,proto3" json:"enable,omitempty"` - LinkType string `protobuf:"bytes,8,opt,name=link_type,json=linkType,proto3" json:"link_type,omitempty"` - LinkDevice string `protobuf:"bytes,9,opt,name=link_device,json=linkDevice,proto3" json:"link_device,omitempty"` - IpPorts []*PushIpPort `protobuf:"bytes,10,rep,name=ip_ports,json=ipPorts,proto3" json:"ip_ports,omitempty"` - Urls []*PushUrl `protobuf:"bytes,11,rep,name=urls,proto3" json:"urls,omitempty"` - Rules []*EventPushRule `protobuf:"bytes,12,rep,name=rules,proto3" json:"rules,omitempty"` - FiltRename map[string]string `protobuf:"bytes,13,rep,name=filtRename,proto3" json:"filtRename,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - PushSet []*PushSetMenu `protobuf:"bytes,14,rep,name=push_set,json=pushSet,proto3" json:"push_set,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TimeStart string `protobuf:"bytes,3,opt,name=time_start,json=timeStart,proto3" json:"time_start,omitempty"` + TimeEnd string `protobuf:"bytes,4,opt,name=time_end,json=timeEnd,proto3" json:"time_end,omitempty"` + IsSatisfyAll bool `protobuf:"varint,5,opt,name=is_satisfy_all,json=isSatisfyAll,proto3" json:"is_satisfy_all,omitempty"` + RuleText string `protobuf:"bytes,6,opt,name=rule_text,json=ruleText,proto3" json:"rule_text,omitempty"` + Enable bool `protobuf:"varint,7,opt,name=enable,proto3" json:"enable,omitempty"` + LinkType string `protobuf:"bytes,8,opt,name=link_type,json=linkType,proto3" json:"link_type,omitempty"` + LinkDevice string `protobuf:"bytes,9,opt,name=link_device,json=linkDevice,proto3" json:"link_device,omitempty"` + IpPorts []*PushIpPort `protobuf:"bytes,10,rep,name=ip_ports,json=ipPorts,proto3" json:"ip_ports,omitempty"` + Urls []*PushUrl `protobuf:"bytes,11,rep,name=urls,proto3" json:"urls,omitempty"` + Rules []*EventPushRule `protobuf:"bytes,12,rep,name=rules,proto3" json:"rules,omitempty"` + FiltRename map[string]string `protobuf:"bytes,13,rep,name=filtRename,proto3" json:"filtRename,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + PushSet []*PushSetMenu `protobuf:"bytes,14,rep,name=push_set,json=pushSet,proto3" json:"push_set,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *EventPush) Reset() { *m = EventPush{} } @@ -2801,26 +2654,18 @@ func (*EventPush) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{31} } + func (m *EventPush) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_EventPush.Unmarshal(m, b) } func (m *EventPush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventPush.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_EventPush.Marshal(b, m, deterministic) } func (m *EventPush) XXX_Merge(src proto.Message) { xxx_messageInfo_EventPush.Merge(m, src) } func (m *EventPush) XXX_Size() int { - return m.Size() + return xxx_messageInfo_EventPush.Size(m) } func (m *EventPush) XXX_DiscardUnknown() { xxx_messageInfo_EventPush.DiscardUnknown(m) @@ -2927,11 +2772,14 @@ } type PushSetMenu struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Checked bool `protobuf:"varint,3,opt,name=checked,proto3" json:"checked,omitempty"` - Alias string `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"` - Children []*PushSetMenu `protobuf:"bytes,5,rep,name=children,proto3" json:"children,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Checked bool `protobuf:"varint,3,opt,name=checked,proto3" json:"checked,omitempty"` + Alias string `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"` + Children []*PushSetMenu `protobuf:"bytes,5,rep,name=children,proto3" json:"children,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PushSetMenu) Reset() { *m = PushSetMenu{} } @@ -2940,26 +2788,18 @@ func (*PushSetMenu) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{32} } + func (m *PushSetMenu) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_PushSetMenu.Unmarshal(m, b) } func (m *PushSetMenu) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PushSetMenu.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_PushSetMenu.Marshal(b, m, deterministic) } func (m *PushSetMenu) XXX_Merge(src proto.Message) { xxx_messageInfo_PushSetMenu.Merge(m, src) } func (m *PushSetMenu) XXX_Size() int { - return m.Size() + return xxx_messageInfo_PushSetMenu.Size(m) } func (m *PushSetMenu) XXX_DiscardUnknown() { xxx_messageInfo_PushSetMenu.DiscardUnknown(m) @@ -3003,13 +2843,16 @@ } type EventPushRule struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - TopicType string `protobuf:"bytes,2,opt,name=topic_type,json=topicType,proto3" json:"topic_type,omitempty"` - TopicArg string `protobuf:"bytes,3,opt,name=topic_arg,json=topicArg,proto3" json:"topic_arg,omitempty"` - Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"` - OperatorType string `protobuf:"bytes,5,opt,name=operator_type,json=operatorType,proto3" json:"operator_type,omitempty"` - RuleValue string `protobuf:"bytes,6,opt,name=rule_value,json=ruleValue,proto3" json:"rule_value,omitempty"` - EventPushId string `protobuf:"bytes,7,opt,name=event_push_id,json=eventPushId,proto3" json:"event_push_id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + TopicType string `protobuf:"bytes,2,opt,name=topic_type,json=topicType,proto3" json:"topic_type,omitempty"` + TopicArg string `protobuf:"bytes,3,opt,name=topic_arg,json=topicArg,proto3" json:"topic_arg,omitempty"` + Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"` + OperatorType string `protobuf:"bytes,5,opt,name=operator_type,json=operatorType,proto3" json:"operator_type,omitempty"` + RuleValue string `protobuf:"bytes,6,opt,name=rule_value,json=ruleValue,proto3" json:"rule_value,omitempty"` + EventPushId string `protobuf:"bytes,7,opt,name=event_push_id,json=eventPushId,proto3" json:"event_push_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *EventPushRule) Reset() { *m = EventPushRule{} } @@ -3018,26 +2861,18 @@ func (*EventPushRule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{33} } + func (m *EventPushRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_EventPushRule.Unmarshal(m, b) } func (m *EventPushRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventPushRule.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_EventPushRule.Marshal(b, m, deterministic) } func (m *EventPushRule) XXX_Merge(src proto.Message) { xxx_messageInfo_EventPushRule.Merge(m, src) } func (m *EventPushRule) XXX_Size() int { - return m.Size() + return xxx_messageInfo_EventPushRule.Size(m) } func (m *EventPushRule) XXX_DiscardUnknown() { xxx_messageInfo_EventPushRule.DiscardUnknown(m) @@ -3095,9 +2930,12 @@ } type PushIpPort struct { - ServerIp string `protobuf:"bytes,1,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"` - Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` - Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"` + ServerIp string `protobuf:"bytes,1,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"` + Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` + Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PushIpPort) Reset() { *m = PushIpPort{} } @@ -3106,26 +2944,18 @@ func (*PushIpPort) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{34} } + func (m *PushIpPort) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_PushIpPort.Unmarshal(m, b) } func (m *PushIpPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PushIpPort.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_PushIpPort.Marshal(b, m, deterministic) } func (m *PushIpPort) XXX_Merge(src proto.Message) { xxx_messageInfo_PushIpPort.Merge(m, src) } func (m *PushIpPort) XXX_Size() int { - return m.Size() + return xxx_messageInfo_PushIpPort.Size(m) } func (m *PushIpPort) XXX_DiscardUnknown() { xxx_messageInfo_PushIpPort.DiscardUnknown(m) @@ -3155,8 +2985,11 @@ } type PushUrl struct { - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PushUrl) Reset() { *m = PushUrl{} } @@ -3165,26 +2998,18 @@ func (*PushUrl) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{35} } + func (m *PushUrl) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_PushUrl.Unmarshal(m, b) } func (m *PushUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PushUrl.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_PushUrl.Marshal(b, m, deterministic) } func (m *PushUrl) XXX_Merge(src proto.Message) { xxx_messageInfo_PushUrl.Merge(m, src) } func (m *PushUrl) XXX_Size() int { - return m.Size() + return xxx_messageInfo_PushUrl.Size(m) } func (m *PushUrl) XXX_DiscardUnknown() { xxx_messageInfo_PushUrl.DiscardUnknown(m) @@ -3207,12 +3032,15 @@ } type PushAttach struct { - PushId string `protobuf:"bytes,1,opt,name=push_id,json=pushId,proto3" json:"push_id,omitempty"` - Cam *Camera `protobuf:"bytes,2,opt,name=cam,proto3" json:"cam,omitempty"` - ServerId string `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` - ServerName string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` - LocalIp string `protobuf:"bytes,5,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"` - VideoUrl string `protobuf:"bytes,6,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` + PushId string `protobuf:"bytes,1,opt,name=push_id,json=pushId,proto3" json:"push_id,omitempty"` + Cam *Camera `protobuf:"bytes,2,opt,name=cam,proto3" json:"cam,omitempty"` + ServerId string `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` + ServerName string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` + LocalIp string `protobuf:"bytes,5,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"` + VideoUrl string `protobuf:"bytes,6,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PushAttach) Reset() { *m = PushAttach{} } @@ -3221,26 +3049,18 @@ func (*PushAttach) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{36} } + func (m *PushAttach) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_PushAttach.Unmarshal(m, b) } func (m *PushAttach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PushAttach.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_PushAttach.Marshal(b, m, deterministic) } func (m *PushAttach) XXX_Merge(src proto.Message) { xxx_messageInfo_PushAttach.Merge(m, src) } func (m *PushAttach) XXX_Size() int { - return m.Size() + return xxx_messageInfo_PushAttach.Size(m) } func (m *PushAttach) XXX_DiscardUnknown() { xxx_messageInfo_PushAttach.DiscardUnknown(m) @@ -3291,13 +3111,16 @@ } type EsPersonCacheChange struct { - Type EsCacheChanged `protobuf:"varint,1,opt,name=type,proto3,enum=protomsg.EsCacheChanged" json:"type,omitempty"` - TableId []string `protobuf:"bytes,2,rep,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` - PersonId string `protobuf:"bytes,3,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"` - Feature string `protobuf:"bytes,4,opt,name=feature,proto3" json:"feature,omitempty"` - Action DbAction `protobuf:"varint,5,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"` - Enable int32 `protobuf:"varint,6,opt,name=enable,proto3" json:"enable,omitempty"` - CarNo string `protobuf:"bytes,7,opt,name=carNo,proto3" json:"carNo,omitempty"` + Type EsCacheChanged `protobuf:"varint,1,opt,name=type,proto3,enum=protomsg.EsCacheChanged" json:"type,omitempty"` + TableId []string `protobuf:"bytes,2,rep,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` + PersonId string `protobuf:"bytes,3,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"` + Feature string `protobuf:"bytes,4,opt,name=feature,proto3" json:"feature,omitempty"` + Action DbAction `protobuf:"varint,5,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"` + Enable int32 `protobuf:"varint,6,opt,name=enable,proto3" json:"enable,omitempty"` + CarNo string `protobuf:"bytes,7,opt,name=carNo,proto3" json:"carNo,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *EsPersonCacheChange) Reset() { *m = EsPersonCacheChange{} } @@ -3306,26 +3129,18 @@ func (*EsPersonCacheChange) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{37} } + func (m *EsPersonCacheChange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_EsPersonCacheChange.Unmarshal(m, b) } func (m *EsPersonCacheChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EsPersonCacheChange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_EsPersonCacheChange.Marshal(b, m, deterministic) } func (m *EsPersonCacheChange) XXX_Merge(src proto.Message) { xxx_messageInfo_EsPersonCacheChange.Merge(m, src) } func (m *EsPersonCacheChange) XXX_Size() int { - return m.Size() + return xxx_messageInfo_EsPersonCacheChange.Size(m) } func (m *EsPersonCacheChange) XXX_DiscardUnknown() { xxx_messageInfo_EsPersonCacheChange.DiscardUnknown(m) @@ -3383,10 +3198,13 @@ } type ClusterAndNodes struct { - ClusterId string `protobuf:"bytes,1,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - Nodes []*Node `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"` - VirtualIp string `protobuf:"bytes,4,opt,name=virtualIp,proto3" json:"virtualIp,omitempty"` + ClusterId string `protobuf:"bytes,1,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + Nodes []*Node `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"` + VirtualIp string `protobuf:"bytes,4,opt,name=virtualIp,proto3" json:"virtualIp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ClusterAndNodes) Reset() { *m = ClusterAndNodes{} } @@ -3395,26 +3213,18 @@ func (*ClusterAndNodes) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{38} } + func (m *ClusterAndNodes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_ClusterAndNodes.Unmarshal(m, b) } func (m *ClusterAndNodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterAndNodes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_ClusterAndNodes.Marshal(b, m, deterministic) } func (m *ClusterAndNodes) XXX_Merge(src proto.Message) { xxx_messageInfo_ClusterAndNodes.Merge(m, src) } func (m *ClusterAndNodes) XXX_Size() int { - return m.Size() + return xxx_messageInfo_ClusterAndNodes.Size(m) } func (m *ClusterAndNodes) XXX_DiscardUnknown() { xxx_messageInfo_ClusterAndNodes.DiscardUnknown(m) @@ -3451,15 +3261,18 @@ } type Node struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` - NodeId string `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - NodeIp string `protobuf:"bytes,5,opt,name=node_ip,json=nodeIp,proto3" json:"node_ip,omitempty"` - CreateTime string `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - IsDelete bool `protobuf:"varint,7,opt,name=isDelete,proto3" json:"isDelete,omitempty"` - DriftState string `protobuf:"bytes,8,opt,name=drift_state,json=driftState,proto3" json:"drift_state,omitempty"` - DeviceType string `protobuf:"bytes,9,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + NodeId string `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + NodeIp string `protobuf:"bytes,5,opt,name=node_ip,json=nodeIp,proto3" json:"node_ip,omitempty"` + CreateTime string `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + IsDelete bool `protobuf:"varint,7,opt,name=isDelete,proto3" json:"isDelete,omitempty"` + DriftState string `protobuf:"bytes,8,opt,name=drift_state,json=driftState,proto3" json:"drift_state,omitempty"` + DeviceType string `protobuf:"bytes,9,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Node) Reset() { *m = Node{} } @@ -3468,26 +3281,18 @@ func (*Node) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{39} } + func (m *Node) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Node.Unmarshal(m, b) } func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Node.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Node.Marshal(b, m, deterministic) } func (m *Node) XXX_Merge(src proto.Message) { xxx_messageInfo_Node.Merge(m, src) } func (m *Node) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Node.Size(m) } func (m *Node) XXX_DiscardUnknown() { xxx_messageInfo_Node.DiscardUnknown(m) @@ -3559,13 +3364,16 @@ } type Dic struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - Sort int32 `protobuf:"varint,6,opt,name=sort,proto3" json:"sort,omitempty"` - ParentId string `protobuf:"bytes,7,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + Sort int32 `protobuf:"varint,6,opt,name=sort,proto3" json:"sort,omitempty"` + ParentId string `protobuf:"bytes,7,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Dic) Reset() { *m = Dic{} } @@ -3574,26 +3382,18 @@ func (*Dic) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{40} } + func (m *Dic) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Dic.Unmarshal(m, b) } func (m *Dic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Dic.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Dic.Marshal(b, m, deterministic) } func (m *Dic) XXX_Merge(src proto.Message) { xxx_messageInfo_Dic.Merge(m, src) } func (m *Dic) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Dic.Size(m) } func (m *Dic) XXX_DiscardUnknown() { xxx_messageInfo_Dic.DiscardUnknown(m) @@ -3702,13726 +3502,212 @@ func init() { proto.RegisterFile("protomsg.proto", fileDescriptor_32de24555f916688) } var fileDescriptor_32de24555f916688 = []byte{ - // 3327 bytes of a gzipped FileDescriptorProto + // 3303 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x59, 0xcd, 0x8f, 0xdc, 0xc6, - 0xb1, 0x17, 0xe7, 0x7b, 0x6a, 0x66, 0x67, 0x29, 0xea, 0x8b, 0xfa, 0xf0, 0x7a, 0x4d, 0xc9, 0xef, - 0xc9, 0x6b, 0x5b, 0xcf, 0x4f, 0xf6, 0xc1, 0x78, 0xc0, 0xf3, 0xc3, 0x6a, 0x57, 0x7a, 0x19, 0x40, - 0x52, 0x36, 0xdc, 0x91, 0x7c, 0x0b, 0xc1, 0x25, 0x7b, 0x67, 0x88, 0xe1, 0x92, 0x74, 0x77, 0x73, - 0xa5, 0x05, 0x72, 0x0b, 0x82, 0xe4, 0xe4, 0x24, 0x40, 0xf2, 0x2f, 0x04, 0x08, 0xf2, 0x37, 0x24, - 0xf6, 0x2d, 0x39, 0x05, 0x06, 0x72, 0xc9, 0x2d, 0x81, 0x7d, 0xc9, 0x2d, 0xff, 0x42, 0x50, 0xd5, - 0xdd, 0x24, 0x67, 0x77, 0x65, 0x2b, 0xa7, 0xe9, 0xfa, 0xf5, 0x07, 0xab, 0xab, 0xab, 0xaa, 0x7f, - 0xd5, 0x03, 0x93, 0x82, 0xe7, 0x32, 0x3f, 0x12, 0xf3, 0x7b, 0xd4, 0x70, 0x06, 0x46, 0xbe, 0x01, - 0x07, 0xa1, 0x60, 0x0a, 0xf5, 0x1e, 0x41, 0x67, 0x9b, 0xb3, 0xd0, 0x99, 0x40, 0x2b, 0x89, 0x5d, - 0x6b, 0xd3, 0xba, 0xdb, 0xf5, 0x5b, 0x49, 0xec, 0xdc, 0x80, 0x41, 0x11, 0x72, 0x96, 0xc9, 0x24, - 0x76, 0x5b, 0x84, 0x56, 0xb2, 0xe3, 0x40, 0x27, 0x0b, 0x8f, 0x98, 0xdb, 0xde, 0xb4, 0xee, 0x0e, - 0x7d, 0x6a, 0x7b, 0x9f, 0xf7, 0xa0, 0xb7, 0x13, 0x1e, 0x31, 0xde, 0x5c, 0x6a, 0x48, 0x4b, 0x99, - 0xe1, 0xad, 0x7a, 0xb8, 0x73, 0x19, 0xba, 0x61, 0x9a, 0x84, 0x42, 0xaf, 0xa1, 0x04, 0xe7, 0x2d, - 0x18, 0x8b, 0x2c, 0x2c, 0xc4, 0x22, 0x97, 0x41, 0xc9, 0x53, 0xb7, 0x43, 0x9d, 0x23, 0x83, 0x3d, - 0xe3, 0x29, 0x2e, 0x26, 0x4f, 0x0a, 0xe6, 0x76, 0x49, 0x27, 0x6a, 0x23, 0x16, 0xc6, 0x31, 0x77, - 0x7b, 0xea, 0x03, 0xd8, 0x76, 0x6e, 0xc1, 0x30, 0xcd, 0xb3, 0x79, 0x22, 0xcb, 0x98, 0xb9, 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x69, 0x54, 0xaa, 0xe2, 0x6f, 0x2f, 0x7f, 0xc1, 0xb8, 0x3d, 0x56, 0xd3, 0xab, 0xab, - 0xc5, 0x5e, 0x73, 0xd6, 0x60, 0x38, 0x0b, 0x74, 0x24, 0xd9, 0x13, 0xe7, 0x26, 0x5c, 0x3b, 0xb5, - 0x29, 0x53, 0x3e, 0xda, 0xeb, 0x5b, 0xf7, 0x60, 0x60, 0xc2, 0x16, 0x15, 0x9f, 0x66, 0x82, 0x71, - 0x69, 0x5f, 0xc0, 0xf6, 0x33, 0x7a, 0x69, 0xb2, 0x2d, 0x6c, 0x2b, 0x37, 0xb2, 0x5b, 0x5b, 0xdb, - 0x60, 0x9f, 0x26, 0xa3, 0xa8, 0x80, 0xcf, 0xa6, 0x59, 0x22, 0x29, 0x01, 0xd9, 0x17, 0x10, 0x50, - 0x93, 0x15, 0x60, 0x39, 0x23, 0xe8, 0xeb, 0x59, 0x76, 0x6b, 0xeb, 0x23, 0x98, 0xac, 0xe6, 0x2a, - 0xa5, 0xf0, 0xee, 0x01, 0x9d, 0x9a, 0x7d, 0x41, 0x9d, 0x82, 0x16, 0x55, 0x02, 0xb4, 0xad, 0x07, - 0xee, 0x9f, 0xbe, 0xde, 0xb0, 0xbe, 0xfa, 0x7a, 0xc3, 0xfa, 0xfb, 0xd7, 0x1b, 0xd6, 0x2f, 0xbe, - 0xd9, 0xb8, 0xf0, 0xd5, 0x37, 0x1b, 0x17, 0xfe, 0xfa, 0xcd, 0xc6, 0x85, 0x83, 0x1e, 0xc5, 0xf4, - 0x87, 0xff, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x47, 0xbe, 0x79, 0x9a, 0xcb, 0x20, 0x00, 0x00, -} - -func (m *Area) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Area) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Id)) - } - if m.Parentid != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Parentid)) - } - if len(m.Name) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - return i, nil -} - -func (m *Camera) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Camera) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Alias) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Alias))) - i += copy(dAtA[i:], m.Alias) - } - if len(m.SnapshotUrl) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SnapshotUrl))) - i += copy(dAtA[i:], m.SnapshotUrl) - } - if m.Type != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Type)) - } - if len(m.Addr) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Addr))) - i += copy(dAtA[i:], m.Addr) - } - if m.Longitude != 0 { - dAtA[i] = 0x3d - i++ - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Longitude)))) - i += 4 - } - if m.Latitude != 0 { - dAtA[i] = 0x45 - i++ - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Latitude)))) - i += 4 - } - if m.Floor != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Floor)) - } - if len(m.Rtsp) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Rtsp))) - i += copy(dAtA[i:], m.Rtsp) - } - if len(m.Ip) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Ip))) - i += copy(dAtA[i:], m.Ip) - } - if m.Port != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Port)) - } - if len(m.Username) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Username))) - i += copy(dAtA[i:], m.Username) - } - if len(m.Password) > 0 { - dAtA[i] = 0x72 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Password))) - i += copy(dAtA[i:], m.Password) - } - if len(m.Brand) > 0 { - dAtA[i] = 0x7a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Brand))) - i += copy(dAtA[i:], m.Brand) - } - if len(m.Reserved) > 0 { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Reserved))) - i += copy(dAtA[i:], m.Reserved) - } - if m.IsRunning { - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x1 - i++ - if m.IsRunning { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.RunEnable { - dAtA[i] = 0x90 - i++ - dAtA[i] = 0x1 - i++ - if m.RunEnable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.RunType != 0 { - dAtA[i] = 0x98 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.RunType)) - } - if len(m.RunServerId) > 0 { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RunServerId))) - i += copy(dAtA[i:], m.RunServerId) - } - if m.ResolutionWidth != 0 { - dAtA[i] = 0xa8 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.ResolutionWidth)) - } - if m.ResolutionHeight != 0 { - dAtA[i] = 0xb0 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.ResolutionHeight)) - } - if m.Fps != 0 { - dAtA[i] = 0xb8 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Fps)) - } - if len(m.Sensors) > 0 { - for _, msg := range m.Sensors { - dAtA[i] = 0xc2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.VoiceEnable { - dAtA[i] = 0xc8 - i++ - dAtA[i] = 0x1 - i++ - if m.VoiceEnable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.VoiceId) > 0 { - dAtA[i] = 0xd2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VoiceId))) - i += copy(dAtA[i:], m.VoiceId) - } - if len(m.CoordTransform) > 0 { - dAtA[i] = 0xda - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CoordTransform))) - i += copy(dAtA[i:], m.CoordTransform) - } - if m.Status != 0 { - dAtA[i] = 0xe0 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Status)) - } - return i, nil -} - -func (m *Sensor) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Sensor) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Type) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - } - if len(m.Ip) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Ip))) - i += copy(dAtA[i:], m.Ip) - } - if m.Port != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Port)) - } - if len(m.Username) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Username))) - i += copy(dAtA[i:], m.Username) - } - if len(m.Password) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Password))) - i += copy(dAtA[i:], m.Password) - } - if m.Threshold != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Threshold)) - } - if m.Enable { - dAtA[i] = 0x40 - i++ - if m.Enable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *CameraLink) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraLink) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.CameraIds) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraIds))) - i += copy(dAtA[i:], m.CameraIds) - } - if len(m.LinkTaskId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LinkTaskId))) - i += copy(dAtA[i:], m.LinkTaskId) - } - return i, nil -} - -func (m *SdkRun) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SdkRun) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.IpcId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IpcId))) - i += copy(dAtA[i:], m.IpcId) - } - if len(m.SdkType) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkType))) - i += copy(dAtA[i:], m.SdkType) - } - if m.IsTriggerByPreSdk != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.IsTriggerByPreSdk)) - } - if m.Confidence != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Confidence)) - } - if m.BReid { - dAtA[i] = 0x28 - i++ - if m.BReid { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.TriggerNextSdkType != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.TriggerNextSdkType)) - } - return i, nil -} - -func (m *CameraTimerule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraTimerule) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.TimeRule) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TimeRule))) - i += copy(dAtA[i:], m.TimeRule) - } - return i, nil -} - -func (m *DayCtl) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DayCtl) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Day != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Day)) - } - if len(m.TimeRange) > 0 { - for _, msg := range m.TimeRange { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *TimeRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TimeRange) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Start) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Start))) - i += copy(dAtA[i:], m.Start) - } - if len(m.End) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.End))) - i += copy(dAtA[i:], m.End) - } - return i, nil -} - -func (m *Polygon) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Polygon) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Points) > 0 { - for _, msg := range m.Points { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *CameraInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraInfo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.RunServerName) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RunServerName))) - i += copy(dAtA[i:], m.RunServerName) - } - if len(m.Id) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.RunType != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.RunType)) - } - return i, nil -} - -func (m *CameraAndRules) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraAndRules) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.CameraInfo != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.CameraInfo.Size())) - n1, err1 := m.CameraInfo.MarshalTo(dAtA[i:]) - if err1 != nil { - return 0, err1 - } - i += n1 - } - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *GroupRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupRule) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.CameraIds) > 0 { - for _, s := range m.CameraIds { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Id) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.GroupText) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.GroupText))) - i += copy(dAtA[i:], m.GroupText) - } - if m.AlarmLevel != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.AlarmLevel)) - } - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.SetType) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SetType))) - i += copy(dAtA[i:], m.SetType) - } - if len(m.TemplateId) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TemplateId))) - i += copy(dAtA[i:], m.TemplateId) - } - if len(m.TemplateRule) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TemplateRule))) - i += copy(dAtA[i:], m.TemplateRule) - } - if len(m.TimeRuleId) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TimeRuleId))) - i += copy(dAtA[i:], m.TimeRuleId) - } - if len(m.SceneName) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SceneName))) - i += copy(dAtA[i:], m.SceneName) - } - if len(m.Desc) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Desc))) - i += copy(dAtA[i:], m.Desc) - } - if m.Enable { - dAtA[i] = 0x60 - i++ - if m.Enable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.VoiceId) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VoiceId))) - i += copy(dAtA[i:], m.VoiceId) - } - return i, nil -} - -func (m *GroupRuleSdks) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupRuleSdks) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.SceneName) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SceneName))) - i += copy(dAtA[i:], m.SceneName) - } - if len(m.Sdks) > 0 { - for _, msg := range m.Sdks { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.SdkIds) > 0 { - for _, s := range m.SdkIds { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *Rule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Rule) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.CameraId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) - i += copy(dAtA[i:], m.CameraId) - } - if len(m.PolygonId) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PolygonId))) - i += copy(dAtA[i:], m.PolygonId) - } - if len(m.SdkId) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkId))) - i += copy(dAtA[i:], m.SdkId) - } - if len(m.SdkSet) > 0 { - for _, msg := range m.SdkSet { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.RuleWithPre) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RuleWithPre))) - i += copy(dAtA[i:], m.RuleWithPre) - } - if m.IsSaveAnyhow { - dAtA[i] = 0x38 - i++ - if m.IsSaveAnyhow { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.GroupId) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.GroupId))) - i += copy(dAtA[i:], m.GroupId) - } - if m.Sort != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) - } - return i, nil -} - -func (m *RuleTemplate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuleTemplate) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Desc) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Desc))) - i += copy(dAtA[i:], m.Desc) - } - if len(m.Txt) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Txt))) - i += copy(dAtA[i:], m.Txt) - } - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *RuleTemplateList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuleTemplateList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.List) > 0 { - for _, msg := range m.List { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *TemplateArg) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TemplateArg) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.SdkId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkId))) - i += copy(dAtA[i:], m.SdkId) - } - if len(m.SdkArgAlias) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkArgAlias))) - i += copy(dAtA[i:], m.SdkArgAlias) - } - if len(m.Operator) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Operator))) - i += copy(dAtA[i:], m.Operator) - } - if len(m.SdkArgValue) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkArgValue))) - i += copy(dAtA[i:], m.SdkArgValue) - } - if len(m.Sort) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Sort))) - i += copy(dAtA[i:], m.Sort) - } - if len(m.RuleWithPre) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RuleWithPre))) - i += copy(dAtA[i:], m.RuleWithPre) - } - return i, nil -} - -func (m *SdkSetBase) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SdkSetBase) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.SdkArgAlias) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkArgAlias))) - i += copy(dAtA[i:], m.SdkArgAlias) - } - if len(m.Operator) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Operator))) - i += copy(dAtA[i:], m.Operator) - } - if len(m.OperatorType) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.OperatorType))) - i += copy(dAtA[i:], m.OperatorType) - } - if len(m.SdkArgValue) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkArgValue))) - i += copy(dAtA[i:], m.SdkArgValue) - } - if m.Sort != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) - } - return i, nil -} - -func (m *Sdk) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Sdk) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.IpcId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IpcId))) - i += copy(dAtA[i:], m.IpcId) - } - if len(m.SdkType) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkType))) - i += copy(dAtA[i:], m.SdkType) - } - if len(m.SdkName) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkName))) - i += copy(dAtA[i:], m.SdkName) - } - if len(m.Args) > 0 { - for _, msg := range m.Args { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Icon) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Icon))) - i += copy(dAtA[i:], m.Icon) - } - if len(m.Url) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Url))) - i += copy(dAtA[i:], m.Url) - } - if len(m.CreateTime) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateTime))) - i += copy(dAtA[i:], m.CreateTime) - } - if len(m.UpdateTime) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.UpdateTime))) - i += copy(dAtA[i:], m.UpdateTime) - } - if len(m.CreateBy) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateBy))) - i += copy(dAtA[i:], m.CreateBy) - } - if m.Enable { - dAtA[i] = 0x58 - i++ - if m.Enable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.DelFlag != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.DelFlag)) - } - if len(m.IconBlob) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IconBlob))) - i += copy(dAtA[i:], m.IconBlob) - } - if len(m.Version) > 0 { - dAtA[i] = 0x72 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Version))) - i += copy(dAtA[i:], m.Version) - } - if m.EnTrack { - dAtA[i] = 0x78 - i++ - if m.EnTrack { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.ArgDef) > 0 { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ArgDef))) - i += copy(dAtA[i:], m.ArgDef) - } - if len(m.RuleSo) > 0 { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RuleSo))) - i += copy(dAtA[i:], m.RuleSo) - } - return i, nil -} - -func (m *SdkArg) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SdkArg) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Alias) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Alias))) - i += copy(dAtA[i:], m.Alias) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Type) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - } - if m.Must { - dAtA[i] = 0x20 - i++ - if m.Must { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.Unit) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Unit))) - i += copy(dAtA[i:], m.Unit) - } - if len(m.Range) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Range))) - i += copy(dAtA[i:], m.Range) - } - if len(m.DefaultValue) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.DefaultValue))) - i += copy(dAtA[i:], m.DefaultValue) - } - if len(m.DefaultOperator) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.DefaultOperator))) - i += copy(dAtA[i:], m.DefaultOperator) - } - if m.Sort != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) - } - return i, nil -} - -func (m *SdkChanSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SdkChanSet) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.SdkType) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkType))) - i += copy(dAtA[i:], m.SdkType) - } - if m.ChanNum != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.ChanNum)) - } - if m.ConfidenceInc != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.ConfidenceInc)) - } - if m.MinMovePos != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.MinMovePos)) - } - return i, nil -} - -func (m *DbChangeMessage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DbChangeMessage) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Table != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Table)) - } - if len(m.Id) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if m.Action != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Action)) - } - if len(m.Info) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Info))) - i += copy(dAtA[i:], m.Info) - } - return i, nil -} - -func (m *CameraPolygon) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraPolygon) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.CameraId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) - i += copy(dAtA[i:], m.CameraId) - } - if len(m.Name) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Polygon) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Polygon))) - i += copy(dAtA[i:], m.Polygon) - } - if len(m.TriggerLine) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TriggerLine))) - i += copy(dAtA[i:], m.TriggerLine) - } - if len(m.DirectionLine) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.DirectionLine))) - i += copy(dAtA[i:], m.DirectionLine) - } - if len(m.Type) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - } - if m.DefenceState != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.DefenceState)) - } - if len(m.CameraName) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraName))) - i += copy(dAtA[i:], m.CameraName) - } - return i, nil -} - -func (m *CameraPolygonRelation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraPolygonRelation) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.SourceCameraId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SourceCameraId))) - i += copy(dAtA[i:], m.SourceCameraId) - } - if len(m.SourcePolygonId) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SourcePolygonId))) - i += copy(dAtA[i:], m.SourcePolygonId) - } - if len(m.TargetCameraId) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TargetCameraId))) - i += copy(dAtA[i:], m.TargetCameraId) - } - if len(m.TargetPolygonId) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TargetPolygonId))) - i += copy(dAtA[i:], m.TargetPolygonId) - } - return i, nil -} - -func (m *VideotapeInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VideotapeInfo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.EsDataId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.EsDataId))) - i += copy(dAtA[i:], m.EsDataId) - } - if len(m.CameraId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) - i += copy(dAtA[i:], m.CameraId) - } - if len(m.TaskId) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TaskId))) - i += copy(dAtA[i:], m.TaskId) - } - if m.ImgId != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.ImgId)) - } - if len(m.VideoUrl) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VideoUrl))) - i += copy(dAtA[i:], m.VideoUrl) - } - if len(m.SdkIds) > 0 { - for _, s := range m.SdkIds { - dAtA[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.Type != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Type)) - } - return i, nil -} - -func (m *Voice) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Voice) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Path) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) - } - return i, nil -} - -func (m *VoiceList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VoiceList) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.List) > 0 { - for _, msg := range m.List { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *CompareArgs) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CompareArgs) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.TableIds) > 0 { - for _, s := range m.TableIds { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.CompareThreshold != 0 { - dAtA[i] = 0x15 - i++ - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareThreshold)))) - i += 4 - } - if len(m.FaceFeature) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.FaceFeature))) - i += copy(dAtA[i:], m.FaceFeature) - } - if len(m.Tasks) > 0 { - for _, s := range m.Tasks { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.TreeNodes) > 0 { - for _, s := range m.TreeNodes { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Tabs) > 0 { - for _, s := range m.Tabs { - dAtA[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.AlarmLevel) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.AlarmLevel))) - i += copy(dAtA[i:], m.AlarmLevel) - } - if len(m.SearchTime) > 0 { - for _, s := range m.SearchTime { - dAtA[i] = 0x42 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.InputValue) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.InputValue))) - i += copy(dAtA[i:], m.InputValue) - } - if len(m.Collection) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Collection))) - i += copy(dAtA[i:], m.Collection) - } - if m.Source { - dAtA[i] = 0x58 - i++ - if m.Source { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.AnalyServerId) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.AnalyServerId))) - i += copy(dAtA[i:], m.AnalyServerId) - } - if len(m.CompareTarget) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CompareTarget))) - i += copy(dAtA[i:], m.CompareTarget) - } - if m.IsCompareAll { - dAtA[i] = 0x70 - i++ - if m.IsCompareAll { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *CompareEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CompareEvent) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.EventType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.EventType)) - } - if len(m.Payload) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Payload))) - i += copy(dAtA[i:], m.Payload) - } - return i, nil -} - -func (m *SdkCompareEach) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SdkCompareEach) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Tableid) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Tableid))) - i += copy(dAtA[i:], m.Tableid) - } - if m.CompareScore != 0 { - dAtA[i] = 0x1d - i++ - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareScore)))) - i += 4 - } - return i, nil -} - -func (m *SdkCompareResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SdkCompareResult) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.CompareResult) > 0 { - for _, msg := range m.CompareResult { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *EventPush) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventPush) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.TimeStart) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TimeStart))) - i += copy(dAtA[i:], m.TimeStart) - } - if len(m.TimeEnd) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TimeEnd))) - i += copy(dAtA[i:], m.TimeEnd) - } - if m.IsSatisfyAll { - dAtA[i] = 0x28 - i++ - if m.IsSatisfyAll { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.RuleText) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RuleText))) - i += copy(dAtA[i:], m.RuleText) - } - if m.Enable { - dAtA[i] = 0x38 - i++ - if m.Enable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.LinkType) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LinkType))) - i += copy(dAtA[i:], m.LinkType) - } - if len(m.LinkDevice) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LinkDevice))) - i += copy(dAtA[i:], m.LinkDevice) - } - if len(m.IpPorts) > 0 { - for _, msg := range m.IpPorts { - dAtA[i] = 0x52 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Urls) > 0 { - for _, msg := range m.Urls { - dAtA[i] = 0x5a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - dAtA[i] = 0x62 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.FiltRename) > 0 { - for k, _ := range m.FiltRename { - dAtA[i] = 0x6a - i++ - v := m.FiltRename[k] - mapSize := 1 + len(k) + sovProtomsg(uint64(len(k))) + 1 + len(v) + sovProtomsg(uint64(len(v))) - i = encodeVarintProtomsg(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } - } - if len(m.PushSet) > 0 { - for _, msg := range m.PushSet { - dAtA[i] = 0x72 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *PushSetMenu) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PushSetMenu) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.Checked { - dAtA[i] = 0x18 - i++ - if m.Checked { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.Alias) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Alias))) - i += copy(dAtA[i:], m.Alias) - } - if len(m.Children) > 0 { - for _, msg := range m.Children { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *EventPushRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventPushRule) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.TopicType) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TopicType))) - i += copy(dAtA[i:], m.TopicType) - } - if len(m.TopicArg) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TopicArg))) - i += copy(dAtA[i:], m.TopicArg) - } - if len(m.Operator) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Operator))) - i += copy(dAtA[i:], m.Operator) - } - if len(m.OperatorType) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.OperatorType))) - i += copy(dAtA[i:], m.OperatorType) - } - if len(m.RuleValue) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RuleValue))) - i += copy(dAtA[i:], m.RuleValue) - } - if len(m.EventPushId) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.EventPushId))) - i += copy(dAtA[i:], m.EventPushId) - } - return i, nil -} - -func (m *PushIpPort) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PushIpPort) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ServerIp) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ServerIp))) - i += copy(dAtA[i:], m.ServerIp) - } - if m.Port != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Port)) - } - if m.Enable { - dAtA[i] = 0x18 - i++ - if m.Enable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *PushUrl) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PushUrl) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Url) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Url))) - i += copy(dAtA[i:], m.Url) - } - if m.Enable { - dAtA[i] = 0x10 - i++ - if m.Enable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *PushAttach) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PushAttach) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.PushId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PushId))) - i += copy(dAtA[i:], m.PushId) - } - if m.Cam != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Cam.Size())) - n2, err2 := m.Cam.MarshalTo(dAtA[i:]) - if err2 != nil { - return 0, err2 - } - i += n2 - } - if len(m.ServerId) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ServerId))) - i += copy(dAtA[i:], m.ServerId) - } - if len(m.ServerName) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ServerName))) - i += copy(dAtA[i:], m.ServerName) - } - if len(m.LocalIp) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LocalIp))) - i += copy(dAtA[i:], m.LocalIp) - } - if len(m.VideoUrl) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VideoUrl))) - i += copy(dAtA[i:], m.VideoUrl) - } - return i, nil -} - -func (m *EsPersonCacheChange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EsPersonCacheChange) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Type)) - } - if len(m.TableId) > 0 { - for _, s := range m.TableId { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.PersonId) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PersonId))) - i += copy(dAtA[i:], m.PersonId) - } - if len(m.Feature) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Feature))) - i += copy(dAtA[i:], m.Feature) - } - if m.Action != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Action)) - } - if m.Enable != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Enable)) - } - if len(m.CarNo) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CarNo))) - i += copy(dAtA[i:], m.CarNo) - } - return i, nil -} - -func (m *ClusterAndNodes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterAndNodes) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ClusterId))) - i += copy(dAtA[i:], m.ClusterId) - } - if len(m.ClusterName) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ClusterName))) - i += copy(dAtA[i:], m.ClusterName) - } - if len(m.Nodes) > 0 { - for _, msg := range m.Nodes { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.VirtualIp) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VirtualIp))) - i += copy(dAtA[i:], m.VirtualIp) - } - return i, nil -} - -func (m *Node) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Node) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.ClusterId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ClusterId))) - i += copy(dAtA[i:], m.ClusterId) - } - if len(m.NodeName) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.NodeName))) - i += copy(dAtA[i:], m.NodeName) - } - if len(m.NodeId) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.NodeId))) - i += copy(dAtA[i:], m.NodeId) - } - if len(m.NodeIp) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.NodeIp))) - i += copy(dAtA[i:], m.NodeIp) - } - if len(m.CreateTime) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateTime))) - i += copy(dAtA[i:], m.CreateTime) - } - if m.IsDelete { - dAtA[i] = 0x38 - i++ - if m.IsDelete { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.DriftState) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.DriftState))) - i += copy(dAtA[i:], m.DriftState) - } - if len(m.DeviceType) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.DeviceType))) - i += copy(dAtA[i:], m.DeviceType) - } - return i, nil -} - -func (m *Dic) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Dic) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) - } - if len(m.Name) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Type) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - } - if len(m.Description) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Description))) - i += copy(dAtA[i:], m.Description) - } - if m.Sort != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) - } - if len(m.ParentId) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ParentId))) - i += copy(dAtA[i:], m.ParentId) - } - return i, nil -} - -func encodeVarintProtomsg(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *Area) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 1 + sovProtomsg(uint64(m.Id)) - } - if m.Parentid != 0 { - n += 1 + sovProtomsg(uint64(m.Parentid)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *Camera) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Alias) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SnapshotUrl) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovProtomsg(uint64(m.Type)) - } - l = len(m.Addr) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Longitude != 0 { - n += 5 - } - if m.Latitude != 0 { - n += 5 - } - if m.Floor != 0 { - n += 1 + sovProtomsg(uint64(m.Floor)) - } - l = len(m.Rtsp) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Ip) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Port != 0 { - n += 1 + sovProtomsg(uint64(m.Port)) - } - l = len(m.Username) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Password) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Brand) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Reserved) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - if m.IsRunning { - n += 3 - } - if m.RunEnable { - n += 3 - } - if m.RunType != 0 { - n += 2 + sovProtomsg(uint64(m.RunType)) - } - l = len(m.RunServerId) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - if m.ResolutionWidth != 0 { - n += 2 + sovProtomsg(uint64(m.ResolutionWidth)) - } - if m.ResolutionHeight != 0 { - n += 2 + sovProtomsg(uint64(m.ResolutionHeight)) - } - if m.Fps != 0 { - n += 2 + sovProtomsg(uint64(m.Fps)) - } - if len(m.Sensors) > 0 { - for _, e := range m.Sensors { - l = e.Size() - n += 2 + l + sovProtomsg(uint64(l)) - } - } - if m.VoiceEnable { - n += 3 - } - l = len(m.VoiceId) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.CoordTransform) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - if m.Status != 0 { - n += 2 + sovProtomsg(uint64(m.Status)) - } - return n -} - -func (m *Sensor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Type) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Ip) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Port != 0 { - n += 1 + sovProtomsg(uint64(m.Port)) - } - l = len(m.Username) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Password) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Threshold != 0 { - n += 1 + sovProtomsg(uint64(m.Threshold)) - } - if m.Enable { - n += 2 - } - return n -} - -func (m *CameraLink) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CameraIds) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.LinkTaskId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *SdkRun) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.IpcId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.IsTriggerByPreSdk != 0 { - n += 1 + sovProtomsg(uint64(m.IsTriggerByPreSdk)) - } - if m.Confidence != 0 { - n += 1 + sovProtomsg(uint64(m.Confidence)) - } - if m.BReid { - n += 2 - } - if m.TriggerNextSdkType != 0 { - n += 1 + sovProtomsg(uint64(m.TriggerNextSdkType)) - } - return n -} - -func (m *CameraTimerule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TimeRule) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *DayCtl) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Day != 0 { - n += 1 + sovProtomsg(uint64(m.Day)) - } - if len(m.TimeRange) > 0 { - for _, e := range m.TimeRange { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *TimeRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Start) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.End) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *Polygon) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Points) > 0 { - for _, e := range m.Points { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *CameraInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RunServerName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.RunType != 0 { - n += 1 + sovProtomsg(uint64(m.RunType)) - } - return n -} - -func (m *CameraAndRules) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CameraInfo != nil { - l = m.CameraInfo.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *GroupRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.CameraIds) > 0 { - for _, s := range m.CameraIds { - l = len(s) - n += 1 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.GroupText) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.AlarmLevel != 0 { - n += 1 + sovProtomsg(uint64(m.AlarmLevel)) - } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.SetType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TemplateId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TemplateRule) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TimeRuleId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SceneName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Desc) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Enable { - n += 2 - } - l = len(m.VoiceId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *GroupRuleSdks) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SceneName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Sdks) > 0 { - for _, e := range m.Sdks { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - if len(m.SdkIds) > 0 { - for _, s := range m.SdkIds { - l = len(s) - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *Rule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CameraId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PolygonId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.SdkSet) > 0 { - for _, e := range m.SdkSet { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.RuleWithPre) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.IsSaveAnyhow { - n += 2 - } - l = len(m.GroupId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Sort != 0 { - n += 1 + sovProtomsg(uint64(m.Sort)) - } - return n -} - -func (m *RuleTemplate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Desc) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Txt) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *RuleTemplateList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.List) > 0 { - for _, e := range m.List { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *TemplateArg) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SdkId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkArgAlias) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkArgValue) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Sort) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.RuleWithPre) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *SdkSetBase) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SdkArgAlias) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.OperatorType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkArgValue) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Sort != 0 { - n += 1 + sovProtomsg(uint64(m.Sort)) - } - return n -} - -func (m *Sdk) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.IpcId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Args) > 0 { - for _, e := range m.Args { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.Icon) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Url) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CreateTime) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.UpdateTime) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CreateBy) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Enable { - n += 2 - } - if m.DelFlag != 0 { - n += 1 + sovProtomsg(uint64(m.DelFlag)) - } - l = len(m.IconBlob) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Version) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.EnTrack { - n += 2 - } - l = len(m.ArgDef) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.RuleSo) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *SdkArg) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Alias) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Type) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Must { - n += 2 - } - l = len(m.Unit) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Range) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.DefaultValue) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.DefaultOperator) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Sort != 0 { - n += 1 + sovProtomsg(uint64(m.Sort)) - } - return n -} - -func (m *SdkChanSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SdkType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.ChanNum != 0 { - n += 1 + sovProtomsg(uint64(m.ChanNum)) - } - if m.ConfidenceInc != 0 { - n += 1 + sovProtomsg(uint64(m.ConfidenceInc)) - } - if m.MinMovePos != 0 { - n += 1 + sovProtomsg(uint64(m.MinMovePos)) - } - return n -} - -func (m *DbChangeMessage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Table != 0 { - n += 1 + sovProtomsg(uint64(m.Table)) - } - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Action != 0 { - n += 1 + sovProtomsg(uint64(m.Action)) - } - l = len(m.Info) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *CameraPolygon) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CameraId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Polygon) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TriggerLine) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.DirectionLine) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Type) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.DefenceState != 0 { - n += 1 + sovProtomsg(uint64(m.DefenceState)) - } - l = len(m.CameraName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *CameraPolygonRelation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SourceCameraId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SourcePolygonId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TargetCameraId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TargetPolygonId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *VideotapeInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.EsDataId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CameraId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TaskId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.ImgId != 0 { - n += 1 + sovProtomsg(uint64(m.ImgId)) - } - l = len(m.VideoUrl) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.SdkIds) > 0 { - for _, s := range m.SdkIds { - l = len(s) - n += 1 + l + sovProtomsg(uint64(l)) - } - } - if m.Type != 0 { - n += 1 + sovProtomsg(uint64(m.Type)) - } - return n -} - -func (m *Voice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Path) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *VoiceList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.List) > 0 { - for _, e := range m.List { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *CompareArgs) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.TableIds) > 0 { - for _, s := range m.TableIds { - l = len(s) - n += 1 + l + sovProtomsg(uint64(l)) - } - } - if m.CompareThreshold != 0 { - n += 5 - } - l = len(m.FaceFeature) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Tasks) > 0 { - for _, s := range m.Tasks { - l = len(s) - n += 1 + l + sovProtomsg(uint64(l)) - } - } - if len(m.TreeNodes) > 0 { - for _, s := range m.TreeNodes { - l = len(s) - n += 1 + l + sovProtomsg(uint64(l)) - } - } - if len(m.Tabs) > 0 { - for _, s := range m.Tabs { - l = len(s) - n += 1 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.AlarmLevel) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.SearchTime) > 0 { - for _, s := range m.SearchTime { - l = len(s) - n += 1 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.InputValue) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Collection) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Source { - n += 2 - } - l = len(m.AnalyServerId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CompareTarget) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.IsCompareAll { - n += 2 - } - return n -} - -func (m *CompareEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EventType != 0 { - n += 1 + sovProtomsg(uint64(m.EventType)) - } - l = len(m.Payload) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *SdkCompareEach) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Tableid) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.CompareScore != 0 { - n += 5 - } - return n -} - -func (m *SdkCompareResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.CompareResult) > 0 { - for _, e := range m.CompareResult { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *EventPush) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TimeStart) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TimeEnd) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.IsSatisfyAll { - n += 2 - } - l = len(m.RuleText) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Enable { - n += 2 - } - l = len(m.LinkType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.LinkDevice) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.IpPorts) > 0 { - for _, e := range m.IpPorts { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - if len(m.Urls) > 0 { - for _, e := range m.Urls { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - if len(m.FiltRename) > 0 { - for k, v := range m.FiltRename { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovProtomsg(uint64(len(k))) + 1 + len(v) + sovProtomsg(uint64(len(v))) - n += mapEntrySize + 1 + sovProtomsg(uint64(mapEntrySize)) - } - } - if len(m.PushSet) > 0 { - for _, e := range m.PushSet { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *PushSetMenu) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Checked { - n += 2 - } - l = len(m.Alias) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Children) > 0 { - for _, e := range m.Children { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *EventPushRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TopicType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TopicArg) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.OperatorType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.RuleValue) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.EventPushId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *PushIpPort) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ServerIp) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Port != 0 { - n += 1 + sovProtomsg(uint64(m.Port)) - } - if m.Enable { - n += 2 - } - return n -} - -func (m *PushUrl) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Url) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Enable { - n += 2 - } - return n -} - -func (m *PushAttach) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PushId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Cam != nil { - l = m.Cam.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.ServerId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.ServerName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.LocalIp) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.VideoUrl) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *EsPersonCacheChange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovProtomsg(uint64(m.Type)) - } - if len(m.TableId) > 0 { - for _, s := range m.TableId { - l = len(s) - n += 1 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.PersonId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Feature) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Action != 0 { - n += 1 + sovProtomsg(uint64(m.Action)) - } - if m.Enable != 0 { - n += 1 + sovProtomsg(uint64(m.Enable)) - } - l = len(m.CarNo) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *ClusterAndNodes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Nodes) > 0 { - for _, e := range m.Nodes { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.VirtualIp) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *Node) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.NodeId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.NodeIp) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CreateTime) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.IsDelete { - n += 2 - } - l = len(m.DriftState) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.DeviceType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *Dic) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Type) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Sort != 0 { - n += 1 + sovProtomsg(uint64(m.Sort)) - } - l = len(m.ParentId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func sovProtomsg(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozProtomsg(x uint64) (n int) { - return sovProtomsg(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Area) 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 ErrIntOverflowProtomsg - } - 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: Area: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Area: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Parentid", wireType) - } - m.Parentid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Parentid |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Camera) 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 ErrIntOverflowProtomsg - } - 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: Camera: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Camera: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SnapshotUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SnapshotUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Longitude", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.Longitude = float32(math.Float32frombits(v)) - case 8: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Latitude", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.Latitude = float32(math.Float32frombits(v)) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Floor", wireType) - } - m.Floor = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Floor |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rtsp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rtsp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ip = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Password = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Brand", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Brand = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserved", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reserved = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsRunning", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsRunning = bool(v != 0) - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunEnable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RunEnable = bool(v != 0) - case 19: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunType", wireType) - } - m.RunType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RunType |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunServerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunServerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 21: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolutionWidth", wireType) - } - m.ResolutionWidth = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ResolutionWidth |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 22: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolutionHeight", wireType) - } - m.ResolutionHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ResolutionHeight |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 23: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Fps", wireType) - } - m.Fps = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Fps |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sensors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sensors = append(m.Sensors, &Sensor{}) - if err := m.Sensors[len(m.Sensors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 25: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VoiceEnable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.VoiceEnable = bool(v != 0) - case 26: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VoiceId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VoiceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 27: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CoordTransform", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CoordTransform = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 28: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Sensor) 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 ErrIntOverflowProtomsg - } - 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: Sensor: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Sensor: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ip = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Password = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) - } - m.Threshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Threshold |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enable = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraLink) 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 ErrIntOverflowProtomsg - } - 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: CameraLink: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraLink: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraIds = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LinkTaskId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LinkTaskId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SdkRun) 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 ErrIntOverflowProtomsg - } - 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: SdkRun: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SdkRun: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IpcId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IpcId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsTriggerByPreSdk", wireType) - } - m.IsTriggerByPreSdk = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IsTriggerByPreSdk |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Confidence", wireType) - } - m.Confidence = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Confidence |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BReid", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.BReid = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TriggerNextSdkType", wireType) - } - m.TriggerNextSdkType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TriggerNextSdkType |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraTimerule) 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 ErrIntOverflowProtomsg - } - 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: CameraTimerule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraTimerule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeRule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeRule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DayCtl) 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 ErrIntOverflowProtomsg - } - 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: DayCtl: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DayCtl: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Day", wireType) - } - m.Day = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Day |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeRange", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeRange = append(m.TimeRange, &TimeRange{}) - if err := m.TimeRange[len(m.TimeRange)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TimeRange) 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 ErrIntOverflowProtomsg - } - 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: TimeRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TimeRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Start = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.End = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Polygon) 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 ErrIntOverflowProtomsg - } - 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: Polygon: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Polygon: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Points", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Points = append(m.Points, &Point{}) - if err := m.Points[len(m.Points)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraInfo) 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 ErrIntOverflowProtomsg - } - 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: CameraInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunServerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunServerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunType", wireType) - } - m.RunType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RunType |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraAndRules) 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 ErrIntOverflowProtomsg - } - 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: CameraAndRules: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraAndRules: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CameraInfo == nil { - m.CameraInfo = &CameraInfo{} - } - if err := m.CameraInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, &GroupRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupRule) 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 ErrIntOverflowProtomsg - } - 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: GroupRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraIds = append(m.CameraIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupText", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupText = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AlarmLevel", wireType) - } - m.AlarmLevel = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AlarmLevel |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, &Rule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SetType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TemplateId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TemplateRule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TemplateRule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeRuleId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeRuleId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SceneName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SceneName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Desc = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enable = bool(v != 0) - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VoiceId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VoiceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupRuleSdks) 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 ErrIntOverflowProtomsg - } - 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: GroupRuleSdks: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupRuleSdks: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SceneName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SceneName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sdks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sdks = append(m.Sdks, &SdkRun{}) - if err := m.Sdks[len(m.Sdks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkIds = append(m.SdkIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Rule) 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 ErrIntOverflowProtomsg - } - 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: Rule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PolygonId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PolygonId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkSet", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkSet = append(m.SdkSet, &SdkSetBase{}) - if err := m.SdkSet[len(m.SdkSet)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleWithPre", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuleWithPre = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsSaveAnyhow", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsSaveAnyhow = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType) - } - m.Sort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuleTemplate) 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 ErrIntOverflowProtomsg - } - 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: RuleTemplate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuleTemplate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Desc = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Txt", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Txt = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, &TemplateArg{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuleTemplateList) 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 ErrIntOverflowProtomsg - } - 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: RuleTemplateList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuleTemplateList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field List", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.List = append(m.List, &RuleTemplate{}) - if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TemplateArg) 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 ErrIntOverflowProtomsg - } - 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: TemplateArg: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TemplateArg: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkArgAlias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkArgAlias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkArgValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkArgValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sort = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleWithPre", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuleWithPre = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SdkSetBase) 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 ErrIntOverflowProtomsg - } - 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: SdkSetBase: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SdkSetBase: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkArgAlias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkArgAlias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OperatorType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OperatorType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkArgValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkArgValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType) - } - m.Sort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Sdk) 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 ErrIntOverflowProtomsg - } - 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: Sdk: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Sdk: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IpcId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IpcId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, &SdkArg{}) - if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Icon = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CreateTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UpdateTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateBy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CreateBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enable = bool(v != 0) - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DelFlag", wireType) - } - m.DelFlag = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DelFlag |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IconBlob", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IconBlob = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EnTrack", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EnTrack = bool(v != 0) - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ArgDef", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ArgDef = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleSo", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuleSo = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SdkArg) 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 ErrIntOverflowProtomsg - } - 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: SdkArg: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SdkArg: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Must", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Must = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Unit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Unit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Range = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DefaultValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultOperator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DefaultOperator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType) - } - m.Sort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SdkChanSet) 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 ErrIntOverflowProtomsg - } - 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: SdkChanSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SdkChanSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChanNum", wireType) - } - m.ChanNum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ChanNum |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfidenceInc", wireType) - } - m.ConfidenceInc = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ConfidenceInc |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinMovePos", wireType) - } - m.MinMovePos = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinMovePos |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DbChangeMessage) 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 ErrIntOverflowProtomsg - } - 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: DbChangeMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DbChangeMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) - } - m.Table = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Table |= TableChanged(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) - } - m.Action = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Action |= DbAction(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Info = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraPolygon) 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 ErrIntOverflowProtomsg - } - 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: CameraPolygon: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraPolygon: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Polygon", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Polygon = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TriggerLine", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TriggerLine = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DirectionLine", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DirectionLine = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefenceState", wireType) - } - m.DefenceState = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DefenceState |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraPolygonRelation) 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 ErrIntOverflowProtomsg - } - 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: CameraPolygonRelation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraPolygonRelation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceCameraId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceCameraId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourcePolygonId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourcePolygonId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetCameraId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetCameraId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetPolygonId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetPolygonId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VideotapeInfo) 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 ErrIntOverflowProtomsg - } - 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: VideotapeInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VideotapeInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EsDataId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EsDataId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraId = 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 ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ImgId", wireType) - } - m.ImgId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ImgId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VideoUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VideoUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkIds = append(m.SdkIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Voice) 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 ErrIntOverflowProtomsg - } - 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: Voice: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Voice: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VoiceList) 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 ErrIntOverflowProtomsg - } - 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: VoiceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VoiceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field List", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.List = append(m.List, &Voice{}) - if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CompareArgs) 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 ErrIntOverflowProtomsg - } - 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: CompareArgs: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CompareArgs: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TableIds = append(m.TableIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field CompareThreshold", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.CompareThreshold = float32(math.Float32frombits(v)) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FaceFeature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FaceFeature = append(m.FaceFeature[:0], dAtA[iNdEx:postIndex]...) - if m.FaceFeature == nil { - m.FaceFeature = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tasks = append(m.Tasks, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TreeNodes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TreeNodes = append(m.TreeNodes, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tabs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tabs = append(m.Tabs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AlarmLevel", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AlarmLevel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchTime", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SearchTime = append(m.SearchTime, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InputValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InputValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Collection = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Source = bool(v != 0) - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AnalyServerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompareTarget", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CompareTarget = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsCompareAll", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsCompareAll = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CompareEvent) 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 ErrIntOverflowProtomsg - } - 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: CompareEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CompareEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType) - } - m.EventType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventType |= CompareEventType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SdkCompareEach) 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 ErrIntOverflowProtomsg - } - 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: SdkCompareEach: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SdkCompareEach: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tableid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tableid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field CompareScore", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.CompareScore = float32(math.Float32frombits(v)) - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SdkCompareResult) 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 ErrIntOverflowProtomsg - } - 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: SdkCompareResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SdkCompareResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompareResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CompareResult = append(m.CompareResult, &SdkCompareEach{}) - if err := m.CompareResult[len(m.CompareResult)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventPush) 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 ErrIntOverflowProtomsg - } - 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: EventPush: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventPush: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeStart", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeStart = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeEnd", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeEnd = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsSatisfyAll", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsSatisfyAll = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleText", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuleText = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enable = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LinkType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LinkType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LinkDevice", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LinkDevice = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IpPorts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IpPorts = append(m.IpPorts, &PushIpPort{}) - if err := m.IpPorts[len(m.IpPorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Urls", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Urls = append(m.Urls, &PushUrl{}) - if err := m.Urls[len(m.Urls)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, &EventPushRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FiltRename", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FiltRename == nil { - m.FiltRename = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthProtomsg - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthProtomsg - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthProtomsg - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.FiltRename[mapkey] = mapvalue - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PushSet", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PushSet = append(m.PushSet, &PushSetMenu{}) - if err := m.PushSet[len(m.PushSet)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PushSetMenu) 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 ErrIntOverflowProtomsg - } - 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: PushSetMenu: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PushSetMenu: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checked", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Checked = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Children = append(m.Children, &PushSetMenu{}) - if err := m.Children[len(m.Children)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventPushRule) 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 ErrIntOverflowProtomsg - } - 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: EventPushRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventPushRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TopicType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicArg", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TopicArg = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OperatorType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OperatorType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuleValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventPushId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EventPushId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PushIpPort) 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 ErrIntOverflowProtomsg - } - 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: PushIpPort: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PushIpPort: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServerIp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServerIp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enable = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PushUrl) 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 ErrIntOverflowProtomsg - } - 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: PushUrl: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PushUrl: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enable = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PushAttach) 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 ErrIntOverflowProtomsg - } - 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: PushAttach: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PushAttach: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PushId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PushId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cam", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Cam == nil { - m.Cam = &Camera{} - } - if err := m.Cam.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalIp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LocalIp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VideoUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VideoUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EsPersonCacheChange) 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 ErrIntOverflowProtomsg - } - 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: EsPersonCacheChange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EsPersonCacheChange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= EsCacheChanged(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TableId = append(m.TableId, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Feature", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Feature = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) - } - m.Action = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Action |= DbAction(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) - } - m.Enable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Enable |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CarNo", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CarNo = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterAndNodes) 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 ErrIntOverflowProtomsg - } - 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: ClusterAndNodes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterAndNodes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nodes = append(m.Nodes, &Node{}) - if err := m.Nodes[len(m.Nodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VirtualIp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VirtualIp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Node) 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 ErrIntOverflowProtomsg - } - 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: Node: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Node: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeIp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeIp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CreateTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsDelete = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DriftState", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DriftState = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeviceType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeviceType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Dic) 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 ErrIntOverflowProtomsg - } - 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: Dic: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Dic: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType) - } - m.Sort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - 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 ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ParentId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipProtomsg(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowProtomsg - } - 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, ErrIntOverflowProtomsg - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowProtomsg - } - 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, ErrInvalidLengthProtomsg - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthProtomsg - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowProtomsg - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipProtomsg(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthProtomsg - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") + 0xb1, 0xd7, 0x7c, 0xcf, 0xd4, 0xcc, 0xce, 0x52, 0xad, 0x2f, 0xea, 0xc3, 0xf6, 0x9a, 0x92, 0xdf, + 0x93, 0xd7, 0xb6, 0x9e, 0x9f, 0xec, 0x83, 0xf1, 0x80, 0xe7, 0x87, 0xd5, 0xae, 0xf4, 0x32, 0x80, + 0xa4, 0x6c, 0xb8, 0x23, 0xf9, 0x16, 0x82, 0x4b, 0xf6, 0xce, 0x10, 0xc3, 0x25, 0xe9, 0xee, 0xe6, + 0x4a, 0x0b, 0xe4, 0x16, 0x04, 0xc9, 0xc9, 0x41, 0x80, 0xe4, 0x5f, 0x08, 0x10, 0xe4, 0x6f, 0x48, + 0x9c, 0x5b, 0x6e, 0xb9, 0xe4, 0x9e, 0x5c, 0x73, 0xcb, 0xbf, 0x10, 0x54, 0x75, 0x37, 0xc9, 0xd9, + 0x5d, 0xd9, 0xca, 0x69, 0xba, 0x7e, 0xfd, 0xc1, 0xea, 0xea, 0xaa, 0xea, 0x5f, 0x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0xcb, 0x47, 0x67, 0x73, 0xfb, 0x01, 0x0c, 0x6d, 0xd8, 0xa2, + 0xe2, 0xb3, 0x4c, 0x72, 0xa1, 0x9c, 0x4b, 0xd8, 0x7e, 0x41, 0xef, 0x50, 0x4e, 0x0b, 0xdb, 0xda, + 0x8d, 0x9c, 0xf6, 0xf6, 0x0e, 0x38, 0x67, 0xc9, 0x28, 0x2a, 0xe0, 0xf3, 0x59, 0x96, 0x28, 0x4a, + 0x40, 0xce, 0x25, 0x04, 0xf4, 0x64, 0x0d, 0xb4, 0xd8, 0x18, 0x06, 0x66, 0x96, 0xd3, 0xde, 0xfe, + 0x1c, 0xa6, 0xeb, 0xb9, 0x4a, 0x2b, 0xbc, 0x77, 0x48, 0xa7, 0xe6, 0x5c, 0xd2, 0xa7, 0x60, 0x44, + 0x9d, 0x00, 0x9d, 0xd6, 0x61, 0x9f, 0x22, 0xf7, 0xb3, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x10, + 0xc7, 0x2f, 0xc5, 0xcf, 0x20, 0x00, 0x00, } - -var ( - ErrInvalidLengthProtomsg = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowProtomsg = fmt.Errorf("proto: integer overflow") -) -- Gitblit v1.8.0