From fc1623501c41e62c1983ae32fefbed8362b2d909 Mon Sep 17 00:00:00 2001 From: 554325746@qq.com <554325746@qq.com> Date: 星期三, 24 七月 2019 19:45:24 +0800 Subject: [PATCH] build all --- /dev/null | 4 commsg.pb.go | 1201 +++++++++ sdk.pb.go | 3213 ++++++++++++++++++++++++++- base.pb.go | 520 ++++ sysset.pb.go | 10 es.pb.go | 2008 ++++++++++++++++ 6 files changed, 6,600 insertions(+), 356 deletions(-) diff --git a/README.md b/README.md deleted file mode 100644 index 7e65f82..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -## protomsg - -protobuf 瀹氫箟鐨勫崗璁牸寮� - 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 23abc96..2866693 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,13 +150,10 @@ } 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"` - 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"` } func (m *SdkMessage) Reset() { *m = SdkMessage{} } @@ -154,18 +162,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) @@ -202,12 +218,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{} } @@ -216,18 +229,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) @@ -266,23 +287,1075 @@ func init() { proto.RegisterFile("commsg.proto", fileDescriptor_968fba5e415d8aac) } var fileDescriptor_968fba5e415d8aac = []byte{ - // 283 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x4d, 0x4e, 0xc3, 0x30, - 0x10, 0x85, 0x95, 0xa4, 0x6d, 0xd2, 0x69, 0x55, 0xa1, 0x01, 0x21, 0x8b, 0x55, 0x94, 0x55, 0x36, - 0x64, 0x51, 0xb8, 0x03, 0x1b, 0xd8, 0xa4, 0x48, 0x48, 0xec, 0x9c, 0xd8, 0x04, 0xcb, 0x75, 0x12, - 0x65, 0x22, 0x7e, 0xce, 0xc0, 0xa5, 0x91, 0x9d, 0x9f, 0xb6, 0x2b, 0xbf, 0xcf, 0x1e, 0xbf, 0x79, - 0x33, 0xb0, 0x2d, 0x1b, 0x63, 0xa8, 0xca, 0xda, 0xae, 0xe9, 0x1b, 0x8c, 0xdc, 0x61, 0xa8, 0x4a, - 0xde, 0x61, 0x77, 0x10, 0xda, 0x50, 0xf5, 0xa6, 0xfa, 0xcf, 0x57, 0x4e, 0x1a, 0x6f, 0x60, 0xa9, - 0xda, 0x52, 0x09, 0xe6, 0xc5, 0x5e, 0xba, 0xce, 0x07, 0x40, 0x06, 0x21, 0x09, 0xdd, 0xff, 0xb6, - 0x92, 0xf9, 0xee, 0x7e, 0xc2, 0xf1, 0x45, 0xf0, 0x9e, 0xb3, 0x45, 0xec, 0xa5, 0xdb, 0x7c, 0xc2, - 0xe4, 0xcf, 0x83, 0xb5, 0xb5, 0x7c, 0xe6, 0x85, 0x3c, 0xe2, 0x2d, 0xac, 0x7a, 0x4e, 0x7a, 0x36, - 0x1e, 0x09, 0xef, 0x20, 0xb2, 0xaa, 0xe6, 0x66, 0xb2, 0x9e, 0x19, 0x1f, 0x21, 0x22, 0xa1, 0x55, - 0xfd, 0xd1, 0x10, 0x0b, 0xe2, 0x20, 0xdd, 0xec, 0x59, 0x36, 0x45, 0xcf, 0x2e, 0x73, 0xe7, 0x73, - 0xa5, 0x9b, 0xa0, 0x16, 0xf2, 0xc7, 0xe5, 0x59, 0xe6, 0x03, 0x24, 0xdf, 0x00, 0x07, 0xa1, 0x5f, - 0x24, 0x11, 0xaf, 0x24, 0x5e, 0x41, 0x70, 0x9a, 0xd1, 0x4a, 0xfb, 0xab, 0xe4, 0x42, 0x74, 0x63, - 0x88, 0x01, 0xf0, 0x1e, 0x42, 0x9b, 0xe6, 0xc8, 0x0b, 0x16, 0xc4, 0x5e, 0xba, 0xd9, 0x5f, 0x9f, - 0x02, 0xcc, 0xb3, 0xe5, 0x53, 0x0d, 0x22, 0x2c, 0xce, 0x36, 0xe1, 0x74, 0xf2, 0x04, 0x61, 0x27, - 0xcb, 0x2f, 0x43, 0x15, 0xee, 0xc0, 0x9f, 0x9b, 0xfa, 0x4a, 0xd8, 0xf2, 0xb3, 0x96, 0x4e, 0xdb, - 0x7d, 0xb6, 0xaa, 0x74, 0x2e, 0xc1, 0xb0, 0xcf, 0x11, 0x8b, 0x95, 0xeb, 0xfc, 0xf0, 0x1f, 0x00, - 0x00, 0xff, 0xff, 0xf6, 0xc9, 0xa4, 0x99, 0xcc, 0x01, 0x00, 0x00, + // 315 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xbb, 0x4e, 0xc3, 0x30, + 0x14, 0x86, 0xeb, 0xa6, 0xd7, 0xd3, 0xaa, 0x42, 0x06, 0x21, 0x8b, 0xc1, 0x8a, 0x32, 0x65, 0xa1, + 0x43, 0xe1, 0x09, 0x58, 0x58, 0x60, 0x49, 0x91, 0x90, 0xd8, 0xdc, 0xd8, 0x04, 0xcb, 0x75, 0x13, + 0xc5, 0x11, 0x97, 0x67, 0x60, 0xe1, 0xb1, 0x18, 0x3b, 0x32, 0xa2, 0xe4, 0x45, 0x90, 0x9d, 0x4b, + 0xcb, 0xe4, 0xff, 0xb3, 0x8f, 0xff, 0xf3, 0x9f, 0x03, 0xf3, 0x38, 0xd5, 0xda, 0x24, 0xcb, 0x2c, + 0x4f, 0x8b, 0x14, 0x4f, 0xdc, 0xa1, 0x4d, 0x12, 0x3c, 0xc1, 0x62, 0xcd, 0x95, 0x36, 0xc9, 0xa3, + 0x2c, 0x5e, 0x1e, 0x98, 0x51, 0xf8, 0x0c, 0x86, 0x32, 0x8b, 0x25, 0x27, 0xc8, 0x47, 0xe1, 0x34, + 0xaa, 0x01, 0x13, 0x18, 0x1b, 0xae, 0x8a, 0x8f, 0x4c, 0x90, 0xbe, 0xbb, 0x6f, 0xb1, 0x79, 0xe1, + 0xac, 0x60, 0x64, 0xe0, 0xa3, 0x70, 0x1e, 0xb5, 0x18, 0x7c, 0x22, 0x98, 0x5a, 0xcb, 0x3b, 0xb6, + 0x11, 0x5b, 0x7c, 0x0e, 0xa3, 0x82, 0x19, 0xd5, 0x19, 0x37, 0x84, 0x2f, 0x60, 0x62, 0xd5, 0x8e, + 0xe9, 0xd6, 0xba, 0x63, 0x7c, 0x0d, 0x13, 0xc3, 0x95, 0xdc, 0x3d, 0xa7, 0x86, 0x78, 0xbe, 0x17, + 0xce, 0x56, 0x64, 0xd9, 0x46, 0x5f, 0xfe, 0xcf, 0x1d, 0x75, 0x95, 0x6e, 0x82, 0x1d, 0x17, 0xef, + 0x2e, 0xcf, 0x30, 0xaa, 0x21, 0x78, 0x03, 0x58, 0x73, 0x75, 0x2f, 0x8c, 0x61, 0x89, 0xc0, 0x27, + 0xe0, 0x1d, 0x66, 0xb4, 0xd2, 0xfe, 0x8a, 0x19, 0xe7, 0x79, 0x13, 0xa2, 0x06, 0x7c, 0x09, 0x63, + 0x9b, 0x66, 0xcb, 0x36, 0xc4, 0xf3, 0x51, 0x38, 0x5b, 0x9d, 0x1e, 0x02, 0x74, 0xb3, 0x45, 0x6d, + 0x0d, 0xc6, 0x30, 0x38, 0xda, 0x84, 0xd3, 0xc1, 0x2d, 0x8c, 0x73, 0x11, 0xbf, 0x6a, 0x93, 0xe0, + 0x05, 0xf4, 0xbb, 0xa6, 0x7d, 0xc9, 0x6d, 0xf9, 0x51, 0x4b, 0xa7, 0xed, 0x3e, 0x33, 0x19, 0x3b, + 0x17, 0xaf, 0xde, 0x67, 0x83, 0x37, 0xe4, 0xbb, 0xa4, 0x68, 0x5f, 0x52, 0xf4, 0x5b, 0x52, 0xf4, + 0x55, 0xd1, 0xde, 0xbe, 0xa2, 0xbd, 0x9f, 0x8a, 0xf6, 0x36, 0x23, 0x97, 0xe9, 0xea, 0x2f, 0x00, + 0x00, 0xff, 0xff, 0xc8, 0x63, 0xfd, 0xdb, 0xe6, 0x01, 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) + } + 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)) + } + 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 + 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 6a82f03..32bf8f8 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,16 +20,13 @@ // 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"` - 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"` } func (m *Esinfo) Reset() { *m = Esinfo{} } @@ -36,18 +35,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) @@ -84,26 +91,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{} } @@ -112,18 +116,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) @@ -251,24 +263,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{} } @@ -277,18 +286,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) @@ -410,35 +427,1844 @@ func init() { proto.RegisterFile("es.proto", fileDescriptor_718db5c20d0f3738) } var fileDescriptor_718db5c20d0f3738 = []byte{ - // 467 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x51, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0x95, 0x98, 0x26, 0xf6, 0xa4, 0x29, 0x65, 0x1f, 0xd0, 0x0a, 0x55, 0x28, 0x8a, 0x78, - 0xc8, 0x13, 0x2f, 0xdc, 0x00, 0x42, 0xa5, 0x48, 0xa8, 0x42, 0x49, 0x39, 0xc0, 0xda, 0x3b, 0x2d, - 0x2b, 0xd9, 0x5e, 0x6b, 0xd7, 0x09, 0xc9, 0xa9, 0xb8, 0x10, 0x87, 0x41, 0x33, 0x6b, 0xc7, 0x76, - 0x11, 0x85, 0xa7, 0xe4, 0xff, 0xff, 0xdd, 0x99, 0xc9, 0x7c, 0xab, 0x40, 0x8c, 0xfe, 0x7d, 0xe5, - 0x6c, 0x6d, 0x45, 0xcc, 0x1f, 0x85, 0x7f, 0x5c, 0x1e, 0x61, 0xf2, 0xd9, 0x9b, 0xf2, 0xc1, 0x8a, - 0x2b, 0x18, 0x1b, 0x2d, 0x47, 0x8b, 0xd1, 0x2a, 0xd9, 0x8e, 0x8d, 0x16, 0x12, 0xa6, 0xb5, 0x4a, - 0x73, 0x34, 0x5a, 0x8e, 0xd9, 0x6c, 0xa5, 0x58, 0xc0, 0xec, 0x41, 0x65, 0x78, 0x8b, 0xaa, 0xde, - 0x3b, 0x94, 0x11, 0xa7, 0x7d, 0x4b, 0x2c, 0xe1, 0x32, 0xb3, 0x45, 0xa5, 0x1c, 0xee, 0x32, 0xeb, - 0x50, 0xbe, 0x58, 0x8c, 0x56, 0xe3, 0xed, 0xc0, 0x5b, 0xfe, 0x8a, 0x20, 0x5e, 0xa7, 0x15, 0x3a, - 0x6f, 0xcb, 0xbf, 0x36, 0xdf, 0x0c, 0x9b, 0x6f, 0xfe, 0xb3, 0x79, 0xa8, 0xfa, 0xd5, 0x64, 0xdf, - 0x5c, 0xce, 0xcd, 0x93, 0xed, 0xc0, 0x13, 0x6f, 0x01, 0x82, 0xbe, 0x53, 0x05, 0xca, 0x0b, 0x3e, - 0xd1, 0x73, 0xc4, 0x35, 0x44, 0xea, 0x11, 0xe5, 0x84, 0x03, 0xfa, 0x4a, 0x8e, 0xc7, 0xa3, 0x9c, - 0x06, 0xc7, 0xe3, 0x51, 0xbc, 0x86, 0x89, 0xd1, 0x9f, 0x94, 0xd3, 0x32, 0x66, 0xb3, 0x51, 0x34, - 0x7b, 0x65, 0xb2, 0x35, 0xfa, 0x4c, 0x26, 0x61, 0xf6, 0x46, 0x8a, 0x37, 0x10, 0x57, 0xdf, 0x6d, - 0x89, 0x77, 0xfb, 0x42, 0x02, 0x47, 0x67, 0x4d, 0x13, 0x65, 0x0e, 0x55, 0x8d, 0xf7, 0xa6, 0x40, - 0x39, 0x0b, 0x13, 0x75, 0x0e, 0xe5, 0xfb, 0x4a, 0xb7, 0xf9, 0x65, 0xc8, 0x3b, 0x87, 0x6a, 0x87, - 0xd3, 0x1f, 0x4f, 0x72, 0x1e, 0x6a, 0xb7, 0x9a, 0x32, 0xe3, 0xd7, 0x98, 0x63, 0x8d, 0xf2, 0x6a, - 0x31, 0x5a, 0x5d, 0x6c, 0xcf, 0x9a, 0xb6, 0x55, 0xd8, 0xd2, 0xd4, 0xd6, 0x7d, 0xc1, 0x03, 0xe6, - 0xf2, 0x65, 0xd8, 0x56, 0xdf, 0xa3, 0x5f, 0x8a, 0x25, 0xed, 0x5f, 0x5e, 0xf3, 0xed, 0x46, 0x51, - 0x5d, 0x87, 0x1e, 0xdd, 0x01, 0xb5, 0x7c, 0x15, 0x7a, 0xb6, 0x7a, 0xf9, 0x33, 0x82, 0xe9, 0x3a, - 0x65, 0x6a, 0x7f, 0xd0, 0xbd, 0x81, 0x84, 0x03, 0x5e, 0x7e, 0xe0, 0xdb, 0x19, 0xe7, 0x94, 0x37, - 0x18, 0xf5, 0x52, 0xde, 0x61, 0x9b, 0xde, 0x9f, 0x2a, 0x6c, 0xd0, 0x76, 0x06, 0x4d, 0x9a, 0xfe, - 0xe0, 0x28, 0x30, 0x6d, 0x14, 0xdd, 0xf2, 0xb5, 0x72, 0x35, 0x2f, 0x2f, 0x50, 0xed, 0x0c, 0x22, - 0x86, 0xa5, 0xe6, 0x2c, 0xf0, 0x6d, 0xe5, 0x13, 0x2a, 0xf1, 0x3f, 0xa8, 0x24, 0xcf, 0x52, 0x81, - 0x67, 0xa8, 0xcc, 0x9e, 0x50, 0xb9, 0x81, 0xc4, 0xf8, 0x5b, 0xeb, 0xf0, 0x80, 0xae, 0x81, 0xdd, - 0x19, 0x3d, 0x1e, 0xf3, 0x01, 0x0f, 0x7a, 0x91, 0x7e, 0x77, 0x2a, 0x33, 0xa6, 0x4c, 0x2f, 0x92, - 0x95, 0x78, 0x07, 0x73, 0x55, 0xaa, 0xfc, 0xb4, 0x23, 0x34, 0x6e, 0xa3, 0x1b, 0xc8, 0x43, 0x33, - 0x9d, 0xf0, 0x9f, 0xc2, 0x87, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x16, 0x2e, 0x3a, 0x08, 0x27, - 0x04, 0x00, 0x00, + // 500 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x41, 0x8e, 0xd3, 0x30, + 0x14, 0x86, 0x9b, 0x86, 0x69, 0x13, 0x77, 0x3a, 0x0c, 0x5e, 0x20, 0x0b, 0x8d, 0xa2, 0xaa, 0x62, + 0xd1, 0x15, 0x1b, 0x6e, 0x30, 0x94, 0x91, 0x2a, 0xa1, 0x11, 0x6a, 0x87, 0x03, 0x38, 0xf1, 0x9b, + 0xc1, 0x52, 0x12, 0x47, 0x76, 0x5a, 0xda, 0x5b, 0x70, 0x13, 0xae, 0xc1, 0x72, 0x96, 0x2c, 0x58, + 0xa0, 0xf6, 0x22, 0xc8, 0xcf, 0x49, 0x93, 0x0c, 0xa2, 0xb0, 0x6a, 0xff, 0xff, 0xb7, 0xdf, 0x7b, + 0x7d, 0x9f, 0x55, 0x12, 0x80, 0x79, 0x53, 0x68, 0x55, 0x2a, 0x1a, 0xe0, 0x47, 0x66, 0x1e, 0xa6, + 0x5b, 0x32, 0x78, 0x6f, 0x64, 0x7e, 0xaf, 0xe8, 0x05, 0xe9, 0x4b, 0xc1, 0xbc, 0x89, 0x37, 0x0b, + 0x97, 0x7d, 0x29, 0x28, 0x23, 0xc3, 0x92, 0xc7, 0x29, 0x48, 0xc1, 0xfa, 0x68, 0xd6, 0x92, 0x4e, + 0xc8, 0xe8, 0x9e, 0x27, 0x70, 0x03, 0xbc, 0x5c, 0x6b, 0x60, 0x3e, 0xa6, 0x6d, 0x8b, 0x4e, 0xc9, + 0x79, 0xa2, 0xb2, 0x82, 0x6b, 0x58, 0x25, 0x4a, 0x03, 0x7b, 0x36, 0xf1, 0x66, 0xfd, 0x65, 0xc7, + 0x9b, 0xfe, 0xf4, 0x49, 0x30, 0x8f, 0x0b, 0xd0, 0x46, 0xe5, 0x7f, 0x6d, 0xbe, 0xe8, 0x36, 0x5f, + 0xfc, 0x67, 0x73, 0x57, 0xf5, 0xa3, 0x4c, 0x3e, 0xe9, 0x14, 0x9b, 0x87, 0xcb, 0x8e, 0x47, 0x23, + 0x42, 0x9c, 0xbe, 0xe5, 0x19, 0xb0, 0x33, 0x3c, 0xd1, 0x72, 0xe8, 0x25, 0xf1, 0xf9, 0x03, 0xb0, + 0x01, 0x06, 0xf6, 0xab, 0x75, 0x0c, 0x6c, 0xd9, 0xd0, 0x39, 0x06, 0xb6, 0xf4, 0x25, 0x19, 0x48, + 0xf1, 0x8e, 0x6b, 0xc1, 0x02, 0x34, 0x2b, 0x65, 0x67, 0x2f, 0x64, 0x32, 0x07, 0x93, 0xb0, 0xd0, + 0xcd, 0x5e, 0x49, 0xfa, 0x8a, 0x04, 0xc5, 0x67, 0x95, 0xc3, 0xed, 0x3a, 0x63, 0x04, 0xa3, 0xa3, + 0xb6, 0x13, 0x25, 0x1a, 0x78, 0x09, 0x77, 0x32, 0x03, 0x36, 0x72, 0x13, 0x35, 0x8e, 0xcd, 0xd7, + 0x85, 0xa8, 0xf3, 0x73, 0x97, 0x37, 0x8e, 0xad, 0xed, 0x4e, 0x5f, 0xef, 0xd8, 0xd8, 0xd5, 0xae, + 0xb5, 0xcd, 0xa4, 0x99, 0x43, 0x0a, 0x25, 0xb0, 0x8b, 0x89, 0x37, 0x3b, 0x5b, 0x1e, 0xb5, 0xdd, + 0x56, 0xa6, 0x72, 0x59, 0x2a, 0xfd, 0x01, 0x36, 0x90, 0xb2, 0xe7, 0x6e, 0x5b, 0x6d, 0xcf, 0xfe, + 0x52, 0xc8, 0xed, 0xfe, 0xd9, 0x25, 0xde, 0xae, 0x94, 0xad, 0xab, 0xc1, 0x80, 0xde, 0x80, 0x60, + 0x2f, 0x5c, 0xcf, 0x5a, 0x4f, 0xbf, 0xf9, 0x64, 0x38, 0x8f, 0x91, 0xda, 0x1f, 0x74, 0xaf, 0x48, + 0x88, 0x01, 0x2e, 0xdf, 0xf1, 0x6d, 0x8c, 0x63, 0x8a, 0x1b, 0xf4, 0x5b, 0x29, 0xee, 0xb0, 0x4e, + 0xef, 0x76, 0x05, 0x54, 0x68, 0x1b, 0xc3, 0x4e, 0x1a, 0x7f, 0xc1, 0xc8, 0x31, 0xad, 0x94, 0xbd, + 0x65, 0x4a, 0xae, 0x4b, 0x5c, 0x9e, 0xa3, 0xda, 0x18, 0x96, 0x18, 0xe4, 0x02, 0x33, 0xc7, 0xb7, + 0x96, 0x4f, 0xa8, 0x04, 0xff, 0xa0, 0x12, 0x9e, 0xa4, 0x42, 0x4e, 0x50, 0x19, 0x3d, 0xa1, 0x72, + 0x45, 0x42, 0x69, 0x6e, 0x94, 0x86, 0x0d, 0xe8, 0x0a, 0x76, 0x63, 0xb4, 0x78, 0x8c, 0x3b, 0x3c, + 0xec, 0x8b, 0x34, 0xab, 0x5d, 0x9e, 0x20, 0x65, 0xfb, 0x22, 0x51, 0xd1, 0xd7, 0x64, 0xcc, 0x73, + 0x9e, 0xee, 0x56, 0x16, 0x8d, 0x5e, 0x88, 0x0a, 0x72, 0xd7, 0xbc, 0x66, 0xdf, 0xf7, 0x91, 0xf7, + 0xb8, 0x8f, 0xbc, 0x5f, 0xfb, 0xc8, 0xfb, 0x7a, 0x88, 0x7a, 0x8f, 0x87, 0xa8, 0xf7, 0xe3, 0x10, + 0xf5, 0xe2, 0x01, 0xfe, 0x5d, 0xbc, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x22, 0xde, 0x39, 0x6b, + 0x41, 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 + } + 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 + } + 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)) + 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/sdk.pb.go b/sdk.pb.go index 7a4a3d8..96b9780 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) @@ -749,47 +806,2865 @@ func init() { proto.RegisterFile("sdk.proto", fileDescriptor_70decb0fb6f436df) } var fileDescriptor_70decb0fb6f436df = []byte{ - // 669 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x54, 0xd1, 0x6e, 0xd3, 0x4a, - 0x10, 0x95, 0x93, 0xd8, 0x69, 0x26, 0x55, 0x6f, 0xef, 0xde, 0xea, 0xca, 0xaa, 0xae, 0xae, 0x22, - 0x83, 0x68, 0x10, 0xa5, 0xa0, 0x80, 0xc4, 0x2b, 0x88, 0xb4, 0x22, 0x12, 0xd0, 0x68, 0xc5, 0x0b, - 0x8f, 0xeb, 0xf5, 0xda, 0x71, 0x6a, 0x7b, 0x8d, 0xbd, 0x51, 0x1b, 0xf1, 0x05, 0xfc, 0x27, 0xfc, - 0x07, 0x9a, 0xdd, 0x75, 0xec, 0x4a, 0x2d, 0x4f, 0x3c, 0xf2, 0x94, 0x99, 0x9d, 0xe3, 0x9c, 0x33, - 0x67, 0x76, 0x16, 0x46, 0x75, 0x74, 0x75, 0x56, 0x56, 0x52, 0x49, 0xb2, 0xa7, 0x7f, 0xf2, 0x3a, - 0x39, 0x86, 0x90, 0xd5, 0xc2, 0x9c, 0x06, 0xdf, 0x1c, 0x70, 0x17, 0x39, 0x4b, 0x04, 0x39, 0x02, - 0xf7, 0x3a, 0x8d, 0xd4, 0xca, 0x77, 0x26, 0xce, 0xd4, 0xa5, 0x26, 0x21, 0xff, 0x82, 0xb7, 0x12, - 0x69, 0xb2, 0x52, 0x7e, 0x4f, 0x1f, 0xdb, 0x8c, 0x10, 0x18, 0x44, 0x4c, 0x31, 0xbf, 0x3f, 0x71, - 0xa6, 0xfb, 0x54, 0xc7, 0xe4, 0x3f, 0x18, 0xa9, 0x34, 0x17, 0xb5, 0x62, 0x79, 0xe9, 0x0f, 0x26, - 0xce, 0x74, 0x44, 0xdb, 0x03, 0x72, 0x00, 0xbd, 0x34, 0xf2, 0xdd, 0x89, 0x33, 0xed, 0xd3, 0x5e, - 0x1a, 0x91, 0x43, 0xe8, 0xf3, 0x34, 0xf2, 0x3d, 0x8d, 0xc3, 0x30, 0x48, 0x60, 0x74, 0xc1, 0xb8, - 0x78, 0x53, 0x24, 0x99, 0xc0, 0xf2, 0x96, 0x5d, 0x5b, 0x31, 0x18, 0xa2, 0xc0, 0x32, 0x55, 0x7c, - 0x65, 0x95, 0x98, 0x04, 0x85, 0x54, 0x32, 0xcb, 0xb4, 0x10, 0x97, 0xea, 0x98, 0xfc, 0x0f, 0xc0, - 0x65, 0x11, 0xa7, 0x91, 0x28, 0xb8, 0xd0, 0x4a, 0x7a, 0xb4, 0x73, 0x12, 0xdc, 0x00, 0x7c, 0x5a, - 0xc5, 0x8a, 0x8a, 0x7a, 0x93, 0x29, 0x6c, 0x31, 0x11, 0x45, 0x24, 0x2a, 0x4b, 0x66, 0x33, 0x54, - 0xc0, 0x12, 0x61, 0xd9, 0x30, 0xd4, 0x5c, 0x8c, 0x8b, 0x1d, 0x17, 0xe3, 0x02, 0xbf, 0x0e, 0x05, - 0xdb, 0xa8, 0xad, 0xe6, 0x71, 0xa9, 0xcd, 0x50, 0x6d, 0x9d, 0xa7, 0x99, 0xd0, 0x1d, 0xbb, 0xd4, - 0x24, 0xc1, 0xf7, 0x1e, 0x0c, 0xb1, 0xc7, 0xa5, 0xac, 0xc9, 0x23, 0xf0, 0x2a, 0x8e, 0x89, 0xe6, - 0x1d, 0xcf, 0x0e, 0xce, 0x9a, 0x09, 0x9d, 0x51, 0xc1, 0x15, 0xb5, 0x55, 0xf2, 0x14, 0x46, 0xa5, - 0x7a, 0x2f, 0x62, 0x75, 0xbe, 0x35, 0x6a, 0xc6, 0xb3, 0xbf, 0x5a, 0xe8, 0x52, 0xa6, 0x85, 0xa2, - 0x2d, 0x82, 0x3c, 0x03, 0x28, 0x15, 0xc5, 0x21, 0x21, 0xbe, 0x7f, 0x37, 0xbe, 0x03, 0x21, 0x8f, - 0x61, 0x58, 0xaa, 0x0f, 0x72, 0xa3, 0x56, 0xba, 0x85, 0x3b, 0xd0, 0x4d, 0x9d, 0x9c, 0x80, 0x57, - 0xaa, 0x8f, 0xb2, 0x36, 0x5d, 0xdd, 0x81, 0xb4, 0x65, 0xf2, 0x04, 0xbc, 0x58, 0xcf, 0x51, 0xcf, - 0x77, 0x3c, 0xfb, 0xa7, 0x05, 0xee, 0x46, 0x4c, 0x2d, 0x84, 0xf8, 0x30, 0xfc, 0xb2, 0x61, 0x59, - 0xaa, 0xb6, 0xfe, 0x50, 0x9b, 0xd5, 0xa4, 0x38, 0xc8, 0x98, 0xf1, 0x94, 0x65, 0x73, 0xbc, 0x6b, - 0x7b, 0xfa, 0xae, 0x75, 0x4e, 0xd0, 0xfc, 0x98, 0x71, 0xb1, 0x98, 0xfb, 0xa3, 0x89, 0x33, 0x1d, - 0x50, 0x9b, 0x05, 0x3f, 0x7a, 0xb0, 0x87, 0x3c, 0x8b, 0x22, 0x96, 0x7f, 0x7c, 0xfe, 0xdd, 0x3e, - 0xf7, 0x77, 0x3e, 0x5f, 0xc1, 0xf0, 0x32, 0x5c, 0x6b, 0x97, 0x1f, 0x82, 0x5b, 0xf1, 0xcb, 0x70, - 0x7d, 0x8f, 0xc9, 0xa6, 0x88, 0x3b, 0xa5, 0xb6, 0x65, 0xb3, 0x53, 0x6a, 0x5b, 0xe2, 0x4e, 0x95, - 0x95, 0x0c, 0xb5, 0x81, 0x3d, 0xaa, 0x63, 0xdc, 0x1d, 0x19, 0xae, 0x17, 0x73, 0xed, 0xd3, 0x80, - 0x9a, 0x24, 0xf8, 0x0a, 0x87, 0x66, 0x63, 0xb1, 0xb3, 0xb9, 0x50, 0x82, 0x2b, 0xf2, 0x00, 0xfa, - 0xa5, 0xac, 0x2d, 0xe7, 0xdf, 0xb7, 0x9b, 0x5f, 0xca, 0x9a, 0x62, 0x95, 0x9c, 0x82, 0x57, 0xe9, - 0x0f, 0xed, 0x54, 0x8f, 0x5a, 0x5c, 0xfb, 0x0c, 0x50, 0x8b, 0x41, 0xf2, 0x58, 0x30, 0x55, 0xdb, - 0xa7, 0xcd, 0x24, 0xc1, 0x6b, 0xd8, 0x5f, 0xb2, 0x8a, 0xe5, 0xcd, 0xf2, 0x3e, 0x07, 0x17, 0x3d, - 0x40, 0xea, 0xfe, 0x74, 0x3c, 0x3b, 0xee, 0xb6, 0x7b, 0x5b, 0x23, 0x35, 0xc0, 0x60, 0xdd, 0x95, - 0x7f, 0x7e, 0xa3, 0xde, 0xca, 0xbc, 0xe5, 0x72, 0x3a, 0x5c, 0x68, 0x09, 0x97, 0xb9, 0x71, 0x69, - 0x9f, 0xea, 0x98, 0x9c, 0x9a, 0x46, 0xcd, 0x35, 0xfb, 0x15, 0x1b, 0xc2, 0x82, 0x77, 0x70, 0xb8, - 0x53, 0x7b, 0x21, 0x98, 0xda, 0x54, 0x82, 0xbc, 0x84, 0xa1, 0xd0, 0xac, 0xf8, 0xc7, 0xf7, 0x6a, - 0x36, 0xc2, 0x68, 0x03, 0x0d, 0x5e, 0xd9, 0xbe, 0x3f, 0xcb, 0x4c, 0xe2, 0x00, 0x4f, 0xc0, 0x4d, - 0x8b, 0x58, 0x36, 0x7d, 0x77, 0x2c, 0xb7, 0x17, 0x81, 0x9a, 0x7a, 0xe8, 0xe9, 0xc2, 0x8b, 0x9f, - 0x01, 0x00, 0x00, 0xff, 0xff, 0x71, 0xcf, 0xd4, 0xbd, 0x82, 0x06, 0x00, 0x00, + // 704 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x54, 0xcf, 0x6f, 0xd3, 0x4a, + 0x10, 0xae, 0x93, 0x38, 0x69, 0x26, 0x55, 0x5f, 0xdf, 0xbe, 0xea, 0xc9, 0xaa, 0x9e, 0xa2, 0xc8, + 0x0f, 0xd1, 0x20, 0x4a, 0x41, 0x01, 0x89, 0x2b, 0x3f, 0xd2, 0x8a, 0x48, 0x40, 0xa3, 0x15, 0x17, + 0x8e, 0x9b, 0xf5, 0x3a, 0x71, 0x6a, 0x67, 0x8d, 0xbd, 0x51, 0x1b, 0xf1, 0x17, 0x70, 0xe3, 0xcf, + 0xe2, 0xd8, 0x23, 0x47, 0xd4, 0xc2, 0xff, 0x81, 0x66, 0x77, 0x1d, 0xbb, 0x52, 0xcb, 0x89, 0x23, + 0xa7, 0xcc, 0xec, 0x7c, 0x9b, 0xef, 0x9b, 0x6f, 0x76, 0x0c, 0xed, 0x3c, 0x38, 0x3d, 0x4c, 0x33, + 0xa9, 0x24, 0xd9, 0xd4, 0x3f, 0x49, 0x3e, 0xdd, 0x83, 0x09, 0xcb, 0x85, 0x39, 0xf5, 0x3f, 0x39, + 0xe0, 0x8e, 0x12, 0x36, 0x15, 0x64, 0x17, 0xdc, 0xb3, 0x28, 0x50, 0x33, 0xcf, 0xe9, 0x39, 0x7d, + 0x97, 0x9a, 0x84, 0xfc, 0x0b, 0xcd, 0x99, 0x88, 0xa6, 0x33, 0xe5, 0xd5, 0xf4, 0xb1, 0xcd, 0x08, + 0x81, 0x46, 0xc0, 0x14, 0xf3, 0xea, 0x3d, 0xa7, 0xbf, 0x45, 0x75, 0x4c, 0xfe, 0x83, 0xb6, 0x8a, + 0x12, 0x91, 0x2b, 0x96, 0xa4, 0x5e, 0xa3, 0xe7, 0xf4, 0xdb, 0xb4, 0x3c, 0x20, 0xdb, 0x50, 0x8b, + 0x02, 0xcf, 0xed, 0x39, 0xfd, 0x3a, 0xad, 0x45, 0x01, 0xd9, 0x81, 0x3a, 0x8f, 0x02, 0xaf, 0xa9, + 0x71, 0x18, 0xfa, 0x53, 0x68, 0x1f, 0x33, 0x2e, 0x9e, 0x2f, 0xa6, 0xb1, 0xc0, 0xf2, 0x8a, 0x9d, + 0x59, 0x31, 0x18, 0xa2, 0xc0, 0x34, 0x52, 0x7c, 0x66, 0x95, 0x98, 0x04, 0x85, 0x64, 0x32, 0x8e, + 0xb5, 0x10, 0x97, 0xea, 0x98, 0x74, 0x01, 0xb8, 0x5c, 0x84, 0x51, 0x20, 0x16, 0x5c, 0x68, 0x25, + 0x35, 0x5a, 0x39, 0xf1, 0xcf, 0x01, 0xde, 0xcd, 0x42, 0x45, 0x45, 0xbe, 0x8c, 0x15, 0xb6, 0x38, + 0x15, 0x8b, 0x40, 0x64, 0x96, 0xcc, 0x66, 0xa8, 0x80, 0x4d, 0x85, 0x65, 0xc3, 0x50, 0x73, 0x31, + 0x2e, 0xd6, 0x5c, 0x8c, 0x0b, 0xbc, 0x3d, 0x11, 0x6c, 0xa9, 0x56, 0x9a, 0xc7, 0xa5, 0x36, 0x43, + 0xb5, 0x79, 0x12, 0xc5, 0x42, 0x77, 0xec, 0x52, 0x93, 0xf8, 0xdf, 0x6b, 0xd0, 0xc2, 0x1e, 0xc7, + 0x32, 0x27, 0x77, 0xa1, 0x99, 0x71, 0x4c, 0x34, 0x6f, 0x67, 0xb0, 0x7d, 0x58, 0x4c, 0xe8, 0x90, + 0x0a, 0xae, 0xa8, 0xad, 0x92, 0x07, 0xd0, 0x4e, 0xd5, 0x6b, 0x11, 0xaa, 0xa3, 0x95, 0x51, 0xd3, + 0x19, 0xfc, 0x55, 0x42, 0xc7, 0x32, 0x5a, 0x28, 0x5a, 0x22, 0xc8, 0x43, 0x80, 0x54, 0x51, 0x1c, + 0x12, 0xe2, 0xeb, 0x37, 0xe3, 0x2b, 0x10, 0x72, 0x0f, 0x5a, 0xa9, 0x7a, 0x23, 0x97, 0x6a, 0xa6, + 0x5b, 0xb8, 0x01, 0x5d, 0xd4, 0xc9, 0x3e, 0x34, 0x53, 0xf5, 0x56, 0xe6, 0xa6, 0xab, 0x1b, 0x90, + 0xb6, 0x4c, 0xee, 0x43, 0x33, 0xd4, 0x73, 0xd4, 0xf3, 0xed, 0x0c, 0xfe, 0x29, 0x81, 0xeb, 0x11, + 0x53, 0x0b, 0x21, 0x1e, 0xb4, 0x3e, 0x2c, 0x59, 0x1c, 0xa9, 0x95, 0xd7, 0xd2, 0x66, 0x15, 0x29, + 0x0e, 0x32, 0x64, 0x3c, 0x62, 0xf1, 0x10, 0xdf, 0xda, 0xa6, 0x7e, 0x6b, 0x95, 0x13, 0x34, 0x3f, + 0x64, 0x5c, 0x8c, 0x86, 0x5e, 0xbb, 0xe7, 0xf4, 0x1b, 0xd4, 0x66, 0xfe, 0x8f, 0x1a, 0x6c, 0x22, + 0xcf, 0x68, 0x11, 0xca, 0x3f, 0x3e, 0xff, 0x6e, 0x9f, 0xeb, 0x6b, 0x9f, 0x4f, 0xa1, 0x75, 0x32, + 0x99, 0x6b, 0x97, 0xef, 0x80, 0x9b, 0xf1, 0x93, 0xc9, 0xfc, 0x16, 0x93, 0x4d, 0x11, 0x77, 0x4a, + 0xad, 0xd2, 0x62, 0xa7, 0xd4, 0x2a, 0xc5, 0x9d, 0x4a, 0x33, 0x39, 0xd1, 0x06, 0xd6, 0xa8, 0x8e, + 0x71, 0x77, 0xe4, 0x64, 0x3e, 0x1a, 0x6a, 0x9f, 0x1a, 0xd4, 0x24, 0xfe, 0x47, 0xd8, 0x31, 0x1b, + 0x8b, 0x9d, 0x0d, 0x85, 0x12, 0x5c, 0x91, 0xff, 0xa1, 0x9e, 0xca, 0xdc, 0x72, 0xfe, 0x7d, 0xbd, + 0xf9, 0xb1, 0xcc, 0x29, 0x56, 0xc9, 0x01, 0x34, 0x33, 0x7d, 0xd1, 0x4e, 0x75, 0xb7, 0xc4, 0x95, + 0x9f, 0x01, 0x6a, 0x31, 0x48, 0x1e, 0x0a, 0xa6, 0x72, 0xfb, 0x69, 0x33, 0x89, 0xff, 0x0c, 0xb6, + 0xc6, 0x2c, 0x63, 0x49, 0xb1, 0xbc, 0x8f, 0xc0, 0x45, 0x0f, 0x90, 0xba, 0xde, 0xef, 0x0c, 0xf6, + 0xaa, 0xed, 0x5e, 0xd7, 0x48, 0x0d, 0xd0, 0x9f, 0x57, 0xe5, 0x1f, 0x9d, 0xab, 0x97, 0x32, 0x29, + 0xb9, 0x9c, 0x0a, 0x17, 0x5a, 0xc2, 0x65, 0x62, 0x5c, 0xda, 0xa2, 0x3a, 0x26, 0x07, 0xa6, 0x51, + 0xf3, 0xcc, 0x7e, 0xc5, 0x86, 0x30, 0xff, 0x15, 0xec, 0xac, 0xd5, 0x1e, 0x0b, 0xa6, 0x96, 0x99, + 0x20, 0x4f, 0xa0, 0x25, 0x34, 0x2b, 0xfe, 0xf1, 0xad, 0x9a, 0x8d, 0x30, 0x5a, 0x40, 0xfd, 0xa7, + 0xb6, 0xef, 0xf7, 0x32, 0x96, 0x38, 0xc0, 0x7d, 0x70, 0xa3, 0x45, 0x28, 0x8b, 0xbe, 0x2b, 0x96, + 0xdb, 0x87, 0x40, 0x4d, 0xfd, 0x85, 0xf7, 0xe5, 0xb2, 0xeb, 0x5c, 0x5c, 0x76, 0x9d, 0x6f, 0x97, + 0x5d, 0xe7, 0xf3, 0x55, 0x77, 0xe3, 0xe2, 0xaa, 0xbb, 0xf1, 0xf5, 0xaa, 0xbb, 0x31, 0x69, 0xea, + 0x2b, 0x8f, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x6a, 0xf8, 0x9f, 0x9c, 0x06, 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 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 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 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/sysset.pb.go b/sysset.pb.go index 0ea7461..7bd9562 100644 --- a/sysset.pb.go +++ b/sysset.pb.go @@ -8,7 +8,6 @@ proto "github.com/gogo/protobuf/proto" io "io" math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -942,7 +941,14 @@ } func sovSysset(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + 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)))) -- Gitblit v1.8.0