github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/proto/tendermint/types/events.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/types/events.proto
     3  
     4  package types
     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 EventDataRoundState struct {
    26  	Height int64  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
    27  	Round  int32  `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
    28  	Step   string `protobuf:"bytes,3,opt,name=step,proto3" json:"step,omitempty"`
    29  }
    30  
    31  func (m *EventDataRoundState) Reset()         { *m = EventDataRoundState{} }
    32  func (m *EventDataRoundState) String() string { return proto.CompactTextString(m) }
    33  func (*EventDataRoundState) ProtoMessage()    {}
    34  func (*EventDataRoundState) Descriptor() ([]byte, []int) {
    35  	return fileDescriptor_72cfafd446dedf7c, []int{0}
    36  }
    37  func (m *EventDataRoundState) XXX_Unmarshal(b []byte) error {
    38  	return m.Unmarshal(b)
    39  }
    40  func (m *EventDataRoundState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    41  	if deterministic {
    42  		return xxx_messageInfo_EventDataRoundState.Marshal(b, m, deterministic)
    43  	} else {
    44  		b = b[:cap(b)]
    45  		n, err := m.MarshalToSizedBuffer(b)
    46  		if err != nil {
    47  			return nil, err
    48  		}
    49  		return b[:n], nil
    50  	}
    51  }
    52  func (m *EventDataRoundState) XXX_Merge(src proto.Message) {
    53  	xxx_messageInfo_EventDataRoundState.Merge(m, src)
    54  }
    55  func (m *EventDataRoundState) XXX_Size() int {
    56  	return m.Size()
    57  }
    58  func (m *EventDataRoundState) XXX_DiscardUnknown() {
    59  	xxx_messageInfo_EventDataRoundState.DiscardUnknown(m)
    60  }
    61  
    62  var xxx_messageInfo_EventDataRoundState proto.InternalMessageInfo
    63  
    64  func (m *EventDataRoundState) GetHeight() int64 {
    65  	if m != nil {
    66  		return m.Height
    67  	}
    68  	return 0
    69  }
    70  
    71  func (m *EventDataRoundState) GetRound() int32 {
    72  	if m != nil {
    73  		return m.Round
    74  	}
    75  	return 0
    76  }
    77  
    78  func (m *EventDataRoundState) GetStep() string {
    79  	if m != nil {
    80  		return m.Step
    81  	}
    82  	return ""
    83  }
    84  
    85  func init() {
    86  	proto.RegisterType((*EventDataRoundState)(nil), "seitendermint.types.EventDataRoundState")
    87  }
    88  
    89  func init() { proto.RegisterFile("tendermint/types/events.proto", fileDescriptor_72cfafd446dedf7c) }
    90  
    91  var fileDescriptor_72cfafd446dedf7c = []byte{
    92  	// 206 bytes of a gzipped FileDescriptorProto
    93  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0x49, 0xcd, 0x4b,
    94  	0x49, 0x2d, 0xca, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x4f, 0x2d, 0x4b,
    95  	0xcd, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2e, 0x4e, 0xcd, 0x44, 0xa8,
    96  	0xd0, 0x03, 0xab, 0x50, 0x0a, 0xe7, 0x12, 0x76, 0x05, 0x29, 0x72, 0x49, 0x2c, 0x49, 0x0c, 0xca,
    97  	0x2f, 0xcd, 0x4b, 0x09, 0x2e, 0x49, 0x2c, 0x49, 0x15, 0x12, 0xe3, 0x62, 0xcb, 0x48, 0xcd, 0x4c,
    98  	0xcf, 0x28, 0x91, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x0e, 0x82, 0xf2, 0x84, 0x44, 0xb8, 0x58, 0x8b,
    99  	0x40, 0xaa, 0x24, 0x98, 0x14, 0x18, 0x35, 0x58, 0x83, 0x20, 0x1c, 0x21, 0x21, 0x2e, 0x96, 0xe2,
   100  	0x92, 0xd4, 0x02, 0x09, 0x66, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30, 0xdb, 0x29, 0xf4, 0xc4, 0x23,
   101  	0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2,
   102  	0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xac, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4,
   103  	0x92, 0xf3, 0x73, 0xf5, 0x13, 0x8b, 0x32, 0x75, 0x13, 0xf3, 0x92, 0x33, 0xf2, 0x8b, 0xf4, 0x8b,
   104  	0x53, 0x33, 0x75, 0x91, 0x3c, 0x00, 0x76, 0xb3, 0x3e, 0xba, 0x8f, 0x92, 0xd8, 0xc0, 0xe2, 0xc6,
   105  	0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xca, 0x1c, 0x10, 0xdf, 0xec, 0x00, 0x00, 0x00,
   106  }
   107  
   108  func (m *EventDataRoundState) Marshal() (dAtA []byte, err error) {
   109  	size := m.Size()
   110  	dAtA = make([]byte, size)
   111  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   112  	if err != nil {
   113  		return nil, err
   114  	}
   115  	return dAtA[:n], nil
   116  }
   117  
   118  func (m *EventDataRoundState) MarshalTo(dAtA []byte) (int, error) {
   119  	size := m.Size()
   120  	return m.MarshalToSizedBuffer(dAtA[:size])
   121  }
   122  
   123  func (m *EventDataRoundState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   124  	i := len(dAtA)
   125  	_ = i
   126  	var l int
   127  	_ = l
   128  	if len(m.Step) > 0 {
   129  		i -= len(m.Step)
   130  		copy(dAtA[i:], m.Step)
   131  		i = encodeVarintEvents(dAtA, i, uint64(len(m.Step)))
   132  		i--
   133  		dAtA[i] = 0x1a
   134  	}
   135  	if m.Round != 0 {
   136  		i = encodeVarintEvents(dAtA, i, uint64(m.Round))
   137  		i--
   138  		dAtA[i] = 0x10
   139  	}
   140  	if m.Height != 0 {
   141  		i = encodeVarintEvents(dAtA, i, uint64(m.Height))
   142  		i--
   143  		dAtA[i] = 0x8
   144  	}
   145  	return len(dAtA) - i, nil
   146  }
   147  
   148  func encodeVarintEvents(dAtA []byte, offset int, v uint64) int {
   149  	offset -= sovEvents(v)
   150  	base := offset
   151  	for v >= 1<<7 {
   152  		dAtA[offset] = uint8(v&0x7f | 0x80)
   153  		v >>= 7
   154  		offset++
   155  	}
   156  	dAtA[offset] = uint8(v)
   157  	return base
   158  }
   159  func (m *EventDataRoundState) Size() (n int) {
   160  	if m == nil {
   161  		return 0
   162  	}
   163  	var l int
   164  	_ = l
   165  	if m.Height != 0 {
   166  		n += 1 + sovEvents(uint64(m.Height))
   167  	}
   168  	if m.Round != 0 {
   169  		n += 1 + sovEvents(uint64(m.Round))
   170  	}
   171  	l = len(m.Step)
   172  	if l > 0 {
   173  		n += 1 + l + sovEvents(uint64(l))
   174  	}
   175  	return n
   176  }
   177  
   178  func sovEvents(x uint64) (n int) {
   179  	return (math_bits.Len64(x|1) + 6) / 7
   180  }
   181  func sozEvents(x uint64) (n int) {
   182  	return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   183  }
   184  func (m *EventDataRoundState) Unmarshal(dAtA []byte) error {
   185  	l := len(dAtA)
   186  	iNdEx := 0
   187  	for iNdEx < l {
   188  		preIndex := iNdEx
   189  		var wire uint64
   190  		for shift := uint(0); ; shift += 7 {
   191  			if shift >= 64 {
   192  				return ErrIntOverflowEvents
   193  			}
   194  			if iNdEx >= l {
   195  				return io.ErrUnexpectedEOF
   196  			}
   197  			b := dAtA[iNdEx]
   198  			iNdEx++
   199  			wire |= uint64(b&0x7F) << shift
   200  			if b < 0x80 {
   201  				break
   202  			}
   203  		}
   204  		fieldNum := int32(wire >> 3)
   205  		wireType := int(wire & 0x7)
   206  		if wireType == 4 {
   207  			return fmt.Errorf("proto: EventDataRoundState: wiretype end group for non-group")
   208  		}
   209  		if fieldNum <= 0 {
   210  			return fmt.Errorf("proto: EventDataRoundState: illegal tag %d (wire type %d)", fieldNum, wire)
   211  		}
   212  		switch fieldNum {
   213  		case 1:
   214  			if wireType != 0 {
   215  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
   216  			}
   217  			m.Height = 0
   218  			for shift := uint(0); ; shift += 7 {
   219  				if shift >= 64 {
   220  					return ErrIntOverflowEvents
   221  				}
   222  				if iNdEx >= l {
   223  					return io.ErrUnexpectedEOF
   224  				}
   225  				b := dAtA[iNdEx]
   226  				iNdEx++
   227  				m.Height |= int64(b&0x7F) << shift
   228  				if b < 0x80 {
   229  					break
   230  				}
   231  			}
   232  		case 2:
   233  			if wireType != 0 {
   234  				return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
   235  			}
   236  			m.Round = 0
   237  			for shift := uint(0); ; shift += 7 {
   238  				if shift >= 64 {
   239  					return ErrIntOverflowEvents
   240  				}
   241  				if iNdEx >= l {
   242  					return io.ErrUnexpectedEOF
   243  				}
   244  				b := dAtA[iNdEx]
   245  				iNdEx++
   246  				m.Round |= int32(b&0x7F) << shift
   247  				if b < 0x80 {
   248  					break
   249  				}
   250  			}
   251  		case 3:
   252  			if wireType != 2 {
   253  				return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType)
   254  			}
   255  			var stringLen uint64
   256  			for shift := uint(0); ; shift += 7 {
   257  				if shift >= 64 {
   258  					return ErrIntOverflowEvents
   259  				}
   260  				if iNdEx >= l {
   261  					return io.ErrUnexpectedEOF
   262  				}
   263  				b := dAtA[iNdEx]
   264  				iNdEx++
   265  				stringLen |= uint64(b&0x7F) << shift
   266  				if b < 0x80 {
   267  					break
   268  				}
   269  			}
   270  			intStringLen := int(stringLen)
   271  			if intStringLen < 0 {
   272  				return ErrInvalidLengthEvents
   273  			}
   274  			postIndex := iNdEx + intStringLen
   275  			if postIndex < 0 {
   276  				return ErrInvalidLengthEvents
   277  			}
   278  			if postIndex > l {
   279  				return io.ErrUnexpectedEOF
   280  			}
   281  			m.Step = string(dAtA[iNdEx:postIndex])
   282  			iNdEx = postIndex
   283  		default:
   284  			iNdEx = preIndex
   285  			skippy, err := skipEvents(dAtA[iNdEx:])
   286  			if err != nil {
   287  				return err
   288  			}
   289  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   290  				return ErrInvalidLengthEvents
   291  			}
   292  			if (iNdEx + skippy) > l {
   293  				return io.ErrUnexpectedEOF
   294  			}
   295  			iNdEx += skippy
   296  		}
   297  	}
   298  
   299  	if iNdEx > l {
   300  		return io.ErrUnexpectedEOF
   301  	}
   302  	return nil
   303  }
   304  func skipEvents(dAtA []byte) (n int, err error) {
   305  	l := len(dAtA)
   306  	iNdEx := 0
   307  	depth := 0
   308  	for iNdEx < l {
   309  		var wire uint64
   310  		for shift := uint(0); ; shift += 7 {
   311  			if shift >= 64 {
   312  				return 0, ErrIntOverflowEvents
   313  			}
   314  			if iNdEx >= l {
   315  				return 0, io.ErrUnexpectedEOF
   316  			}
   317  			b := dAtA[iNdEx]
   318  			iNdEx++
   319  			wire |= (uint64(b) & 0x7F) << shift
   320  			if b < 0x80 {
   321  				break
   322  			}
   323  		}
   324  		wireType := int(wire & 0x7)
   325  		switch wireType {
   326  		case 0:
   327  			for shift := uint(0); ; shift += 7 {
   328  				if shift >= 64 {
   329  					return 0, ErrIntOverflowEvents
   330  				}
   331  				if iNdEx >= l {
   332  					return 0, io.ErrUnexpectedEOF
   333  				}
   334  				iNdEx++
   335  				if dAtA[iNdEx-1] < 0x80 {
   336  					break
   337  				}
   338  			}
   339  		case 1:
   340  			iNdEx += 8
   341  		case 2:
   342  			var length int
   343  			for shift := uint(0); ; shift += 7 {
   344  				if shift >= 64 {
   345  					return 0, ErrIntOverflowEvents
   346  				}
   347  				if iNdEx >= l {
   348  					return 0, io.ErrUnexpectedEOF
   349  				}
   350  				b := dAtA[iNdEx]
   351  				iNdEx++
   352  				length |= (int(b) & 0x7F) << shift
   353  				if b < 0x80 {
   354  					break
   355  				}
   356  			}
   357  			if length < 0 {
   358  				return 0, ErrInvalidLengthEvents
   359  			}
   360  			iNdEx += length
   361  		case 3:
   362  			depth++
   363  		case 4:
   364  			if depth == 0 {
   365  				return 0, ErrUnexpectedEndOfGroupEvents
   366  			}
   367  			depth--
   368  		case 5:
   369  			iNdEx += 4
   370  		default:
   371  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   372  		}
   373  		if iNdEx < 0 {
   374  			return 0, ErrInvalidLengthEvents
   375  		}
   376  		if depth == 0 {
   377  			return iNdEx, nil
   378  		}
   379  	}
   380  	return 0, io.ErrUnexpectedEOF
   381  }
   382  
   383  var (
   384  	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
   385  	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
   386  	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
   387  )