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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: sql/execinfrapb/processors_changefeeds.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 jobspb "github.com/cockroachdb/cockroach/pkg/jobs/jobspb"
    16  import roachpb "github.com/cockroachdb/cockroach/pkg/roachpb"
    17  import hlc "github.com/cockroachdb/cockroach/pkg/util/hlc"
    18  
    19  import io "io"
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = fmt.Errorf
    24  var _ = math.Inf
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    31  
    32  // ChangeAggregatorSpec is the specification for a processor that watches for
    33  // changes in a set of spans. Each span may cross multiple ranges.
    34  type ChangeAggregatorSpec struct {
    35  	Watches []ChangeAggregatorSpec_Watch `protobuf:"bytes,1,rep,name=watches" json:"watches"`
    36  	// Feed is the specification for this changefeed.
    37  	Feed jobspb.ChangefeedDetails `protobuf:"bytes,2,opt,name=feed" json:"feed"`
    38  }
    39  
    40  func (m *ChangeAggregatorSpec) Reset()         { *m = ChangeAggregatorSpec{} }
    41  func (m *ChangeAggregatorSpec) String() string { return proto.CompactTextString(m) }
    42  func (*ChangeAggregatorSpec) ProtoMessage()    {}
    43  func (*ChangeAggregatorSpec) Descriptor() ([]byte, []int) {
    44  	return fileDescriptor_processors_changefeeds_e29e553eb9bf2f3d, []int{0}
    45  }
    46  func (m *ChangeAggregatorSpec) XXX_Unmarshal(b []byte) error {
    47  	return m.Unmarshal(b)
    48  }
    49  func (m *ChangeAggregatorSpec) 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 *ChangeAggregatorSpec) XXX_Merge(src proto.Message) {
    58  	xxx_messageInfo_ChangeAggregatorSpec.Merge(dst, src)
    59  }
    60  func (m *ChangeAggregatorSpec) XXX_Size() int {
    61  	return m.Size()
    62  }
    63  func (m *ChangeAggregatorSpec) XXX_DiscardUnknown() {
    64  	xxx_messageInfo_ChangeAggregatorSpec.DiscardUnknown(m)
    65  }
    66  
    67  var xxx_messageInfo_ChangeAggregatorSpec proto.InternalMessageInfo
    68  
    69  type ChangeAggregatorSpec_Watch struct {
    70  	InitialResolved hlc.Timestamp `protobuf:"bytes,1,opt,name=initial_resolved,json=initialResolved" json:"initial_resolved"`
    71  	Span            roachpb.Span  `protobuf:"bytes,2,opt,name=span" json:"span"`
    72  }
    73  
    74  func (m *ChangeAggregatorSpec_Watch) Reset()         { *m = ChangeAggregatorSpec_Watch{} }
    75  func (m *ChangeAggregatorSpec_Watch) String() string { return proto.CompactTextString(m) }
    76  func (*ChangeAggregatorSpec_Watch) ProtoMessage()    {}
    77  func (*ChangeAggregatorSpec_Watch) Descriptor() ([]byte, []int) {
    78  	return fileDescriptor_processors_changefeeds_e29e553eb9bf2f3d, []int{0, 0}
    79  }
    80  func (m *ChangeAggregatorSpec_Watch) XXX_Unmarshal(b []byte) error {
    81  	return m.Unmarshal(b)
    82  }
    83  func (m *ChangeAggregatorSpec_Watch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    84  	b = b[:cap(b)]
    85  	n, err := m.MarshalTo(b)
    86  	if err != nil {
    87  		return nil, err
    88  	}
    89  	return b[:n], nil
    90  }
    91  func (dst *ChangeAggregatorSpec_Watch) XXX_Merge(src proto.Message) {
    92  	xxx_messageInfo_ChangeAggregatorSpec_Watch.Merge(dst, src)
    93  }
    94  func (m *ChangeAggregatorSpec_Watch) XXX_Size() int {
    95  	return m.Size()
    96  }
    97  func (m *ChangeAggregatorSpec_Watch) XXX_DiscardUnknown() {
    98  	xxx_messageInfo_ChangeAggregatorSpec_Watch.DiscardUnknown(m)
    99  }
   100  
   101  var xxx_messageInfo_ChangeAggregatorSpec_Watch proto.InternalMessageInfo
   102  
   103  // ChangeFrontierSpec is the specification for a processor that receives
   104  // span-level resolved timestamps, track them, and emits the changefeed-level
   105  // resolved timestamp whenever it changes.
   106  type ChangeFrontierSpec struct {
   107  	// TrackedSpans is the entire span set being watched. Once all these spans
   108  	// have been resolved at a certain timestamp, then it's safe to resolve the
   109  	// changefeed at that timestamp.
   110  	TrackedSpans []roachpb.Span `protobuf:"bytes,1,rep,name=tracked_spans,json=trackedSpans" json:"tracked_spans"`
   111  	// Feed is the specification for this changefeed.
   112  	Feed jobspb.ChangefeedDetails `protobuf:"bytes,2,opt,name=feed" json:"feed"`
   113  	// JobID is the id of this changefeed in the system jobs.
   114  	JobID int64 `protobuf:"varint,3,opt,name=job_id,json=jobId" json:"job_id"`
   115  }
   116  
   117  func (m *ChangeFrontierSpec) Reset()         { *m = ChangeFrontierSpec{} }
   118  func (m *ChangeFrontierSpec) String() string { return proto.CompactTextString(m) }
   119  func (*ChangeFrontierSpec) ProtoMessage()    {}
   120  func (*ChangeFrontierSpec) Descriptor() ([]byte, []int) {
   121  	return fileDescriptor_processors_changefeeds_e29e553eb9bf2f3d, []int{1}
   122  }
   123  func (m *ChangeFrontierSpec) XXX_Unmarshal(b []byte) error {
   124  	return m.Unmarshal(b)
   125  }
   126  func (m *ChangeFrontierSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   127  	b = b[:cap(b)]
   128  	n, err := m.MarshalTo(b)
   129  	if err != nil {
   130  		return nil, err
   131  	}
   132  	return b[:n], nil
   133  }
   134  func (dst *ChangeFrontierSpec) XXX_Merge(src proto.Message) {
   135  	xxx_messageInfo_ChangeFrontierSpec.Merge(dst, src)
   136  }
   137  func (m *ChangeFrontierSpec) XXX_Size() int {
   138  	return m.Size()
   139  }
   140  func (m *ChangeFrontierSpec) XXX_DiscardUnknown() {
   141  	xxx_messageInfo_ChangeFrontierSpec.DiscardUnknown(m)
   142  }
   143  
   144  var xxx_messageInfo_ChangeFrontierSpec proto.InternalMessageInfo
   145  
   146  func init() {
   147  	proto.RegisterType((*ChangeAggregatorSpec)(nil), "cockroach.sql.distsqlrun.ChangeAggregatorSpec")
   148  	proto.RegisterType((*ChangeAggregatorSpec_Watch)(nil), "cockroach.sql.distsqlrun.ChangeAggregatorSpec.Watch")
   149  	proto.RegisterType((*ChangeFrontierSpec)(nil), "cockroach.sql.distsqlrun.ChangeFrontierSpec")
   150  }
   151  func (m *ChangeAggregatorSpec) Marshal() (dAtA []byte, err error) {
   152  	size := m.Size()
   153  	dAtA = make([]byte, size)
   154  	n, err := m.MarshalTo(dAtA)
   155  	if err != nil {
   156  		return nil, err
   157  	}
   158  	return dAtA[:n], nil
   159  }
   160  
   161  func (m *ChangeAggregatorSpec) MarshalTo(dAtA []byte) (int, error) {
   162  	var i int
   163  	_ = i
   164  	var l int
   165  	_ = l
   166  	if len(m.Watches) > 0 {
   167  		for _, msg := range m.Watches {
   168  			dAtA[i] = 0xa
   169  			i++
   170  			i = encodeVarintProcessorsChangefeeds(dAtA, i, uint64(msg.Size()))
   171  			n, err := msg.MarshalTo(dAtA[i:])
   172  			if err != nil {
   173  				return 0, err
   174  			}
   175  			i += n
   176  		}
   177  	}
   178  	dAtA[i] = 0x12
   179  	i++
   180  	i = encodeVarintProcessorsChangefeeds(dAtA, i, uint64(m.Feed.Size()))
   181  	n1, err := m.Feed.MarshalTo(dAtA[i:])
   182  	if err != nil {
   183  		return 0, err
   184  	}
   185  	i += n1
   186  	return i, nil
   187  }
   188  
   189  func (m *ChangeAggregatorSpec_Watch) Marshal() (dAtA []byte, err error) {
   190  	size := m.Size()
   191  	dAtA = make([]byte, size)
   192  	n, err := m.MarshalTo(dAtA)
   193  	if err != nil {
   194  		return nil, err
   195  	}
   196  	return dAtA[:n], nil
   197  }
   198  
   199  func (m *ChangeAggregatorSpec_Watch) MarshalTo(dAtA []byte) (int, error) {
   200  	var i int
   201  	_ = i
   202  	var l int
   203  	_ = l
   204  	dAtA[i] = 0xa
   205  	i++
   206  	i = encodeVarintProcessorsChangefeeds(dAtA, i, uint64(m.InitialResolved.Size()))
   207  	n2, err := m.InitialResolved.MarshalTo(dAtA[i:])
   208  	if err != nil {
   209  		return 0, err
   210  	}
   211  	i += n2
   212  	dAtA[i] = 0x12
   213  	i++
   214  	i = encodeVarintProcessorsChangefeeds(dAtA, i, uint64(m.Span.Size()))
   215  	n3, err := m.Span.MarshalTo(dAtA[i:])
   216  	if err != nil {
   217  		return 0, err
   218  	}
   219  	i += n3
   220  	return i, nil
   221  }
   222  
   223  func (m *ChangeFrontierSpec) Marshal() (dAtA []byte, err error) {
   224  	size := m.Size()
   225  	dAtA = make([]byte, size)
   226  	n, err := m.MarshalTo(dAtA)
   227  	if err != nil {
   228  		return nil, err
   229  	}
   230  	return dAtA[:n], nil
   231  }
   232  
   233  func (m *ChangeFrontierSpec) MarshalTo(dAtA []byte) (int, error) {
   234  	var i int
   235  	_ = i
   236  	var l int
   237  	_ = l
   238  	if len(m.TrackedSpans) > 0 {
   239  		for _, msg := range m.TrackedSpans {
   240  			dAtA[i] = 0xa
   241  			i++
   242  			i = encodeVarintProcessorsChangefeeds(dAtA, i, uint64(msg.Size()))
   243  			n, err := msg.MarshalTo(dAtA[i:])
   244  			if err != nil {
   245  				return 0, err
   246  			}
   247  			i += n
   248  		}
   249  	}
   250  	dAtA[i] = 0x12
   251  	i++
   252  	i = encodeVarintProcessorsChangefeeds(dAtA, i, uint64(m.Feed.Size()))
   253  	n4, err := m.Feed.MarshalTo(dAtA[i:])
   254  	if err != nil {
   255  		return 0, err
   256  	}
   257  	i += n4
   258  	dAtA[i] = 0x18
   259  	i++
   260  	i = encodeVarintProcessorsChangefeeds(dAtA, i, uint64(m.JobID))
   261  	return i, nil
   262  }
   263  
   264  func encodeVarintProcessorsChangefeeds(dAtA []byte, offset int, v uint64) int {
   265  	for v >= 1<<7 {
   266  		dAtA[offset] = uint8(v&0x7f | 0x80)
   267  		v >>= 7
   268  		offset++
   269  	}
   270  	dAtA[offset] = uint8(v)
   271  	return offset + 1
   272  }
   273  func (m *ChangeAggregatorSpec) Size() (n int) {
   274  	if m == nil {
   275  		return 0
   276  	}
   277  	var l int
   278  	_ = l
   279  	if len(m.Watches) > 0 {
   280  		for _, e := range m.Watches {
   281  			l = e.Size()
   282  			n += 1 + l + sovProcessorsChangefeeds(uint64(l))
   283  		}
   284  	}
   285  	l = m.Feed.Size()
   286  	n += 1 + l + sovProcessorsChangefeeds(uint64(l))
   287  	return n
   288  }
   289  
   290  func (m *ChangeAggregatorSpec_Watch) Size() (n int) {
   291  	if m == nil {
   292  		return 0
   293  	}
   294  	var l int
   295  	_ = l
   296  	l = m.InitialResolved.Size()
   297  	n += 1 + l + sovProcessorsChangefeeds(uint64(l))
   298  	l = m.Span.Size()
   299  	n += 1 + l + sovProcessorsChangefeeds(uint64(l))
   300  	return n
   301  }
   302  
   303  func (m *ChangeFrontierSpec) Size() (n int) {
   304  	if m == nil {
   305  		return 0
   306  	}
   307  	var l int
   308  	_ = l
   309  	if len(m.TrackedSpans) > 0 {
   310  		for _, e := range m.TrackedSpans {
   311  			l = e.Size()
   312  			n += 1 + l + sovProcessorsChangefeeds(uint64(l))
   313  		}
   314  	}
   315  	l = m.Feed.Size()
   316  	n += 1 + l + sovProcessorsChangefeeds(uint64(l))
   317  	n += 1 + sovProcessorsChangefeeds(uint64(m.JobID))
   318  	return n
   319  }
   320  
   321  func sovProcessorsChangefeeds(x uint64) (n int) {
   322  	for {
   323  		n++
   324  		x >>= 7
   325  		if x == 0 {
   326  			break
   327  		}
   328  	}
   329  	return n
   330  }
   331  func sozProcessorsChangefeeds(x uint64) (n int) {
   332  	return sovProcessorsChangefeeds(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   333  }
   334  func (m *ChangeAggregatorSpec) Unmarshal(dAtA []byte) error {
   335  	l := len(dAtA)
   336  	iNdEx := 0
   337  	for iNdEx < l {
   338  		preIndex := iNdEx
   339  		var wire uint64
   340  		for shift := uint(0); ; shift += 7 {
   341  			if shift >= 64 {
   342  				return ErrIntOverflowProcessorsChangefeeds
   343  			}
   344  			if iNdEx >= l {
   345  				return io.ErrUnexpectedEOF
   346  			}
   347  			b := dAtA[iNdEx]
   348  			iNdEx++
   349  			wire |= (uint64(b) & 0x7F) << shift
   350  			if b < 0x80 {
   351  				break
   352  			}
   353  		}
   354  		fieldNum := int32(wire >> 3)
   355  		wireType := int(wire & 0x7)
   356  		if wireType == 4 {
   357  			return fmt.Errorf("proto: ChangeAggregatorSpec: wiretype end group for non-group")
   358  		}
   359  		if fieldNum <= 0 {
   360  			return fmt.Errorf("proto: ChangeAggregatorSpec: illegal tag %d (wire type %d)", fieldNum, wire)
   361  		}
   362  		switch fieldNum {
   363  		case 1:
   364  			if wireType != 2 {
   365  				return fmt.Errorf("proto: wrong wireType = %d for field Watches", wireType)
   366  			}
   367  			var msglen int
   368  			for shift := uint(0); ; shift += 7 {
   369  				if shift >= 64 {
   370  					return ErrIntOverflowProcessorsChangefeeds
   371  				}
   372  				if iNdEx >= l {
   373  					return io.ErrUnexpectedEOF
   374  				}
   375  				b := dAtA[iNdEx]
   376  				iNdEx++
   377  				msglen |= (int(b) & 0x7F) << shift
   378  				if b < 0x80 {
   379  					break
   380  				}
   381  			}
   382  			if msglen < 0 {
   383  				return ErrInvalidLengthProcessorsChangefeeds
   384  			}
   385  			postIndex := iNdEx + msglen
   386  			if postIndex > l {
   387  				return io.ErrUnexpectedEOF
   388  			}
   389  			m.Watches = append(m.Watches, ChangeAggregatorSpec_Watch{})
   390  			if err := m.Watches[len(m.Watches)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   391  				return err
   392  			}
   393  			iNdEx = postIndex
   394  		case 2:
   395  			if wireType != 2 {
   396  				return fmt.Errorf("proto: wrong wireType = %d for field Feed", wireType)
   397  			}
   398  			var msglen int
   399  			for shift := uint(0); ; shift += 7 {
   400  				if shift >= 64 {
   401  					return ErrIntOverflowProcessorsChangefeeds
   402  				}
   403  				if iNdEx >= l {
   404  					return io.ErrUnexpectedEOF
   405  				}
   406  				b := dAtA[iNdEx]
   407  				iNdEx++
   408  				msglen |= (int(b) & 0x7F) << shift
   409  				if b < 0x80 {
   410  					break
   411  				}
   412  			}
   413  			if msglen < 0 {
   414  				return ErrInvalidLengthProcessorsChangefeeds
   415  			}
   416  			postIndex := iNdEx + msglen
   417  			if postIndex > l {
   418  				return io.ErrUnexpectedEOF
   419  			}
   420  			if err := m.Feed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   421  				return err
   422  			}
   423  			iNdEx = postIndex
   424  		default:
   425  			iNdEx = preIndex
   426  			skippy, err := skipProcessorsChangefeeds(dAtA[iNdEx:])
   427  			if err != nil {
   428  				return err
   429  			}
   430  			if skippy < 0 {
   431  				return ErrInvalidLengthProcessorsChangefeeds
   432  			}
   433  			if (iNdEx + skippy) > l {
   434  				return io.ErrUnexpectedEOF
   435  			}
   436  			iNdEx += skippy
   437  		}
   438  	}
   439  
   440  	if iNdEx > l {
   441  		return io.ErrUnexpectedEOF
   442  	}
   443  	return nil
   444  }
   445  func (m *ChangeAggregatorSpec_Watch) Unmarshal(dAtA []byte) error {
   446  	l := len(dAtA)
   447  	iNdEx := 0
   448  	for iNdEx < l {
   449  		preIndex := iNdEx
   450  		var wire uint64
   451  		for shift := uint(0); ; shift += 7 {
   452  			if shift >= 64 {
   453  				return ErrIntOverflowProcessorsChangefeeds
   454  			}
   455  			if iNdEx >= l {
   456  				return io.ErrUnexpectedEOF
   457  			}
   458  			b := dAtA[iNdEx]
   459  			iNdEx++
   460  			wire |= (uint64(b) & 0x7F) << shift
   461  			if b < 0x80 {
   462  				break
   463  			}
   464  		}
   465  		fieldNum := int32(wire >> 3)
   466  		wireType := int(wire & 0x7)
   467  		if wireType == 4 {
   468  			return fmt.Errorf("proto: Watch: wiretype end group for non-group")
   469  		}
   470  		if fieldNum <= 0 {
   471  			return fmt.Errorf("proto: Watch: illegal tag %d (wire type %d)", fieldNum, wire)
   472  		}
   473  		switch fieldNum {
   474  		case 1:
   475  			if wireType != 2 {
   476  				return fmt.Errorf("proto: wrong wireType = %d for field InitialResolved", wireType)
   477  			}
   478  			var msglen int
   479  			for shift := uint(0); ; shift += 7 {
   480  				if shift >= 64 {
   481  					return ErrIntOverflowProcessorsChangefeeds
   482  				}
   483  				if iNdEx >= l {
   484  					return io.ErrUnexpectedEOF
   485  				}
   486  				b := dAtA[iNdEx]
   487  				iNdEx++
   488  				msglen |= (int(b) & 0x7F) << shift
   489  				if b < 0x80 {
   490  					break
   491  				}
   492  			}
   493  			if msglen < 0 {
   494  				return ErrInvalidLengthProcessorsChangefeeds
   495  			}
   496  			postIndex := iNdEx + msglen
   497  			if postIndex > l {
   498  				return io.ErrUnexpectedEOF
   499  			}
   500  			if err := m.InitialResolved.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   501  				return err
   502  			}
   503  			iNdEx = postIndex
   504  		case 2:
   505  			if wireType != 2 {
   506  				return fmt.Errorf("proto: wrong wireType = %d for field Span", wireType)
   507  			}
   508  			var msglen int
   509  			for shift := uint(0); ; shift += 7 {
   510  				if shift >= 64 {
   511  					return ErrIntOverflowProcessorsChangefeeds
   512  				}
   513  				if iNdEx >= l {
   514  					return io.ErrUnexpectedEOF
   515  				}
   516  				b := dAtA[iNdEx]
   517  				iNdEx++
   518  				msglen |= (int(b) & 0x7F) << shift
   519  				if b < 0x80 {
   520  					break
   521  				}
   522  			}
   523  			if msglen < 0 {
   524  				return ErrInvalidLengthProcessorsChangefeeds
   525  			}
   526  			postIndex := iNdEx + msglen
   527  			if postIndex > l {
   528  				return io.ErrUnexpectedEOF
   529  			}
   530  			if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   531  				return err
   532  			}
   533  			iNdEx = postIndex
   534  		default:
   535  			iNdEx = preIndex
   536  			skippy, err := skipProcessorsChangefeeds(dAtA[iNdEx:])
   537  			if err != nil {
   538  				return err
   539  			}
   540  			if skippy < 0 {
   541  				return ErrInvalidLengthProcessorsChangefeeds
   542  			}
   543  			if (iNdEx + skippy) > l {
   544  				return io.ErrUnexpectedEOF
   545  			}
   546  			iNdEx += skippy
   547  		}
   548  	}
   549  
   550  	if iNdEx > l {
   551  		return io.ErrUnexpectedEOF
   552  	}
   553  	return nil
   554  }
   555  func (m *ChangeFrontierSpec) Unmarshal(dAtA []byte) error {
   556  	l := len(dAtA)
   557  	iNdEx := 0
   558  	for iNdEx < l {
   559  		preIndex := iNdEx
   560  		var wire uint64
   561  		for shift := uint(0); ; shift += 7 {
   562  			if shift >= 64 {
   563  				return ErrIntOverflowProcessorsChangefeeds
   564  			}
   565  			if iNdEx >= l {
   566  				return io.ErrUnexpectedEOF
   567  			}
   568  			b := dAtA[iNdEx]
   569  			iNdEx++
   570  			wire |= (uint64(b) & 0x7F) << shift
   571  			if b < 0x80 {
   572  				break
   573  			}
   574  		}
   575  		fieldNum := int32(wire >> 3)
   576  		wireType := int(wire & 0x7)
   577  		if wireType == 4 {
   578  			return fmt.Errorf("proto: ChangeFrontierSpec: wiretype end group for non-group")
   579  		}
   580  		if fieldNum <= 0 {
   581  			return fmt.Errorf("proto: ChangeFrontierSpec: illegal tag %d (wire type %d)", fieldNum, wire)
   582  		}
   583  		switch fieldNum {
   584  		case 1:
   585  			if wireType != 2 {
   586  				return fmt.Errorf("proto: wrong wireType = %d for field TrackedSpans", wireType)
   587  			}
   588  			var msglen int
   589  			for shift := uint(0); ; shift += 7 {
   590  				if shift >= 64 {
   591  					return ErrIntOverflowProcessorsChangefeeds
   592  				}
   593  				if iNdEx >= l {
   594  					return io.ErrUnexpectedEOF
   595  				}
   596  				b := dAtA[iNdEx]
   597  				iNdEx++
   598  				msglen |= (int(b) & 0x7F) << shift
   599  				if b < 0x80 {
   600  					break
   601  				}
   602  			}
   603  			if msglen < 0 {
   604  				return ErrInvalidLengthProcessorsChangefeeds
   605  			}
   606  			postIndex := iNdEx + msglen
   607  			if postIndex > l {
   608  				return io.ErrUnexpectedEOF
   609  			}
   610  			m.TrackedSpans = append(m.TrackedSpans, roachpb.Span{})
   611  			if err := m.TrackedSpans[len(m.TrackedSpans)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   612  				return err
   613  			}
   614  			iNdEx = postIndex
   615  		case 2:
   616  			if wireType != 2 {
   617  				return fmt.Errorf("proto: wrong wireType = %d for field Feed", wireType)
   618  			}
   619  			var msglen int
   620  			for shift := uint(0); ; shift += 7 {
   621  				if shift >= 64 {
   622  					return ErrIntOverflowProcessorsChangefeeds
   623  				}
   624  				if iNdEx >= l {
   625  					return io.ErrUnexpectedEOF
   626  				}
   627  				b := dAtA[iNdEx]
   628  				iNdEx++
   629  				msglen |= (int(b) & 0x7F) << shift
   630  				if b < 0x80 {
   631  					break
   632  				}
   633  			}
   634  			if msglen < 0 {
   635  				return ErrInvalidLengthProcessorsChangefeeds
   636  			}
   637  			postIndex := iNdEx + msglen
   638  			if postIndex > l {
   639  				return io.ErrUnexpectedEOF
   640  			}
   641  			if err := m.Feed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   642  				return err
   643  			}
   644  			iNdEx = postIndex
   645  		case 3:
   646  			if wireType != 0 {
   647  				return fmt.Errorf("proto: wrong wireType = %d for field JobID", wireType)
   648  			}
   649  			m.JobID = 0
   650  			for shift := uint(0); ; shift += 7 {
   651  				if shift >= 64 {
   652  					return ErrIntOverflowProcessorsChangefeeds
   653  				}
   654  				if iNdEx >= l {
   655  					return io.ErrUnexpectedEOF
   656  				}
   657  				b := dAtA[iNdEx]
   658  				iNdEx++
   659  				m.JobID |= (int64(b) & 0x7F) << shift
   660  				if b < 0x80 {
   661  					break
   662  				}
   663  			}
   664  		default:
   665  			iNdEx = preIndex
   666  			skippy, err := skipProcessorsChangefeeds(dAtA[iNdEx:])
   667  			if err != nil {
   668  				return err
   669  			}
   670  			if skippy < 0 {
   671  				return ErrInvalidLengthProcessorsChangefeeds
   672  			}
   673  			if (iNdEx + skippy) > l {
   674  				return io.ErrUnexpectedEOF
   675  			}
   676  			iNdEx += skippy
   677  		}
   678  	}
   679  
   680  	if iNdEx > l {
   681  		return io.ErrUnexpectedEOF
   682  	}
   683  	return nil
   684  }
   685  func skipProcessorsChangefeeds(dAtA []byte) (n int, err error) {
   686  	l := len(dAtA)
   687  	iNdEx := 0
   688  	for iNdEx < l {
   689  		var wire uint64
   690  		for shift := uint(0); ; shift += 7 {
   691  			if shift >= 64 {
   692  				return 0, ErrIntOverflowProcessorsChangefeeds
   693  			}
   694  			if iNdEx >= l {
   695  				return 0, io.ErrUnexpectedEOF
   696  			}
   697  			b := dAtA[iNdEx]
   698  			iNdEx++
   699  			wire |= (uint64(b) & 0x7F) << shift
   700  			if b < 0x80 {
   701  				break
   702  			}
   703  		}
   704  		wireType := int(wire & 0x7)
   705  		switch wireType {
   706  		case 0:
   707  			for shift := uint(0); ; shift += 7 {
   708  				if shift >= 64 {
   709  					return 0, ErrIntOverflowProcessorsChangefeeds
   710  				}
   711  				if iNdEx >= l {
   712  					return 0, io.ErrUnexpectedEOF
   713  				}
   714  				iNdEx++
   715  				if dAtA[iNdEx-1] < 0x80 {
   716  					break
   717  				}
   718  			}
   719  			return iNdEx, nil
   720  		case 1:
   721  			iNdEx += 8
   722  			return iNdEx, nil
   723  		case 2:
   724  			var length int
   725  			for shift := uint(0); ; shift += 7 {
   726  				if shift >= 64 {
   727  					return 0, ErrIntOverflowProcessorsChangefeeds
   728  				}
   729  				if iNdEx >= l {
   730  					return 0, io.ErrUnexpectedEOF
   731  				}
   732  				b := dAtA[iNdEx]
   733  				iNdEx++
   734  				length |= (int(b) & 0x7F) << shift
   735  				if b < 0x80 {
   736  					break
   737  				}
   738  			}
   739  			iNdEx += length
   740  			if length < 0 {
   741  				return 0, ErrInvalidLengthProcessorsChangefeeds
   742  			}
   743  			return iNdEx, nil
   744  		case 3:
   745  			for {
   746  				var innerWire uint64
   747  				var start int = iNdEx
   748  				for shift := uint(0); ; shift += 7 {
   749  					if shift >= 64 {
   750  						return 0, ErrIntOverflowProcessorsChangefeeds
   751  					}
   752  					if iNdEx >= l {
   753  						return 0, io.ErrUnexpectedEOF
   754  					}
   755  					b := dAtA[iNdEx]
   756  					iNdEx++
   757  					innerWire |= (uint64(b) & 0x7F) << shift
   758  					if b < 0x80 {
   759  						break
   760  					}
   761  				}
   762  				innerWireType := int(innerWire & 0x7)
   763  				if innerWireType == 4 {
   764  					break
   765  				}
   766  				next, err := skipProcessorsChangefeeds(dAtA[start:])
   767  				if err != nil {
   768  					return 0, err
   769  				}
   770  				iNdEx = start + next
   771  			}
   772  			return iNdEx, nil
   773  		case 4:
   774  			return iNdEx, nil
   775  		case 5:
   776  			iNdEx += 4
   777  			return iNdEx, nil
   778  		default:
   779  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   780  		}
   781  	}
   782  	panic("unreachable")
   783  }
   784  
   785  var (
   786  	ErrInvalidLengthProcessorsChangefeeds = fmt.Errorf("proto: negative length found during unmarshaling")
   787  	ErrIntOverflowProcessorsChangefeeds   = fmt.Errorf("proto: integer overflow")
   788  )
   789  
   790  func init() {
   791  	proto.RegisterFile("sql/execinfrapb/processors_changefeeds.proto", fileDescriptor_processors_changefeeds_e29e553eb9bf2f3d)
   792  }
   793  
   794  var fileDescriptor_processors_changefeeds_e29e553eb9bf2f3d = []byte{
   795  	// 430 bytes of a gzipped FileDescriptorProto
   796  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xc1, 0x6a, 0x14, 0x31,
   797  	0x1c, 0xc6, 0x27, 0xdd, 0x5d, 0x85, 0xac, 0x45, 0x09, 0x45, 0x87, 0x05, 0xd3, 0xa5, 0x78, 0xd8,
   798  	0x43, 0xcd, 0x60, 0xf1, 0x05, 0x5c, 0x4b, 0xa1, 0x1e, 0x3c, 0x6c, 0x0b, 0x82, 0x97, 0x21, 0x93,
   799  	0x49, 0x67, 0xb2, 0x4d, 0x27, 0xd9, 0x24, 0x55, 0x9f, 0xc1, 0x93, 0xaf, 0xe4, 0x45, 0xf6, 0xd8,
   800  	0x63, 0x4f, 0x45, 0x67, 0x5f, 0x44, 0x92, 0xc9, 0xc0, 0x22, 0x8a, 0x97, 0x5e, 0x66, 0xc2, 0x3f,
   801  	0xdf, 0xf7, 0x9b, 0xef, 0xff, 0x31, 0xf0, 0xd0, 0xae, 0x64, 0xc6, 0xbf, 0x70, 0x26, 0x9a, 0x0b,
   802  	0x43, 0x75, 0x91, 0x69, 0xa3, 0x18, 0xb7, 0x56, 0x19, 0x9b, 0xb3, 0x9a, 0x36, 0x15, 0xbf, 0xe0,
   803  	0xbc, 0xb4, 0x44, 0x1b, 0xe5, 0x14, 0x4a, 0x99, 0x62, 0x97, 0x46, 0x51, 0x56, 0x13, 0xbb, 0x92,
   804  	0xa4, 0x14, 0xd6, 0xd9, 0x95, 0x34, 0xd7, 0xcd, 0xe4, 0xe9, 0x52, 0x15, 0x36, 0xf3, 0x0f, 0x5d,
   805  	0x84, 0x57, 0xe7, 0x98, 0xa0, 0xa0, 0xd6, 0x45, 0x56, 0x52, 0x47, 0xe3, 0x2c, 0xbd, 0x76, 0x42,
   806  	0x66, 0xb5, 0x64, 0x99, 0x13, 0x57, 0xdc, 0x3a, 0x7a, 0xa5, 0xe3, 0xcd, 0x5e, 0xa5, 0x2a, 0x15,
   807  	0x8e, 0x99, 0x3f, 0x75, 0xd3, 0x83, 0xef, 0x3b, 0x70, 0xef, 0x6d, 0xc8, 0xf2, 0xa6, 0xaa, 0x0c,
   808  	0xaf, 0xa8, 0x53, 0xe6, 0x4c, 0x73, 0x86, 0xce, 0xe1, 0xc3, 0xcf, 0xd4, 0xb1, 0x9a, 0xdb, 0x14,
   809  	0x4c, 0x07, 0xb3, 0xf1, 0xd1, 0x6b, 0xf2, 0xaf, 0x80, 0xe4, 0x6f, 0x00, 0xf2, 0xc1, 0xbb, 0xe7,
   810  	0xc3, 0xf5, 0xdd, 0x7e, 0xb2, 0xe8, 0x51, 0xe8, 0x04, 0x0e, 0xfd, 0xce, 0xe9, 0xce, 0x14, 0xcc,
   811  	0xc6, 0x47, 0x87, 0x7f, 0x20, 0xc3, 0x6e, 0xdd, 0x9e, 0x91, 0xe9, 0xc5, 0xc7, 0xdc, 0x51, 0x21,
   812  	0x6d, 0x44, 0x05, 0xff, 0xe4, 0x2b, 0x80, 0xa3, 0xf0, 0x01, 0xf4, 0x1e, 0x3e, 0x11, 0x8d, 0x70,
   813  	0x82, 0xca, 0xdc, 0x70, 0xab, 0xe4, 0x27, 0x5e, 0xa6, 0x20, 0xd0, 0x9f, 0x6f, 0xd1, 0x7d, 0x2b,
   814  	0xa4, 0x96, 0x8c, 0x9c, 0xf7, 0xad, 0x44, 0xdc, 0xe3, 0x68, 0x5e, 0x44, 0x2f, 0x7a, 0x05, 0x87,
   815  	0x56, 0xd3, 0x26, 0x26, 0x7c, 0xb6, 0xc5, 0x88, 0x6d, 0x93, 0x33, 0x4d, 0x9b, 0x3e, 0x8c, 0x97,
   816  	0x1e, 0xfc, 0x00, 0x10, 0x75, 0x71, 0x4f, 0x8c, 0x6a, 0x9c, 0xe0, 0x5d, 0x83, 0x73, 0xb8, 0xeb,
   817  	0x0c, 0x65, 0x97, 0xbc, 0xcc, 0xbd, 0xac, 0xef, 0xf1, 0x3f, 0xc8, 0x47, 0xd1, 0xe3, 0x47, 0xf7,
   818  	0xd6, 0x17, 0x7a, 0x01, 0x1f, 0x2c, 0x55, 0x91, 0x8b, 0x32, 0x1d, 0x4c, 0xc1, 0x6c, 0x30, 0xdf,
   819  	0xf5, 0x77, 0xed, 0xdd, 0xfe, 0xe8, 0x9d, 0x2a, 0x4e, 0x8f, 0x17, 0xa3, 0xa5, 0x2a, 0x4e, 0xcb,
   820  	0xf9, 0xcb, 0xf5, 0x2f, 0x9c, 0xac, 0x5b, 0x0c, 0x6e, 0x5a, 0x0c, 0x6e, 0x5b, 0x0c, 0x7e, 0xb6,
   821  	0x18, 0x7c, 0xdb, 0xe0, 0xe4, 0x66, 0x83, 0x93, 0xdb, 0x0d, 0x4e, 0x3e, 0x8e, 0xb7, 0x7e, 0xe7,
   822  	0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x41, 0x27, 0xac, 0xe0, 0x02, 0x00, 0x00,
   823  }