github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/colexec/execpb/stats.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: sql/colexec/execpb/stats.proto
     3  
     4  package execpb
     5  
     6  import proto "github.com/gogo/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  import time "time"
    11  
    12  import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    13  
    14  import io "io"
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  var _ = time.Kitchen
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    27  
    28  // VectorizedStats represents the stats collected from an operator.
    29  type VectorizedStats struct {
    30  	ID         int32         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
    31  	NumBatches int64         `protobuf:"varint,2,opt,name=num_batches,json=numBatches,proto3" json:"num_batches,omitempty"`
    32  	NumTuples  int64         `protobuf:"varint,3,opt,name=num_tuples,json=numTuples,proto3" json:"num_tuples,omitempty"`
    33  	Time       time.Duration `protobuf:"bytes,4,opt,name=time,proto3,stdduration" json:"time"`
    34  	// stall indicates whether stall time or execution time is being tracked.
    35  	Stall            bool  `protobuf:"varint,5,opt,name=stall,proto3" json:"stall,omitempty"`
    36  	MaxAllocatedMem  int64 `protobuf:"varint,6,opt,name=max_allocated_mem,json=maxAllocatedMem,proto3" json:"max_allocated_mem,omitempty"`
    37  	MaxAllocatedDisk int64 `protobuf:"varint,7,opt,name=max_allocated_disk,json=maxAllocatedDisk,proto3" json:"max_allocated_disk,omitempty"`
    38  }
    39  
    40  func (m *VectorizedStats) Reset()         { *m = VectorizedStats{} }
    41  func (m *VectorizedStats) String() string { return proto.CompactTextString(m) }
    42  func (*VectorizedStats) ProtoMessage()    {}
    43  func (*VectorizedStats) Descriptor() ([]byte, []int) {
    44  	return fileDescriptor_stats_fe732b30c56248d9, []int{0}
    45  }
    46  func (m *VectorizedStats) XXX_Unmarshal(b []byte) error {
    47  	return m.Unmarshal(b)
    48  }
    49  func (m *VectorizedStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    50  	b = b[:cap(b)]
    51  	n, err := m.MarshalTo(b)
    52  	if err != nil {
    53  		return nil, err
    54  	}
    55  	return b[:n], nil
    56  }
    57  func (dst *VectorizedStats) XXX_Merge(src proto.Message) {
    58  	xxx_messageInfo_VectorizedStats.Merge(dst, src)
    59  }
    60  func (m *VectorizedStats) XXX_Size() int {
    61  	return m.Size()
    62  }
    63  func (m *VectorizedStats) XXX_DiscardUnknown() {
    64  	xxx_messageInfo_VectorizedStats.DiscardUnknown(m)
    65  }
    66  
    67  var xxx_messageInfo_VectorizedStats proto.InternalMessageInfo
    68  
    69  func init() {
    70  	proto.RegisterType((*VectorizedStats)(nil), "cockroach.sql.execpb.VectorizedStats")
    71  }
    72  func (m *VectorizedStats) Marshal() (dAtA []byte, err error) {
    73  	size := m.Size()
    74  	dAtA = make([]byte, size)
    75  	n, err := m.MarshalTo(dAtA)
    76  	if err != nil {
    77  		return nil, err
    78  	}
    79  	return dAtA[:n], nil
    80  }
    81  
    82  func (m *VectorizedStats) MarshalTo(dAtA []byte) (int, error) {
    83  	var i int
    84  	_ = i
    85  	var l int
    86  	_ = l
    87  	if m.ID != 0 {
    88  		dAtA[i] = 0x8
    89  		i++
    90  		i = encodeVarintStats(dAtA, i, uint64(m.ID))
    91  	}
    92  	if m.NumBatches != 0 {
    93  		dAtA[i] = 0x10
    94  		i++
    95  		i = encodeVarintStats(dAtA, i, uint64(m.NumBatches))
    96  	}
    97  	if m.NumTuples != 0 {
    98  		dAtA[i] = 0x18
    99  		i++
   100  		i = encodeVarintStats(dAtA, i, uint64(m.NumTuples))
   101  	}
   102  	dAtA[i] = 0x22
   103  	i++
   104  	i = encodeVarintStats(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdDuration(m.Time)))
   105  	n1, err := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Time, dAtA[i:])
   106  	if err != nil {
   107  		return 0, err
   108  	}
   109  	i += n1
   110  	if m.Stall {
   111  		dAtA[i] = 0x28
   112  		i++
   113  		if m.Stall {
   114  			dAtA[i] = 1
   115  		} else {
   116  			dAtA[i] = 0
   117  		}
   118  		i++
   119  	}
   120  	if m.MaxAllocatedMem != 0 {
   121  		dAtA[i] = 0x30
   122  		i++
   123  		i = encodeVarintStats(dAtA, i, uint64(m.MaxAllocatedMem))
   124  	}
   125  	if m.MaxAllocatedDisk != 0 {
   126  		dAtA[i] = 0x38
   127  		i++
   128  		i = encodeVarintStats(dAtA, i, uint64(m.MaxAllocatedDisk))
   129  	}
   130  	return i, nil
   131  }
   132  
   133  func encodeVarintStats(dAtA []byte, offset int, v uint64) int {
   134  	for v >= 1<<7 {
   135  		dAtA[offset] = uint8(v&0x7f | 0x80)
   136  		v >>= 7
   137  		offset++
   138  	}
   139  	dAtA[offset] = uint8(v)
   140  	return offset + 1
   141  }
   142  func (m *VectorizedStats) Size() (n int) {
   143  	if m == nil {
   144  		return 0
   145  	}
   146  	var l int
   147  	_ = l
   148  	if m.ID != 0 {
   149  		n += 1 + sovStats(uint64(m.ID))
   150  	}
   151  	if m.NumBatches != 0 {
   152  		n += 1 + sovStats(uint64(m.NumBatches))
   153  	}
   154  	if m.NumTuples != 0 {
   155  		n += 1 + sovStats(uint64(m.NumTuples))
   156  	}
   157  	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.Time)
   158  	n += 1 + l + sovStats(uint64(l))
   159  	if m.Stall {
   160  		n += 2
   161  	}
   162  	if m.MaxAllocatedMem != 0 {
   163  		n += 1 + sovStats(uint64(m.MaxAllocatedMem))
   164  	}
   165  	if m.MaxAllocatedDisk != 0 {
   166  		n += 1 + sovStats(uint64(m.MaxAllocatedDisk))
   167  	}
   168  	return n
   169  }
   170  
   171  func sovStats(x uint64) (n int) {
   172  	for {
   173  		n++
   174  		x >>= 7
   175  		if x == 0 {
   176  			break
   177  		}
   178  	}
   179  	return n
   180  }
   181  func sozStats(x uint64) (n int) {
   182  	return sovStats(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   183  }
   184  func (m *VectorizedStats) 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 ErrIntOverflowStats
   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: VectorizedStats: wiretype end group for non-group")
   208  		}
   209  		if fieldNum <= 0 {
   210  			return fmt.Errorf("proto: VectorizedStats: 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 ID", wireType)
   216  			}
   217  			m.ID = 0
   218  			for shift := uint(0); ; shift += 7 {
   219  				if shift >= 64 {
   220  					return ErrIntOverflowStats
   221  				}
   222  				if iNdEx >= l {
   223  					return io.ErrUnexpectedEOF
   224  				}
   225  				b := dAtA[iNdEx]
   226  				iNdEx++
   227  				m.ID |= (int32(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 NumBatches", wireType)
   235  			}
   236  			m.NumBatches = 0
   237  			for shift := uint(0); ; shift += 7 {
   238  				if shift >= 64 {
   239  					return ErrIntOverflowStats
   240  				}
   241  				if iNdEx >= l {
   242  					return io.ErrUnexpectedEOF
   243  				}
   244  				b := dAtA[iNdEx]
   245  				iNdEx++
   246  				m.NumBatches |= (int64(b) & 0x7F) << shift
   247  				if b < 0x80 {
   248  					break
   249  				}
   250  			}
   251  		case 3:
   252  			if wireType != 0 {
   253  				return fmt.Errorf("proto: wrong wireType = %d for field NumTuples", wireType)
   254  			}
   255  			m.NumTuples = 0
   256  			for shift := uint(0); ; shift += 7 {
   257  				if shift >= 64 {
   258  					return ErrIntOverflowStats
   259  				}
   260  				if iNdEx >= l {
   261  					return io.ErrUnexpectedEOF
   262  				}
   263  				b := dAtA[iNdEx]
   264  				iNdEx++
   265  				m.NumTuples |= (int64(b) & 0x7F) << shift
   266  				if b < 0x80 {
   267  					break
   268  				}
   269  			}
   270  		case 4:
   271  			if wireType != 2 {
   272  				return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
   273  			}
   274  			var msglen int
   275  			for shift := uint(0); ; shift += 7 {
   276  				if shift >= 64 {
   277  					return ErrIntOverflowStats
   278  				}
   279  				if iNdEx >= l {
   280  					return io.ErrUnexpectedEOF
   281  				}
   282  				b := dAtA[iNdEx]
   283  				iNdEx++
   284  				msglen |= (int(b) & 0x7F) << shift
   285  				if b < 0x80 {
   286  					break
   287  				}
   288  			}
   289  			if msglen < 0 {
   290  				return ErrInvalidLengthStats
   291  			}
   292  			postIndex := iNdEx + msglen
   293  			if postIndex > l {
   294  				return io.ErrUnexpectedEOF
   295  			}
   296  			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
   297  				return err
   298  			}
   299  			iNdEx = postIndex
   300  		case 5:
   301  			if wireType != 0 {
   302  				return fmt.Errorf("proto: wrong wireType = %d for field Stall", wireType)
   303  			}
   304  			var v int
   305  			for shift := uint(0); ; shift += 7 {
   306  				if shift >= 64 {
   307  					return ErrIntOverflowStats
   308  				}
   309  				if iNdEx >= l {
   310  					return io.ErrUnexpectedEOF
   311  				}
   312  				b := dAtA[iNdEx]
   313  				iNdEx++
   314  				v |= (int(b) & 0x7F) << shift
   315  				if b < 0x80 {
   316  					break
   317  				}
   318  			}
   319  			m.Stall = bool(v != 0)
   320  		case 6:
   321  			if wireType != 0 {
   322  				return fmt.Errorf("proto: wrong wireType = %d for field MaxAllocatedMem", wireType)
   323  			}
   324  			m.MaxAllocatedMem = 0
   325  			for shift := uint(0); ; shift += 7 {
   326  				if shift >= 64 {
   327  					return ErrIntOverflowStats
   328  				}
   329  				if iNdEx >= l {
   330  					return io.ErrUnexpectedEOF
   331  				}
   332  				b := dAtA[iNdEx]
   333  				iNdEx++
   334  				m.MaxAllocatedMem |= (int64(b) & 0x7F) << shift
   335  				if b < 0x80 {
   336  					break
   337  				}
   338  			}
   339  		case 7:
   340  			if wireType != 0 {
   341  				return fmt.Errorf("proto: wrong wireType = %d for field MaxAllocatedDisk", wireType)
   342  			}
   343  			m.MaxAllocatedDisk = 0
   344  			for shift := uint(0); ; shift += 7 {
   345  				if shift >= 64 {
   346  					return ErrIntOverflowStats
   347  				}
   348  				if iNdEx >= l {
   349  					return io.ErrUnexpectedEOF
   350  				}
   351  				b := dAtA[iNdEx]
   352  				iNdEx++
   353  				m.MaxAllocatedDisk |= (int64(b) & 0x7F) << shift
   354  				if b < 0x80 {
   355  					break
   356  				}
   357  			}
   358  		default:
   359  			iNdEx = preIndex
   360  			skippy, err := skipStats(dAtA[iNdEx:])
   361  			if err != nil {
   362  				return err
   363  			}
   364  			if skippy < 0 {
   365  				return ErrInvalidLengthStats
   366  			}
   367  			if (iNdEx + skippy) > l {
   368  				return io.ErrUnexpectedEOF
   369  			}
   370  			iNdEx += skippy
   371  		}
   372  	}
   373  
   374  	if iNdEx > l {
   375  		return io.ErrUnexpectedEOF
   376  	}
   377  	return nil
   378  }
   379  func skipStats(dAtA []byte) (n int, err error) {
   380  	l := len(dAtA)
   381  	iNdEx := 0
   382  	for iNdEx < l {
   383  		var wire uint64
   384  		for shift := uint(0); ; shift += 7 {
   385  			if shift >= 64 {
   386  				return 0, ErrIntOverflowStats
   387  			}
   388  			if iNdEx >= l {
   389  				return 0, io.ErrUnexpectedEOF
   390  			}
   391  			b := dAtA[iNdEx]
   392  			iNdEx++
   393  			wire |= (uint64(b) & 0x7F) << shift
   394  			if b < 0x80 {
   395  				break
   396  			}
   397  		}
   398  		wireType := int(wire & 0x7)
   399  		switch wireType {
   400  		case 0:
   401  			for shift := uint(0); ; shift += 7 {
   402  				if shift >= 64 {
   403  					return 0, ErrIntOverflowStats
   404  				}
   405  				if iNdEx >= l {
   406  					return 0, io.ErrUnexpectedEOF
   407  				}
   408  				iNdEx++
   409  				if dAtA[iNdEx-1] < 0x80 {
   410  					break
   411  				}
   412  			}
   413  			return iNdEx, nil
   414  		case 1:
   415  			iNdEx += 8
   416  			return iNdEx, nil
   417  		case 2:
   418  			var length int
   419  			for shift := uint(0); ; shift += 7 {
   420  				if shift >= 64 {
   421  					return 0, ErrIntOverflowStats
   422  				}
   423  				if iNdEx >= l {
   424  					return 0, io.ErrUnexpectedEOF
   425  				}
   426  				b := dAtA[iNdEx]
   427  				iNdEx++
   428  				length |= (int(b) & 0x7F) << shift
   429  				if b < 0x80 {
   430  					break
   431  				}
   432  			}
   433  			iNdEx += length
   434  			if length < 0 {
   435  				return 0, ErrInvalidLengthStats
   436  			}
   437  			return iNdEx, nil
   438  		case 3:
   439  			for {
   440  				var innerWire uint64
   441  				var start int = iNdEx
   442  				for shift := uint(0); ; shift += 7 {
   443  					if shift >= 64 {
   444  						return 0, ErrIntOverflowStats
   445  					}
   446  					if iNdEx >= l {
   447  						return 0, io.ErrUnexpectedEOF
   448  					}
   449  					b := dAtA[iNdEx]
   450  					iNdEx++
   451  					innerWire |= (uint64(b) & 0x7F) << shift
   452  					if b < 0x80 {
   453  						break
   454  					}
   455  				}
   456  				innerWireType := int(innerWire & 0x7)
   457  				if innerWireType == 4 {
   458  					break
   459  				}
   460  				next, err := skipStats(dAtA[start:])
   461  				if err != nil {
   462  					return 0, err
   463  				}
   464  				iNdEx = start + next
   465  			}
   466  			return iNdEx, nil
   467  		case 4:
   468  			return iNdEx, nil
   469  		case 5:
   470  			iNdEx += 4
   471  			return iNdEx, nil
   472  		default:
   473  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   474  		}
   475  	}
   476  	panic("unreachable")
   477  }
   478  
   479  var (
   480  	ErrInvalidLengthStats = fmt.Errorf("proto: negative length found during unmarshaling")
   481  	ErrIntOverflowStats   = fmt.Errorf("proto: integer overflow")
   482  )
   483  
   484  func init() {
   485  	proto.RegisterFile("sql/colexec/execpb/stats.proto", fileDescriptor_stats_fe732b30c56248d9)
   486  }
   487  
   488  var fileDescriptor_stats_fe732b30c56248d9 = []byte{
   489  	// 349 bytes of a gzipped FileDescriptorProto
   490  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x41, 0x6b, 0xdb, 0x30,
   491  	0x18, 0x86, 0x2d, 0x27, 0xf1, 0x32, 0xe5, 0x90, 0x4d, 0x84, 0xe1, 0x05, 0x26, 0x9b, 0x9d, 0xcc,
   492  	0x18, 0x36, 0x6c, 0x87, 0x9d, 0x67, 0x72, 0xd9, 0x61, 0x17, 0xb7, 0xf4, 0xd0, 0x8b, 0x91, 0x65,
   493  	0xd5, 0x31, 0x91, 0xac, 0xc4, 0x92, 0x21, 0xf4, 0x57, 0x94, 0x9e, 0xfa, 0x93, 0x72, 0xcc, 0x31,
   494  	0xa7, 0xb4, 0x75, 0xfe, 0x48, 0xb1, 0xdc, 0x40, 0x7b, 0x11, 0x7a, 0xdf, 0xef, 0x11, 0xdf, 0x83,
   495  	0x20, 0x56, 0x1b, 0x1e, 0x51, 0xc9, 0xd9, 0x96, 0xd1, 0xa8, 0x3b, 0xd6, 0x59, 0xa4, 0x34, 0xd1,
   496  	0x2a, 0x5c, 0xd7, 0x52, 0x4b, 0x34, 0xa3, 0x92, 0xae, 0x6a, 0x49, 0xe8, 0x32, 0x54, 0x1b, 0x1e,
   497  	0xf6, 0xc4, 0x7c, 0x56, 0xc8, 0x42, 0x1a, 0x20, 0xea, 0x6e, 0x3d, 0x3b, 0xc7, 0x85, 0x94, 0x05,
   498  	0x67, 0x91, 0x49, 0x59, 0x73, 0x13, 0xe5, 0x4d, 0x4d, 0x74, 0x29, 0xab, 0x7e, 0xfe, 0xfd, 0xde,
   499  	0x86, 0xd3, 0x2b, 0x46, 0xb5, 0xac, 0xcb, 0x5b, 0x96, 0x5f, 0x74, 0x5b, 0xd0, 0x17, 0x68, 0x97,
   500  	0xb9, 0x0b, 0x7c, 0x10, 0x8c, 0x62, 0xa7, 0x3d, 0x7a, 0xf6, 0xbf, 0x45, 0x62, 0x97, 0x39, 0xf2,
   501  	0xe0, 0xa4, 0x6a, 0x44, 0x9a, 0x11, 0x4d, 0x97, 0x4c, 0xb9, 0xb6, 0x0f, 0x82, 0x41, 0x02, 0xab,
   502  	0x46, 0xc4, 0x7d, 0x83, 0xbe, 0xc1, 0x2e, 0xa5, 0xba, 0x59, 0x73, 0xa6, 0xdc, 0x81, 0x99, 0x7f,
   503  	0xac, 0x1a, 0x71, 0x69, 0x0a, 0xf4, 0x07, 0x0e, 0x75, 0x29, 0x98, 0x3b, 0xf4, 0x41, 0x30, 0xf9,
   504  	0xf5, 0x35, 0xec, 0xd5, 0xc2, 0xb3, 0x5a, 0xb8, 0x78, 0x55, 0x8b, 0xc7, 0xbb, 0xa3, 0x67, 0x3d,
   505  	0x3c, 0x7a, 0x20, 0x31, 0x0f, 0xd0, 0x0c, 0x8e, 0x94, 0x26, 0x9c, 0xbb, 0x23, 0x1f, 0x04, 0xe3,
   506  	0xa4, 0x0f, 0xe8, 0x07, 0xfc, 0x2c, 0xc8, 0x36, 0x25, 0x9c, 0x4b, 0x4a, 0x34, 0xcb, 0x53, 0xc1,
   507  	0x84, 0xeb, 0x98, 0xa5, 0x53, 0x41, 0xb6, 0x7f, 0xcf, 0xfd, 0x7f, 0x26, 0xd0, 0x4f, 0x88, 0xde,
   508  	0xb3, 0x79, 0xa9, 0x56, 0xee, 0x07, 0x03, 0x7f, 0x7a, 0x0b, 0x2f, 0x4a, 0xb5, 0x8a, 0x83, 0xdd,
   509  	0x33, 0xb6, 0x76, 0x2d, 0x06, 0xfb, 0x16, 0x83, 0x43, 0x8b, 0xc1, 0x53, 0x8b, 0xc1, 0xdd, 0x09,
   510  	0x5b, 0xfb, 0x13, 0xb6, 0x0e, 0x27, 0x6c, 0x5d, 0x3b, 0xfd, 0xa7, 0x67, 0x8e, 0x91, 0xff, 0xfd,
   511  	0x12, 0x00, 0x00, 0xff, 0xff, 0x5d, 0xaf, 0xd1, 0x5f, 0xb3, 0x01, 0x00, 0x00,
   512  }