github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/execinfrapb/processors_base.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: sql/execinfrapb/processors_base.proto 3 4 package execinfrapb 5 6 /* 7 Beware! This package name must not be changed, even though it doesn't match 8 the Go package name, because it defines the Protobuf message names which 9 can't be changed without breaking backward compatibility. 10 */ 11 12 import proto "github.com/gogo/protobuf/proto" 13 import fmt "fmt" 14 import math "math" 15 import roachpb "github.com/cockroachdb/cockroach/pkg/roachpb" 16 17 import io "io" 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var _ = proto.Marshal 21 var _ = fmt.Errorf 22 var _ = math.Inf 23 24 // This is a compile-time assertion to ensure that this generated file 25 // is compatible with the proto package it is being compiled against. 26 // A compilation error at this line likely means your copy of the 27 // proto package needs to be updated. 28 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 29 30 // PostProcessSpec describes the processing required to obtain the output 31 // (filtering, projection). It operates on the internal schema of the processor 32 // (see ProcessorSpec). 33 type PostProcessSpec struct { 34 // A filtering expression which references the internal columns of the 35 // processor via ordinal references (@1, @2, etc). 36 Filter Expression `protobuf:"bytes,1,opt,name=filter" json:"filter"` 37 // If true, output_columns describes a projection. Used to differentiate 38 // between an empty projection and no projection. 39 // 40 // Cannot be set at the same time with render expressions. 41 Projection bool `protobuf:"varint,2,opt,name=projection" json:"projection"` 42 // The output columns describe a projection on the internal set of columns; 43 // only the columns in this list will be emitted. 44 // 45 // Can only be set if projection is true. Cannot be set at the same time with 46 // render expressions. 47 OutputColumns []uint32 `protobuf:"varint,3,rep,packed,name=output_columns,json=outputColumns" json:"output_columns,omitempty"` 48 // If set, the output is the result of rendering these expressions. The 49 // expressions reference the internal columns of the processor. 50 // 51 // Cannot be set at the same time with output columns. 52 RenderExprs []Expression `protobuf:"bytes,4,rep,name=render_exprs,json=renderExprs" json:"render_exprs"` 53 // If nonzero, the first <offset> rows will be suppressed. 54 Offset uint64 `protobuf:"varint,5,opt,name=offset" json:"offset"` 55 // If nonzero, the processor will stop after emitting this many rows. The rows 56 // suppressed by <offset>, if any, do not count towards this limit. 57 Limit uint64 `protobuf:"varint,6,opt,name=limit" json:"limit"` 58 } 59 60 func (m *PostProcessSpec) Reset() { *m = PostProcessSpec{} } 61 func (m *PostProcessSpec) String() string { return proto.CompactTextString(m) } 62 func (*PostProcessSpec) ProtoMessage() {} 63 func (*PostProcessSpec) Descriptor() ([]byte, []int) { 64 return fileDescriptor_processors_base_77125fa0b0ed50f0, []int{0} 65 } 66 func (m *PostProcessSpec) XXX_Unmarshal(b []byte) error { 67 return m.Unmarshal(b) 68 } 69 func (m *PostProcessSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 70 b = b[:cap(b)] 71 n, err := m.MarshalTo(b) 72 if err != nil { 73 return nil, err 74 } 75 return b[:n], nil 76 } 77 func (dst *PostProcessSpec) XXX_Merge(src proto.Message) { 78 xxx_messageInfo_PostProcessSpec.Merge(dst, src) 79 } 80 func (m *PostProcessSpec) XXX_Size() int { 81 return m.Size() 82 } 83 func (m *PostProcessSpec) XXX_DiscardUnknown() { 84 xxx_messageInfo_PostProcessSpec.DiscardUnknown(m) 85 } 86 87 var xxx_messageInfo_PostProcessSpec proto.InternalMessageInfo 88 89 type Columns struct { 90 Columns []uint32 `protobuf:"varint,1,rep,packed,name=columns" json:"columns,omitempty"` 91 } 92 93 func (m *Columns) Reset() { *m = Columns{} } 94 func (m *Columns) String() string { return proto.CompactTextString(m) } 95 func (*Columns) ProtoMessage() {} 96 func (*Columns) Descriptor() ([]byte, []int) { 97 return fileDescriptor_processors_base_77125fa0b0ed50f0, []int{1} 98 } 99 func (m *Columns) XXX_Unmarshal(b []byte) error { 100 return m.Unmarshal(b) 101 } 102 func (m *Columns) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 103 b = b[:cap(b)] 104 n, err := m.MarshalTo(b) 105 if err != nil { 106 return nil, err 107 } 108 return b[:n], nil 109 } 110 func (dst *Columns) XXX_Merge(src proto.Message) { 111 xxx_messageInfo_Columns.Merge(dst, src) 112 } 113 func (m *Columns) XXX_Size() int { 114 return m.Size() 115 } 116 func (m *Columns) XXX_DiscardUnknown() { 117 xxx_messageInfo_Columns.DiscardUnknown(m) 118 } 119 120 var xxx_messageInfo_Columns proto.InternalMessageInfo 121 122 type TableReaderSpan struct { 123 // TODO(radu): the dist_sql APIs should be agnostic to how we map tables to 124 // KVs. The span should be described as starting and ending lists of values 125 // for a prefix of the index columns, along with inclusive/exclusive flags. 126 Span roachpb.Span `protobuf:"bytes,1,opt,name=span" json:"span"` 127 } 128 129 func (m *TableReaderSpan) Reset() { *m = TableReaderSpan{} } 130 func (m *TableReaderSpan) String() string { return proto.CompactTextString(m) } 131 func (*TableReaderSpan) ProtoMessage() {} 132 func (*TableReaderSpan) Descriptor() ([]byte, []int) { 133 return fileDescriptor_processors_base_77125fa0b0ed50f0, []int{2} 134 } 135 func (m *TableReaderSpan) XXX_Unmarshal(b []byte) error { 136 return m.Unmarshal(b) 137 } 138 func (m *TableReaderSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 139 b = b[:cap(b)] 140 n, err := m.MarshalTo(b) 141 if err != nil { 142 return nil, err 143 } 144 return b[:n], nil 145 } 146 func (dst *TableReaderSpan) XXX_Merge(src proto.Message) { 147 xxx_messageInfo_TableReaderSpan.Merge(dst, src) 148 } 149 func (m *TableReaderSpan) XXX_Size() int { 150 return m.Size() 151 } 152 func (m *TableReaderSpan) XXX_DiscardUnknown() { 153 xxx_messageInfo_TableReaderSpan.DiscardUnknown(m) 154 } 155 156 var xxx_messageInfo_TableReaderSpan proto.InternalMessageInfo 157 158 func init() { 159 proto.RegisterType((*PostProcessSpec)(nil), "cockroach.sql.distsqlrun.PostProcessSpec") 160 proto.RegisterType((*Columns)(nil), "cockroach.sql.distsqlrun.Columns") 161 proto.RegisterType((*TableReaderSpan)(nil), "cockroach.sql.distsqlrun.TableReaderSpan") 162 } 163 func (m *PostProcessSpec) Marshal() (dAtA []byte, err error) { 164 size := m.Size() 165 dAtA = make([]byte, size) 166 n, err := m.MarshalTo(dAtA) 167 if err != nil { 168 return nil, err 169 } 170 return dAtA[:n], nil 171 } 172 173 func (m *PostProcessSpec) MarshalTo(dAtA []byte) (int, error) { 174 var i int 175 _ = i 176 var l int 177 _ = l 178 dAtA[i] = 0xa 179 i++ 180 i = encodeVarintProcessorsBase(dAtA, i, uint64(m.Filter.Size())) 181 n1, err := m.Filter.MarshalTo(dAtA[i:]) 182 if err != nil { 183 return 0, err 184 } 185 i += n1 186 dAtA[i] = 0x10 187 i++ 188 if m.Projection { 189 dAtA[i] = 1 190 } else { 191 dAtA[i] = 0 192 } 193 i++ 194 if len(m.OutputColumns) > 0 { 195 dAtA3 := make([]byte, len(m.OutputColumns)*10) 196 var j2 int 197 for _, num := range m.OutputColumns { 198 for num >= 1<<7 { 199 dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80) 200 num >>= 7 201 j2++ 202 } 203 dAtA3[j2] = uint8(num) 204 j2++ 205 } 206 dAtA[i] = 0x1a 207 i++ 208 i = encodeVarintProcessorsBase(dAtA, i, uint64(j2)) 209 i += copy(dAtA[i:], dAtA3[:j2]) 210 } 211 if len(m.RenderExprs) > 0 { 212 for _, msg := range m.RenderExprs { 213 dAtA[i] = 0x22 214 i++ 215 i = encodeVarintProcessorsBase(dAtA, i, uint64(msg.Size())) 216 n, err := msg.MarshalTo(dAtA[i:]) 217 if err != nil { 218 return 0, err 219 } 220 i += n 221 } 222 } 223 dAtA[i] = 0x28 224 i++ 225 i = encodeVarintProcessorsBase(dAtA, i, uint64(m.Offset)) 226 dAtA[i] = 0x30 227 i++ 228 i = encodeVarintProcessorsBase(dAtA, i, uint64(m.Limit)) 229 return i, nil 230 } 231 232 func (m *Columns) Marshal() (dAtA []byte, err error) { 233 size := m.Size() 234 dAtA = make([]byte, size) 235 n, err := m.MarshalTo(dAtA) 236 if err != nil { 237 return nil, err 238 } 239 return dAtA[:n], nil 240 } 241 242 func (m *Columns) MarshalTo(dAtA []byte) (int, error) { 243 var i int 244 _ = i 245 var l int 246 _ = l 247 if len(m.Columns) > 0 { 248 dAtA5 := make([]byte, len(m.Columns)*10) 249 var j4 int 250 for _, num := range m.Columns { 251 for num >= 1<<7 { 252 dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) 253 num >>= 7 254 j4++ 255 } 256 dAtA5[j4] = uint8(num) 257 j4++ 258 } 259 dAtA[i] = 0xa 260 i++ 261 i = encodeVarintProcessorsBase(dAtA, i, uint64(j4)) 262 i += copy(dAtA[i:], dAtA5[:j4]) 263 } 264 return i, nil 265 } 266 267 func (m *TableReaderSpan) Marshal() (dAtA []byte, err error) { 268 size := m.Size() 269 dAtA = make([]byte, size) 270 n, err := m.MarshalTo(dAtA) 271 if err != nil { 272 return nil, err 273 } 274 return dAtA[:n], nil 275 } 276 277 func (m *TableReaderSpan) MarshalTo(dAtA []byte) (int, error) { 278 var i int 279 _ = i 280 var l int 281 _ = l 282 dAtA[i] = 0xa 283 i++ 284 i = encodeVarintProcessorsBase(dAtA, i, uint64(m.Span.Size())) 285 n6, err := m.Span.MarshalTo(dAtA[i:]) 286 if err != nil { 287 return 0, err 288 } 289 i += n6 290 return i, nil 291 } 292 293 func encodeVarintProcessorsBase(dAtA []byte, offset int, v uint64) int { 294 for v >= 1<<7 { 295 dAtA[offset] = uint8(v&0x7f | 0x80) 296 v >>= 7 297 offset++ 298 } 299 dAtA[offset] = uint8(v) 300 return offset + 1 301 } 302 func (m *PostProcessSpec) Size() (n int) { 303 if m == nil { 304 return 0 305 } 306 var l int 307 _ = l 308 l = m.Filter.Size() 309 n += 1 + l + sovProcessorsBase(uint64(l)) 310 n += 2 311 if len(m.OutputColumns) > 0 { 312 l = 0 313 for _, e := range m.OutputColumns { 314 l += sovProcessorsBase(uint64(e)) 315 } 316 n += 1 + sovProcessorsBase(uint64(l)) + l 317 } 318 if len(m.RenderExprs) > 0 { 319 for _, e := range m.RenderExprs { 320 l = e.Size() 321 n += 1 + l + sovProcessorsBase(uint64(l)) 322 } 323 } 324 n += 1 + sovProcessorsBase(uint64(m.Offset)) 325 n += 1 + sovProcessorsBase(uint64(m.Limit)) 326 return n 327 } 328 329 func (m *Columns) Size() (n int) { 330 if m == nil { 331 return 0 332 } 333 var l int 334 _ = l 335 if len(m.Columns) > 0 { 336 l = 0 337 for _, e := range m.Columns { 338 l += sovProcessorsBase(uint64(e)) 339 } 340 n += 1 + sovProcessorsBase(uint64(l)) + l 341 } 342 return n 343 } 344 345 func (m *TableReaderSpan) Size() (n int) { 346 if m == nil { 347 return 0 348 } 349 var l int 350 _ = l 351 l = m.Span.Size() 352 n += 1 + l + sovProcessorsBase(uint64(l)) 353 return n 354 } 355 356 func sovProcessorsBase(x uint64) (n int) { 357 for { 358 n++ 359 x >>= 7 360 if x == 0 { 361 break 362 } 363 } 364 return n 365 } 366 func sozProcessorsBase(x uint64) (n int) { 367 return sovProcessorsBase(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 368 } 369 func (m *PostProcessSpec) Unmarshal(dAtA []byte) error { 370 l := len(dAtA) 371 iNdEx := 0 372 for iNdEx < l { 373 preIndex := iNdEx 374 var wire uint64 375 for shift := uint(0); ; shift += 7 { 376 if shift >= 64 { 377 return ErrIntOverflowProcessorsBase 378 } 379 if iNdEx >= l { 380 return io.ErrUnexpectedEOF 381 } 382 b := dAtA[iNdEx] 383 iNdEx++ 384 wire |= (uint64(b) & 0x7F) << shift 385 if b < 0x80 { 386 break 387 } 388 } 389 fieldNum := int32(wire >> 3) 390 wireType := int(wire & 0x7) 391 if wireType == 4 { 392 return fmt.Errorf("proto: PostProcessSpec: wiretype end group for non-group") 393 } 394 if fieldNum <= 0 { 395 return fmt.Errorf("proto: PostProcessSpec: illegal tag %d (wire type %d)", fieldNum, wire) 396 } 397 switch fieldNum { 398 case 1: 399 if wireType != 2 { 400 return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) 401 } 402 var msglen int 403 for shift := uint(0); ; shift += 7 { 404 if shift >= 64 { 405 return ErrIntOverflowProcessorsBase 406 } 407 if iNdEx >= l { 408 return io.ErrUnexpectedEOF 409 } 410 b := dAtA[iNdEx] 411 iNdEx++ 412 msglen |= (int(b) & 0x7F) << shift 413 if b < 0x80 { 414 break 415 } 416 } 417 if msglen < 0 { 418 return ErrInvalidLengthProcessorsBase 419 } 420 postIndex := iNdEx + msglen 421 if postIndex > l { 422 return io.ErrUnexpectedEOF 423 } 424 if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 425 return err 426 } 427 iNdEx = postIndex 428 case 2: 429 if wireType != 0 { 430 return fmt.Errorf("proto: wrong wireType = %d for field Projection", wireType) 431 } 432 var v int 433 for shift := uint(0); ; shift += 7 { 434 if shift >= 64 { 435 return ErrIntOverflowProcessorsBase 436 } 437 if iNdEx >= l { 438 return io.ErrUnexpectedEOF 439 } 440 b := dAtA[iNdEx] 441 iNdEx++ 442 v |= (int(b) & 0x7F) << shift 443 if b < 0x80 { 444 break 445 } 446 } 447 m.Projection = bool(v != 0) 448 case 3: 449 if wireType == 0 { 450 var v uint32 451 for shift := uint(0); ; shift += 7 { 452 if shift >= 64 { 453 return ErrIntOverflowProcessorsBase 454 } 455 if iNdEx >= l { 456 return io.ErrUnexpectedEOF 457 } 458 b := dAtA[iNdEx] 459 iNdEx++ 460 v |= (uint32(b) & 0x7F) << shift 461 if b < 0x80 { 462 break 463 } 464 } 465 m.OutputColumns = append(m.OutputColumns, v) 466 } else if wireType == 2 { 467 var packedLen int 468 for shift := uint(0); ; shift += 7 { 469 if shift >= 64 { 470 return ErrIntOverflowProcessorsBase 471 } 472 if iNdEx >= l { 473 return io.ErrUnexpectedEOF 474 } 475 b := dAtA[iNdEx] 476 iNdEx++ 477 packedLen |= (int(b) & 0x7F) << shift 478 if b < 0x80 { 479 break 480 } 481 } 482 if packedLen < 0 { 483 return ErrInvalidLengthProcessorsBase 484 } 485 postIndex := iNdEx + packedLen 486 if postIndex > l { 487 return io.ErrUnexpectedEOF 488 } 489 var elementCount int 490 var count int 491 for _, integer := range dAtA { 492 if integer < 128 { 493 count++ 494 } 495 } 496 elementCount = count 497 if elementCount != 0 && len(m.OutputColumns) == 0 { 498 m.OutputColumns = make([]uint32, 0, elementCount) 499 } 500 for iNdEx < postIndex { 501 var v uint32 502 for shift := uint(0); ; shift += 7 { 503 if shift >= 64 { 504 return ErrIntOverflowProcessorsBase 505 } 506 if iNdEx >= l { 507 return io.ErrUnexpectedEOF 508 } 509 b := dAtA[iNdEx] 510 iNdEx++ 511 v |= (uint32(b) & 0x7F) << shift 512 if b < 0x80 { 513 break 514 } 515 } 516 m.OutputColumns = append(m.OutputColumns, v) 517 } 518 } else { 519 return fmt.Errorf("proto: wrong wireType = %d for field OutputColumns", wireType) 520 } 521 case 4: 522 if wireType != 2 { 523 return fmt.Errorf("proto: wrong wireType = %d for field RenderExprs", wireType) 524 } 525 var msglen int 526 for shift := uint(0); ; shift += 7 { 527 if shift >= 64 { 528 return ErrIntOverflowProcessorsBase 529 } 530 if iNdEx >= l { 531 return io.ErrUnexpectedEOF 532 } 533 b := dAtA[iNdEx] 534 iNdEx++ 535 msglen |= (int(b) & 0x7F) << shift 536 if b < 0x80 { 537 break 538 } 539 } 540 if msglen < 0 { 541 return ErrInvalidLengthProcessorsBase 542 } 543 postIndex := iNdEx + msglen 544 if postIndex > l { 545 return io.ErrUnexpectedEOF 546 } 547 m.RenderExprs = append(m.RenderExprs, Expression{}) 548 if err := m.RenderExprs[len(m.RenderExprs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 549 return err 550 } 551 iNdEx = postIndex 552 case 5: 553 if wireType != 0 { 554 return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) 555 } 556 m.Offset = 0 557 for shift := uint(0); ; shift += 7 { 558 if shift >= 64 { 559 return ErrIntOverflowProcessorsBase 560 } 561 if iNdEx >= l { 562 return io.ErrUnexpectedEOF 563 } 564 b := dAtA[iNdEx] 565 iNdEx++ 566 m.Offset |= (uint64(b) & 0x7F) << shift 567 if b < 0x80 { 568 break 569 } 570 } 571 case 6: 572 if wireType != 0 { 573 return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) 574 } 575 m.Limit = 0 576 for shift := uint(0); ; shift += 7 { 577 if shift >= 64 { 578 return ErrIntOverflowProcessorsBase 579 } 580 if iNdEx >= l { 581 return io.ErrUnexpectedEOF 582 } 583 b := dAtA[iNdEx] 584 iNdEx++ 585 m.Limit |= (uint64(b) & 0x7F) << shift 586 if b < 0x80 { 587 break 588 } 589 } 590 default: 591 iNdEx = preIndex 592 skippy, err := skipProcessorsBase(dAtA[iNdEx:]) 593 if err != nil { 594 return err 595 } 596 if skippy < 0 { 597 return ErrInvalidLengthProcessorsBase 598 } 599 if (iNdEx + skippy) > l { 600 return io.ErrUnexpectedEOF 601 } 602 iNdEx += skippy 603 } 604 } 605 606 if iNdEx > l { 607 return io.ErrUnexpectedEOF 608 } 609 return nil 610 } 611 func (m *Columns) Unmarshal(dAtA []byte) error { 612 l := len(dAtA) 613 iNdEx := 0 614 for iNdEx < l { 615 preIndex := iNdEx 616 var wire uint64 617 for shift := uint(0); ; shift += 7 { 618 if shift >= 64 { 619 return ErrIntOverflowProcessorsBase 620 } 621 if iNdEx >= l { 622 return io.ErrUnexpectedEOF 623 } 624 b := dAtA[iNdEx] 625 iNdEx++ 626 wire |= (uint64(b) & 0x7F) << shift 627 if b < 0x80 { 628 break 629 } 630 } 631 fieldNum := int32(wire >> 3) 632 wireType := int(wire & 0x7) 633 if wireType == 4 { 634 return fmt.Errorf("proto: Columns: wiretype end group for non-group") 635 } 636 if fieldNum <= 0 { 637 return fmt.Errorf("proto: Columns: illegal tag %d (wire type %d)", fieldNum, wire) 638 } 639 switch fieldNum { 640 case 1: 641 if wireType == 0 { 642 var v uint32 643 for shift := uint(0); ; shift += 7 { 644 if shift >= 64 { 645 return ErrIntOverflowProcessorsBase 646 } 647 if iNdEx >= l { 648 return io.ErrUnexpectedEOF 649 } 650 b := dAtA[iNdEx] 651 iNdEx++ 652 v |= (uint32(b) & 0x7F) << shift 653 if b < 0x80 { 654 break 655 } 656 } 657 m.Columns = append(m.Columns, v) 658 } else if wireType == 2 { 659 var packedLen int 660 for shift := uint(0); ; shift += 7 { 661 if shift >= 64 { 662 return ErrIntOverflowProcessorsBase 663 } 664 if iNdEx >= l { 665 return io.ErrUnexpectedEOF 666 } 667 b := dAtA[iNdEx] 668 iNdEx++ 669 packedLen |= (int(b) & 0x7F) << shift 670 if b < 0x80 { 671 break 672 } 673 } 674 if packedLen < 0 { 675 return ErrInvalidLengthProcessorsBase 676 } 677 postIndex := iNdEx + packedLen 678 if postIndex > l { 679 return io.ErrUnexpectedEOF 680 } 681 var elementCount int 682 var count int 683 for _, integer := range dAtA { 684 if integer < 128 { 685 count++ 686 } 687 } 688 elementCount = count 689 if elementCount != 0 && len(m.Columns) == 0 { 690 m.Columns = make([]uint32, 0, elementCount) 691 } 692 for iNdEx < postIndex { 693 var v uint32 694 for shift := uint(0); ; shift += 7 { 695 if shift >= 64 { 696 return ErrIntOverflowProcessorsBase 697 } 698 if iNdEx >= l { 699 return io.ErrUnexpectedEOF 700 } 701 b := dAtA[iNdEx] 702 iNdEx++ 703 v |= (uint32(b) & 0x7F) << shift 704 if b < 0x80 { 705 break 706 } 707 } 708 m.Columns = append(m.Columns, v) 709 } 710 } else { 711 return fmt.Errorf("proto: wrong wireType = %d for field Columns", wireType) 712 } 713 default: 714 iNdEx = preIndex 715 skippy, err := skipProcessorsBase(dAtA[iNdEx:]) 716 if err != nil { 717 return err 718 } 719 if skippy < 0 { 720 return ErrInvalidLengthProcessorsBase 721 } 722 if (iNdEx + skippy) > l { 723 return io.ErrUnexpectedEOF 724 } 725 iNdEx += skippy 726 } 727 } 728 729 if iNdEx > l { 730 return io.ErrUnexpectedEOF 731 } 732 return nil 733 } 734 func (m *TableReaderSpan) Unmarshal(dAtA []byte) error { 735 l := len(dAtA) 736 iNdEx := 0 737 for iNdEx < l { 738 preIndex := iNdEx 739 var wire uint64 740 for shift := uint(0); ; shift += 7 { 741 if shift >= 64 { 742 return ErrIntOverflowProcessorsBase 743 } 744 if iNdEx >= l { 745 return io.ErrUnexpectedEOF 746 } 747 b := dAtA[iNdEx] 748 iNdEx++ 749 wire |= (uint64(b) & 0x7F) << shift 750 if b < 0x80 { 751 break 752 } 753 } 754 fieldNum := int32(wire >> 3) 755 wireType := int(wire & 0x7) 756 if wireType == 4 { 757 return fmt.Errorf("proto: TableReaderSpan: wiretype end group for non-group") 758 } 759 if fieldNum <= 0 { 760 return fmt.Errorf("proto: TableReaderSpan: illegal tag %d (wire type %d)", fieldNum, wire) 761 } 762 switch fieldNum { 763 case 1: 764 if wireType != 2 { 765 return fmt.Errorf("proto: wrong wireType = %d for field Span", wireType) 766 } 767 var msglen int 768 for shift := uint(0); ; shift += 7 { 769 if shift >= 64 { 770 return ErrIntOverflowProcessorsBase 771 } 772 if iNdEx >= l { 773 return io.ErrUnexpectedEOF 774 } 775 b := dAtA[iNdEx] 776 iNdEx++ 777 msglen |= (int(b) & 0x7F) << shift 778 if b < 0x80 { 779 break 780 } 781 } 782 if msglen < 0 { 783 return ErrInvalidLengthProcessorsBase 784 } 785 postIndex := iNdEx + msglen 786 if postIndex > l { 787 return io.ErrUnexpectedEOF 788 } 789 if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 790 return err 791 } 792 iNdEx = postIndex 793 default: 794 iNdEx = preIndex 795 skippy, err := skipProcessorsBase(dAtA[iNdEx:]) 796 if err != nil { 797 return err 798 } 799 if skippy < 0 { 800 return ErrInvalidLengthProcessorsBase 801 } 802 if (iNdEx + skippy) > l { 803 return io.ErrUnexpectedEOF 804 } 805 iNdEx += skippy 806 } 807 } 808 809 if iNdEx > l { 810 return io.ErrUnexpectedEOF 811 } 812 return nil 813 } 814 func skipProcessorsBase(dAtA []byte) (n int, err error) { 815 l := len(dAtA) 816 iNdEx := 0 817 for iNdEx < l { 818 var wire uint64 819 for shift := uint(0); ; shift += 7 { 820 if shift >= 64 { 821 return 0, ErrIntOverflowProcessorsBase 822 } 823 if iNdEx >= l { 824 return 0, io.ErrUnexpectedEOF 825 } 826 b := dAtA[iNdEx] 827 iNdEx++ 828 wire |= (uint64(b) & 0x7F) << shift 829 if b < 0x80 { 830 break 831 } 832 } 833 wireType := int(wire & 0x7) 834 switch wireType { 835 case 0: 836 for shift := uint(0); ; shift += 7 { 837 if shift >= 64 { 838 return 0, ErrIntOverflowProcessorsBase 839 } 840 if iNdEx >= l { 841 return 0, io.ErrUnexpectedEOF 842 } 843 iNdEx++ 844 if dAtA[iNdEx-1] < 0x80 { 845 break 846 } 847 } 848 return iNdEx, nil 849 case 1: 850 iNdEx += 8 851 return iNdEx, nil 852 case 2: 853 var length int 854 for shift := uint(0); ; shift += 7 { 855 if shift >= 64 { 856 return 0, ErrIntOverflowProcessorsBase 857 } 858 if iNdEx >= l { 859 return 0, io.ErrUnexpectedEOF 860 } 861 b := dAtA[iNdEx] 862 iNdEx++ 863 length |= (int(b) & 0x7F) << shift 864 if b < 0x80 { 865 break 866 } 867 } 868 iNdEx += length 869 if length < 0 { 870 return 0, ErrInvalidLengthProcessorsBase 871 } 872 return iNdEx, nil 873 case 3: 874 for { 875 var innerWire uint64 876 var start int = iNdEx 877 for shift := uint(0); ; shift += 7 { 878 if shift >= 64 { 879 return 0, ErrIntOverflowProcessorsBase 880 } 881 if iNdEx >= l { 882 return 0, io.ErrUnexpectedEOF 883 } 884 b := dAtA[iNdEx] 885 iNdEx++ 886 innerWire |= (uint64(b) & 0x7F) << shift 887 if b < 0x80 { 888 break 889 } 890 } 891 innerWireType := int(innerWire & 0x7) 892 if innerWireType == 4 { 893 break 894 } 895 next, err := skipProcessorsBase(dAtA[start:]) 896 if err != nil { 897 return 0, err 898 } 899 iNdEx = start + next 900 } 901 return iNdEx, nil 902 case 4: 903 return iNdEx, nil 904 case 5: 905 iNdEx += 4 906 return iNdEx, nil 907 default: 908 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 909 } 910 } 911 panic("unreachable") 912 } 913 914 var ( 915 ErrInvalidLengthProcessorsBase = fmt.Errorf("proto: negative length found during unmarshaling") 916 ErrIntOverflowProcessorsBase = fmt.Errorf("proto: integer overflow") 917 ) 918 919 func init() { 920 proto.RegisterFile("sql/execinfrapb/processors_base.proto", fileDescriptor_processors_base_77125fa0b0ed50f0) 921 } 922 923 var fileDescriptor_processors_base_77125fa0b0ed50f0 = []byte{ 924 // 376 bytes of a gzipped FileDescriptorProto 925 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x41, 0xae, 0xd3, 0x30, 926 0x10, 0x86, 0xe3, 0x36, 0xaf, 0x0f, 0xb9, 0x3c, 0x8a, 0x2c, 0x24, 0xa2, 0xa8, 0x32, 0x51, 0x55, 927 0x44, 0x58, 0x90, 0x0a, 0x8e, 0x10, 0x60, 0x89, 0x54, 0xb5, 0xac, 0xd8, 0x54, 0xae, 0xe3, 0x94, 928 0x40, 0x6a, 0xbb, 0x1e, 0x47, 0xea, 0x31, 0xb8, 0x09, 0xd7, 0xe8, 0xb2, 0xcb, 0xae, 0x10, 0xa4, 929 0x17, 0x41, 0xad, 0x13, 0x14, 0x90, 0x58, 0xbc, 0xdd, 0xe8, 0x9b, 0xf9, 0x3d, 0x9f, 0x6c, 0xe3, 930 0xe7, 0xb0, 0x2b, 0x67, 0x62, 0x2f, 0x78, 0x21, 0x73, 0xc3, 0xf4, 0x7a, 0xa6, 0x8d, 0xe2, 0x02, 931 0x40, 0x19, 0x58, 0xad, 0x19, 0x88, 0x44, 0x1b, 0x65, 0x15, 0x09, 0xb8, 0xe2, 0x5f, 0x8d, 0x62, 932 0xfc, 0x73, 0x02, 0xbb, 0x32, 0xc9, 0x0a, 0xb0, 0xb0, 0x2b, 0x4d, 0x25, 0xc3, 0xf0, 0xdf, 0x03, 933 0x32, 0x66, 0x99, 0x4b, 0x85, 0xe4, 0x9a, 0xf8, 0x9b, 0x3d, 0xd9, 0xa8, 0x8d, 0xba, 0x96, 0xb3, 934 0x4b, 0xe5, 0xe8, 0xe4, 0x7b, 0x0f, 0x8f, 0xe6, 0x0a, 0xec, 0xdc, 0x6d, 0x5f, 0x6a, 0xc1, 0x49, 935 0x8a, 0x07, 0x79, 0x51, 0x5a, 0x61, 0x02, 0x14, 0xa1, 0x78, 0xf8, 0x66, 0x9a, 0xfc, 0x4f, 0x22, 936 0x79, 0xbf, 0xd7, 0x46, 0x00, 0x14, 0x4a, 0xa6, 0xfe, 0xe1, 0xc7, 0x33, 0x6f, 0xd1, 0x24, 0xc9, 937 0x14, 0x63, 0x6d, 0xd4, 0x17, 0xc1, 0x6d, 0xa1, 0x64, 0xd0, 0x8b, 0x50, 0xfc, 0xa0, 0x99, 0xe8, 938 0x70, 0xf2, 0x12, 0x3f, 0x52, 0x95, 0xd5, 0x95, 0x5d, 0x71, 0x55, 0x56, 0x5b, 0x09, 0x41, 0x3f, 939 0xea, 0xc7, 0x77, 0x69, 0xef, 0x31, 0x5a, 0xdc, 0xb9, 0xce, 0x5b, 0xd7, 0x20, 0x1f, 0xf0, 0x43, 940 0x23, 0x64, 0x26, 0xcc, 0x4a, 0xec, 0xb5, 0x81, 0xc0, 0x8f, 0xfa, 0xf7, 0x54, 0x1b, 0xba, 0xfc, 941 0x85, 0x03, 0x19, 0xe3, 0x81, 0xca, 0x73, 0x10, 0x36, 0xb8, 0x89, 0x50, 0xec, 0xb7, 0xf6, 0x8e, 942 0x91, 0x10, 0xdf, 0x94, 0xc5, 0xb6, 0xb0, 0xc1, 0xa0, 0xd3, 0x74, 0x68, 0xf2, 0x02, 0xdf, 0xb6, 943 0x4e, 0x63, 0x7c, 0xdb, 0x7a, 0xa3, 0x3f, 0xde, 0x2d, 0x9a, 0xbc, 0xc3, 0xa3, 0x8f, 0x6c, 0x5d, 944 0x8a, 0x85, 0x60, 0x99, 0x30, 0x4b, 0xcd, 0x24, 0x79, 0x8d, 0x7d, 0xd0, 0x4c, 0x36, 0xf7, 0xfa, 945 0xb4, 0x23, 0xdf, 0x3c, 0x58, 0x72, 0x19, 0x6b, 0xf6, 0x5d, 0x47, 0xd3, 0x57, 0x87, 0x5f, 0xd4, 946 0x3b, 0xd4, 0x14, 0x1d, 0x6b, 0x8a, 0x4e, 0x35, 0x45, 0x3f, 0x6b, 0x8a, 0xbe, 0x9d, 0xa9, 0x77, 947 0x3c, 0x53, 0xef, 0x74, 0xa6, 0xde, 0xa7, 0x61, 0xe7, 0x13, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 948 0x6d, 0xe2, 0x8a, 0x1e, 0x57, 0x02, 0x00, 0x00, 949 }