github.com/adoriasoft/tendermint@v0.34.0-dev1.0.20200722151356-96d84601a75a/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 // 198 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 0xfd, 0xc4, 0x94, 0xfc, 0xa2, 0xcc, 0xc4, 0xe2, 0xfc, 0xb4, 0x12, 0x7d, 0x24, 0x97, 0x83, 0x1d, 104 0xab, 0x8f, 0xee, 0x95, 0x24, 0x36, 0xb0, 0xb8, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x94, 105 0x64, 0xd3, 0xe5, 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 { 290 return ErrInvalidLengthEvents 291 } 292 if (iNdEx + skippy) < 0 { 293 return ErrInvalidLengthEvents 294 } 295 if (iNdEx + skippy) > l { 296 return io.ErrUnexpectedEOF 297 } 298 iNdEx += skippy 299 } 300 } 301 302 if iNdEx > l { 303 return io.ErrUnexpectedEOF 304 } 305 return nil 306 } 307 func skipEvents(dAtA []byte) (n int, err error) { 308 l := len(dAtA) 309 iNdEx := 0 310 depth := 0 311 for iNdEx < l { 312 var wire uint64 313 for shift := uint(0); ; shift += 7 { 314 if shift >= 64 { 315 return 0, ErrIntOverflowEvents 316 } 317 if iNdEx >= l { 318 return 0, io.ErrUnexpectedEOF 319 } 320 b := dAtA[iNdEx] 321 iNdEx++ 322 wire |= (uint64(b) & 0x7F) << shift 323 if b < 0x80 { 324 break 325 } 326 } 327 wireType := int(wire & 0x7) 328 switch wireType { 329 case 0: 330 for shift := uint(0); ; shift += 7 { 331 if shift >= 64 { 332 return 0, ErrIntOverflowEvents 333 } 334 if iNdEx >= l { 335 return 0, io.ErrUnexpectedEOF 336 } 337 iNdEx++ 338 if dAtA[iNdEx-1] < 0x80 { 339 break 340 } 341 } 342 case 1: 343 iNdEx += 8 344 case 2: 345 var length int 346 for shift := uint(0); ; shift += 7 { 347 if shift >= 64 { 348 return 0, ErrIntOverflowEvents 349 } 350 if iNdEx >= l { 351 return 0, io.ErrUnexpectedEOF 352 } 353 b := dAtA[iNdEx] 354 iNdEx++ 355 length |= (int(b) & 0x7F) << shift 356 if b < 0x80 { 357 break 358 } 359 } 360 if length < 0 { 361 return 0, ErrInvalidLengthEvents 362 } 363 iNdEx += length 364 case 3: 365 depth++ 366 case 4: 367 if depth == 0 { 368 return 0, ErrUnexpectedEndOfGroupEvents 369 } 370 depth-- 371 case 5: 372 iNdEx += 4 373 default: 374 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 375 } 376 if iNdEx < 0 { 377 return 0, ErrInvalidLengthEvents 378 } 379 if depth == 0 { 380 return iNdEx, nil 381 } 382 } 383 return 0, io.ErrUnexpectedEOF 384 } 385 386 var ( 387 ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") 388 ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") 389 ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") 390 )