github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/storage/enginepb/file_registry.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: storage/enginepb/file_registry.proto
     3  
     4  package enginepb
     5  
     6  import proto "github.com/gogo/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
    11  
    12  import io "io"
    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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    24  
    25  type RegistryVersion int32
    26  
    27  const (
    28  	// The only version so far.
    29  	RegistryVersion_Base RegistryVersion = 0
    30  )
    31  
    32  var RegistryVersion_name = map[int32]string{
    33  	0: "Base",
    34  }
    35  var RegistryVersion_value = map[string]int32{
    36  	"Base": 0,
    37  }
    38  
    39  func (x RegistryVersion) String() string {
    40  	return proto.EnumName(RegistryVersion_name, int32(x))
    41  }
    42  func (RegistryVersion) EnumDescriptor() ([]byte, []int) {
    43  	return fileDescriptor_file_registry_848b8e06af99c90e, []int{0}
    44  }
    45  
    46  // EnvType determines which rocksdb::Env is used and for what purpose.
    47  type EnvType int32
    48  
    49  const (
    50  	// The default Env when no encryption is used.
    51  	// File using Plaintext are not recorded in the file registry.
    52  	EnvType_Plaintext EnvType = 0
    53  	// The Env using store-level keys.
    54  	// Used only to read/write the data key registry.
    55  	EnvType_Store EnvType = 1
    56  	// The Env using data-level keys.
    57  	// Used as the default rocksdb Env when encryption is enabled.
    58  	EnvType_Data EnvType = 2
    59  )
    60  
    61  var EnvType_name = map[int32]string{
    62  	0: "Plaintext",
    63  	1: "Store",
    64  	2: "Data",
    65  }
    66  var EnvType_value = map[string]int32{
    67  	"Plaintext": 0,
    68  	"Store":     1,
    69  	"Data":      2,
    70  }
    71  
    72  func (x EnvType) String() string {
    73  	return proto.EnumName(EnvType_name, int32(x))
    74  }
    75  func (EnvType) EnumDescriptor() ([]byte, []int) {
    76  	return fileDescriptor_file_registry_848b8e06af99c90e, []int{1}
    77  }
    78  
    79  // Registry describes how a files are handled. This includes the
    80  // rockdb::Env responsible for each file as well as opaque env details.
    81  type FileRegistry struct {
    82  	// version is currently always Base.
    83  	Version RegistryVersion `protobuf:"varint,1,opt,name=version,proto3,enum=cockroach.storage.enginepb.RegistryVersion" json:"version,omitempty"`
    84  	// Map of filename -> FileEntry.
    85  	// Filename is relative to the rocksdb dir if the file is inside it.
    86  	// Otherwise it is an absolute path.
    87  	// TODO(mberhault): figure out if we need anything special for Windows.
    88  	Files map[string]*FileEntry `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    89  }
    90  
    91  func (m *FileRegistry) Reset()         { *m = FileRegistry{} }
    92  func (m *FileRegistry) String() string { return proto.CompactTextString(m) }
    93  func (*FileRegistry) ProtoMessage()    {}
    94  func (*FileRegistry) Descriptor() ([]byte, []int) {
    95  	return fileDescriptor_file_registry_848b8e06af99c90e, []int{0}
    96  }
    97  func (m *FileRegistry) XXX_Unmarshal(b []byte) error {
    98  	return m.Unmarshal(b)
    99  }
   100  func (m *FileRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   101  	b = b[:cap(b)]
   102  	n, err := m.MarshalTo(b)
   103  	if err != nil {
   104  		return nil, err
   105  	}
   106  	return b[:n], nil
   107  }
   108  func (dst *FileRegistry) XXX_Merge(src proto.Message) {
   109  	xxx_messageInfo_FileRegistry.Merge(dst, src)
   110  }
   111  func (m *FileRegistry) XXX_Size() int {
   112  	return m.Size()
   113  }
   114  func (m *FileRegistry) XXX_DiscardUnknown() {
   115  	xxx_messageInfo_FileRegistry.DiscardUnknown(m)
   116  }
   117  
   118  var xxx_messageInfo_FileRegistry proto.InternalMessageInfo
   119  
   120  type FileEntry struct {
   121  	// Env type identifies which rocksdb::Env is responsible for this file.
   122  	EnvType EnvType `protobuf:"varint,1,opt,name=env_type,json=envType,proto3,enum=cockroach.storage.enginepb.EnvType" json:"env_type,omitempty"`
   123  	// Env-specific fields for non-0 env. These are known by CCL code only.
   124  	// This is a serialized protobuf. We cannot use protobuf.Any since we use
   125  	// MessageLite in C++.
   126  	EncryptionSettings []byte `protobuf:"bytes,2,opt,name=encryption_settings,json=encryptionSettings,proto3" json:"encryption_settings,omitempty"`
   127  }
   128  
   129  func (m *FileEntry) Reset()         { *m = FileEntry{} }
   130  func (m *FileEntry) String() string { return proto.CompactTextString(m) }
   131  func (*FileEntry) ProtoMessage()    {}
   132  func (*FileEntry) Descriptor() ([]byte, []int) {
   133  	return fileDescriptor_file_registry_848b8e06af99c90e, []int{1}
   134  }
   135  func (m *FileEntry) XXX_Unmarshal(b []byte) error {
   136  	return m.Unmarshal(b)
   137  }
   138  func (m *FileEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   139  	b = b[:cap(b)]
   140  	n, err := m.MarshalTo(b)
   141  	if err != nil {
   142  		return nil, err
   143  	}
   144  	return b[:n], nil
   145  }
   146  func (dst *FileEntry) XXX_Merge(src proto.Message) {
   147  	xxx_messageInfo_FileEntry.Merge(dst, src)
   148  }
   149  func (m *FileEntry) XXX_Size() int {
   150  	return m.Size()
   151  }
   152  func (m *FileEntry) XXX_DiscardUnknown() {
   153  	xxx_messageInfo_FileEntry.DiscardUnknown(m)
   154  }
   155  
   156  var xxx_messageInfo_FileEntry proto.InternalMessageInfo
   157  
   158  func init() {
   159  	proto.RegisterType((*FileRegistry)(nil), "cockroach.storage.enginepb.FileRegistry")
   160  	proto.RegisterMapType((map[string]*FileEntry)(nil), "cockroach.storage.enginepb.FileRegistry.FilesEntry")
   161  	proto.RegisterType((*FileEntry)(nil), "cockroach.storage.enginepb.FileEntry")
   162  	proto.RegisterEnum("cockroach.storage.enginepb.RegistryVersion", RegistryVersion_name, RegistryVersion_value)
   163  	proto.RegisterEnum("cockroach.storage.enginepb.EnvType", EnvType_name, EnvType_value)
   164  }
   165  func (m *FileRegistry) Marshal() (dAtA []byte, err error) {
   166  	size := m.Size()
   167  	dAtA = make([]byte, size)
   168  	n, err := m.MarshalTo(dAtA)
   169  	if err != nil {
   170  		return nil, err
   171  	}
   172  	return dAtA[:n], nil
   173  }
   174  
   175  func (m *FileRegistry) MarshalTo(dAtA []byte) (int, error) {
   176  	var i int
   177  	_ = i
   178  	var l int
   179  	_ = l
   180  	if m.Version != 0 {
   181  		dAtA[i] = 0x8
   182  		i++
   183  		i = encodeVarintFileRegistry(dAtA, i, uint64(m.Version))
   184  	}
   185  	if len(m.Files) > 0 {
   186  		keysForFiles := make([]string, 0, len(m.Files))
   187  		for k := range m.Files {
   188  			keysForFiles = append(keysForFiles, string(k))
   189  		}
   190  		github_com_gogo_protobuf_sortkeys.Strings(keysForFiles)
   191  		for _, k := range keysForFiles {
   192  			dAtA[i] = 0x12
   193  			i++
   194  			v := m.Files[string(k)]
   195  			msgSize := 0
   196  			if v != nil {
   197  				msgSize = v.Size()
   198  				msgSize += 1 + sovFileRegistry(uint64(msgSize))
   199  			}
   200  			mapSize := 1 + len(k) + sovFileRegistry(uint64(len(k))) + msgSize
   201  			i = encodeVarintFileRegistry(dAtA, i, uint64(mapSize))
   202  			dAtA[i] = 0xa
   203  			i++
   204  			i = encodeVarintFileRegistry(dAtA, i, uint64(len(k)))
   205  			i += copy(dAtA[i:], k)
   206  			if v != nil {
   207  				dAtA[i] = 0x12
   208  				i++
   209  				i = encodeVarintFileRegistry(dAtA, i, uint64(v.Size()))
   210  				n1, err := v.MarshalTo(dAtA[i:])
   211  				if err != nil {
   212  					return 0, err
   213  				}
   214  				i += n1
   215  			}
   216  		}
   217  	}
   218  	return i, nil
   219  }
   220  
   221  func (m *FileEntry) Marshal() (dAtA []byte, err error) {
   222  	size := m.Size()
   223  	dAtA = make([]byte, size)
   224  	n, err := m.MarshalTo(dAtA)
   225  	if err != nil {
   226  		return nil, err
   227  	}
   228  	return dAtA[:n], nil
   229  }
   230  
   231  func (m *FileEntry) MarshalTo(dAtA []byte) (int, error) {
   232  	var i int
   233  	_ = i
   234  	var l int
   235  	_ = l
   236  	if m.EnvType != 0 {
   237  		dAtA[i] = 0x8
   238  		i++
   239  		i = encodeVarintFileRegistry(dAtA, i, uint64(m.EnvType))
   240  	}
   241  	if len(m.EncryptionSettings) > 0 {
   242  		dAtA[i] = 0x12
   243  		i++
   244  		i = encodeVarintFileRegistry(dAtA, i, uint64(len(m.EncryptionSettings)))
   245  		i += copy(dAtA[i:], m.EncryptionSettings)
   246  	}
   247  	return i, nil
   248  }
   249  
   250  func encodeVarintFileRegistry(dAtA []byte, offset int, v uint64) int {
   251  	for v >= 1<<7 {
   252  		dAtA[offset] = uint8(v&0x7f | 0x80)
   253  		v >>= 7
   254  		offset++
   255  	}
   256  	dAtA[offset] = uint8(v)
   257  	return offset + 1
   258  }
   259  func (m *FileRegistry) Size() (n int) {
   260  	if m == nil {
   261  		return 0
   262  	}
   263  	var l int
   264  	_ = l
   265  	if m.Version != 0 {
   266  		n += 1 + sovFileRegistry(uint64(m.Version))
   267  	}
   268  	if len(m.Files) > 0 {
   269  		for k, v := range m.Files {
   270  			_ = k
   271  			_ = v
   272  			l = 0
   273  			if v != nil {
   274  				l = v.Size()
   275  				l += 1 + sovFileRegistry(uint64(l))
   276  			}
   277  			mapEntrySize := 1 + len(k) + sovFileRegistry(uint64(len(k))) + l
   278  			n += mapEntrySize + 1 + sovFileRegistry(uint64(mapEntrySize))
   279  		}
   280  	}
   281  	return n
   282  }
   283  
   284  func (m *FileEntry) Size() (n int) {
   285  	if m == nil {
   286  		return 0
   287  	}
   288  	var l int
   289  	_ = l
   290  	if m.EnvType != 0 {
   291  		n += 1 + sovFileRegistry(uint64(m.EnvType))
   292  	}
   293  	l = len(m.EncryptionSettings)
   294  	if l > 0 {
   295  		n += 1 + l + sovFileRegistry(uint64(l))
   296  	}
   297  	return n
   298  }
   299  
   300  func sovFileRegistry(x uint64) (n int) {
   301  	for {
   302  		n++
   303  		x >>= 7
   304  		if x == 0 {
   305  			break
   306  		}
   307  	}
   308  	return n
   309  }
   310  func sozFileRegistry(x uint64) (n int) {
   311  	return sovFileRegistry(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   312  }
   313  func (m *FileRegistry) Unmarshal(dAtA []byte) error {
   314  	l := len(dAtA)
   315  	iNdEx := 0
   316  	for iNdEx < l {
   317  		preIndex := iNdEx
   318  		var wire uint64
   319  		for shift := uint(0); ; shift += 7 {
   320  			if shift >= 64 {
   321  				return ErrIntOverflowFileRegistry
   322  			}
   323  			if iNdEx >= l {
   324  				return io.ErrUnexpectedEOF
   325  			}
   326  			b := dAtA[iNdEx]
   327  			iNdEx++
   328  			wire |= (uint64(b) & 0x7F) << shift
   329  			if b < 0x80 {
   330  				break
   331  			}
   332  		}
   333  		fieldNum := int32(wire >> 3)
   334  		wireType := int(wire & 0x7)
   335  		if wireType == 4 {
   336  			return fmt.Errorf("proto: FileRegistry: wiretype end group for non-group")
   337  		}
   338  		if fieldNum <= 0 {
   339  			return fmt.Errorf("proto: FileRegistry: illegal tag %d (wire type %d)", fieldNum, wire)
   340  		}
   341  		switch fieldNum {
   342  		case 1:
   343  			if wireType != 0 {
   344  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
   345  			}
   346  			m.Version = 0
   347  			for shift := uint(0); ; shift += 7 {
   348  				if shift >= 64 {
   349  					return ErrIntOverflowFileRegistry
   350  				}
   351  				if iNdEx >= l {
   352  					return io.ErrUnexpectedEOF
   353  				}
   354  				b := dAtA[iNdEx]
   355  				iNdEx++
   356  				m.Version |= (RegistryVersion(b) & 0x7F) << shift
   357  				if b < 0x80 {
   358  					break
   359  				}
   360  			}
   361  		case 2:
   362  			if wireType != 2 {
   363  				return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType)
   364  			}
   365  			var msglen int
   366  			for shift := uint(0); ; shift += 7 {
   367  				if shift >= 64 {
   368  					return ErrIntOverflowFileRegistry
   369  				}
   370  				if iNdEx >= l {
   371  					return io.ErrUnexpectedEOF
   372  				}
   373  				b := dAtA[iNdEx]
   374  				iNdEx++
   375  				msglen |= (int(b) & 0x7F) << shift
   376  				if b < 0x80 {
   377  					break
   378  				}
   379  			}
   380  			if msglen < 0 {
   381  				return ErrInvalidLengthFileRegistry
   382  			}
   383  			postIndex := iNdEx + msglen
   384  			if postIndex > l {
   385  				return io.ErrUnexpectedEOF
   386  			}
   387  			if m.Files == nil {
   388  				m.Files = make(map[string]*FileEntry)
   389  			}
   390  			var mapkey string
   391  			var mapvalue *FileEntry
   392  			for iNdEx < postIndex {
   393  				entryPreIndex := iNdEx
   394  				var wire uint64
   395  				for shift := uint(0); ; shift += 7 {
   396  					if shift >= 64 {
   397  						return ErrIntOverflowFileRegistry
   398  					}
   399  					if iNdEx >= l {
   400  						return io.ErrUnexpectedEOF
   401  					}
   402  					b := dAtA[iNdEx]
   403  					iNdEx++
   404  					wire |= (uint64(b) & 0x7F) << shift
   405  					if b < 0x80 {
   406  						break
   407  					}
   408  				}
   409  				fieldNum := int32(wire >> 3)
   410  				if fieldNum == 1 {
   411  					var stringLenmapkey uint64
   412  					for shift := uint(0); ; shift += 7 {
   413  						if shift >= 64 {
   414  							return ErrIntOverflowFileRegistry
   415  						}
   416  						if iNdEx >= l {
   417  							return io.ErrUnexpectedEOF
   418  						}
   419  						b := dAtA[iNdEx]
   420  						iNdEx++
   421  						stringLenmapkey |= (uint64(b) & 0x7F) << shift
   422  						if b < 0x80 {
   423  							break
   424  						}
   425  					}
   426  					intStringLenmapkey := int(stringLenmapkey)
   427  					if intStringLenmapkey < 0 {
   428  						return ErrInvalidLengthFileRegistry
   429  					}
   430  					postStringIndexmapkey := iNdEx + intStringLenmapkey
   431  					if postStringIndexmapkey > l {
   432  						return io.ErrUnexpectedEOF
   433  					}
   434  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
   435  					iNdEx = postStringIndexmapkey
   436  				} else if fieldNum == 2 {
   437  					var mapmsglen int
   438  					for shift := uint(0); ; shift += 7 {
   439  						if shift >= 64 {
   440  							return ErrIntOverflowFileRegistry
   441  						}
   442  						if iNdEx >= l {
   443  							return io.ErrUnexpectedEOF
   444  						}
   445  						b := dAtA[iNdEx]
   446  						iNdEx++
   447  						mapmsglen |= (int(b) & 0x7F) << shift
   448  						if b < 0x80 {
   449  							break
   450  						}
   451  					}
   452  					if mapmsglen < 0 {
   453  						return ErrInvalidLengthFileRegistry
   454  					}
   455  					postmsgIndex := iNdEx + mapmsglen
   456  					if mapmsglen < 0 {
   457  						return ErrInvalidLengthFileRegistry
   458  					}
   459  					if postmsgIndex > l {
   460  						return io.ErrUnexpectedEOF
   461  					}
   462  					mapvalue = &FileEntry{}
   463  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
   464  						return err
   465  					}
   466  					iNdEx = postmsgIndex
   467  				} else {
   468  					iNdEx = entryPreIndex
   469  					skippy, err := skipFileRegistry(dAtA[iNdEx:])
   470  					if err != nil {
   471  						return err
   472  					}
   473  					if skippy < 0 {
   474  						return ErrInvalidLengthFileRegistry
   475  					}
   476  					if (iNdEx + skippy) > postIndex {
   477  						return io.ErrUnexpectedEOF
   478  					}
   479  					iNdEx += skippy
   480  				}
   481  			}
   482  			m.Files[mapkey] = mapvalue
   483  			iNdEx = postIndex
   484  		default:
   485  			iNdEx = preIndex
   486  			skippy, err := skipFileRegistry(dAtA[iNdEx:])
   487  			if err != nil {
   488  				return err
   489  			}
   490  			if skippy < 0 {
   491  				return ErrInvalidLengthFileRegistry
   492  			}
   493  			if (iNdEx + skippy) > l {
   494  				return io.ErrUnexpectedEOF
   495  			}
   496  			iNdEx += skippy
   497  		}
   498  	}
   499  
   500  	if iNdEx > l {
   501  		return io.ErrUnexpectedEOF
   502  	}
   503  	return nil
   504  }
   505  func (m *FileEntry) Unmarshal(dAtA []byte) error {
   506  	l := len(dAtA)
   507  	iNdEx := 0
   508  	for iNdEx < l {
   509  		preIndex := iNdEx
   510  		var wire uint64
   511  		for shift := uint(0); ; shift += 7 {
   512  			if shift >= 64 {
   513  				return ErrIntOverflowFileRegistry
   514  			}
   515  			if iNdEx >= l {
   516  				return io.ErrUnexpectedEOF
   517  			}
   518  			b := dAtA[iNdEx]
   519  			iNdEx++
   520  			wire |= (uint64(b) & 0x7F) << shift
   521  			if b < 0x80 {
   522  				break
   523  			}
   524  		}
   525  		fieldNum := int32(wire >> 3)
   526  		wireType := int(wire & 0x7)
   527  		if wireType == 4 {
   528  			return fmt.Errorf("proto: FileEntry: wiretype end group for non-group")
   529  		}
   530  		if fieldNum <= 0 {
   531  			return fmt.Errorf("proto: FileEntry: illegal tag %d (wire type %d)", fieldNum, wire)
   532  		}
   533  		switch fieldNum {
   534  		case 1:
   535  			if wireType != 0 {
   536  				return fmt.Errorf("proto: wrong wireType = %d for field EnvType", wireType)
   537  			}
   538  			m.EnvType = 0
   539  			for shift := uint(0); ; shift += 7 {
   540  				if shift >= 64 {
   541  					return ErrIntOverflowFileRegistry
   542  				}
   543  				if iNdEx >= l {
   544  					return io.ErrUnexpectedEOF
   545  				}
   546  				b := dAtA[iNdEx]
   547  				iNdEx++
   548  				m.EnvType |= (EnvType(b) & 0x7F) << shift
   549  				if b < 0x80 {
   550  					break
   551  				}
   552  			}
   553  		case 2:
   554  			if wireType != 2 {
   555  				return fmt.Errorf("proto: wrong wireType = %d for field EncryptionSettings", wireType)
   556  			}
   557  			var byteLen int
   558  			for shift := uint(0); ; shift += 7 {
   559  				if shift >= 64 {
   560  					return ErrIntOverflowFileRegistry
   561  				}
   562  				if iNdEx >= l {
   563  					return io.ErrUnexpectedEOF
   564  				}
   565  				b := dAtA[iNdEx]
   566  				iNdEx++
   567  				byteLen |= (int(b) & 0x7F) << shift
   568  				if b < 0x80 {
   569  					break
   570  				}
   571  			}
   572  			if byteLen < 0 {
   573  				return ErrInvalidLengthFileRegistry
   574  			}
   575  			postIndex := iNdEx + byteLen
   576  			if postIndex > l {
   577  				return io.ErrUnexpectedEOF
   578  			}
   579  			m.EncryptionSettings = append(m.EncryptionSettings[:0], dAtA[iNdEx:postIndex]...)
   580  			if m.EncryptionSettings == nil {
   581  				m.EncryptionSettings = []byte{}
   582  			}
   583  			iNdEx = postIndex
   584  		default:
   585  			iNdEx = preIndex
   586  			skippy, err := skipFileRegistry(dAtA[iNdEx:])
   587  			if err != nil {
   588  				return err
   589  			}
   590  			if skippy < 0 {
   591  				return ErrInvalidLengthFileRegistry
   592  			}
   593  			if (iNdEx + skippy) > l {
   594  				return io.ErrUnexpectedEOF
   595  			}
   596  			iNdEx += skippy
   597  		}
   598  	}
   599  
   600  	if iNdEx > l {
   601  		return io.ErrUnexpectedEOF
   602  	}
   603  	return nil
   604  }
   605  func skipFileRegistry(dAtA []byte) (n int, err error) {
   606  	l := len(dAtA)
   607  	iNdEx := 0
   608  	for iNdEx < l {
   609  		var wire uint64
   610  		for shift := uint(0); ; shift += 7 {
   611  			if shift >= 64 {
   612  				return 0, ErrIntOverflowFileRegistry
   613  			}
   614  			if iNdEx >= l {
   615  				return 0, io.ErrUnexpectedEOF
   616  			}
   617  			b := dAtA[iNdEx]
   618  			iNdEx++
   619  			wire |= (uint64(b) & 0x7F) << shift
   620  			if b < 0x80 {
   621  				break
   622  			}
   623  		}
   624  		wireType := int(wire & 0x7)
   625  		switch wireType {
   626  		case 0:
   627  			for shift := uint(0); ; shift += 7 {
   628  				if shift >= 64 {
   629  					return 0, ErrIntOverflowFileRegistry
   630  				}
   631  				if iNdEx >= l {
   632  					return 0, io.ErrUnexpectedEOF
   633  				}
   634  				iNdEx++
   635  				if dAtA[iNdEx-1] < 0x80 {
   636  					break
   637  				}
   638  			}
   639  			return iNdEx, nil
   640  		case 1:
   641  			iNdEx += 8
   642  			return iNdEx, nil
   643  		case 2:
   644  			var length int
   645  			for shift := uint(0); ; shift += 7 {
   646  				if shift >= 64 {
   647  					return 0, ErrIntOverflowFileRegistry
   648  				}
   649  				if iNdEx >= l {
   650  					return 0, io.ErrUnexpectedEOF
   651  				}
   652  				b := dAtA[iNdEx]
   653  				iNdEx++
   654  				length |= (int(b) & 0x7F) << shift
   655  				if b < 0x80 {
   656  					break
   657  				}
   658  			}
   659  			iNdEx += length
   660  			if length < 0 {
   661  				return 0, ErrInvalidLengthFileRegistry
   662  			}
   663  			return iNdEx, nil
   664  		case 3:
   665  			for {
   666  				var innerWire uint64
   667  				var start int = iNdEx
   668  				for shift := uint(0); ; shift += 7 {
   669  					if shift >= 64 {
   670  						return 0, ErrIntOverflowFileRegistry
   671  					}
   672  					if iNdEx >= l {
   673  						return 0, io.ErrUnexpectedEOF
   674  					}
   675  					b := dAtA[iNdEx]
   676  					iNdEx++
   677  					innerWire |= (uint64(b) & 0x7F) << shift
   678  					if b < 0x80 {
   679  						break
   680  					}
   681  				}
   682  				innerWireType := int(innerWire & 0x7)
   683  				if innerWireType == 4 {
   684  					break
   685  				}
   686  				next, err := skipFileRegistry(dAtA[start:])
   687  				if err != nil {
   688  					return 0, err
   689  				}
   690  				iNdEx = start + next
   691  			}
   692  			return iNdEx, nil
   693  		case 4:
   694  			return iNdEx, nil
   695  		case 5:
   696  			iNdEx += 4
   697  			return iNdEx, nil
   698  		default:
   699  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   700  		}
   701  	}
   702  	panic("unreachable")
   703  }
   704  
   705  var (
   706  	ErrInvalidLengthFileRegistry = fmt.Errorf("proto: negative length found during unmarshaling")
   707  	ErrIntOverflowFileRegistry   = fmt.Errorf("proto: integer overflow")
   708  )
   709  
   710  func init() {
   711  	proto.RegisterFile("storage/enginepb/file_registry.proto", fileDescriptor_file_registry_848b8e06af99c90e)
   712  }
   713  
   714  var fileDescriptor_file_registry_848b8e06af99c90e = []byte{
   715  	// 372 bytes of a gzipped FileDescriptorProto
   716  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x4f, 0xcb, 0xd3, 0x40,
   717  	0x10, 0xc6, 0xb3, 0x79, 0xad, 0x6d, 0xe6, 0xad, 0x1a, 0x56, 0x0f, 0xa5, 0xc2, 0x52, 0xaa, 0x42,
   718  	0xa9, 0x98, 0x40, 0x7b, 0x11, 0x05, 0x0f, 0xc5, 0x0a, 0xde, 0x24, 0x15, 0x0f, 0x5e, 0x42, 0x1a,
   719  	0xc6, 0xb8, 0x34, 0xec, 0x86, 0xdd, 0x35, 0x18, 0xf0, 0xe2, 0x37, 0xf0, 0x63, 0xf5, 0xd8, 0x63,
   720  	0x8f, 0x9a, 0x7e, 0x11, 0xc9, 0x3f, 0x2b, 0x82, 0x7d, 0x6f, 0xb3, 0x33, 0xcf, 0xf3, 0x9b, 0x87,
   721  	0x61, 0xe1, 0xb1, 0x36, 0x52, 0x45, 0x09, 0xfa, 0x28, 0x12, 0x2e, 0x30, 0xdb, 0xfa, 0x9f, 0x78,
   722  	0x8a, 0xa1, 0xc2, 0x84, 0x6b, 0xa3, 0x0a, 0x2f, 0x53, 0xd2, 0x48, 0x3a, 0x8e, 0x65, 0xbc, 0x53,
   723  	0x32, 0x8a, 0x3f, 0x7b, 0xad, 0xde, 0xeb, 0xf4, 0xe3, 0x07, 0x89, 0x4c, 0x64, 0x2d, 0xf3, 0xab,
   724  	0xaa, 0x71, 0x4c, 0xbf, 0xdb, 0x30, 0x7c, 0xc3, 0x53, 0x0c, 0x5a, 0x10, 0x5d, 0x43, 0x3f, 0x47,
   725  	0xa5, 0xb9, 0x14, 0x23, 0x32, 0x21, 0xb3, 0xbb, 0x8b, 0xa7, 0xde, 0xff, 0xa1, 0x5e, 0x67, 0xfb,
   726  	0xd0, 0x58, 0x82, 0xce, 0x4b, 0xdf, 0x42, 0xaf, 0x0a, 0xa8, 0x47, 0xf6, 0xe4, 0x6a, 0x76, 0xbd,
   727  	0x58, 0x5e, 0x82, 0xfc, 0xbd, 0xbf, 0x7e, 0xe8, 0xb5, 0x30, 0xaa, 0x08, 0x1a, 0xc2, 0x38, 0x04,
   728  	0x38, 0x37, 0xa9, 0x0b, 0x57, 0x3b, 0x2c, 0xea, 0x6c, 0x4e, 0x50, 0x95, 0xf4, 0x25, 0xf4, 0xf2,
   729  	0x28, 0xfd, 0x82, 0x23, 0x7b, 0x42, 0x66, 0xd7, 0x8b, 0x27, 0x37, 0xad, 0x6a, 0xe1, 0xb5, 0xe7,
   730  	0x85, 0xfd, 0x9c, 0x4c, 0xbf, 0x81, 0xf3, 0xa7, 0x4f, 0x5f, 0xc1, 0x00, 0x45, 0x1e, 0x9a, 0x22,
   731  	0xc3, 0xf6, 0x00, 0x8f, 0x2e, 0x01, 0xd7, 0x22, 0x7f, 0x5f, 0x64, 0x18, 0xf4, 0xb1, 0x29, 0xa8,
   732  	0x0f, 0xf7, 0x51, 0xc4, 0xaa, 0xc8, 0x0c, 0x97, 0x22, 0xd4, 0x68, 0x0c, 0x17, 0x89, 0xae, 0xb3,
   733  	0x0d, 0x03, 0x7a, 0x1e, 0x6d, 0xda, 0xc9, 0xfc, 0x21, 0xdc, 0xfb, 0xe7, 0x8a, 0x74, 0x00, 0xb7,
   734  	0x56, 0x91, 0x46, 0xd7, 0x9a, 0x3f, 0x83, 0x7e, 0xbb, 0x81, 0xde, 0x01, 0xe7, 0x5d, 0x1a, 0x71,
   735  	0x61, 0xf0, 0xab, 0x71, 0x2d, 0xea, 0x40, 0x6f, 0x63, 0xa4, 0x42, 0x97, 0x54, 0xf2, 0xd7, 0x91,
   736  	0x89, 0x5c, 0x7b, 0x35, 0xdf, 0xff, 0x62, 0xd6, 0xbe, 0x64, 0xe4, 0x50, 0x32, 0x72, 0x2c, 0x19,
   737  	0xf9, 0x59, 0x32, 0xf2, 0xe3, 0xc4, 0xac, 0xc3, 0x89, 0x59, 0xc7, 0x13, 0xb3, 0x3e, 0x0e, 0xba,
   738  	0xe4, 0xdb, 0xdb, 0xf5, 0x07, 0x58, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x5a, 0x44, 0x39, 0x24,
   739  	0x5a, 0x02, 0x00, 0x00,
   740  }