github.com/adoriasoft/tendermint@v0.34.0-dev1.0.20200722151356-96d84601a75a/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 Tx struct { 26 Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` 27 } 28 29 func (m *Tx) Reset() { *m = Tx{} } 30 func (m *Tx) String() string { return proto.CompactTextString(m) } 31 func (*Tx) ProtoMessage() {} 32 func (*Tx) Descriptor() ([]byte, []int) { 33 return fileDescriptor_2af51926fdbcbc05, []int{0} 34 } 35 func (m *Tx) XXX_Unmarshal(b []byte) error { 36 return m.Unmarshal(b) 37 } 38 func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 39 if deterministic { 40 return xxx_messageInfo_Tx.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 *Tx) XXX_Merge(src proto.Message) { 51 xxx_messageInfo_Tx.Merge(m, src) 52 } 53 func (m *Tx) XXX_Size() int { 54 return m.Size() 55 } 56 func (m *Tx) XXX_DiscardUnknown() { 57 xxx_messageInfo_Tx.DiscardUnknown(m) 58 } 59 60 var xxx_messageInfo_Tx proto.InternalMessageInfo 61 62 func (m *Tx) GetTx() []byte { 63 if m != nil { 64 return m.Tx 65 } 66 return nil 67 } 68 69 type Message struct { 70 // Types that are valid to be assigned to Sum: 71 // *Message_Tx 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_Tx struct { 115 Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3,oneof" json:"tx,omitempty"` 116 } 117 118 func (*Message_Tx) 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) GetTx() *Tx { 128 if x, ok := m.GetSum().(*Message_Tx); ok { 129 return x.Tx 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_Tx)(nil), 138 } 139 } 140 141 func init() { 142 proto.RegisterType((*Tx)(nil), "tendermint.mempool.Tx") 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 // 184 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, 0x44, 0xb8, 0x98, 0x42, 0x2a, 0x84, 0xf8, 0xb8, 0x98, 0x4a, 0x2a, 0x24, 0x18, 0x15, 154 0x18, 0x35, 0x78, 0x82, 0x98, 0x4a, 0x2a, 0x94, 0xac, 0xb8, 0xd8, 0x7d, 0x53, 0x8b, 0x8b, 0x13, 155 0xd3, 0x53, 0x85, 0x34, 0xe0, 0x52, 0xdc, 0x46, 0x62, 0x7a, 0x98, 0x26, 0xe8, 0x85, 0x54, 0x78, 156 0x30, 0x80, 0x34, 0x39, 0xb1, 0x72, 0x31, 0x17, 0x97, 0xe6, 0x3a, 0x05, 0x9f, 0x78, 0x24, 0xc7, 157 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 158 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x65, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 159 0x7e, 0xae, 0x7e, 0x62, 0x4a, 0x7e, 0x51, 0x66, 0x62, 0x71, 0x7e, 0x5a, 0x89, 0x3e, 0x92, 0xab, 160 0xc1, 0xee, 0xd4, 0xc7, 0xf4, 0x46, 0x12, 0x1b, 0x58, 0xc6, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 161 0x1f, 0x22, 0x3d, 0xfe, 0xe3, 0x00, 0x00, 0x00, 162 } 163 164 func (m *Tx) 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 *Tx) MarshalTo(dAtA []byte) (int, error) { 175 size := m.Size() 176 return m.MarshalToSizedBuffer(dAtA[:size]) 177 } 178 179 func (m *Tx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 180 i := len(dAtA) 181 _ = i 182 var l int 183 _ = l 184 if len(m.Tx) > 0 { 185 i -= len(m.Tx) 186 copy(dAtA[i:], m.Tx) 187 i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx))) 188 i-- 189 dAtA[i] = 0xa 190 } 191 return len(dAtA) - i, nil 192 } 193 194 func (m *Message) Marshal() (dAtA []byte, err error) { 195 size := m.Size() 196 dAtA = make([]byte, size) 197 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 198 if err != nil { 199 return nil, err 200 } 201 return dAtA[:n], nil 202 } 203 204 func (m *Message) MarshalTo(dAtA []byte) (int, error) { 205 size := m.Size() 206 return m.MarshalToSizedBuffer(dAtA[:size]) 207 } 208 209 func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) { 210 i := len(dAtA) 211 _ = i 212 var l int 213 _ = l 214 if m.Sum != nil { 215 { 216 size := m.Sum.Size() 217 i -= size 218 if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil { 219 return 0, err 220 } 221 } 222 } 223 return len(dAtA) - i, nil 224 } 225 226 func (m *Message_Tx) MarshalTo(dAtA []byte) (int, error) { 227 size := m.Size() 228 return m.MarshalToSizedBuffer(dAtA[:size]) 229 } 230 231 func (m *Message_Tx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 232 i := len(dAtA) 233 if m.Tx != nil { 234 { 235 size, err := m.Tx.MarshalToSizedBuffer(dAtA[:i]) 236 if err != nil { 237 return 0, err 238 } 239 i -= size 240 i = encodeVarintTypes(dAtA, i, uint64(size)) 241 } 242 i-- 243 dAtA[i] = 0xa 244 } 245 return len(dAtA) - i, nil 246 } 247 func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { 248 offset -= sovTypes(v) 249 base := offset 250 for v >= 1<<7 { 251 dAtA[offset] = uint8(v&0x7f | 0x80) 252 v >>= 7 253 offset++ 254 } 255 dAtA[offset] = uint8(v) 256 return base 257 } 258 func (m *Tx) Size() (n int) { 259 if m == nil { 260 return 0 261 } 262 var l int 263 _ = l 264 l = len(m.Tx) 265 if l > 0 { 266 n += 1 + l + sovTypes(uint64(l)) 267 } 268 return n 269 } 270 271 func (m *Message) Size() (n int) { 272 if m == nil { 273 return 0 274 } 275 var l int 276 _ = l 277 if m.Sum != nil { 278 n += m.Sum.Size() 279 } 280 return n 281 } 282 283 func (m *Message_Tx) Size() (n int) { 284 if m == nil { 285 return 0 286 } 287 var l int 288 _ = l 289 if m.Tx != nil { 290 l = m.Tx.Size() 291 n += 1 + l + sovTypes(uint64(l)) 292 } 293 return n 294 } 295 296 func sovTypes(x uint64) (n int) { 297 return (math_bits.Len64(x|1) + 6) / 7 298 } 299 func sozTypes(x uint64) (n int) { 300 return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 301 } 302 func (m *Tx) Unmarshal(dAtA []byte) error { 303 l := len(dAtA) 304 iNdEx := 0 305 for iNdEx < l { 306 preIndex := iNdEx 307 var wire uint64 308 for shift := uint(0); ; shift += 7 { 309 if shift >= 64 { 310 return ErrIntOverflowTypes 311 } 312 if iNdEx >= l { 313 return io.ErrUnexpectedEOF 314 } 315 b := dAtA[iNdEx] 316 iNdEx++ 317 wire |= uint64(b&0x7F) << shift 318 if b < 0x80 { 319 break 320 } 321 } 322 fieldNum := int32(wire >> 3) 323 wireType := int(wire & 0x7) 324 if wireType == 4 { 325 return fmt.Errorf("proto: Tx: wiretype end group for non-group") 326 } 327 if fieldNum <= 0 { 328 return fmt.Errorf("proto: Tx: illegal tag %d (wire type %d)", fieldNum, wire) 329 } 330 switch fieldNum { 331 case 1: 332 if wireType != 2 { 333 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 334 } 335 var byteLen int 336 for shift := uint(0); ; shift += 7 { 337 if shift >= 64 { 338 return ErrIntOverflowTypes 339 } 340 if iNdEx >= l { 341 return io.ErrUnexpectedEOF 342 } 343 b := dAtA[iNdEx] 344 iNdEx++ 345 byteLen |= int(b&0x7F) << shift 346 if b < 0x80 { 347 break 348 } 349 } 350 if byteLen < 0 { 351 return ErrInvalidLengthTypes 352 } 353 postIndex := iNdEx + byteLen 354 if postIndex < 0 { 355 return ErrInvalidLengthTypes 356 } 357 if postIndex > l { 358 return io.ErrUnexpectedEOF 359 } 360 m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...) 361 if m.Tx == nil { 362 m.Tx = []byte{} 363 } 364 iNdEx = postIndex 365 default: 366 iNdEx = preIndex 367 skippy, err := skipTypes(dAtA[iNdEx:]) 368 if err != nil { 369 return err 370 } 371 if skippy < 0 { 372 return ErrInvalidLengthTypes 373 } 374 if (iNdEx + skippy) < 0 { 375 return ErrInvalidLengthTypes 376 } 377 if (iNdEx + skippy) > l { 378 return io.ErrUnexpectedEOF 379 } 380 iNdEx += skippy 381 } 382 } 383 384 if iNdEx > l { 385 return io.ErrUnexpectedEOF 386 } 387 return nil 388 } 389 func (m *Message) Unmarshal(dAtA []byte) error { 390 l := len(dAtA) 391 iNdEx := 0 392 for iNdEx < l { 393 preIndex := iNdEx 394 var wire uint64 395 for shift := uint(0); ; shift += 7 { 396 if shift >= 64 { 397 return ErrIntOverflowTypes 398 } 399 if iNdEx >= l { 400 return io.ErrUnexpectedEOF 401 } 402 b := dAtA[iNdEx] 403 iNdEx++ 404 wire |= uint64(b&0x7F) << shift 405 if b < 0x80 { 406 break 407 } 408 } 409 fieldNum := int32(wire >> 3) 410 wireType := int(wire & 0x7) 411 if wireType == 4 { 412 return fmt.Errorf("proto: Message: wiretype end group for non-group") 413 } 414 if fieldNum <= 0 { 415 return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire) 416 } 417 switch fieldNum { 418 case 1: 419 if wireType != 2 { 420 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 421 } 422 var msglen int 423 for shift := uint(0); ; shift += 7 { 424 if shift >= 64 { 425 return ErrIntOverflowTypes 426 } 427 if iNdEx >= l { 428 return io.ErrUnexpectedEOF 429 } 430 b := dAtA[iNdEx] 431 iNdEx++ 432 msglen |= int(b&0x7F) << shift 433 if b < 0x80 { 434 break 435 } 436 } 437 if msglen < 0 { 438 return ErrInvalidLengthTypes 439 } 440 postIndex := iNdEx + msglen 441 if postIndex < 0 { 442 return ErrInvalidLengthTypes 443 } 444 if postIndex > l { 445 return io.ErrUnexpectedEOF 446 } 447 v := &Tx{} 448 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 449 return err 450 } 451 m.Sum = &Message_Tx{v} 452 iNdEx = postIndex 453 default: 454 iNdEx = preIndex 455 skippy, err := skipTypes(dAtA[iNdEx:]) 456 if err != nil { 457 return err 458 } 459 if skippy < 0 { 460 return ErrInvalidLengthTypes 461 } 462 if (iNdEx + skippy) < 0 { 463 return ErrInvalidLengthTypes 464 } 465 if (iNdEx + skippy) > l { 466 return io.ErrUnexpectedEOF 467 } 468 iNdEx += skippy 469 } 470 } 471 472 if iNdEx > l { 473 return io.ErrUnexpectedEOF 474 } 475 return nil 476 } 477 func skipTypes(dAtA []byte) (n int, err error) { 478 l := len(dAtA) 479 iNdEx := 0 480 depth := 0 481 for iNdEx < l { 482 var wire uint64 483 for shift := uint(0); ; shift += 7 { 484 if shift >= 64 { 485 return 0, ErrIntOverflowTypes 486 } 487 if iNdEx >= l { 488 return 0, io.ErrUnexpectedEOF 489 } 490 b := dAtA[iNdEx] 491 iNdEx++ 492 wire |= (uint64(b) & 0x7F) << shift 493 if b < 0x80 { 494 break 495 } 496 } 497 wireType := int(wire & 0x7) 498 switch wireType { 499 case 0: 500 for shift := uint(0); ; shift += 7 { 501 if shift >= 64 { 502 return 0, ErrIntOverflowTypes 503 } 504 if iNdEx >= l { 505 return 0, io.ErrUnexpectedEOF 506 } 507 iNdEx++ 508 if dAtA[iNdEx-1] < 0x80 { 509 break 510 } 511 } 512 case 1: 513 iNdEx += 8 514 case 2: 515 var length int 516 for shift := uint(0); ; shift += 7 { 517 if shift >= 64 { 518 return 0, ErrIntOverflowTypes 519 } 520 if iNdEx >= l { 521 return 0, io.ErrUnexpectedEOF 522 } 523 b := dAtA[iNdEx] 524 iNdEx++ 525 length |= (int(b) & 0x7F) << shift 526 if b < 0x80 { 527 break 528 } 529 } 530 if length < 0 { 531 return 0, ErrInvalidLengthTypes 532 } 533 iNdEx += length 534 case 3: 535 depth++ 536 case 4: 537 if depth == 0 { 538 return 0, ErrUnexpectedEndOfGroupTypes 539 } 540 depth-- 541 case 5: 542 iNdEx += 4 543 default: 544 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 545 } 546 if iNdEx < 0 { 547 return 0, ErrInvalidLengthTypes 548 } 549 if depth == 0 { 550 return iNdEx, nil 551 } 552 } 553 return 0, io.ErrUnexpectedEOF 554 } 555 556 var ( 557 ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") 558 ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") 559 ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") 560 )