github.com/pure-x-eth/consensus_tm@v0.0.0-20230502163723-e3c2ff987250/proto/tendermint/mempool/types.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/mempool/types.proto
     3  
     4  package mempool
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/gogo/protobuf/proto"
     9  	io "io"
    10  	math "math"
    11  	math_bits "math/bits"
    12  )
    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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    24  
    25  type Txs struct {
    26  	Txs [][]byte `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
    27  }
    28  
    29  func (m *Txs) Reset()         { *m = Txs{} }
    30  func (m *Txs) String() string { return proto.CompactTextString(m) }
    31  func (*Txs) ProtoMessage()    {}
    32  func (*Txs) Descriptor() ([]byte, []int) {
    33  	return fileDescriptor_2af51926fdbcbc05, []int{0}
    34  }
    35  func (m *Txs) XXX_Unmarshal(b []byte) error {
    36  	return m.Unmarshal(b)
    37  }
    38  func (m *Txs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    39  	if deterministic {
    40  		return xxx_messageInfo_Txs.Marshal(b, m, deterministic)
    41  	} else {
    42  		b = b[:cap(b)]
    43  		n, err := m.MarshalToSizedBuffer(b)
    44  		if err != nil {
    45  			return nil, err
    46  		}
    47  		return b[:n], nil
    48  	}
    49  }
    50  func (m *Txs) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_Txs.Merge(m, src)
    52  }
    53  func (m *Txs) XXX_Size() int {
    54  	return m.Size()
    55  }
    56  func (m *Txs) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_Txs.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_Txs proto.InternalMessageInfo
    61  
    62  func (m *Txs) GetTxs() [][]byte {
    63  	if m != nil {
    64  		return m.Txs
    65  	}
    66  	return nil
    67  }
    68  
    69  type Message struct {
    70  	// Types that are valid to be assigned to Sum:
    71  	//	*Message_Txs
    72  	Sum isMessage_Sum `protobuf_oneof:"sum"`
    73  }
    74  
    75  func (m *Message) Reset()         { *m = Message{} }
    76  func (m *Message) String() string { return proto.CompactTextString(m) }
    77  func (*Message) ProtoMessage()    {}
    78  func (*Message) Descriptor() ([]byte, []int) {
    79  	return fileDescriptor_2af51926fdbcbc05, []int{1}
    80  }
    81  func (m *Message) XXX_Unmarshal(b []byte) error {
    82  	return m.Unmarshal(b)
    83  }
    84  func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    85  	if deterministic {
    86  		return xxx_messageInfo_Message.Marshal(b, m, deterministic)
    87  	} else {
    88  		b = b[:cap(b)]
    89  		n, err := m.MarshalToSizedBuffer(b)
    90  		if err != nil {
    91  			return nil, err
    92  		}
    93  		return b[:n], nil
    94  	}
    95  }
    96  func (m *Message) XXX_Merge(src proto.Message) {
    97  	xxx_messageInfo_Message.Merge(m, src)
    98  }
    99  func (m *Message) XXX_Size() int {
   100  	return m.Size()
   101  }
   102  func (m *Message) XXX_DiscardUnknown() {
   103  	xxx_messageInfo_Message.DiscardUnknown(m)
   104  }
   105  
   106  var xxx_messageInfo_Message proto.InternalMessageInfo
   107  
   108  type isMessage_Sum interface {
   109  	isMessage_Sum()
   110  	MarshalTo([]byte) (int, error)
   111  	Size() int
   112  }
   113  
   114  type Message_Txs struct {
   115  	Txs *Txs `protobuf:"bytes,1,opt,name=txs,proto3,oneof" json:"txs,omitempty"`
   116  }
   117  
   118  func (*Message_Txs) isMessage_Sum() {}
   119  
   120  func (m *Message) GetSum() isMessage_Sum {
   121  	if m != nil {
   122  		return m.Sum
   123  	}
   124  	return nil
   125  }
   126  
   127  func (m *Message) GetTxs() *Txs {
   128  	if x, ok := m.GetSum().(*Message_Txs); ok {
   129  		return x.Txs
   130  	}
   131  	return nil
   132  }
   133  
   134  // XXX_OneofWrappers is for the internal use of the proto package.
   135  func (*Message) XXX_OneofWrappers() []interface{} {
   136  	return []interface{}{
   137  		(*Message_Txs)(nil),
   138  	}
   139  }
   140  
   141  func init() {
   142  	proto.RegisterType((*Txs)(nil), "tendermint.mempool.Txs")
   143  	proto.RegisterType((*Message)(nil), "tendermint.mempool.Message")
   144  }
   145  
   146  func init() { proto.RegisterFile("tendermint/mempool/types.proto", fileDescriptor_2af51926fdbcbc05) }
   147  
   148  var fileDescriptor_2af51926fdbcbc05 = []byte{
   149  	// 179 bytes of a gzipped FileDescriptorProto
   150  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x49, 0xcd, 0x4b,
   151  	0x49, 0x2d, 0xca, 0xcd, 0xcc, 0x2b, 0xd1, 0xcf, 0x4d, 0xcd, 0x2d, 0xc8, 0xcf, 0xcf, 0xd1, 0x2f,
   152  	0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0xc8, 0xeb, 0x41,
   153  	0xe5, 0x95, 0xc4, 0xb9, 0x98, 0x43, 0x2a, 0x8a, 0x85, 0x04, 0xb8, 0x98, 0x4b, 0x2a, 0x8a, 0x25,
   154  	0x18, 0x15, 0x98, 0x35, 0x78, 0x82, 0x40, 0x4c, 0x25, 0x5b, 0x2e, 0x76, 0xdf, 0xd4, 0xe2, 0xe2,
   155  	0xc4, 0xf4, 0x54, 0x21, 0x6d, 0x98, 0x24, 0xa3, 0x06, 0xb7, 0x91, 0xb8, 0x1e, 0xa6, 0x29, 0x7a,
   156  	0x21, 0x15, 0xc5, 0x1e, 0x0c, 0x60, 0x7d, 0x4e, 0xac, 0x5c, 0xcc, 0xc5, 0xa5, 0xb9, 0x4e, 0xc1,
   157  	0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72,
   158  	0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0x65, 0x99, 0x9e, 0x59, 0x92, 0x51,
   159  	0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe4, 0x60, 0x24, 0x26, 0xd8, 0xb5, 0xfa, 0x98, 0x9e,
   160  	0x49, 0x62, 0x03, 0xcb, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xca, 0xc3, 0xa0, 0xfc, 0xe9,
   161  	0x00, 0x00, 0x00,
   162  }
   163  
   164  func (m *Txs) Marshal() (dAtA []byte, err error) {
   165  	size := m.Size()
   166  	dAtA = make([]byte, size)
   167  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   168  	if err != nil {
   169  		return nil, err
   170  	}
   171  	return dAtA[:n], nil
   172  }
   173  
   174  func (m *Txs) MarshalTo(dAtA []byte) (int, error) {
   175  	size := m.Size()
   176  	return m.MarshalToSizedBuffer(dAtA[:size])
   177  }
   178  
   179  func (m *Txs) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   180  	i := len(dAtA)
   181  	_ = i
   182  	var l int
   183  	_ = l
   184  	if len(m.Txs) > 0 {
   185  		for iNdEx := len(m.Txs) - 1; iNdEx >= 0; iNdEx-- {
   186  			i -= len(m.Txs[iNdEx])
   187  			copy(dAtA[i:], m.Txs[iNdEx])
   188  			i = encodeVarintTypes(dAtA, i, uint64(len(m.Txs[iNdEx])))
   189  			i--
   190  			dAtA[i] = 0xa
   191  		}
   192  	}
   193  	return len(dAtA) - i, nil
   194  }
   195  
   196  func (m *Message) Marshal() (dAtA []byte, err error) {
   197  	size := m.Size()
   198  	dAtA = make([]byte, size)
   199  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   200  	if err != nil {
   201  		return nil, err
   202  	}
   203  	return dAtA[:n], nil
   204  }
   205  
   206  func (m *Message) MarshalTo(dAtA []byte) (int, error) {
   207  	size := m.Size()
   208  	return m.MarshalToSizedBuffer(dAtA[:size])
   209  }
   210  
   211  func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   212  	i := len(dAtA)
   213  	_ = i
   214  	var l int
   215  	_ = l
   216  	if m.Sum != nil {
   217  		{
   218  			size := m.Sum.Size()
   219  			i -= size
   220  			if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
   221  				return 0, err
   222  			}
   223  		}
   224  	}
   225  	return len(dAtA) - i, nil
   226  }
   227  
   228  func (m *Message_Txs) MarshalTo(dAtA []byte) (int, error) {
   229  	size := m.Size()
   230  	return m.MarshalToSizedBuffer(dAtA[:size])
   231  }
   232  
   233  func (m *Message_Txs) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   234  	i := len(dAtA)
   235  	if m.Txs != nil {
   236  		{
   237  			size, err := m.Txs.MarshalToSizedBuffer(dAtA[:i])
   238  			if err != nil {
   239  				return 0, err
   240  			}
   241  			i -= size
   242  			i = encodeVarintTypes(dAtA, i, uint64(size))
   243  		}
   244  		i--
   245  		dAtA[i] = 0xa
   246  	}
   247  	return len(dAtA) - i, nil
   248  }
   249  func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
   250  	offset -= sovTypes(v)
   251  	base := offset
   252  	for v >= 1<<7 {
   253  		dAtA[offset] = uint8(v&0x7f | 0x80)
   254  		v >>= 7
   255  		offset++
   256  	}
   257  	dAtA[offset] = uint8(v)
   258  	return base
   259  }
   260  func (m *Txs) Size() (n int) {
   261  	if m == nil {
   262  		return 0
   263  	}
   264  	var l int
   265  	_ = l
   266  	if len(m.Txs) > 0 {
   267  		for _, b := range m.Txs {
   268  			l = len(b)
   269  			n += 1 + l + sovTypes(uint64(l))
   270  		}
   271  	}
   272  	return n
   273  }
   274  
   275  func (m *Message) Size() (n int) {
   276  	if m == nil {
   277  		return 0
   278  	}
   279  	var l int
   280  	_ = l
   281  	if m.Sum != nil {
   282  		n += m.Sum.Size()
   283  	}
   284  	return n
   285  }
   286  
   287  func (m *Message_Txs) Size() (n int) {
   288  	if m == nil {
   289  		return 0
   290  	}
   291  	var l int
   292  	_ = l
   293  	if m.Txs != nil {
   294  		l = m.Txs.Size()
   295  		n += 1 + l + sovTypes(uint64(l))
   296  	}
   297  	return n
   298  }
   299  
   300  func sovTypes(x uint64) (n int) {
   301  	return (math_bits.Len64(x|1) + 6) / 7
   302  }
   303  func sozTypes(x uint64) (n int) {
   304  	return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   305  }
   306  func (m *Txs) Unmarshal(dAtA []byte) error {
   307  	l := len(dAtA)
   308  	iNdEx := 0
   309  	for iNdEx < l {
   310  		preIndex := iNdEx
   311  		var wire uint64
   312  		for shift := uint(0); ; shift += 7 {
   313  			if shift >= 64 {
   314  				return ErrIntOverflowTypes
   315  			}
   316  			if iNdEx >= l {
   317  				return io.ErrUnexpectedEOF
   318  			}
   319  			b := dAtA[iNdEx]
   320  			iNdEx++
   321  			wire |= uint64(b&0x7F) << shift
   322  			if b < 0x80 {
   323  				break
   324  			}
   325  		}
   326  		fieldNum := int32(wire >> 3)
   327  		wireType := int(wire & 0x7)
   328  		if wireType == 4 {
   329  			return fmt.Errorf("proto: Txs: wiretype end group for non-group")
   330  		}
   331  		if fieldNum <= 0 {
   332  			return fmt.Errorf("proto: Txs: illegal tag %d (wire type %d)", fieldNum, wire)
   333  		}
   334  		switch fieldNum {
   335  		case 1:
   336  			if wireType != 2 {
   337  				return fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType)
   338  			}
   339  			var byteLen int
   340  			for shift := uint(0); ; shift += 7 {
   341  				if shift >= 64 {
   342  					return ErrIntOverflowTypes
   343  				}
   344  				if iNdEx >= l {
   345  					return io.ErrUnexpectedEOF
   346  				}
   347  				b := dAtA[iNdEx]
   348  				iNdEx++
   349  				byteLen |= int(b&0x7F) << shift
   350  				if b < 0x80 {
   351  					break
   352  				}
   353  			}
   354  			if byteLen < 0 {
   355  				return ErrInvalidLengthTypes
   356  			}
   357  			postIndex := iNdEx + byteLen
   358  			if postIndex < 0 {
   359  				return ErrInvalidLengthTypes
   360  			}
   361  			if postIndex > l {
   362  				return io.ErrUnexpectedEOF
   363  			}
   364  			m.Txs = append(m.Txs, make([]byte, postIndex-iNdEx))
   365  			copy(m.Txs[len(m.Txs)-1], dAtA[iNdEx:postIndex])
   366  			iNdEx = postIndex
   367  		default:
   368  			iNdEx = preIndex
   369  			skippy, err := skipTypes(dAtA[iNdEx:])
   370  			if err != nil {
   371  				return err
   372  			}
   373  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   374  				return ErrInvalidLengthTypes
   375  			}
   376  			if (iNdEx + skippy) > l {
   377  				return io.ErrUnexpectedEOF
   378  			}
   379  			iNdEx += skippy
   380  		}
   381  	}
   382  
   383  	if iNdEx > l {
   384  		return io.ErrUnexpectedEOF
   385  	}
   386  	return nil
   387  }
   388  func (m *Message) Unmarshal(dAtA []byte) error {
   389  	l := len(dAtA)
   390  	iNdEx := 0
   391  	for iNdEx < l {
   392  		preIndex := iNdEx
   393  		var wire uint64
   394  		for shift := uint(0); ; shift += 7 {
   395  			if shift >= 64 {
   396  				return ErrIntOverflowTypes
   397  			}
   398  			if iNdEx >= l {
   399  				return io.ErrUnexpectedEOF
   400  			}
   401  			b := dAtA[iNdEx]
   402  			iNdEx++
   403  			wire |= uint64(b&0x7F) << shift
   404  			if b < 0x80 {
   405  				break
   406  			}
   407  		}
   408  		fieldNum := int32(wire >> 3)
   409  		wireType := int(wire & 0x7)
   410  		if wireType == 4 {
   411  			return fmt.Errorf("proto: Message: wiretype end group for non-group")
   412  		}
   413  		if fieldNum <= 0 {
   414  			return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
   415  		}
   416  		switch fieldNum {
   417  		case 1:
   418  			if wireType != 2 {
   419  				return fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType)
   420  			}
   421  			var msglen int
   422  			for shift := uint(0); ; shift += 7 {
   423  				if shift >= 64 {
   424  					return ErrIntOverflowTypes
   425  				}
   426  				if iNdEx >= l {
   427  					return io.ErrUnexpectedEOF
   428  				}
   429  				b := dAtA[iNdEx]
   430  				iNdEx++
   431  				msglen |= int(b&0x7F) << shift
   432  				if b < 0x80 {
   433  					break
   434  				}
   435  			}
   436  			if msglen < 0 {
   437  				return ErrInvalidLengthTypes
   438  			}
   439  			postIndex := iNdEx + msglen
   440  			if postIndex < 0 {
   441  				return ErrInvalidLengthTypes
   442  			}
   443  			if postIndex > l {
   444  				return io.ErrUnexpectedEOF
   445  			}
   446  			v := &Txs{}
   447  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   448  				return err
   449  			}
   450  			m.Sum = &Message_Txs{v}
   451  			iNdEx = postIndex
   452  		default:
   453  			iNdEx = preIndex
   454  			skippy, err := skipTypes(dAtA[iNdEx:])
   455  			if err != nil {
   456  				return err
   457  			}
   458  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   459  				return ErrInvalidLengthTypes
   460  			}
   461  			if (iNdEx + skippy) > l {
   462  				return io.ErrUnexpectedEOF
   463  			}
   464  			iNdEx += skippy
   465  		}
   466  	}
   467  
   468  	if iNdEx > l {
   469  		return io.ErrUnexpectedEOF
   470  	}
   471  	return nil
   472  }
   473  func skipTypes(dAtA []byte) (n int, err error) {
   474  	l := len(dAtA)
   475  	iNdEx := 0
   476  	depth := 0
   477  	for iNdEx < l {
   478  		var wire uint64
   479  		for shift := uint(0); ; shift += 7 {
   480  			if shift >= 64 {
   481  				return 0, ErrIntOverflowTypes
   482  			}
   483  			if iNdEx >= l {
   484  				return 0, io.ErrUnexpectedEOF
   485  			}
   486  			b := dAtA[iNdEx]
   487  			iNdEx++
   488  			wire |= (uint64(b) & 0x7F) << shift
   489  			if b < 0x80 {
   490  				break
   491  			}
   492  		}
   493  		wireType := int(wire & 0x7)
   494  		switch wireType {
   495  		case 0:
   496  			for shift := uint(0); ; shift += 7 {
   497  				if shift >= 64 {
   498  					return 0, ErrIntOverflowTypes
   499  				}
   500  				if iNdEx >= l {
   501  					return 0, io.ErrUnexpectedEOF
   502  				}
   503  				iNdEx++
   504  				if dAtA[iNdEx-1] < 0x80 {
   505  					break
   506  				}
   507  			}
   508  		case 1:
   509  			iNdEx += 8
   510  		case 2:
   511  			var length int
   512  			for shift := uint(0); ; shift += 7 {
   513  				if shift >= 64 {
   514  					return 0, ErrIntOverflowTypes
   515  				}
   516  				if iNdEx >= l {
   517  					return 0, io.ErrUnexpectedEOF
   518  				}
   519  				b := dAtA[iNdEx]
   520  				iNdEx++
   521  				length |= (int(b) & 0x7F) << shift
   522  				if b < 0x80 {
   523  					break
   524  				}
   525  			}
   526  			if length < 0 {
   527  				return 0, ErrInvalidLengthTypes
   528  			}
   529  			iNdEx += length
   530  		case 3:
   531  			depth++
   532  		case 4:
   533  			if depth == 0 {
   534  				return 0, ErrUnexpectedEndOfGroupTypes
   535  			}
   536  			depth--
   537  		case 5:
   538  			iNdEx += 4
   539  		default:
   540  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   541  		}
   542  		if iNdEx < 0 {
   543  			return 0, ErrInvalidLengthTypes
   544  		}
   545  		if depth == 0 {
   546  			return iNdEx, nil
   547  		}
   548  	}
   549  	return 0, io.ErrUnexpectedEOF
   550  }
   551  
   552  var (
   553  	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
   554  	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
   555  	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
   556  )