github.com/number571/tendermint@v0.34.11-gost/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), "tendermint.types.EventDataRoundState") 87 } 88 89 func init() { proto.RegisterFile("tendermint/types/events.proto", fileDescriptor_72cfafd446dedf7c) } 90 91 var fileDescriptor_72cfafd446dedf7c = []byte{ 92 // 189 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, 0x40, 0x48, 0xeb, 0x81, 0xa5, 96 0x95, 0xc2, 0xb9, 0x84, 0x5d, 0x41, 0x2a, 0x5c, 0x12, 0x4b, 0x12, 0x83, 0xf2, 0x4b, 0xf3, 0x52, 97 0x82, 0x4b, 0x12, 0x4b, 0x52, 0x85, 0xc4, 0xb8, 0xd8, 0x32, 0x52, 0x33, 0xd3, 0x33, 0x4a, 0x24, 98 0x18, 0x15, 0x18, 0x35, 0x98, 0x83, 0xa0, 0x3c, 0x21, 0x11, 0x2e, 0xd6, 0x22, 0x90, 0x2a, 0x09, 99 0x26, 0x05, 0x46, 0x0d, 0xd6, 0x20, 0x08, 0x47, 0x48, 0x88, 0x8b, 0xa5, 0xb8, 0x24, 0xb5, 0x40, 100 0x82, 0x59, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x76, 0x0a, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 101 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 102 0xc6, 0x63, 0x39, 0x86, 0x28, 0xf3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 103 0x7d, 0x64, 0xe7, 0x22, 0x98, 0x60, 0xc7, 0xea, 0xa3, 0x7b, 0x25, 0x89, 0x0d, 0x2c, 0x6e, 0x0c, 104 0x08, 0x00, 0x00, 0xff, 0xff, 0xc3, 0xe9, 0x14, 0x02, 0xe5, 0x00, 0x00, 0x00, 105 } 106 107 func (m *EventDataRoundState) Marshal() (dAtA []byte, err error) { 108 size := m.Size() 109 dAtA = make([]byte, size) 110 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 111 if err != nil { 112 return nil, err 113 } 114 return dAtA[:n], nil 115 } 116 117 func (m *EventDataRoundState) MarshalTo(dAtA []byte) (int, error) { 118 size := m.Size() 119 return m.MarshalToSizedBuffer(dAtA[:size]) 120 } 121 122 func (m *EventDataRoundState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 123 i := len(dAtA) 124 _ = i 125 var l int 126 _ = l 127 if len(m.Step) > 0 { 128 i -= len(m.Step) 129 copy(dAtA[i:], m.Step) 130 i = encodeVarintEvents(dAtA, i, uint64(len(m.Step))) 131 i-- 132 dAtA[i] = 0x1a 133 } 134 if m.Round != 0 { 135 i = encodeVarintEvents(dAtA, i, uint64(m.Round)) 136 i-- 137 dAtA[i] = 0x10 138 } 139 if m.Height != 0 { 140 i = encodeVarintEvents(dAtA, i, uint64(m.Height)) 141 i-- 142 dAtA[i] = 0x8 143 } 144 return len(dAtA) - i, nil 145 } 146 147 func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { 148 offset -= sovEvents(v) 149 base := offset 150 for v >= 1<<7 { 151 dAtA[offset] = uint8(v&0x7f | 0x80) 152 v >>= 7 153 offset++ 154 } 155 dAtA[offset] = uint8(v) 156 return base 157 } 158 func (m *EventDataRoundState) Size() (n int) { 159 if m == nil { 160 return 0 161 } 162 var l int 163 _ = l 164 if m.Height != 0 { 165 n += 1 + sovEvents(uint64(m.Height)) 166 } 167 if m.Round != 0 { 168 n += 1 + sovEvents(uint64(m.Round)) 169 } 170 l = len(m.Step) 171 if l > 0 { 172 n += 1 + l + sovEvents(uint64(l)) 173 } 174 return n 175 } 176 177 func sovEvents(x uint64) (n int) { 178 return (math_bits.Len64(x|1) + 6) / 7 179 } 180 func sozEvents(x uint64) (n int) { 181 return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 182 } 183 func (m *EventDataRoundState) Unmarshal(dAtA []byte) error { 184 l := len(dAtA) 185 iNdEx := 0 186 for iNdEx < l { 187 preIndex := iNdEx 188 var wire uint64 189 for shift := uint(0); ; shift += 7 { 190 if shift >= 64 { 191 return ErrIntOverflowEvents 192 } 193 if iNdEx >= l { 194 return io.ErrUnexpectedEOF 195 } 196 b := dAtA[iNdEx] 197 iNdEx++ 198 wire |= uint64(b&0x7F) << shift 199 if b < 0x80 { 200 break 201 } 202 } 203 fieldNum := int32(wire >> 3) 204 wireType := int(wire & 0x7) 205 if wireType == 4 { 206 return fmt.Errorf("proto: EventDataRoundState: wiretype end group for non-group") 207 } 208 if fieldNum <= 0 { 209 return fmt.Errorf("proto: EventDataRoundState: illegal tag %d (wire type %d)", fieldNum, wire) 210 } 211 switch fieldNum { 212 case 1: 213 if wireType != 0 { 214 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 215 } 216 m.Height = 0 217 for shift := uint(0); ; shift += 7 { 218 if shift >= 64 { 219 return ErrIntOverflowEvents 220 } 221 if iNdEx >= l { 222 return io.ErrUnexpectedEOF 223 } 224 b := dAtA[iNdEx] 225 iNdEx++ 226 m.Height |= int64(b&0x7F) << shift 227 if b < 0x80 { 228 break 229 } 230 } 231 case 2: 232 if wireType != 0 { 233 return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType) 234 } 235 m.Round = 0 236 for shift := uint(0); ; shift += 7 { 237 if shift >= 64 { 238 return ErrIntOverflowEvents 239 } 240 if iNdEx >= l { 241 return io.ErrUnexpectedEOF 242 } 243 b := dAtA[iNdEx] 244 iNdEx++ 245 m.Round |= int32(b&0x7F) << shift 246 if b < 0x80 { 247 break 248 } 249 } 250 case 3: 251 if wireType != 2 { 252 return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType) 253 } 254 var stringLen uint64 255 for shift := uint(0); ; shift += 7 { 256 if shift >= 64 { 257 return ErrIntOverflowEvents 258 } 259 if iNdEx >= l { 260 return io.ErrUnexpectedEOF 261 } 262 b := dAtA[iNdEx] 263 iNdEx++ 264 stringLen |= uint64(b&0x7F) << shift 265 if b < 0x80 { 266 break 267 } 268 } 269 intStringLen := int(stringLen) 270 if intStringLen < 0 { 271 return ErrInvalidLengthEvents 272 } 273 postIndex := iNdEx + intStringLen 274 if postIndex < 0 { 275 return ErrInvalidLengthEvents 276 } 277 if postIndex > l { 278 return io.ErrUnexpectedEOF 279 } 280 m.Step = string(dAtA[iNdEx:postIndex]) 281 iNdEx = postIndex 282 default: 283 iNdEx = preIndex 284 skippy, err := skipEvents(dAtA[iNdEx:]) 285 if err != nil { 286 return err 287 } 288 if (skippy < 0) || (iNdEx+skippy) < 0 { 289 return ErrInvalidLengthEvents 290 } 291 if (iNdEx + skippy) > l { 292 return io.ErrUnexpectedEOF 293 } 294 iNdEx += skippy 295 } 296 } 297 298 if iNdEx > l { 299 return io.ErrUnexpectedEOF 300 } 301 return nil 302 } 303 func skipEvents(dAtA []byte) (n int, err error) { 304 l := len(dAtA) 305 iNdEx := 0 306 depth := 0 307 for iNdEx < l { 308 var wire uint64 309 for shift := uint(0); ; shift += 7 { 310 if shift >= 64 { 311 return 0, ErrIntOverflowEvents 312 } 313 if iNdEx >= l { 314 return 0, io.ErrUnexpectedEOF 315 } 316 b := dAtA[iNdEx] 317 iNdEx++ 318 wire |= (uint64(b) & 0x7F) << shift 319 if b < 0x80 { 320 break 321 } 322 } 323 wireType := int(wire & 0x7) 324 switch wireType { 325 case 0: 326 for shift := uint(0); ; shift += 7 { 327 if shift >= 64 { 328 return 0, ErrIntOverflowEvents 329 } 330 if iNdEx >= l { 331 return 0, io.ErrUnexpectedEOF 332 } 333 iNdEx++ 334 if dAtA[iNdEx-1] < 0x80 { 335 break 336 } 337 } 338 case 1: 339 iNdEx += 8 340 case 2: 341 var length int 342 for shift := uint(0); ; shift += 7 { 343 if shift >= 64 { 344 return 0, ErrIntOverflowEvents 345 } 346 if iNdEx >= l { 347 return 0, io.ErrUnexpectedEOF 348 } 349 b := dAtA[iNdEx] 350 iNdEx++ 351 length |= (int(b) & 0x7F) << shift 352 if b < 0x80 { 353 break 354 } 355 } 356 if length < 0 { 357 return 0, ErrInvalidLengthEvents 358 } 359 iNdEx += length 360 case 3: 361 depth++ 362 case 4: 363 if depth == 0 { 364 return 0, ErrUnexpectedEndOfGroupEvents 365 } 366 depth-- 367 case 5: 368 iNdEx += 4 369 default: 370 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 371 } 372 if iNdEx < 0 { 373 return 0, ErrInvalidLengthEvents 374 } 375 if depth == 0 { 376 return iNdEx, nil 377 } 378 } 379 return 0, io.ErrUnexpectedEOF 380 } 381 382 var ( 383 ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") 384 ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") 385 ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") 386 )