github.com/omniscale/go-osm@v0.3.1/parser/pbf/internal/osmpbf/fileformat.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: parser/pbf/internal/osmpbf/fileformat.proto
     3  
     4  /*
     5  	Package osmpbf is a generated protocol buffer package.
     6  
     7  	It is generated from these files:
     8  		parser/pbf/internal/osmpbf/fileformat.proto
     9  
    10  	It has these top-level messages:
    11  		Blob
    12  		BlobHeader
    13  */
    14  package osmpbf
    15  
    16  import proto "github.com/gogo/protobuf/proto"
    17  import fmt "fmt"
    18  import math "math"
    19  
    20  import io "io"
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    32  
    33  type Blob struct {
    34  	Raw     []byte `protobuf:"bytes,1,opt,name=raw" json:"raw"`
    35  	RawSize int32  `protobuf:"varint,2,opt,name=raw_size,json=rawSize" json:"raw_size"`
    36  	// Possible compressed versions of the data.
    37  	ZlibData []byte `protobuf:"bytes,3,opt,name=zlib_data,json=zlibData" json:"zlib_data"`
    38  	// PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
    39  	LzmaData []byte `protobuf:"bytes,4,opt,name=lzma_data,json=lzmaData" json:"lzma_data"`
    40  	// Formerly used for bzip2 compressed data. Depreciated in 2010.
    41  	OBSOLETEBzip2Data []byte `protobuf:"bytes,5,opt,name=OBSOLETE_bzip2_data,json=OBSOLETEBzip2Data" json:"OBSOLETE_bzip2_data"`
    42  }
    43  
    44  func (m *Blob) Reset()                    { *m = Blob{} }
    45  func (m *Blob) String() string            { return proto.CompactTextString(m) }
    46  func (*Blob) ProtoMessage()               {}
    47  func (*Blob) Descriptor() ([]byte, []int) { return fileDescriptorFileformat, []int{0} }
    48  
    49  func (m *Blob) GetRaw() []byte {
    50  	if m != nil {
    51  		return m.Raw
    52  	}
    53  	return nil
    54  }
    55  
    56  func (m *Blob) GetRawSize() int32 {
    57  	if m != nil {
    58  		return m.RawSize
    59  	}
    60  	return 0
    61  }
    62  
    63  func (m *Blob) GetZlibData() []byte {
    64  	if m != nil {
    65  		return m.ZlibData
    66  	}
    67  	return nil
    68  }
    69  
    70  func (m *Blob) GetLzmaData() []byte {
    71  	if m != nil {
    72  		return m.LzmaData
    73  	}
    74  	return nil
    75  }
    76  
    77  func (m *Blob) GetOBSOLETEBzip2Data() []byte {
    78  	if m != nil {
    79  		return m.OBSOLETEBzip2Data
    80  	}
    81  	return nil
    82  }
    83  
    84  type BlobHeader struct {
    85  	Type      string `protobuf:"bytes,1,req,name=type" json:"type"`
    86  	Indexdata []byte `protobuf:"bytes,2,opt,name=indexdata" json:"indexdata"`
    87  	Datasize  int32  `protobuf:"varint,3,req,name=datasize" json:"datasize"`
    88  }
    89  
    90  func (m *BlobHeader) Reset()                    { *m = BlobHeader{} }
    91  func (m *BlobHeader) String() string            { return proto.CompactTextString(m) }
    92  func (*BlobHeader) ProtoMessage()               {}
    93  func (*BlobHeader) Descriptor() ([]byte, []int) { return fileDescriptorFileformat, []int{1} }
    94  
    95  func (m *BlobHeader) GetType() string {
    96  	if m != nil {
    97  		return m.Type
    98  	}
    99  	return ""
   100  }
   101  
   102  func (m *BlobHeader) GetIndexdata() []byte {
   103  	if m != nil {
   104  		return m.Indexdata
   105  	}
   106  	return nil
   107  }
   108  
   109  func (m *BlobHeader) GetDatasize() int32 {
   110  	if m != nil {
   111  		return m.Datasize
   112  	}
   113  	return 0
   114  }
   115  
   116  func init() {
   117  	proto.RegisterType((*Blob)(nil), "osmpbf.Blob")
   118  	proto.RegisterType((*BlobHeader)(nil), "osmpbf.BlobHeader")
   119  }
   120  func (m *Blob) Marshal() (dAtA []byte, err error) {
   121  	size := m.Size()
   122  	dAtA = make([]byte, size)
   123  	n, err := m.MarshalTo(dAtA)
   124  	if err != nil {
   125  		return nil, err
   126  	}
   127  	return dAtA[:n], nil
   128  }
   129  
   130  func (m *Blob) MarshalTo(dAtA []byte) (int, error) {
   131  	var i int
   132  	_ = i
   133  	var l int
   134  	_ = l
   135  	if m.Raw != nil {
   136  		dAtA[i] = 0xa
   137  		i++
   138  		i = encodeVarintFileformat(dAtA, i, uint64(len(m.Raw)))
   139  		i += copy(dAtA[i:], m.Raw)
   140  	}
   141  	dAtA[i] = 0x10
   142  	i++
   143  	i = encodeVarintFileformat(dAtA, i, uint64(m.RawSize))
   144  	if m.ZlibData != nil {
   145  		dAtA[i] = 0x1a
   146  		i++
   147  		i = encodeVarintFileformat(dAtA, i, uint64(len(m.ZlibData)))
   148  		i += copy(dAtA[i:], m.ZlibData)
   149  	}
   150  	if m.LzmaData != nil {
   151  		dAtA[i] = 0x22
   152  		i++
   153  		i = encodeVarintFileformat(dAtA, i, uint64(len(m.LzmaData)))
   154  		i += copy(dAtA[i:], m.LzmaData)
   155  	}
   156  	if m.OBSOLETEBzip2Data != nil {
   157  		dAtA[i] = 0x2a
   158  		i++
   159  		i = encodeVarintFileformat(dAtA, i, uint64(len(m.OBSOLETEBzip2Data)))
   160  		i += copy(dAtA[i:], m.OBSOLETEBzip2Data)
   161  	}
   162  	return i, nil
   163  }
   164  
   165  func (m *BlobHeader) 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 *BlobHeader) MarshalTo(dAtA []byte) (int, error) {
   176  	var i int
   177  	_ = i
   178  	var l int
   179  	_ = l
   180  	dAtA[i] = 0xa
   181  	i++
   182  	i = encodeVarintFileformat(dAtA, i, uint64(len(m.Type)))
   183  	i += copy(dAtA[i:], m.Type)
   184  	if m.Indexdata != nil {
   185  		dAtA[i] = 0x12
   186  		i++
   187  		i = encodeVarintFileformat(dAtA, i, uint64(len(m.Indexdata)))
   188  		i += copy(dAtA[i:], m.Indexdata)
   189  	}
   190  	dAtA[i] = 0x18
   191  	i++
   192  	i = encodeVarintFileformat(dAtA, i, uint64(m.Datasize))
   193  	return i, nil
   194  }
   195  
   196  func encodeVarintFileformat(dAtA []byte, offset int, v uint64) int {
   197  	for v >= 1<<7 {
   198  		dAtA[offset] = uint8(v&0x7f | 0x80)
   199  		v >>= 7
   200  		offset++
   201  	}
   202  	dAtA[offset] = uint8(v)
   203  	return offset + 1
   204  }
   205  func (m *Blob) Size() (n int) {
   206  	var l int
   207  	_ = l
   208  	if m.Raw != nil {
   209  		l = len(m.Raw)
   210  		n += 1 + l + sovFileformat(uint64(l))
   211  	}
   212  	n += 1 + sovFileformat(uint64(m.RawSize))
   213  	if m.ZlibData != nil {
   214  		l = len(m.ZlibData)
   215  		n += 1 + l + sovFileformat(uint64(l))
   216  	}
   217  	if m.LzmaData != nil {
   218  		l = len(m.LzmaData)
   219  		n += 1 + l + sovFileformat(uint64(l))
   220  	}
   221  	if m.OBSOLETEBzip2Data != nil {
   222  		l = len(m.OBSOLETEBzip2Data)
   223  		n += 1 + l + sovFileformat(uint64(l))
   224  	}
   225  	return n
   226  }
   227  
   228  func (m *BlobHeader) Size() (n int) {
   229  	var l int
   230  	_ = l
   231  	l = len(m.Type)
   232  	n += 1 + l + sovFileformat(uint64(l))
   233  	if m.Indexdata != nil {
   234  		l = len(m.Indexdata)
   235  		n += 1 + l + sovFileformat(uint64(l))
   236  	}
   237  	n += 1 + sovFileformat(uint64(m.Datasize))
   238  	return n
   239  }
   240  
   241  func sovFileformat(x uint64) (n int) {
   242  	for {
   243  		n++
   244  		x >>= 7
   245  		if x == 0 {
   246  			break
   247  		}
   248  	}
   249  	return n
   250  }
   251  func sozFileformat(x uint64) (n int) {
   252  	return sovFileformat(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   253  }
   254  func (m *Blob) Unmarshal(dAtA []byte) error {
   255  	l := len(dAtA)
   256  	iNdEx := 0
   257  	for iNdEx < l {
   258  		preIndex := iNdEx
   259  		var wire uint64
   260  		for shift := uint(0); ; shift += 7 {
   261  			if shift >= 64 {
   262  				return ErrIntOverflowFileformat
   263  			}
   264  			if iNdEx >= l {
   265  				return io.ErrUnexpectedEOF
   266  			}
   267  			b := dAtA[iNdEx]
   268  			iNdEx++
   269  			wire |= (uint64(b) & 0x7F) << shift
   270  			if b < 0x80 {
   271  				break
   272  			}
   273  		}
   274  		fieldNum := int32(wire >> 3)
   275  		wireType := int(wire & 0x7)
   276  		if wireType == 4 {
   277  			return fmt.Errorf("proto: Blob: wiretype end group for non-group")
   278  		}
   279  		if fieldNum <= 0 {
   280  			return fmt.Errorf("proto: Blob: illegal tag %d (wire type %d)", fieldNum, wire)
   281  		}
   282  		switch fieldNum {
   283  		case 1:
   284  			if wireType != 2 {
   285  				return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType)
   286  			}
   287  			var byteLen int
   288  			for shift := uint(0); ; shift += 7 {
   289  				if shift >= 64 {
   290  					return ErrIntOverflowFileformat
   291  				}
   292  				if iNdEx >= l {
   293  					return io.ErrUnexpectedEOF
   294  				}
   295  				b := dAtA[iNdEx]
   296  				iNdEx++
   297  				byteLen |= (int(b) & 0x7F) << shift
   298  				if b < 0x80 {
   299  					break
   300  				}
   301  			}
   302  			if byteLen < 0 {
   303  				return ErrInvalidLengthFileformat
   304  			}
   305  			postIndex := iNdEx + byteLen
   306  			if postIndex > l {
   307  				return io.ErrUnexpectedEOF
   308  			}
   309  			m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...)
   310  			if m.Raw == nil {
   311  				m.Raw = []byte{}
   312  			}
   313  			iNdEx = postIndex
   314  		case 2:
   315  			if wireType != 0 {
   316  				return fmt.Errorf("proto: wrong wireType = %d for field RawSize", wireType)
   317  			}
   318  			m.RawSize = 0
   319  			for shift := uint(0); ; shift += 7 {
   320  				if shift >= 64 {
   321  					return ErrIntOverflowFileformat
   322  				}
   323  				if iNdEx >= l {
   324  					return io.ErrUnexpectedEOF
   325  				}
   326  				b := dAtA[iNdEx]
   327  				iNdEx++
   328  				m.RawSize |= (int32(b) & 0x7F) << shift
   329  				if b < 0x80 {
   330  					break
   331  				}
   332  			}
   333  		case 3:
   334  			if wireType != 2 {
   335  				return fmt.Errorf("proto: wrong wireType = %d for field ZlibData", wireType)
   336  			}
   337  			var byteLen int
   338  			for shift := uint(0); ; shift += 7 {
   339  				if shift >= 64 {
   340  					return ErrIntOverflowFileformat
   341  				}
   342  				if iNdEx >= l {
   343  					return io.ErrUnexpectedEOF
   344  				}
   345  				b := dAtA[iNdEx]
   346  				iNdEx++
   347  				byteLen |= (int(b) & 0x7F) << shift
   348  				if b < 0x80 {
   349  					break
   350  				}
   351  			}
   352  			if byteLen < 0 {
   353  				return ErrInvalidLengthFileformat
   354  			}
   355  			postIndex := iNdEx + byteLen
   356  			if postIndex > l {
   357  				return io.ErrUnexpectedEOF
   358  			}
   359  			m.ZlibData = append(m.ZlibData[:0], dAtA[iNdEx:postIndex]...)
   360  			if m.ZlibData == nil {
   361  				m.ZlibData = []byte{}
   362  			}
   363  			iNdEx = postIndex
   364  		case 4:
   365  			if wireType != 2 {
   366  				return fmt.Errorf("proto: wrong wireType = %d for field LzmaData", wireType)
   367  			}
   368  			var byteLen int
   369  			for shift := uint(0); ; shift += 7 {
   370  				if shift >= 64 {
   371  					return ErrIntOverflowFileformat
   372  				}
   373  				if iNdEx >= l {
   374  					return io.ErrUnexpectedEOF
   375  				}
   376  				b := dAtA[iNdEx]
   377  				iNdEx++
   378  				byteLen |= (int(b) & 0x7F) << shift
   379  				if b < 0x80 {
   380  					break
   381  				}
   382  			}
   383  			if byteLen < 0 {
   384  				return ErrInvalidLengthFileformat
   385  			}
   386  			postIndex := iNdEx + byteLen
   387  			if postIndex > l {
   388  				return io.ErrUnexpectedEOF
   389  			}
   390  			m.LzmaData = append(m.LzmaData[:0], dAtA[iNdEx:postIndex]...)
   391  			if m.LzmaData == nil {
   392  				m.LzmaData = []byte{}
   393  			}
   394  			iNdEx = postIndex
   395  		case 5:
   396  			if wireType != 2 {
   397  				return fmt.Errorf("proto: wrong wireType = %d for field OBSOLETEBzip2Data", wireType)
   398  			}
   399  			var byteLen int
   400  			for shift := uint(0); ; shift += 7 {
   401  				if shift >= 64 {
   402  					return ErrIntOverflowFileformat
   403  				}
   404  				if iNdEx >= l {
   405  					return io.ErrUnexpectedEOF
   406  				}
   407  				b := dAtA[iNdEx]
   408  				iNdEx++
   409  				byteLen |= (int(b) & 0x7F) << shift
   410  				if b < 0x80 {
   411  					break
   412  				}
   413  			}
   414  			if byteLen < 0 {
   415  				return ErrInvalidLengthFileformat
   416  			}
   417  			postIndex := iNdEx + byteLen
   418  			if postIndex > l {
   419  				return io.ErrUnexpectedEOF
   420  			}
   421  			m.OBSOLETEBzip2Data = append(m.OBSOLETEBzip2Data[:0], dAtA[iNdEx:postIndex]...)
   422  			if m.OBSOLETEBzip2Data == nil {
   423  				m.OBSOLETEBzip2Data = []byte{}
   424  			}
   425  			iNdEx = postIndex
   426  		default:
   427  			iNdEx = preIndex
   428  			skippy, err := skipFileformat(dAtA[iNdEx:])
   429  			if err != nil {
   430  				return err
   431  			}
   432  			if skippy < 0 {
   433  				return ErrInvalidLengthFileformat
   434  			}
   435  			if (iNdEx + skippy) > l {
   436  				return io.ErrUnexpectedEOF
   437  			}
   438  			iNdEx += skippy
   439  		}
   440  	}
   441  
   442  	if iNdEx > l {
   443  		return io.ErrUnexpectedEOF
   444  	}
   445  	return nil
   446  }
   447  func (m *BlobHeader) Unmarshal(dAtA []byte) error {
   448  	var hasFields [1]uint64
   449  	l := len(dAtA)
   450  	iNdEx := 0
   451  	for iNdEx < l {
   452  		preIndex := iNdEx
   453  		var wire uint64
   454  		for shift := uint(0); ; shift += 7 {
   455  			if shift >= 64 {
   456  				return ErrIntOverflowFileformat
   457  			}
   458  			if iNdEx >= l {
   459  				return io.ErrUnexpectedEOF
   460  			}
   461  			b := dAtA[iNdEx]
   462  			iNdEx++
   463  			wire |= (uint64(b) & 0x7F) << shift
   464  			if b < 0x80 {
   465  				break
   466  			}
   467  		}
   468  		fieldNum := int32(wire >> 3)
   469  		wireType := int(wire & 0x7)
   470  		if wireType == 4 {
   471  			return fmt.Errorf("proto: BlobHeader: wiretype end group for non-group")
   472  		}
   473  		if fieldNum <= 0 {
   474  			return fmt.Errorf("proto: BlobHeader: illegal tag %d (wire type %d)", fieldNum, wire)
   475  		}
   476  		switch fieldNum {
   477  		case 1:
   478  			if wireType != 2 {
   479  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
   480  			}
   481  			var stringLen uint64
   482  			for shift := uint(0); ; shift += 7 {
   483  				if shift >= 64 {
   484  					return ErrIntOverflowFileformat
   485  				}
   486  				if iNdEx >= l {
   487  					return io.ErrUnexpectedEOF
   488  				}
   489  				b := dAtA[iNdEx]
   490  				iNdEx++
   491  				stringLen |= (uint64(b) & 0x7F) << shift
   492  				if b < 0x80 {
   493  					break
   494  				}
   495  			}
   496  			intStringLen := int(stringLen)
   497  			if intStringLen < 0 {
   498  				return ErrInvalidLengthFileformat
   499  			}
   500  			postIndex := iNdEx + intStringLen
   501  			if postIndex > l {
   502  				return io.ErrUnexpectedEOF
   503  			}
   504  			m.Type = string(dAtA[iNdEx:postIndex])
   505  			iNdEx = postIndex
   506  			hasFields[0] |= uint64(0x00000001)
   507  		case 2:
   508  			if wireType != 2 {
   509  				return fmt.Errorf("proto: wrong wireType = %d for field Indexdata", wireType)
   510  			}
   511  			var byteLen int
   512  			for shift := uint(0); ; shift += 7 {
   513  				if shift >= 64 {
   514  					return ErrIntOverflowFileformat
   515  				}
   516  				if iNdEx >= l {
   517  					return io.ErrUnexpectedEOF
   518  				}
   519  				b := dAtA[iNdEx]
   520  				iNdEx++
   521  				byteLen |= (int(b) & 0x7F) << shift
   522  				if b < 0x80 {
   523  					break
   524  				}
   525  			}
   526  			if byteLen < 0 {
   527  				return ErrInvalidLengthFileformat
   528  			}
   529  			postIndex := iNdEx + byteLen
   530  			if postIndex > l {
   531  				return io.ErrUnexpectedEOF
   532  			}
   533  			m.Indexdata = append(m.Indexdata[:0], dAtA[iNdEx:postIndex]...)
   534  			if m.Indexdata == nil {
   535  				m.Indexdata = []byte{}
   536  			}
   537  			iNdEx = postIndex
   538  		case 3:
   539  			if wireType != 0 {
   540  				return fmt.Errorf("proto: wrong wireType = %d for field Datasize", wireType)
   541  			}
   542  			m.Datasize = 0
   543  			for shift := uint(0); ; shift += 7 {
   544  				if shift >= 64 {
   545  					return ErrIntOverflowFileformat
   546  				}
   547  				if iNdEx >= l {
   548  					return io.ErrUnexpectedEOF
   549  				}
   550  				b := dAtA[iNdEx]
   551  				iNdEx++
   552  				m.Datasize |= (int32(b) & 0x7F) << shift
   553  				if b < 0x80 {
   554  					break
   555  				}
   556  			}
   557  			hasFields[0] |= uint64(0x00000002)
   558  		default:
   559  			iNdEx = preIndex
   560  			skippy, err := skipFileformat(dAtA[iNdEx:])
   561  			if err != nil {
   562  				return err
   563  			}
   564  			if skippy < 0 {
   565  				return ErrInvalidLengthFileformat
   566  			}
   567  			if (iNdEx + skippy) > l {
   568  				return io.ErrUnexpectedEOF
   569  			}
   570  			iNdEx += skippy
   571  		}
   572  	}
   573  	if hasFields[0]&uint64(0x00000001) == 0 {
   574  		return proto.NewRequiredNotSetError("type")
   575  	}
   576  	if hasFields[0]&uint64(0x00000002) == 0 {
   577  		return proto.NewRequiredNotSetError("datasize")
   578  	}
   579  
   580  	if iNdEx > l {
   581  		return io.ErrUnexpectedEOF
   582  	}
   583  	return nil
   584  }
   585  func skipFileformat(dAtA []byte) (n int, err error) {
   586  	l := len(dAtA)
   587  	iNdEx := 0
   588  	for iNdEx < l {
   589  		var wire uint64
   590  		for shift := uint(0); ; shift += 7 {
   591  			if shift >= 64 {
   592  				return 0, ErrIntOverflowFileformat
   593  			}
   594  			if iNdEx >= l {
   595  				return 0, io.ErrUnexpectedEOF
   596  			}
   597  			b := dAtA[iNdEx]
   598  			iNdEx++
   599  			wire |= (uint64(b) & 0x7F) << shift
   600  			if b < 0x80 {
   601  				break
   602  			}
   603  		}
   604  		wireType := int(wire & 0x7)
   605  		switch wireType {
   606  		case 0:
   607  			for shift := uint(0); ; shift += 7 {
   608  				if shift >= 64 {
   609  					return 0, ErrIntOverflowFileformat
   610  				}
   611  				if iNdEx >= l {
   612  					return 0, io.ErrUnexpectedEOF
   613  				}
   614  				iNdEx++
   615  				if dAtA[iNdEx-1] < 0x80 {
   616  					break
   617  				}
   618  			}
   619  			return iNdEx, nil
   620  		case 1:
   621  			iNdEx += 8
   622  			return iNdEx, nil
   623  		case 2:
   624  			var length int
   625  			for shift := uint(0); ; shift += 7 {
   626  				if shift >= 64 {
   627  					return 0, ErrIntOverflowFileformat
   628  				}
   629  				if iNdEx >= l {
   630  					return 0, io.ErrUnexpectedEOF
   631  				}
   632  				b := dAtA[iNdEx]
   633  				iNdEx++
   634  				length |= (int(b) & 0x7F) << shift
   635  				if b < 0x80 {
   636  					break
   637  				}
   638  			}
   639  			iNdEx += length
   640  			if length < 0 {
   641  				return 0, ErrInvalidLengthFileformat
   642  			}
   643  			return iNdEx, nil
   644  		case 3:
   645  			for {
   646  				var innerWire uint64
   647  				var start int = iNdEx
   648  				for shift := uint(0); ; shift += 7 {
   649  					if shift >= 64 {
   650  						return 0, ErrIntOverflowFileformat
   651  					}
   652  					if iNdEx >= l {
   653  						return 0, io.ErrUnexpectedEOF
   654  					}
   655  					b := dAtA[iNdEx]
   656  					iNdEx++
   657  					innerWire |= (uint64(b) & 0x7F) << shift
   658  					if b < 0x80 {
   659  						break
   660  					}
   661  				}
   662  				innerWireType := int(innerWire & 0x7)
   663  				if innerWireType == 4 {
   664  					break
   665  				}
   666  				next, err := skipFileformat(dAtA[start:])
   667  				if err != nil {
   668  					return 0, err
   669  				}
   670  				iNdEx = start + next
   671  			}
   672  			return iNdEx, nil
   673  		case 4:
   674  			return iNdEx, nil
   675  		case 5:
   676  			iNdEx += 4
   677  			return iNdEx, nil
   678  		default:
   679  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   680  		}
   681  	}
   682  	panic("unreachable")
   683  }
   684  
   685  var (
   686  	ErrInvalidLengthFileformat = fmt.Errorf("proto: negative length found during unmarshaling")
   687  	ErrIntOverflowFileformat   = fmt.Errorf("proto: integer overflow")
   688  )
   689  
   690  func init() {
   691  	proto.RegisterFile("parser/pbf/internal/osmpbf/fileformat.proto", fileDescriptorFileformat)
   692  }
   693  
   694  var fileDescriptorFileformat = []byte{
   695  	// 294 bytes of a gzipped FileDescriptorProto
   696  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8f, 0xb1, 0x6a, 0xeb, 0x30,
   697  	0x14, 0x86, 0x23, 0xdb, 0xc9, 0x4d, 0x0e, 0xb7, 0x43, 0x55, 0x28, 0x9a, 0x1c, 0x27, 0x53, 0xa0,
   698  	0x90, 0x40, 0x87, 0x3e, 0x80, 0x69, 0x20, 0x43, 0x21, 0x90, 0x74, 0x0f, 0x47, 0x8d, 0x0c, 0x02,
   699  	0xd9, 0x32, 0xb2, 0xc0, 0xb5, 0x9f, 0xa2, 0x2f, 0xd4, 0x3d, 0x63, 0x9f, 0xa0, 0x14, 0xf7, 0x45,
   700  	0x8a, 0xec, 0x34, 0xf5, 0x24, 0xf4, 0x9d, 0xef, 0x48, 0xff, 0x0f, 0x77, 0x39, 0x9a, 0x42, 0x98,
   701  	0x55, 0xce, 0x93, 0x95, 0xcc, 0xac, 0x30, 0x19, 0xaa, 0x95, 0x2e, 0x52, 0x77, 0x4f, 0xa4, 0x12,
   702  	0x89, 0x36, 0x29, 0xda, 0x65, 0x6e, 0xb4, 0xd5, 0x74, 0xd4, 0x0d, 0xe6, 0xef, 0x04, 0x82, 0x58,
   703  	0x69, 0x4e, 0x6f, 0xc1, 0x37, 0x58, 0x32, 0x12, 0x91, 0xc5, 0xff, 0x38, 0x38, 0x7d, 0x4e, 0x07,
   704  	0x3b, 0x07, 0xe8, 0x14, 0xc6, 0x06, 0xcb, 0x43, 0x21, 0x6b, 0xc1, 0xbc, 0x88, 0x2c, 0x86, 0xe7,
   705  	0xe1, 0x3f, 0x83, 0xe5, 0x5e, 0xd6, 0x82, 0xce, 0x60, 0x52, 0x2b, 0xc9, 0x0f, 0x47, 0xb4, 0xc8,
   706  	0xfc, 0xde, 0xfa, 0xd8, 0xe1, 0x47, 0xb4, 0xe8, 0x14, 0x55, 0xa7, 0xd8, 0x29, 0x41, 0x5f, 0x71,
   707  	0xb8, 0x55, 0x1e, 0xe0, 0x66, 0x1b, 0xef, 0xb7, 0x4f, 0xeb, 0xe7, 0xf5, 0x81, 0xd7, 0x32, 0xbf,
   708  	0xef, 0xe4, 0x61, 0x2b, 0x8f, 0x9c, 0xcc, 0xc8, 0xee, 0xfa, 0x57, 0x89, 0x9d, 0xe1, 0xf6, 0xe6,
   709  	0x0a, 0xc0, 0xc5, 0xdf, 0x08, 0x3c, 0x0a, 0x43, 0x19, 0x04, 0xb6, 0xca, 0x05, 0x23, 0x91, 0xb7,
   710  	0x98, 0x9c, 0xff, 0x68, 0x09, 0x9d, 0xc3, 0x44, 0x66, 0x47, 0xf1, 0xda, 0xbe, 0xea, 0xf5, 0x22,
   711  	0xfc, 0x61, 0x1a, 0xc1, 0xd8, 0x9d, 0x6d, 0x55, 0x3f, 0xf2, 0x2e, 0x55, 0x2f, 0x34, 0x9e, 0x9d,
   712  	0x9a, 0x90, 0x7c, 0x34, 0x21, 0xf9, 0x6a, 0x42, 0xf2, 0xf6, 0x1d, 0x0e, 0xe0, 0xea, 0xc5, 0xe8,
   713  	0x82, 0x57, 0x4b, 0x2e, 0x33, 0x34, 0xd5, 0xc6, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0xac, 0xea,
   714  	0xf3, 0xa9, 0x86, 0x01, 0x00, 0x00,
   715  }
   716