github.com/demonoid81/containerd@v1.3.4/api/types/descriptor.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/containerd/containerd/api/types/descriptor.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/gogo/protobuf/proto"
     9  	github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
    10  	github_com_opencontainers_go_digest "github.com/opencontainers/go-digest"
    11  	io "io"
    12  	math "math"
    13  	reflect "reflect"
    14  	strings "strings"
    15  )
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var _ = proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    27  
    28  // Descriptor describes a blob in a content store.
    29  //
    30  // This descriptor can be used to reference content from an
    31  // oci descriptor found in a manifest.
    32  // See https://godoc.org/github.com/opencontainers/image-spec/specs-go/v1#Descriptor
    33  type Descriptor struct {
    34  	MediaType            string                                     `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
    35  	Digest               github_com_opencontainers_go_digest.Digest `protobuf:"bytes,2,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"`
    36  	Size_                int64                                      `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
    37  	Annotations          map[string]string                          `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    38  	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
    39  	XXX_unrecognized     []byte                                     `json:"-"`
    40  	XXX_sizecache        int32                                      `json:"-"`
    41  }
    42  
    43  func (m *Descriptor) Reset()      { *m = Descriptor{} }
    44  func (*Descriptor) ProtoMessage() {}
    45  func (*Descriptor) Descriptor() ([]byte, []int) {
    46  	return fileDescriptor_37f958df3707db9e, []int{0}
    47  }
    48  func (m *Descriptor) XXX_Unmarshal(b []byte) error {
    49  	return m.Unmarshal(b)
    50  }
    51  func (m *Descriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    52  	if deterministic {
    53  		return xxx_messageInfo_Descriptor.Marshal(b, m, deterministic)
    54  	} else {
    55  		b = b[:cap(b)]
    56  		n, err := m.MarshalTo(b)
    57  		if err != nil {
    58  			return nil, err
    59  		}
    60  		return b[:n], nil
    61  	}
    62  }
    63  func (m *Descriptor) XXX_Merge(src proto.Message) {
    64  	xxx_messageInfo_Descriptor.Merge(m, src)
    65  }
    66  func (m *Descriptor) XXX_Size() int {
    67  	return m.Size()
    68  }
    69  func (m *Descriptor) XXX_DiscardUnknown() {
    70  	xxx_messageInfo_Descriptor.DiscardUnknown(m)
    71  }
    72  
    73  var xxx_messageInfo_Descriptor proto.InternalMessageInfo
    74  
    75  func init() {
    76  	proto.RegisterType((*Descriptor)(nil), "containerd.types.Descriptor")
    77  	proto.RegisterMapType((map[string]string)(nil), "containerd.types.Descriptor.AnnotationsEntry")
    78  }
    79  
    80  func init() {
    81  	proto.RegisterFile("github.com/containerd/containerd/api/types/descriptor.proto", fileDescriptor_37f958df3707db9e)
    82  }
    83  
    84  var fileDescriptor_37f958df3707db9e = []byte{
    85  	// 311 bytes of a gzipped FileDescriptorProto
    86  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x4e, 0xcf, 0x2c, 0xc9,
    87  	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc, 0x4b, 0x2d,
    88  	0x4a, 0x41, 0x66, 0x26, 0x16, 0x64, 0xea, 0x97, 0x54, 0x16, 0xa4, 0x16, 0xeb, 0xa7, 0xa4, 0x16,
    89  	0x27, 0x17, 0x65, 0x16, 0x94, 0xe4, 0x17, 0xe9, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0x20,
    90  	0x94, 0xe9, 0x81, 0x95, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x25, 0xf5, 0x41, 0x2c, 0x88,
    91  	0x3a, 0xa5, 0x39, 0x4c, 0x5c, 0x5c, 0x2e, 0x70, 0xcd, 0x42, 0xb2, 0x5c, 0x5c, 0xb9, 0xa9, 0x29,
    92  	0x99, 0x89, 0xf1, 0x20, 0x3d, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x9c, 0x60, 0x91, 0x90,
    93  	0xca, 0x82, 0x54, 0x21, 0x2f, 0x2e, 0xb6, 0x94, 0xcc, 0xf4, 0xd4, 0xe2, 0x12, 0x09, 0x26, 0x90,
    94  	0x94, 0x93, 0xd1, 0x89, 0x7b, 0xf2, 0x0c, 0xb7, 0xee, 0xc9, 0x6b, 0x21, 0x39, 0x35, 0xbf, 0x20,
    95  	0x35, 0x0f, 0x6e, 0x79, 0xb1, 0x7e, 0x7a, 0xbe, 0x2e, 0x44, 0x8b, 0x9e, 0x0b, 0x98, 0x0a, 0x82,
    96  	0x9a, 0x20, 0x24, 0xc4, 0xc5, 0x52, 0x9c, 0x59, 0x95, 0x2a, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x1c,
    97  	0x04, 0x66, 0x0b, 0xf9, 0x73, 0x71, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, 0x96, 0x64, 0xe6, 0xe7,
    98  	0x15, 0x4b, 0xb0, 0x2a, 0x30, 0x6b, 0x70, 0x1b, 0xe9, 0xea, 0xa1, 0xfb, 0x45, 0x0f, 0xe1, 0x62,
    99  	0x3d, 0x47, 0x84, 0x7a, 0xd7, 0xbc, 0x92, 0xa2, 0xca, 0x20, 0x64, 0x13, 0xa4, 0xec, 0xb8, 0x04,
   100  	0xd0, 0x15, 0x08, 0x09, 0x70, 0x31, 0x67, 0xa7, 0x56, 0x42, 0x3d, 0x07, 0x62, 0x0a, 0x89, 0x70,
   101  	0xb1, 0x96, 0x25, 0xe6, 0x94, 0xa6, 0x42, 0x7c, 0x15, 0x04, 0xe1, 0x58, 0x31, 0x59, 0x30, 0x3a,
   102  	0x79, 0x9d, 0x78, 0x28, 0xc7, 0x70, 0xe3, 0xa1, 0x1c, 0x43, 0xc3, 0x23, 0x39, 0xc6, 0x13, 0x8f,
   103  	0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x31, 0xca, 0x80, 0xf8, 0xd8, 0xb1,
   104  	0x06, 0x93, 0x11, 0x0c, 0x49, 0x6c, 0xe0, 0x30, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x22,
   105  	0x8a, 0x20, 0x4a, 0xda, 0x01, 0x00, 0x00,
   106  }
   107  
   108  func (m *Descriptor) Marshal() (dAtA []byte, err error) {
   109  	size := m.Size()
   110  	dAtA = make([]byte, size)
   111  	n, err := m.MarshalTo(dAtA)
   112  	if err != nil {
   113  		return nil, err
   114  	}
   115  	return dAtA[:n], nil
   116  }
   117  
   118  func (m *Descriptor) MarshalTo(dAtA []byte) (int, error) {
   119  	var i int
   120  	_ = i
   121  	var l int
   122  	_ = l
   123  	if len(m.MediaType) > 0 {
   124  		dAtA[i] = 0xa
   125  		i++
   126  		i = encodeVarintDescriptor(dAtA, i, uint64(len(m.MediaType)))
   127  		i += copy(dAtA[i:], m.MediaType)
   128  	}
   129  	if len(m.Digest) > 0 {
   130  		dAtA[i] = 0x12
   131  		i++
   132  		i = encodeVarintDescriptor(dAtA, i, uint64(len(m.Digest)))
   133  		i += copy(dAtA[i:], m.Digest)
   134  	}
   135  	if m.Size_ != 0 {
   136  		dAtA[i] = 0x18
   137  		i++
   138  		i = encodeVarintDescriptor(dAtA, i, uint64(m.Size_))
   139  	}
   140  	if len(m.Annotations) > 0 {
   141  		for k, _ := range m.Annotations {
   142  			dAtA[i] = 0x2a
   143  			i++
   144  			v := m.Annotations[k]
   145  			mapSize := 1 + len(k) + sovDescriptor(uint64(len(k))) + 1 + len(v) + sovDescriptor(uint64(len(v)))
   146  			i = encodeVarintDescriptor(dAtA, i, uint64(mapSize))
   147  			dAtA[i] = 0xa
   148  			i++
   149  			i = encodeVarintDescriptor(dAtA, i, uint64(len(k)))
   150  			i += copy(dAtA[i:], k)
   151  			dAtA[i] = 0x12
   152  			i++
   153  			i = encodeVarintDescriptor(dAtA, i, uint64(len(v)))
   154  			i += copy(dAtA[i:], v)
   155  		}
   156  	}
   157  	if m.XXX_unrecognized != nil {
   158  		i += copy(dAtA[i:], m.XXX_unrecognized)
   159  	}
   160  	return i, nil
   161  }
   162  
   163  func encodeVarintDescriptor(dAtA []byte, offset int, v uint64) int {
   164  	for v >= 1<<7 {
   165  		dAtA[offset] = uint8(v&0x7f | 0x80)
   166  		v >>= 7
   167  		offset++
   168  	}
   169  	dAtA[offset] = uint8(v)
   170  	return offset + 1
   171  }
   172  func (m *Descriptor) Size() (n int) {
   173  	if m == nil {
   174  		return 0
   175  	}
   176  	var l int
   177  	_ = l
   178  	l = len(m.MediaType)
   179  	if l > 0 {
   180  		n += 1 + l + sovDescriptor(uint64(l))
   181  	}
   182  	l = len(m.Digest)
   183  	if l > 0 {
   184  		n += 1 + l + sovDescriptor(uint64(l))
   185  	}
   186  	if m.Size_ != 0 {
   187  		n += 1 + sovDescriptor(uint64(m.Size_))
   188  	}
   189  	if len(m.Annotations) > 0 {
   190  		for k, v := range m.Annotations {
   191  			_ = k
   192  			_ = v
   193  			mapEntrySize := 1 + len(k) + sovDescriptor(uint64(len(k))) + 1 + len(v) + sovDescriptor(uint64(len(v)))
   194  			n += mapEntrySize + 1 + sovDescriptor(uint64(mapEntrySize))
   195  		}
   196  	}
   197  	if m.XXX_unrecognized != nil {
   198  		n += len(m.XXX_unrecognized)
   199  	}
   200  	return n
   201  }
   202  
   203  func sovDescriptor(x uint64) (n int) {
   204  	for {
   205  		n++
   206  		x >>= 7
   207  		if x == 0 {
   208  			break
   209  		}
   210  	}
   211  	return n
   212  }
   213  func sozDescriptor(x uint64) (n int) {
   214  	return sovDescriptor(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   215  }
   216  func (this *Descriptor) String() string {
   217  	if this == nil {
   218  		return "nil"
   219  	}
   220  	keysForAnnotations := make([]string, 0, len(this.Annotations))
   221  	for k, _ := range this.Annotations {
   222  		keysForAnnotations = append(keysForAnnotations, k)
   223  	}
   224  	github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
   225  	mapStringForAnnotations := "map[string]string{"
   226  	for _, k := range keysForAnnotations {
   227  		mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
   228  	}
   229  	mapStringForAnnotations += "}"
   230  	s := strings.Join([]string{`&Descriptor{`,
   231  		`MediaType:` + fmt.Sprintf("%v", this.MediaType) + `,`,
   232  		`Digest:` + fmt.Sprintf("%v", this.Digest) + `,`,
   233  		`Size_:` + fmt.Sprintf("%v", this.Size_) + `,`,
   234  		`Annotations:` + mapStringForAnnotations + `,`,
   235  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
   236  		`}`,
   237  	}, "")
   238  	return s
   239  }
   240  func valueToStringDescriptor(v interface{}) string {
   241  	rv := reflect.ValueOf(v)
   242  	if rv.IsNil() {
   243  		return "nil"
   244  	}
   245  	pv := reflect.Indirect(rv).Interface()
   246  	return fmt.Sprintf("*%v", pv)
   247  }
   248  func (m *Descriptor) Unmarshal(dAtA []byte) error {
   249  	l := len(dAtA)
   250  	iNdEx := 0
   251  	for iNdEx < l {
   252  		preIndex := iNdEx
   253  		var wire uint64
   254  		for shift := uint(0); ; shift += 7 {
   255  			if shift >= 64 {
   256  				return ErrIntOverflowDescriptor
   257  			}
   258  			if iNdEx >= l {
   259  				return io.ErrUnexpectedEOF
   260  			}
   261  			b := dAtA[iNdEx]
   262  			iNdEx++
   263  			wire |= uint64(b&0x7F) << shift
   264  			if b < 0x80 {
   265  				break
   266  			}
   267  		}
   268  		fieldNum := int32(wire >> 3)
   269  		wireType := int(wire & 0x7)
   270  		if wireType == 4 {
   271  			return fmt.Errorf("proto: Descriptor: wiretype end group for non-group")
   272  		}
   273  		if fieldNum <= 0 {
   274  			return fmt.Errorf("proto: Descriptor: illegal tag %d (wire type %d)", fieldNum, wire)
   275  		}
   276  		switch fieldNum {
   277  		case 1:
   278  			if wireType != 2 {
   279  				return fmt.Errorf("proto: wrong wireType = %d for field MediaType", wireType)
   280  			}
   281  			var stringLen uint64
   282  			for shift := uint(0); ; shift += 7 {
   283  				if shift >= 64 {
   284  					return ErrIntOverflowDescriptor
   285  				}
   286  				if iNdEx >= l {
   287  					return io.ErrUnexpectedEOF
   288  				}
   289  				b := dAtA[iNdEx]
   290  				iNdEx++
   291  				stringLen |= uint64(b&0x7F) << shift
   292  				if b < 0x80 {
   293  					break
   294  				}
   295  			}
   296  			intStringLen := int(stringLen)
   297  			if intStringLen < 0 {
   298  				return ErrInvalidLengthDescriptor
   299  			}
   300  			postIndex := iNdEx + intStringLen
   301  			if postIndex < 0 {
   302  				return ErrInvalidLengthDescriptor
   303  			}
   304  			if postIndex > l {
   305  				return io.ErrUnexpectedEOF
   306  			}
   307  			m.MediaType = string(dAtA[iNdEx:postIndex])
   308  			iNdEx = postIndex
   309  		case 2:
   310  			if wireType != 2 {
   311  				return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType)
   312  			}
   313  			var stringLen uint64
   314  			for shift := uint(0); ; shift += 7 {
   315  				if shift >= 64 {
   316  					return ErrIntOverflowDescriptor
   317  				}
   318  				if iNdEx >= l {
   319  					return io.ErrUnexpectedEOF
   320  				}
   321  				b := dAtA[iNdEx]
   322  				iNdEx++
   323  				stringLen |= uint64(b&0x7F) << shift
   324  				if b < 0x80 {
   325  					break
   326  				}
   327  			}
   328  			intStringLen := int(stringLen)
   329  			if intStringLen < 0 {
   330  				return ErrInvalidLengthDescriptor
   331  			}
   332  			postIndex := iNdEx + intStringLen
   333  			if postIndex < 0 {
   334  				return ErrInvalidLengthDescriptor
   335  			}
   336  			if postIndex > l {
   337  				return io.ErrUnexpectedEOF
   338  			}
   339  			m.Digest = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
   340  			iNdEx = postIndex
   341  		case 3:
   342  			if wireType != 0 {
   343  				return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
   344  			}
   345  			m.Size_ = 0
   346  			for shift := uint(0); ; shift += 7 {
   347  				if shift >= 64 {
   348  					return ErrIntOverflowDescriptor
   349  				}
   350  				if iNdEx >= l {
   351  					return io.ErrUnexpectedEOF
   352  				}
   353  				b := dAtA[iNdEx]
   354  				iNdEx++
   355  				m.Size_ |= int64(b&0x7F) << shift
   356  				if b < 0x80 {
   357  					break
   358  				}
   359  			}
   360  		case 5:
   361  			if wireType != 2 {
   362  				return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
   363  			}
   364  			var msglen int
   365  			for shift := uint(0); ; shift += 7 {
   366  				if shift >= 64 {
   367  					return ErrIntOverflowDescriptor
   368  				}
   369  				if iNdEx >= l {
   370  					return io.ErrUnexpectedEOF
   371  				}
   372  				b := dAtA[iNdEx]
   373  				iNdEx++
   374  				msglen |= int(b&0x7F) << shift
   375  				if b < 0x80 {
   376  					break
   377  				}
   378  			}
   379  			if msglen < 0 {
   380  				return ErrInvalidLengthDescriptor
   381  			}
   382  			postIndex := iNdEx + msglen
   383  			if postIndex < 0 {
   384  				return ErrInvalidLengthDescriptor
   385  			}
   386  			if postIndex > l {
   387  				return io.ErrUnexpectedEOF
   388  			}
   389  			if m.Annotations == nil {
   390  				m.Annotations = make(map[string]string)
   391  			}
   392  			var mapkey string
   393  			var mapvalue string
   394  			for iNdEx < postIndex {
   395  				entryPreIndex := iNdEx
   396  				var wire uint64
   397  				for shift := uint(0); ; shift += 7 {
   398  					if shift >= 64 {
   399  						return ErrIntOverflowDescriptor
   400  					}
   401  					if iNdEx >= l {
   402  						return io.ErrUnexpectedEOF
   403  					}
   404  					b := dAtA[iNdEx]
   405  					iNdEx++
   406  					wire |= uint64(b&0x7F) << shift
   407  					if b < 0x80 {
   408  						break
   409  					}
   410  				}
   411  				fieldNum := int32(wire >> 3)
   412  				if fieldNum == 1 {
   413  					var stringLenmapkey uint64
   414  					for shift := uint(0); ; shift += 7 {
   415  						if shift >= 64 {
   416  							return ErrIntOverflowDescriptor
   417  						}
   418  						if iNdEx >= l {
   419  							return io.ErrUnexpectedEOF
   420  						}
   421  						b := dAtA[iNdEx]
   422  						iNdEx++
   423  						stringLenmapkey |= uint64(b&0x7F) << shift
   424  						if b < 0x80 {
   425  							break
   426  						}
   427  					}
   428  					intStringLenmapkey := int(stringLenmapkey)
   429  					if intStringLenmapkey < 0 {
   430  						return ErrInvalidLengthDescriptor
   431  					}
   432  					postStringIndexmapkey := iNdEx + intStringLenmapkey
   433  					if postStringIndexmapkey < 0 {
   434  						return ErrInvalidLengthDescriptor
   435  					}
   436  					if postStringIndexmapkey > l {
   437  						return io.ErrUnexpectedEOF
   438  					}
   439  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
   440  					iNdEx = postStringIndexmapkey
   441  				} else if fieldNum == 2 {
   442  					var stringLenmapvalue uint64
   443  					for shift := uint(0); ; shift += 7 {
   444  						if shift >= 64 {
   445  							return ErrIntOverflowDescriptor
   446  						}
   447  						if iNdEx >= l {
   448  							return io.ErrUnexpectedEOF
   449  						}
   450  						b := dAtA[iNdEx]
   451  						iNdEx++
   452  						stringLenmapvalue |= uint64(b&0x7F) << shift
   453  						if b < 0x80 {
   454  							break
   455  						}
   456  					}
   457  					intStringLenmapvalue := int(stringLenmapvalue)
   458  					if intStringLenmapvalue < 0 {
   459  						return ErrInvalidLengthDescriptor
   460  					}
   461  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
   462  					if postStringIndexmapvalue < 0 {
   463  						return ErrInvalidLengthDescriptor
   464  					}
   465  					if postStringIndexmapvalue > l {
   466  						return io.ErrUnexpectedEOF
   467  					}
   468  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
   469  					iNdEx = postStringIndexmapvalue
   470  				} else {
   471  					iNdEx = entryPreIndex
   472  					skippy, err := skipDescriptor(dAtA[iNdEx:])
   473  					if err != nil {
   474  						return err
   475  					}
   476  					if skippy < 0 {
   477  						return ErrInvalidLengthDescriptor
   478  					}
   479  					if (iNdEx + skippy) > postIndex {
   480  						return io.ErrUnexpectedEOF
   481  					}
   482  					iNdEx += skippy
   483  				}
   484  			}
   485  			m.Annotations[mapkey] = mapvalue
   486  			iNdEx = postIndex
   487  		default:
   488  			iNdEx = preIndex
   489  			skippy, err := skipDescriptor(dAtA[iNdEx:])
   490  			if err != nil {
   491  				return err
   492  			}
   493  			if skippy < 0 {
   494  				return ErrInvalidLengthDescriptor
   495  			}
   496  			if (iNdEx + skippy) < 0 {
   497  				return ErrInvalidLengthDescriptor
   498  			}
   499  			if (iNdEx + skippy) > l {
   500  				return io.ErrUnexpectedEOF
   501  			}
   502  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   503  			iNdEx += skippy
   504  		}
   505  	}
   506  
   507  	if iNdEx > l {
   508  		return io.ErrUnexpectedEOF
   509  	}
   510  	return nil
   511  }
   512  func skipDescriptor(dAtA []byte) (n int, err error) {
   513  	l := len(dAtA)
   514  	iNdEx := 0
   515  	for iNdEx < l {
   516  		var wire uint64
   517  		for shift := uint(0); ; shift += 7 {
   518  			if shift >= 64 {
   519  				return 0, ErrIntOverflowDescriptor
   520  			}
   521  			if iNdEx >= l {
   522  				return 0, io.ErrUnexpectedEOF
   523  			}
   524  			b := dAtA[iNdEx]
   525  			iNdEx++
   526  			wire |= (uint64(b) & 0x7F) << shift
   527  			if b < 0x80 {
   528  				break
   529  			}
   530  		}
   531  		wireType := int(wire & 0x7)
   532  		switch wireType {
   533  		case 0:
   534  			for shift := uint(0); ; shift += 7 {
   535  				if shift >= 64 {
   536  					return 0, ErrIntOverflowDescriptor
   537  				}
   538  				if iNdEx >= l {
   539  					return 0, io.ErrUnexpectedEOF
   540  				}
   541  				iNdEx++
   542  				if dAtA[iNdEx-1] < 0x80 {
   543  					break
   544  				}
   545  			}
   546  			return iNdEx, nil
   547  		case 1:
   548  			iNdEx += 8
   549  			return iNdEx, nil
   550  		case 2:
   551  			var length int
   552  			for shift := uint(0); ; shift += 7 {
   553  				if shift >= 64 {
   554  					return 0, ErrIntOverflowDescriptor
   555  				}
   556  				if iNdEx >= l {
   557  					return 0, io.ErrUnexpectedEOF
   558  				}
   559  				b := dAtA[iNdEx]
   560  				iNdEx++
   561  				length |= (int(b) & 0x7F) << shift
   562  				if b < 0x80 {
   563  					break
   564  				}
   565  			}
   566  			if length < 0 {
   567  				return 0, ErrInvalidLengthDescriptor
   568  			}
   569  			iNdEx += length
   570  			if iNdEx < 0 {
   571  				return 0, ErrInvalidLengthDescriptor
   572  			}
   573  			return iNdEx, nil
   574  		case 3:
   575  			for {
   576  				var innerWire uint64
   577  				var start int = iNdEx
   578  				for shift := uint(0); ; shift += 7 {
   579  					if shift >= 64 {
   580  						return 0, ErrIntOverflowDescriptor
   581  					}
   582  					if iNdEx >= l {
   583  						return 0, io.ErrUnexpectedEOF
   584  					}
   585  					b := dAtA[iNdEx]
   586  					iNdEx++
   587  					innerWire |= (uint64(b) & 0x7F) << shift
   588  					if b < 0x80 {
   589  						break
   590  					}
   591  				}
   592  				innerWireType := int(innerWire & 0x7)
   593  				if innerWireType == 4 {
   594  					break
   595  				}
   596  				next, err := skipDescriptor(dAtA[start:])
   597  				if err != nil {
   598  					return 0, err
   599  				}
   600  				iNdEx = start + next
   601  				if iNdEx < 0 {
   602  					return 0, ErrInvalidLengthDescriptor
   603  				}
   604  			}
   605  			return iNdEx, nil
   606  		case 4:
   607  			return iNdEx, nil
   608  		case 5:
   609  			iNdEx += 4
   610  			return iNdEx, nil
   611  		default:
   612  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   613  		}
   614  	}
   615  	panic("unreachable")
   616  }
   617  
   618  var (
   619  	ErrInvalidLengthDescriptor = fmt.Errorf("proto: negative length found during unmarshaling")
   620  	ErrIntOverflowDescriptor   = fmt.Errorf("proto: integer overflow")
   621  )