github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/cdc/scheduler/schedulepb/table_schedule.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: scheduler/schedulepb/table_schedule.proto
     3  
     4  package schedulepb
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	github_com_pingcap_tiflow_cdc_model "github.com/pingcap/tiflow/cdc/model"
    11  	github_com_pingcap_tiflow_cdc_processor_tablepb "github.com/pingcap/tiflow/cdc/processor/tablepb"
    12  	tablepb "github.com/pingcap/tiflow/cdc/processor/tablepb"
    13  	io "io"
    14  	math "math"
    15  	math_bits "math/bits"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  type MessageType int32
    30  
    31  const (
    32  	MsgUnknown               MessageType = 0
    33  	MsgDispatchTableRequest  MessageType = 1
    34  	MsgDispatchTableResponse MessageType = 2
    35  	MsgHeartbeat             MessageType = 3
    36  	MsgHeartbeatResponse     MessageType = 4
    37  )
    38  
    39  var MessageType_name = map[int32]string{
    40  	0: "MsgUnknown",
    41  	1: "MsgDispatchTableRequest",
    42  	2: "MsgDispatchTableResponse",
    43  	3: "MsgHeartbeat",
    44  	4: "MsgHeartbeatResponse",
    45  }
    46  
    47  var MessageType_value = map[string]int32{
    48  	"MsgUnknown":               0,
    49  	"MsgDispatchTableRequest":  1,
    50  	"MsgDispatchTableResponse": 2,
    51  	"MsgHeartbeat":             3,
    52  	"MsgHeartbeatResponse":     4,
    53  }
    54  
    55  func (x MessageType) String() string {
    56  	return proto.EnumName(MessageType_name, int32(x))
    57  }
    58  
    59  func (MessageType) EnumDescriptor() ([]byte, []int) {
    60  	return fileDescriptor_86eeacbf6ca5b996, []int{0}
    61  }
    62  
    63  type AddTableRequest struct {
    64  	TableID     github_com_pingcap_tiflow_cdc_model.TableID `protobuf:"varint,1,opt,name=table_id,json=tableId,proto3,casttype=github.com/pingcap/tiflow/cdc/model.TableID" json:"table_id,omitempty"`
    65  	Span        tablepb.Span                                `protobuf:"bytes,4,opt,name=span,proto3" json:"span"`
    66  	IsSecondary bool                                        `protobuf:"varint,2,opt,name=is_secondary,json=isSecondary,proto3" json:"is_secondary,omitempty"`
    67  	Checkpoint  tablepb.Checkpoint                          `protobuf:"bytes,3,opt,name=checkpoint,proto3" json:"checkpoint"`
    68  }
    69  
    70  func (m *AddTableRequest) Reset()         { *m = AddTableRequest{} }
    71  func (m *AddTableRequest) String() string { return proto.CompactTextString(m) }
    72  func (*AddTableRequest) ProtoMessage()    {}
    73  func (*AddTableRequest) Descriptor() ([]byte, []int) {
    74  	return fileDescriptor_86eeacbf6ca5b996, []int{0}
    75  }
    76  func (m *AddTableRequest) XXX_Unmarshal(b []byte) error {
    77  	return m.Unmarshal(b)
    78  }
    79  func (m *AddTableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    80  	if deterministic {
    81  		return xxx_messageInfo_AddTableRequest.Marshal(b, m, deterministic)
    82  	} else {
    83  		b = b[:cap(b)]
    84  		n, err := m.MarshalToSizedBuffer(b)
    85  		if err != nil {
    86  			return nil, err
    87  		}
    88  		return b[:n], nil
    89  	}
    90  }
    91  func (m *AddTableRequest) XXX_Merge(src proto.Message) {
    92  	xxx_messageInfo_AddTableRequest.Merge(m, src)
    93  }
    94  func (m *AddTableRequest) XXX_Size() int {
    95  	return m.Size()
    96  }
    97  func (m *AddTableRequest) XXX_DiscardUnknown() {
    98  	xxx_messageInfo_AddTableRequest.DiscardUnknown(m)
    99  }
   100  
   101  var xxx_messageInfo_AddTableRequest proto.InternalMessageInfo
   102  
   103  func (m *AddTableRequest) GetTableID() github_com_pingcap_tiflow_cdc_model.TableID {
   104  	if m != nil {
   105  		return m.TableID
   106  	}
   107  	return 0
   108  }
   109  
   110  func (m *AddTableRequest) GetSpan() tablepb.Span {
   111  	if m != nil {
   112  		return m.Span
   113  	}
   114  	return tablepb.Span{}
   115  }
   116  
   117  func (m *AddTableRequest) GetIsSecondary() bool {
   118  	if m != nil {
   119  		return m.IsSecondary
   120  	}
   121  	return false
   122  }
   123  
   124  func (m *AddTableRequest) GetCheckpoint() tablepb.Checkpoint {
   125  	if m != nil {
   126  		return m.Checkpoint
   127  	}
   128  	return tablepb.Checkpoint{}
   129  }
   130  
   131  type RemoveTableRequest struct {
   132  	TableID github_com_pingcap_tiflow_cdc_model.TableID `protobuf:"varint,1,opt,name=table_id,json=tableId,proto3,casttype=github.com/pingcap/tiflow/cdc/model.TableID" json:"table_id,omitempty"`
   133  	Span    tablepb.Span                                `protobuf:"bytes,2,opt,name=span,proto3" json:"span"`
   134  }
   135  
   136  func (m *RemoveTableRequest) Reset()         { *m = RemoveTableRequest{} }
   137  func (m *RemoveTableRequest) String() string { return proto.CompactTextString(m) }
   138  func (*RemoveTableRequest) ProtoMessage()    {}
   139  func (*RemoveTableRequest) Descriptor() ([]byte, []int) {
   140  	return fileDescriptor_86eeacbf6ca5b996, []int{1}
   141  }
   142  func (m *RemoveTableRequest) XXX_Unmarshal(b []byte) error {
   143  	return m.Unmarshal(b)
   144  }
   145  func (m *RemoveTableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   146  	if deterministic {
   147  		return xxx_messageInfo_RemoveTableRequest.Marshal(b, m, deterministic)
   148  	} else {
   149  		b = b[:cap(b)]
   150  		n, err := m.MarshalToSizedBuffer(b)
   151  		if err != nil {
   152  			return nil, err
   153  		}
   154  		return b[:n], nil
   155  	}
   156  }
   157  func (m *RemoveTableRequest) XXX_Merge(src proto.Message) {
   158  	xxx_messageInfo_RemoveTableRequest.Merge(m, src)
   159  }
   160  func (m *RemoveTableRequest) XXX_Size() int {
   161  	return m.Size()
   162  }
   163  func (m *RemoveTableRequest) XXX_DiscardUnknown() {
   164  	xxx_messageInfo_RemoveTableRequest.DiscardUnknown(m)
   165  }
   166  
   167  var xxx_messageInfo_RemoveTableRequest proto.InternalMessageInfo
   168  
   169  func (m *RemoveTableRequest) GetTableID() github_com_pingcap_tiflow_cdc_model.TableID {
   170  	if m != nil {
   171  		return m.TableID
   172  	}
   173  	return 0
   174  }
   175  
   176  func (m *RemoveTableRequest) GetSpan() tablepb.Span {
   177  	if m != nil {
   178  		return m.Span
   179  	}
   180  	return tablepb.Span{}
   181  }
   182  
   183  type DispatchTableRequest struct {
   184  	// Types that are valid to be assigned to Request:
   185  	//	*DispatchTableRequest_AddTable
   186  	//	*DispatchTableRequest_RemoveTable
   187  	Request isDispatchTableRequest_Request `protobuf_oneof:"request"`
   188  }
   189  
   190  func (m *DispatchTableRequest) Reset()         { *m = DispatchTableRequest{} }
   191  func (m *DispatchTableRequest) String() string { return proto.CompactTextString(m) }
   192  func (*DispatchTableRequest) ProtoMessage()    {}
   193  func (*DispatchTableRequest) Descriptor() ([]byte, []int) {
   194  	return fileDescriptor_86eeacbf6ca5b996, []int{2}
   195  }
   196  func (m *DispatchTableRequest) XXX_Unmarshal(b []byte) error {
   197  	return m.Unmarshal(b)
   198  }
   199  func (m *DispatchTableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   200  	if deterministic {
   201  		return xxx_messageInfo_DispatchTableRequest.Marshal(b, m, deterministic)
   202  	} else {
   203  		b = b[:cap(b)]
   204  		n, err := m.MarshalToSizedBuffer(b)
   205  		if err != nil {
   206  			return nil, err
   207  		}
   208  		return b[:n], nil
   209  	}
   210  }
   211  func (m *DispatchTableRequest) XXX_Merge(src proto.Message) {
   212  	xxx_messageInfo_DispatchTableRequest.Merge(m, src)
   213  }
   214  func (m *DispatchTableRequest) XXX_Size() int {
   215  	return m.Size()
   216  }
   217  func (m *DispatchTableRequest) XXX_DiscardUnknown() {
   218  	xxx_messageInfo_DispatchTableRequest.DiscardUnknown(m)
   219  }
   220  
   221  var xxx_messageInfo_DispatchTableRequest proto.InternalMessageInfo
   222  
   223  type isDispatchTableRequest_Request interface {
   224  	isDispatchTableRequest_Request()
   225  	MarshalTo([]byte) (int, error)
   226  	Size() int
   227  }
   228  
   229  type DispatchTableRequest_AddTable struct {
   230  	AddTable *AddTableRequest `protobuf:"bytes,1,opt,name=add_table,json=addTable,proto3,oneof" json:"add_table,omitempty"`
   231  }
   232  type DispatchTableRequest_RemoveTable struct {
   233  	RemoveTable *RemoveTableRequest `protobuf:"bytes,2,opt,name=remove_table,json=removeTable,proto3,oneof" json:"remove_table,omitempty"`
   234  }
   235  
   236  func (*DispatchTableRequest_AddTable) isDispatchTableRequest_Request()    {}
   237  func (*DispatchTableRequest_RemoveTable) isDispatchTableRequest_Request() {}
   238  
   239  func (m *DispatchTableRequest) GetRequest() isDispatchTableRequest_Request {
   240  	if m != nil {
   241  		return m.Request
   242  	}
   243  	return nil
   244  }
   245  
   246  func (m *DispatchTableRequest) GetAddTable() *AddTableRequest {
   247  	if x, ok := m.GetRequest().(*DispatchTableRequest_AddTable); ok {
   248  		return x.AddTable
   249  	}
   250  	return nil
   251  }
   252  
   253  func (m *DispatchTableRequest) GetRemoveTable() *RemoveTableRequest {
   254  	if x, ok := m.GetRequest().(*DispatchTableRequest_RemoveTable); ok {
   255  		return x.RemoveTable
   256  	}
   257  	return nil
   258  }
   259  
   260  // XXX_OneofWrappers is for the internal use of the proto package.
   261  func (*DispatchTableRequest) XXX_OneofWrappers() []interface{} {
   262  	return []interface{}{
   263  		(*DispatchTableRequest_AddTable)(nil),
   264  		(*DispatchTableRequest_RemoveTable)(nil),
   265  	}
   266  }
   267  
   268  type AddTableResponse struct {
   269  	Status     *tablepb.TableStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
   270  	Checkpoint tablepb.Checkpoint   `protobuf:"bytes,2,opt,name=checkpoint,proto3" json:"checkpoint"`
   271  }
   272  
   273  func (m *AddTableResponse) Reset()         { *m = AddTableResponse{} }
   274  func (m *AddTableResponse) String() string { return proto.CompactTextString(m) }
   275  func (*AddTableResponse) ProtoMessage()    {}
   276  func (*AddTableResponse) Descriptor() ([]byte, []int) {
   277  	return fileDescriptor_86eeacbf6ca5b996, []int{3}
   278  }
   279  func (m *AddTableResponse) XXX_Unmarshal(b []byte) error {
   280  	return m.Unmarshal(b)
   281  }
   282  func (m *AddTableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   283  	if deterministic {
   284  		return xxx_messageInfo_AddTableResponse.Marshal(b, m, deterministic)
   285  	} else {
   286  		b = b[:cap(b)]
   287  		n, err := m.MarshalToSizedBuffer(b)
   288  		if err != nil {
   289  			return nil, err
   290  		}
   291  		return b[:n], nil
   292  	}
   293  }
   294  func (m *AddTableResponse) XXX_Merge(src proto.Message) {
   295  	xxx_messageInfo_AddTableResponse.Merge(m, src)
   296  }
   297  func (m *AddTableResponse) XXX_Size() int {
   298  	return m.Size()
   299  }
   300  func (m *AddTableResponse) XXX_DiscardUnknown() {
   301  	xxx_messageInfo_AddTableResponse.DiscardUnknown(m)
   302  }
   303  
   304  var xxx_messageInfo_AddTableResponse proto.InternalMessageInfo
   305  
   306  func (m *AddTableResponse) GetStatus() *tablepb.TableStatus {
   307  	if m != nil {
   308  		return m.Status
   309  	}
   310  	return nil
   311  }
   312  
   313  func (m *AddTableResponse) GetCheckpoint() tablepb.Checkpoint {
   314  	if m != nil {
   315  		return m.Checkpoint
   316  	}
   317  	return tablepb.Checkpoint{}
   318  }
   319  
   320  type RemoveTableResponse struct {
   321  	Status     *tablepb.TableStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
   322  	Checkpoint tablepb.Checkpoint   `protobuf:"bytes,2,opt,name=checkpoint,proto3" json:"checkpoint"`
   323  }
   324  
   325  func (m *RemoveTableResponse) Reset()         { *m = RemoveTableResponse{} }
   326  func (m *RemoveTableResponse) String() string { return proto.CompactTextString(m) }
   327  func (*RemoveTableResponse) ProtoMessage()    {}
   328  func (*RemoveTableResponse) Descriptor() ([]byte, []int) {
   329  	return fileDescriptor_86eeacbf6ca5b996, []int{4}
   330  }
   331  func (m *RemoveTableResponse) XXX_Unmarshal(b []byte) error {
   332  	return m.Unmarshal(b)
   333  }
   334  func (m *RemoveTableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   335  	if deterministic {
   336  		return xxx_messageInfo_RemoveTableResponse.Marshal(b, m, deterministic)
   337  	} else {
   338  		b = b[:cap(b)]
   339  		n, err := m.MarshalToSizedBuffer(b)
   340  		if err != nil {
   341  			return nil, err
   342  		}
   343  		return b[:n], nil
   344  	}
   345  }
   346  func (m *RemoveTableResponse) XXX_Merge(src proto.Message) {
   347  	xxx_messageInfo_RemoveTableResponse.Merge(m, src)
   348  }
   349  func (m *RemoveTableResponse) XXX_Size() int {
   350  	return m.Size()
   351  }
   352  func (m *RemoveTableResponse) XXX_DiscardUnknown() {
   353  	xxx_messageInfo_RemoveTableResponse.DiscardUnknown(m)
   354  }
   355  
   356  var xxx_messageInfo_RemoveTableResponse proto.InternalMessageInfo
   357  
   358  func (m *RemoveTableResponse) GetStatus() *tablepb.TableStatus {
   359  	if m != nil {
   360  		return m.Status
   361  	}
   362  	return nil
   363  }
   364  
   365  func (m *RemoveTableResponse) GetCheckpoint() tablepb.Checkpoint {
   366  	if m != nil {
   367  		return m.Checkpoint
   368  	}
   369  	return tablepb.Checkpoint{}
   370  }
   371  
   372  type DispatchTableResponse struct {
   373  	// Types that are valid to be assigned to Response:
   374  	//
   375  	//	*DispatchTableResponse_AddTable
   376  	//	*DispatchTableResponse_RemoveTable
   377  	Response isDispatchTableResponse_Response `protobuf_oneof:"response"`
   378  }
   379  
   380  func (m *DispatchTableResponse) Reset()         { *m = DispatchTableResponse{} }
   381  func (m *DispatchTableResponse) String() string { return proto.CompactTextString(m) }
   382  func (*DispatchTableResponse) ProtoMessage()    {}
   383  func (*DispatchTableResponse) Descriptor() ([]byte, []int) {
   384  	return fileDescriptor_86eeacbf6ca5b996, []int{5}
   385  }
   386  func (m *DispatchTableResponse) XXX_Unmarshal(b []byte) error {
   387  	return m.Unmarshal(b)
   388  }
   389  func (m *DispatchTableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   390  	if deterministic {
   391  		return xxx_messageInfo_DispatchTableResponse.Marshal(b, m, deterministic)
   392  	} else {
   393  		b = b[:cap(b)]
   394  		n, err := m.MarshalToSizedBuffer(b)
   395  		if err != nil {
   396  			return nil, err
   397  		}
   398  		return b[:n], nil
   399  	}
   400  }
   401  func (m *DispatchTableResponse) XXX_Merge(src proto.Message) {
   402  	xxx_messageInfo_DispatchTableResponse.Merge(m, src)
   403  }
   404  func (m *DispatchTableResponse) XXX_Size() int {
   405  	return m.Size()
   406  }
   407  func (m *DispatchTableResponse) XXX_DiscardUnknown() {
   408  	xxx_messageInfo_DispatchTableResponse.DiscardUnknown(m)
   409  }
   410  
   411  var xxx_messageInfo_DispatchTableResponse proto.InternalMessageInfo
   412  
   413  type isDispatchTableResponse_Response interface {
   414  	isDispatchTableResponse_Response()
   415  	MarshalTo([]byte) (int, error)
   416  	Size() int
   417  }
   418  
   419  type DispatchTableResponse_AddTable struct {
   420  	AddTable *AddTableResponse `protobuf:"bytes,1,opt,name=add_table,json=addTable,proto3,oneof" json:"add_table,omitempty"`
   421  }
   422  type DispatchTableResponse_RemoveTable struct {
   423  	RemoveTable *RemoveTableResponse `protobuf:"bytes,2,opt,name=remove_table,json=removeTable,proto3,oneof" json:"remove_table,omitempty"`
   424  }
   425  
   426  func (*DispatchTableResponse_AddTable) isDispatchTableResponse_Response()    {}
   427  func (*DispatchTableResponse_RemoveTable) isDispatchTableResponse_Response() {}
   428  
   429  func (m *DispatchTableResponse) GetResponse() isDispatchTableResponse_Response {
   430  	if m != nil {
   431  		return m.Response
   432  	}
   433  	return nil
   434  }
   435  
   436  func (m *DispatchTableResponse) GetAddTable() *AddTableResponse {
   437  	if x, ok := m.GetResponse().(*DispatchTableResponse_AddTable); ok {
   438  		return x.AddTable
   439  	}
   440  	return nil
   441  }
   442  
   443  func (m *DispatchTableResponse) GetRemoveTable() *RemoveTableResponse {
   444  	if x, ok := m.GetResponse().(*DispatchTableResponse_RemoveTable); ok {
   445  		return x.RemoveTable
   446  	}
   447  	return nil
   448  }
   449  
   450  // XXX_OneofWrappers is for the internal use of the proto package.
   451  func (*DispatchTableResponse) XXX_OneofWrappers() []interface{} {
   452  	return []interface{}{
   453  		(*DispatchTableResponse_AddTable)(nil),
   454  		(*DispatchTableResponse_RemoveTable)(nil),
   455  	}
   456  }
   457  
   458  type TableBarrier struct {
   459  	TableID github_com_pingcap_tiflow_cdc_model.TableID `protobuf:"varint,1,opt,name=table_id,json=tableId,proto3,casttype=github.com/pingcap/tiflow/cdc/model.TableID" json:"table_id,omitempty"`
   460  	// The barrier timestamp of the table.
   461  	BarrierTs github_com_pingcap_tiflow_cdc_processor_tablepb.Ts `protobuf:"varint,2,opt,name=barrier_ts,json=barrierTs,proto3,casttype=github.com/pingcap/tiflow/cdc/processor/tablepb.Ts" json:"barrier_ts,omitempty"`
   462  }
   463  
   464  func (m *TableBarrier) Reset()         { *m = TableBarrier{} }
   465  func (m *TableBarrier) String() string { return proto.CompactTextString(m) }
   466  func (*TableBarrier) ProtoMessage()    {}
   467  func (*TableBarrier) Descriptor() ([]byte, []int) {
   468  	return fileDescriptor_86eeacbf6ca5b996, []int{6}
   469  }
   470  func (m *TableBarrier) XXX_Unmarshal(b []byte) error {
   471  	return m.Unmarshal(b)
   472  }
   473  func (m *TableBarrier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   474  	if deterministic {
   475  		return xxx_messageInfo_TableBarrier.Marshal(b, m, deterministic)
   476  	} else {
   477  		b = b[:cap(b)]
   478  		n, err := m.MarshalToSizedBuffer(b)
   479  		if err != nil {
   480  			return nil, err
   481  		}
   482  		return b[:n], nil
   483  	}
   484  }
   485  func (m *TableBarrier) XXX_Merge(src proto.Message) {
   486  	xxx_messageInfo_TableBarrier.Merge(m, src)
   487  }
   488  func (m *TableBarrier) XXX_Size() int {
   489  	return m.Size()
   490  }
   491  func (m *TableBarrier) XXX_DiscardUnknown() {
   492  	xxx_messageInfo_TableBarrier.DiscardUnknown(m)
   493  }
   494  
   495  var xxx_messageInfo_TableBarrier proto.InternalMessageInfo
   496  
   497  func (m *TableBarrier) GetTableID() github_com_pingcap_tiflow_cdc_model.TableID {
   498  	if m != nil {
   499  		return m.TableID
   500  	}
   501  	return 0
   502  }
   503  
   504  func (m *TableBarrier) GetBarrierTs() github_com_pingcap_tiflow_cdc_processor_tablepb.Ts {
   505  	if m != nil {
   506  		return m.BarrierTs
   507  	}
   508  	return 0
   509  }
   510  
   511  // Barrier contains the barrierTs of those tables that have
   512  // ddl jobs that need to be replicated. The Scheduler will
   513  // broadcast the barrierTs to all captures through the Heartbeat.
   514  type Barrier struct {
   515  	TableBarriers   []*TableBarrier                                    `protobuf:"bytes,1,rep,name=table_barriers,json=tableBarriers,proto3" json:"table_barriers,omitempty"`
   516  	GlobalBarrierTs github_com_pingcap_tiflow_cdc_processor_tablepb.Ts `protobuf:"varint,2,opt,name=global_barrier_ts,json=globalBarrierTs,proto3,casttype=github.com/pingcap/tiflow/cdc/processor/tablepb.Ts" json:"global_barrier_ts,omitempty"`
   517  }
   518  
   519  func (m *Barrier) Reset()         { *m = Barrier{} }
   520  func (m *Barrier) String() string { return proto.CompactTextString(m) }
   521  func (*Barrier) ProtoMessage()    {}
   522  func (*Barrier) Descriptor() ([]byte, []int) {
   523  	return fileDescriptor_86eeacbf6ca5b996, []int{7}
   524  }
   525  func (m *Barrier) XXX_Unmarshal(b []byte) error {
   526  	return m.Unmarshal(b)
   527  }
   528  func (m *Barrier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   529  	if deterministic {
   530  		return xxx_messageInfo_Barrier.Marshal(b, m, deterministic)
   531  	} else {
   532  		b = b[:cap(b)]
   533  		n, err := m.MarshalToSizedBuffer(b)
   534  		if err != nil {
   535  			return nil, err
   536  		}
   537  		return b[:n], nil
   538  	}
   539  }
   540  func (m *Barrier) XXX_Merge(src proto.Message) {
   541  	xxx_messageInfo_Barrier.Merge(m, src)
   542  }
   543  func (m *Barrier) XXX_Size() int {
   544  	return m.Size()
   545  }
   546  func (m *Barrier) XXX_DiscardUnknown() {
   547  	xxx_messageInfo_Barrier.DiscardUnknown(m)
   548  }
   549  
   550  var xxx_messageInfo_Barrier proto.InternalMessageInfo
   551  
   552  func (m *Barrier) GetTableBarriers() []*TableBarrier {
   553  	if m != nil {
   554  		return m.TableBarriers
   555  	}
   556  	return nil
   557  }
   558  
   559  func (m *Barrier) GetGlobalBarrierTs() github_com_pingcap_tiflow_cdc_processor_tablepb.Ts {
   560  	if m != nil {
   561  		return m.GlobalBarrierTs
   562  	}
   563  	return 0
   564  }
   565  
   566  type Heartbeat struct {
   567  	TableIDs     []github_com_pingcap_tiflow_cdc_model.TableID `protobuf:"varint,1,rep,packed,name=table_ids,json=tableIds,proto3,casttype=github.com/pingcap/tiflow/cdc/model.TableID" json:"table_ids,omitempty"`
   568  	IsStopping   bool                                          `protobuf:"varint,2,opt,name=is_stopping,json=isStopping,proto3" json:"is_stopping,omitempty"`
   569  	Spans        []tablepb.Span                                `protobuf:"bytes,3,rep,name=spans,proto3" json:"spans"`
   570  	CollectStats bool                                          `protobuf:"varint,4,opt,name=collect_stats,json=collectStats,proto3" json:"collect_stats,omitempty"`
   571  	Barrier      *Barrier                                      `protobuf:"bytes,5,opt,name=barrier,proto3" json:"barrier,omitempty"`
   572  }
   573  
   574  func (m *Heartbeat) Reset()         { *m = Heartbeat{} }
   575  func (m *Heartbeat) String() string { return proto.CompactTextString(m) }
   576  func (*Heartbeat) ProtoMessage()    {}
   577  func (*Heartbeat) Descriptor() ([]byte, []int) {
   578  	return fileDescriptor_86eeacbf6ca5b996, []int{8}
   579  }
   580  func (m *Heartbeat) XXX_Unmarshal(b []byte) error {
   581  	return m.Unmarshal(b)
   582  }
   583  func (m *Heartbeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   584  	if deterministic {
   585  		return xxx_messageInfo_Heartbeat.Marshal(b, m, deterministic)
   586  	} else {
   587  		b = b[:cap(b)]
   588  		n, err := m.MarshalToSizedBuffer(b)
   589  		if err != nil {
   590  			return nil, err
   591  		}
   592  		return b[:n], nil
   593  	}
   594  }
   595  func (m *Heartbeat) XXX_Merge(src proto.Message) {
   596  	xxx_messageInfo_Heartbeat.Merge(m, src)
   597  }
   598  func (m *Heartbeat) XXX_Size() int {
   599  	return m.Size()
   600  }
   601  func (m *Heartbeat) XXX_DiscardUnknown() {
   602  	xxx_messageInfo_Heartbeat.DiscardUnknown(m)
   603  }
   604  
   605  var xxx_messageInfo_Heartbeat proto.InternalMessageInfo
   606  
   607  func (m *Heartbeat) GetTableIDs() []github_com_pingcap_tiflow_cdc_model.TableID {
   608  	if m != nil {
   609  		return m.TableIDs
   610  	}
   611  	return nil
   612  }
   613  
   614  func (m *Heartbeat) GetIsStopping() bool {
   615  	if m != nil {
   616  		return m.IsStopping
   617  	}
   618  	return false
   619  }
   620  
   621  func (m *Heartbeat) GetSpans() []tablepb.Span {
   622  	if m != nil {
   623  		return m.Spans
   624  	}
   625  	return nil
   626  }
   627  
   628  func (m *Heartbeat) GetCollectStats() bool {
   629  	if m != nil {
   630  		return m.CollectStats
   631  	}
   632  	return false
   633  }
   634  
   635  func (m *Heartbeat) GetBarrier() *Barrier {
   636  	if m != nil {
   637  		return m.Barrier
   638  	}
   639  	return nil
   640  }
   641  
   642  type HeartbeatResponse struct {
   643  	Tables   []tablepb.TableStatus                        `protobuf:"bytes,1,rep,name=tables,proto3" json:"tables"`
   644  	Liveness github_com_pingcap_tiflow_cdc_model.Liveness `protobuf:"varint,2,opt,name=liveness,proto3,casttype=github.com/pingcap/tiflow/cdc/model.Liveness" json:"liveness,omitempty"`
   645  }
   646  
   647  func (m *HeartbeatResponse) Reset()         { *m = HeartbeatResponse{} }
   648  func (m *HeartbeatResponse) String() string { return proto.CompactTextString(m) }
   649  func (*HeartbeatResponse) ProtoMessage()    {}
   650  func (*HeartbeatResponse) Descriptor() ([]byte, []int) {
   651  	return fileDescriptor_86eeacbf6ca5b996, []int{9}
   652  }
   653  func (m *HeartbeatResponse) XXX_Unmarshal(b []byte) error {
   654  	return m.Unmarshal(b)
   655  }
   656  func (m *HeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   657  	if deterministic {
   658  		return xxx_messageInfo_HeartbeatResponse.Marshal(b, m, deterministic)
   659  	} else {
   660  		b = b[:cap(b)]
   661  		n, err := m.MarshalToSizedBuffer(b)
   662  		if err != nil {
   663  			return nil, err
   664  		}
   665  		return b[:n], nil
   666  	}
   667  }
   668  func (m *HeartbeatResponse) XXX_Merge(src proto.Message) {
   669  	xxx_messageInfo_HeartbeatResponse.Merge(m, src)
   670  }
   671  func (m *HeartbeatResponse) XXX_Size() int {
   672  	return m.Size()
   673  }
   674  func (m *HeartbeatResponse) XXX_DiscardUnknown() {
   675  	xxx_messageInfo_HeartbeatResponse.DiscardUnknown(m)
   676  }
   677  
   678  var xxx_messageInfo_HeartbeatResponse proto.InternalMessageInfo
   679  
   680  func (m *HeartbeatResponse) GetTables() []tablepb.TableStatus {
   681  	if m != nil {
   682  		return m.Tables
   683  	}
   684  	return nil
   685  }
   686  
   687  func (m *HeartbeatResponse) GetLiveness() github_com_pingcap_tiflow_cdc_model.Liveness {
   688  	if m != nil {
   689  		return m.Liveness
   690  	}
   691  	return 0
   692  }
   693  
   694  type OwnerRevision struct {
   695  	Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
   696  }
   697  
   698  func (m *OwnerRevision) Reset()         { *m = OwnerRevision{} }
   699  func (m *OwnerRevision) String() string { return proto.CompactTextString(m) }
   700  func (*OwnerRevision) ProtoMessage()    {}
   701  func (*OwnerRevision) Descriptor() ([]byte, []int) {
   702  	return fileDescriptor_86eeacbf6ca5b996, []int{10}
   703  }
   704  func (m *OwnerRevision) XXX_Unmarshal(b []byte) error {
   705  	return m.Unmarshal(b)
   706  }
   707  func (m *OwnerRevision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   708  	if deterministic {
   709  		return xxx_messageInfo_OwnerRevision.Marshal(b, m, deterministic)
   710  	} else {
   711  		b = b[:cap(b)]
   712  		n, err := m.MarshalToSizedBuffer(b)
   713  		if err != nil {
   714  			return nil, err
   715  		}
   716  		return b[:n], nil
   717  	}
   718  }
   719  func (m *OwnerRevision) XXX_Merge(src proto.Message) {
   720  	xxx_messageInfo_OwnerRevision.Merge(m, src)
   721  }
   722  func (m *OwnerRevision) XXX_Size() int {
   723  	return m.Size()
   724  }
   725  func (m *OwnerRevision) XXX_DiscardUnknown() {
   726  	xxx_messageInfo_OwnerRevision.DiscardUnknown(m)
   727  }
   728  
   729  var xxx_messageInfo_OwnerRevision proto.InternalMessageInfo
   730  
   731  func (m *OwnerRevision) GetRevision() int64 {
   732  	if m != nil {
   733  		return m.Revision
   734  	}
   735  	return 0
   736  }
   737  
   738  type ProcessorEpoch struct {
   739  	Epoch string `protobuf:"bytes,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
   740  }
   741  
   742  func (m *ProcessorEpoch) Reset()         { *m = ProcessorEpoch{} }
   743  func (m *ProcessorEpoch) String() string { return proto.CompactTextString(m) }
   744  func (*ProcessorEpoch) ProtoMessage()    {}
   745  func (*ProcessorEpoch) Descriptor() ([]byte, []int) {
   746  	return fileDescriptor_86eeacbf6ca5b996, []int{11}
   747  }
   748  func (m *ProcessorEpoch) XXX_Unmarshal(b []byte) error {
   749  	return m.Unmarshal(b)
   750  }
   751  func (m *ProcessorEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   752  	if deterministic {
   753  		return xxx_messageInfo_ProcessorEpoch.Marshal(b, m, deterministic)
   754  	} else {
   755  		b = b[:cap(b)]
   756  		n, err := m.MarshalToSizedBuffer(b)
   757  		if err != nil {
   758  			return nil, err
   759  		}
   760  		return b[:n], nil
   761  	}
   762  }
   763  func (m *ProcessorEpoch) XXX_Merge(src proto.Message) {
   764  	xxx_messageInfo_ProcessorEpoch.Merge(m, src)
   765  }
   766  func (m *ProcessorEpoch) XXX_Size() int {
   767  	return m.Size()
   768  }
   769  func (m *ProcessorEpoch) XXX_DiscardUnknown() {
   770  	xxx_messageInfo_ProcessorEpoch.DiscardUnknown(m)
   771  }
   772  
   773  var xxx_messageInfo_ProcessorEpoch proto.InternalMessageInfo
   774  
   775  func (m *ProcessorEpoch) GetEpoch() string {
   776  	if m != nil {
   777  		return m.Epoch
   778  	}
   779  	return ""
   780  }
   781  
   782  type ChangefeedEpoch struct {
   783  	Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
   784  }
   785  
   786  func (m *ChangefeedEpoch) Reset()         { *m = ChangefeedEpoch{} }
   787  func (m *ChangefeedEpoch) String() string { return proto.CompactTextString(m) }
   788  func (*ChangefeedEpoch) ProtoMessage()    {}
   789  func (*ChangefeedEpoch) Descriptor() ([]byte, []int) {
   790  	return fileDescriptor_86eeacbf6ca5b996, []int{12}
   791  }
   792  func (m *ChangefeedEpoch) XXX_Unmarshal(b []byte) error {
   793  	return m.Unmarshal(b)
   794  }
   795  func (m *ChangefeedEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   796  	if deterministic {
   797  		return xxx_messageInfo_ChangefeedEpoch.Marshal(b, m, deterministic)
   798  	} else {
   799  		b = b[:cap(b)]
   800  		n, err := m.MarshalToSizedBuffer(b)
   801  		if err != nil {
   802  			return nil, err
   803  		}
   804  		return b[:n], nil
   805  	}
   806  }
   807  func (m *ChangefeedEpoch) XXX_Merge(src proto.Message) {
   808  	xxx_messageInfo_ChangefeedEpoch.Merge(m, src)
   809  }
   810  func (m *ChangefeedEpoch) XXX_Size() int {
   811  	return m.Size()
   812  }
   813  func (m *ChangefeedEpoch) XXX_DiscardUnknown() {
   814  	xxx_messageInfo_ChangefeedEpoch.DiscardUnknown(m)
   815  }
   816  
   817  var xxx_messageInfo_ChangefeedEpoch proto.InternalMessageInfo
   818  
   819  func (m *ChangefeedEpoch) GetEpoch() uint64 {
   820  	if m != nil {
   821  		return m.Epoch
   822  	}
   823  	return 0
   824  }
   825  
   826  type Message struct {
   827  	Header                *Message_Header                               `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
   828  	MsgType               MessageType                                   `protobuf:"varint,2,opt,name=msg_type,json=msgType,proto3,enum=pingcap.tiflow.cdc.scheduler.schedulepb.MessageType" json:"msg_type,omitempty"`
   829  	From                  github_com_pingcap_tiflow_cdc_model.CaptureID `protobuf:"bytes,3,opt,name=from,proto3,casttype=github.com/pingcap/tiflow/cdc/model.CaptureID" json:"from,omitempty"`
   830  	To                    github_com_pingcap_tiflow_cdc_model.CaptureID `protobuf:"bytes,4,opt,name=to,proto3,casttype=github.com/pingcap/tiflow/cdc/model.CaptureID" json:"to,omitempty"`
   831  	DispatchTableRequest  *DispatchTableRequest                         `protobuf:"bytes,5,opt,name=dispatch_table_request,json=dispatchTableRequest,proto3" json:"dispatch_table_request,omitempty"`
   832  	DispatchTableResponse *DispatchTableResponse                        `protobuf:"bytes,6,opt,name=dispatch_table_response,json=dispatchTableResponse,proto3" json:"dispatch_table_response,omitempty"`
   833  	Heartbeat             *Heartbeat                                    `protobuf:"bytes,7,opt,name=heartbeat,proto3" json:"heartbeat,omitempty"`
   834  	HeartbeatResponse     *HeartbeatResponse                            `protobuf:"bytes,8,opt,name=heartbeat_response,json=heartbeatResponse,proto3" json:"heartbeat_response,omitempty"`
   835  }
   836  
   837  func (m *Message) Reset()         { *m = Message{} }
   838  func (m *Message) String() string { return proto.CompactTextString(m) }
   839  func (*Message) ProtoMessage()    {}
   840  func (*Message) Descriptor() ([]byte, []int) {
   841  	return fileDescriptor_86eeacbf6ca5b996, []int{13}
   842  }
   843  func (m *Message) XXX_Unmarshal(b []byte) error {
   844  	return m.Unmarshal(b)
   845  }
   846  func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   847  	if deterministic {
   848  		return xxx_messageInfo_Message.Marshal(b, m, deterministic)
   849  	} else {
   850  		b = b[:cap(b)]
   851  		n, err := m.MarshalToSizedBuffer(b)
   852  		if err != nil {
   853  			return nil, err
   854  		}
   855  		return b[:n], nil
   856  	}
   857  }
   858  func (m *Message) XXX_Merge(src proto.Message) {
   859  	xxx_messageInfo_Message.Merge(m, src)
   860  }
   861  func (m *Message) XXX_Size() int {
   862  	return m.Size()
   863  }
   864  func (m *Message) XXX_DiscardUnknown() {
   865  	xxx_messageInfo_Message.DiscardUnknown(m)
   866  }
   867  
   868  var xxx_messageInfo_Message proto.InternalMessageInfo
   869  
   870  func (m *Message) GetHeader() *Message_Header {
   871  	if m != nil {
   872  		return m.Header
   873  	}
   874  	return nil
   875  }
   876  
   877  func (m *Message) GetMsgType() MessageType {
   878  	if m != nil {
   879  		return m.MsgType
   880  	}
   881  	return MsgUnknown
   882  }
   883  
   884  func (m *Message) GetFrom() github_com_pingcap_tiflow_cdc_model.CaptureID {
   885  	if m != nil {
   886  		return m.From
   887  	}
   888  	return ""
   889  }
   890  
   891  func (m *Message) GetTo() github_com_pingcap_tiflow_cdc_model.CaptureID {
   892  	if m != nil {
   893  		return m.To
   894  	}
   895  	return ""
   896  }
   897  
   898  func (m *Message) GetDispatchTableRequest() *DispatchTableRequest {
   899  	if m != nil {
   900  		return m.DispatchTableRequest
   901  	}
   902  	return nil
   903  }
   904  
   905  func (m *Message) GetDispatchTableResponse() *DispatchTableResponse {
   906  	if m != nil {
   907  		return m.DispatchTableResponse
   908  	}
   909  	return nil
   910  }
   911  
   912  func (m *Message) GetHeartbeat() *Heartbeat {
   913  	if m != nil {
   914  		return m.Heartbeat
   915  	}
   916  	return nil
   917  }
   918  
   919  func (m *Message) GetHeartbeatResponse() *HeartbeatResponse {
   920  	if m != nil {
   921  		return m.HeartbeatResponse
   922  	}
   923  	return nil
   924  }
   925  
   926  type Message_Header struct {
   927  	// The semantic version of the node that sent this message.
   928  	Version         string          `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
   929  	OwnerRevision   OwnerRevision   `protobuf:"bytes,2,opt,name=owner_revision,json=ownerRevision,proto3" json:"owner_revision"`
   930  	ProcessorEpoch  ProcessorEpoch  `protobuf:"bytes,3,opt,name=processor_epoch,json=processorEpoch,proto3" json:"processor_epoch"`
   931  	ChangefeedEpoch ChangefeedEpoch `protobuf:"bytes,4,opt,name=changefeed_epoch,json=changefeedEpoch,proto3" json:"changefeed_epoch"`
   932  }
   933  
   934  func (m *Message_Header) Reset()         { *m = Message_Header{} }
   935  func (m *Message_Header) String() string { return proto.CompactTextString(m) }
   936  func (*Message_Header) ProtoMessage()    {}
   937  func (*Message_Header) Descriptor() ([]byte, []int) {
   938  	return fileDescriptor_86eeacbf6ca5b996, []int{13, 0}
   939  }
   940  func (m *Message_Header) XXX_Unmarshal(b []byte) error {
   941  	return m.Unmarshal(b)
   942  }
   943  func (m *Message_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   944  	if deterministic {
   945  		return xxx_messageInfo_Message_Header.Marshal(b, m, deterministic)
   946  	} else {
   947  		b = b[:cap(b)]
   948  		n, err := m.MarshalToSizedBuffer(b)
   949  		if err != nil {
   950  			return nil, err
   951  		}
   952  		return b[:n], nil
   953  	}
   954  }
   955  func (m *Message_Header) XXX_Merge(src proto.Message) {
   956  	xxx_messageInfo_Message_Header.Merge(m, src)
   957  }
   958  func (m *Message_Header) XXX_Size() int {
   959  	return m.Size()
   960  }
   961  func (m *Message_Header) XXX_DiscardUnknown() {
   962  	xxx_messageInfo_Message_Header.DiscardUnknown(m)
   963  }
   964  
   965  var xxx_messageInfo_Message_Header proto.InternalMessageInfo
   966  
   967  func (m *Message_Header) GetVersion() string {
   968  	if m != nil {
   969  		return m.Version
   970  	}
   971  	return ""
   972  }
   973  
   974  func (m *Message_Header) GetOwnerRevision() OwnerRevision {
   975  	if m != nil {
   976  		return m.OwnerRevision
   977  	}
   978  	return OwnerRevision{}
   979  }
   980  
   981  func (m *Message_Header) GetProcessorEpoch() ProcessorEpoch {
   982  	if m != nil {
   983  		return m.ProcessorEpoch
   984  	}
   985  	return ProcessorEpoch{}
   986  }
   987  
   988  func (m *Message_Header) GetChangefeedEpoch() ChangefeedEpoch {
   989  	if m != nil {
   990  		return m.ChangefeedEpoch
   991  	}
   992  	return ChangefeedEpoch{}
   993  }
   994  
   995  func init() {
   996  	proto.RegisterEnum("pingcap.tiflow.cdc.scheduler.schedulepb.MessageType", MessageType_name, MessageType_value)
   997  	proto.RegisterType((*AddTableRequest)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.AddTableRequest")
   998  	proto.RegisterType((*RemoveTableRequest)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.RemoveTableRequest")
   999  	proto.RegisterType((*DispatchTableRequest)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.DispatchTableRequest")
  1000  	proto.RegisterType((*AddTableResponse)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.AddTableResponse")
  1001  	proto.RegisterType((*RemoveTableResponse)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.RemoveTableResponse")
  1002  	proto.RegisterType((*DispatchTableResponse)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.DispatchTableResponse")
  1003  	proto.RegisterType((*TableBarrier)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.TableBarrier")
  1004  	proto.RegisterType((*Barrier)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.Barrier")
  1005  	proto.RegisterType((*Heartbeat)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.Heartbeat")
  1006  	proto.RegisterType((*HeartbeatResponse)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.HeartbeatResponse")
  1007  	proto.RegisterType((*OwnerRevision)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.OwnerRevision")
  1008  	proto.RegisterType((*ProcessorEpoch)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.ProcessorEpoch")
  1009  	proto.RegisterType((*ChangefeedEpoch)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.ChangefeedEpoch")
  1010  	proto.RegisterType((*Message)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.Message")
  1011  	proto.RegisterType((*Message_Header)(nil), "pingcap.tiflow.cdc.scheduler.schedulepb.Message.Header")
  1012  }
  1013  
  1014  func init() {
  1015  	proto.RegisterFile("scheduler/schedulepb/table_schedule.proto", fileDescriptor_86eeacbf6ca5b996)
  1016  }
  1017  
  1018  var fileDescriptor_86eeacbf6ca5b996 = []byte{
  1019  	// 1175 bytes of a gzipped FileDescriptorProto
  1020  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0x5f, 0x6f, 0xdb, 0x54,
  1021  	0x14, 0x8f, 0x93, 0xb4, 0x71, 0x4e, 0xda, 0x34, 0xbb, 0x74, 0xcc, 0x0a, 0x90, 0x04, 0x23, 0xb1,
  1022  	0xb2, 0x81, 0xb3, 0x05, 0x18, 0x63, 0x03, 0xa4, 0xa5, 0x1d, 0x6a, 0xd1, 0xaa, 0x56, 0x6e, 0x0b,
  1023  	0x08, 0x21, 0x05, 0xc7, 0xbe, 0x75, 0xac, 0x25, 0xbe, 0xc6, 0xd7, 0x6d, 0xd5, 0xaf, 0xd0, 0x27,
  1024  	0xbe, 0x40, 0x3f, 0x00, 0x8f, 0x20, 0x21, 0xf1, 0x30, 0x89, 0xd7, 0x49, 0xbc, 0xf4, 0x11, 0x21,
  1025  	0x14, 0x8d, 0xf6, 0x5b, 0x94, 0x17, 0xe4, 0x7b, 0xaf, 0x9d, 0xa4, 0x4d, 0xc1, 0x29, 0x03, 0x89,
  1026  	0x37, 0xdf, 0x73, 0x7d, 0x7e, 0xe7, 0xcf, 0xfd, 0xfd, 0xce, 0xb5, 0xe1, 0x0d, 0x6a, 0x76, 0xb0,
  1027  	0xb5, 0xd3, 0xc5, 0x7e, 0x3d, 0x7a, 0xf2, 0xda, 0xf5, 0xc0, 0x68, 0x77, 0x71, 0x2b, 0x32, 0x68,
  1028  	0x9e, 0x4f, 0x02, 0x82, 0xae, 0x7b, 0x8e, 0x6b, 0x9b, 0x86, 0xa7, 0x05, 0xce, 0x76, 0x97, 0xec,
  1029  	0x69, 0xa6, 0x65, 0x6a, 0xb1, 0xb7, 0x36, 0xf0, 0x2e, 0xcf, 0xdb, 0xc4, 0x26, 0xcc, 0xa7, 0x1e,
  1030  	0x3e, 0x71, 0xf7, 0xf2, 0x2b, 0x9e, 0x4f, 0x4c, 0x4c, 0x29, 0xf1, 0x39, 0x7c, 0x14, 0x86, 0x6f,
  1031  	0xab, 0xdf, 0xa6, 0x61, 0xee, 0x81, 0x65, 0x6d, 0x86, 0x26, 0x1d, 0x7f, 0xbd, 0x83, 0x69, 0x80,
  1032  	0xb6, 0x40, 0xe6, 0x99, 0x38, 0x96, 0x22, 0xd5, 0xa4, 0x85, 0x4c, 0xf3, 0xde, 0x71, 0xbf, 0x9a,
  1033  	0x63, 0xef, 0xac, 0x2c, 0x9d, 0xf6, 0xab, 0x37, 0x6d, 0x27, 0xe8, 0xec, 0xb4, 0x35, 0x93, 0xf4,
  1034  	0xea, 0x22, 0xbb, 0x3a, 0xcf, 0xae, 0x6e, 0x5a, 0x66, 0xbd, 0x47, 0x2c, 0xdc, 0xd5, 0xc4, 0xeb,
  1035  	0x7a, 0x8e, 0x61, 0xad, 0x58, 0x68, 0x09, 0xb2, 0xd4, 0x33, 0x5c, 0x25, 0x5b, 0x93, 0x16, 0x0a,
  1036  	0x8d, 0x1b, 0xda, 0x98, 0xba, 0xe2, 0x5c, 0x35, 0x91, 0xab, 0xb6, 0xe1, 0x19, 0x6e, 0x33, 0xfb,
  1037  	0xb4, 0x5f, 0x4d, 0xe9, 0xcc, 0x1b, 0xbd, 0x0a, 0x33, 0x0e, 0x6d, 0x51, 0x6c, 0x12, 0xd7, 0x32,
  1038  	0xfc, 0x7d, 0x25, 0x5d, 0x93, 0x16, 0x64, 0xbd, 0xe0, 0xd0, 0x8d, 0xc8, 0x84, 0x3e, 0x05, 0x30,
  1039  	0x3b, 0xd8, 0x7c, 0xec, 0x11, 0xc7, 0x0d, 0x94, 0x0c, 0x0b, 0x77, 0x2b, 0x59, 0xb8, 0xc5, 0xd8,
  1040  	0x4f, 0x04, 0x1d, 0x42, 0x52, 0xbf, 0x93, 0x00, 0xe9, 0xb8, 0x47, 0x76, 0xf1, 0x7f, 0xd9, 0xae,
  1041  	0xf4, 0x3f, 0x69, 0x97, 0xfa, 0x9b, 0x04, 0xf3, 0x4b, 0x0e, 0xf5, 0x8c, 0xc0, 0xec, 0x8c, 0x64,
  1042  	0xfd, 0x19, 0xe4, 0x0d, 0xcb, 0x6a, 0x31, 0x47, 0x96, 0x76, 0xa1, 0x71, 0x57, 0x4b, 0x48, 0x35,
  1043  	0xed, 0x0c, 0x63, 0x96, 0x53, 0xba, 0x6c, 0x08, 0x13, 0xfa, 0x0a, 0x66, 0x7c, 0xd6, 0x24, 0x81,
  1044  	0xcd, 0xf3, 0xbf, 0x9f, 0x18, 0xfb, 0x7c, 0x87, 0x97, 0x53, 0x7a, 0xc1, 0x1f, 0x58, 0x9b, 0x79,
  1045  	0xc8, 0xf9, 0x7c, 0x47, 0xfd, 0x41, 0x82, 0xd2, 0x20, 0x19, 0xea, 0x11, 0x97, 0x62, 0xb4, 0x02,
  1046  	0xd3, 0x34, 0x30, 0x82, 0x1d, 0x2a, 0xea, 0xba, 0x9d, 0xac, 0x77, 0x0c, 0x64, 0x83, 0x39, 0xea,
  1047  	0x02, 0xe0, 0x0c, 0x95, 0xd2, 0xcf, 0x8d, 0x4a, 0x3f, 0x4a, 0xf0, 0xc2, 0x48, 0xa1, 0xff, 0x9f,
  1048  	0xd4, 0x9f, 0x49, 0x70, 0xf5, 0x0c, 0xa3, 0x44, 0xf2, 0x9f, 0x9f, 0xa7, 0xd4, 0xfb, 0x97, 0xa0,
  1049  	0x14, 0x47, 0x1b, 0xe1, 0x94, 0x31, 0x96, 0x53, 0x1f, 0x5c, 0x8e, 0x53, 0x31, 0xfe, 0x08, 0xa9,
  1050  	0x00, 0x64, 0x5f, 0x6c, 0xa9, 0x4f, 0x24, 0x98, 0xe1, 0x56, 0xc3, 0xf7, 0x1d, 0xec, 0xff, 0x5b,
  1051  	0x12, 0xdf, 0x02, 0x68, 0xf3, 0x08, 0xad, 0x80, 0xb2, 0xa2, 0xb2, 0xcd, 0x3b, 0xa7, 0xfd, 0x6a,
  1052  	0xe3, 0xaf, 0xd1, 0xce, 0x4d, 0x74, 0x6d, 0x93, 0xea, 0x79, 0x81, 0xb4, 0x49, 0xd5, 0x9f, 0x25,
  1053  	0xc8, 0x45, 0x99, 0x7f, 0x09, 0x45, 0x9e, 0xb9, 0xd8, 0x0e, 0x89, 0x95, 0x59, 0x28, 0x34, 0xde,
  1054  	0x4d, 0xdc, 0xbb, 0xe1, 0x46, 0xe8, 0xb3, 0xc1, 0xd0, 0x8a, 0xa2, 0x36, 0x5c, 0xb1, 0xbb, 0xa4,
  1055  	0x6d, 0x74, 0x5b, 0xcf, 0xad, 0x8e, 0x39, 0x0e, 0xd8, 0x8c, 0xab, 0xf9, 0x29, 0x0d, 0xf9, 0x65,
  1056  	0x6c, 0xf8, 0x41, 0x1b, 0x1b, 0x41, 0xc8, 0xb1, 0xe8, 0x24, 0x78, 0x29, 0x99, 0xe6, 0xfd, 0xe3,
  1057  	0x7e, 0x55, 0x16, 0xbd, 0xa5, 0x93, 0x9e, 0x85, 0x2c, 0xce, 0x82, 0xa2, 0x2a, 0x14, 0xc2, 0x8b,
  1058  	0x25, 0x20, 0x5e, 0xe8, 0x24, 0xee, 0x15, 0x70, 0xe8, 0x86, 0xb0, 0xa0, 0x8f, 0x61, 0x2a, 0x1c,
  1059  	0xa9, 0x54, 0xc9, 0xb0, 0x0e, 0x4e, 0x3e, 0x91, 0xb9, 0x3b, 0x7a, 0x0d, 0x66, 0x4d, 0xd2, 0xed,
  1060  	0x62, 0x33, 0x68, 0x85, 0x52, 0xa5, 0xec, 0x42, 0x94, 0xf5, 0x19, 0x61, 0x0c, 0x65, 0x4c, 0xd1,
  1061  	0x27, 0x90, 0x13, 0x2d, 0x55, 0xa6, 0x2e, 0x96, 0xee, 0xd8, 0x03, 0x8b, 0xce, 0x2a, 0x02, 0x50,
  1062  	0xbf, 0x97, 0xe0, 0x4a, 0xdc, 0xc1, 0x58, 0xad, 0x6b, 0x30, 0xcd, 0x72, 0x8c, 0x18, 0x31, 0xf9,
  1063  	0xa8, 0x11, 0x65, 0x09, 0x18, 0xf4, 0x08, 0xe4, 0xae, 0xb3, 0x8b, 0x5d, 0x4c, 0x39, 0x07, 0xa6,
  1064  	0x9a, 0xb7, 0x4e, 0xfb, 0xd5, 0x37, 0x93, 0x9c, 0xc6, 0x23, 0xe1, 0xa7, 0xc7, 0x08, 0xea, 0x4d,
  1065  	0x98, 0x5d, 0xdb, 0x73, 0xb1, 0xaf, 0xe3, 0x5d, 0x87, 0x3a, 0xc4, 0x45, 0xe5, 0x50, 0xa0, 0xfc,
  1066  	0x99, 0x6b, 0x50, 0x8f, 0xd7, 0xea, 0xeb, 0x50, 0x5c, 0x8f, 0x32, 0x7d, 0xe8, 0x11, 0xb3, 0x83,
  1067  	0xe6, 0x61, 0x0a, 0x87, 0x0f, 0xec, 0xd5, 0xbc, 0xce, 0x17, 0xea, 0x75, 0x98, 0x5b, 0xec, 0x18,
  1068  	0xae, 0x8d, 0xb7, 0x31, 0xb6, 0xc6, 0xbc, 0x98, 0x8d, 0x5e, 0x7c, 0x22, 0x43, 0x6e, 0x15, 0x53,
  1069  	0x6a, 0xd8, 0xac, 0x51, 0x1d, 0x6c, 0x58, 0xd8, 0x17, 0x33, 0xed, 0xbd, 0xc4, 0x27, 0x21, 0x10,
  1070  	0xb4, 0x65, 0xe6, 0xae, 0x0b, 0x18, 0xb4, 0x06, 0x72, 0x8f, 0xda, 0xad, 0x60, 0xdf, 0xe3, 0x93,
  1071  	0xac, 0xd8, 0x78, 0x67, 0x52, 0xc8, 0xcd, 0x7d, 0x0f, 0xeb, 0xb9, 0x1e, 0xb5, 0xc3, 0x07, 0xf4,
  1072  	0x10, 0xb2, 0xdb, 0x3e, 0xe9, 0xb1, 0x4f, 0x9d, 0x7c, 0xf3, 0xf6, 0x69, 0xbf, 0xfa, 0x56, 0x92,
  1073  	0xae, 0x2f, 0x1a, 0x5e, 0xb0, 0xe3, 0x87, 0x2a, 0x60, 0xee, 0xe8, 0x01, 0xa4, 0x03, 0xc2, 0xd8,
  1074  	0x78, 0x29, 0x90, 0x74, 0x40, 0x10, 0x85, 0x17, 0x2d, 0x71, 0x37, 0xf0, 0x51, 0xdd, 0x12, 0x37,
  1075  	0xb5, 0x60, 0xf1, 0x87, 0x89, 0x0b, 0x1d, 0xf7, 0xd1, 0xa2, 0xcf, 0x5b, 0xe3, 0x3e, 0x65, 0x76,
  1076  	0xe1, 0xda, 0xb9, 0xa0, 0x9c, 0xe4, 0xca, 0x34, 0x8b, 0xfa, 0xd1, 0x65, 0xa3, 0x72, 0x14, 0xfd,
  1077  	0xaa, 0x35, 0xf6, 0xbe, 0x5b, 0x87, 0x7c, 0x27, 0x92, 0x95, 0x92, 0x63, 0x91, 0x1a, 0x89, 0x23,
  1078  	0x0d, 0x04, 0x39, 0x00, 0x41, 0x0e, 0xa0, 0x78, 0x31, 0x28, 0x42, 0x66, 0xd0, 0xf7, 0x2e, 0x01,
  1079  	0x1d, 0x15, 0x70, 0xa5, 0x73, 0xd6, 0x54, 0xfe, 0x35, 0x0d, 0xd3, 0x9c, 0x97, 0x48, 0x81, 0xdc,
  1080  	0x2e, 0xf6, 0x63, 0x61, 0xe5, 0xf5, 0x68, 0x89, 0x4c, 0x28, 0x92, 0x50, 0x84, 0xad, 0x58, 0x79,
  1081  	0xfc, 0xe6, 0xbd, 0x93, 0x38, 0x97, 0x11, 0x0d, 0x8b, 0x81, 0x31, 0x4b, 0x46, 0x84, 0xbd, 0x0d,
  1082  	0x73, 0xf1, 0x98, 0x69, 0x71, 0x2d, 0x66, 0x26, 0x14, 0xda, 0xa8, 0xf8, 0x45, 0x98, 0xa2, 0x37,
  1083  	0x3a, 0x12, 0x1c, 0x28, 0x99, 0xb1, 0xf8, 0x45, 0xa0, 0xec, 0x84, 0x1f, 0xbe, 0x67, 0xa6, 0x87,
  1084  	0x88, 0x34, 0x67, 0x8e, 0x9a, 0x6f, 0xfc, 0x21, 0x41, 0x61, 0x48, 0xa9, 0xa8, 0x02, 0xb0, 0x4a,
  1085  	0xed, 0x2d, 0xf7, 0xb1, 0x4b, 0xf6, 0xdc, 0x52, 0xaa, 0x5c, 0x3c, 0x38, 0xac, 0x0d, 0x59, 0xd0,
  1086  	0x5d, 0xb8, 0xb6, 0x4a, 0xed, 0x71, 0x94, 0x2f, 0x49, 0xe5, 0x97, 0x0e, 0x0e, 0x6b, 0x17, 0x6d,
  1087  	0xa3, 0x7b, 0xa0, 0x9c, 0xdf, 0xe2, 0x47, 0x5c, 0x4a, 0x97, 0x5f, 0x3e, 0x38, 0xac, 0x5d, 0xb8,
  1088  	0x8f, 0x54, 0x98, 0x59, 0xa5, 0x76, 0xcc, 0x96, 0x52, 0xa6, 0x5c, 0x3a, 0x38, 0xac, 0x8d, 0xd8,
  1089  	0x50, 0x03, 0xe6, 0x87, 0xd7, 0x31, 0x76, 0xb6, 0xac, 0x1c, 0x1c, 0xd6, 0xc6, 0xee, 0x35, 0xd7,
  1090  	0x8f, 0x7e, 0xaf, 0xa4, 0x9e, 0x1e, 0x57, 0xa4, 0xa3, 0xe3, 0x8a, 0xf4, 0xec, 0xb8, 0x22, 0x7d,
  1091  	0x73, 0x52, 0x49, 0x1d, 0x9d, 0x54, 0x52, 0xbf, 0x9c, 0x54, 0x52, 0x5f, 0xfc, 0xcd, 0x47, 0xc1,
  1092  	0xb8, 0x1f, 0xe3, 0xf6, 0x34, 0xfb, 0x59, 0x7d, 0xfb, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xba,
  1093  	0x96, 0xe2, 0x0e, 0x37, 0x0f, 0x00, 0x00,
  1094  }
  1095  
  1096  func (m *AddTableRequest) Marshal() (dAtA []byte, err error) {
  1097  	size := m.Size()
  1098  	dAtA = make([]byte, size)
  1099  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1100  	if err != nil {
  1101  		return nil, err
  1102  	}
  1103  	return dAtA[:n], nil
  1104  }
  1105  
  1106  func (m *AddTableRequest) MarshalTo(dAtA []byte) (int, error) {
  1107  	size := m.Size()
  1108  	return m.MarshalToSizedBuffer(dAtA[:size])
  1109  }
  1110  
  1111  func (m *AddTableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1112  	i := len(dAtA)
  1113  	_ = i
  1114  	var l int
  1115  	_ = l
  1116  	{
  1117  		size, err := m.Span.MarshalToSizedBuffer(dAtA[:i])
  1118  		if err != nil {
  1119  			return 0, err
  1120  		}
  1121  		i -= size
  1122  		i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1123  	}
  1124  	i--
  1125  	dAtA[i] = 0x22
  1126  	{
  1127  		size, err := m.Checkpoint.MarshalToSizedBuffer(dAtA[:i])
  1128  		if err != nil {
  1129  			return 0, err
  1130  		}
  1131  		i -= size
  1132  		i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1133  	}
  1134  	i--
  1135  	dAtA[i] = 0x1a
  1136  	if m.IsSecondary {
  1137  		i--
  1138  		if m.IsSecondary {
  1139  			dAtA[i] = 1
  1140  		} else {
  1141  			dAtA[i] = 0
  1142  		}
  1143  		i--
  1144  		dAtA[i] = 0x10
  1145  	}
  1146  	if m.TableID != 0 {
  1147  		i = encodeVarintTableSchedule(dAtA, i, uint64(m.TableID))
  1148  		i--
  1149  		dAtA[i] = 0x8
  1150  	}
  1151  	return len(dAtA) - i, nil
  1152  }
  1153  
  1154  func (m *RemoveTableRequest) Marshal() (dAtA []byte, err error) {
  1155  	size := m.Size()
  1156  	dAtA = make([]byte, size)
  1157  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1158  	if err != nil {
  1159  		return nil, err
  1160  	}
  1161  	return dAtA[:n], nil
  1162  }
  1163  
  1164  func (m *RemoveTableRequest) MarshalTo(dAtA []byte) (int, error) {
  1165  	size := m.Size()
  1166  	return m.MarshalToSizedBuffer(dAtA[:size])
  1167  }
  1168  
  1169  func (m *RemoveTableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1170  	i := len(dAtA)
  1171  	_ = i
  1172  	var l int
  1173  	_ = l
  1174  	{
  1175  		size, err := m.Span.MarshalToSizedBuffer(dAtA[:i])
  1176  		if err != nil {
  1177  			return 0, err
  1178  		}
  1179  		i -= size
  1180  		i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1181  	}
  1182  	i--
  1183  	dAtA[i] = 0x12
  1184  	if m.TableID != 0 {
  1185  		i = encodeVarintTableSchedule(dAtA, i, uint64(m.TableID))
  1186  		i--
  1187  		dAtA[i] = 0x8
  1188  	}
  1189  	return len(dAtA) - i, nil
  1190  }
  1191  
  1192  func (m *DispatchTableRequest) Marshal() (dAtA []byte, err error) {
  1193  	size := m.Size()
  1194  	dAtA = make([]byte, size)
  1195  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1196  	if err != nil {
  1197  		return nil, err
  1198  	}
  1199  	return dAtA[:n], nil
  1200  }
  1201  
  1202  func (m *DispatchTableRequest) MarshalTo(dAtA []byte) (int, error) {
  1203  	size := m.Size()
  1204  	return m.MarshalToSizedBuffer(dAtA[:size])
  1205  }
  1206  
  1207  func (m *DispatchTableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1208  	i := len(dAtA)
  1209  	_ = i
  1210  	var l int
  1211  	_ = l
  1212  	if m.Request != nil {
  1213  		{
  1214  			size := m.Request.Size()
  1215  			i -= size
  1216  			if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil {
  1217  				return 0, err
  1218  			}
  1219  		}
  1220  	}
  1221  	return len(dAtA) - i, nil
  1222  }
  1223  
  1224  func (m *DispatchTableRequest_AddTable) MarshalTo(dAtA []byte) (int, error) {
  1225  	size := m.Size()
  1226  	return m.MarshalToSizedBuffer(dAtA[:size])
  1227  }
  1228  
  1229  func (m *DispatchTableRequest_AddTable) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1230  	i := len(dAtA)
  1231  	if m.AddTable != nil {
  1232  		{
  1233  			size, err := m.AddTable.MarshalToSizedBuffer(dAtA[:i])
  1234  			if err != nil {
  1235  				return 0, err
  1236  			}
  1237  			i -= size
  1238  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1239  		}
  1240  		i--
  1241  		dAtA[i] = 0xa
  1242  	}
  1243  	return len(dAtA) - i, nil
  1244  }
  1245  func (m *DispatchTableRequest_RemoveTable) MarshalTo(dAtA []byte) (int, error) {
  1246  	size := m.Size()
  1247  	return m.MarshalToSizedBuffer(dAtA[:size])
  1248  }
  1249  
  1250  func (m *DispatchTableRequest_RemoveTable) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1251  	i := len(dAtA)
  1252  	if m.RemoveTable != nil {
  1253  		{
  1254  			size, err := m.RemoveTable.MarshalToSizedBuffer(dAtA[:i])
  1255  			if err != nil {
  1256  				return 0, err
  1257  			}
  1258  			i -= size
  1259  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1260  		}
  1261  		i--
  1262  		dAtA[i] = 0x12
  1263  	}
  1264  	return len(dAtA) - i, nil
  1265  }
  1266  func (m *AddTableResponse) Marshal() (dAtA []byte, err error) {
  1267  	size := m.Size()
  1268  	dAtA = make([]byte, size)
  1269  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1270  	if err != nil {
  1271  		return nil, err
  1272  	}
  1273  	return dAtA[:n], nil
  1274  }
  1275  
  1276  func (m *AddTableResponse) MarshalTo(dAtA []byte) (int, error) {
  1277  	size := m.Size()
  1278  	return m.MarshalToSizedBuffer(dAtA[:size])
  1279  }
  1280  
  1281  func (m *AddTableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1282  	i := len(dAtA)
  1283  	_ = i
  1284  	var l int
  1285  	_ = l
  1286  	{
  1287  		size, err := m.Checkpoint.MarshalToSizedBuffer(dAtA[:i])
  1288  		if err != nil {
  1289  			return 0, err
  1290  		}
  1291  		i -= size
  1292  		i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1293  	}
  1294  	i--
  1295  	dAtA[i] = 0x12
  1296  	if m.Status != nil {
  1297  		{
  1298  			size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  1299  			if err != nil {
  1300  				return 0, err
  1301  			}
  1302  			i -= size
  1303  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1304  		}
  1305  		i--
  1306  		dAtA[i] = 0xa
  1307  	}
  1308  	return len(dAtA) - i, nil
  1309  }
  1310  
  1311  func (m *RemoveTableResponse) Marshal() (dAtA []byte, err error) {
  1312  	size := m.Size()
  1313  	dAtA = make([]byte, size)
  1314  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1315  	if err != nil {
  1316  		return nil, err
  1317  	}
  1318  	return dAtA[:n], nil
  1319  }
  1320  
  1321  func (m *RemoveTableResponse) MarshalTo(dAtA []byte) (int, error) {
  1322  	size := m.Size()
  1323  	return m.MarshalToSizedBuffer(dAtA[:size])
  1324  }
  1325  
  1326  func (m *RemoveTableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1327  	i := len(dAtA)
  1328  	_ = i
  1329  	var l int
  1330  	_ = l
  1331  	{
  1332  		size, err := m.Checkpoint.MarshalToSizedBuffer(dAtA[:i])
  1333  		if err != nil {
  1334  			return 0, err
  1335  		}
  1336  		i -= size
  1337  		i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1338  	}
  1339  	i--
  1340  	dAtA[i] = 0x12
  1341  	if m.Status != nil {
  1342  		{
  1343  			size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  1344  			if err != nil {
  1345  				return 0, err
  1346  			}
  1347  			i -= size
  1348  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1349  		}
  1350  		i--
  1351  		dAtA[i] = 0xa
  1352  	}
  1353  	return len(dAtA) - i, nil
  1354  }
  1355  
  1356  func (m *DispatchTableResponse) Marshal() (dAtA []byte, err error) {
  1357  	size := m.Size()
  1358  	dAtA = make([]byte, size)
  1359  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1360  	if err != nil {
  1361  		return nil, err
  1362  	}
  1363  	return dAtA[:n], nil
  1364  }
  1365  
  1366  func (m *DispatchTableResponse) MarshalTo(dAtA []byte) (int, error) {
  1367  	size := m.Size()
  1368  	return m.MarshalToSizedBuffer(dAtA[:size])
  1369  }
  1370  
  1371  func (m *DispatchTableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1372  	i := len(dAtA)
  1373  	_ = i
  1374  	var l int
  1375  	_ = l
  1376  	if m.Response != nil {
  1377  		{
  1378  			size := m.Response.Size()
  1379  			i -= size
  1380  			if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil {
  1381  				return 0, err
  1382  			}
  1383  		}
  1384  	}
  1385  	return len(dAtA) - i, nil
  1386  }
  1387  
  1388  func (m *DispatchTableResponse_AddTable) MarshalTo(dAtA []byte) (int, error) {
  1389  	size := m.Size()
  1390  	return m.MarshalToSizedBuffer(dAtA[:size])
  1391  }
  1392  
  1393  func (m *DispatchTableResponse_AddTable) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1394  	i := len(dAtA)
  1395  	if m.AddTable != nil {
  1396  		{
  1397  			size, err := m.AddTable.MarshalToSizedBuffer(dAtA[:i])
  1398  			if err != nil {
  1399  				return 0, err
  1400  			}
  1401  			i -= size
  1402  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1403  		}
  1404  		i--
  1405  		dAtA[i] = 0xa
  1406  	}
  1407  	return len(dAtA) - i, nil
  1408  }
  1409  func (m *DispatchTableResponse_RemoveTable) MarshalTo(dAtA []byte) (int, error) {
  1410  	size := m.Size()
  1411  	return m.MarshalToSizedBuffer(dAtA[:size])
  1412  }
  1413  
  1414  func (m *DispatchTableResponse_RemoveTable) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1415  	i := len(dAtA)
  1416  	if m.RemoveTable != nil {
  1417  		{
  1418  			size, err := m.RemoveTable.MarshalToSizedBuffer(dAtA[:i])
  1419  			if err != nil {
  1420  				return 0, err
  1421  			}
  1422  			i -= size
  1423  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1424  		}
  1425  		i--
  1426  		dAtA[i] = 0x12
  1427  	}
  1428  	return len(dAtA) - i, nil
  1429  }
  1430  func (m *TableBarrier) Marshal() (dAtA []byte, err error) {
  1431  	size := m.Size()
  1432  	dAtA = make([]byte, size)
  1433  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1434  	if err != nil {
  1435  		return nil, err
  1436  	}
  1437  	return dAtA[:n], nil
  1438  }
  1439  
  1440  func (m *TableBarrier) MarshalTo(dAtA []byte) (int, error) {
  1441  	size := m.Size()
  1442  	return m.MarshalToSizedBuffer(dAtA[:size])
  1443  }
  1444  
  1445  func (m *TableBarrier) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1446  	i := len(dAtA)
  1447  	_ = i
  1448  	var l int
  1449  	_ = l
  1450  	if m.BarrierTs != 0 {
  1451  		i = encodeVarintTableSchedule(dAtA, i, uint64(m.BarrierTs))
  1452  		i--
  1453  		dAtA[i] = 0x10
  1454  	}
  1455  	if m.TableID != 0 {
  1456  		i = encodeVarintTableSchedule(dAtA, i, uint64(m.TableID))
  1457  		i--
  1458  		dAtA[i] = 0x8
  1459  	}
  1460  	return len(dAtA) - i, nil
  1461  }
  1462  
  1463  func (m *Barrier) Marshal() (dAtA []byte, err error) {
  1464  	size := m.Size()
  1465  	dAtA = make([]byte, size)
  1466  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1467  	if err != nil {
  1468  		return nil, err
  1469  	}
  1470  	return dAtA[:n], nil
  1471  }
  1472  
  1473  func (m *Barrier) MarshalTo(dAtA []byte) (int, error) {
  1474  	size := m.Size()
  1475  	return m.MarshalToSizedBuffer(dAtA[:size])
  1476  }
  1477  
  1478  func (m *Barrier) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1479  	i := len(dAtA)
  1480  	_ = i
  1481  	var l int
  1482  	_ = l
  1483  	if m.GlobalBarrierTs != 0 {
  1484  		i = encodeVarintTableSchedule(dAtA, i, uint64(m.GlobalBarrierTs))
  1485  		i--
  1486  		dAtA[i] = 0x10
  1487  	}
  1488  	if len(m.TableBarriers) > 0 {
  1489  		for iNdEx := len(m.TableBarriers) - 1; iNdEx >= 0; iNdEx-- {
  1490  			{
  1491  				size, err := m.TableBarriers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1492  				if err != nil {
  1493  					return 0, err
  1494  				}
  1495  				i -= size
  1496  				i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1497  			}
  1498  			i--
  1499  			dAtA[i] = 0xa
  1500  		}
  1501  	}
  1502  	return len(dAtA) - i, nil
  1503  }
  1504  
  1505  func (m *Heartbeat) Marshal() (dAtA []byte, err error) {
  1506  	size := m.Size()
  1507  	dAtA = make([]byte, size)
  1508  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1509  	if err != nil {
  1510  		return nil, err
  1511  	}
  1512  	return dAtA[:n], nil
  1513  }
  1514  
  1515  func (m *Heartbeat) MarshalTo(dAtA []byte) (int, error) {
  1516  	size := m.Size()
  1517  	return m.MarshalToSizedBuffer(dAtA[:size])
  1518  }
  1519  
  1520  func (m *Heartbeat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1521  	i := len(dAtA)
  1522  	_ = i
  1523  	var l int
  1524  	_ = l
  1525  	if m.Barrier != nil {
  1526  		{
  1527  			size, err := m.Barrier.MarshalToSizedBuffer(dAtA[:i])
  1528  			if err != nil {
  1529  				return 0, err
  1530  			}
  1531  			i -= size
  1532  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1533  		}
  1534  		i--
  1535  		dAtA[i] = 0x2a
  1536  	}
  1537  	if m.CollectStats {
  1538  		i--
  1539  		if m.CollectStats {
  1540  			dAtA[i] = 1
  1541  		} else {
  1542  			dAtA[i] = 0
  1543  		}
  1544  		i--
  1545  		dAtA[i] = 0x20
  1546  	}
  1547  	if len(m.Spans) > 0 {
  1548  		for iNdEx := len(m.Spans) - 1; iNdEx >= 0; iNdEx-- {
  1549  			{
  1550  				size, err := m.Spans[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1551  				if err != nil {
  1552  					return 0, err
  1553  				}
  1554  				i -= size
  1555  				i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1556  			}
  1557  			i--
  1558  			dAtA[i] = 0x1a
  1559  		}
  1560  	}
  1561  	if m.IsStopping {
  1562  		i--
  1563  		if m.IsStopping {
  1564  			dAtA[i] = 1
  1565  		} else {
  1566  			dAtA[i] = 0
  1567  		}
  1568  		i--
  1569  		dAtA[i] = 0x10
  1570  	}
  1571  	if len(m.TableIDs) > 0 {
  1572  		dAtA14 := make([]byte, len(m.TableIDs)*10)
  1573  		var j13 int
  1574  		for _, num1 := range m.TableIDs {
  1575  			num := uint64(num1)
  1576  			for num >= 1<<7 {
  1577  				dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80)
  1578  				num >>= 7
  1579  				j13++
  1580  			}
  1581  			dAtA14[j13] = uint8(num)
  1582  			j13++
  1583  		}
  1584  		i -= j13
  1585  		copy(dAtA[i:], dAtA14[:j13])
  1586  		i = encodeVarintTableSchedule(dAtA, i, uint64(j13))
  1587  		i--
  1588  		dAtA[i] = 0xa
  1589  	}
  1590  	return len(dAtA) - i, nil
  1591  }
  1592  
  1593  func (m *HeartbeatResponse) Marshal() (dAtA []byte, err error) {
  1594  	size := m.Size()
  1595  	dAtA = make([]byte, size)
  1596  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1597  	if err != nil {
  1598  		return nil, err
  1599  	}
  1600  	return dAtA[:n], nil
  1601  }
  1602  
  1603  func (m *HeartbeatResponse) MarshalTo(dAtA []byte) (int, error) {
  1604  	size := m.Size()
  1605  	return m.MarshalToSizedBuffer(dAtA[:size])
  1606  }
  1607  
  1608  func (m *HeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1609  	i := len(dAtA)
  1610  	_ = i
  1611  	var l int
  1612  	_ = l
  1613  	if m.Liveness != 0 {
  1614  		i = encodeVarintTableSchedule(dAtA, i, uint64(m.Liveness))
  1615  		i--
  1616  		dAtA[i] = 0x10
  1617  	}
  1618  	if len(m.Tables) > 0 {
  1619  		for iNdEx := len(m.Tables) - 1; iNdEx >= 0; iNdEx-- {
  1620  			{
  1621  				size, err := m.Tables[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1622  				if err != nil {
  1623  					return 0, err
  1624  				}
  1625  				i -= size
  1626  				i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1627  			}
  1628  			i--
  1629  			dAtA[i] = 0xa
  1630  		}
  1631  	}
  1632  	return len(dAtA) - i, nil
  1633  }
  1634  
  1635  func (m *OwnerRevision) Marshal() (dAtA []byte, err error) {
  1636  	size := m.Size()
  1637  	dAtA = make([]byte, size)
  1638  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1639  	if err != nil {
  1640  		return nil, err
  1641  	}
  1642  	return dAtA[:n], nil
  1643  }
  1644  
  1645  func (m *OwnerRevision) MarshalTo(dAtA []byte) (int, error) {
  1646  	size := m.Size()
  1647  	return m.MarshalToSizedBuffer(dAtA[:size])
  1648  }
  1649  
  1650  func (m *OwnerRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1651  	i := len(dAtA)
  1652  	_ = i
  1653  	var l int
  1654  	_ = l
  1655  	if m.Revision != 0 {
  1656  		i = encodeVarintTableSchedule(dAtA, i, uint64(m.Revision))
  1657  		i--
  1658  		dAtA[i] = 0x8
  1659  	}
  1660  	return len(dAtA) - i, nil
  1661  }
  1662  
  1663  func (m *ProcessorEpoch) Marshal() (dAtA []byte, err error) {
  1664  	size := m.Size()
  1665  	dAtA = make([]byte, size)
  1666  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1667  	if err != nil {
  1668  		return nil, err
  1669  	}
  1670  	return dAtA[:n], nil
  1671  }
  1672  
  1673  func (m *ProcessorEpoch) MarshalTo(dAtA []byte) (int, error) {
  1674  	size := m.Size()
  1675  	return m.MarshalToSizedBuffer(dAtA[:size])
  1676  }
  1677  
  1678  func (m *ProcessorEpoch) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1679  	i := len(dAtA)
  1680  	_ = i
  1681  	var l int
  1682  	_ = l
  1683  	if len(m.Epoch) > 0 {
  1684  		i -= len(m.Epoch)
  1685  		copy(dAtA[i:], m.Epoch)
  1686  		i = encodeVarintTableSchedule(dAtA, i, uint64(len(m.Epoch)))
  1687  		i--
  1688  		dAtA[i] = 0xa
  1689  	}
  1690  	return len(dAtA) - i, nil
  1691  }
  1692  
  1693  func (m *ChangefeedEpoch) Marshal() (dAtA []byte, err error) {
  1694  	size := m.Size()
  1695  	dAtA = make([]byte, size)
  1696  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1697  	if err != nil {
  1698  		return nil, err
  1699  	}
  1700  	return dAtA[:n], nil
  1701  }
  1702  
  1703  func (m *ChangefeedEpoch) MarshalTo(dAtA []byte) (int, error) {
  1704  	size := m.Size()
  1705  	return m.MarshalToSizedBuffer(dAtA[:size])
  1706  }
  1707  
  1708  func (m *ChangefeedEpoch) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1709  	i := len(dAtA)
  1710  	_ = i
  1711  	var l int
  1712  	_ = l
  1713  	if m.Epoch != 0 {
  1714  		i = encodeVarintTableSchedule(dAtA, i, uint64(m.Epoch))
  1715  		i--
  1716  		dAtA[i] = 0x8
  1717  	}
  1718  	return len(dAtA) - i, nil
  1719  }
  1720  
  1721  func (m *Message) Marshal() (dAtA []byte, err error) {
  1722  	size := m.Size()
  1723  	dAtA = make([]byte, size)
  1724  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1725  	if err != nil {
  1726  		return nil, err
  1727  	}
  1728  	return dAtA[:n], nil
  1729  }
  1730  
  1731  func (m *Message) MarshalTo(dAtA []byte) (int, error) {
  1732  	size := m.Size()
  1733  	return m.MarshalToSizedBuffer(dAtA[:size])
  1734  }
  1735  
  1736  func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1737  	i := len(dAtA)
  1738  	_ = i
  1739  	var l int
  1740  	_ = l
  1741  	if m.HeartbeatResponse != nil {
  1742  		{
  1743  			size, err := m.HeartbeatResponse.MarshalToSizedBuffer(dAtA[:i])
  1744  			if err != nil {
  1745  				return 0, err
  1746  			}
  1747  			i -= size
  1748  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1749  		}
  1750  		i--
  1751  		dAtA[i] = 0x42
  1752  	}
  1753  	if m.Heartbeat != nil {
  1754  		{
  1755  			size, err := m.Heartbeat.MarshalToSizedBuffer(dAtA[:i])
  1756  			if err != nil {
  1757  				return 0, err
  1758  			}
  1759  			i -= size
  1760  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1761  		}
  1762  		i--
  1763  		dAtA[i] = 0x3a
  1764  	}
  1765  	if m.DispatchTableResponse != nil {
  1766  		{
  1767  			size, err := m.DispatchTableResponse.MarshalToSizedBuffer(dAtA[:i])
  1768  			if err != nil {
  1769  				return 0, err
  1770  			}
  1771  			i -= size
  1772  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1773  		}
  1774  		i--
  1775  		dAtA[i] = 0x32
  1776  	}
  1777  	if m.DispatchTableRequest != nil {
  1778  		{
  1779  			size, err := m.DispatchTableRequest.MarshalToSizedBuffer(dAtA[:i])
  1780  			if err != nil {
  1781  				return 0, err
  1782  			}
  1783  			i -= size
  1784  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1785  		}
  1786  		i--
  1787  		dAtA[i] = 0x2a
  1788  	}
  1789  	if len(m.To) > 0 {
  1790  		i -= len(m.To)
  1791  		copy(dAtA[i:], m.To)
  1792  		i = encodeVarintTableSchedule(dAtA, i, uint64(len(m.To)))
  1793  		i--
  1794  		dAtA[i] = 0x22
  1795  	}
  1796  	if len(m.From) > 0 {
  1797  		i -= len(m.From)
  1798  		copy(dAtA[i:], m.From)
  1799  		i = encodeVarintTableSchedule(dAtA, i, uint64(len(m.From)))
  1800  		i--
  1801  		dAtA[i] = 0x1a
  1802  	}
  1803  	if m.MsgType != 0 {
  1804  		i = encodeVarintTableSchedule(dAtA, i, uint64(m.MsgType))
  1805  		i--
  1806  		dAtA[i] = 0x10
  1807  	}
  1808  	if m.Header != nil {
  1809  		{
  1810  			size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
  1811  			if err != nil {
  1812  				return 0, err
  1813  			}
  1814  			i -= size
  1815  			i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1816  		}
  1817  		i--
  1818  		dAtA[i] = 0xa
  1819  	}
  1820  	return len(dAtA) - i, nil
  1821  }
  1822  
  1823  func (m *Message_Header) Marshal() (dAtA []byte, err error) {
  1824  	size := m.Size()
  1825  	dAtA = make([]byte, size)
  1826  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1827  	if err != nil {
  1828  		return nil, err
  1829  	}
  1830  	return dAtA[:n], nil
  1831  }
  1832  
  1833  func (m *Message_Header) MarshalTo(dAtA []byte) (int, error) {
  1834  	size := m.Size()
  1835  	return m.MarshalToSizedBuffer(dAtA[:size])
  1836  }
  1837  
  1838  func (m *Message_Header) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1839  	i := len(dAtA)
  1840  	_ = i
  1841  	var l int
  1842  	_ = l
  1843  	{
  1844  		size, err := m.ChangefeedEpoch.MarshalToSizedBuffer(dAtA[:i])
  1845  		if err != nil {
  1846  			return 0, err
  1847  		}
  1848  		i -= size
  1849  		i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1850  	}
  1851  	i--
  1852  	dAtA[i] = 0x22
  1853  	{
  1854  		size, err := m.ProcessorEpoch.MarshalToSizedBuffer(dAtA[:i])
  1855  		if err != nil {
  1856  			return 0, err
  1857  		}
  1858  		i -= size
  1859  		i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1860  	}
  1861  	i--
  1862  	dAtA[i] = 0x1a
  1863  	{
  1864  		size, err := m.OwnerRevision.MarshalToSizedBuffer(dAtA[:i])
  1865  		if err != nil {
  1866  			return 0, err
  1867  		}
  1868  		i -= size
  1869  		i = encodeVarintTableSchedule(dAtA, i, uint64(size))
  1870  	}
  1871  	i--
  1872  	dAtA[i] = 0x12
  1873  	if len(m.Version) > 0 {
  1874  		i -= len(m.Version)
  1875  		copy(dAtA[i:], m.Version)
  1876  		i = encodeVarintTableSchedule(dAtA, i, uint64(len(m.Version)))
  1877  		i--
  1878  		dAtA[i] = 0xa
  1879  	}
  1880  	return len(dAtA) - i, nil
  1881  }
  1882  
  1883  func encodeVarintTableSchedule(dAtA []byte, offset int, v uint64) int {
  1884  	offset -= sovTableSchedule(v)
  1885  	base := offset
  1886  	for v >= 1<<7 {
  1887  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1888  		v >>= 7
  1889  		offset++
  1890  	}
  1891  	dAtA[offset] = uint8(v)
  1892  	return base
  1893  }
  1894  func (m *AddTableRequest) Size() (n int) {
  1895  	if m == nil {
  1896  		return 0
  1897  	}
  1898  	var l int
  1899  	_ = l
  1900  	if m.TableID != 0 {
  1901  		n += 1 + sovTableSchedule(uint64(m.TableID))
  1902  	}
  1903  	if m.IsSecondary {
  1904  		n += 2
  1905  	}
  1906  	l = m.Checkpoint.Size()
  1907  	n += 1 + l + sovTableSchedule(uint64(l))
  1908  	l = m.Span.Size()
  1909  	n += 1 + l + sovTableSchedule(uint64(l))
  1910  	return n
  1911  }
  1912  
  1913  func (m *RemoveTableRequest) Size() (n int) {
  1914  	if m == nil {
  1915  		return 0
  1916  	}
  1917  	var l int
  1918  	_ = l
  1919  	if m.TableID != 0 {
  1920  		n += 1 + sovTableSchedule(uint64(m.TableID))
  1921  	}
  1922  	l = m.Span.Size()
  1923  	n += 1 + l + sovTableSchedule(uint64(l))
  1924  	return n
  1925  }
  1926  
  1927  func (m *DispatchTableRequest) Size() (n int) {
  1928  	if m == nil {
  1929  		return 0
  1930  	}
  1931  	var l int
  1932  	_ = l
  1933  	if m.Request != nil {
  1934  		n += m.Request.Size()
  1935  	}
  1936  	return n
  1937  }
  1938  
  1939  func (m *DispatchTableRequest_AddTable) Size() (n int) {
  1940  	if m == nil {
  1941  		return 0
  1942  	}
  1943  	var l int
  1944  	_ = l
  1945  	if m.AddTable != nil {
  1946  		l = m.AddTable.Size()
  1947  		n += 1 + l + sovTableSchedule(uint64(l))
  1948  	}
  1949  	return n
  1950  }
  1951  func (m *DispatchTableRequest_RemoveTable) Size() (n int) {
  1952  	if m == nil {
  1953  		return 0
  1954  	}
  1955  	var l int
  1956  	_ = l
  1957  	if m.RemoveTable != nil {
  1958  		l = m.RemoveTable.Size()
  1959  		n += 1 + l + sovTableSchedule(uint64(l))
  1960  	}
  1961  	return n
  1962  }
  1963  func (m *AddTableResponse) Size() (n int) {
  1964  	if m == nil {
  1965  		return 0
  1966  	}
  1967  	var l int
  1968  	_ = l
  1969  	if m.Status != nil {
  1970  		l = m.Status.Size()
  1971  		n += 1 + l + sovTableSchedule(uint64(l))
  1972  	}
  1973  	l = m.Checkpoint.Size()
  1974  	n += 1 + l + sovTableSchedule(uint64(l))
  1975  	return n
  1976  }
  1977  
  1978  func (m *RemoveTableResponse) Size() (n int) {
  1979  	if m == nil {
  1980  		return 0
  1981  	}
  1982  	var l int
  1983  	_ = l
  1984  	if m.Status != nil {
  1985  		l = m.Status.Size()
  1986  		n += 1 + l + sovTableSchedule(uint64(l))
  1987  	}
  1988  	l = m.Checkpoint.Size()
  1989  	n += 1 + l + sovTableSchedule(uint64(l))
  1990  	return n
  1991  }
  1992  
  1993  func (m *DispatchTableResponse) Size() (n int) {
  1994  	if m == nil {
  1995  		return 0
  1996  	}
  1997  	var l int
  1998  	_ = l
  1999  	if m.Response != nil {
  2000  		n += m.Response.Size()
  2001  	}
  2002  	return n
  2003  }
  2004  
  2005  func (m *DispatchTableResponse_AddTable) Size() (n int) {
  2006  	if m == nil {
  2007  		return 0
  2008  	}
  2009  	var l int
  2010  	_ = l
  2011  	if m.AddTable != nil {
  2012  		l = m.AddTable.Size()
  2013  		n += 1 + l + sovTableSchedule(uint64(l))
  2014  	}
  2015  	return n
  2016  }
  2017  func (m *DispatchTableResponse_RemoveTable) Size() (n int) {
  2018  	if m == nil {
  2019  		return 0
  2020  	}
  2021  	var l int
  2022  	_ = l
  2023  	if m.RemoveTable != nil {
  2024  		l = m.RemoveTable.Size()
  2025  		n += 1 + l + sovTableSchedule(uint64(l))
  2026  	}
  2027  	return n
  2028  }
  2029  func (m *TableBarrier) Size() (n int) {
  2030  	if m == nil {
  2031  		return 0
  2032  	}
  2033  	var l int
  2034  	_ = l
  2035  	if m.TableID != 0 {
  2036  		n += 1 + sovTableSchedule(uint64(m.TableID))
  2037  	}
  2038  	if m.BarrierTs != 0 {
  2039  		n += 1 + sovTableSchedule(uint64(m.BarrierTs))
  2040  	}
  2041  	return n
  2042  }
  2043  
  2044  func (m *Barrier) Size() (n int) {
  2045  	if m == nil {
  2046  		return 0
  2047  	}
  2048  	var l int
  2049  	_ = l
  2050  	if len(m.TableBarriers) > 0 {
  2051  		for _, e := range m.TableBarriers {
  2052  			l = e.Size()
  2053  			n += 1 + l + sovTableSchedule(uint64(l))
  2054  		}
  2055  	}
  2056  	if m.GlobalBarrierTs != 0 {
  2057  		n += 1 + sovTableSchedule(uint64(m.GlobalBarrierTs))
  2058  	}
  2059  	return n
  2060  }
  2061  
  2062  func (m *Heartbeat) Size() (n int) {
  2063  	if m == nil {
  2064  		return 0
  2065  	}
  2066  	var l int
  2067  	_ = l
  2068  	if len(m.TableIDs) > 0 {
  2069  		l = 0
  2070  		for _, e := range m.TableIDs {
  2071  			l += sovTableSchedule(uint64(e))
  2072  		}
  2073  		n += 1 + sovTableSchedule(uint64(l)) + l
  2074  	}
  2075  	if m.IsStopping {
  2076  		n += 2
  2077  	}
  2078  	if len(m.Spans) > 0 {
  2079  		for _, e := range m.Spans {
  2080  			l = e.Size()
  2081  			n += 1 + l + sovTableSchedule(uint64(l))
  2082  		}
  2083  	}
  2084  	if m.CollectStats {
  2085  		n += 2
  2086  	}
  2087  	if m.Barrier != nil {
  2088  		l = m.Barrier.Size()
  2089  		n += 1 + l + sovTableSchedule(uint64(l))
  2090  	}
  2091  	return n
  2092  }
  2093  
  2094  func (m *HeartbeatResponse) Size() (n int) {
  2095  	if m == nil {
  2096  		return 0
  2097  	}
  2098  	var l int
  2099  	_ = l
  2100  	if len(m.Tables) > 0 {
  2101  		for _, e := range m.Tables {
  2102  			l = e.Size()
  2103  			n += 1 + l + sovTableSchedule(uint64(l))
  2104  		}
  2105  	}
  2106  	if m.Liveness != 0 {
  2107  		n += 1 + sovTableSchedule(uint64(m.Liveness))
  2108  	}
  2109  	return n
  2110  }
  2111  
  2112  func (m *OwnerRevision) Size() (n int) {
  2113  	if m == nil {
  2114  		return 0
  2115  	}
  2116  	var l int
  2117  	_ = l
  2118  	if m.Revision != 0 {
  2119  		n += 1 + sovTableSchedule(uint64(m.Revision))
  2120  	}
  2121  	return n
  2122  }
  2123  
  2124  func (m *ProcessorEpoch) Size() (n int) {
  2125  	if m == nil {
  2126  		return 0
  2127  	}
  2128  	var l int
  2129  	_ = l
  2130  	l = len(m.Epoch)
  2131  	if l > 0 {
  2132  		n += 1 + l + sovTableSchedule(uint64(l))
  2133  	}
  2134  	return n
  2135  }
  2136  
  2137  func (m *ChangefeedEpoch) Size() (n int) {
  2138  	if m == nil {
  2139  		return 0
  2140  	}
  2141  	var l int
  2142  	_ = l
  2143  	if m.Epoch != 0 {
  2144  		n += 1 + sovTableSchedule(uint64(m.Epoch))
  2145  	}
  2146  	return n
  2147  }
  2148  
  2149  func (m *Message) Size() (n int) {
  2150  	if m == nil {
  2151  		return 0
  2152  	}
  2153  	var l int
  2154  	_ = l
  2155  	if m.Header != nil {
  2156  		l = m.Header.Size()
  2157  		n += 1 + l + sovTableSchedule(uint64(l))
  2158  	}
  2159  	if m.MsgType != 0 {
  2160  		n += 1 + sovTableSchedule(uint64(m.MsgType))
  2161  	}
  2162  	l = len(m.From)
  2163  	if l > 0 {
  2164  		n += 1 + l + sovTableSchedule(uint64(l))
  2165  	}
  2166  	l = len(m.To)
  2167  	if l > 0 {
  2168  		n += 1 + l + sovTableSchedule(uint64(l))
  2169  	}
  2170  	if m.DispatchTableRequest != nil {
  2171  		l = m.DispatchTableRequest.Size()
  2172  		n += 1 + l + sovTableSchedule(uint64(l))
  2173  	}
  2174  	if m.DispatchTableResponse != nil {
  2175  		l = m.DispatchTableResponse.Size()
  2176  		n += 1 + l + sovTableSchedule(uint64(l))
  2177  	}
  2178  	if m.Heartbeat != nil {
  2179  		l = m.Heartbeat.Size()
  2180  		n += 1 + l + sovTableSchedule(uint64(l))
  2181  	}
  2182  	if m.HeartbeatResponse != nil {
  2183  		l = m.HeartbeatResponse.Size()
  2184  		n += 1 + l + sovTableSchedule(uint64(l))
  2185  	}
  2186  	return n
  2187  }
  2188  
  2189  func (m *Message_Header) Size() (n int) {
  2190  	if m == nil {
  2191  		return 0
  2192  	}
  2193  	var l int
  2194  	_ = l
  2195  	l = len(m.Version)
  2196  	if l > 0 {
  2197  		n += 1 + l + sovTableSchedule(uint64(l))
  2198  	}
  2199  	l = m.OwnerRevision.Size()
  2200  	n += 1 + l + sovTableSchedule(uint64(l))
  2201  	l = m.ProcessorEpoch.Size()
  2202  	n += 1 + l + sovTableSchedule(uint64(l))
  2203  	l = m.ChangefeedEpoch.Size()
  2204  	n += 1 + l + sovTableSchedule(uint64(l))
  2205  	return n
  2206  }
  2207  
  2208  func sovTableSchedule(x uint64) (n int) {
  2209  	return (math_bits.Len64(x|1) + 6) / 7
  2210  }
  2211  func sozTableSchedule(x uint64) (n int) {
  2212  	return sovTableSchedule(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2213  }
  2214  func (m *AddTableRequest) Unmarshal(dAtA []byte) error {
  2215  	l := len(dAtA)
  2216  	iNdEx := 0
  2217  	for iNdEx < l {
  2218  		preIndex := iNdEx
  2219  		var wire uint64
  2220  		for shift := uint(0); ; shift += 7 {
  2221  			if shift >= 64 {
  2222  				return ErrIntOverflowTableSchedule
  2223  			}
  2224  			if iNdEx >= l {
  2225  				return io.ErrUnexpectedEOF
  2226  			}
  2227  			b := dAtA[iNdEx]
  2228  			iNdEx++
  2229  			wire |= uint64(b&0x7F) << shift
  2230  			if b < 0x80 {
  2231  				break
  2232  			}
  2233  		}
  2234  		fieldNum := int32(wire >> 3)
  2235  		wireType := int(wire & 0x7)
  2236  		if wireType == 4 {
  2237  			return fmt.Errorf("proto: AddTableRequest: wiretype end group for non-group")
  2238  		}
  2239  		if fieldNum <= 0 {
  2240  			return fmt.Errorf("proto: AddTableRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2241  		}
  2242  		switch fieldNum {
  2243  		case 1:
  2244  			if wireType != 0 {
  2245  				return fmt.Errorf("proto: wrong wireType = %d for field TableID", wireType)
  2246  			}
  2247  			m.TableID = 0
  2248  			for shift := uint(0); ; shift += 7 {
  2249  				if shift >= 64 {
  2250  					return ErrIntOverflowTableSchedule
  2251  				}
  2252  				if iNdEx >= l {
  2253  					return io.ErrUnexpectedEOF
  2254  				}
  2255  				b := dAtA[iNdEx]
  2256  				iNdEx++
  2257  				m.TableID |= github_com_pingcap_tiflow_cdc_model.TableID(b&0x7F) << shift
  2258  				if b < 0x80 {
  2259  					break
  2260  				}
  2261  			}
  2262  		case 2:
  2263  			if wireType != 0 {
  2264  				return fmt.Errorf("proto: wrong wireType = %d for field IsSecondary", wireType)
  2265  			}
  2266  			var v int
  2267  			for shift := uint(0); ; shift += 7 {
  2268  				if shift >= 64 {
  2269  					return ErrIntOverflowTableSchedule
  2270  				}
  2271  				if iNdEx >= l {
  2272  					return io.ErrUnexpectedEOF
  2273  				}
  2274  				b := dAtA[iNdEx]
  2275  				iNdEx++
  2276  				v |= int(b&0x7F) << shift
  2277  				if b < 0x80 {
  2278  					break
  2279  				}
  2280  			}
  2281  			m.IsSecondary = bool(v != 0)
  2282  		case 3:
  2283  			if wireType != 2 {
  2284  				return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType)
  2285  			}
  2286  			var msglen int
  2287  			for shift := uint(0); ; shift += 7 {
  2288  				if shift >= 64 {
  2289  					return ErrIntOverflowTableSchedule
  2290  				}
  2291  				if iNdEx >= l {
  2292  					return io.ErrUnexpectedEOF
  2293  				}
  2294  				b := dAtA[iNdEx]
  2295  				iNdEx++
  2296  				msglen |= int(b&0x7F) << shift
  2297  				if b < 0x80 {
  2298  					break
  2299  				}
  2300  			}
  2301  			if msglen < 0 {
  2302  				return ErrInvalidLengthTableSchedule
  2303  			}
  2304  			postIndex := iNdEx + msglen
  2305  			if postIndex < 0 {
  2306  				return ErrInvalidLengthTableSchedule
  2307  			}
  2308  			if postIndex > l {
  2309  				return io.ErrUnexpectedEOF
  2310  			}
  2311  			if err := m.Checkpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2312  				return err
  2313  			}
  2314  			iNdEx = postIndex
  2315  		case 4:
  2316  			if wireType != 2 {
  2317  				return fmt.Errorf("proto: wrong wireType = %d for field Span", wireType)
  2318  			}
  2319  			var msglen int
  2320  			for shift := uint(0); ; shift += 7 {
  2321  				if shift >= 64 {
  2322  					return ErrIntOverflowTableSchedule
  2323  				}
  2324  				if iNdEx >= l {
  2325  					return io.ErrUnexpectedEOF
  2326  				}
  2327  				b := dAtA[iNdEx]
  2328  				iNdEx++
  2329  				msglen |= int(b&0x7F) << shift
  2330  				if b < 0x80 {
  2331  					break
  2332  				}
  2333  			}
  2334  			if msglen < 0 {
  2335  				return ErrInvalidLengthTableSchedule
  2336  			}
  2337  			postIndex := iNdEx + msglen
  2338  			if postIndex < 0 {
  2339  				return ErrInvalidLengthTableSchedule
  2340  			}
  2341  			if postIndex > l {
  2342  				return io.ErrUnexpectedEOF
  2343  			}
  2344  			if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2345  				return err
  2346  			}
  2347  			iNdEx = postIndex
  2348  		default:
  2349  			iNdEx = preIndex
  2350  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  2351  			if err != nil {
  2352  				return err
  2353  			}
  2354  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2355  				return ErrInvalidLengthTableSchedule
  2356  			}
  2357  			if (iNdEx + skippy) > l {
  2358  				return io.ErrUnexpectedEOF
  2359  			}
  2360  			iNdEx += skippy
  2361  		}
  2362  	}
  2363  
  2364  	if iNdEx > l {
  2365  		return io.ErrUnexpectedEOF
  2366  	}
  2367  	return nil
  2368  }
  2369  func (m *RemoveTableRequest) Unmarshal(dAtA []byte) error {
  2370  	l := len(dAtA)
  2371  	iNdEx := 0
  2372  	for iNdEx < l {
  2373  		preIndex := iNdEx
  2374  		var wire uint64
  2375  		for shift := uint(0); ; shift += 7 {
  2376  			if shift >= 64 {
  2377  				return ErrIntOverflowTableSchedule
  2378  			}
  2379  			if iNdEx >= l {
  2380  				return io.ErrUnexpectedEOF
  2381  			}
  2382  			b := dAtA[iNdEx]
  2383  			iNdEx++
  2384  			wire |= uint64(b&0x7F) << shift
  2385  			if b < 0x80 {
  2386  				break
  2387  			}
  2388  		}
  2389  		fieldNum := int32(wire >> 3)
  2390  		wireType := int(wire & 0x7)
  2391  		if wireType == 4 {
  2392  			return fmt.Errorf("proto: RemoveTableRequest: wiretype end group for non-group")
  2393  		}
  2394  		if fieldNum <= 0 {
  2395  			return fmt.Errorf("proto: RemoveTableRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2396  		}
  2397  		switch fieldNum {
  2398  		case 1:
  2399  			if wireType != 0 {
  2400  				return fmt.Errorf("proto: wrong wireType = %d for field TableID", wireType)
  2401  			}
  2402  			m.TableID = 0
  2403  			for shift := uint(0); ; shift += 7 {
  2404  				if shift >= 64 {
  2405  					return ErrIntOverflowTableSchedule
  2406  				}
  2407  				if iNdEx >= l {
  2408  					return io.ErrUnexpectedEOF
  2409  				}
  2410  				b := dAtA[iNdEx]
  2411  				iNdEx++
  2412  				m.TableID |= github_com_pingcap_tiflow_cdc_model.TableID(b&0x7F) << shift
  2413  				if b < 0x80 {
  2414  					break
  2415  				}
  2416  			}
  2417  		case 2:
  2418  			if wireType != 2 {
  2419  				return fmt.Errorf("proto: wrong wireType = %d for field Span", wireType)
  2420  			}
  2421  			var msglen int
  2422  			for shift := uint(0); ; shift += 7 {
  2423  				if shift >= 64 {
  2424  					return ErrIntOverflowTableSchedule
  2425  				}
  2426  				if iNdEx >= l {
  2427  					return io.ErrUnexpectedEOF
  2428  				}
  2429  				b := dAtA[iNdEx]
  2430  				iNdEx++
  2431  				msglen |= int(b&0x7F) << shift
  2432  				if b < 0x80 {
  2433  					break
  2434  				}
  2435  			}
  2436  			if msglen < 0 {
  2437  				return ErrInvalidLengthTableSchedule
  2438  			}
  2439  			postIndex := iNdEx + msglen
  2440  			if postIndex < 0 {
  2441  				return ErrInvalidLengthTableSchedule
  2442  			}
  2443  			if postIndex > l {
  2444  				return io.ErrUnexpectedEOF
  2445  			}
  2446  			if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2447  				return err
  2448  			}
  2449  			iNdEx = postIndex
  2450  		default:
  2451  			iNdEx = preIndex
  2452  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  2453  			if err != nil {
  2454  				return err
  2455  			}
  2456  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2457  				return ErrInvalidLengthTableSchedule
  2458  			}
  2459  			if (iNdEx + skippy) > l {
  2460  				return io.ErrUnexpectedEOF
  2461  			}
  2462  			iNdEx += skippy
  2463  		}
  2464  	}
  2465  
  2466  	if iNdEx > l {
  2467  		return io.ErrUnexpectedEOF
  2468  	}
  2469  	return nil
  2470  }
  2471  func (m *DispatchTableRequest) Unmarshal(dAtA []byte) error {
  2472  	l := len(dAtA)
  2473  	iNdEx := 0
  2474  	for iNdEx < l {
  2475  		preIndex := iNdEx
  2476  		var wire uint64
  2477  		for shift := uint(0); ; shift += 7 {
  2478  			if shift >= 64 {
  2479  				return ErrIntOverflowTableSchedule
  2480  			}
  2481  			if iNdEx >= l {
  2482  				return io.ErrUnexpectedEOF
  2483  			}
  2484  			b := dAtA[iNdEx]
  2485  			iNdEx++
  2486  			wire |= uint64(b&0x7F) << shift
  2487  			if b < 0x80 {
  2488  				break
  2489  			}
  2490  		}
  2491  		fieldNum := int32(wire >> 3)
  2492  		wireType := int(wire & 0x7)
  2493  		if wireType == 4 {
  2494  			return fmt.Errorf("proto: DispatchTableRequest: wiretype end group for non-group")
  2495  		}
  2496  		if fieldNum <= 0 {
  2497  			return fmt.Errorf("proto: DispatchTableRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2498  		}
  2499  		switch fieldNum {
  2500  		case 1:
  2501  			if wireType != 2 {
  2502  				return fmt.Errorf("proto: wrong wireType = %d for field AddTable", wireType)
  2503  			}
  2504  			var msglen int
  2505  			for shift := uint(0); ; shift += 7 {
  2506  				if shift >= 64 {
  2507  					return ErrIntOverflowTableSchedule
  2508  				}
  2509  				if iNdEx >= l {
  2510  					return io.ErrUnexpectedEOF
  2511  				}
  2512  				b := dAtA[iNdEx]
  2513  				iNdEx++
  2514  				msglen |= int(b&0x7F) << shift
  2515  				if b < 0x80 {
  2516  					break
  2517  				}
  2518  			}
  2519  			if msglen < 0 {
  2520  				return ErrInvalidLengthTableSchedule
  2521  			}
  2522  			postIndex := iNdEx + msglen
  2523  			if postIndex < 0 {
  2524  				return ErrInvalidLengthTableSchedule
  2525  			}
  2526  			if postIndex > l {
  2527  				return io.ErrUnexpectedEOF
  2528  			}
  2529  			v := &AddTableRequest{}
  2530  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2531  				return err
  2532  			}
  2533  			m.Request = &DispatchTableRequest_AddTable{v}
  2534  			iNdEx = postIndex
  2535  		case 2:
  2536  			if wireType != 2 {
  2537  				return fmt.Errorf("proto: wrong wireType = %d for field RemoveTable", wireType)
  2538  			}
  2539  			var msglen int
  2540  			for shift := uint(0); ; shift += 7 {
  2541  				if shift >= 64 {
  2542  					return ErrIntOverflowTableSchedule
  2543  				}
  2544  				if iNdEx >= l {
  2545  					return io.ErrUnexpectedEOF
  2546  				}
  2547  				b := dAtA[iNdEx]
  2548  				iNdEx++
  2549  				msglen |= int(b&0x7F) << shift
  2550  				if b < 0x80 {
  2551  					break
  2552  				}
  2553  			}
  2554  			if msglen < 0 {
  2555  				return ErrInvalidLengthTableSchedule
  2556  			}
  2557  			postIndex := iNdEx + msglen
  2558  			if postIndex < 0 {
  2559  				return ErrInvalidLengthTableSchedule
  2560  			}
  2561  			if postIndex > l {
  2562  				return io.ErrUnexpectedEOF
  2563  			}
  2564  			v := &RemoveTableRequest{}
  2565  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2566  				return err
  2567  			}
  2568  			m.Request = &DispatchTableRequest_RemoveTable{v}
  2569  			iNdEx = postIndex
  2570  		default:
  2571  			iNdEx = preIndex
  2572  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  2573  			if err != nil {
  2574  				return err
  2575  			}
  2576  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2577  				return ErrInvalidLengthTableSchedule
  2578  			}
  2579  			if (iNdEx + skippy) > l {
  2580  				return io.ErrUnexpectedEOF
  2581  			}
  2582  			iNdEx += skippy
  2583  		}
  2584  	}
  2585  
  2586  	if iNdEx > l {
  2587  		return io.ErrUnexpectedEOF
  2588  	}
  2589  	return nil
  2590  }
  2591  func (m *AddTableResponse) Unmarshal(dAtA []byte) error {
  2592  	l := len(dAtA)
  2593  	iNdEx := 0
  2594  	for iNdEx < l {
  2595  		preIndex := iNdEx
  2596  		var wire uint64
  2597  		for shift := uint(0); ; shift += 7 {
  2598  			if shift >= 64 {
  2599  				return ErrIntOverflowTableSchedule
  2600  			}
  2601  			if iNdEx >= l {
  2602  				return io.ErrUnexpectedEOF
  2603  			}
  2604  			b := dAtA[iNdEx]
  2605  			iNdEx++
  2606  			wire |= uint64(b&0x7F) << shift
  2607  			if b < 0x80 {
  2608  				break
  2609  			}
  2610  		}
  2611  		fieldNum := int32(wire >> 3)
  2612  		wireType := int(wire & 0x7)
  2613  		if wireType == 4 {
  2614  			return fmt.Errorf("proto: AddTableResponse: wiretype end group for non-group")
  2615  		}
  2616  		if fieldNum <= 0 {
  2617  			return fmt.Errorf("proto: AddTableResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2618  		}
  2619  		switch fieldNum {
  2620  		case 1:
  2621  			if wireType != 2 {
  2622  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2623  			}
  2624  			var msglen int
  2625  			for shift := uint(0); ; shift += 7 {
  2626  				if shift >= 64 {
  2627  					return ErrIntOverflowTableSchedule
  2628  				}
  2629  				if iNdEx >= l {
  2630  					return io.ErrUnexpectedEOF
  2631  				}
  2632  				b := dAtA[iNdEx]
  2633  				iNdEx++
  2634  				msglen |= int(b&0x7F) << shift
  2635  				if b < 0x80 {
  2636  					break
  2637  				}
  2638  			}
  2639  			if msglen < 0 {
  2640  				return ErrInvalidLengthTableSchedule
  2641  			}
  2642  			postIndex := iNdEx + msglen
  2643  			if postIndex < 0 {
  2644  				return ErrInvalidLengthTableSchedule
  2645  			}
  2646  			if postIndex > l {
  2647  				return io.ErrUnexpectedEOF
  2648  			}
  2649  			if m.Status == nil {
  2650  				m.Status = &tablepb.TableStatus{}
  2651  			}
  2652  			if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2653  				return err
  2654  			}
  2655  			iNdEx = postIndex
  2656  		case 2:
  2657  			if wireType != 2 {
  2658  				return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType)
  2659  			}
  2660  			var msglen int
  2661  			for shift := uint(0); ; shift += 7 {
  2662  				if shift >= 64 {
  2663  					return ErrIntOverflowTableSchedule
  2664  				}
  2665  				if iNdEx >= l {
  2666  					return io.ErrUnexpectedEOF
  2667  				}
  2668  				b := dAtA[iNdEx]
  2669  				iNdEx++
  2670  				msglen |= int(b&0x7F) << shift
  2671  				if b < 0x80 {
  2672  					break
  2673  				}
  2674  			}
  2675  			if msglen < 0 {
  2676  				return ErrInvalidLengthTableSchedule
  2677  			}
  2678  			postIndex := iNdEx + msglen
  2679  			if postIndex < 0 {
  2680  				return ErrInvalidLengthTableSchedule
  2681  			}
  2682  			if postIndex > l {
  2683  				return io.ErrUnexpectedEOF
  2684  			}
  2685  			if err := m.Checkpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2686  				return err
  2687  			}
  2688  			iNdEx = postIndex
  2689  		default:
  2690  			iNdEx = preIndex
  2691  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  2692  			if err != nil {
  2693  				return err
  2694  			}
  2695  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2696  				return ErrInvalidLengthTableSchedule
  2697  			}
  2698  			if (iNdEx + skippy) > l {
  2699  				return io.ErrUnexpectedEOF
  2700  			}
  2701  			iNdEx += skippy
  2702  		}
  2703  	}
  2704  
  2705  	if iNdEx > l {
  2706  		return io.ErrUnexpectedEOF
  2707  	}
  2708  	return nil
  2709  }
  2710  func (m *RemoveTableResponse) Unmarshal(dAtA []byte) error {
  2711  	l := len(dAtA)
  2712  	iNdEx := 0
  2713  	for iNdEx < l {
  2714  		preIndex := iNdEx
  2715  		var wire uint64
  2716  		for shift := uint(0); ; shift += 7 {
  2717  			if shift >= 64 {
  2718  				return ErrIntOverflowTableSchedule
  2719  			}
  2720  			if iNdEx >= l {
  2721  				return io.ErrUnexpectedEOF
  2722  			}
  2723  			b := dAtA[iNdEx]
  2724  			iNdEx++
  2725  			wire |= uint64(b&0x7F) << shift
  2726  			if b < 0x80 {
  2727  				break
  2728  			}
  2729  		}
  2730  		fieldNum := int32(wire >> 3)
  2731  		wireType := int(wire & 0x7)
  2732  		if wireType == 4 {
  2733  			return fmt.Errorf("proto: RemoveTableResponse: wiretype end group for non-group")
  2734  		}
  2735  		if fieldNum <= 0 {
  2736  			return fmt.Errorf("proto: RemoveTableResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2737  		}
  2738  		switch fieldNum {
  2739  		case 1:
  2740  			if wireType != 2 {
  2741  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2742  			}
  2743  			var msglen int
  2744  			for shift := uint(0); ; shift += 7 {
  2745  				if shift >= 64 {
  2746  					return ErrIntOverflowTableSchedule
  2747  				}
  2748  				if iNdEx >= l {
  2749  					return io.ErrUnexpectedEOF
  2750  				}
  2751  				b := dAtA[iNdEx]
  2752  				iNdEx++
  2753  				msglen |= int(b&0x7F) << shift
  2754  				if b < 0x80 {
  2755  					break
  2756  				}
  2757  			}
  2758  			if msglen < 0 {
  2759  				return ErrInvalidLengthTableSchedule
  2760  			}
  2761  			postIndex := iNdEx + msglen
  2762  			if postIndex < 0 {
  2763  				return ErrInvalidLengthTableSchedule
  2764  			}
  2765  			if postIndex > l {
  2766  				return io.ErrUnexpectedEOF
  2767  			}
  2768  			if m.Status == nil {
  2769  				m.Status = &tablepb.TableStatus{}
  2770  			}
  2771  			if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2772  				return err
  2773  			}
  2774  			iNdEx = postIndex
  2775  		case 2:
  2776  			if wireType != 2 {
  2777  				return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType)
  2778  			}
  2779  			var msglen int
  2780  			for shift := uint(0); ; shift += 7 {
  2781  				if shift >= 64 {
  2782  					return ErrIntOverflowTableSchedule
  2783  				}
  2784  				if iNdEx >= l {
  2785  					return io.ErrUnexpectedEOF
  2786  				}
  2787  				b := dAtA[iNdEx]
  2788  				iNdEx++
  2789  				msglen |= int(b&0x7F) << shift
  2790  				if b < 0x80 {
  2791  					break
  2792  				}
  2793  			}
  2794  			if msglen < 0 {
  2795  				return ErrInvalidLengthTableSchedule
  2796  			}
  2797  			postIndex := iNdEx + msglen
  2798  			if postIndex < 0 {
  2799  				return ErrInvalidLengthTableSchedule
  2800  			}
  2801  			if postIndex > l {
  2802  				return io.ErrUnexpectedEOF
  2803  			}
  2804  			if err := m.Checkpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2805  				return err
  2806  			}
  2807  			iNdEx = postIndex
  2808  		default:
  2809  			iNdEx = preIndex
  2810  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  2811  			if err != nil {
  2812  				return err
  2813  			}
  2814  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2815  				return ErrInvalidLengthTableSchedule
  2816  			}
  2817  			if (iNdEx + skippy) > l {
  2818  				return io.ErrUnexpectedEOF
  2819  			}
  2820  			iNdEx += skippy
  2821  		}
  2822  	}
  2823  
  2824  	if iNdEx > l {
  2825  		return io.ErrUnexpectedEOF
  2826  	}
  2827  	return nil
  2828  }
  2829  func (m *DispatchTableResponse) Unmarshal(dAtA []byte) error {
  2830  	l := len(dAtA)
  2831  	iNdEx := 0
  2832  	for iNdEx < l {
  2833  		preIndex := iNdEx
  2834  		var wire uint64
  2835  		for shift := uint(0); ; shift += 7 {
  2836  			if shift >= 64 {
  2837  				return ErrIntOverflowTableSchedule
  2838  			}
  2839  			if iNdEx >= l {
  2840  				return io.ErrUnexpectedEOF
  2841  			}
  2842  			b := dAtA[iNdEx]
  2843  			iNdEx++
  2844  			wire |= uint64(b&0x7F) << shift
  2845  			if b < 0x80 {
  2846  				break
  2847  			}
  2848  		}
  2849  		fieldNum := int32(wire >> 3)
  2850  		wireType := int(wire & 0x7)
  2851  		if wireType == 4 {
  2852  			return fmt.Errorf("proto: DispatchTableResponse: wiretype end group for non-group")
  2853  		}
  2854  		if fieldNum <= 0 {
  2855  			return fmt.Errorf("proto: DispatchTableResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2856  		}
  2857  		switch fieldNum {
  2858  		case 1:
  2859  			if wireType != 2 {
  2860  				return fmt.Errorf("proto: wrong wireType = %d for field AddTable", wireType)
  2861  			}
  2862  			var msglen int
  2863  			for shift := uint(0); ; shift += 7 {
  2864  				if shift >= 64 {
  2865  					return ErrIntOverflowTableSchedule
  2866  				}
  2867  				if iNdEx >= l {
  2868  					return io.ErrUnexpectedEOF
  2869  				}
  2870  				b := dAtA[iNdEx]
  2871  				iNdEx++
  2872  				msglen |= int(b&0x7F) << shift
  2873  				if b < 0x80 {
  2874  					break
  2875  				}
  2876  			}
  2877  			if msglen < 0 {
  2878  				return ErrInvalidLengthTableSchedule
  2879  			}
  2880  			postIndex := iNdEx + msglen
  2881  			if postIndex < 0 {
  2882  				return ErrInvalidLengthTableSchedule
  2883  			}
  2884  			if postIndex > l {
  2885  				return io.ErrUnexpectedEOF
  2886  			}
  2887  			v := &AddTableResponse{}
  2888  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2889  				return err
  2890  			}
  2891  			m.Response = &DispatchTableResponse_AddTable{v}
  2892  			iNdEx = postIndex
  2893  		case 2:
  2894  			if wireType != 2 {
  2895  				return fmt.Errorf("proto: wrong wireType = %d for field RemoveTable", wireType)
  2896  			}
  2897  			var msglen int
  2898  			for shift := uint(0); ; shift += 7 {
  2899  				if shift >= 64 {
  2900  					return ErrIntOverflowTableSchedule
  2901  				}
  2902  				if iNdEx >= l {
  2903  					return io.ErrUnexpectedEOF
  2904  				}
  2905  				b := dAtA[iNdEx]
  2906  				iNdEx++
  2907  				msglen |= int(b&0x7F) << shift
  2908  				if b < 0x80 {
  2909  					break
  2910  				}
  2911  			}
  2912  			if msglen < 0 {
  2913  				return ErrInvalidLengthTableSchedule
  2914  			}
  2915  			postIndex := iNdEx + msglen
  2916  			if postIndex < 0 {
  2917  				return ErrInvalidLengthTableSchedule
  2918  			}
  2919  			if postIndex > l {
  2920  				return io.ErrUnexpectedEOF
  2921  			}
  2922  			v := &RemoveTableResponse{}
  2923  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2924  				return err
  2925  			}
  2926  			m.Response = &DispatchTableResponse_RemoveTable{v}
  2927  			iNdEx = postIndex
  2928  		default:
  2929  			iNdEx = preIndex
  2930  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  2931  			if err != nil {
  2932  				return err
  2933  			}
  2934  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2935  				return ErrInvalidLengthTableSchedule
  2936  			}
  2937  			if (iNdEx + skippy) > l {
  2938  				return io.ErrUnexpectedEOF
  2939  			}
  2940  			iNdEx += skippy
  2941  		}
  2942  	}
  2943  
  2944  	if iNdEx > l {
  2945  		return io.ErrUnexpectedEOF
  2946  	}
  2947  	return nil
  2948  }
  2949  func (m *TableBarrier) Unmarshal(dAtA []byte) error {
  2950  	l := len(dAtA)
  2951  	iNdEx := 0
  2952  	for iNdEx < l {
  2953  		preIndex := iNdEx
  2954  		var wire uint64
  2955  		for shift := uint(0); ; shift += 7 {
  2956  			if shift >= 64 {
  2957  				return ErrIntOverflowTableSchedule
  2958  			}
  2959  			if iNdEx >= l {
  2960  				return io.ErrUnexpectedEOF
  2961  			}
  2962  			b := dAtA[iNdEx]
  2963  			iNdEx++
  2964  			wire |= uint64(b&0x7F) << shift
  2965  			if b < 0x80 {
  2966  				break
  2967  			}
  2968  		}
  2969  		fieldNum := int32(wire >> 3)
  2970  		wireType := int(wire & 0x7)
  2971  		if wireType == 4 {
  2972  			return fmt.Errorf("proto: TableBarrier: wiretype end group for non-group")
  2973  		}
  2974  		if fieldNum <= 0 {
  2975  			return fmt.Errorf("proto: TableBarrier: illegal tag %d (wire type %d)", fieldNum, wire)
  2976  		}
  2977  		switch fieldNum {
  2978  		case 1:
  2979  			if wireType != 0 {
  2980  				return fmt.Errorf("proto: wrong wireType = %d for field TableID", wireType)
  2981  			}
  2982  			m.TableID = 0
  2983  			for shift := uint(0); ; shift += 7 {
  2984  				if shift >= 64 {
  2985  					return ErrIntOverflowTableSchedule
  2986  				}
  2987  				if iNdEx >= l {
  2988  					return io.ErrUnexpectedEOF
  2989  				}
  2990  				b := dAtA[iNdEx]
  2991  				iNdEx++
  2992  				m.TableID |= github_com_pingcap_tiflow_cdc_model.TableID(b&0x7F) << shift
  2993  				if b < 0x80 {
  2994  					break
  2995  				}
  2996  			}
  2997  		case 2:
  2998  			if wireType != 0 {
  2999  				return fmt.Errorf("proto: wrong wireType = %d for field BarrierTs", wireType)
  3000  			}
  3001  			m.BarrierTs = 0
  3002  			for shift := uint(0); ; shift += 7 {
  3003  				if shift >= 64 {
  3004  					return ErrIntOverflowTableSchedule
  3005  				}
  3006  				if iNdEx >= l {
  3007  					return io.ErrUnexpectedEOF
  3008  				}
  3009  				b := dAtA[iNdEx]
  3010  				iNdEx++
  3011  				m.BarrierTs |= github_com_pingcap_tiflow_cdc_processor_tablepb.Ts(b&0x7F) << shift
  3012  				if b < 0x80 {
  3013  					break
  3014  				}
  3015  			}
  3016  		default:
  3017  			iNdEx = preIndex
  3018  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  3019  			if err != nil {
  3020  				return err
  3021  			}
  3022  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3023  				return ErrInvalidLengthTableSchedule
  3024  			}
  3025  			if (iNdEx + skippy) > l {
  3026  				return io.ErrUnexpectedEOF
  3027  			}
  3028  			iNdEx += skippy
  3029  		}
  3030  	}
  3031  
  3032  	if iNdEx > l {
  3033  		return io.ErrUnexpectedEOF
  3034  	}
  3035  	return nil
  3036  }
  3037  func (m *Barrier) Unmarshal(dAtA []byte) error {
  3038  	l := len(dAtA)
  3039  	iNdEx := 0
  3040  	for iNdEx < l {
  3041  		preIndex := iNdEx
  3042  		var wire uint64
  3043  		for shift := uint(0); ; shift += 7 {
  3044  			if shift >= 64 {
  3045  				return ErrIntOverflowTableSchedule
  3046  			}
  3047  			if iNdEx >= l {
  3048  				return io.ErrUnexpectedEOF
  3049  			}
  3050  			b := dAtA[iNdEx]
  3051  			iNdEx++
  3052  			wire |= uint64(b&0x7F) << shift
  3053  			if b < 0x80 {
  3054  				break
  3055  			}
  3056  		}
  3057  		fieldNum := int32(wire >> 3)
  3058  		wireType := int(wire & 0x7)
  3059  		if wireType == 4 {
  3060  			return fmt.Errorf("proto: Barrier: wiretype end group for non-group")
  3061  		}
  3062  		if fieldNum <= 0 {
  3063  			return fmt.Errorf("proto: Barrier: illegal tag %d (wire type %d)", fieldNum, wire)
  3064  		}
  3065  		switch fieldNum {
  3066  		case 1:
  3067  			if wireType != 2 {
  3068  				return fmt.Errorf("proto: wrong wireType = %d for field TableBarriers", wireType)
  3069  			}
  3070  			var msglen int
  3071  			for shift := uint(0); ; shift += 7 {
  3072  				if shift >= 64 {
  3073  					return ErrIntOverflowTableSchedule
  3074  				}
  3075  				if iNdEx >= l {
  3076  					return io.ErrUnexpectedEOF
  3077  				}
  3078  				b := dAtA[iNdEx]
  3079  				iNdEx++
  3080  				msglen |= int(b&0x7F) << shift
  3081  				if b < 0x80 {
  3082  					break
  3083  				}
  3084  			}
  3085  			if msglen < 0 {
  3086  				return ErrInvalidLengthTableSchedule
  3087  			}
  3088  			postIndex := iNdEx + msglen
  3089  			if postIndex < 0 {
  3090  				return ErrInvalidLengthTableSchedule
  3091  			}
  3092  			if postIndex > l {
  3093  				return io.ErrUnexpectedEOF
  3094  			}
  3095  			m.TableBarriers = append(m.TableBarriers, &TableBarrier{})
  3096  			if err := m.TableBarriers[len(m.TableBarriers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3097  				return err
  3098  			}
  3099  			iNdEx = postIndex
  3100  		case 2:
  3101  			if wireType != 0 {
  3102  				return fmt.Errorf("proto: wrong wireType = %d for field GlobalBarrierTs", wireType)
  3103  			}
  3104  			m.GlobalBarrierTs = 0
  3105  			for shift := uint(0); ; shift += 7 {
  3106  				if shift >= 64 {
  3107  					return ErrIntOverflowTableSchedule
  3108  				}
  3109  				if iNdEx >= l {
  3110  					return io.ErrUnexpectedEOF
  3111  				}
  3112  				b := dAtA[iNdEx]
  3113  				iNdEx++
  3114  				m.GlobalBarrierTs |= github_com_pingcap_tiflow_cdc_processor_tablepb.Ts(b&0x7F) << shift
  3115  				if b < 0x80 {
  3116  					break
  3117  				}
  3118  			}
  3119  		default:
  3120  			iNdEx = preIndex
  3121  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  3122  			if err != nil {
  3123  				return err
  3124  			}
  3125  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3126  				return ErrInvalidLengthTableSchedule
  3127  			}
  3128  			if (iNdEx + skippy) > l {
  3129  				return io.ErrUnexpectedEOF
  3130  			}
  3131  			iNdEx += skippy
  3132  		}
  3133  	}
  3134  
  3135  	if iNdEx > l {
  3136  		return io.ErrUnexpectedEOF
  3137  	}
  3138  	return nil
  3139  }
  3140  func (m *Heartbeat) Unmarshal(dAtA []byte) error {
  3141  	l := len(dAtA)
  3142  	iNdEx := 0
  3143  	for iNdEx < l {
  3144  		preIndex := iNdEx
  3145  		var wire uint64
  3146  		for shift := uint(0); ; shift += 7 {
  3147  			if shift >= 64 {
  3148  				return ErrIntOverflowTableSchedule
  3149  			}
  3150  			if iNdEx >= l {
  3151  				return io.ErrUnexpectedEOF
  3152  			}
  3153  			b := dAtA[iNdEx]
  3154  			iNdEx++
  3155  			wire |= uint64(b&0x7F) << shift
  3156  			if b < 0x80 {
  3157  				break
  3158  			}
  3159  		}
  3160  		fieldNum := int32(wire >> 3)
  3161  		wireType := int(wire & 0x7)
  3162  		if wireType == 4 {
  3163  			return fmt.Errorf("proto: Heartbeat: wiretype end group for non-group")
  3164  		}
  3165  		if fieldNum <= 0 {
  3166  			return fmt.Errorf("proto: Heartbeat: illegal tag %d (wire type %d)", fieldNum, wire)
  3167  		}
  3168  		switch fieldNum {
  3169  		case 1:
  3170  			if wireType == 0 {
  3171  				var v github_com_pingcap_tiflow_cdc_model.TableID
  3172  				for shift := uint(0); ; shift += 7 {
  3173  					if shift >= 64 {
  3174  						return ErrIntOverflowTableSchedule
  3175  					}
  3176  					if iNdEx >= l {
  3177  						return io.ErrUnexpectedEOF
  3178  					}
  3179  					b := dAtA[iNdEx]
  3180  					iNdEx++
  3181  					v |= github_com_pingcap_tiflow_cdc_model.TableID(b&0x7F) << shift
  3182  					if b < 0x80 {
  3183  						break
  3184  					}
  3185  				}
  3186  				m.TableIDs = append(m.TableIDs, v)
  3187  			} else if wireType == 2 {
  3188  				var packedLen int
  3189  				for shift := uint(0); ; shift += 7 {
  3190  					if shift >= 64 {
  3191  						return ErrIntOverflowTableSchedule
  3192  					}
  3193  					if iNdEx >= l {
  3194  						return io.ErrUnexpectedEOF
  3195  					}
  3196  					b := dAtA[iNdEx]
  3197  					iNdEx++
  3198  					packedLen |= int(b&0x7F) << shift
  3199  					if b < 0x80 {
  3200  						break
  3201  					}
  3202  				}
  3203  				if packedLen < 0 {
  3204  					return ErrInvalidLengthTableSchedule
  3205  				}
  3206  				postIndex := iNdEx + packedLen
  3207  				if postIndex < 0 {
  3208  					return ErrInvalidLengthTableSchedule
  3209  				}
  3210  				if postIndex > l {
  3211  					return io.ErrUnexpectedEOF
  3212  				}
  3213  				var elementCount int
  3214  				var count int
  3215  				for _, integer := range dAtA[iNdEx:postIndex] {
  3216  					if integer < 128 {
  3217  						count++
  3218  					}
  3219  				}
  3220  				elementCount = count
  3221  				if elementCount != 0 && len(m.TableIDs) == 0 {
  3222  					m.TableIDs = make([]github_com_pingcap_tiflow_cdc_model.TableID, 0, elementCount)
  3223  				}
  3224  				for iNdEx < postIndex {
  3225  					var v github_com_pingcap_tiflow_cdc_model.TableID
  3226  					for shift := uint(0); ; shift += 7 {
  3227  						if shift >= 64 {
  3228  							return ErrIntOverflowTableSchedule
  3229  						}
  3230  						if iNdEx >= l {
  3231  							return io.ErrUnexpectedEOF
  3232  						}
  3233  						b := dAtA[iNdEx]
  3234  						iNdEx++
  3235  						v |= github_com_pingcap_tiflow_cdc_model.TableID(b&0x7F) << shift
  3236  						if b < 0x80 {
  3237  							break
  3238  						}
  3239  					}
  3240  					m.TableIDs = append(m.TableIDs, v)
  3241  				}
  3242  			} else {
  3243  				return fmt.Errorf("proto: wrong wireType = %d for field TableIDs", wireType)
  3244  			}
  3245  		case 2:
  3246  			if wireType != 0 {
  3247  				return fmt.Errorf("proto: wrong wireType = %d for field IsStopping", wireType)
  3248  			}
  3249  			var v int
  3250  			for shift := uint(0); ; shift += 7 {
  3251  				if shift >= 64 {
  3252  					return ErrIntOverflowTableSchedule
  3253  				}
  3254  				if iNdEx >= l {
  3255  					return io.ErrUnexpectedEOF
  3256  				}
  3257  				b := dAtA[iNdEx]
  3258  				iNdEx++
  3259  				v |= int(b&0x7F) << shift
  3260  				if b < 0x80 {
  3261  					break
  3262  				}
  3263  			}
  3264  			m.IsStopping = bool(v != 0)
  3265  		case 3:
  3266  			if wireType != 2 {
  3267  				return fmt.Errorf("proto: wrong wireType = %d for field Spans", wireType)
  3268  			}
  3269  			var msglen int
  3270  			for shift := uint(0); ; shift += 7 {
  3271  				if shift >= 64 {
  3272  					return ErrIntOverflowTableSchedule
  3273  				}
  3274  				if iNdEx >= l {
  3275  					return io.ErrUnexpectedEOF
  3276  				}
  3277  				b := dAtA[iNdEx]
  3278  				iNdEx++
  3279  				msglen |= int(b&0x7F) << shift
  3280  				if b < 0x80 {
  3281  					break
  3282  				}
  3283  			}
  3284  			if msglen < 0 {
  3285  				return ErrInvalidLengthTableSchedule
  3286  			}
  3287  			postIndex := iNdEx + msglen
  3288  			if postIndex < 0 {
  3289  				return ErrInvalidLengthTableSchedule
  3290  			}
  3291  			if postIndex > l {
  3292  				return io.ErrUnexpectedEOF
  3293  			}
  3294  			m.Spans = append(m.Spans, tablepb.Span{})
  3295  			if err := m.Spans[len(m.Spans)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3296  				return err
  3297  			}
  3298  			iNdEx = postIndex
  3299  		case 4:
  3300  			if wireType != 0 {
  3301  				return fmt.Errorf("proto: wrong wireType = %d for field CollectStats", wireType)
  3302  			}
  3303  			var v int
  3304  			for shift := uint(0); ; shift += 7 {
  3305  				if shift >= 64 {
  3306  					return ErrIntOverflowTableSchedule
  3307  				}
  3308  				if iNdEx >= l {
  3309  					return io.ErrUnexpectedEOF
  3310  				}
  3311  				b := dAtA[iNdEx]
  3312  				iNdEx++
  3313  				v |= int(b&0x7F) << shift
  3314  				if b < 0x80 {
  3315  					break
  3316  				}
  3317  			}
  3318  			m.CollectStats = bool(v != 0)
  3319  		case 5:
  3320  			if wireType != 2 {
  3321  				return fmt.Errorf("proto: wrong wireType = %d for field Barrier", wireType)
  3322  			}
  3323  			var msglen int
  3324  			for shift := uint(0); ; shift += 7 {
  3325  				if shift >= 64 {
  3326  					return ErrIntOverflowTableSchedule
  3327  				}
  3328  				if iNdEx >= l {
  3329  					return io.ErrUnexpectedEOF
  3330  				}
  3331  				b := dAtA[iNdEx]
  3332  				iNdEx++
  3333  				msglen |= int(b&0x7F) << shift
  3334  				if b < 0x80 {
  3335  					break
  3336  				}
  3337  			}
  3338  			if msglen < 0 {
  3339  				return ErrInvalidLengthTableSchedule
  3340  			}
  3341  			postIndex := iNdEx + msglen
  3342  			if postIndex < 0 {
  3343  				return ErrInvalidLengthTableSchedule
  3344  			}
  3345  			if postIndex > l {
  3346  				return io.ErrUnexpectedEOF
  3347  			}
  3348  			if m.Barrier == nil {
  3349  				m.Barrier = &Barrier{}
  3350  			}
  3351  			if err := m.Barrier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3352  				return err
  3353  			}
  3354  			iNdEx = postIndex
  3355  		default:
  3356  			iNdEx = preIndex
  3357  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  3358  			if err != nil {
  3359  				return err
  3360  			}
  3361  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3362  				return ErrInvalidLengthTableSchedule
  3363  			}
  3364  			if (iNdEx + skippy) > l {
  3365  				return io.ErrUnexpectedEOF
  3366  			}
  3367  			iNdEx += skippy
  3368  		}
  3369  	}
  3370  
  3371  	if iNdEx > l {
  3372  		return io.ErrUnexpectedEOF
  3373  	}
  3374  	return nil
  3375  }
  3376  func (m *HeartbeatResponse) Unmarshal(dAtA []byte) error {
  3377  	l := len(dAtA)
  3378  	iNdEx := 0
  3379  	for iNdEx < l {
  3380  		preIndex := iNdEx
  3381  		var wire uint64
  3382  		for shift := uint(0); ; shift += 7 {
  3383  			if shift >= 64 {
  3384  				return ErrIntOverflowTableSchedule
  3385  			}
  3386  			if iNdEx >= l {
  3387  				return io.ErrUnexpectedEOF
  3388  			}
  3389  			b := dAtA[iNdEx]
  3390  			iNdEx++
  3391  			wire |= uint64(b&0x7F) << shift
  3392  			if b < 0x80 {
  3393  				break
  3394  			}
  3395  		}
  3396  		fieldNum := int32(wire >> 3)
  3397  		wireType := int(wire & 0x7)
  3398  		if wireType == 4 {
  3399  			return fmt.Errorf("proto: HeartbeatResponse: wiretype end group for non-group")
  3400  		}
  3401  		if fieldNum <= 0 {
  3402  			return fmt.Errorf("proto: HeartbeatResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3403  		}
  3404  		switch fieldNum {
  3405  		case 1:
  3406  			if wireType != 2 {
  3407  				return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType)
  3408  			}
  3409  			var msglen int
  3410  			for shift := uint(0); ; shift += 7 {
  3411  				if shift >= 64 {
  3412  					return ErrIntOverflowTableSchedule
  3413  				}
  3414  				if iNdEx >= l {
  3415  					return io.ErrUnexpectedEOF
  3416  				}
  3417  				b := dAtA[iNdEx]
  3418  				iNdEx++
  3419  				msglen |= int(b&0x7F) << shift
  3420  				if b < 0x80 {
  3421  					break
  3422  				}
  3423  			}
  3424  			if msglen < 0 {
  3425  				return ErrInvalidLengthTableSchedule
  3426  			}
  3427  			postIndex := iNdEx + msglen
  3428  			if postIndex < 0 {
  3429  				return ErrInvalidLengthTableSchedule
  3430  			}
  3431  			if postIndex > l {
  3432  				return io.ErrUnexpectedEOF
  3433  			}
  3434  			m.Tables = append(m.Tables, tablepb.TableStatus{})
  3435  			if err := m.Tables[len(m.Tables)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3436  				return err
  3437  			}
  3438  			iNdEx = postIndex
  3439  		case 2:
  3440  			if wireType != 0 {
  3441  				return fmt.Errorf("proto: wrong wireType = %d for field Liveness", wireType)
  3442  			}
  3443  			m.Liveness = 0
  3444  			for shift := uint(0); ; shift += 7 {
  3445  				if shift >= 64 {
  3446  					return ErrIntOverflowTableSchedule
  3447  				}
  3448  				if iNdEx >= l {
  3449  					return io.ErrUnexpectedEOF
  3450  				}
  3451  				b := dAtA[iNdEx]
  3452  				iNdEx++
  3453  				m.Liveness |= github_com_pingcap_tiflow_cdc_model.Liveness(b&0x7F) << shift
  3454  				if b < 0x80 {
  3455  					break
  3456  				}
  3457  			}
  3458  		default:
  3459  			iNdEx = preIndex
  3460  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  3461  			if err != nil {
  3462  				return err
  3463  			}
  3464  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3465  				return ErrInvalidLengthTableSchedule
  3466  			}
  3467  			if (iNdEx + skippy) > l {
  3468  				return io.ErrUnexpectedEOF
  3469  			}
  3470  			iNdEx += skippy
  3471  		}
  3472  	}
  3473  
  3474  	if iNdEx > l {
  3475  		return io.ErrUnexpectedEOF
  3476  	}
  3477  	return nil
  3478  }
  3479  func (m *OwnerRevision) Unmarshal(dAtA []byte) error {
  3480  	l := len(dAtA)
  3481  	iNdEx := 0
  3482  	for iNdEx < l {
  3483  		preIndex := iNdEx
  3484  		var wire uint64
  3485  		for shift := uint(0); ; shift += 7 {
  3486  			if shift >= 64 {
  3487  				return ErrIntOverflowTableSchedule
  3488  			}
  3489  			if iNdEx >= l {
  3490  				return io.ErrUnexpectedEOF
  3491  			}
  3492  			b := dAtA[iNdEx]
  3493  			iNdEx++
  3494  			wire |= uint64(b&0x7F) << shift
  3495  			if b < 0x80 {
  3496  				break
  3497  			}
  3498  		}
  3499  		fieldNum := int32(wire >> 3)
  3500  		wireType := int(wire & 0x7)
  3501  		if wireType == 4 {
  3502  			return fmt.Errorf("proto: OwnerRevision: wiretype end group for non-group")
  3503  		}
  3504  		if fieldNum <= 0 {
  3505  			return fmt.Errorf("proto: OwnerRevision: illegal tag %d (wire type %d)", fieldNum, wire)
  3506  		}
  3507  		switch fieldNum {
  3508  		case 1:
  3509  			if wireType != 0 {
  3510  				return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
  3511  			}
  3512  			m.Revision = 0
  3513  			for shift := uint(0); ; shift += 7 {
  3514  				if shift >= 64 {
  3515  					return ErrIntOverflowTableSchedule
  3516  				}
  3517  				if iNdEx >= l {
  3518  					return io.ErrUnexpectedEOF
  3519  				}
  3520  				b := dAtA[iNdEx]
  3521  				iNdEx++
  3522  				m.Revision |= int64(b&0x7F) << shift
  3523  				if b < 0x80 {
  3524  					break
  3525  				}
  3526  			}
  3527  		default:
  3528  			iNdEx = preIndex
  3529  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  3530  			if err != nil {
  3531  				return err
  3532  			}
  3533  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3534  				return ErrInvalidLengthTableSchedule
  3535  			}
  3536  			if (iNdEx + skippy) > l {
  3537  				return io.ErrUnexpectedEOF
  3538  			}
  3539  			iNdEx += skippy
  3540  		}
  3541  	}
  3542  
  3543  	if iNdEx > l {
  3544  		return io.ErrUnexpectedEOF
  3545  	}
  3546  	return nil
  3547  }
  3548  func (m *ProcessorEpoch) Unmarshal(dAtA []byte) error {
  3549  	l := len(dAtA)
  3550  	iNdEx := 0
  3551  	for iNdEx < l {
  3552  		preIndex := iNdEx
  3553  		var wire uint64
  3554  		for shift := uint(0); ; shift += 7 {
  3555  			if shift >= 64 {
  3556  				return ErrIntOverflowTableSchedule
  3557  			}
  3558  			if iNdEx >= l {
  3559  				return io.ErrUnexpectedEOF
  3560  			}
  3561  			b := dAtA[iNdEx]
  3562  			iNdEx++
  3563  			wire |= uint64(b&0x7F) << shift
  3564  			if b < 0x80 {
  3565  				break
  3566  			}
  3567  		}
  3568  		fieldNum := int32(wire >> 3)
  3569  		wireType := int(wire & 0x7)
  3570  		if wireType == 4 {
  3571  			return fmt.Errorf("proto: ProcessorEpoch: wiretype end group for non-group")
  3572  		}
  3573  		if fieldNum <= 0 {
  3574  			return fmt.Errorf("proto: ProcessorEpoch: illegal tag %d (wire type %d)", fieldNum, wire)
  3575  		}
  3576  		switch fieldNum {
  3577  		case 1:
  3578  			if wireType != 2 {
  3579  				return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType)
  3580  			}
  3581  			var stringLen uint64
  3582  			for shift := uint(0); ; shift += 7 {
  3583  				if shift >= 64 {
  3584  					return ErrIntOverflowTableSchedule
  3585  				}
  3586  				if iNdEx >= l {
  3587  					return io.ErrUnexpectedEOF
  3588  				}
  3589  				b := dAtA[iNdEx]
  3590  				iNdEx++
  3591  				stringLen |= uint64(b&0x7F) << shift
  3592  				if b < 0x80 {
  3593  					break
  3594  				}
  3595  			}
  3596  			intStringLen := int(stringLen)
  3597  			if intStringLen < 0 {
  3598  				return ErrInvalidLengthTableSchedule
  3599  			}
  3600  			postIndex := iNdEx + intStringLen
  3601  			if postIndex < 0 {
  3602  				return ErrInvalidLengthTableSchedule
  3603  			}
  3604  			if postIndex > l {
  3605  				return io.ErrUnexpectedEOF
  3606  			}
  3607  			m.Epoch = string(dAtA[iNdEx:postIndex])
  3608  			iNdEx = postIndex
  3609  		default:
  3610  			iNdEx = preIndex
  3611  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  3612  			if err != nil {
  3613  				return err
  3614  			}
  3615  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3616  				return ErrInvalidLengthTableSchedule
  3617  			}
  3618  			if (iNdEx + skippy) > l {
  3619  				return io.ErrUnexpectedEOF
  3620  			}
  3621  			iNdEx += skippy
  3622  		}
  3623  	}
  3624  
  3625  	if iNdEx > l {
  3626  		return io.ErrUnexpectedEOF
  3627  	}
  3628  	return nil
  3629  }
  3630  func (m *ChangefeedEpoch) Unmarshal(dAtA []byte) error {
  3631  	l := len(dAtA)
  3632  	iNdEx := 0
  3633  	for iNdEx < l {
  3634  		preIndex := iNdEx
  3635  		var wire uint64
  3636  		for shift := uint(0); ; shift += 7 {
  3637  			if shift >= 64 {
  3638  				return ErrIntOverflowTableSchedule
  3639  			}
  3640  			if iNdEx >= l {
  3641  				return io.ErrUnexpectedEOF
  3642  			}
  3643  			b := dAtA[iNdEx]
  3644  			iNdEx++
  3645  			wire |= uint64(b&0x7F) << shift
  3646  			if b < 0x80 {
  3647  				break
  3648  			}
  3649  		}
  3650  		fieldNum := int32(wire >> 3)
  3651  		wireType := int(wire & 0x7)
  3652  		if wireType == 4 {
  3653  			return fmt.Errorf("proto: ChangefeedEpoch: wiretype end group for non-group")
  3654  		}
  3655  		if fieldNum <= 0 {
  3656  			return fmt.Errorf("proto: ChangefeedEpoch: illegal tag %d (wire type %d)", fieldNum, wire)
  3657  		}
  3658  		switch fieldNum {
  3659  		case 1:
  3660  			if wireType != 0 {
  3661  				return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType)
  3662  			}
  3663  			m.Epoch = 0
  3664  			for shift := uint(0); ; shift += 7 {
  3665  				if shift >= 64 {
  3666  					return ErrIntOverflowTableSchedule
  3667  				}
  3668  				if iNdEx >= l {
  3669  					return io.ErrUnexpectedEOF
  3670  				}
  3671  				b := dAtA[iNdEx]
  3672  				iNdEx++
  3673  				m.Epoch |= uint64(b&0x7F) << shift
  3674  				if b < 0x80 {
  3675  					break
  3676  				}
  3677  			}
  3678  		default:
  3679  			iNdEx = preIndex
  3680  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  3681  			if err != nil {
  3682  				return err
  3683  			}
  3684  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3685  				return ErrInvalidLengthTableSchedule
  3686  			}
  3687  			if (iNdEx + skippy) > l {
  3688  				return io.ErrUnexpectedEOF
  3689  			}
  3690  			iNdEx += skippy
  3691  		}
  3692  	}
  3693  
  3694  	if iNdEx > l {
  3695  		return io.ErrUnexpectedEOF
  3696  	}
  3697  	return nil
  3698  }
  3699  func (m *Message) Unmarshal(dAtA []byte) error {
  3700  	l := len(dAtA)
  3701  	iNdEx := 0
  3702  	for iNdEx < l {
  3703  		preIndex := iNdEx
  3704  		var wire uint64
  3705  		for shift := uint(0); ; shift += 7 {
  3706  			if shift >= 64 {
  3707  				return ErrIntOverflowTableSchedule
  3708  			}
  3709  			if iNdEx >= l {
  3710  				return io.ErrUnexpectedEOF
  3711  			}
  3712  			b := dAtA[iNdEx]
  3713  			iNdEx++
  3714  			wire |= uint64(b&0x7F) << shift
  3715  			if b < 0x80 {
  3716  				break
  3717  			}
  3718  		}
  3719  		fieldNum := int32(wire >> 3)
  3720  		wireType := int(wire & 0x7)
  3721  		if wireType == 4 {
  3722  			return fmt.Errorf("proto: Message: wiretype end group for non-group")
  3723  		}
  3724  		if fieldNum <= 0 {
  3725  			return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
  3726  		}
  3727  		switch fieldNum {
  3728  		case 1:
  3729  			if wireType != 2 {
  3730  				return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  3731  			}
  3732  			var msglen int
  3733  			for shift := uint(0); ; shift += 7 {
  3734  				if shift >= 64 {
  3735  					return ErrIntOverflowTableSchedule
  3736  				}
  3737  				if iNdEx >= l {
  3738  					return io.ErrUnexpectedEOF
  3739  				}
  3740  				b := dAtA[iNdEx]
  3741  				iNdEx++
  3742  				msglen |= int(b&0x7F) << shift
  3743  				if b < 0x80 {
  3744  					break
  3745  				}
  3746  			}
  3747  			if msglen < 0 {
  3748  				return ErrInvalidLengthTableSchedule
  3749  			}
  3750  			postIndex := iNdEx + msglen
  3751  			if postIndex < 0 {
  3752  				return ErrInvalidLengthTableSchedule
  3753  			}
  3754  			if postIndex > l {
  3755  				return io.ErrUnexpectedEOF
  3756  			}
  3757  			if m.Header == nil {
  3758  				m.Header = &Message_Header{}
  3759  			}
  3760  			if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3761  				return err
  3762  			}
  3763  			iNdEx = postIndex
  3764  		case 2:
  3765  			if wireType != 0 {
  3766  				return fmt.Errorf("proto: wrong wireType = %d for field MsgType", wireType)
  3767  			}
  3768  			m.MsgType = 0
  3769  			for shift := uint(0); ; shift += 7 {
  3770  				if shift >= 64 {
  3771  					return ErrIntOverflowTableSchedule
  3772  				}
  3773  				if iNdEx >= l {
  3774  					return io.ErrUnexpectedEOF
  3775  				}
  3776  				b := dAtA[iNdEx]
  3777  				iNdEx++
  3778  				m.MsgType |= MessageType(b&0x7F) << shift
  3779  				if b < 0x80 {
  3780  					break
  3781  				}
  3782  			}
  3783  		case 3:
  3784  			if wireType != 2 {
  3785  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  3786  			}
  3787  			var stringLen uint64
  3788  			for shift := uint(0); ; shift += 7 {
  3789  				if shift >= 64 {
  3790  					return ErrIntOverflowTableSchedule
  3791  				}
  3792  				if iNdEx >= l {
  3793  					return io.ErrUnexpectedEOF
  3794  				}
  3795  				b := dAtA[iNdEx]
  3796  				iNdEx++
  3797  				stringLen |= uint64(b&0x7F) << shift
  3798  				if b < 0x80 {
  3799  					break
  3800  				}
  3801  			}
  3802  			intStringLen := int(stringLen)
  3803  			if intStringLen < 0 {
  3804  				return ErrInvalidLengthTableSchedule
  3805  			}
  3806  			postIndex := iNdEx + intStringLen
  3807  			if postIndex < 0 {
  3808  				return ErrInvalidLengthTableSchedule
  3809  			}
  3810  			if postIndex > l {
  3811  				return io.ErrUnexpectedEOF
  3812  			}
  3813  			m.From = github_com_pingcap_tiflow_cdc_model.CaptureID(dAtA[iNdEx:postIndex])
  3814  			iNdEx = postIndex
  3815  		case 4:
  3816  			if wireType != 2 {
  3817  				return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
  3818  			}
  3819  			var stringLen uint64
  3820  			for shift := uint(0); ; shift += 7 {
  3821  				if shift >= 64 {
  3822  					return ErrIntOverflowTableSchedule
  3823  				}
  3824  				if iNdEx >= l {
  3825  					return io.ErrUnexpectedEOF
  3826  				}
  3827  				b := dAtA[iNdEx]
  3828  				iNdEx++
  3829  				stringLen |= uint64(b&0x7F) << shift
  3830  				if b < 0x80 {
  3831  					break
  3832  				}
  3833  			}
  3834  			intStringLen := int(stringLen)
  3835  			if intStringLen < 0 {
  3836  				return ErrInvalidLengthTableSchedule
  3837  			}
  3838  			postIndex := iNdEx + intStringLen
  3839  			if postIndex < 0 {
  3840  				return ErrInvalidLengthTableSchedule
  3841  			}
  3842  			if postIndex > l {
  3843  				return io.ErrUnexpectedEOF
  3844  			}
  3845  			m.To = github_com_pingcap_tiflow_cdc_model.CaptureID(dAtA[iNdEx:postIndex])
  3846  			iNdEx = postIndex
  3847  		case 5:
  3848  			if wireType != 2 {
  3849  				return fmt.Errorf("proto: wrong wireType = %d for field DispatchTableRequest", wireType)
  3850  			}
  3851  			var msglen int
  3852  			for shift := uint(0); ; shift += 7 {
  3853  				if shift >= 64 {
  3854  					return ErrIntOverflowTableSchedule
  3855  				}
  3856  				if iNdEx >= l {
  3857  					return io.ErrUnexpectedEOF
  3858  				}
  3859  				b := dAtA[iNdEx]
  3860  				iNdEx++
  3861  				msglen |= int(b&0x7F) << shift
  3862  				if b < 0x80 {
  3863  					break
  3864  				}
  3865  			}
  3866  			if msglen < 0 {
  3867  				return ErrInvalidLengthTableSchedule
  3868  			}
  3869  			postIndex := iNdEx + msglen
  3870  			if postIndex < 0 {
  3871  				return ErrInvalidLengthTableSchedule
  3872  			}
  3873  			if postIndex > l {
  3874  				return io.ErrUnexpectedEOF
  3875  			}
  3876  			if m.DispatchTableRequest == nil {
  3877  				m.DispatchTableRequest = &DispatchTableRequest{}
  3878  			}
  3879  			if err := m.DispatchTableRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3880  				return err
  3881  			}
  3882  			iNdEx = postIndex
  3883  		case 6:
  3884  			if wireType != 2 {
  3885  				return fmt.Errorf("proto: wrong wireType = %d for field DispatchTableResponse", wireType)
  3886  			}
  3887  			var msglen int
  3888  			for shift := uint(0); ; shift += 7 {
  3889  				if shift >= 64 {
  3890  					return ErrIntOverflowTableSchedule
  3891  				}
  3892  				if iNdEx >= l {
  3893  					return io.ErrUnexpectedEOF
  3894  				}
  3895  				b := dAtA[iNdEx]
  3896  				iNdEx++
  3897  				msglen |= int(b&0x7F) << shift
  3898  				if b < 0x80 {
  3899  					break
  3900  				}
  3901  			}
  3902  			if msglen < 0 {
  3903  				return ErrInvalidLengthTableSchedule
  3904  			}
  3905  			postIndex := iNdEx + msglen
  3906  			if postIndex < 0 {
  3907  				return ErrInvalidLengthTableSchedule
  3908  			}
  3909  			if postIndex > l {
  3910  				return io.ErrUnexpectedEOF
  3911  			}
  3912  			if m.DispatchTableResponse == nil {
  3913  				m.DispatchTableResponse = &DispatchTableResponse{}
  3914  			}
  3915  			if err := m.DispatchTableResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3916  				return err
  3917  			}
  3918  			iNdEx = postIndex
  3919  		case 7:
  3920  			if wireType != 2 {
  3921  				return fmt.Errorf("proto: wrong wireType = %d for field Heartbeat", wireType)
  3922  			}
  3923  			var msglen int
  3924  			for shift := uint(0); ; shift += 7 {
  3925  				if shift >= 64 {
  3926  					return ErrIntOverflowTableSchedule
  3927  				}
  3928  				if iNdEx >= l {
  3929  					return io.ErrUnexpectedEOF
  3930  				}
  3931  				b := dAtA[iNdEx]
  3932  				iNdEx++
  3933  				msglen |= int(b&0x7F) << shift
  3934  				if b < 0x80 {
  3935  					break
  3936  				}
  3937  			}
  3938  			if msglen < 0 {
  3939  				return ErrInvalidLengthTableSchedule
  3940  			}
  3941  			postIndex := iNdEx + msglen
  3942  			if postIndex < 0 {
  3943  				return ErrInvalidLengthTableSchedule
  3944  			}
  3945  			if postIndex > l {
  3946  				return io.ErrUnexpectedEOF
  3947  			}
  3948  			if m.Heartbeat == nil {
  3949  				m.Heartbeat = &Heartbeat{}
  3950  			}
  3951  			if err := m.Heartbeat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3952  				return err
  3953  			}
  3954  			iNdEx = postIndex
  3955  		case 8:
  3956  			if wireType != 2 {
  3957  				return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatResponse", wireType)
  3958  			}
  3959  			var msglen int
  3960  			for shift := uint(0); ; shift += 7 {
  3961  				if shift >= 64 {
  3962  					return ErrIntOverflowTableSchedule
  3963  				}
  3964  				if iNdEx >= l {
  3965  					return io.ErrUnexpectedEOF
  3966  				}
  3967  				b := dAtA[iNdEx]
  3968  				iNdEx++
  3969  				msglen |= int(b&0x7F) << shift
  3970  				if b < 0x80 {
  3971  					break
  3972  				}
  3973  			}
  3974  			if msglen < 0 {
  3975  				return ErrInvalidLengthTableSchedule
  3976  			}
  3977  			postIndex := iNdEx + msglen
  3978  			if postIndex < 0 {
  3979  				return ErrInvalidLengthTableSchedule
  3980  			}
  3981  			if postIndex > l {
  3982  				return io.ErrUnexpectedEOF
  3983  			}
  3984  			if m.HeartbeatResponse == nil {
  3985  				m.HeartbeatResponse = &HeartbeatResponse{}
  3986  			}
  3987  			if err := m.HeartbeatResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3988  				return err
  3989  			}
  3990  			iNdEx = postIndex
  3991  		default:
  3992  			iNdEx = preIndex
  3993  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  3994  			if err != nil {
  3995  				return err
  3996  			}
  3997  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3998  				return ErrInvalidLengthTableSchedule
  3999  			}
  4000  			if (iNdEx + skippy) > l {
  4001  				return io.ErrUnexpectedEOF
  4002  			}
  4003  			iNdEx += skippy
  4004  		}
  4005  	}
  4006  
  4007  	if iNdEx > l {
  4008  		return io.ErrUnexpectedEOF
  4009  	}
  4010  	return nil
  4011  }
  4012  func (m *Message_Header) Unmarshal(dAtA []byte) error {
  4013  	l := len(dAtA)
  4014  	iNdEx := 0
  4015  	for iNdEx < l {
  4016  		preIndex := iNdEx
  4017  		var wire uint64
  4018  		for shift := uint(0); ; shift += 7 {
  4019  			if shift >= 64 {
  4020  				return ErrIntOverflowTableSchedule
  4021  			}
  4022  			if iNdEx >= l {
  4023  				return io.ErrUnexpectedEOF
  4024  			}
  4025  			b := dAtA[iNdEx]
  4026  			iNdEx++
  4027  			wire |= uint64(b&0x7F) << shift
  4028  			if b < 0x80 {
  4029  				break
  4030  			}
  4031  		}
  4032  		fieldNum := int32(wire >> 3)
  4033  		wireType := int(wire & 0x7)
  4034  		if wireType == 4 {
  4035  			return fmt.Errorf("proto: Header: wiretype end group for non-group")
  4036  		}
  4037  		if fieldNum <= 0 {
  4038  			return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire)
  4039  		}
  4040  		switch fieldNum {
  4041  		case 1:
  4042  			if wireType != 2 {
  4043  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  4044  			}
  4045  			var stringLen uint64
  4046  			for shift := uint(0); ; shift += 7 {
  4047  				if shift >= 64 {
  4048  					return ErrIntOverflowTableSchedule
  4049  				}
  4050  				if iNdEx >= l {
  4051  					return io.ErrUnexpectedEOF
  4052  				}
  4053  				b := dAtA[iNdEx]
  4054  				iNdEx++
  4055  				stringLen |= uint64(b&0x7F) << shift
  4056  				if b < 0x80 {
  4057  					break
  4058  				}
  4059  			}
  4060  			intStringLen := int(stringLen)
  4061  			if intStringLen < 0 {
  4062  				return ErrInvalidLengthTableSchedule
  4063  			}
  4064  			postIndex := iNdEx + intStringLen
  4065  			if postIndex < 0 {
  4066  				return ErrInvalidLengthTableSchedule
  4067  			}
  4068  			if postIndex > l {
  4069  				return io.ErrUnexpectedEOF
  4070  			}
  4071  			m.Version = string(dAtA[iNdEx:postIndex])
  4072  			iNdEx = postIndex
  4073  		case 2:
  4074  			if wireType != 2 {
  4075  				return fmt.Errorf("proto: wrong wireType = %d for field OwnerRevision", wireType)
  4076  			}
  4077  			var msglen int
  4078  			for shift := uint(0); ; shift += 7 {
  4079  				if shift >= 64 {
  4080  					return ErrIntOverflowTableSchedule
  4081  				}
  4082  				if iNdEx >= l {
  4083  					return io.ErrUnexpectedEOF
  4084  				}
  4085  				b := dAtA[iNdEx]
  4086  				iNdEx++
  4087  				msglen |= int(b&0x7F) << shift
  4088  				if b < 0x80 {
  4089  					break
  4090  				}
  4091  			}
  4092  			if msglen < 0 {
  4093  				return ErrInvalidLengthTableSchedule
  4094  			}
  4095  			postIndex := iNdEx + msglen
  4096  			if postIndex < 0 {
  4097  				return ErrInvalidLengthTableSchedule
  4098  			}
  4099  			if postIndex > l {
  4100  				return io.ErrUnexpectedEOF
  4101  			}
  4102  			if err := m.OwnerRevision.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4103  				return err
  4104  			}
  4105  			iNdEx = postIndex
  4106  		case 3:
  4107  			if wireType != 2 {
  4108  				return fmt.Errorf("proto: wrong wireType = %d for field ProcessorEpoch", wireType)
  4109  			}
  4110  			var msglen int
  4111  			for shift := uint(0); ; shift += 7 {
  4112  				if shift >= 64 {
  4113  					return ErrIntOverflowTableSchedule
  4114  				}
  4115  				if iNdEx >= l {
  4116  					return io.ErrUnexpectedEOF
  4117  				}
  4118  				b := dAtA[iNdEx]
  4119  				iNdEx++
  4120  				msglen |= int(b&0x7F) << shift
  4121  				if b < 0x80 {
  4122  					break
  4123  				}
  4124  			}
  4125  			if msglen < 0 {
  4126  				return ErrInvalidLengthTableSchedule
  4127  			}
  4128  			postIndex := iNdEx + msglen
  4129  			if postIndex < 0 {
  4130  				return ErrInvalidLengthTableSchedule
  4131  			}
  4132  			if postIndex > l {
  4133  				return io.ErrUnexpectedEOF
  4134  			}
  4135  			if err := m.ProcessorEpoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4136  				return err
  4137  			}
  4138  			iNdEx = postIndex
  4139  		case 4:
  4140  			if wireType != 2 {
  4141  				return fmt.Errorf("proto: wrong wireType = %d for field ChangefeedEpoch", wireType)
  4142  			}
  4143  			var msglen int
  4144  			for shift := uint(0); ; shift += 7 {
  4145  				if shift >= 64 {
  4146  					return ErrIntOverflowTableSchedule
  4147  				}
  4148  				if iNdEx >= l {
  4149  					return io.ErrUnexpectedEOF
  4150  				}
  4151  				b := dAtA[iNdEx]
  4152  				iNdEx++
  4153  				msglen |= int(b&0x7F) << shift
  4154  				if b < 0x80 {
  4155  					break
  4156  				}
  4157  			}
  4158  			if msglen < 0 {
  4159  				return ErrInvalidLengthTableSchedule
  4160  			}
  4161  			postIndex := iNdEx + msglen
  4162  			if postIndex < 0 {
  4163  				return ErrInvalidLengthTableSchedule
  4164  			}
  4165  			if postIndex > l {
  4166  				return io.ErrUnexpectedEOF
  4167  			}
  4168  			if err := m.ChangefeedEpoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4169  				return err
  4170  			}
  4171  			iNdEx = postIndex
  4172  		default:
  4173  			iNdEx = preIndex
  4174  			skippy, err := skipTableSchedule(dAtA[iNdEx:])
  4175  			if err != nil {
  4176  				return err
  4177  			}
  4178  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4179  				return ErrInvalidLengthTableSchedule
  4180  			}
  4181  			if (iNdEx + skippy) > l {
  4182  				return io.ErrUnexpectedEOF
  4183  			}
  4184  			iNdEx += skippy
  4185  		}
  4186  	}
  4187  
  4188  	if iNdEx > l {
  4189  		return io.ErrUnexpectedEOF
  4190  	}
  4191  	return nil
  4192  }
  4193  func skipTableSchedule(dAtA []byte) (n int, err error) {
  4194  	l := len(dAtA)
  4195  	iNdEx := 0
  4196  	depth := 0
  4197  	for iNdEx < l {
  4198  		var wire uint64
  4199  		for shift := uint(0); ; shift += 7 {
  4200  			if shift >= 64 {
  4201  				return 0, ErrIntOverflowTableSchedule
  4202  			}
  4203  			if iNdEx >= l {
  4204  				return 0, io.ErrUnexpectedEOF
  4205  			}
  4206  			b := dAtA[iNdEx]
  4207  			iNdEx++
  4208  			wire |= (uint64(b) & 0x7F) << shift
  4209  			if b < 0x80 {
  4210  				break
  4211  			}
  4212  		}
  4213  		wireType := int(wire & 0x7)
  4214  		switch wireType {
  4215  		case 0:
  4216  			for shift := uint(0); ; shift += 7 {
  4217  				if shift >= 64 {
  4218  					return 0, ErrIntOverflowTableSchedule
  4219  				}
  4220  				if iNdEx >= l {
  4221  					return 0, io.ErrUnexpectedEOF
  4222  				}
  4223  				iNdEx++
  4224  				if dAtA[iNdEx-1] < 0x80 {
  4225  					break
  4226  				}
  4227  			}
  4228  		case 1:
  4229  			iNdEx += 8
  4230  		case 2:
  4231  			var length int
  4232  			for shift := uint(0); ; shift += 7 {
  4233  				if shift >= 64 {
  4234  					return 0, ErrIntOverflowTableSchedule
  4235  				}
  4236  				if iNdEx >= l {
  4237  					return 0, io.ErrUnexpectedEOF
  4238  				}
  4239  				b := dAtA[iNdEx]
  4240  				iNdEx++
  4241  				length |= (int(b) & 0x7F) << shift
  4242  				if b < 0x80 {
  4243  					break
  4244  				}
  4245  			}
  4246  			if length < 0 {
  4247  				return 0, ErrInvalidLengthTableSchedule
  4248  			}
  4249  			iNdEx += length
  4250  		case 3:
  4251  			depth++
  4252  		case 4:
  4253  			if depth == 0 {
  4254  				return 0, ErrUnexpectedEndOfGroupTableSchedule
  4255  			}
  4256  			depth--
  4257  		case 5:
  4258  			iNdEx += 4
  4259  		default:
  4260  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4261  		}
  4262  		if iNdEx < 0 {
  4263  			return 0, ErrInvalidLengthTableSchedule
  4264  		}
  4265  		if depth == 0 {
  4266  			return iNdEx, nil
  4267  		}
  4268  	}
  4269  	return 0, io.ErrUnexpectedEOF
  4270  }
  4271  
  4272  var (
  4273  	ErrInvalidLengthTableSchedule        = fmt.Errorf("proto: negative length found during unmarshaling")
  4274  	ErrIntOverflowTableSchedule          = fmt.Errorf("proto: integer overflow")
  4275  	ErrUnexpectedEndOfGroupTableSchedule = fmt.Errorf("proto: unexpected end of group")
  4276  )