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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: sql/flowinfra/stats.proto
     3  
     4  package flowinfra
     5  
     6  import proto "github.com/gogo/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  import io "io"
    11  
    12  // Reference imports to suppress errors if they are not otherwise used.
    13  var _ = proto.Marshal
    14  var _ = fmt.Errorf
    15  var _ = math.Inf
    16  
    17  // This is a compile-time assertion to ensure that this generated file
    18  // is compatible with the proto package it is being compiled against.
    19  // A compilation error at this line likely means your copy of the
    20  // proto package needs to be updated.
    21  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    22  
    23  // OutboxStats are the stats collected by an Outbox.
    24  type OutboxStats struct {
    25  	BytesSent int64 `protobuf:"varint,1,opt,name=bytes_sent,json=bytesSent,proto3" json:"bytes_sent,omitempty"`
    26  }
    27  
    28  func (m *OutboxStats) Reset()         { *m = OutboxStats{} }
    29  func (m *OutboxStats) String() string { return proto.CompactTextString(m) }
    30  func (*OutboxStats) ProtoMessage()    {}
    31  func (*OutboxStats) Descriptor() ([]byte, []int) {
    32  	return fileDescriptor_stats_62f3f6a554998eb4, []int{0}
    33  }
    34  func (m *OutboxStats) XXX_Unmarshal(b []byte) error {
    35  	return m.Unmarshal(b)
    36  }
    37  func (m *OutboxStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    38  	b = b[:cap(b)]
    39  	n, err := m.MarshalTo(b)
    40  	if err != nil {
    41  		return nil, err
    42  	}
    43  	return b[:n], nil
    44  }
    45  func (dst *OutboxStats) XXX_Merge(src proto.Message) {
    46  	xxx_messageInfo_OutboxStats.Merge(dst, src)
    47  }
    48  func (m *OutboxStats) XXX_Size() int {
    49  	return m.Size()
    50  }
    51  func (m *OutboxStats) XXX_DiscardUnknown() {
    52  	xxx_messageInfo_OutboxStats.DiscardUnknown(m)
    53  }
    54  
    55  var xxx_messageInfo_OutboxStats proto.InternalMessageInfo
    56  
    57  func init() {
    58  	proto.RegisterType((*OutboxStats)(nil), "cockroach.sql.distsqlrun.OutboxStats")
    59  }
    60  func (m *OutboxStats) Marshal() (dAtA []byte, err error) {
    61  	size := m.Size()
    62  	dAtA = make([]byte, size)
    63  	n, err := m.MarshalTo(dAtA)
    64  	if err != nil {
    65  		return nil, err
    66  	}
    67  	return dAtA[:n], nil
    68  }
    69  
    70  func (m *OutboxStats) MarshalTo(dAtA []byte) (int, error) {
    71  	var i int
    72  	_ = i
    73  	var l int
    74  	_ = l
    75  	if m.BytesSent != 0 {
    76  		dAtA[i] = 0x8
    77  		i++
    78  		i = encodeVarintStats(dAtA, i, uint64(m.BytesSent))
    79  	}
    80  	return i, nil
    81  }
    82  
    83  func encodeVarintStats(dAtA []byte, offset int, v uint64) int {
    84  	for v >= 1<<7 {
    85  		dAtA[offset] = uint8(v&0x7f | 0x80)
    86  		v >>= 7
    87  		offset++
    88  	}
    89  	dAtA[offset] = uint8(v)
    90  	return offset + 1
    91  }
    92  func (m *OutboxStats) Size() (n int) {
    93  	if m == nil {
    94  		return 0
    95  	}
    96  	var l int
    97  	_ = l
    98  	if m.BytesSent != 0 {
    99  		n += 1 + sovStats(uint64(m.BytesSent))
   100  	}
   101  	return n
   102  }
   103  
   104  func sovStats(x uint64) (n int) {
   105  	for {
   106  		n++
   107  		x >>= 7
   108  		if x == 0 {
   109  			break
   110  		}
   111  	}
   112  	return n
   113  }
   114  func sozStats(x uint64) (n int) {
   115  	return sovStats(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   116  }
   117  func (m *OutboxStats) Unmarshal(dAtA []byte) error {
   118  	l := len(dAtA)
   119  	iNdEx := 0
   120  	for iNdEx < l {
   121  		preIndex := iNdEx
   122  		var wire uint64
   123  		for shift := uint(0); ; shift += 7 {
   124  			if shift >= 64 {
   125  				return ErrIntOverflowStats
   126  			}
   127  			if iNdEx >= l {
   128  				return io.ErrUnexpectedEOF
   129  			}
   130  			b := dAtA[iNdEx]
   131  			iNdEx++
   132  			wire |= (uint64(b) & 0x7F) << shift
   133  			if b < 0x80 {
   134  				break
   135  			}
   136  		}
   137  		fieldNum := int32(wire >> 3)
   138  		wireType := int(wire & 0x7)
   139  		if wireType == 4 {
   140  			return fmt.Errorf("proto: OutboxStats: wiretype end group for non-group")
   141  		}
   142  		if fieldNum <= 0 {
   143  			return fmt.Errorf("proto: OutboxStats: illegal tag %d (wire type %d)", fieldNum, wire)
   144  		}
   145  		switch fieldNum {
   146  		case 1:
   147  			if wireType != 0 {
   148  				return fmt.Errorf("proto: wrong wireType = %d for field BytesSent", wireType)
   149  			}
   150  			m.BytesSent = 0
   151  			for shift := uint(0); ; shift += 7 {
   152  				if shift >= 64 {
   153  					return ErrIntOverflowStats
   154  				}
   155  				if iNdEx >= l {
   156  					return io.ErrUnexpectedEOF
   157  				}
   158  				b := dAtA[iNdEx]
   159  				iNdEx++
   160  				m.BytesSent |= (int64(b) & 0x7F) << shift
   161  				if b < 0x80 {
   162  					break
   163  				}
   164  			}
   165  		default:
   166  			iNdEx = preIndex
   167  			skippy, err := skipStats(dAtA[iNdEx:])
   168  			if err != nil {
   169  				return err
   170  			}
   171  			if skippy < 0 {
   172  				return ErrInvalidLengthStats
   173  			}
   174  			if (iNdEx + skippy) > l {
   175  				return io.ErrUnexpectedEOF
   176  			}
   177  			iNdEx += skippy
   178  		}
   179  	}
   180  
   181  	if iNdEx > l {
   182  		return io.ErrUnexpectedEOF
   183  	}
   184  	return nil
   185  }
   186  func skipStats(dAtA []byte) (n int, err error) {
   187  	l := len(dAtA)
   188  	iNdEx := 0
   189  	for iNdEx < l {
   190  		var wire uint64
   191  		for shift := uint(0); ; shift += 7 {
   192  			if shift >= 64 {
   193  				return 0, ErrIntOverflowStats
   194  			}
   195  			if iNdEx >= l {
   196  				return 0, io.ErrUnexpectedEOF
   197  			}
   198  			b := dAtA[iNdEx]
   199  			iNdEx++
   200  			wire |= (uint64(b) & 0x7F) << shift
   201  			if b < 0x80 {
   202  				break
   203  			}
   204  		}
   205  		wireType := int(wire & 0x7)
   206  		switch wireType {
   207  		case 0:
   208  			for shift := uint(0); ; shift += 7 {
   209  				if shift >= 64 {
   210  					return 0, ErrIntOverflowStats
   211  				}
   212  				if iNdEx >= l {
   213  					return 0, io.ErrUnexpectedEOF
   214  				}
   215  				iNdEx++
   216  				if dAtA[iNdEx-1] < 0x80 {
   217  					break
   218  				}
   219  			}
   220  			return iNdEx, nil
   221  		case 1:
   222  			iNdEx += 8
   223  			return iNdEx, nil
   224  		case 2:
   225  			var length int
   226  			for shift := uint(0); ; shift += 7 {
   227  				if shift >= 64 {
   228  					return 0, ErrIntOverflowStats
   229  				}
   230  				if iNdEx >= l {
   231  					return 0, io.ErrUnexpectedEOF
   232  				}
   233  				b := dAtA[iNdEx]
   234  				iNdEx++
   235  				length |= (int(b) & 0x7F) << shift
   236  				if b < 0x80 {
   237  					break
   238  				}
   239  			}
   240  			iNdEx += length
   241  			if length < 0 {
   242  				return 0, ErrInvalidLengthStats
   243  			}
   244  			return iNdEx, nil
   245  		case 3:
   246  			for {
   247  				var innerWire uint64
   248  				var start int = iNdEx
   249  				for shift := uint(0); ; shift += 7 {
   250  					if shift >= 64 {
   251  						return 0, ErrIntOverflowStats
   252  					}
   253  					if iNdEx >= l {
   254  						return 0, io.ErrUnexpectedEOF
   255  					}
   256  					b := dAtA[iNdEx]
   257  					iNdEx++
   258  					innerWire |= (uint64(b) & 0x7F) << shift
   259  					if b < 0x80 {
   260  						break
   261  					}
   262  				}
   263  				innerWireType := int(innerWire & 0x7)
   264  				if innerWireType == 4 {
   265  					break
   266  				}
   267  				next, err := skipStats(dAtA[start:])
   268  				if err != nil {
   269  					return 0, err
   270  				}
   271  				iNdEx = start + next
   272  			}
   273  			return iNdEx, nil
   274  		case 4:
   275  			return iNdEx, nil
   276  		case 5:
   277  			iNdEx += 4
   278  			return iNdEx, nil
   279  		default:
   280  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   281  		}
   282  	}
   283  	panic("unreachable")
   284  }
   285  
   286  var (
   287  	ErrInvalidLengthStats = fmt.Errorf("proto: negative length found during unmarshaling")
   288  	ErrIntOverflowStats   = fmt.Errorf("proto: integer overflow")
   289  )
   290  
   291  func init() { proto.RegisterFile("sql/flowinfra/stats.proto", fileDescriptor_stats_62f3f6a554998eb4) }
   292  
   293  var fileDescriptor_stats_62f3f6a554998eb4 = []byte{
   294  	// 176 bytes of a gzipped FileDescriptorProto
   295  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0x2e, 0xcc, 0xd1,
   296  	0x4f, 0xcb, 0xc9, 0x2f, 0xcf, 0xcc, 0x4b, 0x2b, 0x4a, 0xd4, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0xd6,
   297  	0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x48, 0xce, 0x4f, 0xce, 0x2e, 0xca, 0x4f, 0x4c, 0xce,
   298  	0xd0, 0x2b, 0x2e, 0xcc, 0xd1, 0x4b, 0xc9, 0x2c, 0x2e, 0x29, 0x2e, 0xcc, 0x29, 0x2a, 0xcd, 0x93,
   299  	0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x2b, 0xd2, 0x07, 0xb1, 0x20, 0xea, 0x95, 0x74, 0xb8, 0xb8,
   300  	0xfd, 0x4b, 0x4b, 0x92, 0xf2, 0x2b, 0x82, 0x41, 0x86, 0x08, 0xc9, 0x72, 0x71, 0x25, 0x55, 0x96,
   301  	0xa4, 0x16, 0xc7, 0x17, 0xa7, 0xe6, 0x95, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x30, 0x07, 0x71, 0x82,
   302  	0x45, 0x82, 0x53, 0xf3, 0x4a, 0x9c, 0xb4, 0x4f, 0x3c, 0x94, 0x63, 0x38, 0xf1, 0x48, 0x8e, 0xf1,
   303  	0xc2, 0x23, 0x39, 0xc6, 0x1b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e,
   304  	0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x38, 0xe1, 0xce, 0x4a, 0x62, 0x03,
   305  	0xdb, 0x60, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x4b, 0xb0, 0x9c, 0xab, 0xae, 0x00, 0x00, 0x00,
   306  }