github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/api/types/plugins/logdriver/entry.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: entry.proto
     3  
     4  package logdriver
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/gogo/protobuf/proto"
     9  	io "io"
    10  	math "math"
    11  	math_bits "math/bits"
    12  )
    13  
    14  // Reference imports to suppress errors if they are not otherwise used.
    15  var _ = proto.Marshal
    16  var _ = fmt.Errorf
    17  var _ = math.Inf
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the proto package it is being compiled against.
    21  // A compilation error at this line likely means your copy of the
    22  // proto package needs to be updated.
    23  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    24  
    25  type LogEntry struct {
    26  	Source             string                   `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
    27  	TimeNano           int64                    `protobuf:"varint,2,opt,name=time_nano,json=timeNano,proto3" json:"time_nano,omitempty"`
    28  	Line               []byte                   `protobuf:"bytes,3,opt,name=line,proto3" json:"line,omitempty"`
    29  	Partial            bool                     `protobuf:"varint,4,opt,name=partial,proto3" json:"partial,omitempty"`
    30  	PartialLogMetadata *PartialLogEntryMetadata `protobuf:"bytes,5,opt,name=partial_log_metadata,json=partialLogMetadata,proto3" json:"partial_log_metadata,omitempty"`
    31  }
    32  
    33  func (m *LogEntry) Reset()         { *m = LogEntry{} }
    34  func (m *LogEntry) String() string { return proto.CompactTextString(m) }
    35  func (*LogEntry) ProtoMessage()    {}
    36  func (*LogEntry) Descriptor() ([]byte, []int) {
    37  	return fileDescriptor_daa6c5b6c627940f, []int{0}
    38  }
    39  func (m *LogEntry) XXX_Unmarshal(b []byte) error {
    40  	return m.Unmarshal(b)
    41  }
    42  func (m *LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    43  	if deterministic {
    44  		return xxx_messageInfo_LogEntry.Marshal(b, m, deterministic)
    45  	} else {
    46  		b = b[:cap(b)]
    47  		n, err := m.MarshalToSizedBuffer(b)
    48  		if err != nil {
    49  			return nil, err
    50  		}
    51  		return b[:n], nil
    52  	}
    53  }
    54  func (m *LogEntry) XXX_Merge(src proto.Message) {
    55  	xxx_messageInfo_LogEntry.Merge(m, src)
    56  }
    57  func (m *LogEntry) XXX_Size() int {
    58  	return m.Size()
    59  }
    60  func (m *LogEntry) XXX_DiscardUnknown() {
    61  	xxx_messageInfo_LogEntry.DiscardUnknown(m)
    62  }
    63  
    64  var xxx_messageInfo_LogEntry proto.InternalMessageInfo
    65  
    66  func (m *LogEntry) GetSource() string {
    67  	if m != nil {
    68  		return m.Source
    69  	}
    70  	return ""
    71  }
    72  
    73  func (m *LogEntry) GetTimeNano() int64 {
    74  	if m != nil {
    75  		return m.TimeNano
    76  	}
    77  	return 0
    78  }
    79  
    80  func (m *LogEntry) GetLine() []byte {
    81  	if m != nil {
    82  		return m.Line
    83  	}
    84  	return nil
    85  }
    86  
    87  func (m *LogEntry) GetPartial() bool {
    88  	if m != nil {
    89  		return m.Partial
    90  	}
    91  	return false
    92  }
    93  
    94  func (m *LogEntry) GetPartialLogMetadata() *PartialLogEntryMetadata {
    95  	if m != nil {
    96  		return m.PartialLogMetadata
    97  	}
    98  	return nil
    99  }
   100  
   101  type PartialLogEntryMetadata struct {
   102  	Last    bool   `protobuf:"varint,1,opt,name=last,proto3" json:"last,omitempty"`
   103  	Id      string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   104  	Ordinal int32  `protobuf:"varint,3,opt,name=ordinal,proto3" json:"ordinal,omitempty"`
   105  }
   106  
   107  func (m *PartialLogEntryMetadata) Reset()         { *m = PartialLogEntryMetadata{} }
   108  func (m *PartialLogEntryMetadata) String() string { return proto.CompactTextString(m) }
   109  func (*PartialLogEntryMetadata) ProtoMessage()    {}
   110  func (*PartialLogEntryMetadata) Descriptor() ([]byte, []int) {
   111  	return fileDescriptor_daa6c5b6c627940f, []int{1}
   112  }
   113  func (m *PartialLogEntryMetadata) XXX_Unmarshal(b []byte) error {
   114  	return m.Unmarshal(b)
   115  }
   116  func (m *PartialLogEntryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   117  	if deterministic {
   118  		return xxx_messageInfo_PartialLogEntryMetadata.Marshal(b, m, deterministic)
   119  	} else {
   120  		b = b[:cap(b)]
   121  		n, err := m.MarshalToSizedBuffer(b)
   122  		if err != nil {
   123  			return nil, err
   124  		}
   125  		return b[:n], nil
   126  	}
   127  }
   128  func (m *PartialLogEntryMetadata) XXX_Merge(src proto.Message) {
   129  	xxx_messageInfo_PartialLogEntryMetadata.Merge(m, src)
   130  }
   131  func (m *PartialLogEntryMetadata) XXX_Size() int {
   132  	return m.Size()
   133  }
   134  func (m *PartialLogEntryMetadata) XXX_DiscardUnknown() {
   135  	xxx_messageInfo_PartialLogEntryMetadata.DiscardUnknown(m)
   136  }
   137  
   138  var xxx_messageInfo_PartialLogEntryMetadata proto.InternalMessageInfo
   139  
   140  func (m *PartialLogEntryMetadata) GetLast() bool {
   141  	if m != nil {
   142  		return m.Last
   143  	}
   144  	return false
   145  }
   146  
   147  func (m *PartialLogEntryMetadata) GetId() string {
   148  	if m != nil {
   149  		return m.Id
   150  	}
   151  	return ""
   152  }
   153  
   154  func (m *PartialLogEntryMetadata) GetOrdinal() int32 {
   155  	if m != nil {
   156  		return m.Ordinal
   157  	}
   158  	return 0
   159  }
   160  
   161  func init() {
   162  	proto.RegisterType((*LogEntry)(nil), "LogEntry")
   163  	proto.RegisterType((*PartialLogEntryMetadata)(nil), "PartialLogEntryMetadata")
   164  }
   165  
   166  func init() { proto.RegisterFile("entry.proto", fileDescriptor_daa6c5b6c627940f) }
   167  
   168  var fileDescriptor_daa6c5b6c627940f = []byte{
   169  	// 250 bytes of a gzipped FileDescriptorProto
   170  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xbd, 0x4a, 0x04, 0x31,
   171  	0x14, 0x85, 0xe7, 0xce, 0xfe, 0x38, 0x73, 0x57, 0x2c, 0x82, 0x68, 0x40, 0x08, 0x61, 0xab, 0x54,
   172  	0x5b, 0xe8, 0x1b, 0x08, 0x36, 0xa2, 0x22, 0x69, 0x2c, 0x87, 0xab, 0x13, 0x96, 0xc0, 0x6c, 0x32,
   173  	0x64, 0x63, 0xe1, 0x5b, 0xf8, 0x3a, 0xbe, 0x81, 0xe5, 0x96, 0x96, 0x32, 0xf3, 0x22, 0x32, 0x71,
   174  	0xc6, 0xce, 0xee, 0x9c, 0xf3, 0xa5, 0xf8, 0x72, 0x71, 0x65, 0x5c, 0x0c, 0x6f, 0x9b, 0x36, 0xf8,
   175  	0xe8, 0xd7, 0x1f, 0x80, 0xc5, 0x9d, 0xdf, 0xde, 0x0c, 0x13, 0x3b, 0xc3, 0xe5, 0xde, 0xbf, 0x86,
   176  	0x17, 0xc3, 0x41, 0x82, 0x2a, 0xf5, 0xd8, 0xd8, 0x05, 0x96, 0xd1, 0xee, 0x4c, 0xe5, 0xc8, 0x79,
   177  	0x9e, 0x4b, 0x50, 0x33, 0x5d, 0x0c, 0xc3, 0x03, 0x39, 0xcf, 0x18, 0xce, 0x1b, 0xeb, 0x0c, 0x9f,
   178  	0x49, 0x50, 0xc7, 0x3a, 0x65, 0xc6, 0xf1, 0xa8, 0xa5, 0x10, 0x2d, 0x35, 0x7c, 0x2e, 0x41, 0x15,
   179  	0x7a, 0xaa, 0xec, 0x16, 0x4f, 0xc7, 0x58, 0x35, 0x7e, 0x5b, 0xed, 0x4c, 0xa4, 0x9a, 0x22, 0xf1,
   180  	0x85, 0x04, 0xb5, 0xba, 0xe4, 0x9b, 0xc7, 0x5f, 0x38, 0x29, 0xdd, 0x8f, 0x5c, 0xb3, 0xf6, 0x0f,
   181  	0x4c, 0xdb, 0xfa, 0x09, 0xcf, 0xff, 0x79, 0x9e, 0xa4, 0x68, 0x1f, 0xd3, 0x3f, 0x0a, 0x9d, 0x32,
   182  	0x3b, 0xc1, 0xdc, 0xd6, 0x49, 0xbf, 0xd4, 0xb9, 0xad, 0x07, 0x49, 0x1f, 0x6a, 0xeb, 0xa8, 0x49,
   183  	0xee, 0x0b, 0x3d, 0xd5, 0x6b, 0xfe, 0xd9, 0x09, 0x38, 0x74, 0x02, 0xbe, 0x3b, 0x01, 0xef, 0xbd,
   184  	0xc8, 0x0e, 0xbd, 0xc8, 0xbe, 0x7a, 0x91, 0x3d, 0x2f, 0xd3, 0xd5, 0xae, 0x7e, 0x02, 0x00, 0x00,
   185  	0xff, 0xff, 0xbb, 0x82, 0x62, 0xd5, 0x44, 0x01, 0x00, 0x00,
   186  }
   187  
   188  func (m *LogEntry) Marshal() (dAtA []byte, err error) {
   189  	size := m.Size()
   190  	dAtA = make([]byte, size)
   191  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   192  	if err != nil {
   193  		return nil, err
   194  	}
   195  	return dAtA[:n], nil
   196  }
   197  
   198  func (m *LogEntry) MarshalTo(dAtA []byte) (int, error) {
   199  	size := m.Size()
   200  	return m.MarshalToSizedBuffer(dAtA[:size])
   201  }
   202  
   203  func (m *LogEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   204  	i := len(dAtA)
   205  	_ = i
   206  	var l int
   207  	_ = l
   208  	if m.PartialLogMetadata != nil {
   209  		{
   210  			size, err := m.PartialLogMetadata.MarshalToSizedBuffer(dAtA[:i])
   211  			if err != nil {
   212  				return 0, err
   213  			}
   214  			i -= size
   215  			i = encodeVarintEntry(dAtA, i, uint64(size))
   216  		}
   217  		i--
   218  		dAtA[i] = 0x2a
   219  	}
   220  	if m.Partial {
   221  		i--
   222  		if m.Partial {
   223  			dAtA[i] = 1
   224  		} else {
   225  			dAtA[i] = 0
   226  		}
   227  		i--
   228  		dAtA[i] = 0x20
   229  	}
   230  	if len(m.Line) > 0 {
   231  		i -= len(m.Line)
   232  		copy(dAtA[i:], m.Line)
   233  		i = encodeVarintEntry(dAtA, i, uint64(len(m.Line)))
   234  		i--
   235  		dAtA[i] = 0x1a
   236  	}
   237  	if m.TimeNano != 0 {
   238  		i = encodeVarintEntry(dAtA, i, uint64(m.TimeNano))
   239  		i--
   240  		dAtA[i] = 0x10
   241  	}
   242  	if len(m.Source) > 0 {
   243  		i -= len(m.Source)
   244  		copy(dAtA[i:], m.Source)
   245  		i = encodeVarintEntry(dAtA, i, uint64(len(m.Source)))
   246  		i--
   247  		dAtA[i] = 0xa
   248  	}
   249  	return len(dAtA) - i, nil
   250  }
   251  
   252  func (m *PartialLogEntryMetadata) Marshal() (dAtA []byte, err error) {
   253  	size := m.Size()
   254  	dAtA = make([]byte, size)
   255  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   256  	if err != nil {
   257  		return nil, err
   258  	}
   259  	return dAtA[:n], nil
   260  }
   261  
   262  func (m *PartialLogEntryMetadata) MarshalTo(dAtA []byte) (int, error) {
   263  	size := m.Size()
   264  	return m.MarshalToSizedBuffer(dAtA[:size])
   265  }
   266  
   267  func (m *PartialLogEntryMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   268  	i := len(dAtA)
   269  	_ = i
   270  	var l int
   271  	_ = l
   272  	if m.Ordinal != 0 {
   273  		i = encodeVarintEntry(dAtA, i, uint64(m.Ordinal))
   274  		i--
   275  		dAtA[i] = 0x18
   276  	}
   277  	if len(m.Id) > 0 {
   278  		i -= len(m.Id)
   279  		copy(dAtA[i:], m.Id)
   280  		i = encodeVarintEntry(dAtA, i, uint64(len(m.Id)))
   281  		i--
   282  		dAtA[i] = 0x12
   283  	}
   284  	if m.Last {
   285  		i--
   286  		if m.Last {
   287  			dAtA[i] = 1
   288  		} else {
   289  			dAtA[i] = 0
   290  		}
   291  		i--
   292  		dAtA[i] = 0x8
   293  	}
   294  	return len(dAtA) - i, nil
   295  }
   296  
   297  func encodeVarintEntry(dAtA []byte, offset int, v uint64) int {
   298  	offset -= sovEntry(v)
   299  	base := offset
   300  	for v >= 1<<7 {
   301  		dAtA[offset] = uint8(v&0x7f | 0x80)
   302  		v >>= 7
   303  		offset++
   304  	}
   305  	dAtA[offset] = uint8(v)
   306  	return base
   307  }
   308  func (m *LogEntry) Size() (n int) {
   309  	if m == nil {
   310  		return 0
   311  	}
   312  	var l int
   313  	_ = l
   314  	l = len(m.Source)
   315  	if l > 0 {
   316  		n += 1 + l + sovEntry(uint64(l))
   317  	}
   318  	if m.TimeNano != 0 {
   319  		n += 1 + sovEntry(uint64(m.TimeNano))
   320  	}
   321  	l = len(m.Line)
   322  	if l > 0 {
   323  		n += 1 + l + sovEntry(uint64(l))
   324  	}
   325  	if m.Partial {
   326  		n += 2
   327  	}
   328  	if m.PartialLogMetadata != nil {
   329  		l = m.PartialLogMetadata.Size()
   330  		n += 1 + l + sovEntry(uint64(l))
   331  	}
   332  	return n
   333  }
   334  
   335  func (m *PartialLogEntryMetadata) Size() (n int) {
   336  	if m == nil {
   337  		return 0
   338  	}
   339  	var l int
   340  	_ = l
   341  	if m.Last {
   342  		n += 2
   343  	}
   344  	l = len(m.Id)
   345  	if l > 0 {
   346  		n += 1 + l + sovEntry(uint64(l))
   347  	}
   348  	if m.Ordinal != 0 {
   349  		n += 1 + sovEntry(uint64(m.Ordinal))
   350  	}
   351  	return n
   352  }
   353  
   354  func sovEntry(x uint64) (n int) {
   355  	return (math_bits.Len64(x|1) + 6) / 7
   356  }
   357  func sozEntry(x uint64) (n int) {
   358  	return sovEntry(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   359  }
   360  func (m *LogEntry) Unmarshal(dAtA []byte) error {
   361  	l := len(dAtA)
   362  	iNdEx := 0
   363  	for iNdEx < l {
   364  		preIndex := iNdEx
   365  		var wire uint64
   366  		for shift := uint(0); ; shift += 7 {
   367  			if shift >= 64 {
   368  				return ErrIntOverflowEntry
   369  			}
   370  			if iNdEx >= l {
   371  				return io.ErrUnexpectedEOF
   372  			}
   373  			b := dAtA[iNdEx]
   374  			iNdEx++
   375  			wire |= uint64(b&0x7F) << shift
   376  			if b < 0x80 {
   377  				break
   378  			}
   379  		}
   380  		fieldNum := int32(wire >> 3)
   381  		wireType := int(wire & 0x7)
   382  		if wireType == 4 {
   383  			return fmt.Errorf("proto: LogEntry: wiretype end group for non-group")
   384  		}
   385  		if fieldNum <= 0 {
   386  			return fmt.Errorf("proto: LogEntry: illegal tag %d (wire type %d)", fieldNum, wire)
   387  		}
   388  		switch fieldNum {
   389  		case 1:
   390  			if wireType != 2 {
   391  				return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
   392  			}
   393  			var stringLen uint64
   394  			for shift := uint(0); ; shift += 7 {
   395  				if shift >= 64 {
   396  					return ErrIntOverflowEntry
   397  				}
   398  				if iNdEx >= l {
   399  					return io.ErrUnexpectedEOF
   400  				}
   401  				b := dAtA[iNdEx]
   402  				iNdEx++
   403  				stringLen |= uint64(b&0x7F) << shift
   404  				if b < 0x80 {
   405  					break
   406  				}
   407  			}
   408  			intStringLen := int(stringLen)
   409  			if intStringLen < 0 {
   410  				return ErrInvalidLengthEntry
   411  			}
   412  			postIndex := iNdEx + intStringLen
   413  			if postIndex < 0 {
   414  				return ErrInvalidLengthEntry
   415  			}
   416  			if postIndex > l {
   417  				return io.ErrUnexpectedEOF
   418  			}
   419  			m.Source = string(dAtA[iNdEx:postIndex])
   420  			iNdEx = postIndex
   421  		case 2:
   422  			if wireType != 0 {
   423  				return fmt.Errorf("proto: wrong wireType = %d for field TimeNano", wireType)
   424  			}
   425  			m.TimeNano = 0
   426  			for shift := uint(0); ; shift += 7 {
   427  				if shift >= 64 {
   428  					return ErrIntOverflowEntry
   429  				}
   430  				if iNdEx >= l {
   431  					return io.ErrUnexpectedEOF
   432  				}
   433  				b := dAtA[iNdEx]
   434  				iNdEx++
   435  				m.TimeNano |= int64(b&0x7F) << shift
   436  				if b < 0x80 {
   437  					break
   438  				}
   439  			}
   440  		case 3:
   441  			if wireType != 2 {
   442  				return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType)
   443  			}
   444  			var byteLen int
   445  			for shift := uint(0); ; shift += 7 {
   446  				if shift >= 64 {
   447  					return ErrIntOverflowEntry
   448  				}
   449  				if iNdEx >= l {
   450  					return io.ErrUnexpectedEOF
   451  				}
   452  				b := dAtA[iNdEx]
   453  				iNdEx++
   454  				byteLen |= int(b&0x7F) << shift
   455  				if b < 0x80 {
   456  					break
   457  				}
   458  			}
   459  			if byteLen < 0 {
   460  				return ErrInvalidLengthEntry
   461  			}
   462  			postIndex := iNdEx + byteLen
   463  			if postIndex < 0 {
   464  				return ErrInvalidLengthEntry
   465  			}
   466  			if postIndex > l {
   467  				return io.ErrUnexpectedEOF
   468  			}
   469  			m.Line = append(m.Line[:0], dAtA[iNdEx:postIndex]...)
   470  			if m.Line == nil {
   471  				m.Line = []byte{}
   472  			}
   473  			iNdEx = postIndex
   474  		case 4:
   475  			if wireType != 0 {
   476  				return fmt.Errorf("proto: wrong wireType = %d for field Partial", wireType)
   477  			}
   478  			var v int
   479  			for shift := uint(0); ; shift += 7 {
   480  				if shift >= 64 {
   481  					return ErrIntOverflowEntry
   482  				}
   483  				if iNdEx >= l {
   484  					return io.ErrUnexpectedEOF
   485  				}
   486  				b := dAtA[iNdEx]
   487  				iNdEx++
   488  				v |= int(b&0x7F) << shift
   489  				if b < 0x80 {
   490  					break
   491  				}
   492  			}
   493  			m.Partial = bool(v != 0)
   494  		case 5:
   495  			if wireType != 2 {
   496  				return fmt.Errorf("proto: wrong wireType = %d for field PartialLogMetadata", wireType)
   497  			}
   498  			var msglen int
   499  			for shift := uint(0); ; shift += 7 {
   500  				if shift >= 64 {
   501  					return ErrIntOverflowEntry
   502  				}
   503  				if iNdEx >= l {
   504  					return io.ErrUnexpectedEOF
   505  				}
   506  				b := dAtA[iNdEx]
   507  				iNdEx++
   508  				msglen |= int(b&0x7F) << shift
   509  				if b < 0x80 {
   510  					break
   511  				}
   512  			}
   513  			if msglen < 0 {
   514  				return ErrInvalidLengthEntry
   515  			}
   516  			postIndex := iNdEx + msglen
   517  			if postIndex < 0 {
   518  				return ErrInvalidLengthEntry
   519  			}
   520  			if postIndex > l {
   521  				return io.ErrUnexpectedEOF
   522  			}
   523  			if m.PartialLogMetadata == nil {
   524  				m.PartialLogMetadata = &PartialLogEntryMetadata{}
   525  			}
   526  			if err := m.PartialLogMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   527  				return err
   528  			}
   529  			iNdEx = postIndex
   530  		default:
   531  			iNdEx = preIndex
   532  			skippy, err := skipEntry(dAtA[iNdEx:])
   533  			if err != nil {
   534  				return err
   535  			}
   536  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   537  				return ErrInvalidLengthEntry
   538  			}
   539  			if (iNdEx + skippy) > l {
   540  				return io.ErrUnexpectedEOF
   541  			}
   542  			iNdEx += skippy
   543  		}
   544  	}
   545  
   546  	if iNdEx > l {
   547  		return io.ErrUnexpectedEOF
   548  	}
   549  	return nil
   550  }
   551  func (m *PartialLogEntryMetadata) Unmarshal(dAtA []byte) error {
   552  	l := len(dAtA)
   553  	iNdEx := 0
   554  	for iNdEx < l {
   555  		preIndex := iNdEx
   556  		var wire uint64
   557  		for shift := uint(0); ; shift += 7 {
   558  			if shift >= 64 {
   559  				return ErrIntOverflowEntry
   560  			}
   561  			if iNdEx >= l {
   562  				return io.ErrUnexpectedEOF
   563  			}
   564  			b := dAtA[iNdEx]
   565  			iNdEx++
   566  			wire |= uint64(b&0x7F) << shift
   567  			if b < 0x80 {
   568  				break
   569  			}
   570  		}
   571  		fieldNum := int32(wire >> 3)
   572  		wireType := int(wire & 0x7)
   573  		if wireType == 4 {
   574  			return fmt.Errorf("proto: PartialLogEntryMetadata: wiretype end group for non-group")
   575  		}
   576  		if fieldNum <= 0 {
   577  			return fmt.Errorf("proto: PartialLogEntryMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
   578  		}
   579  		switch fieldNum {
   580  		case 1:
   581  			if wireType != 0 {
   582  				return fmt.Errorf("proto: wrong wireType = %d for field Last", wireType)
   583  			}
   584  			var v int
   585  			for shift := uint(0); ; shift += 7 {
   586  				if shift >= 64 {
   587  					return ErrIntOverflowEntry
   588  				}
   589  				if iNdEx >= l {
   590  					return io.ErrUnexpectedEOF
   591  				}
   592  				b := dAtA[iNdEx]
   593  				iNdEx++
   594  				v |= int(b&0x7F) << shift
   595  				if b < 0x80 {
   596  					break
   597  				}
   598  			}
   599  			m.Last = bool(v != 0)
   600  		case 2:
   601  			if wireType != 2 {
   602  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
   603  			}
   604  			var stringLen uint64
   605  			for shift := uint(0); ; shift += 7 {
   606  				if shift >= 64 {
   607  					return ErrIntOverflowEntry
   608  				}
   609  				if iNdEx >= l {
   610  					return io.ErrUnexpectedEOF
   611  				}
   612  				b := dAtA[iNdEx]
   613  				iNdEx++
   614  				stringLen |= uint64(b&0x7F) << shift
   615  				if b < 0x80 {
   616  					break
   617  				}
   618  			}
   619  			intStringLen := int(stringLen)
   620  			if intStringLen < 0 {
   621  				return ErrInvalidLengthEntry
   622  			}
   623  			postIndex := iNdEx + intStringLen
   624  			if postIndex < 0 {
   625  				return ErrInvalidLengthEntry
   626  			}
   627  			if postIndex > l {
   628  				return io.ErrUnexpectedEOF
   629  			}
   630  			m.Id = string(dAtA[iNdEx:postIndex])
   631  			iNdEx = postIndex
   632  		case 3:
   633  			if wireType != 0 {
   634  				return fmt.Errorf("proto: wrong wireType = %d for field Ordinal", wireType)
   635  			}
   636  			m.Ordinal = 0
   637  			for shift := uint(0); ; shift += 7 {
   638  				if shift >= 64 {
   639  					return ErrIntOverflowEntry
   640  				}
   641  				if iNdEx >= l {
   642  					return io.ErrUnexpectedEOF
   643  				}
   644  				b := dAtA[iNdEx]
   645  				iNdEx++
   646  				m.Ordinal |= int32(b&0x7F) << shift
   647  				if b < 0x80 {
   648  					break
   649  				}
   650  			}
   651  		default:
   652  			iNdEx = preIndex
   653  			skippy, err := skipEntry(dAtA[iNdEx:])
   654  			if err != nil {
   655  				return err
   656  			}
   657  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   658  				return ErrInvalidLengthEntry
   659  			}
   660  			if (iNdEx + skippy) > l {
   661  				return io.ErrUnexpectedEOF
   662  			}
   663  			iNdEx += skippy
   664  		}
   665  	}
   666  
   667  	if iNdEx > l {
   668  		return io.ErrUnexpectedEOF
   669  	}
   670  	return nil
   671  }
   672  func skipEntry(dAtA []byte) (n int, err error) {
   673  	l := len(dAtA)
   674  	iNdEx := 0
   675  	depth := 0
   676  	for iNdEx < l {
   677  		var wire uint64
   678  		for shift := uint(0); ; shift += 7 {
   679  			if shift >= 64 {
   680  				return 0, ErrIntOverflowEntry
   681  			}
   682  			if iNdEx >= l {
   683  				return 0, io.ErrUnexpectedEOF
   684  			}
   685  			b := dAtA[iNdEx]
   686  			iNdEx++
   687  			wire |= (uint64(b) & 0x7F) << shift
   688  			if b < 0x80 {
   689  				break
   690  			}
   691  		}
   692  		wireType := int(wire & 0x7)
   693  		switch wireType {
   694  		case 0:
   695  			for shift := uint(0); ; shift += 7 {
   696  				if shift >= 64 {
   697  					return 0, ErrIntOverflowEntry
   698  				}
   699  				if iNdEx >= l {
   700  					return 0, io.ErrUnexpectedEOF
   701  				}
   702  				iNdEx++
   703  				if dAtA[iNdEx-1] < 0x80 {
   704  					break
   705  				}
   706  			}
   707  		case 1:
   708  			iNdEx += 8
   709  		case 2:
   710  			var length int
   711  			for shift := uint(0); ; shift += 7 {
   712  				if shift >= 64 {
   713  					return 0, ErrIntOverflowEntry
   714  				}
   715  				if iNdEx >= l {
   716  					return 0, io.ErrUnexpectedEOF
   717  				}
   718  				b := dAtA[iNdEx]
   719  				iNdEx++
   720  				length |= (int(b) & 0x7F) << shift
   721  				if b < 0x80 {
   722  					break
   723  				}
   724  			}
   725  			if length < 0 {
   726  				return 0, ErrInvalidLengthEntry
   727  			}
   728  			iNdEx += length
   729  		case 3:
   730  			depth++
   731  		case 4:
   732  			if depth == 0 {
   733  				return 0, ErrUnexpectedEndOfGroupEntry
   734  			}
   735  			depth--
   736  		case 5:
   737  			iNdEx += 4
   738  		default:
   739  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   740  		}
   741  		if iNdEx < 0 {
   742  			return 0, ErrInvalidLengthEntry
   743  		}
   744  		if depth == 0 {
   745  			return iNdEx, nil
   746  		}
   747  	}
   748  	return 0, io.ErrUnexpectedEOF
   749  }
   750  
   751  var (
   752  	ErrInvalidLengthEntry        = fmt.Errorf("proto: negative length found during unmarshaling")
   753  	ErrIntOverflowEntry          = fmt.Errorf("proto: integer overflow")
   754  	ErrUnexpectedEndOfGroupEntry = fmt.Errorf("proto: unexpected end of group")
   755  )