github.com/evdatsion/aphelion-dpos-bft@v0.32.1/libs/common/types.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: libs/common/types.proto
     3  
     4  package common
     5  
     6  import proto "github.com/gogo/protobuf/proto"
     7  import golang_proto "github.com/golang/protobuf/proto"
     8  import fmt "fmt"
     9  import math "math"
    10  import _ "github.com/gogo/protobuf/gogoproto"
    11  
    12  import bytes "bytes"
    13  
    14  import io "io"
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = golang_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  // Define these here for compatibility but use tmlibs/common.KVPair.
    29  type KVPair struct {
    30  	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    31  	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    32  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    33  	XXX_unrecognized     []byte   `json:"-"`
    34  	XXX_sizecache        int32    `json:"-"`
    35  }
    36  
    37  func (m *KVPair) Reset()         { *m = KVPair{} }
    38  func (m *KVPair) String() string { return proto.CompactTextString(m) }
    39  func (*KVPair) ProtoMessage()    {}
    40  func (*KVPair) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_types_a863d437ea36eb85, []int{0}
    42  }
    43  func (m *KVPair) XXX_Unmarshal(b []byte) error {
    44  	return m.Unmarshal(b)
    45  }
    46  func (m *KVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    47  	if deterministic {
    48  		return xxx_messageInfo_KVPair.Marshal(b, m, deterministic)
    49  	} else {
    50  		b = b[:cap(b)]
    51  		n, err := m.MarshalTo(b)
    52  		if err != nil {
    53  			return nil, err
    54  		}
    55  		return b[:n], nil
    56  	}
    57  }
    58  func (dst *KVPair) XXX_Merge(src proto.Message) {
    59  	xxx_messageInfo_KVPair.Merge(dst, src)
    60  }
    61  func (m *KVPair) XXX_Size() int {
    62  	return m.Size()
    63  }
    64  func (m *KVPair) XXX_DiscardUnknown() {
    65  	xxx_messageInfo_KVPair.DiscardUnknown(m)
    66  }
    67  
    68  var xxx_messageInfo_KVPair proto.InternalMessageInfo
    69  
    70  func (m *KVPair) GetKey() []byte {
    71  	if m != nil {
    72  		return m.Key
    73  	}
    74  	return nil
    75  }
    76  
    77  func (m *KVPair) GetValue() []byte {
    78  	if m != nil {
    79  		return m.Value
    80  	}
    81  	return nil
    82  }
    83  
    84  // Define these here for compatibility but use tmlibs/common.KI64Pair.
    85  type KI64Pair struct {
    86  	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    87  	Value                int64    `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
    88  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    89  	XXX_unrecognized     []byte   `json:"-"`
    90  	XXX_sizecache        int32    `json:"-"`
    91  }
    92  
    93  func (m *KI64Pair) Reset()         { *m = KI64Pair{} }
    94  func (m *KI64Pair) String() string { return proto.CompactTextString(m) }
    95  func (*KI64Pair) ProtoMessage()    {}
    96  func (*KI64Pair) Descriptor() ([]byte, []int) {
    97  	return fileDescriptor_types_a863d437ea36eb85, []int{1}
    98  }
    99  func (m *KI64Pair) XXX_Unmarshal(b []byte) error {
   100  	return m.Unmarshal(b)
   101  }
   102  func (m *KI64Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   103  	if deterministic {
   104  		return xxx_messageInfo_KI64Pair.Marshal(b, m, deterministic)
   105  	} else {
   106  		b = b[:cap(b)]
   107  		n, err := m.MarshalTo(b)
   108  		if err != nil {
   109  			return nil, err
   110  		}
   111  		return b[:n], nil
   112  	}
   113  }
   114  func (dst *KI64Pair) XXX_Merge(src proto.Message) {
   115  	xxx_messageInfo_KI64Pair.Merge(dst, src)
   116  }
   117  func (m *KI64Pair) XXX_Size() int {
   118  	return m.Size()
   119  }
   120  func (m *KI64Pair) XXX_DiscardUnknown() {
   121  	xxx_messageInfo_KI64Pair.DiscardUnknown(m)
   122  }
   123  
   124  var xxx_messageInfo_KI64Pair proto.InternalMessageInfo
   125  
   126  func (m *KI64Pair) GetKey() []byte {
   127  	if m != nil {
   128  		return m.Key
   129  	}
   130  	return nil
   131  }
   132  
   133  func (m *KI64Pair) GetValue() int64 {
   134  	if m != nil {
   135  		return m.Value
   136  	}
   137  	return 0
   138  }
   139  
   140  func init() {
   141  	proto.RegisterType((*KVPair)(nil), "common.KVPair")
   142  	golang_proto.RegisterType((*KVPair)(nil), "common.KVPair")
   143  	proto.RegisterType((*KI64Pair)(nil), "common.KI64Pair")
   144  	golang_proto.RegisterType((*KI64Pair)(nil), "common.KI64Pair")
   145  }
   146  func (this *KVPair) Equal(that interface{}) bool {
   147  	if that == nil {
   148  		return this == nil
   149  	}
   150  
   151  	that1, ok := that.(*KVPair)
   152  	if !ok {
   153  		that2, ok := that.(KVPair)
   154  		if ok {
   155  			that1 = &that2
   156  		} else {
   157  			return false
   158  		}
   159  	}
   160  	if that1 == nil {
   161  		return this == nil
   162  	} else if this == nil {
   163  		return false
   164  	}
   165  	if !bytes.Equal(this.Key, that1.Key) {
   166  		return false
   167  	}
   168  	if !bytes.Equal(this.Value, that1.Value) {
   169  		return false
   170  	}
   171  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   172  		return false
   173  	}
   174  	return true
   175  }
   176  func (this *KI64Pair) Equal(that interface{}) bool {
   177  	if that == nil {
   178  		return this == nil
   179  	}
   180  
   181  	that1, ok := that.(*KI64Pair)
   182  	if !ok {
   183  		that2, ok := that.(KI64Pair)
   184  		if ok {
   185  			that1 = &that2
   186  		} else {
   187  			return false
   188  		}
   189  	}
   190  	if that1 == nil {
   191  		return this == nil
   192  	} else if this == nil {
   193  		return false
   194  	}
   195  	if !bytes.Equal(this.Key, that1.Key) {
   196  		return false
   197  	}
   198  	if this.Value != that1.Value {
   199  		return false
   200  	}
   201  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   202  		return false
   203  	}
   204  	return true
   205  }
   206  func (m *KVPair) Marshal() (dAtA []byte, err error) {
   207  	size := m.Size()
   208  	dAtA = make([]byte, size)
   209  	n, err := m.MarshalTo(dAtA)
   210  	if err != nil {
   211  		return nil, err
   212  	}
   213  	return dAtA[:n], nil
   214  }
   215  
   216  func (m *KVPair) MarshalTo(dAtA []byte) (int, error) {
   217  	var i int
   218  	_ = i
   219  	var l int
   220  	_ = l
   221  	if len(m.Key) > 0 {
   222  		dAtA[i] = 0xa
   223  		i++
   224  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
   225  		i += copy(dAtA[i:], m.Key)
   226  	}
   227  	if len(m.Value) > 0 {
   228  		dAtA[i] = 0x12
   229  		i++
   230  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Value)))
   231  		i += copy(dAtA[i:], m.Value)
   232  	}
   233  	if m.XXX_unrecognized != nil {
   234  		i += copy(dAtA[i:], m.XXX_unrecognized)
   235  	}
   236  	return i, nil
   237  }
   238  
   239  func (m *KI64Pair) Marshal() (dAtA []byte, err error) {
   240  	size := m.Size()
   241  	dAtA = make([]byte, size)
   242  	n, err := m.MarshalTo(dAtA)
   243  	if err != nil {
   244  		return nil, err
   245  	}
   246  	return dAtA[:n], nil
   247  }
   248  
   249  func (m *KI64Pair) MarshalTo(dAtA []byte) (int, error) {
   250  	var i int
   251  	_ = i
   252  	var l int
   253  	_ = l
   254  	if len(m.Key) > 0 {
   255  		dAtA[i] = 0xa
   256  		i++
   257  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
   258  		i += copy(dAtA[i:], m.Key)
   259  	}
   260  	if m.Value != 0 {
   261  		dAtA[i] = 0x10
   262  		i++
   263  		i = encodeVarintTypes(dAtA, i, uint64(m.Value))
   264  	}
   265  	if m.XXX_unrecognized != nil {
   266  		i += copy(dAtA[i:], m.XXX_unrecognized)
   267  	}
   268  	return i, nil
   269  }
   270  
   271  func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
   272  	for v >= 1<<7 {
   273  		dAtA[offset] = uint8(v&0x7f | 0x80)
   274  		v >>= 7
   275  		offset++
   276  	}
   277  	dAtA[offset] = uint8(v)
   278  	return offset + 1
   279  }
   280  func NewPopulatedKVPair(r randyTypes, easy bool) *KVPair {
   281  	this := &KVPair{}
   282  	v1 := r.Intn(100)
   283  	this.Key = make([]byte, v1)
   284  	for i := 0; i < v1; i++ {
   285  		this.Key[i] = byte(r.Intn(256))
   286  	}
   287  	v2 := r.Intn(100)
   288  	this.Value = make([]byte, v2)
   289  	for i := 0; i < v2; i++ {
   290  		this.Value[i] = byte(r.Intn(256))
   291  	}
   292  	if !easy && r.Intn(10) != 0 {
   293  		this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
   294  	}
   295  	return this
   296  }
   297  
   298  func NewPopulatedKI64Pair(r randyTypes, easy bool) *KI64Pair {
   299  	this := &KI64Pair{}
   300  	v3 := r.Intn(100)
   301  	this.Key = make([]byte, v3)
   302  	for i := 0; i < v3; i++ {
   303  		this.Key[i] = byte(r.Intn(256))
   304  	}
   305  	this.Value = int64(r.Int63())
   306  	if r.Intn(2) == 0 {
   307  		this.Value *= -1
   308  	}
   309  	if !easy && r.Intn(10) != 0 {
   310  		this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
   311  	}
   312  	return this
   313  }
   314  
   315  type randyTypes interface {
   316  	Float32() float32
   317  	Float64() float64
   318  	Int63() int64
   319  	Int31() int32
   320  	Uint32() uint32
   321  	Intn(n int) int
   322  }
   323  
   324  func randUTF8RuneTypes(r randyTypes) rune {
   325  	ru := r.Intn(62)
   326  	if ru < 10 {
   327  		return rune(ru + 48)
   328  	} else if ru < 36 {
   329  		return rune(ru + 55)
   330  	}
   331  	return rune(ru + 61)
   332  }
   333  func randStringTypes(r randyTypes) string {
   334  	v4 := r.Intn(100)
   335  	tmps := make([]rune, v4)
   336  	for i := 0; i < v4; i++ {
   337  		tmps[i] = randUTF8RuneTypes(r)
   338  	}
   339  	return string(tmps)
   340  }
   341  func randUnrecognizedTypes(r randyTypes, maxFieldNumber int) (dAtA []byte) {
   342  	l := r.Intn(5)
   343  	for i := 0; i < l; i++ {
   344  		wire := r.Intn(4)
   345  		if wire == 3 {
   346  			wire = 5
   347  		}
   348  		fieldNumber := maxFieldNumber + r.Intn(100)
   349  		dAtA = randFieldTypes(dAtA, r, fieldNumber, wire)
   350  	}
   351  	return dAtA
   352  }
   353  func randFieldTypes(dAtA []byte, r randyTypes, fieldNumber int, wire int) []byte {
   354  	key := uint32(fieldNumber)<<3 | uint32(wire)
   355  	switch wire {
   356  	case 0:
   357  		dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
   358  		v5 := r.Int63()
   359  		if r.Intn(2) == 0 {
   360  			v5 *= -1
   361  		}
   362  		dAtA = encodeVarintPopulateTypes(dAtA, uint64(v5))
   363  	case 1:
   364  		dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
   365  		dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
   366  	case 2:
   367  		dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
   368  		ll := r.Intn(100)
   369  		dAtA = encodeVarintPopulateTypes(dAtA, uint64(ll))
   370  		for j := 0; j < ll; j++ {
   371  			dAtA = append(dAtA, byte(r.Intn(256)))
   372  		}
   373  	default:
   374  		dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
   375  		dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
   376  	}
   377  	return dAtA
   378  }
   379  func encodeVarintPopulateTypes(dAtA []byte, v uint64) []byte {
   380  	for v >= 1<<7 {
   381  		dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
   382  		v >>= 7
   383  	}
   384  	dAtA = append(dAtA, uint8(v))
   385  	return dAtA
   386  }
   387  func (m *KVPair) Size() (n int) {
   388  	if m == nil {
   389  		return 0
   390  	}
   391  	var l int
   392  	_ = l
   393  	l = len(m.Key)
   394  	if l > 0 {
   395  		n += 1 + l + sovTypes(uint64(l))
   396  	}
   397  	l = len(m.Value)
   398  	if l > 0 {
   399  		n += 1 + l + sovTypes(uint64(l))
   400  	}
   401  	if m.XXX_unrecognized != nil {
   402  		n += len(m.XXX_unrecognized)
   403  	}
   404  	return n
   405  }
   406  
   407  func (m *KI64Pair) Size() (n int) {
   408  	if m == nil {
   409  		return 0
   410  	}
   411  	var l int
   412  	_ = l
   413  	l = len(m.Key)
   414  	if l > 0 {
   415  		n += 1 + l + sovTypes(uint64(l))
   416  	}
   417  	if m.Value != 0 {
   418  		n += 1 + sovTypes(uint64(m.Value))
   419  	}
   420  	if m.XXX_unrecognized != nil {
   421  		n += len(m.XXX_unrecognized)
   422  	}
   423  	return n
   424  }
   425  
   426  func sovTypes(x uint64) (n int) {
   427  	for {
   428  		n++
   429  		x >>= 7
   430  		if x == 0 {
   431  			break
   432  		}
   433  	}
   434  	return n
   435  }
   436  func sozTypes(x uint64) (n int) {
   437  	return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   438  }
   439  func (m *KVPair) Unmarshal(dAtA []byte) error {
   440  	l := len(dAtA)
   441  	iNdEx := 0
   442  	for iNdEx < l {
   443  		preIndex := iNdEx
   444  		var wire uint64
   445  		for shift := uint(0); ; shift += 7 {
   446  			if shift >= 64 {
   447  				return ErrIntOverflowTypes
   448  			}
   449  			if iNdEx >= l {
   450  				return io.ErrUnexpectedEOF
   451  			}
   452  			b := dAtA[iNdEx]
   453  			iNdEx++
   454  			wire |= (uint64(b) & 0x7F) << shift
   455  			if b < 0x80 {
   456  				break
   457  			}
   458  		}
   459  		fieldNum := int32(wire >> 3)
   460  		wireType := int(wire & 0x7)
   461  		if wireType == 4 {
   462  			return fmt.Errorf("proto: KVPair: wiretype end group for non-group")
   463  		}
   464  		if fieldNum <= 0 {
   465  			return fmt.Errorf("proto: KVPair: illegal tag %d (wire type %d)", fieldNum, wire)
   466  		}
   467  		switch fieldNum {
   468  		case 1:
   469  			if wireType != 2 {
   470  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
   471  			}
   472  			var byteLen int
   473  			for shift := uint(0); ; shift += 7 {
   474  				if shift >= 64 {
   475  					return ErrIntOverflowTypes
   476  				}
   477  				if iNdEx >= l {
   478  					return io.ErrUnexpectedEOF
   479  				}
   480  				b := dAtA[iNdEx]
   481  				iNdEx++
   482  				byteLen |= (int(b) & 0x7F) << shift
   483  				if b < 0x80 {
   484  					break
   485  				}
   486  			}
   487  			if byteLen < 0 {
   488  				return ErrInvalidLengthTypes
   489  			}
   490  			postIndex := iNdEx + byteLen
   491  			if postIndex > l {
   492  				return io.ErrUnexpectedEOF
   493  			}
   494  			m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
   495  			if m.Key == nil {
   496  				m.Key = []byte{}
   497  			}
   498  			iNdEx = postIndex
   499  		case 2:
   500  			if wireType != 2 {
   501  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
   502  			}
   503  			var byteLen int
   504  			for shift := uint(0); ; shift += 7 {
   505  				if shift >= 64 {
   506  					return ErrIntOverflowTypes
   507  				}
   508  				if iNdEx >= l {
   509  					return io.ErrUnexpectedEOF
   510  				}
   511  				b := dAtA[iNdEx]
   512  				iNdEx++
   513  				byteLen |= (int(b) & 0x7F) << shift
   514  				if b < 0x80 {
   515  					break
   516  				}
   517  			}
   518  			if byteLen < 0 {
   519  				return ErrInvalidLengthTypes
   520  			}
   521  			postIndex := iNdEx + byteLen
   522  			if postIndex > l {
   523  				return io.ErrUnexpectedEOF
   524  			}
   525  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
   526  			if m.Value == nil {
   527  				m.Value = []byte{}
   528  			}
   529  			iNdEx = postIndex
   530  		default:
   531  			iNdEx = preIndex
   532  			skippy, err := skipTypes(dAtA[iNdEx:])
   533  			if err != nil {
   534  				return err
   535  			}
   536  			if skippy < 0 {
   537  				return ErrInvalidLengthTypes
   538  			}
   539  			if (iNdEx + skippy) > l {
   540  				return io.ErrUnexpectedEOF
   541  			}
   542  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   543  			iNdEx += skippy
   544  		}
   545  	}
   546  
   547  	if iNdEx > l {
   548  		return io.ErrUnexpectedEOF
   549  	}
   550  	return nil
   551  }
   552  func (m *KI64Pair) Unmarshal(dAtA []byte) error {
   553  	l := len(dAtA)
   554  	iNdEx := 0
   555  	for iNdEx < l {
   556  		preIndex := iNdEx
   557  		var wire uint64
   558  		for shift := uint(0); ; shift += 7 {
   559  			if shift >= 64 {
   560  				return ErrIntOverflowTypes
   561  			}
   562  			if iNdEx >= l {
   563  				return io.ErrUnexpectedEOF
   564  			}
   565  			b := dAtA[iNdEx]
   566  			iNdEx++
   567  			wire |= (uint64(b) & 0x7F) << shift
   568  			if b < 0x80 {
   569  				break
   570  			}
   571  		}
   572  		fieldNum := int32(wire >> 3)
   573  		wireType := int(wire & 0x7)
   574  		if wireType == 4 {
   575  			return fmt.Errorf("proto: KI64Pair: wiretype end group for non-group")
   576  		}
   577  		if fieldNum <= 0 {
   578  			return fmt.Errorf("proto: KI64Pair: illegal tag %d (wire type %d)", fieldNum, wire)
   579  		}
   580  		switch fieldNum {
   581  		case 1:
   582  			if wireType != 2 {
   583  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
   584  			}
   585  			var byteLen int
   586  			for shift := uint(0); ; shift += 7 {
   587  				if shift >= 64 {
   588  					return ErrIntOverflowTypes
   589  				}
   590  				if iNdEx >= l {
   591  					return io.ErrUnexpectedEOF
   592  				}
   593  				b := dAtA[iNdEx]
   594  				iNdEx++
   595  				byteLen |= (int(b) & 0x7F) << shift
   596  				if b < 0x80 {
   597  					break
   598  				}
   599  			}
   600  			if byteLen < 0 {
   601  				return ErrInvalidLengthTypes
   602  			}
   603  			postIndex := iNdEx + byteLen
   604  			if postIndex > l {
   605  				return io.ErrUnexpectedEOF
   606  			}
   607  			m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
   608  			if m.Key == nil {
   609  				m.Key = []byte{}
   610  			}
   611  			iNdEx = postIndex
   612  		case 2:
   613  			if wireType != 0 {
   614  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
   615  			}
   616  			m.Value = 0
   617  			for shift := uint(0); ; shift += 7 {
   618  				if shift >= 64 {
   619  					return ErrIntOverflowTypes
   620  				}
   621  				if iNdEx >= l {
   622  					return io.ErrUnexpectedEOF
   623  				}
   624  				b := dAtA[iNdEx]
   625  				iNdEx++
   626  				m.Value |= (int64(b) & 0x7F) << shift
   627  				if b < 0x80 {
   628  					break
   629  				}
   630  			}
   631  		default:
   632  			iNdEx = preIndex
   633  			skippy, err := skipTypes(dAtA[iNdEx:])
   634  			if err != nil {
   635  				return err
   636  			}
   637  			if skippy < 0 {
   638  				return ErrInvalidLengthTypes
   639  			}
   640  			if (iNdEx + skippy) > l {
   641  				return io.ErrUnexpectedEOF
   642  			}
   643  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   644  			iNdEx += skippy
   645  		}
   646  	}
   647  
   648  	if iNdEx > l {
   649  		return io.ErrUnexpectedEOF
   650  	}
   651  	return nil
   652  }
   653  func skipTypes(dAtA []byte) (n int, err error) {
   654  	l := len(dAtA)
   655  	iNdEx := 0
   656  	for iNdEx < l {
   657  		var wire uint64
   658  		for shift := uint(0); ; shift += 7 {
   659  			if shift >= 64 {
   660  				return 0, ErrIntOverflowTypes
   661  			}
   662  			if iNdEx >= l {
   663  				return 0, io.ErrUnexpectedEOF
   664  			}
   665  			b := dAtA[iNdEx]
   666  			iNdEx++
   667  			wire |= (uint64(b) & 0x7F) << shift
   668  			if b < 0x80 {
   669  				break
   670  			}
   671  		}
   672  		wireType := int(wire & 0x7)
   673  		switch wireType {
   674  		case 0:
   675  			for shift := uint(0); ; shift += 7 {
   676  				if shift >= 64 {
   677  					return 0, ErrIntOverflowTypes
   678  				}
   679  				if iNdEx >= l {
   680  					return 0, io.ErrUnexpectedEOF
   681  				}
   682  				iNdEx++
   683  				if dAtA[iNdEx-1] < 0x80 {
   684  					break
   685  				}
   686  			}
   687  			return iNdEx, nil
   688  		case 1:
   689  			iNdEx += 8
   690  			return iNdEx, nil
   691  		case 2:
   692  			var length int
   693  			for shift := uint(0); ; shift += 7 {
   694  				if shift >= 64 {
   695  					return 0, ErrIntOverflowTypes
   696  				}
   697  				if iNdEx >= l {
   698  					return 0, io.ErrUnexpectedEOF
   699  				}
   700  				b := dAtA[iNdEx]
   701  				iNdEx++
   702  				length |= (int(b) & 0x7F) << shift
   703  				if b < 0x80 {
   704  					break
   705  				}
   706  			}
   707  			iNdEx += length
   708  			if length < 0 {
   709  				return 0, ErrInvalidLengthTypes
   710  			}
   711  			return iNdEx, nil
   712  		case 3:
   713  			for {
   714  				var innerWire uint64
   715  				var start int = iNdEx
   716  				for shift := uint(0); ; shift += 7 {
   717  					if shift >= 64 {
   718  						return 0, ErrIntOverflowTypes
   719  					}
   720  					if iNdEx >= l {
   721  						return 0, io.ErrUnexpectedEOF
   722  					}
   723  					b := dAtA[iNdEx]
   724  					iNdEx++
   725  					innerWire |= (uint64(b) & 0x7F) << shift
   726  					if b < 0x80 {
   727  						break
   728  					}
   729  				}
   730  				innerWireType := int(innerWire & 0x7)
   731  				if innerWireType == 4 {
   732  					break
   733  				}
   734  				next, err := skipTypes(dAtA[start:])
   735  				if err != nil {
   736  					return 0, err
   737  				}
   738  				iNdEx = start + next
   739  			}
   740  			return iNdEx, nil
   741  		case 4:
   742  			return iNdEx, nil
   743  		case 5:
   744  			iNdEx += 4
   745  			return iNdEx, nil
   746  		default:
   747  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   748  		}
   749  	}
   750  	panic("unreachable")
   751  }
   752  
   753  var (
   754  	ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
   755  	ErrIntOverflowTypes   = fmt.Errorf("proto: integer overflow")
   756  )
   757  
   758  func init() { proto.RegisterFile("libs/common/types.proto", fileDescriptor_types_a863d437ea36eb85) }
   759  func init() {
   760  	golang_proto.RegisterFile("libs/common/types.proto", fileDescriptor_types_a863d437ea36eb85)
   761  }
   762  
   763  var fileDescriptor_types_a863d437ea36eb85 = []byte{
   764  	// 174 bytes of a gzipped FileDescriptorProto
   765  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcf, 0xc9, 0x4c, 0x2a,
   766  	0xd6, 0x4f, 0xce, 0xcf, 0xcd, 0xcd, 0xcf, 0xd3, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28,
   767  	0xca, 0x2f, 0xc9, 0x17, 0x62, 0x83, 0x88, 0x49, 0xe9, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9,
   768  	0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xa7, 0xe7, 0xeb, 0x83, 0xa5, 0x93, 0x4a, 0xd3, 0xc0, 0x3c,
   769  	0x30, 0x07, 0xcc, 0x82, 0x68, 0x53, 0x32, 0xe0, 0x62, 0xf3, 0x0e, 0x0b, 0x48, 0xcc, 0x2c, 0x12,
   770  	0x12, 0xe0, 0x62, 0xce, 0x4e, 0xad, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x09, 0x02, 0x31, 0x85,
   771  	0x44, 0xb8, 0x58, 0xcb, 0x12, 0x73, 0x4a, 0x53, 0x25, 0x98, 0xc0, 0x62, 0x10, 0x8e, 0x92, 0x11,
   772  	0x17, 0x87, 0xb7, 0xa7, 0x99, 0x09, 0x31, 0x7a, 0x98, 0xa1, 0x7a, 0x9c, 0x64, 0x7e, 0x3c, 0x94,
   773  	0x63, 0x5c, 0xf1, 0x48, 0x8e, 0x71, 0xc7, 0x23, 0x39, 0xc6, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c,
   774  	0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0xf1, 0xc0, 0x63, 0x39, 0xc6, 0x24, 0x36, 0xb0, 0x53, 0x8c,
   775  	0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x39, 0xe1, 0xef, 0xdc, 0x00, 0x00, 0x00,
   776  }