From 556b9531f40c1c3bf4efd732e0f9eabb9c5793ae Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期五, 15 十一月 2019 10:40:33 +0800 Subject: [PATCH] add plateid --- commsg.pb.go | 1257 ++ sdk.pb.go | 4556 ++++++++++ videoperson.pb.go | 2570 +++++ sdk.proto | 28 base.pb.go | 520 + facedetect.pb.go | 294 sysset.pb.go | 1950 ++++ protomsg.pb.go | 11880 ++++++++++++++++++++++++++- es.pb.go | 2083 ++++ 9 files changed, 23,950 insertions(+), 1,188 deletions(-) diff --git a/base.pb.go b/base.pb.go index 358f35c..2034d85 100644 --- a/base.pb.go +++ b/base.pb.go @@ -1,11 +1,12 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: base.proto package protomsg import ( fmt "fmt" - proto "github.com/golang/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" math "math" ) @@ -18,15 +19,12 @@ // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package // struct for sdk type Point struct { - X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` - Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` + Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` } func (m *Point) Reset() { *m = Point{} } @@ -35,18 +33,26 @@ func (*Point) Descriptor() ([]byte, []int) { return fileDescriptor_db1b6b0986796150, []int{0} } - 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) @@ -69,13 +75,10 @@ } type Rect struct { - Left int32 `protobuf:"varint,1,opt,name=left,proto3" json:"left,omitempty"` - Top int32 `protobuf:"varint,2,opt,name=top,proto3" json:"top,omitempty"` - Right int32 `protobuf:"varint,3,opt,name=right,proto3" json:"right,omitempty"` - Bottom int32 `protobuf:"varint,4,opt,name=bottom,proto3" json:"bottom,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Left int32 `protobuf:"varint,1,opt,name=left,proto3" json:"left,omitempty"` + Top int32 `protobuf:"varint,2,opt,name=top,proto3" json:"top,omitempty"` + Right int32 `protobuf:"varint,3,opt,name=right,proto3" json:"right,omitempty"` + Bottom int32 `protobuf:"varint,4,opt,name=bottom,proto3" json:"bottom,omitempty"` } func (m *Rect) Reset() { *m = Rect{} } @@ -84,18 +87,26 @@ func (*Rect) Descriptor() ([]byte, []int) { return fileDescriptor_db1b6b0986796150, []int{1} } - 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) @@ -139,7 +150,7 @@ func init() { proto.RegisterFile("base.proto", fileDescriptor_db1b6b0986796150) } var fileDescriptor_db1b6b0986796150 = []byte{ - // 139 bytes of a gzipped FileDescriptorProto + // 167 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x4a, 0x2c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0xb9, 0xc5, 0xe9, 0x4a, 0xca, 0x5c, 0xac, 0x01, 0xf9, 0x99, 0x79, 0x25, 0x42, 0x3c, 0x5c, 0x8c, 0x15, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, @@ -147,6 +158,463 @@ 0x94, 0x9a, 0x5c, 0x22, 0x24, 0xc4, 0xc5, 0x92, 0x93, 0x9a, 0x56, 0x02, 0x55, 0x06, 0x66, 0x0b, 0x09, 0x70, 0x31, 0x97, 0xe4, 0x17, 0x40, 0xd5, 0x82, 0x98, 0x42, 0x22, 0x5c, 0xac, 0x45, 0x99, 0xe9, 0x19, 0x25, 0x12, 0xcc, 0x60, 0x31, 0x08, 0x47, 0x48, 0x8c, 0x8b, 0x2d, 0x29, 0xbf, 0xa4, - 0x24, 0x3f, 0x57, 0x82, 0x05, 0x2c, 0x0c, 0xe5, 0x25, 0xb1, 0x81, 0x9d, 0x62, 0x0c, 0x08, 0x00, - 0x00, 0xff, 0xff, 0xec, 0x3b, 0x08, 0x21, 0x9f, 0x00, 0x00, 0x00, + 0x24, 0x3f, 0x57, 0x82, 0x05, 0x2c, 0x0c, 0xe5, 0x39, 0x49, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, + 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, + 0xe3, 0xb1, 0x1c, 0x43, 0x12, 0x1b, 0xd8, 0x91, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa5, + 0xe9, 0x4a, 0x5f, 0xb9, 0x00, 0x00, 0x00, } + +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 = encodeVarintBase(dAtA, i, uint64(m.X)) + } + if m.Y != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintBase(dAtA, i, uint64(m.Y)) + } + 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 = encodeVarintBase(dAtA, i, uint64(m.Left)) + } + if m.Top != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintBase(dAtA, i, uint64(m.Top)) + } + if m.Right != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBase(dAtA, i, uint64(m.Right)) + } + if m.Bottom != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBase(dAtA, i, uint64(m.Bottom)) + } + return i, nil +} + +func encodeVarintBase(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 *Point) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.X != 0 { + n += 1 + sovBase(uint64(m.X)) + } + if m.Y != 0 { + n += 1 + sovBase(uint64(m.Y)) + } + return n +} + +func (m *Rect) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Left != 0 { + n += 1 + sovBase(uint64(m.Left)) + } + if m.Top != 0 { + n += 1 + sovBase(uint64(m.Top)) + } + if m.Right != 0 { + n += 1 + sovBase(uint64(m.Right)) + } + if m.Bottom != 0 { + n += 1 + sovBase(uint64(m.Bottom)) + } + return n +} + +func sovBase(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozBase(x uint64) (n int) { + return sovBase(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +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 ErrIntOverflowBase + } + 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 ErrIntOverflowBase + } + 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 ErrIntOverflowBase + } + 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 := skipBase(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBase + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBase + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + 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 ErrIntOverflowBase + } + 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 ErrIntOverflowBase + } + 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 ErrIntOverflowBase + } + 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 ErrIntOverflowBase + } + 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 ErrIntOverflowBase + } + 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 := skipBase(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBase + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBase + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBase(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, ErrIntOverflowBase + } + 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, ErrIntOverflowBase + } + 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, ErrIntOverflowBase + } + 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, ErrInvalidLengthBase + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthBase + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBase + } + 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 := skipBase(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthBase + } + } + 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 ( + ErrInvalidLengthBase = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBase = fmt.Errorf("proto: integer overflow") +) diff --git a/commsg.pb.go b/commsg.pb.go index 7ec58cb..71b8aee 100644 --- a/commsg.pb.go +++ b/commsg.pb.go @@ -1,11 +1,12 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: commsg.proto package protomsg import ( fmt "fmt" - proto "github.com/golang/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" math "math" ) @@ -18,15 +19,12 @@ // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package type SdkmsgWithTask struct { - Ipcid string `protobuf:"bytes,1,opt,name=ipcid,proto3" json:"ipcid,omitempty"` - Sdktype string `protobuf:"bytes,2,opt,name=sdktype,proto3" json:"sdktype,omitempty"` - Sdkdata []byte `protobuf:"bytes,4,opt,name=sdkdata,proto3" json:"sdkdata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Ipcid string `protobuf:"bytes,1,opt,name=ipcid,proto3" json:"ipcid,omitempty"` + Sdktype string `protobuf:"bytes,2,opt,name=sdktype,proto3" json:"sdktype,omitempty"` + Sdkdata []byte `protobuf:"bytes,4,opt,name=sdkdata,proto3" json:"sdkdata,omitempty"` } func (m *SdkmsgWithTask) Reset() { *m = SdkmsgWithTask{} } @@ -35,18 +33,26 @@ func (*SdkmsgWithTask) Descriptor() ([]byte, []int) { return fileDescriptor_968fba5e415d8aac, []int{0} } - func (m *SdkmsgWithTask) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SdkmsgWithTask.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *SdkmsgWithTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SdkmsgWithTask.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_SdkmsgWithTask.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 *SdkmsgWithTask) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkmsgWithTask.Merge(m, src) } func (m *SdkmsgWithTask) XXX_Size() int { - return xxx_messageInfo_SdkmsgWithTask.Size(m) + return m.Size() } func (m *SdkmsgWithTask) XXX_DiscardUnknown() { xxx_messageInfo_SdkmsgWithTask.DiscardUnknown(m) @@ -76,13 +82,10 @@ } type TaskLabel struct { - Taskid string `protobuf:"bytes,1,opt,name=taskid,proto3" json:"taskid,omitempty"` - Taskname string `protobuf:"bytes,2,opt,name=taskname,proto3" json:"taskname,omitempty"` - Sdkinfos []*SdkmsgWithTask `protobuf:"bytes,3,rep,name=sdkinfos,proto3" json:"sdkinfos,omitempty"` - Index int32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Taskid string `protobuf:"bytes,1,opt,name=taskid,proto3" json:"taskid,omitempty"` + Taskname string `protobuf:"bytes,2,opt,name=taskname,proto3" json:"taskname,omitempty"` + Sdkinfos []*SdkmsgWithTask `protobuf:"bytes,3,rep,name=sdkinfos,proto3" json:"sdkinfos,omitempty"` + Index int32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"` } func (m *TaskLabel) Reset() { *m = TaskLabel{} } @@ -91,18 +94,26 @@ func (*TaskLabel) Descriptor() ([]byte, []int) { return fileDescriptor_968fba5e415d8aac, []int{1} } - 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) @@ -139,14 +150,11 @@ } type SdkMessage struct { - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - Caddr string `protobuf:"bytes,2,opt,name=caddr,proto3" json:"caddr,omitempty"` - Tasklab *TaskLabel `protobuf:"bytes,3,opt,name=tasklab,proto3" json:"tasklab,omitempty"` - Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` - Push *PushAttach `protobuf:"bytes,5,opt,name=push,proto3" json:"push,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"` + Caddr string `protobuf:"bytes,2,opt,name=caddr,proto3" json:"caddr,omitempty"` + Tasklab *TaskLabel `protobuf:"bytes,3,opt,name=tasklab,proto3" json:"tasklab,omitempty"` + Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` + Push *PushAttach `protobuf:"bytes,5,opt,name=push,proto3" json:"push,omitempty"` } func (m *SdkMessage) Reset() { *m = SdkMessage{} } @@ -155,18 +163,26 @@ func (*SdkMessage) Descriptor() ([]byte, []int) { return fileDescriptor_968fba5e415d8aac, []int{2} } - 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) @@ -210,12 +226,9 @@ } type Recvmsg struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` - Picdata []byte `protobuf:"bytes,3,opt,name=picdata,proto3" json:"picdata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` + Picdata []byte `protobuf:"bytes,3,opt,name=picdata,proto3" json:"picdata,omitempty"` } func (m *Recvmsg) Reset() { *m = Recvmsg{} } @@ -224,18 +237,26 @@ func (*Recvmsg) Descriptor() ([]byte, []int) { return fileDescriptor_968fba5e415d8aac, []int{3} } - func (m *Recvmsg) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Recvmsg.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Recvmsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Recvmsg.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_Recvmsg.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 *Recvmsg) XXX_Merge(src proto.Message) { xxx_messageInfo_Recvmsg.Merge(m, src) } func (m *Recvmsg) XXX_Size() int { - return xxx_messageInfo_Recvmsg.Size(m) + return m.Size() } func (m *Recvmsg) XXX_DiscardUnknown() { xxx_messageInfo_Recvmsg.DiscardUnknown(m) @@ -274,25 +295,1127 @@ func init() { proto.RegisterFile("commsg.proto", fileDescriptor_968fba5e415d8aac) } var fileDescriptor_968fba5e415d8aac = []byte{ - // 313 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x4d, 0x4e, 0xc3, 0x30, - 0x10, 0x85, 0x95, 0xa6, 0xbf, 0xd3, 0xaa, 0x42, 0x43, 0x85, 0xac, 0xae, 0xa2, 0xac, 0xb2, 0xa1, - 0x8b, 0xc2, 0x05, 0x58, 0xb1, 0x01, 0x09, 0xa5, 0x48, 0x48, 0xec, 0xdc, 0x38, 0x24, 0x96, 0xeb, - 0x26, 0x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0xf0, 0xe1, 0xd2, 0xae, 0x06, 0x11, 0x86, - 0x17, 0xa7, 0x70, 0x1a, 0x13, 0x18, 0xd6, 0x67, 0x2a, 0xd9, 0xc8, 0xf5, 0xaf, 0xfa, 0xfe, 0x97, - 0x33, 0x95, 0x0f, 0xc6, 0xf0, 0xac, 0x4c, 0x5d, 0x45, 0xfc, 0x08, 0x93, 0x53, 0x9e, 0x7d, 0x6a, - 0x2a, 0x70, 0x09, 0x03, 0x6f, 0x6f, 0x20, 0x85, 0x1d, 0x7c, 0x61, 0xce, 0x69, 0x7b, 0xfa, 0x5a, - 0x66, 0x6e, 0x5f, 0xd8, 0x9c, 0xbe, 0xc5, 0xfd, 0xd8, 0xed, 0xb8, 0xfb, 0x0b, 0x00, 0x00, 0xff, - 0xff, 0x1e, 0x34, 0xf8, 0x72, 0x07, 0x02, 0x00, 0x00, + // 347 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xbd, 0x4e, 0xfb, 0x30, + 0x14, 0xc5, 0xeb, 0xa6, 0x9f, 0xb7, 0x55, 0xf5, 0x97, 0xff, 0x15, 0xb2, 0x3a, 0x44, 0x51, 0xa6, + 0x2c, 0x74, 0x28, 0xbc, 0x00, 0x2c, 0x2c, 0x20, 0xa1, 0x14, 0x09, 0x89, 0xcd, 0x8d, 0x43, 0x12, + 0xa5, 0x69, 0xa2, 0x5e, 0x17, 0xc1, 0x33, 0xb0, 0xf0, 0x0a, 0xbc, 0x0d, 0x63, 0x47, 0x46, 0xd4, + 0xbe, 0x08, 0xb2, 0x93, 0x38, 0x65, 0xca, 0xf9, 0xc5, 0xf7, 0xe3, 0x9c, 0x0b, 0xe3, 0x20, 0xcf, + 0x32, 0x8c, 0xe6, 0xc5, 0x36, 0x97, 0x39, 0x1d, 0xe8, 0x4f, 0x86, 0xd1, 0x6c, 0x52, 0xab, 0xf2, + 0xc5, 0x7d, 0x82,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0xbc, 0x64, 0x18, 0xd1, 0x09, 0xb4, + 0x8d, 0xbd, 0x76, 0x22, 0xd4, 0xe0, 0x13, 0x73, 0x5a, 0xab, 0xd3, 0x17, 0x49, 0xa0, 0xf7, 0x59, + 0xe5, 0xe9, 0x2b, 0xbc, 0x66, 0x5f, 0x07, 0x9b, 0xec, 0x0f, 0x36, 0xf9, 0x39, 0xd8, 0xe4, 0xe3, + 0x68, 0xb7, 0xf6, 0x47, 0xbb, 0xf5, 0x7d, 0xb4, 0x5b, 0xab, 0x9e, 0xde, 0x7e, 0xf1, 0x1b, 0x00, + 0x00, 0xff, 0xff, 0xe1, 0xa1, 0x46, 0x83, 0x21, 0x02, 0x00, 0x00, } + +func (m *SdkmsgWithTask) 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 *SdkmsgWithTask) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Ipcid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintCommsg(dAtA, i, uint64(len(m.Ipcid))) + i += copy(dAtA[i:], m.Ipcid) + } + if len(m.Sdktype) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintCommsg(dAtA, i, uint64(len(m.Sdktype))) + i += copy(dAtA[i:], m.Sdktype) + } + if len(m.Sdkdata) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintCommsg(dAtA, i, uint64(len(m.Sdkdata))) + i += copy(dAtA[i:], m.Sdkdata) + } + return i, nil +} + +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 = encodeVarintCommsg(dAtA, i, uint64(len(m.Taskid))) + i += copy(dAtA[i:], m.Taskid) + } + if len(m.Taskname) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintCommsg(dAtA, i, uint64(len(m.Taskname))) + i += copy(dAtA[i:], m.Taskname) + } + if len(m.Sdkinfos) > 0 { + for _, msg := range m.Sdkinfos { + dAtA[i] = 0x1a + i++ + i = encodeVarintCommsg(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.Index != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintCommsg(dAtA, i, uint64(m.Index)) + } + 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 = encodeVarintCommsg(dAtA, i, uint64(len(m.Cid))) + i += copy(dAtA[i:], m.Cid) + } + if len(m.Caddr) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintCommsg(dAtA, i, uint64(len(m.Caddr))) + i += copy(dAtA[i:], m.Caddr) + } + if m.Tasklab != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintCommsg(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] = 0x22 + i++ + i = encodeVarintCommsg(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) + } + if m.Push != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintCommsg(dAtA, i, uint64(m.Push.Size())) + n2, err2 := m.Push.MarshalTo(dAtA[i:]) + if err2 != nil { + return 0, err2 + } + i += n2 + } + return i, nil +} + +func (m *Recvmsg) 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 *Recvmsg) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintCommsg(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.Addr) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintCommsg(dAtA, i, uint64(len(m.Addr))) + i += copy(dAtA[i:], m.Addr) + } + if len(m.Picdata) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintCommsg(dAtA, i, uint64(len(m.Picdata))) + i += copy(dAtA[i:], m.Picdata) + } + return i, nil +} + +func encodeVarintCommsg(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 *SdkmsgWithTask) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Ipcid) + if l > 0 { + n += 1 + l + sovCommsg(uint64(l)) + } + l = len(m.Sdktype) + if l > 0 { + n += 1 + l + sovCommsg(uint64(l)) + } + l = len(m.Sdkdata) + if l > 0 { + n += 1 + l + sovCommsg(uint64(l)) + } + return n +} + +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 + sovCommsg(uint64(l)) + } + l = len(m.Taskname) + if l > 0 { + n += 1 + l + sovCommsg(uint64(l)) + } + if len(m.Sdkinfos) > 0 { + for _, e := range m.Sdkinfos { + l = e.Size() + n += 1 + l + sovCommsg(uint64(l)) + } + } + if m.Index != 0 { + n += 1 + sovCommsg(uint64(m.Index)) + } + 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 + sovCommsg(uint64(l)) + } + l = len(m.Caddr) + if l > 0 { + n += 1 + l + sovCommsg(uint64(l)) + } + if m.Tasklab != nil { + l = m.Tasklab.Size() + n += 1 + l + sovCommsg(uint64(l)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovCommsg(uint64(l)) + } + if m.Push != nil { + l = m.Push.Size() + n += 1 + l + sovCommsg(uint64(l)) + } + return n +} + +func (m *Recvmsg) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCommsg(uint64(l)) + } + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovCommsg(uint64(l)) + } + l = len(m.Picdata) + if l > 0 { + n += 1 + l + sovCommsg(uint64(l)) + } + return n +} + +func sovCommsg(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozCommsg(x uint64) (n int) { + return sovCommsg(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SdkmsgWithTask) 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 ErrIntOverflowCommsg + } + 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: SdkmsgWithTask: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SdkmsgWithTask: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipcid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommsg + } + 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 ErrInvalidLengthCommsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ipcid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sdktype", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommsg + } + 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 ErrInvalidLengthCommsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sdktype = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sdkdata", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthCommsg + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sdkdata = append(m.Sdkdata[:0], dAtA[iNdEx:postIndex]...) + if m.Sdkdata == nil { + m.Sdkdata = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +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 ErrIntOverflowCommsg + } + 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 ErrIntOverflowCommsg + } + 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 ErrInvalidLengthCommsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + 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 ErrIntOverflowCommsg + } + 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 ErrInvalidLengthCommsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + 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 Sdkinfos", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sdkinfos = append(m.Sdkinfos, &SdkmsgWithTask{}) + if err := m.Sdkinfos[len(m.Sdkinfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + 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 ErrIntOverflowCommsg + } + 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 := skipCommsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + 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 ErrIntOverflowCommsg + } + 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 ErrIntOverflowCommsg + } + 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 ErrInvalidLengthCommsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + 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 Caddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommsg + } + 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 ErrInvalidLengthCommsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Caddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 ErrIntOverflowCommsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + 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 4: + 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 ErrIntOverflowCommsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthCommsg + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + 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 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Push", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCommsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Push == nil { + m.Push = &PushAttach{} + } + if err := m.Push.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Recvmsg) 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 ErrIntOverflowCommsg + } + 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: recvmsg: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: recvmsg: 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 ErrIntOverflowCommsg + } + 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 ErrInvalidLengthCommsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + 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 Addr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommsg + } + 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 ErrInvalidLengthCommsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Addr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Picdata", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthCommsg + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCommsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Picdata = append(m.Picdata[:0], dAtA[iNdEx:postIndex]...) + if m.Picdata == nil { + m.Picdata = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCommsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCommsg(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, ErrIntOverflowCommsg + } + 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, ErrIntOverflowCommsg + } + 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, ErrIntOverflowCommsg + } + 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, ErrInvalidLengthCommsg + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthCommsg + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCommsg + } + 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 := skipCommsg(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthCommsg + } + } + 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 ( + ErrInvalidLengthCommsg = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCommsg = fmt.Errorf("proto: integer overflow") +) diff --git a/es.pb.go b/es.pb.go index 3cb6134..f048aed 100644 --- a/es.pb.go +++ b/es.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: es.proto package protomsg import ( + encoding_binary "encoding/binary" fmt "fmt" - proto "github.com/golang/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" math "math" ) @@ -18,18 +20,15 @@ // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Esinfo struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Tableid string `protobuf:"bytes,2,opt,name=tableid,proto3" json:"tableid,omitempty"` - FaceFeature string `protobuf:"bytes,3,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` - CompareScore float32 `protobuf:"fixed32,4,opt,name=compareScore,proto3" json:"compareScore,omitempty"` - Enable int32 `protobuf:"varint,5,opt,name=enable,proto3" json:"enable,omitempty"` - AnalyServerId string `protobuf:"bytes,6,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Tableid string `protobuf:"bytes,2,opt,name=tableid,proto3" json:"tableid,omitempty"` + FaceFeature string `protobuf:"bytes,3,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` + CompareScore float32 `protobuf:"fixed32,4,opt,name=compareScore,proto3" json:"compareScore,omitempty"` + Enable int32 `protobuf:"varint,5,opt,name=enable,proto3" json:"enable,omitempty"` + AnalyServerId string `protobuf:"bytes,6,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` } func (m *Esinfo) Reset() { *m = Esinfo{} } @@ -38,18 +37,26 @@ func (*Esinfo) Descriptor() ([]byte, []int) { return fileDescriptor_718db5c20d0f3738, []int{0} } - func (m *Esinfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Esinfo.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Esinfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Esinfo.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_Esinfo.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 *Esinfo) XXX_Merge(src proto.Message) { xxx_messageInfo_Esinfo.Merge(m, src) } func (m *Esinfo) XXX_Size() int { - return xxx_messageInfo_Esinfo.Size(m) + return m.Size() } func (m *Esinfo) XXX_DiscardUnknown() { xxx_messageInfo_Esinfo.DiscardUnknown(m) @@ -100,26 +107,23 @@ } type Dbperson struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - TableId string `protobuf:"bytes,2,opt,name=tableId,proto3" json:"tableId,omitempty"` - FaceFeature string `protobuf:"bytes,3,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` - PersonPicUrl string `protobuf:"bytes,4,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` - PersonName string `protobuf:"bytes,5,opt,name=personName,proto3" json:"personName,omitempty"` - Age string `protobuf:"bytes,6,opt,name=age,proto3" json:"age,omitempty"` - Sex string `protobuf:"bytes,7,opt,name=sex,proto3" json:"sex,omitempty"` - IdCard string `protobuf:"bytes,8,opt,name=idCard,proto3" json:"idCard,omitempty"` - PicDesc string `protobuf:"bytes,9,opt,name=picDesc,proto3" json:"picDesc,omitempty"` - PhoneNum string `protobuf:"bytes,10,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` - CreateTime string `protobuf:"bytes,11,opt,name=createTime,proto3" json:"createTime,omitempty"` - UpdateTime string `protobuf:"bytes,12,opt,name=updateTime,proto3" json:"updateTime,omitempty"` - CreateBy string `protobuf:"bytes,13,opt,name=createBy,proto3" json:"createBy,omitempty"` - IsDelete int32 `protobuf:"varint,14,opt,name=isDelete,proto3" json:"isDelete,omitempty"` - MonitorLevel string `protobuf:"bytes,15,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` - Enable int32 `protobuf:"varint,16,opt,name=enable,proto3" json:"enable,omitempty"` - Reserved string `protobuf:"bytes,17,opt,name=reserved,proto3" json:"reserved,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + TableId string `protobuf:"bytes,2,opt,name=tableId,proto3" json:"tableId,omitempty"` + FaceFeature string `protobuf:"bytes,3,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` + PersonPicUrl string `protobuf:"bytes,4,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` + PersonName string `protobuf:"bytes,5,opt,name=personName,proto3" json:"personName,omitempty"` + Age string `protobuf:"bytes,6,opt,name=age,proto3" json:"age,omitempty"` + Sex string `protobuf:"bytes,7,opt,name=sex,proto3" json:"sex,omitempty"` + IdCard string `protobuf:"bytes,8,opt,name=idCard,proto3" json:"idCard,omitempty"` + PicDesc string `protobuf:"bytes,9,opt,name=picDesc,proto3" json:"picDesc,omitempty"` + PhoneNum string `protobuf:"bytes,10,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` + CreateTime string `protobuf:"bytes,11,opt,name=createTime,proto3" json:"createTime,omitempty"` + UpdateTime string `protobuf:"bytes,12,opt,name=updateTime,proto3" json:"updateTime,omitempty"` + CreateBy string `protobuf:"bytes,13,opt,name=createBy,proto3" json:"createBy,omitempty"` + IsDelete int32 `protobuf:"varint,14,opt,name=isDelete,proto3" json:"isDelete,omitempty"` + MonitorLevel string `protobuf:"bytes,15,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` + Enable int32 `protobuf:"varint,16,opt,name=enable,proto3" json:"enable,omitempty"` + Reserved string `protobuf:"bytes,17,opt,name=reserved,proto3" json:"reserved,omitempty"` } func (m *Dbperson) Reset() { *m = Dbperson{} } @@ -128,18 +132,26 @@ func (*Dbperson) Descriptor() ([]byte, []int) { return fileDescriptor_718db5c20d0f3738, []int{1} } - func (m *Dbperson) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Dbperson.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Dbperson) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Dbperson.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_Dbperson.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 *Dbperson) XXX_Merge(src proto.Message) { xxx_messageInfo_Dbperson.Merge(m, src) } func (m *Dbperson) XXX_Size() int { - return xxx_messageInfo_Dbperson.Size(m) + return m.Size() } func (m *Dbperson) XXX_DiscardUnknown() { xxx_messageInfo_Dbperson.DiscardUnknown(m) @@ -267,24 +279,21 @@ } type Dbtable struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - TableName string `protobuf:"bytes,2,opt,name=tableName,proto3" json:"tableName,omitempty"` - TableDesc string `protobuf:"bytes,3,opt,name=tableDesc,proto3" json:"tableDesc,omitempty"` - TableType string `protobuf:"bytes,4,opt,name=tableType,proto3" json:"tableType,omitempty"` - BwType string `protobuf:"bytes,5,opt,name=bwType,proto3" json:"bwType,omitempty"` - StartTime string `protobuf:"bytes,6,opt,name=startTime,proto3" json:"startTime,omitempty"` - EndTime string `protobuf:"bytes,7,opt,name=endTime,proto3" json:"endTime,omitempty"` - CreateTime string `protobuf:"bytes,8,opt,name=createTime,proto3" json:"createTime,omitempty"` - UpdateTime string `protobuf:"bytes,9,opt,name=updateTime,proto3" json:"updateTime,omitempty"` - CreateBy string `protobuf:"bytes,10,opt,name=createBy,proto3" json:"createBy,omitempty"` - IsDelete int32 `protobuf:"varint,11,opt,name=isDelete,proto3" json:"isDelete,omitempty"` - IsForever string `protobuf:"bytes,12,opt,name=isForever,proto3" json:"isForever,omitempty"` - Enable int32 `protobuf:"varint,13,opt,name=enable,proto3" json:"enable,omitempty"` - IsSync string `protobuf:"bytes,14,opt,name=isSync,proto3" json:"isSync,omitempty"` - AnalyServerId string `protobuf:"bytes,15,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + TableName string `protobuf:"bytes,2,opt,name=tableName,proto3" json:"tableName,omitempty"` + TableDesc string `protobuf:"bytes,3,opt,name=tableDesc,proto3" json:"tableDesc,omitempty"` + TableType string `protobuf:"bytes,4,opt,name=tableType,proto3" json:"tableType,omitempty"` + BwType string `protobuf:"bytes,5,opt,name=bwType,proto3" json:"bwType,omitempty"` + StartTime string `protobuf:"bytes,6,opt,name=startTime,proto3" json:"startTime,omitempty"` + EndTime string `protobuf:"bytes,7,opt,name=endTime,proto3" json:"endTime,omitempty"` + CreateTime string `protobuf:"bytes,8,opt,name=createTime,proto3" json:"createTime,omitempty"` + UpdateTime string `protobuf:"bytes,9,opt,name=updateTime,proto3" json:"updateTime,omitempty"` + CreateBy string `protobuf:"bytes,10,opt,name=createBy,proto3" json:"createBy,omitempty"` + IsDelete int32 `protobuf:"varint,11,opt,name=isDelete,proto3" json:"isDelete,omitempty"` + IsForever string `protobuf:"bytes,12,opt,name=isForever,proto3" json:"isForever,omitempty"` + Enable int32 `protobuf:"varint,13,opt,name=enable,proto3" json:"enable,omitempty"` + IsSync string `protobuf:"bytes,14,opt,name=isSync,proto3" json:"isSync,omitempty"` + AnalyServerId string `protobuf:"bytes,15,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` } func (m *Dbtable) Reset() { *m = Dbtable{} } @@ -293,18 +302,26 @@ func (*Dbtable) Descriptor() ([]byte, []int) { return fileDescriptor_718db5c20d0f3738, []int{2} } - func (m *Dbtable) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Dbtable.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Dbtable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Dbtable.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_Dbtable.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 *Dbtable) XXX_Merge(src proto.Message) { xxx_messageInfo_Dbtable.Merge(m, src) } func (m *Dbtable) XXX_Size() int { - return xxx_messageInfo_Dbtable.Size(m) + return m.Size() } func (m *Dbtable) XXX_DiscardUnknown() { xxx_messageInfo_Dbtable.DiscardUnknown(m) @@ -426,36 +443,1914 @@ func init() { proto.RegisterFile("es.proto", fileDescriptor_718db5c20d0f3738) } var fileDescriptor_718db5c20d0f3738 = []byte{ - // 482 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xd1, 0x6e, 0xd3, 0x30, - 0x14, 0x86, 0x95, 0x86, 0xb5, 0xc9, 0xe9, 0xba, 0x0d, 0x5f, 0x20, 0x6b, 0x9a, 0x50, 0x55, 0x71, - 0xd1, 0x2b, 0x6e, 0x78, 0x03, 0x28, 0x93, 0x2a, 0xa1, 0x09, 0xa5, 0xe3, 0x01, 0x9c, 0xf8, 0x6c, - 0x58, 0x4a, 0xe2, 0xc8, 0x4e, 0xcb, 0xf2, 0x54, 0xdc, 0xf1, 0x34, 0x3c, 0x0c, 0xf2, 0x71, 0xd2, - 0x24, 0x1b, 0x8c, 0x5d, 0xb5, 0xff, 0xff, 0xb7, 0xa7, 0x7f, 0xcf, 0x67, 0x07, 0x22, 0xb4, 0xef, - 0x2b, 0xa3, 0x6b, 0xcd, 0x22, 0x7a, 0x29, 0xec, 0xfd, 0xea, 0x57, 0x00, 0xd3, 0xcf, 0x56, 0x95, - 0x77, 0x9a, 0x9d, 0xc1, 0x44, 0x49, 0x1e, 0x2c, 0x83, 0x75, 0x9c, 0x4c, 0x94, 0x64, 0x1c, 0x66,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0x75, 0x0f, 0x66, 0x04, - 0x00, 0x00, + // 515 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x41, 0x6e, 0xda, 0x40, + 0x14, 0x86, 0x31, 0x6e, 0xc0, 0x1e, 0x42, 0x92, 0xce, 0xa2, 0x1a, 0x45, 0x91, 0x85, 0x50, 0x17, + 0xac, 0xba, 0xe9, 0x0d, 0x52, 0x1a, 0x09, 0xa9, 0x8a, 0x2a, 0x93, 0x1e, 0x60, 0x6c, 0xbf, 0xa4, + 0x23, 0xd9, 0x1e, 0x6b, 0xc6, 0xd0, 0x70, 0x8b, 0xde, 0xa4, 0xbb, 0x9e, 0xa1, 0xcb, 0x2c, 0xbb, + 0xe8, 0xa2, 0x82, 0x8b, 0x54, 0xf3, 0xc6, 0xc6, 0x76, 0xd2, 0xd2, 0xac, 0xe0, 0xff, 0x7f, 0x78, + 0xfc, 0xbc, 0x6f, 0xc6, 0xc4, 0x03, 0xfd, 0xa6, 0x50, 0xb2, 0x94, 0xd4, 0xc3, 0x97, 0x4c, 0xdf, + 0x4d, 0xbf, 0x3b, 0x64, 0xf0, 0x5e, 0x8b, 0xfc, 0x56, 0xd2, 0x13, 0xd2, 0x17, 0x09, 0x73, 0x26, + 0xce, 0xcc, 0x0f, 0xfb, 0x22, 0xa1, 0x8c, 0x0c, 0x4b, 0x1e, 0xa5, 0x20, 0x12, 0xd6, 0x47, 0xb3, + 0x96, 0x74, 0x42, 0x46, 0xb7, 0x3c, 0x86, 0x2b, 0xe0, 0xe5, 0x4a, 0x01, 0x73, 0x31, 0x6d, 0x5b, + 0x74, 0x4a, 0x8e, 0x63, 0x99, 0x15, 0x5c, 0xc1, 0x32, 0x96, 0x0a, 0xd8, 0x8b, 0x89, 0x33, 0xeb, + 0x87, 0x1d, 0x8f, 0xbe, 0x22, 0x03, 0xc8, 0xcd, 0x44, 0x76, 0x34, 0x71, 0x66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e, 0x02, 0x6d, 0x80, 0x26, 0xec, 0xa5, 0xfd, 0xcd, 0x5a, 0x4f, 0xbf, 0xb9, 0x64, 0x38, + 0x8f, 0x90, 0xda, 0x13, 0xba, 0x17, 0xc4, 0xc7, 0x00, 0x97, 0x6f, 0xf9, 0x36, 0xc6, 0x3e, 0xc5, + 0x0d, 0xba, 0xad, 0x14, 0x77, 0x58, 0xa7, 0x37, 0x9b, 0x02, 0x2a, 0xb4, 0x8d, 0x61, 0x9a, 0x46, + 0x5f, 0x30, 0xb2, 0x4c, 0x2b, 0x65, 0xbe, 0xa5, 0x4b, 0xae, 0x4a, 0x5c, 0x9e, 0xa5, 0xda, 0x18, + 0x86, 0x18, 0xe4, 0x09, 0x66, 0x96, 0x6f, 0x2d, 0x1f, 0x51, 0xf1, 0xfe, 0x43, 0xc5, 0x3f, 0x48, + 0x85, 0x1c, 0xa0, 0x32, 0x7a, 0x44, 0xe5, 0x82, 0xf8, 0x42, 0x5f, 0x49, 0x05, 0x6b, 0x50, 0x15, + 0xec, 0xc6, 0x68, 0xf1, 0x18, 0x77, 0x78, 0x98, 0x13, 0xa9, 0x97, 0x9b, 0x3c, 0x46, 0xca, 0xe6, + 0x44, 0xa2, 0x7a, 0x7a, 0x21, 0x4f, 0xff, 0x72, 0x21, 0x2f, 0xd9, 0x8f, 0x6d, 0xe0, 0x3c, 0x6c, + 0x03, 0xe7, 0xf7, 0x36, 0x70, 0xbe, 0xee, 0x82, 0xde, 0xc3, 0x2e, 0xe8, 0xfd, 0xdc, 0x05, 0xbd, + 0x68, 0x80, 0x4f, 0x9b, 0xb7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xae, 0xb9, 0xb1, 0xa6, 0x80, + 0x04, 0x00, 0x00, } + +func (m *Esinfo) 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 *Esinfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.Tableid) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.Tableid))) + i += copy(dAtA[i:], m.Tableid) + } + if len(m.FaceFeature) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.FaceFeature))) + i += copy(dAtA[i:], m.FaceFeature) + } + if m.CompareScore != 0 { + dAtA[i] = 0x25 + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareScore)))) + i += 4 + } + if m.Enable != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintEs(dAtA, i, uint64(m.Enable)) + } + if len(m.AnalyServerId) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.AnalyServerId))) + i += copy(dAtA[i:], m.AnalyServerId) + } + return i, nil +} + +func (m *Dbperson) 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 *Dbperson) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.TableId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.TableId))) + i += copy(dAtA[i:], m.TableId) + } + if len(m.FaceFeature) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.FaceFeature))) + i += copy(dAtA[i:], m.FaceFeature) + } + if len(m.PersonPicUrl) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.PersonPicUrl))) + i += copy(dAtA[i:], m.PersonPicUrl) + } + if len(m.PersonName) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.PersonName))) + i += copy(dAtA[i:], m.PersonName) + } + if len(m.Age) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.Age))) + i += copy(dAtA[i:], m.Age) + } + if len(m.Sex) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.Sex))) + i += copy(dAtA[i:], m.Sex) + } + if len(m.IdCard) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.IdCard))) + i += copy(dAtA[i:], m.IdCard) + } + if len(m.PicDesc) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.PicDesc))) + i += copy(dAtA[i:], m.PicDesc) + } + if len(m.PhoneNum) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.PhoneNum))) + i += copy(dAtA[i:], m.PhoneNum) + } + if len(m.CreateTime) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.CreateTime))) + i += copy(dAtA[i:], m.CreateTime) + } + if len(m.UpdateTime) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.UpdateTime))) + i += copy(dAtA[i:], m.UpdateTime) + } + if len(m.CreateBy) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.CreateBy))) + i += copy(dAtA[i:], m.CreateBy) + } + if m.IsDelete != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintEs(dAtA, i, uint64(m.IsDelete)) + } + if len(m.MonitorLevel) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.MonitorLevel))) + i += copy(dAtA[i:], m.MonitorLevel) + } + if m.Enable != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintEs(dAtA, i, uint64(m.Enable)) + } + if len(m.Reserved) > 0 { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.Reserved))) + i += copy(dAtA[i:], m.Reserved) + } + return i, nil +} + +func (m *Dbtable) 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 *Dbtable) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.TableName) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if len(m.TableDesc) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.TableDesc))) + i += copy(dAtA[i:], m.TableDesc) + } + if len(m.TableType) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.TableType))) + i += copy(dAtA[i:], m.TableType) + } + if len(m.BwType) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.BwType))) + i += copy(dAtA[i:], m.BwType) + } + if len(m.StartTime) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.StartTime))) + i += copy(dAtA[i:], m.StartTime) + } + if len(m.EndTime) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.EndTime))) + i += copy(dAtA[i:], m.EndTime) + } + if len(m.CreateTime) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.CreateTime))) + i += copy(dAtA[i:], m.CreateTime) + } + if len(m.UpdateTime) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.UpdateTime))) + i += copy(dAtA[i:], m.UpdateTime) + } + if len(m.CreateBy) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.CreateBy))) + i += copy(dAtA[i:], m.CreateBy) + } + if m.IsDelete != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintEs(dAtA, i, uint64(m.IsDelete)) + } + if len(m.IsForever) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.IsForever))) + i += copy(dAtA[i:], m.IsForever) + } + if m.Enable != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintEs(dAtA, i, uint64(m.Enable)) + } + if len(m.IsSync) > 0 { + dAtA[i] = 0x72 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.IsSync))) + i += copy(dAtA[i:], m.IsSync) + } + if len(m.AnalyServerId) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.AnalyServerId))) + i += copy(dAtA[i:], m.AnalyServerId) + } + return i, nil +} + +func encodeVarintEs(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 *Esinfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.Tableid) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.FaceFeature) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + if m.CompareScore != 0 { + n += 5 + } + if m.Enable != 0 { + n += 1 + sovEs(uint64(m.Enable)) + } + l = len(m.AnalyServerId) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + return n +} + +func (m *Dbperson) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.TableId) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.FaceFeature) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.PersonPicUrl) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.PersonName) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.Age) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.Sex) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.IdCard) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.PicDesc) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.PhoneNum) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.CreateTime) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.UpdateTime) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.CreateBy) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + if m.IsDelete != 0 { + n += 1 + sovEs(uint64(m.IsDelete)) + } + l = len(m.MonitorLevel) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + if m.Enable != 0 { + n += 2 + sovEs(uint64(m.Enable)) + } + l = len(m.Reserved) + if l > 0 { + n += 2 + l + sovEs(uint64(l)) + } + return n +} + +func (m *Dbtable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.TableDesc) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.TableType) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.BwType) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.StartTime) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.EndTime) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.CreateTime) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.UpdateTime) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.CreateBy) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + if m.IsDelete != 0 { + n += 1 + sovEs(uint64(m.IsDelete)) + } + l = len(m.IsForever) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + if m.Enable != 0 { + n += 1 + sovEs(uint64(m.Enable)) + } + l = len(m.IsSync) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.AnalyServerId) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + return n +} + +func sovEs(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozEs(x uint64) (n int) { + return sovEs(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Esinfo) 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 ErrIntOverflowEs + } + 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: Esinfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Esinfo: 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 ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tableid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tableid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FaceFeature", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FaceFeature = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field CompareScore", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.CompareScore = float32(math.Float32frombits(v)) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + m.Enable = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Enable |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEs(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEs + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEs + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Dbperson) 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 ErrIntOverflowEs + } + 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: Dbperson: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Dbperson: 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 ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FaceFeature", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FaceFeature = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersonPicUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PersonPicUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersonName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PersonName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Age = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sex = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IdCard", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IdCard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PicDesc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PicDesc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PhoneNum", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PhoneNum = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + 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 ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreateTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + 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 ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UpdateTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + 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 ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreateBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) + } + m.IsDelete = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IsDelete |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MonitorLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MonitorLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + m.Enable = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Enable |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 17: + 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 ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reserved = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEs(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEs + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEs + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Dbtable) 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 ErrIntOverflowEs + } + 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: Dbtable: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Dbtable: 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 ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + 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 TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableDesc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableDesc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BwType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BwType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StartTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EndTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreateTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UpdateTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreateBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) + } + m.IsDelete = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IsDelete |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IsForever", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IsForever = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + m.Enable = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Enable |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IsSync", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IsSync = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + 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 ErrInvalidLengthEs + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEs + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEs(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEs + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEs + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEs(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, ErrIntOverflowEs + } + 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, ErrIntOverflowEs + } + 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, ErrIntOverflowEs + } + 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, ErrInvalidLengthEs + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthEs + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEs + } + 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 := skipEs(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthEs + } + } + 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 ( + ErrInvalidLengthEs = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEs = fmt.Errorf("proto: integer overflow") +) diff --git a/facedetect.pb.go b/facedetect.pb.go index e06f0f8..84f73b4 100644 --- a/facedetect.pb.go +++ b/facedetect.pb.go @@ -1,11 +1,12 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: facedetect.proto package protomsg import ( fmt "fmt" - proto "github.com/golang/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" math "math" ) @@ -18,13 +19,10 @@ // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package type FaceDetectRequest struct { - ReqParam []byte `protobuf:"bytes,1,opt,name=reqParam,proto3" json:"reqParam,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ReqParam []byte `protobuf:"bytes,1,opt,name=reqParam,proto3" json:"reqParam,omitempty"` } func (m *FaceDetectRequest) Reset() { *m = FaceDetectRequest{} } @@ -33,18 +31,26 @@ func (*FaceDetectRequest) Descriptor() ([]byte, []int) { return fileDescriptor_5314bd1755b5a080, []int{0} } - func (m *FaceDetectRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FaceDetectRequest.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *FaceDetectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FaceDetectRequest.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_FaceDetectRequest.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 *FaceDetectRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_FaceDetectRequest.Merge(m, src) } func (m *FaceDetectRequest) XXX_Size() int { - return xxx_messageInfo_FaceDetectRequest.Size(m) + return m.Size() } func (m *FaceDetectRequest) XXX_DiscardUnknown() { xxx_messageInfo_FaceDetectRequest.DiscardUnknown(m) @@ -66,14 +72,272 @@ func init() { proto.RegisterFile("facedetect.proto", fileDescriptor_5314bd1755b5a080) } var fileDescriptor_5314bd1755b5a080 = []byte{ - // 129 bytes of a gzipped FileDescriptorProto + // 157 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x48, 0x4b, 0x4c, 0x4e, 0x4d, 0x49, 0x2d, 0x49, 0x4d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0xb9, 0xc5, 0xe9, 0x52, 0x9c, 0xc5, 0x29, 0xd9, 0x10, 0x41, 0x25, 0x7d, 0x2e, 0x41, 0xb7, 0xc4, 0xe4, 0x54, 0x17, 0xb0, 0xc2, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x21, 0x29, 0x2e, 0x8e, 0xa2, 0xd4, 0xc2, 0x80, 0xc4, 0xa2, 0xc4, 0x5c, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x9e, 0x20, 0x38, 0xdf, 0x28, 0x90, 0x8b, 0x0b, 0xa1, 0x41, 0xc8, 0x19, 0x85, 0x27, 0xad, 0x07, 0xb3, 0x42, 0x0f, - 0xc3, 0x50, 0x29, 0x31, 0x84, 0x24, 0xd8, 0x24, 0x90, 0x8a, 0x80, 0xfc, 0x62, 0x25, 0x86, 0x24, - 0x36, 0xb0, 0x84, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x63, 0xa0, 0x0f, 0x51, 0xb3, 0x00, 0x00, - 0x00, + 0xc3, 0x50, 0x29, 0x31, 0x84, 0x24, 0xd8, 0x24, 0x90, 0x8a, 0x80, 0xfc, 0x62, 0x25, 0x06, 0x27, + 0x89, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, + 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x48, 0x62, 0x03, 0x6b, 0x31, 0x06, + 0x04, 0x00, 0x00, 0xff, 0xff, 0x92, 0xe0, 0xfb, 0x5b, 0xcd, 0x00, 0x00, 0x00, } + +func (m *FaceDetectRequest) 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 *FaceDetectRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.ReqParam) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintFacedetect(dAtA, i, uint64(len(m.ReqParam))) + i += copy(dAtA[i:], m.ReqParam) + } + return i, nil +} + +func encodeVarintFacedetect(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 *FaceDetectRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ReqParam) + if l > 0 { + n += 1 + l + sovFacedetect(uint64(l)) + } + return n +} + +func sovFacedetect(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozFacedetect(x uint64) (n int) { + return sovFacedetect(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FaceDetectRequest) 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 ErrIntOverflowFacedetect + } + 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: FaceDetectRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FaceDetectRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReqParam", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFacedetect + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthFacedetect + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthFacedetect + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReqParam = append(m.ReqParam[:0], dAtA[iNdEx:postIndex]...) + if m.ReqParam == nil { + m.ReqParam = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFacedetect(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFacedetect + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFacedetect + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipFacedetect(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, ErrIntOverflowFacedetect + } + 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, ErrIntOverflowFacedetect + } + 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, ErrIntOverflowFacedetect + } + 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, ErrInvalidLengthFacedetect + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthFacedetect + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFacedetect + } + 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 := skipFacedetect(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthFacedetect + } + } + 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 ( + ErrInvalidLengthFacedetect = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFacedetect = fmt.Errorf("proto: integer overflow") +) diff --git a/protomsg.pb.go b/protomsg.pb.go index 2a382b8..8a421d2 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" + proto "github.com/gogo/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.GoGoProtoPackageIsVersion2 // please upgrade the proto package //TableChanged enum type TableChanged int32 @@ -156,12 +158,9 @@ //Area缁撴瀯浣� type Area struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Parentid int32 `protobuf:"varint,2,opt,name=parentid,proto3" json:"parentid,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Parentid int32 `protobuf:"varint,2,opt,name=parentid,proto3" json:"parentid,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` } func (m *Area) Reset() { *m = Area{} } @@ -170,18 +169,26 @@ func (*Area) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{0} } - 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) @@ -212,29 +219,26 @@ //Camera缁撴瀯浣� type Camera struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` - SnapshotUrl string `protobuf:"bytes,4,opt,name=snapshot_url,json=snapshotUrl,proto3" json:"snapshot_url,omitempty"` - Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` - Addr string `protobuf:"bytes,6,opt,name=addr,proto3" json:"addr,omitempty"` - Longitude float32 `protobuf:"fixed32,7,opt,name=longitude,proto3" json:"longitude,omitempty"` - Latitude float32 `protobuf:"fixed32,8,opt,name=latitude,proto3" json:"latitude,omitempty"` - Floor int32 `protobuf:"varint,9,opt,name=floor,proto3" json:"floor,omitempty"` - Rtsp string `protobuf:"bytes,10,opt,name=rtsp,proto3" json:"rtsp,omitempty"` - Ip string `protobuf:"bytes,11,opt,name=ip,proto3" json:"ip,omitempty"` - Port int32 `protobuf:"varint,12,opt,name=port,proto3" json:"port,omitempty"` - Username string `protobuf:"bytes,13,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,14,opt,name=password,proto3" json:"password,omitempty"` - Brand string `protobuf:"bytes,15,opt,name=brand,proto3" json:"brand,omitempty"` - Reserved string `protobuf:"bytes,16,opt,name=reserved,proto3" json:"reserved,omitempty"` - IsRunning bool `protobuf:"varint,17,opt,name=is_running,json=isRunning,proto3" json:"is_running,omitempty"` - RunEnable bool `protobuf:"varint,18,opt,name=run_enable,json=runEnable,proto3" json:"run_enable,omitempty"` - RunType int32 `protobuf:"varint,19,opt,name=run_type,json=runType,proto3" json:"run_type,omitempty"` - RunServerId string `protobuf:"bytes,20,opt,name=run_server_id,json=runServerId,proto3" json:"run_server_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` + SnapshotUrl string `protobuf:"bytes,4,opt,name=snapshot_url,json=snapshotUrl,proto3" json:"snapshot_url,omitempty"` + Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` + Addr string `protobuf:"bytes,6,opt,name=addr,proto3" json:"addr,omitempty"` + Longitude float32 `protobuf:"fixed32,7,opt,name=longitude,proto3" json:"longitude,omitempty"` + Latitude float32 `protobuf:"fixed32,8,opt,name=latitude,proto3" json:"latitude,omitempty"` + Floor int32 `protobuf:"varint,9,opt,name=floor,proto3" json:"floor,omitempty"` + Rtsp string `protobuf:"bytes,10,opt,name=rtsp,proto3" json:"rtsp,omitempty"` + Ip string `protobuf:"bytes,11,opt,name=ip,proto3" json:"ip,omitempty"` + Port int32 `protobuf:"varint,12,opt,name=port,proto3" json:"port,omitempty"` + Username string `protobuf:"bytes,13,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,14,opt,name=password,proto3" json:"password,omitempty"` + Brand string `protobuf:"bytes,15,opt,name=brand,proto3" json:"brand,omitempty"` + Reserved string `protobuf:"bytes,16,opt,name=reserved,proto3" json:"reserved,omitempty"` + IsRunning bool `protobuf:"varint,17,opt,name=is_running,json=isRunning,proto3" json:"is_running,omitempty"` + RunEnable bool `protobuf:"varint,18,opt,name=run_enable,json=runEnable,proto3" json:"run_enable,omitempty"` + RunType int32 `protobuf:"varint,19,opt,name=run_type,json=runType,proto3" json:"run_type,omitempty"` + RunServerId string `protobuf:"bytes,20,opt,name=run_server_id,json=runServerId,proto3" json:"run_server_id,omitempty"` } func (m *Camera) Reset() { *m = Camera{} } @@ -243,18 +247,26 @@ func (*Camera) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{1} } - 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) @@ -404,11 +416,8 @@ //鎽勫儚鏈虹殑浠诲姟淇℃伅 type CameraAndTaskInfo struct { - Camera *Camera `protobuf:"bytes,1,opt,name=camera,proto3" json:"camera,omitempty"` - Tasks []*Task `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Camera *Camera `protobuf:"bytes,1,opt,name=camera,proto3" json:"camera,omitempty"` + Tasks []*Task `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` } func (m *CameraAndTaskInfo) Reset() { *m = CameraAndTaskInfo{} } @@ -417,18 +426,26 @@ func (*CameraAndTaskInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{2} } - 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) @@ -452,17 +469,14 @@ //Task缁撴瀯浣� type Task struct { - Taskid string `protobuf:"bytes,1,opt,name=taskid,proto3" json:"taskid,omitempty"` - Taskname string `protobuf:"bytes,2,opt,name=taskname,proto3" json:"taskname,omitempty"` - CreateAt string `protobuf:"bytes,3,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` - CreateBy string `protobuf:"bytes,4,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"` - UpdateAt string `protobuf:"bytes,5,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"` - Enable bool `protobuf:"varint,6,opt,name=enable,proto3" json:"enable,omitempty"` - IsAlarm bool `protobuf:"varint,7,opt,name=is_alarm,json=isAlarm,proto3" json:"is_alarm,omitempty"` - DelFlag bool `protobuf:"varint,8,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Taskid string `protobuf:"bytes,1,opt,name=taskid,proto3" json:"taskid,omitempty"` + Taskname string `protobuf:"bytes,2,opt,name=taskname,proto3" json:"taskname,omitempty"` + CreateAt string `protobuf:"bytes,3,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` + CreateBy string `protobuf:"bytes,4,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"` + UpdateAt string `protobuf:"bytes,5,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"` + Enable bool `protobuf:"varint,6,opt,name=enable,proto3" json:"enable,omitempty"` + IsAlarm bool `protobuf:"varint,7,opt,name=is_alarm,json=isAlarm,proto3" json:"is_alarm,omitempty"` + DelFlag bool `protobuf:"varint,8,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` } func (m *Task) Reset() { *m = Task{} } @@ -471,18 +485,26 @@ func (*Task) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{3} } - 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) @@ -547,11 +569,8 @@ } type TaskSdkInfo struct { - Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` - Sdks []*Sdk `protobuf:"bytes,2,rep,name=sdks,proto3" json:"sdks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` + Sdks []*Sdk `protobuf:"bytes,2,rep,name=sdks,proto3" json:"sdks,omitempty"` } func (m *TaskSdkInfo) Reset() { *m = TaskSdkInfo{} } @@ -560,18 +579,26 @@ func (*TaskSdkInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{4} } - 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) @@ -594,11 +621,8 @@ } type SdkRun struct { - IpcId string `protobuf:"bytes,1,opt,name=ipc_id,json=ipcId,proto3" json:"ipc_id,omitempty"` - SdkType string `protobuf:"bytes,2,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + IpcId string `protobuf:"bytes,1,opt,name=ipc_id,json=ipcId,proto3" json:"ipc_id,omitempty"` + SdkType string `protobuf:"bytes,2,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` } func (m *SdkRun) Reset() { *m = SdkRun{} } @@ -607,18 +631,26 @@ func (*SdkRun) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{5} } - func (m *SdkRun) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SdkRun.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *SdkRun) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SdkRun.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_SdkRun.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *SdkRun) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkRun.Merge(m, src) } func (m *SdkRun) XXX_Size() int { - return xxx_messageInfo_SdkRun.Size(m) + return m.Size() } func (m *SdkRun) XXX_DiscardUnknown() { xxx_messageInfo_SdkRun.DiscardUnknown(m) @@ -641,11 +673,8 @@ } type TaskSdkRun struct { - Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` - Sdks []*SdkRun `protobuf:"bytes,2,rep,name=sdks,proto3" json:"sdks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` + Sdks []*SdkRun `protobuf:"bytes,2,rep,name=sdks,proto3" json:"sdks,omitempty"` } func (m *TaskSdkRun) Reset() { *m = TaskSdkRun{} } @@ -654,18 +683,26 @@ func (*TaskSdkRun) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{6} } - func (m *TaskSdkRun) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskSdkRun.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *TaskSdkRun) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskSdkRun.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_TaskSdkRun.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 *TaskSdkRun) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskSdkRun.Merge(m, src) } func (m *TaskSdkRun) XXX_Size() int { - return xxx_messageInfo_TaskSdkRun.Size(m) + return m.Size() } func (m *TaskSdkRun) XXX_DiscardUnknown() { xxx_messageInfo_TaskSdkRun.DiscardUnknown(m) @@ -689,21 +726,18 @@ //鎽勫儚鏈轰换鍔� type CameraTask struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` - TaskId string `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - TimeRule []*DayCtl `protobuf:"bytes,4,rep,name=time_rule,json=timeRule,proto3" json:"time_rule,omitempty"` - ReactRule string `protobuf:"bytes,5,opt,name=react_rule,json=reactRule,proto3" json:"react_rule,omitempty"` - ReactDevice string `protobuf:"bytes,6,opt,name=react_device,json=reactDevice,proto3" json:"react_device,omitempty"` - DelFlag bool `protobuf:"varint,7,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` - UpdateFlag bool `protobuf:"varint,8,opt,name=update_flag,json=updateFlag,proto3" json:"update_flag,omitempty"` - Enable bool `protobuf:"varint,9,opt,name=enable,proto3" json:"enable,omitempty"` - Sort int32 `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"` - IsFull bool `protobuf:"varint,11,opt,name=is_full,json=isFull,proto3" json:"is_full,omitempty"` - LinkTaskId string `protobuf:"bytes,12,opt,name=link_task_id,json=linkTaskId,proto3" json:"link_task_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` + TaskId string `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + TimeRule []*DayCtl `protobuf:"bytes,4,rep,name=time_rule,json=timeRule,proto3" json:"time_rule,omitempty"` + ReactRule string `protobuf:"bytes,5,opt,name=react_rule,json=reactRule,proto3" json:"react_rule,omitempty"` + ReactDevice string `protobuf:"bytes,6,opt,name=react_device,json=reactDevice,proto3" json:"react_device,omitempty"` + DelFlag bool `protobuf:"varint,7,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` + UpdateFlag bool `protobuf:"varint,8,opt,name=update_flag,json=updateFlag,proto3" json:"update_flag,omitempty"` + Enable bool `protobuf:"varint,9,opt,name=enable,proto3" json:"enable,omitempty"` + Sort int32 `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"` + IsFull bool `protobuf:"varint,11,opt,name=is_full,json=isFull,proto3" json:"is_full,omitempty"` + LinkTaskId string `protobuf:"bytes,12,opt,name=link_task_id,json=linkTaskId,proto3" json:"link_task_id,omitempty"` } func (m *CameraTask) Reset() { *m = CameraTask{} } @@ -712,18 +746,26 @@ func (*CameraTask) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{7} } - 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) @@ -817,12 +859,9 @@ //鎽勫儚鏈哄竷闃茬殑鏃堕棿瑙勫垯锛屽彲浠ヨ缃涓�,鐢╥d鍏宠仈鍒板叿浣撶殑瑙勫垯閰嶇疆涓� type CameraTimerule struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - TimeRule string `protobuf:"bytes,3,opt,name=time_rule,json=timeRule,proto3" json:"time_rule,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TimeRule string `protobuf:"bytes,3,opt,name=time_rule,json=timeRule,proto3" json:"time_rule,omitempty"` } func (m *CameraTimerule) Reset() { *m = CameraTimerule{} } @@ -831,18 +870,26 @@ func (*CameraTimerule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{8} } - 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) @@ -873,11 +920,8 @@ //DayCtl struct 姣忓ぉ鐨勬椂闂存帶鍒惰鍒� type DayCtl struct { - Day int32 `protobuf:"varint,1,opt,name=day,proto3" json:"day,omitempty"` - TimeRange []*TimeRange `protobuf:"bytes,2,rep,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Day int32 `protobuf:"varint,1,opt,name=day,proto3" json:"day,omitempty"` + TimeRange []*TimeRange `protobuf:"bytes,2,rep,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"` } func (m *DayCtl) Reset() { *m = DayCtl{} } @@ -886,18 +930,26 @@ func (*DayCtl) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{9} } - 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) @@ -921,11 +973,8 @@ //鏃堕棿璧峰鑼冨洿 type TimeRange struct { - Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` - End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` + End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` } func (m *TimeRange) Reset() { *m = TimeRange{} } @@ -934,18 +983,26 @@ func (*TimeRange) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{10} } - 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) @@ -969,12 +1026,9 @@ //Polygon struct type Polygon struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Points []*Point `protobuf:"bytes,3,rep,name=points,proto3" json:"points,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Points []*Point `protobuf:"bytes,3,rep,name=points,proto3" json:"points,omitempty"` } func (m *Polygon) Reset() { *m = Polygon{} } @@ -983,18 +1037,26 @@ func (*Polygon) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{11} } - 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) @@ -1024,11 +1086,8 @@ } type CameraTaskArgs struct { - CameraId string `protobuf:"bytes,1,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` - TaskArgs []*TaskGroupArgs `protobuf:"bytes,2,rep,name=task_args,json=taskArgs,proto3" json:"task_args,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CameraId string `protobuf:"bytes,1,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` + TaskArgs []*TaskGroupArgs `protobuf:"bytes,2,rep,name=task_args,json=taskArgs,proto3" json:"task_args,omitempty"` } func (m *CameraTaskArgs) Reset() { *m = CameraTaskArgs{} } @@ -1037,18 +1096,26 @@ func (*CameraTaskArgs) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{12} } - 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) @@ -1071,12 +1138,9 @@ } type TaskGroupArgs struct { - TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - GroupRules []*GroupRule `protobuf:"bytes,2,rep,name=group_rules,json=groupRules,proto3" json:"group_rules,omitempty"` - Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + GroupRules []*GroupRule `protobuf:"bytes,2,rep,name=group_rules,json=groupRules,proto3" json:"group_rules,omitempty"` + Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"` } func (m *TaskGroupArgs) Reset() { *m = TaskGroupArgs{} } @@ -1085,18 +1149,26 @@ func (*TaskGroupArgs) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{13} } - 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) @@ -1126,15 +1198,12 @@ } type GroupRule struct { - GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - GroupText string `protobuf:"bytes,2,opt,name=group_text,json=groupText,proto3" json:"group_text,omitempty"` - AlarmLevel int32 `protobuf:"varint,3,opt,name=alarm_level,json=alarmLevel,proto3" json:"alarm_level,omitempty"` - Rules []*Rule `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"` - SetType string `protobuf:"bytes,5,opt,name=set_type,json=setType,proto3" json:"set_type,omitempty"` - DefenceState bool `protobuf:"varint,6,opt,name=defence_state,json=defenceState,proto3" json:"defence_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + GroupText string `protobuf:"bytes,2,opt,name=group_text,json=groupText,proto3" json:"group_text,omitempty"` + AlarmLevel int32 `protobuf:"varint,3,opt,name=alarm_level,json=alarmLevel,proto3" json:"alarm_level,omitempty"` + Rules []*Rule `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"` + SetType string `protobuf:"bytes,5,opt,name=set_type,json=setType,proto3" json:"set_type,omitempty"` + DefenceState bool `protobuf:"varint,6,opt,name=defence_state,json=defenceState,proto3" json:"defence_state,omitempty"` } func (m *GroupRule) Reset() { *m = GroupRule{} } @@ -1143,18 +1212,26 @@ func (*GroupRule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{14} } - 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) @@ -1205,21 +1282,18 @@ } type Rule struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CameraTaskId string `protobuf:"bytes,2,opt,name=camera_task_id,json=cameraTaskId,proto3" json:"camera_task_id,omitempty"` - CameraId string `protobuf:"bytes,3,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` - PolygonId string `protobuf:"bytes,4,opt,name=polygon_id,json=polygonId,proto3" json:"polygon_id,omitempty"` - SdkId string `protobuf:"bytes,5,opt,name=sdk_id,json=sdkId,proto3" json:"sdk_id,omitempty"` - SdkArgAlias string `protobuf:"bytes,6,opt,name=sdk_arg_alias,json=sdkArgAlias,proto3" json:"sdk_arg_alias,omitempty"` - Operator string `protobuf:"bytes,7,opt,name=operator,proto3" json:"operator,omitempty"` - OperatorType string `protobuf:"bytes,8,opt,name=operator_type,json=operatorType,proto3" json:"operator_type,omitempty"` - SdkArgValue string `protobuf:"bytes,9,opt,name=sdk_arg_value,json=sdkArgValue,proto3" json:"sdk_arg_value,omitempty"` - Sort int32 `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"` - RuleWithPre string `protobuf:"bytes,11,opt,name=rule_with_pre,json=ruleWithPre,proto3" json:"rule_with_pre,omitempty"` - GroupId string `protobuf:"bytes,12,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraTaskId string `protobuf:"bytes,2,opt,name=camera_task_id,json=cameraTaskId,proto3" json:"camera_task_id,omitempty"` + CameraId string `protobuf:"bytes,3,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` + PolygonId string `protobuf:"bytes,4,opt,name=polygon_id,json=polygonId,proto3" json:"polygon_id,omitempty"` + SdkId string `protobuf:"bytes,5,opt,name=sdk_id,json=sdkId,proto3" json:"sdk_id,omitempty"` + SdkArgAlias string `protobuf:"bytes,6,opt,name=sdk_arg_alias,json=sdkArgAlias,proto3" json:"sdk_arg_alias,omitempty"` + Operator string `protobuf:"bytes,7,opt,name=operator,proto3" json:"operator,omitempty"` + OperatorType string `protobuf:"bytes,8,opt,name=operator_type,json=operatorType,proto3" json:"operator_type,omitempty"` + SdkArgValue string `protobuf:"bytes,9,opt,name=sdk_arg_value,json=sdkArgValue,proto3" json:"sdk_arg_value,omitempty"` + Sort int32 `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"` + RuleWithPre string `protobuf:"bytes,11,opt,name=rule_with_pre,json=ruleWithPre,proto3" json:"rule_with_pre,omitempty"` + GroupId string `protobuf:"bytes,12,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` } func (m *Rule) Reset() { *m = Rule{} } @@ -1228,18 +1302,26 @@ func (*Rule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{15} } - 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) @@ -1333,21 +1415,18 @@ //Sdk struct type Sdk struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - IpcId string `protobuf:"bytes,2,opt,name=ipc_id,json=ipcId,proto3" json:"ipc_id,omitempty"` - SdkType string `protobuf:"bytes,3,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` - SdkName string `protobuf:"bytes,4,opt,name=sdk_name,json=sdkName,proto3" json:"sdk_name,omitempty"` - Args []*SdkArg `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"` - Icon string `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"` - Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` - CreateTime string `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - UpdateTime string `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - CreateBy string `protobuf:"bytes,10,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"` - Enable bool `protobuf:"varint,11,opt,name=enable,proto3" json:"enable,omitempty"` - DelFlag int32 `protobuf:"varint,12,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + IpcId string `protobuf:"bytes,2,opt,name=ipc_id,json=ipcId,proto3" json:"ipc_id,omitempty"` + SdkType string `protobuf:"bytes,3,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` + SdkName string `protobuf:"bytes,4,opt,name=sdk_name,json=sdkName,proto3" json:"sdk_name,omitempty"` + Args []*SdkArg `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"` + Icon string `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"` + Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` + CreateTime string `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + UpdateTime string `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + CreateBy string `protobuf:"bytes,10,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"` + Enable bool `protobuf:"varint,11,opt,name=enable,proto3" json:"enable,omitempty"` + DelFlag int32 `protobuf:"varint,12,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` } func (m *Sdk) Reset() { *m = Sdk{} } @@ -1356,18 +1435,26 @@ func (*Sdk) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{16} } - 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) @@ -1460,12 +1547,9 @@ } type TaskSdkRule struct { - TaskId string `protobuf:"bytes,1,opt,name=taskId,proto3" json:"taskId,omitempty"` - Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"` - SdkRules []*SdkRuleSet `protobuf:"bytes,3,rep,name=sdkRules,proto3" json:"sdkRules,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TaskId string `protobuf:"bytes,1,opt,name=taskId,proto3" json:"taskId,omitempty"` + Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"` + SdkRules []*SdkRuleSet `protobuf:"bytes,3,rep,name=sdkRules,proto3" json:"sdkRules,omitempty"` } func (m *TaskSdkRule) Reset() { *m = TaskSdkRule{} } @@ -1474,18 +1558,26 @@ func (*TaskSdkRule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{17} } - func (m *TaskSdkRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskSdkRule.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *TaskSdkRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskSdkRule.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_TaskSdkRule.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 *TaskSdkRule) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskSdkRule.Merge(m, src) } func (m *TaskSdkRule) XXX_Size() int { - return xxx_messageInfo_TaskSdkRule.Size(m) + return m.Size() } func (m *TaskSdkRule) XXX_DiscardUnknown() { xxx_messageInfo_TaskSdkRule.DiscardUnknown(m) @@ -1515,13 +1607,10 @@ } type SdkRuleSet struct { - SdkId string `protobuf:"bytes,1,opt,name=sdkId,proto3" json:"sdkId,omitempty"` - IpcId string `protobuf:"bytes,2,opt,name=ipcId,proto3" json:"ipcId,omitempty"` - Rules []*SdkRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"` - Sort int32 `protobuf:"varint,4,opt,name=sort,proto3" json:"sort,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SdkId string `protobuf:"bytes,1,opt,name=sdkId,proto3" json:"sdkId,omitempty"` + IpcId string `protobuf:"bytes,2,opt,name=ipcId,proto3" json:"ipcId,omitempty"` + Rules []*SdkRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"` + Sort int32 `protobuf:"varint,4,opt,name=sort,proto3" json:"sort,omitempty"` } func (m *SdkRuleSet) Reset() { *m = SdkRuleSet{} } @@ -1530,18 +1619,26 @@ func (*SdkRuleSet) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{18} } - func (m *SdkRuleSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SdkRuleSet.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *SdkRuleSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SdkRuleSet.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_SdkRuleSet.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 *SdkRuleSet) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkRuleSet.Merge(m, src) } func (m *SdkRuleSet) XXX_Size() int { - return xxx_messageInfo_SdkRuleSet.Size(m) + return m.Size() } func (m *SdkRuleSet) XXX_DiscardUnknown() { xxx_messageInfo_SdkRuleSet.DiscardUnknown(m) @@ -1578,13 +1675,10 @@ } type SdkRule struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - SdkArgAlias string `protobuf:"bytes,2,opt,name=sdk_arg_alias,json=sdkArgAlias,proto3" json:"sdk_arg_alias,omitempty"` - Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` - SdkArgValue string `protobuf:"bytes,4,opt,name=sdk_arg_value,json=sdkArgValue,proto3" json:"sdk_arg_value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + SdkArgAlias string `protobuf:"bytes,2,opt,name=sdk_arg_alias,json=sdkArgAlias,proto3" json:"sdk_arg_alias,omitempty"` + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` + SdkArgValue string `protobuf:"bytes,4,opt,name=sdk_arg_value,json=sdkArgValue,proto3" json:"sdk_arg_value,omitempty"` } func (m *SdkRule) Reset() { *m = SdkRule{} } @@ -1593,18 +1687,26 @@ func (*SdkRule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{19} } - func (m *SdkRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SdkRule.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *SdkRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SdkRule.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_SdkRule.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 *SdkRule) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkRule.Merge(m, src) } func (m *SdkRule) XXX_Size() int { - return xxx_messageInfo_SdkRule.Size(m) + return m.Size() } func (m *SdkRule) XXX_DiscardUnknown() { xxx_messageInfo_SdkRule.DiscardUnknown(m) @@ -1642,18 +1744,15 @@ //SdkArg struct type SdkArg struct { - Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - Must bool `protobuf:"varint,4,opt,name=must,proto3" json:"must,omitempty"` - Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` - Range string `protobuf:"bytes,6,opt,name=range,proto3" json:"range,omitempty"` - DefaultValue string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` - DefaultOperator string `protobuf:"bytes,8,opt,name=default_operator,json=defaultOperator,proto3" json:"default_operator,omitempty"` - Sort int32 `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Must bool `protobuf:"varint,4,opt,name=must,proto3" json:"must,omitempty"` + Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` + Range string `protobuf:"bytes,6,opt,name=range,proto3" json:"range,omitempty"` + DefaultValue string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + DefaultOperator string `protobuf:"bytes,8,opt,name=default_operator,json=defaultOperator,proto3" json:"default_operator,omitempty"` + Sort int32 `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"` } func (m *SdkArg) Reset() { *m = SdkArg{} } @@ -1662,18 +1761,26 @@ func (*SdkArg) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{20} } - 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) @@ -1746,13 +1853,10 @@ //publish db change message type DbChangeMessage struct { - Table TableChanged `protobuf:"varint,1,opt,name=table,proto3,enum=protomsg.TableChanged" json:"table,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Action DbAction `protobuf:"varint,3,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"` - Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Table TableChanged `protobuf:"varint,1,opt,name=table,proto3,enum=protomsg.TableChanged" json:"table,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Action DbAction `protobuf:"varint,3,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"` + Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` } func (m *DbChangeMessage) Reset() { *m = DbChangeMessage{} } @@ -1761,18 +1865,26 @@ func (*DbChangeMessage) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{21} } - 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) @@ -1809,17 +1921,14 @@ } type CameraPolygon struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Polygon string `protobuf:"bytes,4,opt,name=polygon,proto3" json:"polygon,omitempty"` - TriggerLine string `protobuf:"bytes,5,opt,name=trigger_line,json=triggerLine,proto3" json:"trigger_line,omitempty"` - DirectionLine string `protobuf:"bytes,6,opt,name=direction_line,json=directionLine,proto3" json:"direction_line,omitempty"` - Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` - DefenceState int32 `protobuf:"varint,8,opt,name=defence_state,json=defenceState,proto3" json:"defence_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Polygon string `protobuf:"bytes,4,opt,name=polygon,proto3" json:"polygon,omitempty"` + TriggerLine string `protobuf:"bytes,5,opt,name=trigger_line,json=triggerLine,proto3" json:"trigger_line,omitempty"` + DirectionLine string `protobuf:"bytes,6,opt,name=direction_line,json=directionLine,proto3" json:"direction_line,omitempty"` + Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` + DefenceState int32 `protobuf:"varint,8,opt,name=defence_state,json=defenceState,proto3" json:"defence_state,omitempty"` } func (m *CameraPolygon) Reset() { *m = CameraPolygon{} } @@ -1828,18 +1937,26 @@ func (*CameraPolygon) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{22} } - 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) @@ -1904,16 +2021,13 @@ } type VideotapeInfo struct { - EsDataId string `protobuf:"bytes,1,opt,name=esDataId,proto3" json:"esDataId,omitempty"` - CameraId string `protobuf:"bytes,2,opt,name=cameraId,proto3" json:"cameraId,omitempty"` - TaskId string `protobuf:"bytes,3,opt,name=taskId,proto3" json:"taskId,omitempty"` - ImgId int64 `protobuf:"varint,4,opt,name=imgId,proto3" json:"imgId,omitempty"` - VideoUrl string `protobuf:"bytes,5,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"` - SdkIds []string `protobuf:"bytes,6,rep,name=sdkIds,proto3" json:"sdkIds,omitempty"` - Type int32 `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + EsDataId string `protobuf:"bytes,1,opt,name=esDataId,proto3" json:"esDataId,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=cameraId,proto3" json:"cameraId,omitempty"` + TaskId string `protobuf:"bytes,3,opt,name=taskId,proto3" json:"taskId,omitempty"` + ImgId int64 `protobuf:"varint,4,opt,name=imgId,proto3" json:"imgId,omitempty"` + VideoUrl string `protobuf:"bytes,5,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"` + SdkIds []string `protobuf:"bytes,6,rep,name=sdkIds,proto3" json:"sdkIds,omitempty"` + Type int32 `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"` } func (m *VideotapeInfo) Reset() { *m = VideotapeInfo{} } @@ -1922,18 +2036,26 @@ func (*VideotapeInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{23} } - func (m *VideotapeInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VideotapeInfo.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *VideotapeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VideotapeInfo.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_VideotapeInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *VideotapeInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_VideotapeInfo.Merge(m, src) } func (m *VideotapeInfo) XXX_Size() int { - return xxx_messageInfo_VideotapeInfo.Size(m) + return m.Size() } func (m *VideotapeInfo) XXX_DiscardUnknown() { xxx_messageInfo_VideotapeInfo.DiscardUnknown(m) @@ -1991,21 +2113,18 @@ } type CompareArgs struct { - TableIds []string `protobuf:"bytes,1,rep,name=tableIds,proto3" json:"tableIds,omitempty"` - CompareThreshold float32 `protobuf:"fixed32,2,opt,name=compareThreshold,proto3" json:"compareThreshold,omitempty"` - FaceFeature []byte `protobuf:"bytes,3,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` - Tasks []string `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` - TreeNodes []string `protobuf:"bytes,5,rep,name=treeNodes,proto3" json:"treeNodes,omitempty"` - Tabs []string `protobuf:"bytes,6,rep,name=tabs,proto3" json:"tabs,omitempty"` - AlarmLevel []int32 `protobuf:"varint,7,rep,packed,name=alarmLevel,proto3" json:"alarmLevel,omitempty"` - SearchTime []string `protobuf:"bytes,8,rep,name=searchTime,proto3" json:"searchTime,omitempty"` - InputValue string `protobuf:"bytes,9,opt,name=inputValue,proto3" json:"inputValue,omitempty"` - Collection string `protobuf:"bytes,10,opt,name=collection,proto3" json:"collection,omitempty"` - Source bool `protobuf:"varint,11,opt,name=source,proto3" json:"source,omitempty"` - AnalyServerId string `protobuf:"bytes,12,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TableIds []string `protobuf:"bytes,1,rep,name=tableIds,proto3" json:"tableIds,omitempty"` + CompareThreshold float32 `protobuf:"fixed32,2,opt,name=compareThreshold,proto3" json:"compareThreshold,omitempty"` + FaceFeature []byte `protobuf:"bytes,3,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` + Tasks []string `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` + TreeNodes []string `protobuf:"bytes,5,rep,name=treeNodes,proto3" json:"treeNodes,omitempty"` + Tabs []string `protobuf:"bytes,6,rep,name=tabs,proto3" json:"tabs,omitempty"` + AlarmLevel []int32 `protobuf:"varint,7,rep,packed,name=alarmLevel,proto3" json:"alarmLevel,omitempty"` + SearchTime []string `protobuf:"bytes,8,rep,name=searchTime,proto3" json:"searchTime,omitempty"` + InputValue string `protobuf:"bytes,9,opt,name=inputValue,proto3" json:"inputValue,omitempty"` + Collection string `protobuf:"bytes,10,opt,name=collection,proto3" json:"collection,omitempty"` + Source bool `protobuf:"varint,11,opt,name=source,proto3" json:"source,omitempty"` + AnalyServerId string `protobuf:"bytes,12,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` } func (m *CompareArgs) Reset() { *m = CompareArgs{} } @@ -2014,18 +2133,26 @@ func (*CompareArgs) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{24} } - func (m *CompareArgs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CompareArgs.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *CompareArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CompareArgs.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_CompareArgs.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *CompareArgs) XXX_Merge(src proto.Message) { xxx_messageInfo_CompareArgs.Merge(m, src) } func (m *CompareArgs) XXX_Size() int { - return xxx_messageInfo_CompareArgs.Size(m) + return m.Size() } func (m *CompareArgs) XXX_DiscardUnknown() { xxx_messageInfo_CompareArgs.DiscardUnknown(m) @@ -2118,11 +2245,8 @@ } type CompareEvent struct { - EventType CompareEventType `protobuf:"varint,1,opt,name=eventType,proto3,enum=protomsg.CompareEventType" json:"eventType,omitempty"` - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + EventType CompareEventType `protobuf:"varint,1,opt,name=eventType,proto3,enum=protomsg.CompareEventType" json:"eventType,omitempty"` + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` } func (m *CompareEvent) Reset() { *m = CompareEvent{} } @@ -2131,18 +2255,26 @@ func (*CompareEvent) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{25} } - func (m *CompareEvent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CompareEvent.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *CompareEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CompareEvent.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_CompareEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *CompareEvent) XXX_Merge(src proto.Message) { xxx_messageInfo_CompareEvent.Merge(m, src) } func (m *CompareEvent) XXX_Size() int { - return xxx_messageInfo_CompareEvent.Size(m) + return m.Size() } func (m *CompareEvent) XXX_DiscardUnknown() { xxx_messageInfo_CompareEvent.DiscardUnknown(m) @@ -2165,12 +2297,9 @@ } type SdkCompareEach struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Tableid string `protobuf:"bytes,2,opt,name=tableid,proto3" json:"tableid,omitempty"` - CompareScore float32 `protobuf:"fixed32,3,opt,name=compareScore,proto3" json:"compareScore,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Tableid string `protobuf:"bytes,2,opt,name=tableid,proto3" json:"tableid,omitempty"` + CompareScore float32 `protobuf:"fixed32,3,opt,name=compareScore,proto3" json:"compareScore,omitempty"` } func (m *SdkCompareEach) Reset() { *m = SdkCompareEach{} } @@ -2179,18 +2308,26 @@ func (*SdkCompareEach) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{26} } - func (m *SdkCompareEach) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SdkCompareEach.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *SdkCompareEach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SdkCompareEach.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_SdkCompareEach.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *SdkCompareEach) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkCompareEach.Merge(m, src) } func (m *SdkCompareEach) XXX_Size() int { - return xxx_messageInfo_SdkCompareEach.Size(m) + return m.Size() } func (m *SdkCompareEach) XXX_DiscardUnknown() { xxx_messageInfo_SdkCompareEach.DiscardUnknown(m) @@ -2220,10 +2357,7 @@ } type SdkCompareResult struct { - CompareResult []*SdkCompareEach `protobuf:"bytes,1,rep,name=compareResult,proto3" json:"compareResult,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CompareResult []*SdkCompareEach `protobuf:"bytes,1,rep,name=compareResult,proto3" json:"compareResult,omitempty"` } func (m *SdkCompareResult) Reset() { *m = SdkCompareResult{} } @@ -2232,18 +2366,26 @@ func (*SdkCompareResult) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{27} } - func (m *SdkCompareResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SdkCompareResult.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *SdkCompareResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SdkCompareResult.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_SdkCompareResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *SdkCompareResult) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkCompareResult.Merge(m, src) } func (m *SdkCompareResult) XXX_Size() int { - return xxx_messageInfo_SdkCompareResult.Size(m) + return m.Size() } func (m *SdkCompareResult) XXX_DiscardUnknown() { xxx_messageInfo_SdkCompareResult.DiscardUnknown(m) @@ -2259,21 +2401,18 @@ } type EventPush struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - TimeStart string `protobuf:"bytes,3,opt,name=time_start,json=timeStart,proto3" json:"time_start,omitempty"` - TimeEnd string `protobuf:"bytes,4,opt,name=time_end,json=timeEnd,proto3" json:"time_end,omitempty"` - IsSatisfyAll bool `protobuf:"varint,5,opt,name=is_satisfy_all,json=isSatisfyAll,proto3" json:"is_satisfy_all,omitempty"` - RuleText string `protobuf:"bytes,6,opt,name=rule_text,json=ruleText,proto3" json:"rule_text,omitempty"` - Enable bool `protobuf:"varint,7,opt,name=enable,proto3" json:"enable,omitempty"` - LinkType string `protobuf:"bytes,8,opt,name=link_type,json=linkType,proto3" json:"link_type,omitempty"` - LinkDevice string `protobuf:"bytes,9,opt,name=link_device,json=linkDevice,proto3" json:"link_device,omitempty"` - IpPorts []*PushIpPort `protobuf:"bytes,10,rep,name=ip_ports,json=ipPorts,proto3" json:"ip_ports,omitempty"` - Urls []*PushUrl `protobuf:"bytes,11,rep,name=urls,proto3" json:"urls,omitempty"` - Rules []*EventPushRule `protobuf:"bytes,12,rep,name=rules,proto3" json:"rules,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TimeStart string `protobuf:"bytes,3,opt,name=time_start,json=timeStart,proto3" json:"time_start,omitempty"` + TimeEnd string `protobuf:"bytes,4,opt,name=time_end,json=timeEnd,proto3" json:"time_end,omitempty"` + IsSatisfyAll bool `protobuf:"varint,5,opt,name=is_satisfy_all,json=isSatisfyAll,proto3" json:"is_satisfy_all,omitempty"` + RuleText string `protobuf:"bytes,6,opt,name=rule_text,json=ruleText,proto3" json:"rule_text,omitempty"` + Enable bool `protobuf:"varint,7,opt,name=enable,proto3" json:"enable,omitempty"` + LinkType string `protobuf:"bytes,8,opt,name=link_type,json=linkType,proto3" json:"link_type,omitempty"` + LinkDevice string `protobuf:"bytes,9,opt,name=link_device,json=linkDevice,proto3" json:"link_device,omitempty"` + IpPorts []*PushIpPort `protobuf:"bytes,10,rep,name=ip_ports,json=ipPorts,proto3" json:"ip_ports,omitempty"` + Urls []*PushUrl `protobuf:"bytes,11,rep,name=urls,proto3" json:"urls,omitempty"` + Rules []*EventPushRule `protobuf:"bytes,12,rep,name=rules,proto3" json:"rules,omitempty"` } func (m *EventPush) Reset() { *m = EventPush{} } @@ -2282,18 +2421,26 @@ func (*EventPush) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{28} } - func (m *EventPush) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EventPush.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *EventPush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EventPush.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_EventPush.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *EventPush) XXX_Merge(src proto.Message) { xxx_messageInfo_EventPush.Merge(m, src) } func (m *EventPush) XXX_Size() int { - return xxx_messageInfo_EventPush.Size(m) + return m.Size() } func (m *EventPush) XXX_DiscardUnknown() { xxx_messageInfo_EventPush.DiscardUnknown(m) @@ -2386,16 +2533,13 @@ } type EventPushRule struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - TopicType string `protobuf:"bytes,2,opt,name=topic_type,json=topicType,proto3" json:"topic_type,omitempty"` - TopicArg string `protobuf:"bytes,3,opt,name=topic_arg,json=topicArg,proto3" json:"topic_arg,omitempty"` - Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"` - OperatorType string `protobuf:"bytes,5,opt,name=operator_type,json=operatorType,proto3" json:"operator_type,omitempty"` - RuleValue string `protobuf:"bytes,6,opt,name=rule_value,json=ruleValue,proto3" json:"rule_value,omitempty"` - EventPushId string `protobuf:"bytes,7,opt,name=event_push_id,json=eventPushId,proto3" json:"event_push_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + TopicType string `protobuf:"bytes,2,opt,name=topic_type,json=topicType,proto3" json:"topic_type,omitempty"` + TopicArg string `protobuf:"bytes,3,opt,name=topic_arg,json=topicArg,proto3" json:"topic_arg,omitempty"` + Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"` + OperatorType string `protobuf:"bytes,5,opt,name=operator_type,json=operatorType,proto3" json:"operator_type,omitempty"` + RuleValue string `protobuf:"bytes,6,opt,name=rule_value,json=ruleValue,proto3" json:"rule_value,omitempty"` + EventPushId string `protobuf:"bytes,7,opt,name=event_push_id,json=eventPushId,proto3" json:"event_push_id,omitempty"` } func (m *EventPushRule) Reset() { *m = EventPushRule{} } @@ -2404,18 +2548,26 @@ func (*EventPushRule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{29} } - func (m *EventPushRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EventPushRule.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *EventPushRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EventPushRule.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_EventPushRule.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *EventPushRule) XXX_Merge(src proto.Message) { xxx_messageInfo_EventPushRule.Merge(m, src) } func (m *EventPushRule) XXX_Size() int { - return xxx_messageInfo_EventPushRule.Size(m) + return m.Size() } func (m *EventPushRule) XXX_DiscardUnknown() { xxx_messageInfo_EventPushRule.DiscardUnknown(m) @@ -2473,12 +2625,9 @@ } type PushIpPort struct { - ServerIp string `protobuf:"bytes,1,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"` - Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` - Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServerIp string `protobuf:"bytes,1,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"` + Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` + Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"` } func (m *PushIpPort) Reset() { *m = PushIpPort{} } @@ -2487,18 +2636,26 @@ func (*PushIpPort) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{30} } - func (m *PushIpPort) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PushIpPort.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *PushIpPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PushIpPort.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_PushIpPort.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *PushIpPort) XXX_Merge(src proto.Message) { xxx_messageInfo_PushIpPort.Merge(m, src) } func (m *PushIpPort) XXX_Size() int { - return xxx_messageInfo_PushIpPort.Size(m) + return m.Size() } func (m *PushIpPort) XXX_DiscardUnknown() { xxx_messageInfo_PushIpPort.DiscardUnknown(m) @@ -2528,11 +2685,8 @@ } type PushUrl struct { - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"` } func (m *PushUrl) Reset() { *m = PushUrl{} } @@ -2541,18 +2695,26 @@ func (*PushUrl) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{31} } - func (m *PushUrl) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PushUrl.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *PushUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PushUrl.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_PushUrl.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *PushUrl) XXX_Merge(src proto.Message) { xxx_messageInfo_PushUrl.Merge(m, src) } func (m *PushUrl) XXX_Size() int { - return xxx_messageInfo_PushUrl.Size(m) + return m.Size() } func (m *PushUrl) XXX_DiscardUnknown() { xxx_messageInfo_PushUrl.DiscardUnknown(m) @@ -2575,15 +2737,12 @@ } type PushAttach struct { - PushId string `protobuf:"bytes,1,opt,name=push_id,json=pushId,proto3" json:"push_id,omitempty"` - Cam *Camera `protobuf:"bytes,2,opt,name=cam,proto3" json:"cam,omitempty"` - ServerId string `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` - ServerName string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` - LocalIp string `protobuf:"bytes,5,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"` - VideoUrl string `protobuf:"bytes,6,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PushId string `protobuf:"bytes,1,opt,name=push_id,json=pushId,proto3" json:"push_id,omitempty"` + Cam *Camera `protobuf:"bytes,2,opt,name=cam,proto3" json:"cam,omitempty"` + ServerId string `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` + ServerName string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` + LocalIp string `protobuf:"bytes,5,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"` + VideoUrl string `protobuf:"bytes,6,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"` } func (m *PushAttach) Reset() { *m = PushAttach{} } @@ -2592,18 +2751,26 @@ func (*PushAttach) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{32} } - func (m *PushAttach) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PushAttach.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *PushAttach) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PushAttach.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_PushAttach.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *PushAttach) XXX_Merge(src proto.Message) { xxx_messageInfo_PushAttach.Merge(m, src) } func (m *PushAttach) XXX_Size() int { - return xxx_messageInfo_PushAttach.Size(m) + return m.Size() } func (m *PushAttach) XXX_DiscardUnknown() { xxx_messageInfo_PushAttach.DiscardUnknown(m) @@ -2654,15 +2821,12 @@ } type EsPersonCacheChange struct { - Type EsCacheChanged `protobuf:"varint,1,opt,name=type,proto3,enum=protomsg.EsCacheChanged" json:"type,omitempty"` - TableId []string `protobuf:"bytes,2,rep,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` - PersonId string `protobuf:"bytes,3,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"` - Feature string `protobuf:"bytes,4,opt,name=feature,proto3" json:"feature,omitempty"` - Action DbAction `protobuf:"varint,5,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"` - Enable int32 `protobuf:"varint,6,opt,name=enable,proto3" json:"enable,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Type EsCacheChanged `protobuf:"varint,1,opt,name=type,proto3,enum=protomsg.EsCacheChanged" json:"type,omitempty"` + TableId []string `protobuf:"bytes,2,rep,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` + PersonId string `protobuf:"bytes,3,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"` + Feature string `protobuf:"bytes,4,opt,name=feature,proto3" json:"feature,omitempty"` + Action DbAction `protobuf:"varint,5,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"` + Enable int32 `protobuf:"varint,6,opt,name=enable,proto3" json:"enable,omitempty"` } func (m *EsPersonCacheChange) Reset() { *m = EsPersonCacheChange{} } @@ -2671,18 +2835,26 @@ func (*EsPersonCacheChange) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{33} } - func (m *EsPersonCacheChange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EsPersonCacheChange.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *EsPersonCacheChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EsPersonCacheChange.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_EsPersonCacheChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } func (m *EsPersonCacheChange) XXX_Merge(src proto.Message) { xxx_messageInfo_EsPersonCacheChange.Merge(m, src) } func (m *EsPersonCacheChange) XXX_Size() int { - return xxx_messageInfo_EsPersonCacheChange.Size(m) + return m.Size() } func (m *EsPersonCacheChange) XXX_DiscardUnknown() { xxx_messageInfo_EsPersonCacheChange.DiscardUnknown(m) @@ -2776,162 +2948,10694 @@ func init() { proto.RegisterFile("protomsg.proto", fileDescriptor_32de24555f916688) } var fileDescriptor_32de24555f916688 = []byte{ - // 2512 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x18, 0x4b, 0x8f, 0x1c, 0x47, - 0xd9, 0xf3, 0x9e, 0xfe, 0x66, 0x66, 0xdd, 0x2e, 0x9b, 0xa4, 0xed, 0x90, 0x64, 0xd3, 0x38, 0x8a, - 0xb1, 0x92, 0x80, 0x9c, 0x1c, 0x10, 0x07, 0xa4, 0xc1, 0x0f, 0x34, 0x52, 0x30, 0x4b, 0xef, 0xda, - 0xdc, 0x68, 0xd5, 0x74, 0xd7, 0xce, 0xb6, 0xb6, 0xb6, 0xbb, 0x55, 0xd5, 0xbd, 0xc9, 0x1e, 0xf8, - 0x01, 0x9c, 0xf8, 0x45, 0x08, 0xc4, 0x99, 0x3f, 0xc0, 0x29, 0x37, 0x84, 0x84, 0xf8, 0x07, 0x20, - 0xa1, 0xef, 0xab, 0xaa, 0x7e, 0xcc, 0xae, 0x13, 0x9f, 0xa6, 0x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31, 0xc2, 0xec, 0x1d, 0x98, 0x22, 0xa6, - 0x89, 0x32, 0x0b, 0xa1, 0x79, 0xf0, 0xd4, 0x89, 0xb6, 0x06, 0x66, 0xef, 0x81, 0x97, 0x28, 0xc1, - 0x2b, 0x11, 0xf3, 0xca, 0x46, 0xdd, 0xdc, 0x20, 0xd6, 0x55, 0x87, 0xb8, 0xbd, 0xb2, 0x51, 0x67, - 0x89, 0xbf, 0xbc, 0x42, 0x62, 0x5d, 0xa6, 0xf6, 0xcb, 0x89, 0xf5, 0x21, 0x21, 0xd6, 0x15, 0x8a, - 0x62, 0x4d, 0x3a, 0x25, 0x93, 0x5a, 0x08, 0xed, 0x99, 0xe9, 0x98, 0x4b, 0xae, 0x2e, 0x28, 0xfc, - 0xe6, 0xd1, 0x2c, 0xd3, 0x6b, 0x04, 0x91, 0x94, 0x0a, 0x19, 0x9f, 0x4a, 0xbe, 0xa3, 0xe0, 0x9b, - 0x47, 0xb3, 0x54, 0xc8, 0x17, 0x92, 0xef, 0xc2, 0x13, 0x58, 0xa0, 0x82, 0xc7, 0xa9, 0x31, 0x60, - 0x08, 0x63, 0x94, 0xdf, 0x9a, 0x6f, 0xdf, 0x2a, 0x44, 0x63, 0x1f, 0xc1, 0x58, 0xa7, 0x8d, 0xe5, - 0x56, 0x2d, 0xcf, 0x71, 0x7a, 0x1e, 0x11, 0x29, 0xfc, 0x39, 0x4c, 0x11, 0xa8, 0x73, 0xf6, 0x03, - 0x98, 0x66, 0x65, 0x12, 0x37, 0x86, 0x9b, 0x64, 0x65, 0xb2, 0x49, 0x51, 0x22, 0x9d, 0x9e, 0x1b, - 0xe7, 0x1b, 0xbb, 0xcd, 0x74, 0x7a, 0x8e, 0xce, 0x0f, 0x5f, 0x03, 0x58, 0x89, 0xf0, 0xfb, 0xb7, - 0x11, 0xe8, 0x61, 0x4f, 0x20, 0xbf, 0x2f, 0x50, 0x9d, 0x5b, 0x99, 0xfe, 0x39, 0x04, 0x30, 0x41, - 0x40, 0x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0x9d, 0xd9, 0x07, 0xd0, 0x19, 0x3d, 0x82, 0xd9, - 0xe1, 0x68, 0x6f, 0x18, 0xf9, 0x00, 0x40, 0x0b, 0xae, 0x92, 0xb3, 0x13, 0xd3, 0x06, 0xf0, 0xcb, - 0x0e, 0x06, 0xe9, 0x59, 0x5e, 0xd6, 0x26, 0x21, 0x5d, 0x17, 0x68, 0x31, 0x48, 0x4f, 0x0a, 0x29, - 0x4d, 0xb0, 0xd8, 0x36, 0xd0, 0xc1, 0x90, 0xb5, 0x8b, 0x5a, 0x25, 0x4d, 0x23, 0x30, 0x10, 0x7b, - 0x08, 0x2b, 0x9e, 0x73, 0x79, 0xe5, 0xb6, 0x64, 0xdb, 0x50, 0xfb, 0xc8, 0x70, 0x0b, 0x4b, 0x6b, - 0xfe, 0xe7, 0x97, 0x22, 0xaf, 0xd8, 0xcf, 0xc0, 0x13, 0x78, 0xc0, 0x4e, 0x69, 0x33, 0xf8, 0x41, - 0x67, 0x71, 0xee, 0xb0, 0x22, 0x47, 0xd4, 0x32, 0x53, 0x9a, 0xf0, 0x2b, 0x59, 0x70, 0xe3, 0x94, - 0x65, 0xe4, 0xc0, 0xf0, 0xf7, 0x70, 0x70, 0x9c, 0x9e, 0xbb, 0x6f, 0x79, 0x72, 0x76, 0x2d, 0x27, - 0x03, 0x1c, 0x40, 0xb7, 0x52, 0x34, 0x19, 0xe9, 0x40, 0x16, 0xc2, 0xd2, 0xfa, 0xf6, 0x38, 0x29, - 0xac, 0x23, 0x87, 0x51, 0x0f, 0x17, 0x46, 0xe0, 0xb7, 0xf7, 0x47, 0x42, 0xd7, 0xb2, 0x62, 0xbf, - 0x80, 0x55, 0xd2, 0x45, 0x50, 0x30, 0x2d, 0x9e, 0x04, 0xbd, 0x46, 0xd2, 0x11, 0x29, 0xea, 0xb3, - 0x87, 0x7f, 0x1c, 0x81, 0x47, 0x6a, 0x1e, 0xd5, 0xfa, 0xec, 0xad, 0x66, 0xfc, 0xf7, 0xed, 0xee, - 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, 0xd8, 0x02, 0x66, 0xf6, 0x2b, 0x7f, 0xf8, 0xf8, 0x4b, 0x38, 0xe8, 0x7b, 0xd9, 0xa8, - 0xfd, 0x6c, 0x4b, 0xc6, 0xf4, 0x6f, 0x19, 0xc5, 0x2c, 0x68, 0x42, 0xc7, 0x1f, 0x6c, 0xa7, 0xe4, - 0xa0, 0x2f, 0xfe, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x35, 0x4c, 0x59, 0xce, 0x18, 0x00, 0x00, + // 2551 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x38, 0xcb, 0x6e, 0x1c, 0xc7, + 0xb5, 0xec, 0x79, 0xcf, 0x99, 0x19, 0xaa, 0x55, 0xd2, 0xb5, 0x5b, 0xf2, 0x35, 0x4d, 0xf7, 0x95, + 0x61, 0x5d, 0xc1, 0xf6, 0xbd, 0x90, 0xbd, 0x08, 0xb2, 0x08, 0x30, 0xd6, 0x23, 0x18, 0xc0, 0x71, + 0x98, 0x26, 0xa5, 0xec, 0xd2, 0xa8, 0x99, 0x2e, 0x0e, 0x1b, 0x2c, 0x76, 0x37, 0xaa, 0xba, 0x69, + 0x73, 0x91, 0x0f, 0xc8, 0x2a, 0xf9, 0xa1, 0x20, 0x41, 0x56, 0x59, 0x64, 0xe1, 0x65, 0xb2, 0x72, + 0x60, 0x03, 0x41, 0x80, 0x20, 0x7f, 0x90, 0x00, 0xc1, 0x39, 0x55, 0xd5, 0x8f, 0x21, 0x65, 0x6b, + 0x35, 0x75, 0x1e, 0x5d, 0x75, 0xde, 0x8f, 0x81, 0xfd, 0x42, 0xe5, 0x65, 0x7e, 0xa1, 0xb7, 0x1f, + 0xd1, 0x81, 0x4d, 0x1c, 0x7c, 0x1f, 0xd6, 0x5c, 0x0b, 0x83, 0x0d, 0x9f, 0xc3, 0x60, 0xa9, 0x04, + 0x67, 0xfb, 0xd0, 0x4b,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, 0x46, 0x29, 0xd6, 0x8a, + 0x67, 0x49, 0x70, 0xcb, 0x18, 0x88, 0x00, 0xfc, 0x42, 0x09, 0x2d, 0xd4, 0xa5, 0x48, 0x02, 0xdf, + 0x7c, 0xe1, 0x60, 0xf6, 0x36, 0x40, 0xaa, 0x63, 0x55, 0x65, 0x59, 0x9a, 0x6d, 0x83, 0xdb, 0x87, + 0xde, 0xc3, 0x49, 0x34, 0x4d, 0x75, 0x64, 0x10, 0x48, 0x56, 0x55, 0x16, 0x8b, 0x8c, 0xaf, 0xa5, + 0x08, 0x98, 0x21, 0xab, 0x2a, 0x7b, 0x46, 0x08, 0x76, 0x0f, 0x26, 0x48, 0x26, 0xdb, 0xde, 0x21, + 0xf9, 0xc7, 0xaa, 0xca, 0x4e, 0xd0, 0xbc, 0x21, 0x2c, 0x90, 0x44, 0xcf, 0xa8, 0x38, 0x4d, 0x82, + 0xbb, 0xc6, 0x2d, 0xaa, 0xca, 0x8e, 0x09, 0xb7, 0x4a, 0xc2, 0x0d, 0xdc, 0x36, 0xde, 0x5f, 0x66, + 0xc9, 0x09, 0xd7, 0xe7, 0xab, 0xec, 0x34, 0x67, 0x0f, 0x61, 0xb4, 0x21, 0x24, 0x05, 0xc3, 0xec, + 0xb1, 0xff, 0x51, 0x1d, 0x92, 0x86, 0x39, 0xb2, 0x74, 0xf6, 0x00, 0x86, 0x25, 0xd7, 0xe7, 0x3a, + 0xe8, 0x1d, 0xf6, 0x1f, 0xce, 0x1e, 0xef, 0x37, 0x8c, 0x78, 0x59, 0x64, 0x88, 0xe1, 0xd7, 0x1e, + 0x0c, 0x10, 0x66, 0x6f, 0xc0, 0x08, 0x31, 0x75, 0x94, 0x59, 0x08, 0xcd, 0x83, 0xa7, 0x56, 0xb4, + 0xd5, 0x30, 0x7b, 0x0b, 0xa6, 0x1b, 0x25, 0x78, 0x29, 0x62, 0x5e, 0xda, 0xa8, 0x9b, 0x18, 0xc4, + 0xb2, 0x6c, 0x11, 0xd7, 0x57, 0x36, 0xea, 0x2c, 0xf1, 0xd3, 0x2b, 0x24, 0x56, 0x45, 0x62, 0xbf, + 0x1c, 0x5a, 0x1f, 0x12, 0x62, 0x59, 0xa2, 0x28, 0xd6, 0xa4, 0x23, 0x32, 0xa9, 0x85, 0xd0, 0x9e, + 0xa9, 0x8e, 0xb9, 0xe4, 0xea, 0x82, 0xc2, 0x6f, 0x12, 0x8d, 0x53, 0xbd, 0x44, 0x10, 0x49, 0x89, + 0x90, 0xf1, 0xa9, 0xe4, 0x5b, 0x0a, 0xbe, 0x49, 0x34, 0x4e, 0x84, 0x7c, 0x2e, 0xf9, 0x36, 0x3c, + 0x81, 0x19, 0x2a, 0x78, 0x9c, 0x18, 0x03, 0x86, 0x30, 0x40, 0xf9, 0xad, 0xf9, 0x76, 0xad, 0x42, + 0x34, 0xf6, 0x2e, 0x0c, 0x74, 0x52, 0x5b, 0x6e, 0xd1, 0xf0, 0x1c, 0x27, 0xe7, 0x11, 0x91, 0xc2, + 0x1f, 0xc2, 0x08, 0x81, 0x2a, 0x63, 0xff, 0x05, 0xa3, 0xb4, 0xd8, 0xc4, 0xb5, 0xe1, 0x86, 0x69, + 0xb1, 0x59, 0x25, 0x28, 0x91, 0x4e, 0xce, 0x8d, 0xf3, 0x8d, 0xdd, 0xc6, 0x3a, 0x39, 0x47, 0xe7, + 0x87, 0x2f, 0x01, 0xac, 0x44, 0xf8, 0xfd, 0xeb, 0x08, 0xf4, 0xa0, 0x23, 0x90, 0xdf, 0x15, 0xa8, + 0xca, 0xac, 0x4c, 0x7f, 0xeb, 0x01, 0x98, 0x20, 0x20, 0x8f, 0xee, 0xd6, 0x0c, 0x74, 0x08, 0x51, + 0x63, 0x5b, 0x7f, 0xd0, 0x21, 0x84, 0x58, 0x25, 0xec, 0x4d, 0x18, 0xe3, 0x4b, 0x48, 0xea, 0x37, + 0xfe, 0x5f, 0x25, 0xec, 0x43, 0x98, 0x96, 0xe9, 0x85, 0x88, 0x55, 0x25, 0x45, 0x30,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xc7, 0x6f, 0x0e, 0xbc, 0xaf, 0xbe, + 0x39, 0xf0, 0xfe, 0xfa, 0xcd, 0x81, 0xf7, 0x9b, 0x6f, 0x0f, 0xf6, 0xbe, 0xfa, 0xf6, 0x60, 0xef, + 0xcf, 0xdf, 0x1e, 0xec, 0xad, 0x47, 0xe4, 0xba, 0x8f, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xb7, + 0x29, 0x90, 0xe3, 0xe8, 0x18, 0x00, 0x00, } + +func (m *Area) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Area) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Id != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Id)) + } + if m.Parentid != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Parentid)) + } + if len(m.Name) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + return i, nil +} + +func (m *Camera) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Camera) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.Name) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + if len(m.Alias) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Alias))) + i += copy(dAtA[i:], m.Alias) + } + if len(m.SnapshotUrl) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SnapshotUrl))) + i += copy(dAtA[i:], m.SnapshotUrl) + } + if m.Type != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Type)) + } + if len(m.Addr) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Addr))) + i += copy(dAtA[i:], m.Addr) + } + if m.Longitude != 0 { + dAtA[i] = 0x3d + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Longitude)))) + i += 4 + } + if m.Latitude != 0 { + dAtA[i] = 0x45 + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Latitude)))) + i += 4 + } + if m.Floor != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Floor)) + } + if len(m.Rtsp) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Rtsp))) + i += copy(dAtA[i:], m.Rtsp) + } + if len(m.Ip) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Ip))) + i += copy(dAtA[i:], m.Ip) + } + if m.Port != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Port)) + } + if len(m.Username) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Username))) + i += copy(dAtA[i:], m.Username) + } + if len(m.Password) > 0 { + dAtA[i] = 0x72 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Password))) + i += copy(dAtA[i:], m.Password) + } + if len(m.Brand) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Brand))) + i += copy(dAtA[i:], m.Brand) + } + if len(m.Reserved) > 0 { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Reserved))) + i += copy(dAtA[i:], m.Reserved) + } + if m.IsRunning { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + if m.IsRunning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.RunEnable { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + if m.RunEnable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.RunType != 0 { + dAtA[i] = 0x98 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.RunType)) + } + if len(m.RunServerId) > 0 { + dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RunServerId))) + i += copy(dAtA[i:], m.RunServerId) + } + 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())) + n1, err1 := m.Camera.MarshalTo(dAtA[i:]) + if err1 != nil { + return 0, err1 + } + i += n1 + } + 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 + } + } + 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++ + } + 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())) + n2, err2 := m.Task.MarshalTo(dAtA[i:]) + if err2 != nil { + return 0, err2 + } + i += n2 + } + 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 + } + } + return i, nil +} + +func (m *SdkRun) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SdkRun) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.IpcId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IpcId))) + i += copy(dAtA[i:], m.IpcId) + } + if len(m.SdkType) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkType))) + i += copy(dAtA[i:], m.SdkType) + } + return i, nil +} + +func (m *TaskSdkRun) 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 *TaskSdkRun) 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 + } + } + 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.CameraId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) + i += copy(dAtA[i:], m.CameraId) + } + if len(m.TaskId) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TaskId))) + i += copy(dAtA[i:], m.TaskId) + } + if 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.LinkTaskId) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LinkTaskId))) + i += copy(dAtA[i:], m.LinkTaskId) + } + return i, nil +} + +func (m *CameraTimerule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CameraTimerule) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.Name) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + if len(m.TimeRule) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TimeRule))) + i += copy(dAtA[i:], m.TimeRule) + } + return i, nil +} + +func (m *DayCtl) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DayCtl) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Day != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Day)) + } + if len(m.TimeRange) > 0 { + for _, msg := range m.TimeRange { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *TimeRange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TimeRange) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Start) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Start))) + i += copy(dAtA[i:], m.Start) + } + if len(m.End) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.End))) + i += copy(dAtA[i:], m.End) + } + return i, nil +} + +func (m *Polygon) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Polygon) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.Name) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + if len(m.Points) > 0 { + for _, msg := range m.Points { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *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 + } + } + 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.Enable { + dAtA[i] = 0x18 + i++ + if m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + 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.GroupText) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.GroupText))) + i += copy(dAtA[i:], m.GroupText) + } + if m.AlarmLevel != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.AlarmLevel)) + } + if len(m.Rules) > 0 { + for _, msg := range m.Rules { + 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.SetType) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SetType))) + i += copy(dAtA[i:], m.SetType) + } + if m.DefenceState { + dAtA[i] = 0x30 + i++ + if m.DefenceState { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + 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) + } + return i, nil +} + +func (m *Sdk) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Sdk) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.IpcId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IpcId))) + i += copy(dAtA[i:], m.IpcId) + } + if len(m.SdkType) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkType))) + i += copy(dAtA[i:], m.SdkType) + } + if len(m.SdkName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkName))) + i += copy(dAtA[i:], m.SdkName) + } + if len(m.Args) > 0 { + for _, msg := range m.Args { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Icon) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Icon))) + i += copy(dAtA[i:], m.Icon) + } + if len(m.Url) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Url))) + i += copy(dAtA[i:], m.Url) + } + if len(m.CreateTime) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateTime))) + i += copy(dAtA[i:], m.CreateTime) + } + if len(m.UpdateTime) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.UpdateTime))) + i += copy(dAtA[i:], m.UpdateTime) + } + if len(m.CreateBy) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateBy))) + i += copy(dAtA[i:], m.CreateBy) + } + if m.Enable { + dAtA[i] = 0x58 + i++ + if m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.DelFlag != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.DelFlag)) + } + return i, nil +} + +func (m *TaskSdkRule) 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 *TaskSdkRule) 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 m.Enable { + dAtA[i] = 0x10 + i++ + if m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.SdkRules) > 0 { + for _, msg := range m.SdkRules { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *SdkRuleSet) 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 *SdkRuleSet) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.SdkId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkId))) + i += copy(dAtA[i:], m.SdkId) + } + if len(m.IpcId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IpcId))) + i += copy(dAtA[i:], m.IpcId) + } + if len(m.Rules) > 0 { + for _, msg := range m.Rules { + 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.Sort != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) + } + return i, nil +} + +func (m *SdkRule) 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 *SdkRule) 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.SdkArgAlias) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkArgAlias))) + i += copy(dAtA[i:], m.SdkArgAlias) + } + if len(m.Operator) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Operator))) + i += copy(dAtA[i:], m.Operator) + } + if len(m.SdkArgValue) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkArgValue))) + i += copy(dAtA[i:], m.SdkArgValue) + } + return i, nil +} + +func (m *SdkArg) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SdkArg) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Alias) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Alias))) + i += copy(dAtA[i:], m.Alias) + } + if len(m.Name) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + if len(m.Type) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) + } + if m.Must { + dAtA[i] = 0x20 + i++ + if m.Must { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.Unit) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Unit))) + i += copy(dAtA[i:], m.Unit) + } + if len(m.Range) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Range))) + i += copy(dAtA[i:], m.Range) + } + if len(m.DefaultValue) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.DefaultValue))) + i += copy(dAtA[i:], m.DefaultValue) + } + if len(m.DefaultOperator) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.DefaultOperator))) + i += copy(dAtA[i:], m.DefaultOperator) + } + if m.Sort != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) + } + return i, nil +} + +func (m *DbChangeMessage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DbChangeMessage) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Table != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Table)) + } + if len(m.Id) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if m.Action != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Action)) + } + if len(m.Info) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Info))) + i += copy(dAtA[i:], m.Info) + } + return i, nil +} + +func (m *CameraPolygon) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CameraPolygon) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.CameraId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) + i += copy(dAtA[i:], m.CameraId) + } + if len(m.Name) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + if len(m.Polygon) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Polygon))) + i += copy(dAtA[i:], m.Polygon) + } + if len(m.TriggerLine) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TriggerLine))) + i += copy(dAtA[i:], m.TriggerLine) + } + if len(m.DirectionLine) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.DirectionLine))) + i += copy(dAtA[i:], m.DirectionLine) + } + if len(m.Type) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) + } + if m.DefenceState != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.DefenceState)) + } + return i, nil +} + +func (m *VideotapeInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VideotapeInfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.EsDataId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.EsDataId))) + i += copy(dAtA[i:], m.EsDataId) + } + if len(m.CameraId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) + i += copy(dAtA[i:], m.CameraId) + } + if len(m.TaskId) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TaskId))) + i += copy(dAtA[i:], m.TaskId) + } + if m.ImgId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.ImgId)) + } + if len(m.VideoUrl) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VideoUrl))) + i += copy(dAtA[i:], m.VideoUrl) + } + if len(m.SdkIds) > 0 { + for _, s := range m.SdkIds { + dAtA[i] = 0x32 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if m.Type != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Type)) + } + return i, nil +} + +func (m *CompareArgs) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CompareArgs) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.TableIds) > 0 { + for _, s := range m.TableIds { + dAtA[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if m.CompareThreshold != 0 { + dAtA[i] = 0x15 + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareThreshold)))) + i += 4 + } + if len(m.FaceFeature) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.FaceFeature))) + i += copy(dAtA[i:], m.FaceFeature) + } + if len(m.Tasks) > 0 { + for _, s := range m.Tasks { + dAtA[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.TreeNodes) > 0 { + for _, s := range m.TreeNodes { + dAtA[i] = 0x2a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.Tabs) > 0 { + for _, s := range m.Tabs { + dAtA[i] = 0x32 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.AlarmLevel) > 0 { + dAtA5 := make([]byte, len(m.AlarmLevel)*10) + var j4 int + for _, num1 := range m.AlarmLevel { + num := uint64(num1) + for num >= 1<<7 { + dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j4++ + } + dAtA5[j4] = uint8(num) + j4++ + } + dAtA[i] = 0x3a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(j4)) + i += copy(dAtA[i:], dAtA5[:j4]) + } + if len(m.SearchTime) > 0 { + for _, s := range m.SearchTime { + dAtA[i] = 0x42 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.InputValue) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.InputValue))) + i += copy(dAtA[i:], m.InputValue) + } + if len(m.Collection) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Collection))) + i += copy(dAtA[i:], m.Collection) + } + if m.Source { + dAtA[i] = 0x58 + i++ + if m.Source { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.AnalyServerId) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.AnalyServerId))) + i += copy(dAtA[i:], m.AnalyServerId) + } + return i, nil +} + +func (m *CompareEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CompareEvent) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.EventType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.EventType)) + } + if len(m.Payload) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Payload))) + i += copy(dAtA[i:], m.Payload) + } + return i, nil +} + +func (m *SdkCompareEach) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SdkCompareEach) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.Tableid) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Tableid))) + i += copy(dAtA[i:], m.Tableid) + } + if m.CompareScore != 0 { + dAtA[i] = 0x1d + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareScore)))) + i += 4 + } + return i, nil +} + +func (m *SdkCompareResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SdkCompareResult) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.CompareResult) > 0 { + for _, msg := range m.CompareResult { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *EventPush) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventPush) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.Name) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + if len(m.TimeStart) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TimeStart))) + i += copy(dAtA[i:], m.TimeStart) + } + if len(m.TimeEnd) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TimeEnd))) + i += copy(dAtA[i:], m.TimeEnd) + } + if m.IsSatisfyAll { + dAtA[i] = 0x28 + i++ + if m.IsSatisfyAll { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.RuleText) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RuleText))) + i += copy(dAtA[i:], m.RuleText) + } + if m.Enable { + dAtA[i] = 0x38 + i++ + if m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.LinkType) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LinkType))) + i += copy(dAtA[i:], m.LinkType) + } + if len(m.LinkDevice) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LinkDevice))) + i += copy(dAtA[i:], m.LinkDevice) + } + if len(m.IpPorts) > 0 { + for _, msg := range m.IpPorts { + dAtA[i] = 0x52 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Urls) > 0 { + for _, msg := range m.Urls { + dAtA[i] = 0x5a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Rules) > 0 { + for _, msg := range m.Rules { + dAtA[i] = 0x62 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *EventPushRule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventPushRule) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.TopicType) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TopicType))) + i += copy(dAtA[i:], m.TopicType) + } + if len(m.TopicArg) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TopicArg))) + i += copy(dAtA[i:], m.TopicArg) + } + if len(m.Operator) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Operator))) + i += copy(dAtA[i:], m.Operator) + } + if len(m.OperatorType) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.OperatorType))) + i += copy(dAtA[i:], m.OperatorType) + } + if len(m.RuleValue) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RuleValue))) + i += copy(dAtA[i:], m.RuleValue) + } + if len(m.EventPushId) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.EventPushId))) + i += copy(dAtA[i:], m.EventPushId) + } + return i, nil +} + +func (m *PushIpPort) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PushIpPort) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.ServerIp) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ServerIp))) + i += copy(dAtA[i:], m.ServerIp) + } + if m.Port != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Port)) + } + if m.Enable { + dAtA[i] = 0x18 + i++ + if m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + return i, nil +} + +func (m *PushUrl) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PushUrl) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Url) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Url))) + i += copy(dAtA[i:], m.Url) + } + if m.Enable { + dAtA[i] = 0x10 + i++ + if m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + return i, nil +} + +func (m *PushAttach) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PushAttach) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.PushId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PushId))) + i += copy(dAtA[i:], m.PushId) + } + if m.Cam != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Cam.Size())) + n6, err6 := m.Cam.MarshalTo(dAtA[i:]) + if err6 != nil { + return 0, err6 + } + i += n6 + } + if len(m.ServerId) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ServerId))) + i += copy(dAtA[i:], m.ServerId) + } + if len(m.ServerName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ServerName))) + i += copy(dAtA[i:], m.ServerName) + } + if len(m.LocalIp) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LocalIp))) + i += copy(dAtA[i:], m.LocalIp) + } + if len(m.VideoUrl) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VideoUrl))) + i += copy(dAtA[i:], m.VideoUrl) + } + return i, nil +} + +func (m *EsPersonCacheChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EsPersonCacheChange) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Type)) + } + if len(m.TableId) > 0 { + for _, s := range m.TableId { + dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.PersonId) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PersonId))) + i += copy(dAtA[i:], m.PersonId) + } + if len(m.Feature) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Feature))) + i += copy(dAtA[i:], m.Feature) + } + if m.Action != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Action)) + } + if m.Enable != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintProtomsg(dAtA, i, uint64(m.Enable)) + } + return i, nil +} + +func encodeVarintProtomsg(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *Area) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovProtomsg(uint64(m.Id)) + } + if m.Parentid != 0 { + n += 1 + sovProtomsg(uint64(m.Parentid)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *Camera) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Alias) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.SnapshotUrl) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovProtomsg(uint64(m.Type)) + } + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Longitude != 0 { + n += 5 + } + if m.Latitude != 0 { + n += 5 + } + if m.Floor != 0 { + n += 1 + sovProtomsg(uint64(m.Floor)) + } + l = len(m.Rtsp) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Ip) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Port != 0 { + n += 1 + sovProtomsg(uint64(m.Port)) + } + l = len(m.Username) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Password) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Brand) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Reserved) + if l > 0 { + n += 2 + l + sovProtomsg(uint64(l)) + } + if m.IsRunning { + n += 3 + } + if m.RunEnable { + n += 3 + } + if m.RunType != 0 { + n += 2 + sovProtomsg(uint64(m.RunType)) + } + l = len(m.RunServerId) + if l > 0 { + n += 2 + l + sovProtomsg(uint64(l)) + } + 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)) + } + } + 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 + } + 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)) + } + } + return n +} + +func (m *SdkRun) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.IpcId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.SdkType) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *TaskSdkRun) 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)) + } + } + 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.CameraId) + 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.LinkTaskId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *CameraTimerule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.TimeRule) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *DayCtl) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Day != 0 { + n += 1 + sovProtomsg(uint64(m.Day)) + } + if len(m.TimeRange) > 0 { + for _, e := range m.TimeRange { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + return n +} + +func (m *TimeRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Start) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.End) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *Polygon) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if len(m.Points) > 0 { + for _, e := range m.Points { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + return n +} + +func (m *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)) + } + } + 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.Enable { + n += 2 + } + 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)) + } + l = len(m.GroupText) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.AlarmLevel != 0 { + n += 1 + sovProtomsg(uint64(m.AlarmLevel)) + } + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + l = len(m.SetType) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.DefenceState { + n += 2 + } + 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)) + } + return n +} + +func (m *Sdk) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.IpcId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.SdkType) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.SdkName) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if len(m.Args) > 0 { + for _, e := range m.Args { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + l = len(m.Icon) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Url) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.CreateTime) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.UpdateTime) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.CreateBy) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Enable { + n += 2 + } + if m.DelFlag != 0 { + n += 1 + sovProtomsg(uint64(m.DelFlag)) + } + return n +} + +func (m *TaskSdkRule) 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 m.Enable { + n += 2 + } + if len(m.SdkRules) > 0 { + for _, e := range m.SdkRules { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + return n +} + +func (m *SdkRuleSet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SdkId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.IpcId) + 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.Sort != 0 { + n += 1 + sovProtomsg(uint64(m.Sort)) + } + return n +} + +func (m *SdkRule) 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.SdkArgAlias) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.SdkArgValue) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *SdkArg) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Alias) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Type) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Must { + n += 2 + } + l = len(m.Unit) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Range) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.DefaultValue) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.DefaultOperator) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Sort != 0 { + n += 1 + sovProtomsg(uint64(m.Sort)) + } + return n +} + +func (m *DbChangeMessage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Table != 0 { + n += 1 + sovProtomsg(uint64(m.Table)) + } + l = len(m.Id) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Action != 0 { + n += 1 + sovProtomsg(uint64(m.Action)) + } + l = len(m.Info) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *CameraPolygon) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.CameraId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Polygon) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.TriggerLine) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.DirectionLine) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Type) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.DefenceState != 0 { + n += 1 + sovProtomsg(uint64(m.DefenceState)) + } + return n +} + +func (m *VideotapeInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.EsDataId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.CameraId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.TaskId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.ImgId != 0 { + n += 1 + sovProtomsg(uint64(m.ImgId)) + } + l = len(m.VideoUrl) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if len(m.SdkIds) > 0 { + for _, s := range m.SdkIds { + l = len(s) + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if m.Type != 0 { + n += 1 + sovProtomsg(uint64(m.Type)) + } + return n +} + +func (m *CompareArgs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TableIds) > 0 { + for _, s := range m.TableIds { + l = len(s) + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if m.CompareThreshold != 0 { + n += 5 + } + l = len(m.FaceFeature) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if len(m.Tasks) > 0 { + for _, s := range m.Tasks { + l = len(s) + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if len(m.TreeNodes) > 0 { + for _, s := range m.TreeNodes { + l = len(s) + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if len(m.Tabs) > 0 { + for _, s := range m.Tabs { + l = len(s) + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if len(m.AlarmLevel) > 0 { + l = 0 + for _, e := range m.AlarmLevel { + l += sovProtomsg(uint64(e)) + } + n += 1 + sovProtomsg(uint64(l)) + l + } + if len(m.SearchTime) > 0 { + for _, s := range m.SearchTime { + l = len(s) + n += 1 + l + sovProtomsg(uint64(l)) + } + } + l = len(m.InputValue) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Collection) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Source { + n += 2 + } + l = len(m.AnalyServerId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *CompareEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EventType != 0 { + n += 1 + sovProtomsg(uint64(m.EventType)) + } + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *SdkCompareEach) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Tableid) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.CompareScore != 0 { + n += 5 + } + return n +} + +func (m *SdkCompareResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.CompareResult) > 0 { + for _, e := range m.CompareResult { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + return n +} + +func (m *EventPush) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.TimeStart) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.TimeEnd) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.IsSatisfyAll { + n += 2 + } + l = len(m.RuleText) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Enable { + n += 2 + } + l = len(m.LinkType) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.LinkDevice) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if len(m.IpPorts) > 0 { + for _, e := range m.IpPorts { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if len(m.Urls) > 0 { + for _, e := range m.Urls { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + } + return n +} + +func (m *EventPushRule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.TopicType) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.TopicArg) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.OperatorType) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.RuleValue) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.EventPushId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *PushIpPort) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ServerIp) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Port != 0 { + n += 1 + sovProtomsg(uint64(m.Port)) + } + if m.Enable { + n += 2 + } + return n +} + +func (m *PushUrl) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Url) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Enable { + n += 2 + } + return n +} + +func (m *PushAttach) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PushId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Cam != nil { + l = m.Cam.Size() + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.ServerId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.ServerName) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.LocalIp) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.VideoUrl) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + return n +} + +func (m *EsPersonCacheChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != 0 { + n += 1 + sovProtomsg(uint64(m.Type)) + } + if len(m.TableId) > 0 { + for _, s := range m.TableId { + l = len(s) + n += 1 + l + sovProtomsg(uint64(l)) + } + } + l = len(m.PersonId) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + l = len(m.Feature) + if l > 0 { + n += 1 + l + sovProtomsg(uint64(l)) + } + if m.Action != 0 { + n += 1 + sovProtomsg(uint64(m.Action)) + } + if m.Enable != 0 { + n += 1 + sovProtomsg(uint64(m.Enable)) + } + 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 *Area) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Area: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Area: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Parentid", wireType) + } + m.Parentid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Parentid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Camera) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Camera: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Camera: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Alias = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SnapshotUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SnapshotUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Addr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Longitude", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Longitude = float32(math.Float32frombits(v)) + case 8: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Latitude", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Latitude = float32(math.Float32frombits(v)) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Floor", wireType) + } + m.Floor = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Floor |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rtsp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rtsp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ip = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Username = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Password = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Brand", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Brand = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reserved", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reserved = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsRunning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsRunning = bool(v != 0) + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RunEnable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RunEnable = bool(v != 0) + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RunType", wireType) + } + m.RunType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RunType |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RunServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RunServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *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 + } + 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 + } + 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 + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SdkRun) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SdkRun: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SdkRun: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpcId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IpcId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SdkType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TaskSdkRun) 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: TaskSdkRun: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskSdkRun: 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, &SdkRun{}) + 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 + } + 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 CameraId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CameraId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 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 LinkTaskId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LinkTaskId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CameraTimerule) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CameraTimerule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CameraTimerule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeRule", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimeRule = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DayCtl) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DayCtl: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DayCtl: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Day", wireType) + } + m.Day = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Day |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimeRange = append(m.TimeRange, &TimeRange{}) + if err := m.TimeRange[len(m.TimeRange)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TimeRange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TimeRange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TimeRange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Start = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.End = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Polygon) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Polygon: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Polygon: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Points", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Points = append(m.Points, &Point{}) + if err := m.Points[len(m.Points)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *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 + } + 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 + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enable = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *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 GroupText", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GroupText = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AlarmLevel", wireType) + } + m.AlarmLevel = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AlarmLevel |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rules = append(m.Rules, &Rule{}) + if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SetType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefenceState", 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.DefenceState = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *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 + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Sdk) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Sdk: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Sdk: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpcId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IpcId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SdkType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SdkName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, &SdkArg{}) + if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Icon = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Url = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreateTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UpdateTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreateBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enable = bool(v != 0) + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DelFlag", wireType) + } + m.DelFlag = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DelFlag |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TaskSdkRule) 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: TaskSdkRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskSdkRule: 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 != 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 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SdkRules", 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.SdkRules = append(m.SdkRules, &SdkRuleSet{}) + if err := m.SdkRules[len(m.SdkRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SdkRuleSet) 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: SdkRuleSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SdkRuleSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SdkId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpcId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IpcId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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, &SdkRule{}) + if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType) + } + m.Sort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SdkRule) 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: SdkRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SdkRule: 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 SdkArgAlias", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkArgAlias = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SdkArgValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkArgValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SdkArg) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SdkArg: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SdkArg: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Alias = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Must", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Must = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Unit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Unit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Range = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultOperator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultOperator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType) + } + m.Sort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DbChangeMessage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DbChangeMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DbChangeMessage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) + } + m.Table = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Table |= TableChanged(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + m.Action = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Action |= DbAction(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Info = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CameraPolygon) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CameraPolygon: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CameraPolygon: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CameraId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CameraId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Polygon", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Polygon = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TriggerLine", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TriggerLine = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DirectionLine", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DirectionLine = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefenceState", wireType) + } + m.DefenceState = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DefenceState |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VideotapeInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VideotapeInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VideotapeInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EsDataId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EsDataId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CameraId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CameraId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ImgId", wireType) + } + m.ImgId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ImgId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VideoUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VideoUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SdkIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkIds = append(m.SdkIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CompareArgs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CompareArgs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompareArgs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableIds = append(m.TableIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field CompareThreshold", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.CompareThreshold = float32(math.Float32frombits(v)) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FaceFeature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FaceFeature = append(m.FaceFeature[:0], dAtA[iNdEx:postIndex]...) + if m.FaceFeature == nil { + m.FaceFeature = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tasks = append(m.Tasks, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TreeNodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TreeNodes = append(m.TreeNodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tabs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tabs = append(m.Tabs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType == 0 { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AlarmLevel = append(m.AlarmLevel, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.AlarmLevel) == 0 { + m.AlarmLevel = make([]int32, 0, elementCount) + } + for iNdEx < postIndex { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AlarmLevel = append(m.AlarmLevel, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field AlarmLevel", wireType) + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SearchTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SearchTime = append(m.SearchTime, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InputValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InputValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Collection = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Source = bool(v != 0) + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CompareEvent) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CompareEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompareEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType) + } + m.EventType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EventType |= CompareEventType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SdkCompareEach) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SdkCompareEach: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SdkCompareEach: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tableid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tableid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field CompareScore", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.CompareScore = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SdkCompareResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SdkCompareResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SdkCompareResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CompareResult", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CompareResult = append(m.CompareResult, &SdkCompareEach{}) + if err := m.CompareResult[len(m.CompareResult)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventPush) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventPush: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventPush: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeStart", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimeStart = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeEnd", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimeEnd = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsSatisfyAll", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsSatisfyAll = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleText", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleText = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enable = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LinkType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkDevice", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LinkDevice = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpPorts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IpPorts = append(m.IpPorts, &PushIpPort{}) + if err := m.IpPorts[len(m.IpPorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Urls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Urls = append(m.Urls, &PushUrl{}) + if err := m.Urls[len(m.Urls)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rules = append(m.Rules, &EventPushRule{}) + if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventPushRule) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventPushRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventPushRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TopicType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicArg", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TopicArg = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatorType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OperatorType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EventPushId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EventPushId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PushIpPort) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PushIpPort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PushIpPort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServerIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enable = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PushUrl) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PushUrl: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PushUrl: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Url = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enable = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PushAttach) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PushAttach: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PushAttach: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PushId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PushId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cam", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cam == nil { + m.Cam = &Camera{} + } + if err := m.Cam.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LocalIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VideoUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VideoUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EsPersonCacheChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EsPersonCacheChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EsPersonCacheChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= EsCacheChanged(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableId = append(m.TableId, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersonId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PersonId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feature", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProtomsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProtomsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feature = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + m.Action = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Action |= DbAction(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + m.Enable = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProtomsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Enable |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipProtomsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthProtomsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipProtomsg(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowProtomsg + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowProtomsg + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowProtomsg + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthProtomsg + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthProtomsg + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowProtomsg + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipProtomsg(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthProtomsg + } + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthProtomsg = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowProtomsg = fmt.Errorf("proto: integer overflow") +) diff --git a/sdk.pb.go b/sdk.pb.go index 7b9a058..b669e4b 100644 --- a/sdk.pb.go +++ b/sdk.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: sdk.proto package protomsg import ( + encoding_binary "encoding/binary" fmt "fmt" - proto "github.com/golang/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" math "math" ) @@ -18,19 +20,16 @@ // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package // Image ipc struct type Image struct { - Width int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` - Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Id int64 `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"` - Cid string `protobuf:"bytes,6,opt,name=cid,proto3" json:"cid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Width int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` + Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Id int64 `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"` + Cid string `protobuf:"bytes,6,opt,name=cid,proto3" json:"cid,omitempty"` } func (m *Image) Reset() { *m = Image{} } @@ -39,18 +38,26 @@ func (*Image) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{0} } - 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) @@ -101,13 +108,10 @@ } type FaceAngle struct { - Yaw int32 `protobuf:"varint,1,opt,name=yaw,proto3" json:"yaw,omitempty"` - Pitch int32 `protobuf:"varint,2,opt,name=pitch,proto3" json:"pitch,omitempty"` - Roll int32 `protobuf:"varint,3,opt,name=roll,proto3" json:"roll,omitempty"` - Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Yaw int32 `protobuf:"varint,1,opt,name=yaw,proto3" json:"yaw,omitempty"` + Pitch int32 `protobuf:"varint,2,opt,name=pitch,proto3" json:"pitch,omitempty"` + Roll int32 `protobuf:"varint,3,opt,name=roll,proto3" json:"roll,omitempty"` + Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` } func (m *FaceAngle) Reset() { *m = FaceAngle{} } @@ -116,18 +120,26 @@ func (*FaceAngle) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{1} } - 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) @@ -164,14 +176,11 @@ } type ThftResult struct { - Gender int32 `protobuf:"varint,1,opt,name=gender,proto3" json:"gender,omitempty"` - Age int32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"` - Race int32 `protobuf:"varint,3,opt,name=race,proto3" json:"race,omitempty"` - Beauty int32 `protobuf:"varint,4,opt,name=beauty,proto3" json:"beauty,omitempty"` - Smile int32 `protobuf:"varint,5,opt,name=smile,proto3" json:"smile,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Gender int32 `protobuf:"varint,1,opt,name=gender,proto3" json:"gender,omitempty"` + Age int32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"` + Race int32 `protobuf:"varint,3,opt,name=race,proto3" json:"race,omitempty"` + Beauty int32 `protobuf:"varint,4,opt,name=beauty,proto3" json:"beauty,omitempty"` + Smile int32 `protobuf:"varint,5,opt,name=smile,proto3" json:"smile,omitempty"` } func (m *ThftResult) Reset() { *m = ThftResult{} } @@ -180,18 +189,26 @@ func (*ThftResult) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{2} } - 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) @@ -235,18 +252,15 @@ } type FacePos struct { - RcFace *Rect `protobuf:"bytes,1,opt,name=rcFace,proto3" json:"rcFace,omitempty"` - PtLeftEye *Point `protobuf:"bytes,2,opt,name=ptLeftEye,proto3" json:"ptLeftEye,omitempty"` - PtRightEye *Point `protobuf:"bytes,3,opt,name=ptRightEye,proto3" json:"ptRightEye,omitempty"` - PtMouth *Point `protobuf:"bytes,4,opt,name=ptMouth,proto3" json:"ptMouth,omitempty"` - PtNose *Point `protobuf:"bytes,5,opt,name=ptNose,proto3" json:"ptNose,omitempty"` - FAngle *FaceAngle `protobuf:"bytes,6,opt,name=fAngle,proto3" json:"fAngle,omitempty"` - Quality int32 `protobuf:"varint,7,opt,name=quality,proto3" json:"quality,omitempty"` - FacialData []byte `protobuf:"bytes,8,opt,name=facialData,proto3" json:"facialData,omitempty"` - FaceID uint64 `protobuf:"varint,9,opt,name=faceID,proto3" json:"faceID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RcFace *Rect `protobuf:"bytes,1,opt,name=rcFace,proto3" json:"rcFace,omitempty"` + PtLeftEye *Point `protobuf:"bytes,2,opt,name=ptLeftEye,proto3" json:"ptLeftEye,omitempty"` + PtRightEye *Point `protobuf:"bytes,3,opt,name=ptRightEye,proto3" json:"ptRightEye,omitempty"` + PtMouth *Point `protobuf:"bytes,4,opt,name=ptMouth,proto3" json:"ptMouth,omitempty"` + PtNose *Point `protobuf:"bytes,5,opt,name=ptNose,proto3" json:"ptNose,omitempty"` + FAngle *FaceAngle `protobuf:"bytes,6,opt,name=fAngle,proto3" json:"fAngle,omitempty"` + Quality int32 `protobuf:"varint,7,opt,name=quality,proto3" json:"quality,omitempty"` + FacialData []byte `protobuf:"bytes,8,opt,name=facialData,proto3" json:"facialData,omitempty"` + FaceID uint64 `protobuf:"varint,9,opt,name=faceID,proto3" json:"faceID,omitempty"` } func (m *FacePos) Reset() { *m = FacePos{} } @@ -255,18 +269,26 @@ func (*FacePos) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{3} } - 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) @@ -338,18 +360,15 @@ } type FaceInfo struct { - RcFace *Rect `protobuf:"bytes,1,opt,name=rcFace,proto3" json:"rcFace,omitempty"` - PtLeftEye *Point `protobuf:"bytes,2,opt,name=ptLeftEye,proto3" json:"ptLeftEye,omitempty"` - PtRightEye *Point `protobuf:"bytes,3,opt,name=ptRightEye,proto3" json:"ptRightEye,omitempty"` - PtMouth *Point `protobuf:"bytes,4,opt,name=ptMouth,proto3" json:"ptMouth,omitempty"` - PtNose *Point `protobuf:"bytes,5,opt,name=ptNose,proto3" json:"ptNose,omitempty"` - FAngle *FaceAngle `protobuf:"bytes,6,opt,name=fAngle,proto3" json:"fAngle,omitempty"` - Quality int32 `protobuf:"varint,7,opt,name=quality,proto3" json:"quality,omitempty"` - FacialData []byte `protobuf:"bytes,8,opt,name=facialData,proto3" json:"facialData,omitempty"` - FaceID int64 `protobuf:"varint,9,opt,name=faceID,proto3" json:"faceID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RcFace *Rect `protobuf:"bytes,1,opt,name=rcFace,proto3" json:"rcFace,omitempty"` + PtLeftEye *Point `protobuf:"bytes,2,opt,name=ptLeftEye,proto3" json:"ptLeftEye,omitempty"` + PtRightEye *Point `protobuf:"bytes,3,opt,name=ptRightEye,proto3" json:"ptRightEye,omitempty"` + PtMouth *Point `protobuf:"bytes,4,opt,name=ptMouth,proto3" json:"ptMouth,omitempty"` + PtNose *Point `protobuf:"bytes,5,opt,name=ptNose,proto3" json:"ptNose,omitempty"` + FAngle *FaceAngle `protobuf:"bytes,6,opt,name=fAngle,proto3" json:"fAngle,omitempty"` + Quality int32 `protobuf:"varint,7,opt,name=quality,proto3" json:"quality,omitempty"` + FacialData []byte `protobuf:"bytes,8,opt,name=facialData,proto3" json:"facialData,omitempty"` + FaceID int64 `protobuf:"varint,9,opt,name=faceID,proto3" json:"faceID,omitempty"` } func (m *FaceInfo) Reset() { *m = FaceInfo{} } @@ -358,18 +377,26 @@ func (*FaceInfo) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{4} } - 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) @@ -441,13 +468,10 @@ } type ObjInfo struct { - RcObj *Rect `protobuf:"bytes,1,opt,name=rcObj,proto3" json:"rcObj,omitempty"` - Typ int32 `protobuf:"varint,2,opt,name=typ,proto3" json:"typ,omitempty"` - Prob float32 `protobuf:"fixed32,3,opt,name=prob,proto3" json:"prob,omitempty"` - ObjID uint64 `protobuf:"varint,4,opt,name=objID,proto3" json:"objID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RcObj *Rect `protobuf:"bytes,1,opt,name=rcObj,proto3" json:"rcObj,omitempty"` + Typ int32 `protobuf:"varint,2,opt,name=typ,proto3" json:"typ,omitempty"` + Prob float32 `protobuf:"fixed32,3,opt,name=prob,proto3" json:"prob,omitempty"` + ObjID uint64 `protobuf:"varint,4,opt,name=objID,proto3" json:"objID,omitempty"` } func (m *ObjInfo) Reset() { *m = ObjInfo{} } @@ -456,18 +480,26 @@ func (*ObjInfo) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{5} } - 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) @@ -505,12 +537,9 @@ // sdk face property type ResultFaceDetect struct { - Pos *FacePos `protobuf:"bytes,1,opt,name=pos,proto3" json:"pos,omitempty"` - Result *ThftResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` - Feats []byte `protobuf:"bytes,3,opt,name=feats,proto3" json:"feats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Pos *FacePos `protobuf:"bytes,1,opt,name=pos,proto3" json:"pos,omitempty"` + Result *ThftResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` + Feats []byte `protobuf:"bytes,3,opt,name=feats,proto3" json:"feats,omitempty"` } func (m *ResultFaceDetect) Reset() { *m = ResultFaceDetect{} } @@ -519,18 +548,26 @@ func (*ResultFaceDetect) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{6} } - func (m *ResultFaceDetect) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResultFaceDetect.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *ResultFaceDetect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResultFaceDetect.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_ResultFaceDetect.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 *ResultFaceDetect) XXX_Merge(src proto.Message) { xxx_messageInfo_ResultFaceDetect.Merge(m, src) } func (m *ResultFaceDetect) XXX_Size() int { - return xxx_messageInfo_ResultFaceDetect.Size(m) + return m.Size() } func (m *ResultFaceDetect) XXX_DiscardUnknown() { xxx_messageInfo_ResultFaceDetect.DiscardUnknown(m) @@ -560,10 +597,7 @@ } type ParamFacePos struct { - Faces []*ResultFaceDetect `protobuf:"bytes,1,rep,name=faces,proto3" json:"faces,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Faces []*ResultFaceDetect `protobuf:"bytes,1,rep,name=faces,proto3" json:"faces,omitempty"` } func (m *ParamFacePos) Reset() { *m = ParamFacePos{} } @@ -572,18 +606,26 @@ func (*ParamFacePos) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{7} } - 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) @@ -599,12 +641,9 @@ } type ResultFaceExtCom struct { - Feats []byte `protobuf:"bytes,1,opt,name=feats,proto3" json:"feats,omitempty"` - Comp []byte `protobuf:"bytes,2,opt,name=comp,proto3" json:"comp,omitempty"` - Pos *ResultFaceDetect `protobuf:"bytes,3,opt,name=pos,proto3" json:"pos,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Feats []byte `protobuf:"bytes,1,opt,name=feats,proto3" json:"feats,omitempty"` + Comp []byte `protobuf:"bytes,2,opt,name=comp,proto3" json:"comp,omitempty"` + Pos *ResultFaceDetect `protobuf:"bytes,3,opt,name=pos,proto3" json:"pos,omitempty"` } func (m *ResultFaceExtCom) Reset() { *m = ResultFaceExtCom{} } @@ -613,18 +652,26 @@ func (*ResultFaceExtCom) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{8} } - func (m *ResultFaceExtCom) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResultFaceExtCom.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *ResultFaceExtCom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResultFaceExtCom.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_ResultFaceExtCom.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 *ResultFaceExtCom) XXX_Merge(src proto.Message) { xxx_messageInfo_ResultFaceExtCom.Merge(m, src) } func (m *ResultFaceExtCom) XXX_Size() int { - return xxx_messageInfo_ResultFaceExtCom.Size(m) + return m.Size() } func (m *ResultFaceExtCom) XXX_DiscardUnknown() { xxx_messageInfo_ResultFaceExtCom.DiscardUnknown(m) @@ -654,10 +701,7 @@ } type ParamFaceFeature struct { - ExtComp []*ResultFaceExtCom `protobuf:"bytes,2,rep,name=extComp,proto3" json:"extComp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExtComp []*ResultFaceExtCom `protobuf:"bytes,2,rep,name=extComp,proto3" json:"extComp,omitempty"` } func (m *ParamFaceFeature) Reset() { *m = ParamFaceFeature{} } @@ -666,18 +710,26 @@ func (*ParamFaceFeature) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{9} } - func (m *ParamFaceFeature) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParamFaceFeature.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *ParamFaceFeature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParamFaceFeature.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_ParamFaceFeature.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 *ParamFaceFeature) XXX_Merge(src proto.Message) { xxx_messageInfo_ParamFaceFeature.Merge(m, src) } func (m *ParamFaceFeature) XXX_Size() int { - return xxx_messageInfo_ParamFaceFeature.Size(m) + return m.Size() } func (m *ParamFaceFeature) XXX_DiscardUnknown() { xxx_messageInfo_ParamFaceFeature.DiscardUnknown(m) @@ -694,10 +746,7 @@ // sdk yolo detect type ParamYoloObj struct { - Infos []*ObjInfo `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Infos []*ObjInfo `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"` } func (m *ParamYoloObj) Reset() { *m = ParamYoloObj{} } @@ -706,18 +755,26 @@ func (*ParamYoloObj) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{10} } - 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) @@ -733,12 +790,9 @@ } type SoInfo struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - SdkId string `protobuf:"bytes,2,opt,name=sdkId,proto3" json:"sdkId,omitempty"` - SoName string `protobuf:"bytes,3,opt,name=soName,proto3" json:"soName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + SdkId string `protobuf:"bytes,2,opt,name=sdkId,proto3" json:"sdkId,omitempty"` + SoName string `protobuf:"bytes,3,opt,name=soName,proto3" json:"soName,omitempty"` } func (m *SoInfo) Reset() { *m = SoInfo{} } @@ -747,18 +801,26 @@ func (*SoInfo) Descriptor() ([]byte, []int) { return fileDescriptor_70decb0fb6f436df, []int{11} } - func (m *SoInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SoInfo.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *SoInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SoInfo.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_SoInfo.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 *SoInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_SoInfo.Merge(m, src) } func (m *SoInfo) XXX_Size() int { - return xxx_messageInfo_SoInfo.Size(m) + return m.Size() } func (m *SoInfo) XXX_DiscardUnknown() { xxx_messageInfo_SoInfo.DiscardUnknown(m) @@ -787,6 +849,231 @@ return "" } +// sdk plate id detect +type PlateID struct { + License string `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"` + Color string `protobuf:"bytes,2,opt,name=color,proto3" json:"color,omitempty"` + NColor int32 `protobuf:"varint,3,opt,name=nColor,proto3" json:"nColor,omitempty"` + NType int32 `protobuf:"varint,4,opt,name=nType,proto3" json:"nType,omitempty"` + NConfidence int32 `protobuf:"varint,5,opt,name=nConfidence,proto3" json:"nConfidence,omitempty"` + NBright int32 `protobuf:"varint,6,opt,name=nBright,proto3" json:"nBright,omitempty"` + NDirection int32 `protobuf:"varint,7,opt,name=nDirection,proto3" json:"nDirection,omitempty"` + RcLocation *Rect `protobuf:"bytes,8,opt,name=rcLocation,proto3" json:"rcLocation,omitempty"` + NTime int32 `protobuf:"varint,9,opt,name=nTime,proto3" json:"nTime,omitempty"` + NCarBright int32 `protobuf:"varint,10,opt,name=nCarBright,proto3" json:"nCarBright,omitempty"` + NCarLogo int32 `protobuf:"varint,11,opt,name=nCarLogo,proto3" json:"nCarLogo,omitempty"` + NCarType int32 `protobuf:"varint,12,opt,name=nCarType,proto3" json:"nCarType,omitempty"` + PlateBin []byte `protobuf:"bytes,13,opt,name=plateBin,proto3" json:"plateBin,omitempty"` + NBinPlateWidth []byte `protobuf:"bytes,14,opt,name=nBinPlateWidth,proto3" json:"nBinPlateWidth,omitempty"` + NBinPlateHeight []byte `protobuf:"bytes,15,opt,name=nBinPlateHeight,proto3" json:"nBinPlateHeight,omitempty"` + RcLogoLocation *Rect `protobuf:"bytes,16,opt,name=rcLogoLocation,proto3" json:"rcLogoLocation,omitempty"` + NCarModel []byte `protobuf:"bytes,17,opt,name=nCarModel,proto3" json:"nCarModel,omitempty"` + NCarModelConfidence []byte `protobuf:"bytes,18,opt,name=nCarModelConfidence,proto3" json:"nCarModelConfidence,omitempty"` +} + +func (m *PlateID) Reset() { *m = PlateID{} } +func (m *PlateID) String() string { return proto.CompactTextString(m) } +func (*PlateID) ProtoMessage() {} +func (*PlateID) Descriptor() ([]byte, []int) { + return fileDescriptor_70decb0fb6f436df, []int{12} +} +func (m *PlateID) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PlateID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PlateID.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 *PlateID) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlateID.Merge(m, src) +} +func (m *PlateID) XXX_Size() int { + return m.Size() +} +func (m *PlateID) XXX_DiscardUnknown() { + xxx_messageInfo_PlateID.DiscardUnknown(m) +} + +var xxx_messageInfo_PlateID proto.InternalMessageInfo + +func (m *PlateID) GetLicense() string { + if m != nil { + return m.License + } + return "" +} + +func (m *PlateID) GetColor() string { + if m != nil { + return m.Color + } + return "" +} + +func (m *PlateID) GetNColor() int32 { + if m != nil { + return m.NColor + } + return 0 +} + +func (m *PlateID) GetNType() int32 { + if m != nil { + return m.NType + } + return 0 +} + +func (m *PlateID) GetNConfidence() int32 { + if m != nil { + return m.NConfidence + } + return 0 +} + +func (m *PlateID) GetNBright() int32 { + if m != nil { + return m.NBright + } + return 0 +} + +func (m *PlateID) GetNDirection() int32 { + if m != nil { + return m.NDirection + } + return 0 +} + +func (m *PlateID) GetRcLocation() *Rect { + if m != nil { + return m.RcLocation + } + return nil +} + +func (m *PlateID) GetNTime() int32 { + if m != nil { + return m.NTime + } + return 0 +} + +func (m *PlateID) GetNCarBright() int32 { + if m != nil { + return m.NCarBright + } + return 0 +} + +func (m *PlateID) GetNCarLogo() int32 { + if m != nil { + return m.NCarLogo + } + return 0 +} + +func (m *PlateID) GetNCarType() int32 { + if m != nil { + return m.NCarType + } + return 0 +} + +func (m *PlateID) GetPlateBin() []byte { + if m != nil { + return m.PlateBin + } + return nil +} + +func (m *PlateID) GetNBinPlateWidth() []byte { + if m != nil { + return m.NBinPlateWidth + } + return nil +} + +func (m *PlateID) GetNBinPlateHeight() []byte { + if m != nil { + return m.NBinPlateHeight + } + return nil +} + +func (m *PlateID) GetRcLogoLocation() *Rect { + if m != nil { + return m.RcLogoLocation + } + return nil +} + +func (m *PlateID) GetNCarModel() []byte { + if m != nil { + return m.NCarModel + } + return nil +} + +func (m *PlateID) GetNCarModelConfidence() []byte { + if m != nil { + return m.NCarModelConfidence + } + return nil +} + +type PlateIDResult struct { + Result []*PlateID `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` +} + +func (m *PlateIDResult) Reset() { *m = PlateIDResult{} } +func (m *PlateIDResult) String() string { return proto.CompactTextString(m) } +func (*PlateIDResult) ProtoMessage() {} +func (*PlateIDResult) Descriptor() ([]byte, []int) { + return fileDescriptor_70decb0fb6f436df, []int{13} +} +func (m *PlateIDResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PlateIDResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PlateIDResult.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 *PlateIDResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlateIDResult.Merge(m, src) +} +func (m *PlateIDResult) XXX_Size() int { + return m.Size() +} +func (m *PlateIDResult) XXX_DiscardUnknown() { + xxx_messageInfo_PlateIDResult.DiscardUnknown(m) +} + +var xxx_messageInfo_PlateIDResult proto.InternalMessageInfo + +func (m *PlateIDResult) GetResult() []*PlateID { + if m != nil { + return m.Result + } + return nil +} + func init() { proto.RegisterType((*Image)(nil), "protomsg.Image") proto.RegisterType((*FaceAngle)(nil), "protomsg.FaceAngle") @@ -800,54 +1087,3961 @@ proto.RegisterType((*ParamFaceFeature)(nil), "protomsg.ParamFaceFeature") proto.RegisterType((*ParamYoloObj)(nil), "protomsg.ParamYoloObj") proto.RegisterType((*SoInfo)(nil), "protomsg.SoInfo") + proto.RegisterType((*PlateID)(nil), "protomsg.PlateID") + proto.RegisterType((*PlateIDResult)(nil), "protomsg.PlateIDResult") } func init() { proto.RegisterFile("sdk.proto", fileDescriptor_70decb0fb6f436df) } var fileDescriptor_70decb0fb6f436df = []byte{ - // 703 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x54, 0x41, 0x6f, 0xd3, 0x4c, - 0x10, 0x95, 0x93, 0xd8, 0xa9, 0x27, 0x55, 0xbf, 0x7e, 0x4b, 0x85, 0xac, 0x0a, 0xa1, 0xc8, 0x20, - 0x1a, 0x44, 0x29, 0x28, 0x20, 0x71, 0x05, 0x91, 0x56, 0x44, 0x82, 0x36, 0x5a, 0xb8, 0x70, 0xdc, - 0xac, 0xd7, 0x89, 0x53, 0xdb, 0x6b, 0xec, 0x8d, 0xda, 0x88, 0x5f, 0xc0, 0xff, 0x84, 0xff, 0x81, - 0x66, 0x77, 0x1d, 0xbb, 0x52, 0xcb, 0x89, 0x23, 0xa7, 0xcc, 0xec, 0x3c, 0xe7, 0xbd, 0x79, 0xb3, - 0xb3, 0xe0, 0x57, 0xd1, 0xe5, 0x49, 0x51, 0x4a, 0x25, 0xc9, 0x8e, 0xfe, 0xc9, 0xaa, 0xc5, 0x21, - 0xcc, 0x59, 0x25, 0xcc, 0x69, 0xf8, 0xc3, 0x01, 0x77, 0x9a, 0xb1, 0x85, 0x20, 0x07, 0xe0, 0x5e, - 0x25, 0x91, 0x5a, 0x06, 0xce, 0xd0, 0x19, 0xb9, 0xd4, 0x24, 0xe4, 0x3e, 0x78, 0x4b, 0x91, 0x2c, - 0x96, 0x2a, 0xe8, 0xe8, 0x63, 0x9b, 0x11, 0x02, 0xbd, 0x88, 0x29, 0x16, 0x74, 0x87, 0xce, 0x68, - 0x97, 0xea, 0x98, 0x3c, 0x00, 0x5f, 0x25, 0x99, 0xa8, 0x14, 0xcb, 0x8a, 0xa0, 0x37, 0x74, 0x46, - 0x3e, 0x6d, 0x0e, 0xc8, 0x1e, 0x74, 0x92, 0x28, 0x70, 0x87, 0xce, 0xa8, 0x4b, 0x3b, 0x49, 0x44, - 0xf6, 0xa1, 0xcb, 0x93, 0x28, 0xf0, 0x34, 0x0e, 0xc3, 0x70, 0x01, 0xfe, 0x19, 0xe3, 0xe2, 0x5d, - 0xbe, 0x48, 0x05, 0x96, 0x37, 0xec, 0xca, 0x8a, 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, 0xed, 0x76, 0x6f, 0x6a, 0xa4, 0x06, 0x18, 0xae, 0xda, 0xf2, 0x4f, - 0xaf, 0xd5, 0x7b, 0x99, 0x35, 0x5c, 0x4e, 0x8b, 0x0b, 0x2d, 0xe1, 0x32, 0x33, 0x2e, 0xed, 0x52, - 0x1d, 0x93, 0x63, 0xd3, 0xa8, 0xb9, 0x66, 0x7f, 0x62, 0x43, 0x58, 0xf8, 0x01, 0xf6, 0xb7, 0x6a, - 0xcf, 0x04, 0x53, 0xeb, 0x52, 0x90, 0xd7, 0xd0, 0x17, 0x9a, 0x15, 0xff, 0xf8, 0x4e, 0xcd, 0x46, - 0x18, 0xad, 0xa1, 0xe1, 0x1b, 0xdb, 0xf7, 0x57, 0x99, 0x4a, 0x1c, 0xe0, 0x11, 0xb8, 0x49, 0x1e, - 0xcb, 0xba, 0xef, 0x96, 0xe5, 0xf6, 0x22, 0x50, 0x53, 0x0f, 0xcf, 0xc0, 0xfb, 0x2c, 0xf5, 0xcd, - 0x30, 0x0f, 0xbf, 0xa3, 0xdf, 0x79, 0x7c, 0xf8, 0xf1, 0x65, 0x8c, 0x2e, 0xa7, 0x91, 0xee, 0xcf, - 0xa7, 0x26, 0xc1, 0x2b, 0x56, 0xc9, 0x73, 0x96, 0x99, 0x55, 0xf2, 0xa9, 0xcd, 0xe6, 0x9e, 0x26, - 0x78, 0xf5, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x4a, 0xab, 0xaa, 0xb7, 0xca, 0x06, 0x00, 0x00, + // 979 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0xda, 0xf1, 0xbf, 0xe7, 0x34, 0x49, 0xa7, 0x15, 0x5a, 0x45, 0xc8, 0xb2, 0x16, 0xd4, + 0xba, 0xa2, 0x84, 0x2a, 0x20, 0x90, 0x38, 0x41, 0xe2,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, + 0x38, 0x26, 0x47, 0x3a, 0x9c, 0xce, 0x6c, 0x04, 0x10, 0xea, 0x74, 0xa1, 0x22, 0x99, 0x86, 0x92, + 0x3c, 0x69, 0xf1, 0x86, 0x24, 0x78, 0x03, 0xf0, 0x6a, 0xb5, 0x30, 0x5c, 0x16, 0x57, 0xb1, 0xc1, + 0x10, 0x97, 0x32, 0x8d, 0x64, 0xee, 0x8c, 0x39, 0x84, 0x1e, 0x88, 0xa5, 0x74, 0xd6, 0xf0, 0x48, + 0xb6, 0x44, 0x28, 0x2b, 0x5b, 0x22, 0x94, 0xf8, 0xf5, 0x5c, 0x8a, 0x2b, 0xb3, 0x26, 0x3b, 0x1d, + 0xee, 0x10, 0x7a, 0x5b, 0x24, 0x2a, 0x96, 0x14, 0x71, 0x87, 0x5b, 0x10, 0xfc, 0xd9, 0x82, 0x1e, + 0xc6, 0x78, 0xae, 0x0b, 0xf6, 0x00, 0xba, 0x79, 0x88, 0x80, 0xec, 0x0e, 0x8f, 0x76, 0x0f, 0xcb, + 0x0a, 0x1d, 0x72, 0x19, 0x1a, 0xee, 0xb4, 0xec, 0x53, 0x18, 0x64, 0xe6, 0x4c, 0x2e, 0xcc, 0xd3, + 0xb5, 0xf5, 0x66, 0x78, 0xb4, 0x57, 0x53, 0xcf, 0xb5, 0x4a, 0x0d, 0xaf, 0x19, 0xec, 0x33, 0x80, + 0xcc, 0x70, 0x2c, 0x12, 0xf2, 0xdb, 0x9b, 0xf9, 0x0d, 0x0a, 0x7b, 0x04, 0xbd, 0xcc, 0x3c, 0xd7, + 0x57, 0x66, 0x45, 0x21, 0x6c, 0x60, 0x97, 0x7a, 0xf6, 0x10, 0xba, 0x99, 0x79, 0xa1, 0x0b, 0x1b, + 0xd5, 0x06, 0xa6, 0x53, 0xb3, 0x4f, 0xa0, 0xbb, 0xa0, 0x3a, 0x52, 0x7d, 0x87, 0x47, 0xf7, 0x6a, + 0x62, 0x55, 0x62, 0xee, 0x28, 0xcc, 0x87, 0xde,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xdb, 0x9b, 0xd1, 0xd6, 0xef, 0x37, 0xa3, 0xad, + 0x79, 0x97, 0xbe, 0xf9, 0xfc, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb8, 0xdb, 0xc5, 0x0c, 0x7a, + 0x09, 0x00, 0x00, } + +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 = encodeVarintSdk(dAtA, i, uint64(m.Width)) + } + if m.Height != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Height)) + } + if len(m.Data) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) + } + if len(m.Timestamp) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Timestamp))) + i += copy(dAtA[i:], m.Timestamp) + } + if m.Id != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Id)) + } + if len(m.Cid) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Cid))) + i += copy(dAtA[i:], m.Cid) + } + 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 = encodeVarintSdk(dAtA, i, uint64(m.Yaw)) + } + if m.Pitch != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Pitch)) + } + if m.Roll != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintSdk(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 + } + 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 = encodeVarintSdk(dAtA, i, uint64(m.Gender)) + } + if m.Age != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Age)) + } + if m.Race != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Race)) + } + if m.Beauty != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Beauty)) + } + if m.Smile != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Smile)) + } + 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 = encodeVarintSdk(dAtA, i, uint64(m.RcFace.Size())) + n1, err1 := m.RcFace.MarshalTo(dAtA[i:]) + if err1 != nil { + return 0, err1 + } + i += n1 + } + if m.PtLeftEye != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.PtLeftEye.Size())) + n2, err2 := m.PtLeftEye.MarshalTo(dAtA[i:]) + if err2 != nil { + return 0, err2 + } + i += n2 + } + if m.PtRightEye != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.PtRightEye.Size())) + n3, err3 := m.PtRightEye.MarshalTo(dAtA[i:]) + if err3 != nil { + return 0, err3 + } + i += n3 + } + if m.PtMouth != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.PtMouth.Size())) + n4, err4 := m.PtMouth.MarshalTo(dAtA[i:]) + if err4 != nil { + return 0, err4 + } + i += n4 + } + if m.PtNose != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.PtNose.Size())) + n5, err5 := m.PtNose.MarshalTo(dAtA[i:]) + if err5 != nil { + return 0, err5 + } + i += n5 + } + if m.FAngle != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.FAngle.Size())) + n6, err6 := m.FAngle.MarshalTo(dAtA[i:]) + if err6 != nil { + return 0, err6 + } + i += n6 + } + if m.Quality != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Quality)) + } + if len(m.FacialData) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.FacialData))) + i += copy(dAtA[i:], m.FacialData) + } + if m.FaceID != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.FaceID)) + } + 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 = encodeVarintSdk(dAtA, i, uint64(m.RcFace.Size())) + n7, err7 := m.RcFace.MarshalTo(dAtA[i:]) + if err7 != nil { + return 0, err7 + } + i += n7 + } + if m.PtLeftEye != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.PtLeftEye.Size())) + n8, err8 := m.PtLeftEye.MarshalTo(dAtA[i:]) + if err8 != nil { + return 0, err8 + } + i += n8 + } + if m.PtRightEye != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.PtRightEye.Size())) + n9, err9 := m.PtRightEye.MarshalTo(dAtA[i:]) + if err9 != nil { + return 0, err9 + } + i += n9 + } + if m.PtMouth != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.PtMouth.Size())) + n10, err10 := m.PtMouth.MarshalTo(dAtA[i:]) + if err10 != nil { + return 0, err10 + } + i += n10 + } + if m.PtNose != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.PtNose.Size())) + n11, err11 := m.PtNose.MarshalTo(dAtA[i:]) + if err11 != nil { + return 0, err11 + } + i += n11 + } + if m.FAngle != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.FAngle.Size())) + n12, err12 := m.FAngle.MarshalTo(dAtA[i:]) + if err12 != nil { + return 0, err12 + } + i += n12 + } + if m.Quality != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Quality)) + } + if len(m.FacialData) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.FacialData))) + i += copy(dAtA[i:], m.FacialData) + } + if m.FaceID != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.FaceID)) + } + 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 = encodeVarintSdk(dAtA, i, uint64(m.RcObj.Size())) + n13, err13 := m.RcObj.MarshalTo(dAtA[i:]) + if err13 != nil { + return 0, err13 + } + i += n13 + } + if m.Typ != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintSdk(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.ObjID != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.ObjID)) + } + return i, nil +} + +func (m *ResultFaceDetect) 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 *ResultFaceDetect) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Pos != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Pos.Size())) + n14, err14 := m.Pos.MarshalTo(dAtA[i:]) + if err14 != nil { + return 0, err14 + } + i += n14 + } + if m.Result != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Result.Size())) + n15, err15 := m.Result.MarshalTo(dAtA[i:]) + if err15 != nil { + return 0, err15 + } + i += n15 + } + if len(m.Feats) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Feats))) + i += copy(dAtA[i:], m.Feats) + } + 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 len(m.Faces) > 0 { + for _, msg := range m.Faces { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ResultFaceExtCom) 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 *ResultFaceExtCom) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Feats) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Feats))) + i += copy(dAtA[i:], m.Feats) + } + if len(m.Comp) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Comp))) + i += copy(dAtA[i:], m.Comp) + } + if m.Pos != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Pos.Size())) + n16, err16 := m.Pos.MarshalTo(dAtA[i:]) + if err16 != nil { + return 0, err16 + } + i += n16 + } + return i, nil +} + +func (m *ParamFaceFeature) 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 *ParamFaceFeature) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.ExtComp) > 0 { + for _, msg := range m.ExtComp { + dAtA[i] = 0x12 + i++ + i = encodeVarintSdk(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + 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 = encodeVarintSdk(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *SoInfo) 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 *SoInfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.SdkId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.SdkId))) + i += copy(dAtA[i:], m.SdkId) + } + if len(m.SoName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.SoName))) + i += copy(dAtA[i:], m.SoName) + } + return i, nil +} + +func (m *PlateID) 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 *PlateID) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.License) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.License))) + i += copy(dAtA[i:], m.License) + } + if len(m.Color) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Color))) + i += copy(dAtA[i:], m.Color) + } + if m.NColor != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NColor)) + } + if m.NType != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NType)) + } + if m.NConfidence != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NConfidence)) + } + if m.NBright != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NBright)) + } + if m.NDirection != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NDirection)) + } + if m.RcLocation != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.RcLocation.Size())) + n17, err17 := m.RcLocation.MarshalTo(dAtA[i:]) + if err17 != nil { + return 0, err17 + } + i += n17 + } + if m.NTime != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NTime)) + } + if m.NCarBright != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NCarBright)) + } + if m.NCarLogo != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NCarLogo)) + } + if m.NCarType != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NCarType)) + } + if len(m.PlateBin) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.PlateBin))) + i += copy(dAtA[i:], m.PlateBin) + } + if len(m.NBinPlateWidth) > 0 { + dAtA[i] = 0x72 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.NBinPlateWidth))) + i += copy(dAtA[i:], m.NBinPlateWidth) + } + if len(m.NBinPlateHeight) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.NBinPlateHeight))) + i += copy(dAtA[i:], m.NBinPlateHeight) + } + if m.RcLogoLocation != nil { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.RcLogoLocation.Size())) + n18, err18 := m.RcLogoLocation.MarshalTo(dAtA[i:]) + if err18 != nil { + return 0, err18 + } + i += n18 + } + if len(m.NCarModel) > 0 { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.NCarModel))) + i += copy(dAtA[i:], m.NCarModel) + } + if len(m.NCarModelConfidence) > 0 { + dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.NCarModelConfidence))) + i += copy(dAtA[i:], m.NCarModelConfidence) + } + return i, nil +} + +func (m *PlateIDResult) 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 *PlateIDResult) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Result) > 0 { + for _, msg := range m.Result { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func encodeVarintSdk(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 *Image) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Width != 0 { + n += 1 + sovSdk(uint64(m.Width)) + } + if m.Height != 0 { + n += 1 + sovSdk(uint64(m.Height)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.Timestamp) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + if m.Id != 0 { + n += 1 + sovSdk(uint64(m.Id)) + } + l = len(m.Cid) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + return n +} + +func (m *FaceAngle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Yaw != 0 { + n += 1 + sovSdk(uint64(m.Yaw)) + } + if m.Pitch != 0 { + n += 1 + sovSdk(uint64(m.Pitch)) + } + if m.Roll != 0 { + n += 1 + sovSdk(uint64(m.Roll)) + } + if m.Confidence != 0 { + n += 5 + } + return n +} + +func (m *ThftResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Gender != 0 { + n += 1 + sovSdk(uint64(m.Gender)) + } + if m.Age != 0 { + n += 1 + sovSdk(uint64(m.Age)) + } + if m.Race != 0 { + n += 1 + sovSdk(uint64(m.Race)) + } + if m.Beauty != 0 { + n += 1 + sovSdk(uint64(m.Beauty)) + } + if m.Smile != 0 { + n += 1 + sovSdk(uint64(m.Smile)) + } + 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 + sovSdk(uint64(l)) + } + if m.PtLeftEye != nil { + l = m.PtLeftEye.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.PtRightEye != nil { + l = m.PtRightEye.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.PtMouth != nil { + l = m.PtMouth.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.PtNose != nil { + l = m.PtNose.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.FAngle != nil { + l = m.FAngle.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.Quality != 0 { + n += 1 + sovSdk(uint64(m.Quality)) + } + l = len(m.FacialData) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + if m.FaceID != 0 { + n += 1 + sovSdk(uint64(m.FaceID)) + } + 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 + sovSdk(uint64(l)) + } + if m.PtLeftEye != nil { + l = m.PtLeftEye.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.PtRightEye != nil { + l = m.PtRightEye.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.PtMouth != nil { + l = m.PtMouth.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.PtNose != nil { + l = m.PtNose.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.FAngle != nil { + l = m.FAngle.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.Quality != 0 { + n += 1 + sovSdk(uint64(m.Quality)) + } + l = len(m.FacialData) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + if m.FaceID != 0 { + n += 1 + sovSdk(uint64(m.FaceID)) + } + 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 + sovSdk(uint64(l)) + } + if m.Typ != 0 { + n += 1 + sovSdk(uint64(m.Typ)) + } + if m.Prob != 0 { + n += 5 + } + if m.ObjID != 0 { + n += 1 + sovSdk(uint64(m.ObjID)) + } + return n +} + +func (m *ResultFaceDetect) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pos != nil { + l = m.Pos.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.Result != nil { + l = m.Result.Size() + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.Feats) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + return n +} + +func (m *ParamFacePos) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Faces) > 0 { + for _, e := range m.Faces { + l = e.Size() + n += 1 + l + sovSdk(uint64(l)) + } + } + return n +} + +func (m *ResultFaceExtCom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Feats) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.Comp) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + if m.Pos != nil { + l = m.Pos.Size() + n += 1 + l + sovSdk(uint64(l)) + } + return n +} + +func (m *ParamFaceFeature) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ExtComp) > 0 { + for _, e := range m.ExtComp { + l = e.Size() + n += 1 + l + sovSdk(uint64(l)) + } + } + 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 + sovSdk(uint64(l)) + } + } + return n +} + +func (m *SoInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.SdkId) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.SoName) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + return n +} + +func (m *PlateID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.License) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.Color) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + if m.NColor != 0 { + n += 1 + sovSdk(uint64(m.NColor)) + } + if m.NType != 0 { + n += 1 + sovSdk(uint64(m.NType)) + } + if m.NConfidence != 0 { + n += 1 + sovSdk(uint64(m.NConfidence)) + } + if m.NBright != 0 { + n += 1 + sovSdk(uint64(m.NBright)) + } + if m.NDirection != 0 { + n += 1 + sovSdk(uint64(m.NDirection)) + } + if m.RcLocation != nil { + l = m.RcLocation.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.NTime != 0 { + n += 1 + sovSdk(uint64(m.NTime)) + } + if m.NCarBright != 0 { + n += 1 + sovSdk(uint64(m.NCarBright)) + } + if m.NCarLogo != 0 { + n += 1 + sovSdk(uint64(m.NCarLogo)) + } + if m.NCarType != 0 { + n += 1 + sovSdk(uint64(m.NCarType)) + } + l = len(m.PlateBin) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.NBinPlateWidth) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.NBinPlateHeight) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + if m.RcLogoLocation != nil { + l = m.RcLogoLocation.Size() + n += 2 + l + sovSdk(uint64(l)) + } + l = len(m.NCarModel) + if l > 0 { + n += 2 + l + sovSdk(uint64(l)) + } + l = len(m.NCarModelConfidence) + if l > 0 { + n += 2 + l + sovSdk(uint64(l)) + } + return n +} + +func (m *PlateIDResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Result) > 0 { + for _, e := range m.Result { + l = e.Size() + n += 1 + l + sovSdk(uint64(l)) + } + } + return n +} + +func sovSdk(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozSdk(x uint64) (n int) { + return sovSdk(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 Timestamp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + 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 ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Timestamp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + 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 ErrIntOverflowSdk + } + 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 ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + 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 := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + 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 := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FaceID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + 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 := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 ErrIntOverflowSdk + } + 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)) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjID", wireType) + } + m.ObjID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ObjID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResultFaceDetect) 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 ErrIntOverflowSdk + } + 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: ResultFaceDetect: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResultFaceDetect: 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 Result", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feats", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feats = append(m.Feats[:0], dAtA[iNdEx:postIndex]...) + if m.Feats == nil { + m.Feats = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + 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 ErrIntOverflowSdk + } + 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 Faces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Faces = append(m.Faces, &ResultFaceDetect{}) + if err := m.Faces[len(m.Faces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResultFaceExtCom) 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 ErrIntOverflowSdk + } + 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: ResultFaceExtCom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResultFaceExtCom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feats", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feats = append(m.Feats[:0], dAtA[iNdEx:postIndex]...) + if m.Feats == nil { + m.Feats = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Comp", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Comp = append(m.Comp[:0], dAtA[iNdEx:postIndex]...) + if m.Comp == nil { + m.Comp = []byte{} + } + iNdEx = postIndex + case 3: + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pos == nil { + m.Pos = &ResultFaceDetect{} + } + if err := m.Pos.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParamFaceFeature) 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 ErrIntOverflowSdk + } + 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: ParamFaceFeature: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ParamFaceFeature: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtComp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtComp = append(m.ExtComp, &ResultFaceExtCom{}) + if err := m.ExtComp[len(m.ExtComp)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + 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 ErrIntOverflowSdk + } + 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SoInfo) 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 ErrIntOverflowSdk + } + 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: SoInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SoInfo: 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 ErrIntOverflowSdk + } + 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 ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 SdkId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + 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 ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SoName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + 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 ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SoName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PlateID) 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 ErrIntOverflowSdk + } + 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: PlateID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PlateID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field License", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + 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 ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.License = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Color", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + 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 ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Color = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NColor", wireType) + } + m.NColor = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NColor |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NType", wireType) + } + m.NType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NType |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NConfidence", wireType) + } + m.NConfidence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NConfidence |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NBright", wireType) + } + m.NBright = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NBright |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NDirection", wireType) + } + m.NDirection = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NDirection |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RcLocation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RcLocation == nil { + m.RcLocation = &Rect{} + } + if err := m.RcLocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NTime", wireType) + } + m.NTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NTime |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarBright", wireType) + } + m.NCarBright = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NCarBright |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarLogo", wireType) + } + m.NCarLogo = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NCarLogo |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarType", wireType) + } + m.NCarType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NCarType |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PlateBin", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PlateBin = append(m.PlateBin[:0], dAtA[iNdEx:postIndex]...) + if m.PlateBin == nil { + m.PlateBin = []byte{} + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NBinPlateWidth", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NBinPlateWidth = append(m.NBinPlateWidth[:0], dAtA[iNdEx:postIndex]...) + if m.NBinPlateWidth == nil { + m.NBinPlateWidth = []byte{} + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NBinPlateHeight", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NBinPlateHeight = append(m.NBinPlateHeight[:0], dAtA[iNdEx:postIndex]...) + if m.NBinPlateHeight == nil { + m.NBinPlateHeight = []byte{} + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RcLogoLocation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RcLogoLocation == nil { + m.RcLogoLocation = &Rect{} + } + if err := m.RcLogoLocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarModel", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NCarModel = append(m.NCarModel[:0], dAtA[iNdEx:postIndex]...) + if m.NCarModel == nil { + m.NCarModel = []byte{} + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarModelConfidence", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NCarModelConfidence = append(m.NCarModelConfidence[:0], dAtA[iNdEx:postIndex]...) + if m.NCarModelConfidence == nil { + m.NCarModelConfidence = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PlateIDResult) 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 ErrIntOverflowSdk + } + 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: PlateIDResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PlateIDResult: 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Result = append(m.Result, &PlateID{}) + if err := m.Result[len(m.Result)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSdk(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, ErrIntOverflowSdk + } + 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, ErrIntOverflowSdk + } + 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, ErrIntOverflowSdk + } + 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, ErrInvalidLengthSdk + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthSdk + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSdk + } + 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 := skipSdk(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthSdk + } + } + 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 ( + ErrInvalidLengthSdk = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSdk = fmt.Errorf("proto: integer overflow") +) diff --git a/sdk.proto b/sdk.proto index b6b9036..afe0f0a 100644 --- a/sdk.proto +++ b/sdk.proto @@ -85,4 +85,32 @@ string id = 1; string sdkId = 2; string soName = 3; +} + +// sdk plate id detect +message PlateID{ + string license = 1; + string color = 2; + int32 nColor = 3; + int32 nType = 4; + int32 nConfidence = 5; + int32 nBright = 6; + int32 nDirection = 7; + Rect rcLocation = 8; + int32 nTime = 9; + int32 nCarBright = 10; + int32 nCarLogo = 11; + int32 nCarType = 12; + bytes plateBin = 13; + bytes nBinPlateWidth = 14; + bytes nBinPlateHeight = 15; + Rect rcLogoLocation = 16; + bytes nCarModel = 17; + bytes nCarModelConfidence = 18; + + // bytes picCache = 19; + // bytes reserved = 20; +} +message PlateIDResult { + repeated PlateID result = 1; } \ No newline at end of file diff --git a/sysset.pb.go b/sysset.pb.go index f99dde2..7bd9562 100644 --- a/sysset.pb.go +++ b/sysset.pb.go @@ -1,11 +1,12 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: sysset.proto package protomsg import ( fmt "fmt" - proto "github.com/golang/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" math "math" ) @@ -18,30 +19,27 @@ // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package type LocalConfig struct { - ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` - ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` - ServerType int32 `protobuf:"varint,3,opt,name=server_type,json=serverType,proto3" json:"server_type,omitempty"` - ServerIp string `protobuf:"bytes,4,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"` - AlarmIp string `protobuf:"bytes,5,opt,name=alarm_ip,json=alarmIp,proto3" json:"alarm_ip,omitempty"` - AlarmPort int32 `protobuf:"varint,6,opt,name=alarm_port,json=alarmPort,proto3" json:"alarm_port,omitempty"` - WebPicIp string `protobuf:"bytes,7,opt,name=web_pic_ip,json=webPicIp,proto3" json:"web_pic_ip,omitempty"` - WebPicPort int32 `protobuf:"varint,8,opt,name=web_pic_port,json=webPicPort,proto3" json:"web_pic_port,omitempty"` - EsPicIp string `protobuf:"bytes,9,opt,name=es_pic_ip,json=esPicIp,proto3" json:"es_pic_ip,omitempty"` - EsPicPort int32 `protobuf:"varint,10,opt,name=es_pic_port,json=esPicPort,proto3" json:"es_pic_port,omitempty"` - CutMaxDuration int32 `protobuf:"varint,11,opt,name=cut_max_duration,json=cutMaxDuration,proto3" json:"cut_max_duration,omitempty"` - CutMinDuration int32 `protobuf:"varint,12,opt,name=cut_min_duration,json=cutMinDuration,proto3" json:"cut_min_duration,omitempty"` - Reserved string `protobuf:"bytes,13,opt,name=reserved,proto3" json:"reserved,omitempty"` - GateWay string `protobuf:"bytes,14,opt,name=gate_way,json=gateWay,proto3" json:"gate_way,omitempty"` - NetMask string `protobuf:"bytes,15,opt,name=net_mask,json=netMask,proto3" json:"net_mask,omitempty"` - RealMax int32 `protobuf:"varint,16,opt,name=real_max,json=realMax,proto3" json:"real_max,omitempty"` - AlarmThresholdType int32 `protobuf:"varint,17,opt,name=alarm_threshold_type,json=alarmThresholdType,proto3" json:"alarm_threshold_type,omitempty"` - AlarmThreshold int32 `protobuf:"varint,18,opt,name=alarm_threshold,json=alarmThreshold,proto3" json:"alarm_threshold,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` + ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` + ServerType int32 `protobuf:"varint,3,opt,name=server_type,json=serverType,proto3" json:"server_type,omitempty"` + ServerIp string `protobuf:"bytes,4,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"` + AlarmIp string `protobuf:"bytes,5,opt,name=alarm_ip,json=alarmIp,proto3" json:"alarm_ip,omitempty"` + AlarmPort int32 `protobuf:"varint,6,opt,name=alarm_port,json=alarmPort,proto3" json:"alarm_port,omitempty"` + WebPicIp string `protobuf:"bytes,7,opt,name=web_pic_ip,json=webPicIp,proto3" json:"web_pic_ip,omitempty"` + WebPicPort int32 `protobuf:"varint,8,opt,name=web_pic_port,json=webPicPort,proto3" json:"web_pic_port,omitempty"` + EsPicIp string `protobuf:"bytes,9,opt,name=es_pic_ip,json=esPicIp,proto3" json:"es_pic_ip,omitempty"` + EsPicPort int32 `protobuf:"varint,10,opt,name=es_pic_port,json=esPicPort,proto3" json:"es_pic_port,omitempty"` + CutMaxDuration int32 `protobuf:"varint,11,opt,name=cut_max_duration,json=cutMaxDuration,proto3" json:"cut_max_duration,omitempty"` + CutMinDuration int32 `protobuf:"varint,12,opt,name=cut_min_duration,json=cutMinDuration,proto3" json:"cut_min_duration,omitempty"` + Reserved string `protobuf:"bytes,13,opt,name=reserved,proto3" json:"reserved,omitempty"` + GateWay string `protobuf:"bytes,14,opt,name=gate_way,json=gateWay,proto3" json:"gate_way,omitempty"` + NetMask string `protobuf:"bytes,15,opt,name=net_mask,json=netMask,proto3" json:"net_mask,omitempty"` + RealMax int32 `protobuf:"varint,16,opt,name=real_max,json=realMax,proto3" json:"real_max,omitempty"` + AlarmThresholdType int32 `protobuf:"varint,17,opt,name=alarm_threshold_type,json=alarmThresholdType,proto3" json:"alarm_threshold_type,omitempty"` + AlarmThreshold int32 `protobuf:"varint,18,opt,name=alarm_threshold,json=alarmThreshold,proto3" json:"alarm_threshold,omitempty"` } func (m *LocalConfig) Reset() { *m = LocalConfig{} } @@ -50,18 +48,26 @@ func (*LocalConfig) Descriptor() ([]byte, []int) { return fileDescriptor_5be590c6b2a0d755, []int{0} } - func (m *LocalConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LocalConfig.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *LocalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LocalConfig.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_LocalConfig.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 *LocalConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_LocalConfig.Merge(m, src) } func (m *LocalConfig) XXX_Size() int { - return xxx_messageInfo_LocalConfig.Size(m) + return m.Size() } func (m *LocalConfig) XXX_DiscardUnknown() { xxx_messageInfo_LocalConfig.DiscardUnknown(m) @@ -196,13 +202,10 @@ } type PollConfig struct { - ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` - PollPeriod int32 `protobuf:"varint,2,opt,name=poll_period,json=pollPeriod,proto3" json:"poll_period,omitempty"` - Delay int32 `protobuf:"varint,3,opt,name=delay,proto3" json:"delay,omitempty"` - Enable bool `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` + PollPeriod int32 `protobuf:"varint,2,opt,name=poll_period,json=pollPeriod,proto3" json:"poll_period,omitempty"` + Delay int32 `protobuf:"varint,3,opt,name=delay,proto3" json:"delay,omitempty"` + Enable bool `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"` } func (m *PollConfig) Reset() { *m = PollConfig{} } @@ -211,18 +214,26 @@ func (*PollConfig) Descriptor() ([]byte, []int) { return fileDescriptor_5be590c6b2a0d755, []int{1} } - func (m *PollConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PollConfig.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *PollConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PollConfig.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_PollConfig.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 *PollConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_PollConfig.Merge(m, src) } func (m *PollConfig) XXX_Size() int { - return xxx_messageInfo_PollConfig.Size(m) + return m.Size() } func (m *PollConfig) XXX_DiscardUnknown() { xxx_messageInfo_PollConfig.DiscardUnknown(m) @@ -259,14 +270,11 @@ } type Cluster struct { - ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` - VirtualIp string `protobuf:"bytes,4,opt,name=virtual_ip,json=virtualIp,proto3" json:"virtual_ip,omitempty"` - Nodes []*ClusterNode `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` + VirtualIp string `protobuf:"bytes,4,opt,name=virtual_ip,json=virtualIp,proto3" json:"virtual_ip,omitempty"` + Nodes []*ClusterNode `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"` } func (m *Cluster) Reset() { *m = Cluster{} } @@ -275,18 +283,26 @@ func (*Cluster) Descriptor() ([]byte, []int) { return fileDescriptor_5be590c6b2a0d755, []int{2} } - func (m *Cluster) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Cluster.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Cluster.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_Cluster.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 *Cluster) XXX_Merge(src proto.Message) { xxx_messageInfo_Cluster.Merge(m, src) } func (m *Cluster) XXX_Size() int { - return xxx_messageInfo_Cluster.Size(m) + return m.Size() } func (m *Cluster) XXX_DiscardUnknown() { xxx_messageInfo_Cluster.DiscardUnknown(m) @@ -330,16 +346,13 @@ } type ClusterNode struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - ServerId string `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` - ServerName string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` - NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - NodeIp string `protobuf:"bytes,6,opt,name=node_ip,json=nodeIp,proto3" json:"node_ip,omitempty"` - CreateTime string `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + ServerId string `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` + ServerName string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` + NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + NodeIp string `protobuf:"bytes,6,opt,name=node_ip,json=nodeIp,proto3" json:"node_ip,omitempty"` + CreateTime string `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` } func (m *ClusterNode) Reset() { *m = ClusterNode{} } @@ -348,18 +361,26 @@ func (*ClusterNode) Descriptor() ([]byte, []int) { return fileDescriptor_5be590c6b2a0d755, []int{3} } - func (m *ClusterNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClusterNode.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *ClusterNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClusterNode.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_ClusterNode.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 *ClusterNode) XXX_Merge(src proto.Message) { xxx_messageInfo_ClusterNode.Merge(m, src) } func (m *ClusterNode) XXX_Size() int { - return xxx_messageInfo_ClusterNode.Size(m) + return m.Size() } func (m *ClusterNode) XXX_DiscardUnknown() { xxx_messageInfo_ClusterNode.DiscardUnknown(m) @@ -426,41 +447,1766 @@ func init() { proto.RegisterFile("sysset.proto", fileDescriptor_5be590c6b2a0d755) } var fileDescriptor_5be590c6b2a0d755 = []byte{ - // 565 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xdb, 0x6e, 0x13, 0x31, - 0x10, 0x55, 0xd2, 0x26, 0xd9, 0x9d, 0x0d, 0x6d, 0xb1, 0x0a, 0x98, 0x72, 0x0b, 0x79, 0x21, 0x12, - 0x52, 0x85, 0xe0, 0x13, 0xca, 0x4b, 0x24, 0x5a, 0x45, 0x51, 0x25, 0x1e, 0x23, 0x67, 0x3d, 0xb4, - 0x56, 0x77, 0xd7, 0x96, 0xed, 0x34, 0xd9, 0xef, 0xe2, 0x3b, 0xf8, 0x02, 0x7e, 0x06, 0x79, 0xbc, - 0x9b, 0xa4, 0x45, 0x42, 0x3c, 0x25, 0x73, 0xce, 0x99, 0x9b, 0xf7, 0x0c, 0x0c, 0x5d, 0xed, 0x1c, - 0xfa, 0x73, 0x63, 0xb5, 0xd7, 0x2c, 0xa1, 0x9f, 0xd2, 0xdd, 0x8c, 0x7f, 0x1f, 0x42, 0xf6, 0x4d, - 0xe7, 0xa2, 0xb8, 0xd0, 0xd5, 0x0f, 0x75, 0xc3, 0x5e, 0x41, 0xea, 0xd0, 0xde, 0xa3, 0x5d, 0x28, - 0xc9, 0x3b, 0xa3, 0xce, 0x24, 0x9d, 0x27, 0x11, 0x98, 0x4a, 0xf6, 0x0e, 0xb2, 0x86, 0xac, 0x44, - 0x89, 0xbc, 0x4b, 0x34, 0x44, 0xe8, 0x4a, 0x94, 0xb8, 0x27, 0xf0, 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 0x9b, 0x3c, 0x78, 0xe0, 0x83, 0x7f, 0x1f, 0xef, 0xe1, 0x5f, - 0xc7, 0xfb, 0x02, 0x06, 0x61, 0x8a, 0x90, 0x1b, 0xaf, 0xaf, 0x1f, 0xc2, 0xa9, 0xdc, 0x11, 0x86, - 0x2e, 0xaf, 0x25, 0x4c, 0x28, 0x99, 0x5b, 0x0c, 0x66, 0xf4, 0xaa, 0xc4, 0xe6, 0xee, 0x20, 0x42, - 0xd7, 0xaa, 0xc4, 0x65, 0x9f, 0x96, 0xfd, 0xf2, 0x27, 0x00, 0x00, 0xff, 0xff, 0x1c, 0xcb, 0xf3, - 0x28, 0x7e, 0x04, 0x00, 0x00, + // 601 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xdd, 0x6e, 0xd3, 0x30, + 0x14, 0x5e, 0xba, 0xb5, 0x4d, 0x4e, 0xca, 0x36, 0xac, 0x01, 0x66, 0x40, 0x28, 0xbd, 0xa1, 0x12, + 0xd2, 0x84, 0xe0, 0x0d, 0x18, 0x37, 0x95, 0xd8, 0x54, 0x55, 0x93, 0xb8, 0xac, 0xdc, 0xf8, 0xb0, + 0x45, 0x4b, 0x62, 0xcb, 0x76, 0xd7, 0xe6, 0x2d, 0x78, 0x17, 0x5e, 0x82, 0x1b, 0xa4, 0x5d, 0x22, + 0x71, 0x83, 0xb6, 0x17, 0x41, 0xb6, 0x93, 0xb6, 0x1b, 0x12, 0xe2, 0xaa, 0x3d, 0xdf, 0xf7, 0x9d, + 0x1f, 0x9f, 0x7c, 0x07, 0x7a, 0xba, 0xd2, 0x1a, 0xcd, 0x91, 0x54, 0xc2, 0x08, 0x12, 0xba, 0x9f, + 0x42, 0x9f, 0x0f, 0x7e, 0xed, 0x40, 0xfc, 0x49, 0xa4, 0x2c, 0x3f, 0x16, 0xe5, 0x97, 0xec, 0x9c, + 0x3c, 0x83, 0x48, 0xa3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b, + 0xc3, 0xf8, 0xdd, 0xa3, 0xa3, 0xe6, 0xf4, 0x8e, 0xea, 0xf1, 0x4e, 0x05, 0xc7, 0x89, 0xd7, 0x0c, + 0x7e, 0x04, 0x10, 0x6f, 0xc0, 0x64, 0x17, 0x5a, 0xab, 0x89, 0x5b, 0x19, 0xbf, 0xf7, 0x92, 0xd6, + 0xfd, 0x97, 0xdc, 0x59, 0xf0, 0xf6, 0xbf, 0x8f, 0x77, 0xe7, 0xaf, 0xe3, 0x7d, 0x02, 0x5d, 0x3b, + 0x85, 0xcd, 0xf5, 0xd7, 0xd7, 0xb1, 0xe1, 0x88, 0xaf, 0x09, 0xe9, 0x2e, 0xaf, 0x21, 0xa4, 0x2d, + 0x99, 0x2a, 0xb4, 0x66, 0x34, 0x59, 0x81, 0xf5, 0xdd, 0x81, 0x87, 0xce, 0xb2, 0x02, 0x3f, 0xd0, + 0xef, 0x37, 0x49, 0x70, 0x7d, 0x93, 0x04, 0xbf, 0x6f, 0x92, 0xe0, 0xeb, 0x6d, 0xb2, 0x75, 0x7d, + 0x9b, 0x6c, 0xfd, 0xbc, 0x4d, 0xb6, 0x66, 0x1d, 0xb7, 0x86, 0xf7, 0x7f, 0x02, 0x00, 0x00, 0xff, + 0xff, 0x4c, 0xdc, 0xed, 0xe9, 0x98, 0x04, 0x00, 0x00, } + +func (m *LocalConfig) 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 *LocalConfig) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.ServerId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerId))) + i += copy(dAtA[i:], m.ServerId) + } + if len(m.ServerName) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerName))) + i += copy(dAtA[i:], m.ServerName) + } + if m.ServerType != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.ServerType)) + } + if len(m.ServerIp) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerIp))) + i += copy(dAtA[i:], m.ServerIp) + } + if len(m.AlarmIp) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.AlarmIp))) + i += copy(dAtA[i:], m.AlarmIp) + } + if m.AlarmPort != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.AlarmPort)) + } + if len(m.WebPicIp) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.WebPicIp))) + i += copy(dAtA[i:], m.WebPicIp) + } + if m.WebPicPort != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.WebPicPort)) + } + if len(m.EsPicIp) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.EsPicIp))) + i += copy(dAtA[i:], m.EsPicIp) + } + if m.EsPicPort != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.EsPicPort)) + } + if m.CutMaxDuration != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.CutMaxDuration)) + } + if m.CutMinDuration != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.CutMinDuration)) + } + if len(m.Reserved) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.Reserved))) + i += copy(dAtA[i:], m.Reserved) + } + if len(m.GateWay) > 0 { + dAtA[i] = 0x72 + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.GateWay))) + i += copy(dAtA[i:], m.GateWay) + } + if len(m.NetMask) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.NetMask))) + i += copy(dAtA[i:], m.NetMask) + } + if m.RealMax != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.RealMax)) + } + if m.AlarmThresholdType != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.AlarmThresholdType)) + } + if m.AlarmThreshold != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.AlarmThreshold)) + } + return i, nil +} + +func (m *PollConfig) 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 *PollConfig) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.ServerId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerId))) + i += copy(dAtA[i:], m.ServerId) + } + if m.PollPeriod != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.PollPeriod)) + } + if m.Delay != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintSysset(dAtA, i, uint64(m.Delay)) + } + if m.Enable { + dAtA[i] = 0x20 + i++ + if m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + return i, nil +} + +func (m *Cluster) 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 *Cluster) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.ClusterId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.ClusterId))) + i += copy(dAtA[i:], m.ClusterId) + } + if len(m.ClusterName) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.ClusterName))) + i += copy(dAtA[i:], m.ClusterName) + } + if len(m.Password) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.Password))) + i += copy(dAtA[i:], m.Password) + } + if len(m.VirtualIp) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.VirtualIp))) + i += copy(dAtA[i:], m.VirtualIp) + } + if len(m.Nodes) > 0 { + for _, msg := range m.Nodes { + dAtA[i] = 0x2a + i++ + i = encodeVarintSysset(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ClusterNode) 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 *ClusterNode) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.ClusterId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.ClusterId))) + i += copy(dAtA[i:], m.ClusterId) + } + if len(m.ServerId) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerId))) + i += copy(dAtA[i:], m.ServerId) + } + if len(m.ServerName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerName))) + i += copy(dAtA[i:], m.ServerName) + } + if len(m.NodeId) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.NodeId))) + i += copy(dAtA[i:], m.NodeId) + } + if len(m.NodeIp) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.NodeIp))) + i += copy(dAtA[i:], m.NodeIp) + } + if len(m.CreateTime) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintSysset(dAtA, i, uint64(len(m.CreateTime))) + i += copy(dAtA[i:], m.CreateTime) + } + return i, nil +} + +func encodeVarintSysset(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 *LocalConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ServerId) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.ServerName) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + if m.ServerType != 0 { + n += 1 + sovSysset(uint64(m.ServerType)) + } + l = len(m.ServerIp) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.AlarmIp) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + if m.AlarmPort != 0 { + n += 1 + sovSysset(uint64(m.AlarmPort)) + } + l = len(m.WebPicIp) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + if m.WebPicPort != 0 { + n += 1 + sovSysset(uint64(m.WebPicPort)) + } + l = len(m.EsPicIp) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + if m.EsPicPort != 0 { + n += 1 + sovSysset(uint64(m.EsPicPort)) + } + if m.CutMaxDuration != 0 { + n += 1 + sovSysset(uint64(m.CutMaxDuration)) + } + if m.CutMinDuration != 0 { + n += 1 + sovSysset(uint64(m.CutMinDuration)) + } + l = len(m.Reserved) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.GateWay) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.NetMask) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + if m.RealMax != 0 { + n += 2 + sovSysset(uint64(m.RealMax)) + } + if m.AlarmThresholdType != 0 { + n += 2 + sovSysset(uint64(m.AlarmThresholdType)) + } + if m.AlarmThreshold != 0 { + n += 2 + sovSysset(uint64(m.AlarmThreshold)) + } + return n +} + +func (m *PollConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ServerId) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + if m.PollPeriod != 0 { + n += 1 + sovSysset(uint64(m.PollPeriod)) + } + if m.Delay != 0 { + n += 1 + sovSysset(uint64(m.Delay)) + } + if m.Enable { + n += 2 + } + return n +} + +func (m *Cluster) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.Password) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.VirtualIp) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + if len(m.Nodes) > 0 { + for _, e := range m.Nodes { + l = e.Size() + n += 1 + l + sovSysset(uint64(l)) + } + } + return n +} + +func (m *ClusterNode) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.ServerId) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.ServerName) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.NodeId) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.NodeIp) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + l = len(m.CreateTime) + if l > 0 { + n += 1 + l + sovSysset(uint64(l)) + } + return n +} + +func sovSysset(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozSysset(x uint64) (n int) { + return sovSysset(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LocalConfig) 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 ErrIntOverflowSysset + } + 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: LocalConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LocalConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerType", wireType) + } + m.ServerType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ServerType |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServerIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AlarmIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AlarmIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AlarmPort", wireType) + } + m.AlarmPort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AlarmPort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WebPicIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WebPicIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WebPicPort", wireType) + } + m.WebPicPort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WebPicPort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EsPicIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EsPicIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EsPicPort", wireType) + } + m.EsPicPort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EsPicPort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CutMaxDuration", wireType) + } + m.CutMaxDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CutMaxDuration |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CutMinDuration", wireType) + } + m.CutMinDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CutMinDuration |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + 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 ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reserved = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GateWay", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GateWay = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetMask", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetMask = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RealMax", wireType) + } + m.RealMax = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RealMax |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AlarmThresholdType", wireType) + } + m.AlarmThresholdType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AlarmThresholdType |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AlarmThreshold", wireType) + } + m.AlarmThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AlarmThreshold |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipSysset(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSysset + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSysset + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PollConfig) 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 ErrIntOverflowSysset + } + 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: PollConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PollConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PollPeriod", wireType) + } + m.PollPeriod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PollPeriod |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Delay", wireType) + } + m.Delay = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Delay |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + 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 ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enable = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipSysset(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSysset + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSysset + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Cluster) 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 ErrIntOverflowSysset + } + 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: Cluster: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Cluster: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Password = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VirtualIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSysset + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nodes = append(m.Nodes, &ClusterNode{}) + if err := m.Nodes[len(m.Nodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSysset(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSysset + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSysset + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterNode) 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 ErrIntOverflowSysset + } + 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: ClusterNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterNode: 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 ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NodeId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NodeIp = 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 ErrIntOverflowSysset + } + 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 ErrInvalidLengthSysset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSysset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreateTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSysset(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSysset + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSysset + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSysset(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, ErrIntOverflowSysset + } + 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, ErrIntOverflowSysset + } + 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, ErrIntOverflowSysset + } + 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, ErrInvalidLengthSysset + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthSysset + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSysset + } + 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 := skipSysset(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthSysset + } + } + 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 ( + ErrInvalidLengthSysset = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSysset = fmt.Errorf("proto: integer overflow") +) diff --git a/videoperson.pb.go b/videoperson.pb.go index 39d050b..5792535 100644 --- a/videoperson.pb.go +++ b/videoperson.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: videoperson.proto package protomsg import ( + encoding_binary "encoding/binary" fmt "fmt" - proto "github.com/golang/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" math "math" ) @@ -18,41 +20,38 @@ // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Videopersons struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CameraId string `protobuf:"bytes,2,opt,name=cameraId,proto3" json:"cameraId,omitempty"` - CameraAddr string `protobuf:"bytes,3,opt,name=cameraAddr,proto3" json:"cameraAddr,omitempty"` - PicDate string `protobuf:"bytes,4,opt,name=picDate,proto3" json:"picDate,omitempty"` - PicMaxUrl string `protobuf:"bytes,5,opt,name=picMaxUrl,proto3" json:"picMaxUrl,omitempty"` - TaskId string `protobuf:"bytes,6,opt,name=taskId,proto3" json:"taskId,omitempty"` - TaskName string `protobuf:"bytes,7,opt,name=taskName,proto3" json:"taskName,omitempty"` - SdkName string `protobuf:"bytes,8,opt,name=sdkName,proto3" json:"sdkName,omitempty"` - Content string `protobuf:"bytes,9,opt,name=content,proto3" json:"content,omitempty"` - LikeDate string `protobuf:"bytes,10,opt,name=likeDate,proto3" json:"likeDate,omitempty"` - DetectScore string `protobuf:"bytes,11,opt,name=detectScore,proto3" json:"detectScore,omitempty"` - Sex string `protobuf:"bytes,12,opt,name=sex,proto3" json:"sex,omitempty"` - Age int32 `protobuf:"varint,13,opt,name=age,proto3" json:"age,omitempty"` - AgeDescription string `protobuf:"bytes,14,opt,name=ageDescription,proto3" json:"ageDescription,omitempty"` - Race string `protobuf:"bytes,15,opt,name=race,proto3" json:"race,omitempty"` - SmileLevel string `protobuf:"bytes,16,opt,name=smileLevel,proto3" json:"smileLevel,omitempty"` - BeautyLevel string `protobuf:"bytes,17,opt,name=beautyLevel,proto3" json:"beautyLevel,omitempty"` - PicSmUrl []string `protobuf:"bytes,18,rep,name=picSmUrl,proto3" json:"picSmUrl,omitempty"` - VideoUrl string `protobuf:"bytes,19,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"` - AnalyServerId string `protobuf:"bytes,20,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` - AnalyServerName string `protobuf:"bytes,21,opt,name=analyServerName,proto3" json:"analyServerName,omitempty"` - AnalyServerIp string `protobuf:"bytes,22,opt,name=analyServerIp,proto3" json:"analyServerIp,omitempty"` - ClusterId string `protobuf:"bytes,23,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - IsAlarm string `protobuf:"bytes,24,opt,name=isAlarm,proto3" json:"isAlarm,omitempty"` - IsAckAlarm string `protobuf:"bytes,25,opt,name=isAckAlarm,proto3" json:"isAckAlarm,omitempty"` - IsCollect int32 `protobuf:"varint,26,opt,name=isCollect,proto3" json:"isCollect,omitempty"` - IsDelete int32 `protobuf:"varint,27,opt,name=isDelete,proto3" json:"isDelete,omitempty"` - AlarmRules []*AlarmRules `protobuf:"bytes,28,rep,name=alarmRules,proto3" json:"alarmRules,omitempty"` - BaseInfo []*BaseInfo `protobuf:"bytes,29,rep,name=baseInfo,proto3" json:"baseInfo,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=cameraId,proto3" json:"cameraId,omitempty"` + CameraAddr string `protobuf:"bytes,3,opt,name=cameraAddr,proto3" json:"cameraAddr,omitempty"` + PicDate string `protobuf:"bytes,4,opt,name=picDate,proto3" json:"picDate,omitempty"` + PicMaxUrl string `protobuf:"bytes,5,opt,name=picMaxUrl,proto3" json:"picMaxUrl,omitempty"` + TaskId string `protobuf:"bytes,6,opt,name=taskId,proto3" json:"taskId,omitempty"` + TaskName string `protobuf:"bytes,7,opt,name=taskName,proto3" json:"taskName,omitempty"` + SdkName string `protobuf:"bytes,8,opt,name=sdkName,proto3" json:"sdkName,omitempty"` + Content string `protobuf:"bytes,9,opt,name=content,proto3" json:"content,omitempty"` + LikeDate string `protobuf:"bytes,10,opt,name=likeDate,proto3" json:"likeDate,omitempty"` + DetectScore string `protobuf:"bytes,11,opt,name=detectScore,proto3" json:"detectScore,omitempty"` + Sex string `protobuf:"bytes,12,opt,name=sex,proto3" json:"sex,omitempty"` + Age int32 `protobuf:"varint,13,opt,name=age,proto3" json:"age,omitempty"` + AgeDescription string `protobuf:"bytes,14,opt,name=ageDescription,proto3" json:"ageDescription,omitempty"` + Race string `protobuf:"bytes,15,opt,name=race,proto3" json:"race,omitempty"` + SmileLevel string `protobuf:"bytes,16,opt,name=smileLevel,proto3" json:"smileLevel,omitempty"` + BeautyLevel string `protobuf:"bytes,17,opt,name=beautyLevel,proto3" json:"beautyLevel,omitempty"` + PicSmUrl []string `protobuf:"bytes,18,rep,name=picSmUrl,proto3" json:"picSmUrl,omitempty"` + VideoUrl string `protobuf:"bytes,19,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"` + AnalyServerId string `protobuf:"bytes,20,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` + AnalyServerName string `protobuf:"bytes,21,opt,name=analyServerName,proto3" json:"analyServerName,omitempty"` + AnalyServerIp string `protobuf:"bytes,22,opt,name=analyServerIp,proto3" json:"analyServerIp,omitempty"` + ClusterId string `protobuf:"bytes,23,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + IsAlarm string `protobuf:"bytes,24,opt,name=isAlarm,proto3" json:"isAlarm,omitempty"` + IsAckAlarm string `protobuf:"bytes,25,opt,name=isAckAlarm,proto3" json:"isAckAlarm,omitempty"` + IsCollect int32 `protobuf:"varint,26,opt,name=isCollect,proto3" json:"isCollect,omitempty"` + IsDelete int32 `protobuf:"varint,27,opt,name=isDelete,proto3" json:"isDelete,omitempty"` + AlarmRules []*AlarmRules `protobuf:"bytes,28,rep,name=alarmRules,proto3" json:"alarmRules,omitempty"` + BaseInfo []*BaseInfo `protobuf:"bytes,29,rep,name=baseInfo,proto3" json:"baseInfo,omitempty"` } func (m *Videopersons) Reset() { *m = Videopersons{} } @@ -61,18 +60,26 @@ func (*Videopersons) Descriptor() ([]byte, []int) { return fileDescriptor_149f81aa0f752265, []int{0} } - func (m *Videopersons) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Videopersons.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *Videopersons) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Videopersons.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_Videopersons.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 *Videopersons) XXX_Merge(src proto.Message) { xxx_messageInfo_Videopersons.Merge(m, src) } func (m *Videopersons) XXX_Size() int { - return xxx_messageInfo_Videopersons.Size(m) + return m.Size() } func (m *Videopersons) XXX_DiscardUnknown() { xxx_messageInfo_Videopersons.DiscardUnknown(m) @@ -284,15 +291,12 @@ } type AlarmRules struct { - GroupId string `protobuf:"bytes,1,opt,name=groupId,proto3" json:"groupId,omitempty"` - AlarmLevel string `protobuf:"bytes,2,opt,name=alarmLevel,proto3" json:"alarmLevel,omitempty"` - RuleText string `protobuf:"bytes,3,opt,name=ruleText,proto3" json:"ruleText,omitempty"` - DefenceState bool `protobuf:"varint,4,opt,name=defenceState,proto3" json:"defenceState,omitempty"` - IsLink bool `protobuf:"varint,5,opt,name=isLink,proto3" json:"isLink,omitempty"` - LinkInfo string `protobuf:"bytes,6,opt,name=linkInfo,proto3" json:"linkInfo,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GroupId string `protobuf:"bytes,1,opt,name=groupId,proto3" json:"groupId,omitempty"` + AlarmLevel string `protobuf:"bytes,2,opt,name=alarmLevel,proto3" json:"alarmLevel,omitempty"` + RuleText string `protobuf:"bytes,3,opt,name=ruleText,proto3" json:"ruleText,omitempty"` + DefenceState bool `protobuf:"varint,4,opt,name=defenceState,proto3" json:"defenceState,omitempty"` + IsLink bool `protobuf:"varint,5,opt,name=isLink,proto3" json:"isLink,omitempty"` + LinkInfo string `protobuf:"bytes,6,opt,name=linkInfo,proto3" json:"linkInfo,omitempty"` } func (m *AlarmRules) Reset() { *m = AlarmRules{} } @@ -301,18 +305,26 @@ func (*AlarmRules) Descriptor() ([]byte, []int) { return fileDescriptor_149f81aa0f752265, []int{1} } - func (m *AlarmRules) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AlarmRules.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *AlarmRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AlarmRules.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_AlarmRules.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 *AlarmRules) XXX_Merge(src proto.Message) { xxx_messageInfo_AlarmRules.Merge(m, src) } func (m *AlarmRules) XXX_Size() int { - return xxx_messageInfo_AlarmRules.Size(m) + return m.Size() } func (m *AlarmRules) XXX_DiscardUnknown() { xxx_messageInfo_AlarmRules.DiscardUnknown(m) @@ -363,21 +375,18 @@ } type BaseInfo struct { - TableId string `protobuf:"bytes,1,opt,name=tableId,proto3" json:"tableId,omitempty"` - TableName string `protobuf:"bytes,2,opt,name=tableName,proto3" json:"tableName,omitempty"` - CompareScore float32 `protobuf:"fixed32,3,opt,name=compareScore,proto3" json:"compareScore,omitempty"` - PersonId string `protobuf:"bytes,4,opt,name=personId,proto3" json:"personId,omitempty"` - PersonName string `protobuf:"bytes,5,opt,name=personName,proto3" json:"personName,omitempty"` - PersonPicUrl string `protobuf:"bytes,6,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` - PhoneNum string `protobuf:"bytes,7,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` - Sex string `protobuf:"bytes,8,opt,name=sex,proto3" json:"sex,omitempty"` - IdCard string `protobuf:"bytes,9,opt,name=idCard,proto3" json:"idCard,omitempty"` - MonitorLevel string `protobuf:"bytes,10,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` - Content string `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"` - BwType string `protobuf:"bytes,12,opt,name=bwType,proto3" json:"bwType,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TableId string `protobuf:"bytes,1,opt,name=tableId,proto3" json:"tableId,omitempty"` + TableName string `protobuf:"bytes,2,opt,name=tableName,proto3" json:"tableName,omitempty"` + CompareScore float32 `protobuf:"fixed32,3,opt,name=compareScore,proto3" json:"compareScore,omitempty"` + PersonId string `protobuf:"bytes,4,opt,name=personId,proto3" json:"personId,omitempty"` + PersonName string `protobuf:"bytes,5,opt,name=personName,proto3" json:"personName,omitempty"` + PersonPicUrl string `protobuf:"bytes,6,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` + PhoneNum string `protobuf:"bytes,7,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` + Sex string `protobuf:"bytes,8,opt,name=sex,proto3" json:"sex,omitempty"` + IdCard string `protobuf:"bytes,9,opt,name=idCard,proto3" json:"idCard,omitempty"` + MonitorLevel string `protobuf:"bytes,10,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` + Content string `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"` + BwType string `protobuf:"bytes,12,opt,name=bwType,proto3" json:"bwType,omitempty"` } func (m *BaseInfo) Reset() { *m = BaseInfo{} } @@ -386,18 +395,26 @@ func (*BaseInfo) Descriptor() ([]byte, []int) { return fileDescriptor_149f81aa0f752265, []int{2} } - func (m *BaseInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BaseInfo.Unmarshal(m, b) + return m.Unmarshal(b) } func (m *BaseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BaseInfo.Marshal(b, m, deterministic) + if deterministic { + return xxx_messageInfo_BaseInfo.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 *BaseInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_BaseInfo.Merge(m, src) } func (m *BaseInfo) XXX_Size() int { - return xxx_messageInfo_BaseInfo.Size(m) + return m.Size() } func (m *BaseInfo) XXX_DiscardUnknown() { xxx_messageInfo_BaseInfo.DiscardUnknown(m) @@ -498,48 +515,2371 @@ func init() { proto.RegisterFile("videoperson.proto", fileDescriptor_149f81aa0f752265) } var fileDescriptor_149f81aa0f752265 = []byte{ - // 677 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x54, 0xcd, 0x6e, 0x13, 0x31, - 0x10, 0x56, 0x92, 0x36, 0xdd, 0x3a, 0xfd, 0x35, 0xa5, 0x98, 0x52, 0x50, 0x14, 0x21, 0x94, 0x53, - 0x0e, 0xc0, 0x0b, 0x84, 0xf6, 0x12, 0xa9, 0x54, 0x68, 0x53, 0xb8, 0x3b, 0xde, 0x69, 0xb0, 0xb2, - 0xbb, 0x5e, 0xd9, 0x4e, 0x69, 0x6f, 0x3c, 0x17, 0x8f,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 0x4d, 0x09, - 0xb7, 0xeb, 0x22, 0xee, 0x96, 0x88, 0xe3, 0xa4, 0x27, 0xcd, 0xa4, 0x63, 0xa9, 0xb2, 0x2b, 0x69, - 0xb3, 0x7a, 0xa5, 0xd4, 0x08, 0x6f, 0x2a, 0x4c, 0xa9, 0xbd, 0xb1, 0xe1, 0x91, 0xc2, 0x56, 0xd9, - 0xe2, 0xda, 0xfb, 0x68, 0xb0, 0xbd, 0x8f, 0xce, 0x59, 0x7f, 0xf1, 0xeb, 0xee, 0xa9, 0x82, 0x7a, - 0xa9, 0xd4, 0x68, 0xd1, 0xa7, 0xf6, 0xf9, 0xf4, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x94, 0x0f, 0x0b, - 0x70, 0xca, 0x05, 0x00, 0x00, + // 713 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x54, 0xcf, 0x6e, 0x13, 0x3f, + 0x10, 0x6e, 0x92, 0x36, 0xdd, 0x3a, 0xfd, 0xeb, 0x5f, 0x7f, 0xc5, 0x94, 0x12, 0x45, 0x11, 0x42, + 0x39, 0xe5, 0x00, 0xbc, 0x40, 0xda, 0x5e, 0x22, 0x95, 0x0a, 0x6d, 0x0a, 0x77, 0xc7, 0x3b, 0x0d, + 0x56, 0xf6, 0x9f, 0x6c, 0xa7, 0xb4, 0x37, 0x1e, 0x81, 0xe7, 0xe1, 0x09, 0x38, 0xf6, 0xc8, 0x11, + 0xa5, 0x2f, 0x82, 0x66, 0xbc, 0x9b, 0xdd, 0x94, 0xd3, 0xce, 0xf7, 0x7d, 0xde, 0xf1, 0xcc, 0x78, + 0x66, 0xd8, 0xd1, 0x9d, 0x8e, 0x20, 0xcb, 0xc1, 0xd8, 0x2c, 0x1d, 0xe6, 0x26, 0x73, 0x19, 0x0f, + 0xe8, 0x93, 0xd8, 0x59, 0xff, 0xfb, 0x36, 0xdb, 0xfd, 0x52, 0x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e7, 0x85, 0x12, 0xae, 0xce, 0xf4, 0x7f, 0x36, 0x18, 0xab, 0x5c, + 0x61, 0xa2, 0x33, 0x93, 0x2d, 0xf2, 0x71, 0x39, 0x85, 0x25, 0xc4, 0x44, 0xe9, 0x1a, 0xff, 0xde, + 0x7e, 0x18, 0x6b, 0x0c, 0xa6, 0x62, 0x16, 0x31, 0xdc, 0xc0, 0xbd, 0x2b, 0x86, 0x71, 0x85, 0x79, + 0x9f, 0xed, 0x46, 0x70, 0x0b, 0xa9, 0x82, 0x89, 0x2b, 0xe7, 0x31, 0x08, 0xd7, 0x38, 0x1c, 0x3b, + 0x6d, 0xaf, 0x74, 0x3a, 0xa7, 0x89, 0x0c, 0xc2, 0x02, 0xf9, 0x31, 0x49, 0xe7, 0x94, 0x50, 0xbb, + 0x1c, 0x13, 0x8f, 0xfb, 0xcb, 0x26, 0x0b, 0xca, 0x9c, 0x30, 0x74, 0x27, 0xa7, 0x31, 0x54, 0xa1, + 0x17, 0x10, 0xdf, 0x80, 0x4c, 0xea, 0x12, 0x1f, 0x79, 0x45, 0x60, 0x70, 0x2a, 0x4b, 0x72, 0x69, + 0xc0, 0x0f, 0x1b, 0x06, 0xdf, 0x0c, 0xd7, 0x38, 0xea, 0x65, 0x5a, 0x51, 0xe3, 0xa8, 0x58, 0x26, + 0x2b, 0x8c, 0x85, 0xf1, 0x36, 0xb9, 0xf7, 0xeb, 0xa4, 0xc6, 0xa0, 0x7f, 0x8f, 0x3e, 0x69, 0x85, + 0xfd, 0xee, 0x93, 0x58, 0xe3, 0xc8, 0xff, 0xd7, 0x2c, 0x85, 0xeb, 0x45, 0x52, 0xee, 0x96, 0x12, + 0x97, 0x93, 0x1e, 0x54, 0x93, 0x8e, 0xa5, 0x8a, 0x2e, 0xa4, 0x89, 0x8a, 0x95, 0x52, 0x20, 0xbc, + 0x29, 0xc9, 0x52, 0xed, 0x32, 0xe3, 0x1f, 0xc9, 0x6f, 0x95, 0x35, 0xae, 0xbe, 0x8f, 0x3a, 0xeb, + 0xfb, 0xe8, 0x84, 0xb5, 0xa7, 0xdf, 0x6e, 0x1e, 0x72, 0x28, 0x96, 0x4a, 0x81, 0xce, 0xc5, 0xaf, + 0x65, 0xb7, 0xf1, 0xb8, 0xec, 0x36, 0xfe, 0x2c, 0xbb, 0x8d, 0x1f, 0x4f, 0xdd, 0x8d, 0xc7, 0xa7, + 0xee, 0xc6, 0xef, 0xa7, 0xee, 0xc6, 0xb4, 0x4d, 0x8d, 0xf5, 0xfe, 0x6f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x3a, 0xb7, 0x6f, 0x3f, 0xe4, 0x05, 0x00, 0x00, } + +func (m *Videopersons) 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 *Videopersons) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.CameraId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.CameraId))) + i += copy(dAtA[i:], m.CameraId) + } + if len(m.CameraAddr) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.CameraAddr))) + i += copy(dAtA[i:], m.CameraAddr) + } + if len(m.PicDate) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PicDate))) + i += copy(dAtA[i:], m.PicDate) + } + if len(m.PicMaxUrl) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PicMaxUrl))) + i += copy(dAtA[i:], m.PicMaxUrl) + } + if len(m.TaskId) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.TaskId))) + i += copy(dAtA[i:], m.TaskId) + } + if len(m.TaskName) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.TaskName))) + i += copy(dAtA[i:], m.TaskName) + } + if len(m.SdkName) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.SdkName))) + i += copy(dAtA[i:], m.SdkName) + } + if len(m.Content) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Content))) + i += copy(dAtA[i:], m.Content) + } + if len(m.LikeDate) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.LikeDate))) + i += copy(dAtA[i:], m.LikeDate) + } + if len(m.DetectScore) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.DetectScore))) + i += copy(dAtA[i:], m.DetectScore) + } + if len(m.Sex) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Sex))) + i += copy(dAtA[i:], m.Sex) + } + if m.Age != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(m.Age)) + } + if len(m.AgeDescription) > 0 { + dAtA[i] = 0x72 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.AgeDescription))) + i += copy(dAtA[i:], m.AgeDescription) + } + if len(m.Race) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Race))) + i += copy(dAtA[i:], m.Race) + } + if len(m.SmileLevel) > 0 { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.SmileLevel))) + i += copy(dAtA[i:], m.SmileLevel) + } + if len(m.BeautyLevel) > 0 { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.BeautyLevel))) + i += copy(dAtA[i:], m.BeautyLevel) + } + if len(m.PicSmUrl) > 0 { + for _, s := range m.PicSmUrl { + dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.VideoUrl) > 0 { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.VideoUrl))) + i += copy(dAtA[i:], m.VideoUrl) + } + if len(m.AnalyServerId) > 0 { + dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.AnalyServerId))) + i += copy(dAtA[i:], m.AnalyServerId) + } + if len(m.AnalyServerName) > 0 { + dAtA[i] = 0xaa + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.AnalyServerName))) + i += copy(dAtA[i:], m.AnalyServerName) + } + if len(m.AnalyServerIp) > 0 { + dAtA[i] = 0xb2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.AnalyServerIp))) + i += copy(dAtA[i:], m.AnalyServerIp) + } + if len(m.ClusterId) > 0 { + dAtA[i] = 0xba + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.ClusterId))) + i += copy(dAtA[i:], m.ClusterId) + } + if len(m.IsAlarm) > 0 { + dAtA[i] = 0xc2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.IsAlarm))) + i += copy(dAtA[i:], m.IsAlarm) + } + if len(m.IsAckAlarm) > 0 { + dAtA[i] = 0xca + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.IsAckAlarm))) + i += copy(dAtA[i:], m.IsAckAlarm) + } + if m.IsCollect != 0 { + dAtA[i] = 0xd0 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(m.IsCollect)) + } + if m.IsDelete != 0 { + dAtA[i] = 0xd8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(m.IsDelete)) + } + if len(m.AlarmRules) > 0 { + for _, msg := range m.AlarmRules { + dAtA[i] = 0xe2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.BaseInfo) > 0 { + for _, msg := range m.BaseInfo { + dAtA[i] = 0xea + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *AlarmRules) 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 *AlarmRules) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.GroupId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.GroupId))) + i += copy(dAtA[i:], m.GroupId) + } + if len(m.AlarmLevel) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.AlarmLevel))) + i += copy(dAtA[i:], m.AlarmLevel) + } + if len(m.RuleText) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.RuleText))) + i += copy(dAtA[i:], m.RuleText) + } + if m.DefenceState { + dAtA[i] = 0x20 + i++ + if m.DefenceState { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.IsLink { + dAtA[i] = 0x28 + i++ + if m.IsLink { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.LinkInfo) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.LinkInfo))) + i += copy(dAtA[i:], m.LinkInfo) + } + return i, nil +} + +func (m *BaseInfo) 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 *BaseInfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.TableId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.TableId))) + i += copy(dAtA[i:], m.TableId) + } + if len(m.TableName) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if m.CompareScore != 0 { + dAtA[i] = 0x1d + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareScore)))) + i += 4 + } + if len(m.PersonId) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PersonId))) + i += copy(dAtA[i:], m.PersonId) + } + if len(m.PersonName) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PersonName))) + i += copy(dAtA[i:], m.PersonName) + } + if len(m.PersonPicUrl) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PersonPicUrl))) + i += copy(dAtA[i:], m.PersonPicUrl) + } + if len(m.PhoneNum) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PhoneNum))) + i += copy(dAtA[i:], m.PhoneNum) + } + if len(m.Sex) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Sex))) + i += copy(dAtA[i:], m.Sex) + } + if len(m.IdCard) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.IdCard))) + i += copy(dAtA[i:], m.IdCard) + } + if len(m.MonitorLevel) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.MonitorLevel))) + i += copy(dAtA[i:], m.MonitorLevel) + } + if len(m.Content) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Content))) + i += copy(dAtA[i:], m.Content) + } + if len(m.BwType) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintVideoperson(dAtA, i, uint64(len(m.BwType))) + i += copy(dAtA[i:], m.BwType) + } + return i, nil +} + +func encodeVarintVideoperson(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 *Videopersons) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.CameraId) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.CameraAddr) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.PicDate) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.PicMaxUrl) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.TaskId) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.TaskName) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.SdkName) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.Content) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.LikeDate) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.DetectScore) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.Sex) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + if m.Age != 0 { + n += 1 + sovVideoperson(uint64(m.Age)) + } + l = len(m.AgeDescription) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.Race) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.SmileLevel) + if l > 0 { + n += 2 + l + sovVideoperson(uint64(l)) + } + l = len(m.BeautyLevel) + if l > 0 { + n += 2 + l + sovVideoperson(uint64(l)) + } + if len(m.PicSmUrl) > 0 { + for _, s := range m.PicSmUrl { + l = len(s) + n += 2 + l + sovVideoperson(uint64(l)) + } + } + l = len(m.VideoUrl) + if l > 0 { + n += 2 + l + sovVideoperson(uint64(l)) + } + l = len(m.AnalyServerId) + if l > 0 { + n += 2 + l + sovVideoperson(uint64(l)) + } + l = len(m.AnalyServerName) + if l > 0 { + n += 2 + l + sovVideoperson(uint64(l)) + } + l = len(m.AnalyServerIp) + if l > 0 { + n += 2 + l + sovVideoperson(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 2 + l + sovVideoperson(uint64(l)) + } + l = len(m.IsAlarm) + if l > 0 { + n += 2 + l + sovVideoperson(uint64(l)) + } + l = len(m.IsAckAlarm) + if l > 0 { + n += 2 + l + sovVideoperson(uint64(l)) + } + if m.IsCollect != 0 { + n += 2 + sovVideoperson(uint64(m.IsCollect)) + } + if m.IsDelete != 0 { + n += 2 + sovVideoperson(uint64(m.IsDelete)) + } + if len(m.AlarmRules) > 0 { + for _, e := range m.AlarmRules { + l = e.Size() + n += 2 + l + sovVideoperson(uint64(l)) + } + } + if len(m.BaseInfo) > 0 { + for _, e := range m.BaseInfo { + l = e.Size() + n += 2 + l + sovVideoperson(uint64(l)) + } + } + return n +} + +func (m *AlarmRules) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.GroupId) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.AlarmLevel) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.RuleText) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + if m.DefenceState { + n += 2 + } + if m.IsLink { + n += 2 + } + l = len(m.LinkInfo) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + return n +} + +func (m *BaseInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TableId) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + if m.CompareScore != 0 { + n += 5 + } + l = len(m.PersonId) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.PersonName) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.PersonPicUrl) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.PhoneNum) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.Sex) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.IdCard) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.MonitorLevel) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.Content) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + l = len(m.BwType) + if l > 0 { + n += 1 + l + sovVideoperson(uint64(l)) + } + return n +} + +func sovVideoperson(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozVideoperson(x uint64) (n int) { + return sovVideoperson(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Videopersons) 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 ErrIntOverflowVideoperson + } + 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: Videopersons: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Videopersons: 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 ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + 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 ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + 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 CameraAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CameraAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PicDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PicDate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PicMaxUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PicMaxUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + 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 ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + 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 ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + 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 ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Content = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LikeDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LikeDate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DetectScore", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DetectScore = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sex = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + 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 ErrIntOverflowVideoperson + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Age |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AgeDescription", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AgeDescription = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Race", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Race = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SmileLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SmileLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeautyLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BeautyLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PicSmUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PicSmUrl = append(m.PicSmUrl, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VideoUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VideoUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IsAlarm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IsAlarm = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IsAckAlarm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IsAckAlarm = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 26: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsCollect", wireType) + } + m.IsCollect = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IsCollect |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 27: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) + } + m.IsDelete = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IsDelete |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 28: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AlarmRules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVideoperson + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AlarmRules = append(m.AlarmRules, &AlarmRules{}) + if err := m.AlarmRules[len(m.AlarmRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 29: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVideoperson + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseInfo = append(m.BaseInfo, &BaseInfo{}) + if err := m.BaseInfo[len(m.BaseInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVideoperson(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVideoperson + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVideoperson + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlarmRules) 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 ErrIntOverflowVideoperson + } + 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: AlarmRules: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlarmRules: 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 ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + 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 AlarmLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AlarmLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleText", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleText = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefenceState", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DefenceState = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsLink", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsLink = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkInfo", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LinkInfo = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVideoperson(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVideoperson + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVideoperson + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BaseInfo) 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 ErrIntOverflowVideoperson + } + 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: BaseInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BaseInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field CompareScore", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.CompareScore = float32(math.Float32frombits(v)) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersonId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PersonId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersonName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PersonName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersonPicUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PersonPicUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PhoneNum", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PhoneNum = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sex = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IdCard", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IdCard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MonitorLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MonitorLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Content = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BwType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVideoperson + } + 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 ErrInvalidLengthVideoperson + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVideoperson + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BwType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVideoperson(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVideoperson + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVideoperson + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipVideoperson(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, ErrIntOverflowVideoperson + } + 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, ErrIntOverflowVideoperson + } + 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, ErrIntOverflowVideoperson + } + 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, ErrInvalidLengthVideoperson + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthVideoperson + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowVideoperson + } + 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 := skipVideoperson(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthVideoperson + } + } + 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 ( + ErrInvalidLengthVideoperson = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowVideoperson = fmt.Errorf("proto: integer overflow") +) -- Gitblit v1.8.0