From e60bbe8f959bfb7e1e3aab97a94067cfb3f49981 Mon Sep 17 00:00:00 2001 From: 554325746@qq.com <554325746@qq.com> Date: 星期日, 16 六月 2019 15:56:52 +0800 Subject: [PATCH] add map[string]string] in sdkmessage --- protomsg.pb.go | 9811 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 9,553 insertions(+), 258 deletions(-) diff --git a/protomsg.pb.go b/protomsg.pb.go index 876a732..91bee21 100644 --- a/protomsg.pb.go +++ b/protomsg.pb.go @@ -1,11 +1,13 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: protomsg.proto package protomsg import ( + encoding_binary "encoding/binary" fmt "fmt" proto "github.com/golang/protobuf/proto" + io "io" math "math" ) @@ -18,7 +20,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.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package //TableChanged enum type TableChanged int32 @@ -104,18 +106,26 @@ func (*TaskLabel) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{0} } - func (m *TaskLabel) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskLabel.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *TaskLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskLabel.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_TaskLabel.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *TaskLabel) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskLabel.Merge(m, src) } func (m *TaskLabel) XXX_Size() int { - return xxx_messageInfo_TaskLabel.Size(m) + return m.Size() } func (m *TaskLabel) XXX_DiscardUnknown() { xxx_messageInfo_TaskLabel.DiscardUnknown(m) @@ -146,12 +156,13 @@ //SdkMessage struct test type SdkMessage struct { - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - Tasklab *TaskLabel `protobuf:"bytes,2,opt,name=tasklab,proto3" json:"tasklab,omitempty"` - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + Tasklab *TaskLabel `protobuf:"bytes,2,opt,name=tasklab,proto3" json:"tasklab,omitempty"` + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + Esinfo map[string]string `protobuf:"bytes,4,rep,name=esinfo,proto3" json:"esinfo,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SdkMessage) Reset() { *m = SdkMessage{} } @@ -160,18 +171,26 @@ func (*SdkMessage) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{1} } - func (m *SdkMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SdkMessage.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *SdkMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SdkMessage.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_SdkMessage.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *SdkMessage) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkMessage.Merge(m, src) } func (m *SdkMessage) XXX_Size() int { - return xxx_messageInfo_SdkMessage.Size(m) + return m.Size() } func (m *SdkMessage) XXX_DiscardUnknown() { xxx_messageInfo_SdkMessage.DiscardUnknown(m) @@ -200,6 +219,13 @@ return nil } +func (m *SdkMessage) GetEsinfo() map[string]string { + if m != nil { + return m.Esinfo + } + return nil +} + // Image ipc struct type Image struct { Width int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` @@ -216,18 +242,26 @@ func (*Image) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{2} } - func (m *Image) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Image.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Image.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_Image.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *Image) XXX_Merge(src proto.Message) { xxx_messageInfo_Image.Merge(m, src) } func (m *Image) XXX_Size() int { - return xxx_messageInfo_Image.Size(m) + return m.Size() } func (m *Image) XXX_DiscardUnknown() { xxx_messageInfo_Image.DiscardUnknown(m) @@ -272,18 +306,26 @@ func (*Area) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{3} } - func (m *Area) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Area.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Area) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Area.Marshal(b, m, deterministic) + 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 + } } func (m *Area) XXX_Merge(src proto.Message) { xxx_messageInfo_Area.Merge(m, src) } func (m *Area) XXX_Size() int { - return xxx_messageInfo_Area.Size(m) + return m.Size() } func (m *Area) XXX_DiscardUnknown() { xxx_messageInfo_Area.DiscardUnknown(m) @@ -339,18 +381,26 @@ func (*Camera) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{4} } - func (m *Camera) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Camera.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Camera) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Camera.Marshal(b, m, deterministic) + 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 + } } func (m *Camera) XXX_Merge(src proto.Message) { xxx_messageInfo_Camera.Merge(m, src) } func (m *Camera) XXX_Size() int { - return xxx_messageInfo_Camera.Size(m) + return m.Size() } func (m *Camera) XXX_DiscardUnknown() { xxx_messageInfo_Camera.DiscardUnknown(m) @@ -471,18 +521,26 @@ func (*CameraAndTaskInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{5} } - func (m *CameraAndTaskInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CameraAndTaskInfo.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *CameraAndTaskInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CameraAndTaskInfo.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_CameraAndTaskInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *CameraAndTaskInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraAndTaskInfo.Merge(m, src) } func (m *CameraAndTaskInfo) XXX_Size() int { - return xxx_messageInfo_CameraAndTaskInfo.Size(m) + return m.Size() } func (m *CameraAndTaskInfo) XXX_DiscardUnknown() { xxx_messageInfo_CameraAndTaskInfo.DiscardUnknown(m) @@ -525,18 +583,26 @@ func (*Task) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{6} } - func (m *Task) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Task.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Task.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_Task.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *Task) XXX_Merge(src proto.Message) { xxx_messageInfo_Task.Merge(m, src) } func (m *Task) XXX_Size() int { - return xxx_messageInfo_Task.Size(m) + return m.Size() } func (m *Task) XXX_DiscardUnknown() { xxx_messageInfo_Task.DiscardUnknown(m) @@ -614,18 +680,26 @@ func (*TaskSdkInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{7} } - func (m *TaskSdkInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskSdkInfo.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *TaskSdkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskSdkInfo.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_TaskSdkInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *TaskSdkInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskSdkInfo.Merge(m, src) } func (m *TaskSdkInfo) XXX_Size() int { - return xxx_messageInfo_TaskSdkInfo.Size(m) + return m.Size() } func (m *TaskSdkInfo) XXX_DiscardUnknown() { xxx_messageInfo_TaskSdkInfo.DiscardUnknown(m) @@ -672,18 +746,26 @@ func (*CameraTask) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{8} } - func (m *CameraTask) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CameraTask.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *CameraTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CameraTask.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_CameraTask.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *CameraTask) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraTask.Merge(m, src) } func (m *CameraTask) XXX_Size() int { - return xxx_messageInfo_CameraTask.Size(m) + return m.Size() } func (m *CameraTask) XXX_DiscardUnknown() { xxx_messageInfo_CameraTask.DiscardUnknown(m) @@ -791,18 +873,26 @@ func (*CameraTimerule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{9} } - func (m *CameraTimerule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CameraTimerule.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *CameraTimerule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CameraTimerule.Marshal(b, m, deterministic) + 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 + } } func (m *CameraTimerule) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraTimerule.Merge(m, src) } func (m *CameraTimerule) XXX_Size() int { - return xxx_messageInfo_CameraTimerule.Size(m) + return m.Size() } func (m *CameraTimerule) XXX_DiscardUnknown() { xxx_messageInfo_CameraTimerule.DiscardUnknown(m) @@ -846,18 +936,26 @@ func (*DayCtl) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{10} } - func (m *DayCtl) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DayCtl.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *DayCtl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DayCtl.Marshal(b, m, deterministic) + 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 + } } func (m *DayCtl) XXX_Merge(src proto.Message) { xxx_messageInfo_DayCtl.Merge(m, src) } func (m *DayCtl) XXX_Size() int { - return xxx_messageInfo_DayCtl.Size(m) + return m.Size() } func (m *DayCtl) XXX_DiscardUnknown() { xxx_messageInfo_DayCtl.DiscardUnknown(m) @@ -894,18 +992,26 @@ func (*TimeRange) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{11} } - func (m *TimeRange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TimeRange.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *TimeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TimeRange.Marshal(b, m, deterministic) + 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 + } } func (m *TimeRange) XXX_Merge(src proto.Message) { xxx_messageInfo_TimeRange.Merge(m, src) } func (m *TimeRange) XXX_Size() int { - return xxx_messageInfo_TimeRange.Size(m) + return m.Size() } func (m *TimeRange) XXX_DiscardUnknown() { xxx_messageInfo_TimeRange.DiscardUnknown(m) @@ -943,18 +1049,26 @@ func (*Polygon) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{12} } - func (m *Polygon) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Polygon.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Polygon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Polygon.Marshal(b, m, deterministic) + 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 + } } func (m *Polygon) XXX_Merge(src proto.Message) { xxx_messageInfo_Polygon.Merge(m, src) } func (m *Polygon) XXX_Size() int { - return xxx_messageInfo_Polygon.Size(m) + return m.Size() } func (m *Polygon) XXX_DiscardUnknown() { xxx_messageInfo_Polygon.DiscardUnknown(m) @@ -997,18 +1111,26 @@ func (*CameraTaskArgs) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{13} } - func (m *CameraTaskArgs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CameraTaskArgs.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *CameraTaskArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CameraTaskArgs.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_CameraTaskArgs.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *CameraTaskArgs) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraTaskArgs.Merge(m, src) } func (m *CameraTaskArgs) XXX_Size() int { - return xxx_messageInfo_CameraTaskArgs.Size(m) + return m.Size() } func (m *CameraTaskArgs) XXX_DiscardUnknown() { xxx_messageInfo_CameraTaskArgs.DiscardUnknown(m) @@ -1044,18 +1166,26 @@ func (*TaskGroupArgs) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{14} } - func (m *TaskGroupArgs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskGroupArgs.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *TaskGroupArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskGroupArgs.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_TaskGroupArgs.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *TaskGroupArgs) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskGroupArgs.Merge(m, src) } func (m *TaskGroupArgs) XXX_Size() int { - return xxx_messageInfo_TaskGroupArgs.Size(m) + return m.Size() } func (m *TaskGroupArgs) XXX_DiscardUnknown() { xxx_messageInfo_TaskGroupArgs.DiscardUnknown(m) @@ -1091,18 +1221,26 @@ func (*GroupRule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{15} } - func (m *GroupRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GroupRule.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *GroupRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GroupRule.Marshal(b, m, deterministic) + 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 + } } func (m *GroupRule) XXX_Merge(src proto.Message) { xxx_messageInfo_GroupRule.Merge(m, src) } func (m *GroupRule) XXX_Size() int { - return xxx_messageInfo_GroupRule.Size(m) + return m.Size() } func (m *GroupRule) XXX_DiscardUnknown() { xxx_messageInfo_GroupRule.DiscardUnknown(m) @@ -1148,18 +1286,26 @@ func (*Rule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{16} } - func (m *Rule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Rule.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Rule.Marshal(b, m, deterministic) + 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 + } } func (m *Rule) XXX_Merge(src proto.Message) { xxx_messageInfo_Rule.Merge(m, src) } func (m *Rule) XXX_Size() int { - return xxx_messageInfo_Rule.Size(m) + return m.Size() } func (m *Rule) XXX_DiscardUnknown() { xxx_messageInfo_Rule.DiscardUnknown(m) @@ -1275,18 +1421,26 @@ func (*Sdk) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{17} } - func (m *Sdk) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Sdk.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Sdk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Sdk.Marshal(b, m, deterministic) + 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 + } } func (m *Sdk) XXX_Merge(src proto.Message) { xxx_messageInfo_Sdk.Merge(m, src) } func (m *Sdk) XXX_Size() int { - return xxx_messageInfo_Sdk.Size(m) + return m.Size() } func (m *Sdk) XXX_DiscardUnknown() { xxx_messageInfo_Sdk.DiscardUnknown(m) @@ -1391,18 +1545,26 @@ func (*SdkArg) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{18} } - func (m *SdkArg) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SdkArg.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *SdkArg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SdkArg.Marshal(b, m, deterministic) + 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 + } } func (m *SdkArg) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkArg.Merge(m, src) } func (m *SdkArg) XXX_Size() int { - return xxx_messageInfo_SdkArg.Size(m) + return m.Size() } func (m *SdkArg) XXX_DiscardUnknown() { xxx_messageInfo_SdkArg.DiscardUnknown(m) @@ -1474,18 +1636,26 @@ func (*Point) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{19} } - func (m *Point) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Point.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Point.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_Point.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *Point) XXX_Merge(src proto.Message) { xxx_messageInfo_Point.Merge(m, src) } func (m *Point) XXX_Size() int { - return xxx_messageInfo_Point.Size(m) + return m.Size() } func (m *Point) XXX_DiscardUnknown() { xxx_messageInfo_Point.DiscardUnknown(m) @@ -1523,18 +1693,26 @@ func (*Rect) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{20} } - func (m *Rect) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Rect.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Rect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Rect.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_Rect.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *Rect) XXX_Merge(src proto.Message) { xxx_messageInfo_Rect.Merge(m, src) } func (m *Rect) XXX_Size() int { - return xxx_messageInfo_Rect.Size(m) + return m.Size() } func (m *Rect) XXX_DiscardUnknown() { xxx_messageInfo_Rect.DiscardUnknown(m) @@ -1586,18 +1764,26 @@ func (*FaceAngle) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{21} } - func (m *FaceAngle) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FaceAngle.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *FaceAngle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FaceAngle.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_FaceAngle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *FaceAngle) XXX_Merge(src proto.Message) { xxx_messageInfo_FaceAngle.Merge(m, src) } func (m *FaceAngle) XXX_Size() int { - return xxx_messageInfo_FaceAngle.Size(m) + return m.Size() } func (m *FaceAngle) XXX_DiscardUnknown() { xxx_messageInfo_FaceAngle.DiscardUnknown(m) @@ -1650,18 +1836,26 @@ func (*ThftResult) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{22} } - func (m *ThftResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ThftResult.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *ThftResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ThftResult.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_ThftResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *ThftResult) XXX_Merge(src proto.Message) { xxx_messageInfo_ThftResult.Merge(m, src) } func (m *ThftResult) XXX_Size() int { - return xxx_messageInfo_ThftResult.Size(m) + return m.Size() } func (m *ThftResult) XXX_DiscardUnknown() { xxx_messageInfo_ThftResult.DiscardUnknown(m) @@ -1724,18 +1918,26 @@ func (*FacePos) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{23} } - func (m *FacePos) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FacePos.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *FacePos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FacePos.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_FacePos.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *FacePos) XXX_Merge(src proto.Message) { xxx_messageInfo_FacePos.Merge(m, src) } func (m *FacePos) XXX_Size() int { - return xxx_messageInfo_FacePos.Size(m) + return m.Size() } func (m *FacePos) XXX_DiscardUnknown() { xxx_messageInfo_FacePos.DiscardUnknown(m) @@ -1820,18 +2022,26 @@ func (*FaceInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{24} } - func (m *FaceInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FaceInfo.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *FaceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FaceInfo.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_FaceInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *FaceInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_FaceInfo.Merge(m, src) } func (m *FaceInfo) XXX_Size() int { - return xxx_messageInfo_FaceInfo.Size(m) + return m.Size() } func (m *FaceInfo) XXX_DiscardUnknown() { xxx_messageInfo_FaceInfo.DiscardUnknown(m) @@ -1917,18 +2127,26 @@ func (*ObjInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{25} } - func (m *ObjInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ObjInfo.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *ObjInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ObjInfo.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_ObjInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *ObjInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_ObjInfo.Merge(m, src) } func (m *ObjInfo) XXX_Size() int { - return xxx_messageInfo_ObjInfo.Size(m) + return m.Size() } func (m *ObjInfo) XXX_DiscardUnknown() { xxx_messageInfo_ObjInfo.DiscardUnknown(m) @@ -1972,18 +2190,26 @@ func (*ParamFacePos) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{26} } - func (m *ParamFacePos) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParamFacePos.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *ParamFacePos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParamFacePos.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_ParamFacePos.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *ParamFacePos) XXX_Merge(src proto.Message) { xxx_messageInfo_ParamFacePos.Merge(m, src) } func (m *ParamFacePos) XXX_Size() int { - return xxx_messageInfo_ParamFacePos.Size(m) + return m.Size() } func (m *ParamFacePos) XXX_DiscardUnknown() { xxx_messageInfo_ParamFacePos.DiscardUnknown(m) @@ -2020,18 +2246,26 @@ func (*ParamFaceCompare) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{27} } - func (m *ParamFaceCompare) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParamFaceCompare.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *ParamFaceCompare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParamFaceCompare.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_ParamFaceCompare.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *ParamFaceCompare) XXX_Merge(src proto.Message) { xxx_messageInfo_ParamFaceCompare.Merge(m, src) } func (m *ParamFaceCompare) XXX_Size() int { - return xxx_messageInfo_ParamFaceCompare.Size(m) + return m.Size() } func (m *ParamFaceCompare) XXX_DiscardUnknown() { xxx_messageInfo_ParamFaceCompare.DiscardUnknown(m) @@ -2068,18 +2302,26 @@ func (*ParamFaceProperty) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{28} } - func (m *ParamFaceProperty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParamFaceProperty.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *ParamFaceProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParamFaceProperty.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_ParamFaceProperty.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *ParamFaceProperty) XXX_Merge(src proto.Message) { xxx_messageInfo_ParamFaceProperty.Merge(m, src) } func (m *ParamFaceProperty) XXX_Size() int { - return xxx_messageInfo_ParamFaceProperty.Size(m) + return m.Size() } func (m *ParamFaceProperty) XXX_DiscardUnknown() { xxx_messageInfo_ParamFaceProperty.DiscardUnknown(m) @@ -2116,18 +2358,26 @@ func (*ParamYoloObj) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{29} } - func (m *ParamYoloObj) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParamYoloObj.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *ParamYoloObj) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParamYoloObj.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_ParamYoloObj.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *ParamYoloObj) XXX_Merge(src proto.Message) { xxx_messageInfo_ParamYoloObj.Merge(m, src) } func (m *ParamYoloObj) XXX_Size() int { - return xxx_messageInfo_ParamYoloObj.Size(m) + return m.Size() } func (m *ParamYoloObj) XXX_DiscardUnknown() { xxx_messageInfo_ParamYoloObj.DiscardUnknown(m) @@ -2166,18 +2416,26 @@ func (*DbChangeMessage) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{30} } - func (m *DbChangeMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DbChangeMessage.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *DbChangeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DbChangeMessage.Marshal(b, m, deterministic) + 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 + } } func (m *DbChangeMessage) XXX_Merge(src proto.Message) { xxx_messageInfo_DbChangeMessage.Merge(m, src) } func (m *DbChangeMessage) XXX_Size() int { - return xxx_messageInfo_DbChangeMessage.Size(m) + return m.Size() } func (m *DbChangeMessage) XXX_DiscardUnknown() { xxx_messageInfo_DbChangeMessage.DiscardUnknown(m) @@ -2233,18 +2491,26 @@ func (*CameraPolygon) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{31} } - func (m *CameraPolygon) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CameraPolygon.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *CameraPolygon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CameraPolygon.Marshal(b, m, deterministic) + 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 + } } func (m *CameraPolygon) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraPolygon.Merge(m, src) } func (m *CameraPolygon) XXX_Size() int { - return xxx_messageInfo_CameraPolygon.Size(m) + return m.Size() } func (m *CameraPolygon) XXX_DiscardUnknown() { xxx_messageInfo_CameraPolygon.DiscardUnknown(m) @@ -2313,6 +2579,7 @@ proto.RegisterEnum("protomsg.DbAction", DbAction_name, DbAction_value) proto.RegisterType((*TaskLabel)(nil), "protomsg.TaskLabel") proto.RegisterType((*SdkMessage)(nil), "protomsg.SdkMessage") + proto.RegisterMapType((map[string]string)(nil), "protomsg.SdkMessage.EsinfoEntry") proto.RegisterType((*Image)(nil), "protomsg.Image") proto.RegisterType((*Area)(nil), "protomsg.Area") proto.RegisterType((*Camera)(nil), "protomsg.Camera") @@ -2348,127 +2615,9155 @@ func init() { proto.RegisterFile("protomsg.proto", fileDescriptor_32de24555f916688) } var fileDescriptor_32de24555f916688 = []byte{ - // 1939 bytes of a gzipped FileDescriptorProto + // 2024 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcd, 0x92, 0x1c, 0x47, - 0x11, 0xf6, 0xfc, 0x77, 0xe7, 0xcc, 0xac, 0x47, 0x85, 0xb0, 0xc7, 0x36, 0x86, 0x55, 0x4b, 0xe0, - 0x45, 0x18, 0x11, 0xac, 0x7d, 0x26, 0x62, 0xd1, 0x22, 0x62, 0x23, 0x64, 0x79, 0x5d, 0xbb, 0x16, - 0x81, 0x0f, 0x74, 0xd4, 0x74, 0xd5, 0xf4, 0xb6, 0xa7, 0xa7, 0xbb, 0xa9, 0xaa, 0xd1, 0x6a, 0x0e, - 0x3c, 0x03, 0x57, 0xde, 0x81, 0x17, 0xe1, 0xc0, 0x3b, 0x70, 0xe2, 0x02, 0xc1, 0x3b, 0x10, 0x99, - 0x55, 0xdd, 0xd3, 0xb3, 0xbb, 0x0a, 0x14, 0xc1, 0xd5, 0xb7, 0xfc, 0x9b, 0xac, 0xac, 0x2f, 0xb3, - 0x32, 0xb3, 0x07, 0x0e, 0x2a, 0x5d, 0xda, 0x72, 0x6d, 0xd2, 0x27, 0x44, 0xb0, 0xa0, 0xe6, 0xa3, - 0xaf, 0x20, 0xbc, 0x14, 0x66, 0xf5, 0x5c, 0x2c, 0x54, 0xce, 0xde, 0x83, 0xa1, 0x15, 0x66, 0x95, - 0xc9, 0x79, 0xe7, 0xb0, 0x73, 0x14, 0x72, 0xcf, 0xa1, 0xdc, 0xc8, 0x55, 0x26, 0xcd, 0xbc, 0x7b, - 0xd8, 0x43, 0xb9, 0xe3, 0xd8,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 0x6c, 0x84, 0x2c, 0xaf, + 0x6b, 0xd7, 0x22, 0xf0, 0x81, 0x89, 0x9a, 0xae, 0x9a, 0xde, 0xf6, 0xf4, 0x74, 0x37, 0xd5, 0x35, + 0x92, 0xfa, 0xc0, 0x33, 0x70, 0xf5, 0x3b, 0xf0, 0x22, 0x3e, 0x70, 0xe0, 0xc4, 0x15, 0x42, 0x04, + 0x17, 0x08, 0xde, 0x81, 0xc8, 0xac, 0xea, 0x9e, 0x1e, 0xed, 0x2a, 0x50, 0x04, 0x57, 0x6e, 0xf9, + 0x37, 0x59, 0x59, 0x5f, 0x66, 0x65, 0x66, 0x0f, 0xec, 0x15, 0x3a, 0x37, 0xf9, 0xba, 0x8c, 0xef, + 0x13, 0xc1, 0xfc, 0x9a, 0x0f, 0xbf, 0x80, 0xe0, 0x5c, 0x94, 0xab, 0xc7, 0x62, 0xa1, 0x52, 0xf6, + 0x36, 0x0c, 0x8c, 0x28, 0x57, 0x89, 0x9c, 0x79, 0xfb, 0xde, 0x41, 0xc0, 0x1d, 0x87, 0xf2, 0x52, + 0xae, 0x12, 0x59, 0xce, 0x3a, 0xfb, 0x5d, 0x94, 0x5b, 0x8e, 0xdd, 0x80, 0x7e, 0x92, 0x49, 0xf5, + 0x62, 0xd6, 0xdd, 0xf7, 0x0e, 0xfa, 0xdc, 0x32, 0xe1, 0x5f, 0x3c, 0x80, 0x33, 0xb9, 0xfa, 0x4c, + 0x95, 0xa5, 0x88, 0x15, 0x9b, 0x42, 0x37, 0x6a, 0x3c, 0x22, 0xc9, 0x7e, 0x02, 0x43, 0x74, 0x9c, + 0x8a, 0xc5, 0xac, 0xb3, 0xef, 0x1d, 0x8c, 0x0e, 0xbf, 0x73, 0xbf, 0x89, 0xaf, 0x09, 0x86, 0xd7, + 0x36, 0x8c, 0x41, 0x4f, 0x0a, 0x23, 0xe8, 0x90, 0x31, 0x27, 0x9a, 0x7d, 0x02, 0x03, 0x55, 0x26, + 0xd9, 0x32, 0x9f, 0xf5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f, + 0xde, 0x61, 0x6b, 0xf4, 0xde, 0x81, 0x89, 0x54, 0x4b, 0x9c, 0x24, 0xf3, 0xd2, 0x08, 0x63, 0x17, + 0x87, 0x3e, 0x1f, 0x3b, 0xe1, 0x19, 0xca, 0xee, 0xfd, 0x1e, 0xc6, 0x6d, 0x58, 0xd9, 0x18, 0xfc, + 0xf3, 0xb9, 0x05, 0x60, 0x7a, 0x8d, 0x4d, 0x61, 0x5c, 0x73, 0xb8, 0x75, 0x4e, 0x3d, 0x76, 0x03, + 0xa6, 0x6d, 0x09, 0x6e, 0xd9, 0xd3, 0x0e, 0x03, 0x18, 0x9c, 0xcf, 0xc9, 0xa2, 0xcb, 0x26, 0x10, + 0x58, 0xfa, 0x4c, 0xae, 0xa6, 0x3d, 0x76, 0x1d, 0x26, 0x0d, 0x8b, 0xdb, 0xee, 0xb4, 0xcf, 0x02, + 0xe8, 0x9f, 0xcf, 0x51, 0x3b, 0xb8, 0x77, 0x1f, 0xfc, 0x3a, 0x2d, 0xe8, 0xe4, 0x24, 0x2b, 0x95, + 0x36, 0xd3, 0x6b, 0x48, 0x7f, 0x49, 0xfb, 0xcd, 0xd4, 0x43, 0xfa, 0x58, 0xa5, 0xca, 0xa8, 0x69, + 0xe7, 0xd3, 0xe9, 0xb7, 0x2f, 0x6f, 0x79, 0x7f, 0x7e, 0x79, 0xcb, 0xfb, 0xdb, 0xcb, 0x5b, 0xde, + 0x37, 0x7f, 0xbf, 0x75, 0x6d, 0x31, 0xa0, 0xfc, 0x7e, 0xf4, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xa7, 0x79, 0x8c, 0xd7, 0xbf, 0x13, 0x00, 0x00, } + +func (m *TaskLabel) 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 *TaskLabel) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Taskid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Taskid))) + i += copy(dAtA[i:], m.Taskid) + } + if len(m.Sdkids) > 0 { + for _, s := range m.Sdkids { + 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 m.Index != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Index)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *SdkMessage) 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 *SdkMessage) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Cid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Cid))) + i += copy(dAtA[i:], m.Cid) + } + if m.Tasklab != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Tasklab.Size())) + n1, err1 := m.Tasklab.MarshalTo(dAtA[i:]) + if err1 != nil { + return 0, err1 + } + i += n1 + } + if len(m.Data) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) + } + if len(m.Esinfo) > 0 { + for k, _ := range m.Esinfo { + dAtA[i] = 0x22 + i++ + v := m.Esinfo[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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Image) 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 *Image) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Width != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Width)) + } + if m.Height != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Height)) + } + if len(m.Data) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 m.Type != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Type)) + } + if len(m.Addr) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Addr))) + i += copy(dAtA[i:], m.Addr) + } + if m.Areaid != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Areaid)) + } + if m.Longitude != 0 { + dAtA[i] = 0x35 + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Longitude)))) + i += 4 + } + if m.Latitude != 0 { + dAtA[i] = 0x3d + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Latitude)))) + i += 4 + } + if len(m.Rtsp) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Rtsp))) + i += copy(dAtA[i:], m.Rtsp) + } + if len(m.Ip) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Ip))) + i += copy(dAtA[i:], m.Ip) + } + if m.Port != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Port)) + } + if len(m.Username) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Username))) + i += copy(dAtA[i:], m.Username) + } + if len(m.Password) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Password))) + i += copy(dAtA[i:], m.Password) + } + if len(m.Brand) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Brand))) + i += copy(dAtA[i:], m.Brand) + } + if len(m.Reserved) > 0 { + dAtA[i] = 0x72 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Reserved))) + i += copy(dAtA[i:], m.Reserved) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *CameraAndTaskInfo) 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 *CameraAndTaskInfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Camera != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Camera.Size())) + n2, err2 := m.Camera.MarshalTo(dAtA[i:]) + if err2 != nil { + return 0, err2 + } + i += n2 + } + if len(m.Tasks) > 0 { + for _, msg := range m.Tasks { + 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 + } + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Task) 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 *Task) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Taskid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Taskid))) + i += copy(dAtA[i:], m.Taskid) + } + if len(m.Taskname) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Taskname))) + i += copy(dAtA[i:], m.Taskname) + } + if len(m.CreateAt) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateAt))) + i += copy(dAtA[i:], m.CreateAt) + } + if len(m.CreateBy) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateBy))) + i += copy(dAtA[i:], m.CreateBy) + } + if len(m.UpdateAt) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.UpdateAt))) + i += copy(dAtA[i:], m.UpdateAt) + } + if m.Enable { + dAtA[i] = 0x30 + i++ + if m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.IsAlarm { + dAtA[i] = 0x38 + i++ + if m.IsAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.DelFlag { + dAtA[i] = 0x40 + i++ + if m.DelFlag { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *TaskSdkInfo) 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 *TaskSdkInfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Task != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Task.Size())) + n3, err3 := m.Task.MarshalTo(dAtA[i:]) + if err3 != nil { + return 0, err3 + } + i += n3 + } + if len(m.Sdks) > 0 { + for _, msg := range m.Sdks { + 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 + } + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *CameraTask) 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 *CameraTask) 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.CameraIds) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraIds))) + i += copy(dAtA[i:], m.CameraIds) + } + if len(m.TaskId) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TaskId))) + i += copy(dAtA[i:], m.TaskId) + } + if len(m.TimeRule) > 0 { + for _, msg := range m.TimeRule { + dAtA[i] = 0x22 + 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.ReactRule) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ReactRule))) + i += copy(dAtA[i:], m.ReactRule) + } + if len(m.ReactDevice) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ReactDevice))) + i += copy(dAtA[i:], m.ReactDevice) + } + if m.DelFlag { + dAtA[i] = 0x38 + i++ + if m.DelFlag { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.UpdateFlag { + dAtA[i] = 0x40 + i++ + if m.UpdateFlag { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.Enable { + dAtA[i] = 0x48 + i++ + if m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.Sort != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) + } + if m.IsFull { + dAtA[i] = 0x58 + i++ + if m.IsFull { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.LinkGroupId) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LinkGroupId))) + i += copy(dAtA[i:], m.LinkGroupId) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *CameraTaskArgs) 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 *CameraTaskArgs) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.CameraId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) + i += copy(dAtA[i:], m.CameraId) + } + if len(m.TaskArgs) > 0 { + for _, msg := range m.TaskArgs { + 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 + } + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *TaskGroupArgs) 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 *TaskGroupArgs) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.TaskId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TaskId))) + i += copy(dAtA[i:], m.TaskId) + } + if len(m.GroupRules) > 0 { + for _, msg := range m.GroupRules { + 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 + } + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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.GroupId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.GroupId))) + i += copy(dAtA[i:], m.GroupId) + } + 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 + } + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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.CameraTaskId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraTaskId))) + i += copy(dAtA[i:], m.CameraTaskId) + } + if len(m.CameraId) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) + i += copy(dAtA[i:], m.CameraId) + } + if len(m.PolygonId) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PolygonId))) + i += copy(dAtA[i:], m.PolygonId) + } + if len(m.SdkId) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkId))) + i += copy(dAtA[i:], m.SdkId) + } + if len(m.SdkArgAlias) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkArgAlias))) + i += copy(dAtA[i:], m.SdkArgAlias) + } + if len(m.Operator) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Operator))) + i += copy(dAtA[i:], m.Operator) + } + if len(m.OperatorType) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.OperatorType))) + i += copy(dAtA[i:], m.OperatorType) + } + if len(m.SdkArgValue) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkArgValue))) + i += copy(dAtA[i:], m.SdkArgValue) + } + if m.Sort != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) + } + if len(m.RuleWithPre) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RuleWithPre))) + i += copy(dAtA[i:], m.RuleWithPre) + } + if len(m.GroupId) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.GroupId))) + i += copy(dAtA[i:], m.GroupId) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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.SdkType) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkType))) + i += copy(dAtA[i:], m.SdkType) + } + if len(m.SdkName) > 0 { + dAtA[i] = 0x1a + 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] = 0x22 + 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] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Icon))) + i += copy(dAtA[i:], m.Icon) + } + if len(m.Url) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Url))) + i += copy(dAtA[i:], m.Url) + } + if len(m.CreateTime) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateTime))) + i += copy(dAtA[i:], m.CreateTime) + } + if len(m.UpdateTime) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.UpdateTime))) + i += copy(dAtA[i:], m.UpdateTime) + } + if len(m.CreateBy) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateBy))) + i += copy(dAtA[i:], m.CreateBy) + } + if m.Enabled { + dAtA[i] = 0x50 + i++ + if m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.DelFlag != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.DelFlag)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 m.Sort != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Point) 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 *Point) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.X != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.X)) + } + if m.Y != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Y)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Rect) 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 *Rect) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Left != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Left)) + } + if m.Top != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Top)) + } + if m.Right != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Right)) + } + if m.Bottom != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Bottom)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *FaceAngle) 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 *FaceAngle) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Yaw != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Yaw)) + } + if m.Pitch != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Pitch)) + } + if m.Roll != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Roll)) + } + if m.Confidence != 0 { + dAtA[i] = 0x25 + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Confidence)))) + i += 4 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ThftResult) 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 *ThftResult) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Gender != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Gender)) + } + if m.Age != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Age)) + } + if m.Race != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Race)) + } + if m.Beauty != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Beauty)) + } + if m.Smile != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Smile)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *FacePos) 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 *FacePos) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.RcFace != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.RcFace.Size())) + n4, err4 := m.RcFace.MarshalTo(dAtA[i:]) + if err4 != nil { + return 0, err4 + } + i += n4 + } + if m.PtLeftEye != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.PtLeftEye.Size())) + n5, err5 := m.PtLeftEye.MarshalTo(dAtA[i:]) + if err5 != nil { + return 0, err5 + } + i += n5 + } + if m.PtRightEye != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.PtRightEye.Size())) + n6, err6 := m.PtRightEye.MarshalTo(dAtA[i:]) + if err6 != nil { + return 0, err6 + } + i += n6 + } + if m.PtMouth != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.PtMouth.Size())) + n7, err7 := m.PtMouth.MarshalTo(dAtA[i:]) + if err7 != nil { + return 0, err7 + } + i += n7 + } + if m.PtNose != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.PtNose.Size())) + n8, err8 := m.PtNose.MarshalTo(dAtA[i:]) + if err8 != nil { + return 0, err8 + } + i += n8 + } + if m.FAngle != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.FAngle.Size())) + n9, err9 := m.FAngle.MarshalTo(dAtA[i:]) + if err9 != nil { + return 0, err9 + } + i += n9 + } + if m.Quality != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Quality)) + } + if len(m.FacialData) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.FacialData))) + i += copy(dAtA[i:], m.FacialData) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *FaceInfo) 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 *FaceInfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.RcFace != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.RcFace.Size())) + n10, err10 := m.RcFace.MarshalTo(dAtA[i:]) + if err10 != nil { + return 0, err10 + } + i += n10 + } + if m.PtLeftEye != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.PtLeftEye.Size())) + n11, err11 := m.PtLeftEye.MarshalTo(dAtA[i:]) + if err11 != nil { + return 0, err11 + } + i += n11 + } + if m.PtRightEye != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.PtRightEye.Size())) + n12, err12 := m.PtRightEye.MarshalTo(dAtA[i:]) + if err12 != nil { + return 0, err12 + } + i += n12 + } + if m.PtMouth != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.PtMouth.Size())) + n13, err13 := m.PtMouth.MarshalTo(dAtA[i:]) + if err13 != nil { + return 0, err13 + } + i += n13 + } + if m.PtNose != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.PtNose.Size())) + n14, err14 := m.PtNose.MarshalTo(dAtA[i:]) + if err14 != nil { + return 0, err14 + } + i += n14 + } + if m.FAngle != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.FAngle.Size())) + n15, err15 := m.FAngle.MarshalTo(dAtA[i:]) + if err15 != nil { + return 0, err15 + } + i += n15 + } + if m.Quality != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Quality)) + } + if len(m.FacialData) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.FacialData))) + i += copy(dAtA[i:], m.FacialData) + } + if m.FaceID != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.FaceID)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ObjInfo) 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 *ObjInfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.RcObj != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.RcObj.Size())) + n16, err16 := m.RcObj.MarshalTo(dAtA[i:]) + if err16 != nil { + return 0, err16 + } + i += n16 + } + if m.Typ != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Typ)) + } + if m.Prob != 0 { + dAtA[i] = 0x1d + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Prob)))) + i += 4 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ParamFacePos) 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 *ParamFacePos) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Pos != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Pos.Size())) + n17, err17 := m.Pos.MarshalTo(dAtA[i:]) + if err17 != nil { + return 0, err17 + } + i += n17 + } + if m.Img != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Img.Size())) + n18, err18 := m.Img.MarshalTo(dAtA[i:]) + if err18 != nil { + return 0, err18 + } + i += n18 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ParamFaceCompare) 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 *ParamFaceCompare) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Feat1) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Feat1))) + i += copy(dAtA[i:], m.Feat1) + } + if len(m.Feat2) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Feat2))) + i += copy(dAtA[i:], m.Feat2) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ParamFaceProperty) 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 *ParamFaceProperty) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Result != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Result.Size())) + n19, err19 := m.Result.MarshalTo(dAtA[i:]) + if err19 != nil { + return 0, err19 + } + i += n19 + } + if m.Img != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Img.Size())) + n20, err20 := m.Img.MarshalTo(dAtA[i:]) + if err20 != nil { + return 0, err20 + } + i += n20 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ParamYoloObj) 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 *ParamYoloObj) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Infos) > 0 { + for _, msg := range m.Infos { + 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 + } + } + if m.Img != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Img.Size())) + n21, err21 := m.Img.MarshalTo(dAtA[i:]) + if err21 != nil { + return 0, err21 + } + i += n21 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *TaskLabel) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Taskid) + 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.Index != 0 { + n += 1 + sovProtomsg(uint64(m.Index)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SdkMessage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Cid) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Tasklab != nil { + l = m.Tasklab.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if len(m.Esinfo) > 0 { + for k, v := range m.Esinfo { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovProtomsg(uint64(len(k))) + 1 + len(v) + sovProtomsg(uint64(len(v))) + n += mapEntrySize + 1 + sovProtomsg(uint64(mapEntrySize)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Image) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Width != 0 { + n += 1 + sovProtomsg(uint64(m.Width)) + } + if m.Height != 0 { + n += 1 + sovProtomsg(uint64(m.Height)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + 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.Areaid != 0 { + n += 1 + sovProtomsg(uint64(m.Areaid)) + } + if m.Longitude != 0 { + n += 5 + } + if m.Latitude != 0 { + n += 5 + } + 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 += 1 + l + sovProtomsg(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CameraAndTaskInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Camera != nil { + l = m.Camera.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if len(m.Tasks) > 0 { + for _, e := range m.Tasks { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Task) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Taskid) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Taskname) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.CreateAt) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.CreateBy) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.UpdateAt) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Enable { + n += 2 + } + if m.IsAlarm { + n += 2 + } + if m.DelFlag { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TaskSdkInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Task != nil { + l = m.Task.Size() + 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 m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CameraTask) 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.CameraIds) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.TaskId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if len(m.TimeRule) > 0 { + for _, e := range m.TimeRule { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + l = len(m.ReactRule) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.ReactDevice) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.DelFlag { + n += 2 + } + if m.UpdateFlag { + n += 2 + } + if m.Enable { + n += 2 + } + if m.Sort != 0 { + n += 1 + sovProtomsg(uint64(m.Sort)) + } + if m.IsFull { + n += 2 + } + l = len(m.LinkGroupId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CameraTaskArgs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CameraId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if len(m.TaskArgs) > 0 { + for _, e := range m.TaskArgs { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TaskGroupArgs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TaskId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if len(m.GroupRules) > 0 { + for _, e := range m.GroupRules { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GroupRule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.GroupId) + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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.CameraTaskId) + 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)) + } + 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)) + } + l = len(m.RuleWithPre) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.GroupId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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.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.Enabled { + n += 2 + } + if m.DelFlag != 0 { + n += 1 + sovProtomsg(uint64(m.DelFlag)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.Sort != 0 { + n += 1 + sovProtomsg(uint64(m.Sort)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Point) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.X != 0 { + n += 1 + sovProtomsg(uint64(m.X)) + } + if m.Y != 0 { + n += 1 + sovProtomsg(uint64(m.Y)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Rect) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Left != 0 { + n += 1 + sovProtomsg(uint64(m.Left)) + } + if m.Top != 0 { + n += 1 + sovProtomsg(uint64(m.Top)) + } + if m.Right != 0 { + n += 1 + sovProtomsg(uint64(m.Right)) + } + if m.Bottom != 0 { + n += 1 + sovProtomsg(uint64(m.Bottom)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *FaceAngle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Yaw != 0 { + n += 1 + sovProtomsg(uint64(m.Yaw)) + } + if m.Pitch != 0 { + n += 1 + sovProtomsg(uint64(m.Pitch)) + } + if m.Roll != 0 { + n += 1 + sovProtomsg(uint64(m.Roll)) + } + if m.Confidence != 0 { + n += 5 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ThftResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Gender != 0 { + n += 1 + sovProtomsg(uint64(m.Gender)) + } + if m.Age != 0 { + n += 1 + sovProtomsg(uint64(m.Age)) + } + if m.Race != 0 { + n += 1 + sovProtomsg(uint64(m.Race)) + } + if m.Beauty != 0 { + n += 1 + sovProtomsg(uint64(m.Beauty)) + } + if m.Smile != 0 { + n += 1 + sovProtomsg(uint64(m.Smile)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *FacePos) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RcFace != nil { + l = m.RcFace.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.PtLeftEye != nil { + l = m.PtLeftEye.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.PtRightEye != nil { + l = m.PtRightEye.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.PtMouth != nil { + l = m.PtMouth.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.PtNose != nil { + l = m.PtNose.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.FAngle != nil { + l = m.FAngle.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Quality != 0 { + n += 1 + sovProtomsg(uint64(m.Quality)) + } + l = len(m.FacialData) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *FaceInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RcFace != nil { + l = m.RcFace.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.PtLeftEye != nil { + l = m.PtLeftEye.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.PtRightEye != nil { + l = m.PtRightEye.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.PtMouth != nil { + l = m.PtMouth.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.PtNose != nil { + l = m.PtNose.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.FAngle != nil { + l = m.FAngle.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Quality != 0 { + n += 1 + sovProtomsg(uint64(m.Quality)) + } + l = len(m.FacialData) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.FaceID != 0 { + n += 1 + sovProtomsg(uint64(m.FaceID)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ObjInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RcObj != nil { + l = m.RcObj.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Typ != 0 { + n += 1 + sovProtomsg(uint64(m.Typ)) + } + if m.Prob != 0 { + n += 5 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ParamFacePos) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pos != nil { + l = m.Pos.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Img != nil { + l = m.Img.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ParamFaceCompare) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Feat1) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Feat2) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ParamFaceProperty) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Result != nil { + l = m.Result.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Img != nil { + l = m.Img.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ParamYoloObj) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Infos) > 0 { + for _, e := range m.Infos { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if m.Img != nil { + l = m.Img.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovProtomsg(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozProtomsg(x uint64) (n int) { + return sovProtomsg(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TaskLabel) 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: TaskLabel: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskLabel: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + 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 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SdkMessage) 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: SdkMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SdkMessage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cid", 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.Cid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasklab", 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.Tasklab == nil { + m.Tasklab = &TaskLabel{} + } + if err := m.Tasklab.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", 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.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Esinfo", 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.Esinfo == nil { + m.Esinfo = 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.Esinfo[mapkey] = mapvalue + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Image) 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: Image: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Image: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) + } + m.Width = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Width |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", 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.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 != 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 4: + 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 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Areaid", wireType) + } + m.Areaid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Areaid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + 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 7: + 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 8: + 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 9: + 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 10: + 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 11: + 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 12: + 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 13: + 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 14: + 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 + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CameraAndTaskInfo) 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: CameraAndTaskInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CameraAndTaskInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Camera", 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.Camera == nil { + m.Camera = &Camera{} + } + if err := m.Camera.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasks", 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.Tasks = append(m.Tasks, &Task{}) + if err := m.Tasks[len(m.Tasks)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Task) 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: Task: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Task: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Taskname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 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.Taskname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateAt", 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.CreateAt = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + 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 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateAt", 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.UpdateAt = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + 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 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsAlarm", 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.IsAlarm = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DelFlag", 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.DelFlag = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TaskSdkInfo) 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: TaskSdkInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskSdkInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Task", 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.Task == nil { + m.Task = &Task{} + } + if err := m.Task.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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, &Sdk{}) + if err := m.Sdks[len(m.Sdks)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CameraTask) 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: CameraTask: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CameraTask: 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 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 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeRule", 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.TimeRule = append(m.TimeRule, &DayCtl{}) + if err := m.TimeRule[len(m.TimeRule)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReactRule", 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.ReactRule = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReactDevice", 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.ReactDevice = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DelFlag", 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.DelFlag = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateFlag", 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.UpdateFlag = bool(v != 0) + case 9: + 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 10: + 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 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsFull", 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.IsFull = bool(v != 0) + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkGroupId", 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.LinkGroupId = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CameraTaskArgs) 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: CameraTaskArgs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CameraTaskArgs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskArgs", 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.TaskArgs = append(m.TaskArgs, &TaskGroupArgs{}) + if err := m.TaskArgs[len(m.TaskArgs)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TaskGroupArgs) 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: TaskGroupArgs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskGroupArgs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupRules", 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.GroupRules = append(m.GroupRules, &GroupRule{}) + if err := m.GroupRules[len(m.GroupRules)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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 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, &Rule{}) + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 CameraTaskId", 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.CameraTaskId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 4: + 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 5: + 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 6: + 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 7: + 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 8: + 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 9: + 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 10: + 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 11: + 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 12: + 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 + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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 != 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 4: + 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 5: + 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 6: + 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 7: + 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 8: + 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 9: + 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 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", 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.Enabled = bool(v != 0) + case 11: + 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 != 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Point) 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: Point: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Point: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field X", wireType) + } + m.X = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.X |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Y", wireType) + } + m.Y = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Y |= 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rect) 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: Rect: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Rect: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Left", wireType) + } + m.Left = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Left |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Top", wireType) + } + m.Top = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Top |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Right", wireType) + } + m.Right = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Right |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bottom", wireType) + } + m.Bottom = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Bottom |= 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FaceAngle) 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: FaceAngle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FaceAngle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaw", wireType) + } + m.Yaw = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Yaw |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pitch", wireType) + } + m.Pitch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Pitch |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Roll", wireType) + } + m.Roll = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Roll |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Confidence", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Confidence = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ThftResult) 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: ThftResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ThftResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gender", wireType) + } + m.Gender = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Gender |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType) + } + m.Age = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Age |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Race", wireType) + } + m.Race = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Race |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Beauty", wireType) + } + m.Beauty = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Beauty |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Smile", wireType) + } + m.Smile = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Smile |= 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FacePos) 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: FacePos: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FacePos: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RcFace", 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.RcFace == nil { + m.RcFace = &Rect{} + } + if err := m.RcFace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PtLeftEye", 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.PtLeftEye == nil { + m.PtLeftEye = &Point{} + } + if err := m.PtLeftEye.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PtRightEye", 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.PtRightEye == nil { + m.PtRightEye = &Point{} + } + if err := m.PtRightEye.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PtMouth", 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.PtMouth == nil { + m.PtMouth = &Point{} + } + if err := m.PtMouth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PtNose", 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.PtNose == nil { + m.PtNose = &Point{} + } + if err := m.PtNose.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FAngle", 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.FAngle == nil { + m.FAngle = &FaceAngle{} + } + if err := m.FAngle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Quality", wireType) + } + m.Quality = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Quality |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FacialData", 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.FacialData = append(m.FacialData[:0], dAtA[iNdEx:postIndex]...) + if m.FacialData == nil { + m.FacialData = []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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FaceInfo) 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: FaceInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FaceInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RcFace", 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.RcFace == nil { + m.RcFace = &Rect{} + } + if err := m.RcFace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PtLeftEye", 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.PtLeftEye == nil { + m.PtLeftEye = &Point{} + } + if err := m.PtLeftEye.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PtRightEye", 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.PtRightEye == nil { + m.PtRightEye = &Point{} + } + if err := m.PtRightEye.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PtMouth", 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.PtMouth == nil { + m.PtMouth = &Point{} + } + if err := m.PtMouth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PtNose", 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.PtNose == nil { + m.PtNose = &Point{} + } + if err := m.PtNose.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FAngle", 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.FAngle == nil { + m.FAngle = &FaceAngle{} + } + if err := m.FAngle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Quality", wireType) + } + m.Quality = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Quality |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FacialData", 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.FacialData = append(m.FacialData[:0], dAtA[iNdEx:postIndex]...) + if m.FacialData == nil { + m.FacialData = []byte{} + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FaceID", wireType) + } + m.FaceID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FaceID |= int64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ObjInfo) 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: ObjInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ObjInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RcObj", 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.RcObj == nil { + m.RcObj = &Rect{} + } + if err := m.RcObj.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Typ", wireType) + } + m.Typ = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Typ |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Prob", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Prob = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParamFacePos) 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: ParamFacePos: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ParamFacePos: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pos", 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.Pos == nil { + m.Pos = &FacePos{} + } + if err := m.Pos.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Img", 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.Img == nil { + m.Img = &Image{} + } + if err := m.Img.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParamFaceCompare) 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: ParamFaceCompare: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ParamFaceCompare: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feat1", 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.Feat1 = append(m.Feat1[:0], dAtA[iNdEx:postIndex]...) + if m.Feat1 == nil { + m.Feat1 = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feat2", 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.Feat2 = append(m.Feat2[:0], dAtA[iNdEx:postIndex]...) + if m.Feat2 == nil { + m.Feat2 = []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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParamFaceProperty) 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: ParamFaceProperty: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ParamFaceProperty: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Result", 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.Result == nil { + m.Result = &ThftResult{} + } + if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Img", 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.Img == nil { + m.Img = &Image{} + } + if err := m.Img.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParamYoloObj) 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: ParamYoloObj: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ParamYoloObj: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Infos", 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.Infos = append(m.Infos, &ObjInfo{}) + if err := m.Infos[len(m.Infos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Img", 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.Img == nil { + m.Img = &Image{} + } + if err := m.Img.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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") +} + +var ( + ErrInvalidLengthProtomsg = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowProtomsg = fmt.Errorf("proto: integer overflow") +) -- Gitblit v1.8.0