From fa98ab8a7158267081413b767d0b8597aa110743 Mon Sep 17 00:00:00 2001
From: 554325746@qq.com <554325746@qq.com>
Date: 星期五, 05 七月 2019 14:12:13 +0800
Subject: [PATCH] add es return infos
---
es.proto | 6
es.pb.go | 311 ++++++++++++++++++++++++++++++++++++++++++++++++---
2 files changed, 295 insertions(+), 22 deletions(-)
diff --git a/es.pb.go b/es.pb.go
index 8ac1d03..aa7f334 100644
--- a/es.pb.go
+++ b/es.pb.go
@@ -198,35 +198,98 @@
return nil
}
+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"`
+}
+
+func (m *Esinfo) Reset() { *m = Esinfo{} }
+func (m *Esinfo) String() string { return proto.CompactTextString(m) }
+func (*Esinfo) ProtoMessage() {}
+func (*Esinfo) Descriptor() ([]byte, []int) {
+ return fileDescriptor_718db5c20d0f3738, []int{2}
+}
+func (m *Esinfo) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Esinfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ 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 m.Size()
+}
+func (m *Esinfo) XXX_DiscardUnknown() {
+ xxx_messageInfo_Esinfo.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Esinfo proto.InternalMessageInfo
+
+func (m *Esinfo) GetId() string {
+ if m != nil {
+ return m.Id
+ }
+ return ""
+}
+
+func (m *Esinfo) GetTableid() string {
+ if m != nil {
+ return m.Tableid
+ }
+ return ""
+}
+
+func (m *Esinfo) GetFaceFeature() string {
+ if m != nil {
+ return m.FaceFeature
+ }
+ return ""
+}
+
func init() {
proto.RegisterType((*Baseinfo)(nil), "protomsg.Baseinfo")
proto.RegisterType((*Binfos)(nil), "protomsg.Binfos")
+ proto.RegisterType((*Esinfo)(nil), "protomsg.Esinfo")
}
func init() { proto.RegisterFile("es.proto", fileDescriptor_718db5c20d0f3738) }
var fileDescriptor_718db5c20d0f3738 = []byte{
- // 311 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xc1, 0x6a, 0xf2, 0x40,
- 0x10, 0xc7, 0x5d, 0xfd, 0x8c, 0x71, 0xf4, 0xf0, 0xb1, 0x87, 0x32, 0x94, 0xb2, 0x04, 0x4f, 0x39,
- 0x79, 0xb0, 0x6f, 0xe0, 0xa1, 0x20, 0x14, 0x29, 0x96, 0x3e, 0xc0, 0x9a, 0x8c, 0x6d, 0xc0, 0xec,
- 0xca, 0xee, 0x5a, 0xfa, 0x18, 0x7d, 0xac, 0x1e, 0x3d, 0xf6, 0x58, 0xf4, 0xda, 0x87, 0x28, 0x99,
- 0xc4, 0x36, 0x9e, 0x76, 0xfe, 0xbf, 0x99, 0x9d, 0x19, 0xfe, 0x03, 0x31, 0xf9, 0xe9, 0xce, 0xd9,
- 0x60, 0x65, 0xcc, 0x4f, 0xe9, 0x9f, 0x27, 0xdf, 0x5d, 0x88, 0xe7, 0xda, 0x53, 0x61, 0x36, 0x56,
- 0x26, 0x30, 0xda, 0xe8, 0x8c, 0xee, 0x48, 0x87, 0xbd, 0x23, 0x14, 0x89, 0x48, 0x87, 0xab, 0x36,
- 0x92, 0xd7, 0x10, 0xef, 0xc8, 0x79, 0x6b, 0x16, 0x39, 0x76, 0x39, 0xfd, 0xab, 0x25, 0xc2, 0x20,
- 0xe8, 0xf5, 0x96, 0x16, 0x39, 0xf6, 0x38, 0x75, 0x96, 0xf2, 0x06, 0x86, 0x1c, 0x2e, 0x75, 0x49,
- 0xf8, 0x8f, 0x73, 0x7f, 0x40, 0x4e, 0x60, 0x9c, 0xd9, 0x72, 0xa7, 0x1d, 0x3d, 0x66, 0xd6, 0x11,
- 0xf6, 0x13, 0x91, 0x76, 0x57, 0x17, 0x4c, 0x2a, 0x80, 0x7a, 0x0e, 0xb7, 0x88, 0xb8, 0x45, 0x8b,
- 0x54, 0x3d, 0x6a, 0xf5, 0x50, 0x64, 0x4f, 0x6e, 0x8b, 0x03, 0xae, 0xb8, 0x60, 0xbc, 0xfb, 0x8b,
- 0x35, 0xb4, 0xdc, 0x97, 0x18, 0x37, 0xbb, 0x37, 0x5a, 0xfe, 0x87, 0x9e, 0xa7, 0x37, 0x1c, 0x32,
- 0xae, 0x42, 0x79, 0x05, 0x51, 0x91, 0x67, 0xda, 0xe5, 0x08, 0x0c, 0x1b, 0x55, 0x4d, 0x2a, 0xad,
- 0x29, 0x82, 0x75, 0xf7, 0xf4, 0x4a, 0x5b, 0x1c, 0xd5, 0x93, 0xda, 0xac, 0x72, 0x22, 0xb3, 0x26,
- 0x90, 0x09, 0x38, 0xae, 0x9d, 0x68, 0xe4, 0x64, 0x06, 0xd1, 0xbc, 0xb2, 0xda, 0xcb, 0x14, 0xfa,
- 0x1c, 0xa0, 0x48, 0x7a, 0xe9, 0x68, 0x26, 0xa7, 0xe7, 0x93, 0x4c, 0xcf, 0xe7, 0x58, 0xd5, 0x05,
- 0x73, 0xfc, 0x38, 0x2a, 0x71, 0x38, 0x2a, 0xf1, 0x75, 0x54, 0xe2, 0xfd, 0xa4, 0x3a, 0x87, 0x93,
- 0xea, 0x7c, 0x9e, 0x54, 0x67, 0x1d, 0xf1, 0x9f, 0xdb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x81,
- 0xfe, 0xfa, 0x51, 0xd9, 0x01, 0x00, 0x00,
+ // 338 bytes of a gzipped FileDescri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x5a, 0xdd, 0xa9, 0xf4, 0xd1, 0xac, 0xb0, 0xc7, 0x3f, 0x4e, 0x18, 0xdf, 0xfe,
+ 0xac, 0x0b, 0x9a, 0x6d, 0x72, 0x0c, 0x9a, 0xdb, 0x1b, 0x2d, 0xce, 0xc0, 0xb3, 0xf4, 0x8a, 0x7d,
+ 0xc6, 0x55, 0x29, 0xce, 0xc1, 0x57, 0x59, 0x2a, 0x4d, 0x86, 0xc0, 0xb0, 0x51, 0xd5, 0xa6, 0x5c,
+ 0x17, 0xaa, 0xd4, 0xe6, 0x96, 0x5e, 0x68, 0x85, 0x83, 0x7a, 0xd3, 0x31, 0xab, 0x9c, 0x48, 0x75,
+ 0x51, 0x52, 0x51, 0xe2, 0xb0, 0x76, 0xa2, 0x91, 0xf1, 0x18, 0xfc, 0x49, 0x65, 0xb5, 0x15, 0x09,
+ 0x74, 0xb9, 0x40, 0x27, 0xf2, 0x92, 0xc1, 0x58, 0x8c, 0xda, 0x48, 0x46, 0x6d, 0x1c, 0xf3, 0xfa,
+ 0x43, 0xfc, 0x00, 0xfe, 0xb5, 0xe5, 0x7c, 0xfe, 0x83, 0xab, 0xb2, 0x26, 0x16, 0x57, 0x1d, 0x1c,
+ 0x57, 0x6d, 0x18, 0xad, 0xfc, 0x9d, 0xa4, 0xf7, 0x27, 0xc9, 0x09, 0xbe, 0xef, 0x42, 0x67, 0xbb,
+ 0x0b, 0x9d, 0xcf, 0x5d, 0xe8, 0xbc, 0xed, 0xc3, 0xce, 0x76, 0x1f, 0x76, 0x3e, 0xf6, 0x61, 0x67,
+ 0xe1, 0xf3, 0x25, 0x57, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x05, 0xa7, 0x2d, 0x5e, 0x2f, 0x02,
+ 0x00, 0x00,
}
func (m *Baseinfo) Marshal() (dAtA []byte, err error) {
@@ -349,6 +412,42 @@
return i, nil
}
+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)
+ }
+ return i, nil
+}
+
func encodeVarintEs(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
@@ -425,6 +524,27 @@
l = e.Size()
n += 1 + l + sovEs(uint64(l))
}
+ }
+ return n
+}
+
+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))
}
return n
}
@@ -945,6 +1065,155 @@
}
return nil
}
+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
+ 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
diff --git a/es.proto b/es.proto
index 372fc0f..32b12c9 100644
--- a/es.proto
+++ b/es.proto
@@ -21,5 +21,9 @@
repeated Baseinfo infos = 1;
}
-
+message Esinfo{
+ string id =1;
+ string tableid =2;
+ string faceFeature =3;
+}
--
Gitblit v1.8.0