github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/pgwire/pgerror/errors.pb.go (about)

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