github.com/pingcap/tidb-lightning@v5.0.0-rc.0.20210428090220-84b649866577+incompatible/lightning/checkpoints/file_checkpoints.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: lightning/checkpoints/file_checkpoints.proto
     3  
     4  package checkpoints
     5  
     6  import (
     7  	encoding_binary "encoding/binary"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	io "io"
    12  	math "math"
    13  	math_bits "math/bits"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  type CheckpointsModel struct {
    28  	// key is table_name
    29  	Checkpoints    map[string]*TableCheckpointModel `protobuf:"bytes,1,rep,name=checkpoints,proto3" json:"checkpoints,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    30  	TaskCheckpoint *TaskCheckpointModel             `protobuf:"bytes,2,opt,name=task_checkpoint,json=taskCheckpoint,proto3" json:"task_checkpoint,omitempty"`
    31  }
    32  
    33  func (m *CheckpointsModel) Reset()         { *m = CheckpointsModel{} }
    34  func (m *CheckpointsModel) String() string { return proto.CompactTextString(m) }
    35  func (*CheckpointsModel) ProtoMessage()    {}
    36  func (*CheckpointsModel) Descriptor() ([]byte, []int) {
    37  	return fileDescriptor_deb32a9bf46ada61, []int{0}
    38  }
    39  func (m *CheckpointsModel) XXX_Unmarshal(b []byte) error {
    40  	return m.Unmarshal(b)
    41  }
    42  func (m *CheckpointsModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    43  	if deterministic {
    44  		return xxx_messageInfo_CheckpointsModel.Marshal(b, m, deterministic)
    45  	} else {
    46  		b = b[:cap(b)]
    47  		n, err := m.MarshalToSizedBuffer(b)
    48  		if err != nil {
    49  			return nil, err
    50  		}
    51  		return b[:n], nil
    52  	}
    53  }
    54  func (m *CheckpointsModel) XXX_Merge(src proto.Message) {
    55  	xxx_messageInfo_CheckpointsModel.Merge(m, src)
    56  }
    57  func (m *CheckpointsModel) XXX_Size() int {
    58  	return m.Size()
    59  }
    60  func (m *CheckpointsModel) XXX_DiscardUnknown() {
    61  	xxx_messageInfo_CheckpointsModel.DiscardUnknown(m)
    62  }
    63  
    64  var xxx_messageInfo_CheckpointsModel proto.InternalMessageInfo
    65  
    66  type TaskCheckpointModel struct {
    67  	TaskId       int64  `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
    68  	SourceDir    string `protobuf:"bytes,2,opt,name=source_dir,json=sourceDir,proto3" json:"source_dir,omitempty"`
    69  	Backend      string `protobuf:"bytes,3,opt,name=backend,proto3" json:"backend,omitempty"`
    70  	ImporterAddr string `protobuf:"bytes,4,opt,name=importer_addr,json=importerAddr,proto3" json:"importer_addr,omitempty"`
    71  	TidbHost     string `protobuf:"bytes,5,opt,name=tidb_host,json=tidbHost,proto3" json:"tidb_host,omitempty"`
    72  	TidbPort     int32  `protobuf:"varint,6,opt,name=tidb_port,json=tidbPort,proto3" json:"tidb_port,omitempty"`
    73  	PdAddr       string `protobuf:"bytes,7,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"`
    74  	SortedKvDir  string `protobuf:"bytes,8,opt,name=sorted_kv_dir,json=sortedKvDir,proto3" json:"sorted_kv_dir,omitempty"`
    75  	LightningVer string `protobuf:"bytes,9,opt,name=lightning_ver,json=lightningVer,proto3" json:"lightning_ver,omitempty"`
    76  }
    77  
    78  func (m *TaskCheckpointModel) Reset()         { *m = TaskCheckpointModel{} }
    79  func (m *TaskCheckpointModel) String() string { return proto.CompactTextString(m) }
    80  func (*TaskCheckpointModel) ProtoMessage()    {}
    81  func (*TaskCheckpointModel) Descriptor() ([]byte, []int) {
    82  	return fileDescriptor_deb32a9bf46ada61, []int{1}
    83  }
    84  func (m *TaskCheckpointModel) XXX_Unmarshal(b []byte) error {
    85  	return m.Unmarshal(b)
    86  }
    87  func (m *TaskCheckpointModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    88  	if deterministic {
    89  		return xxx_messageInfo_TaskCheckpointModel.Marshal(b, m, deterministic)
    90  	} else {
    91  		b = b[:cap(b)]
    92  		n, err := m.MarshalToSizedBuffer(b)
    93  		if err != nil {
    94  			return nil, err
    95  		}
    96  		return b[:n], nil
    97  	}
    98  }
    99  func (m *TaskCheckpointModel) XXX_Merge(src proto.Message) {
   100  	xxx_messageInfo_TaskCheckpointModel.Merge(m, src)
   101  }
   102  func (m *TaskCheckpointModel) XXX_Size() int {
   103  	return m.Size()
   104  }
   105  func (m *TaskCheckpointModel) XXX_DiscardUnknown() {
   106  	xxx_messageInfo_TaskCheckpointModel.DiscardUnknown(m)
   107  }
   108  
   109  var xxx_messageInfo_TaskCheckpointModel proto.InternalMessageInfo
   110  
   111  type TableCheckpointModel struct {
   112  	Hash      []byte                           `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
   113  	Status    uint32                           `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
   114  	AllocBase int64                            `protobuf:"varint,4,opt,name=alloc_base,json=allocBase,proto3" json:"alloc_base,omitempty"`
   115  	Engines   map[int32]*EngineCheckpointModel `protobuf:"bytes,8,rep,name=engines,proto3" json:"engines,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   116  	TableID   int64                            `protobuf:"varint,9,opt,name=tableID,proto3" json:"tableID,omitempty"`
   117  }
   118  
   119  func (m *TableCheckpointModel) Reset()         { *m = TableCheckpointModel{} }
   120  func (m *TableCheckpointModel) String() string { return proto.CompactTextString(m) }
   121  func (*TableCheckpointModel) ProtoMessage()    {}
   122  func (*TableCheckpointModel) Descriptor() ([]byte, []int) {
   123  	return fileDescriptor_deb32a9bf46ada61, []int{2}
   124  }
   125  func (m *TableCheckpointModel) XXX_Unmarshal(b []byte) error {
   126  	return m.Unmarshal(b)
   127  }
   128  func (m *TableCheckpointModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   129  	if deterministic {
   130  		return xxx_messageInfo_TableCheckpointModel.Marshal(b, m, deterministic)
   131  	} else {
   132  		b = b[:cap(b)]
   133  		n, err := m.MarshalToSizedBuffer(b)
   134  		if err != nil {
   135  			return nil, err
   136  		}
   137  		return b[:n], nil
   138  	}
   139  }
   140  func (m *TableCheckpointModel) XXX_Merge(src proto.Message) {
   141  	xxx_messageInfo_TableCheckpointModel.Merge(m, src)
   142  }
   143  func (m *TableCheckpointModel) XXX_Size() int {
   144  	return m.Size()
   145  }
   146  func (m *TableCheckpointModel) XXX_DiscardUnknown() {
   147  	xxx_messageInfo_TableCheckpointModel.DiscardUnknown(m)
   148  }
   149  
   150  var xxx_messageInfo_TableCheckpointModel proto.InternalMessageInfo
   151  
   152  type EngineCheckpointModel struct {
   153  	Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
   154  	// key is "$path:$offset"
   155  	Chunks map[string]*ChunkCheckpointModel `protobuf:"bytes,2,rep,name=chunks,proto3" json:"chunks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   156  }
   157  
   158  func (m *EngineCheckpointModel) Reset()         { *m = EngineCheckpointModel{} }
   159  func (m *EngineCheckpointModel) String() string { return proto.CompactTextString(m) }
   160  func (*EngineCheckpointModel) ProtoMessage()    {}
   161  func (*EngineCheckpointModel) Descriptor() ([]byte, []int) {
   162  	return fileDescriptor_deb32a9bf46ada61, []int{3}
   163  }
   164  func (m *EngineCheckpointModel) XXX_Unmarshal(b []byte) error {
   165  	return m.Unmarshal(b)
   166  }
   167  func (m *EngineCheckpointModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   168  	if deterministic {
   169  		return xxx_messageInfo_EngineCheckpointModel.Marshal(b, m, deterministic)
   170  	} else {
   171  		b = b[:cap(b)]
   172  		n, err := m.MarshalToSizedBuffer(b)
   173  		if err != nil {
   174  			return nil, err
   175  		}
   176  		return b[:n], nil
   177  	}
   178  }
   179  func (m *EngineCheckpointModel) XXX_Merge(src proto.Message) {
   180  	xxx_messageInfo_EngineCheckpointModel.Merge(m, src)
   181  }
   182  func (m *EngineCheckpointModel) XXX_Size() int {
   183  	return m.Size()
   184  }
   185  func (m *EngineCheckpointModel) XXX_DiscardUnknown() {
   186  	xxx_messageInfo_EngineCheckpointModel.DiscardUnknown(m)
   187  }
   188  
   189  var xxx_messageInfo_EngineCheckpointModel proto.InternalMessageInfo
   190  
   191  type ChunkCheckpointModel struct {
   192  	Path              string  `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
   193  	Offset            int64   `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
   194  	ColumnPermutation []int32 `protobuf:"varint,12,rep,packed,name=column_permutation,json=columnPermutation,proto3" json:"column_permutation,omitempty"`
   195  	EndOffset         int64   `protobuf:"varint,5,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"`
   196  	Pos               int64   `protobuf:"varint,6,opt,name=pos,proto3" json:"pos,omitempty"`
   197  	PrevRowidMax      int64   `protobuf:"varint,7,opt,name=prev_rowid_max,json=prevRowidMax,proto3" json:"prev_rowid_max,omitempty"`
   198  	RowidMax          int64   `protobuf:"varint,8,opt,name=rowid_max,json=rowidMax,proto3" json:"rowid_max,omitempty"`
   199  	KvcBytes          uint64  `protobuf:"varint,9,opt,name=kvc_bytes,json=kvcBytes,proto3" json:"kvc_bytes,omitempty"`
   200  	KvcKvs            uint64  `protobuf:"varint,10,opt,name=kvc_kvs,json=kvcKvs,proto3" json:"kvc_kvs,omitempty"`
   201  	KvcChecksum       uint64  `protobuf:"fixed64,11,opt,name=kvc_checksum,json=kvcChecksum,proto3" json:"kvc_checksum,omitempty"`
   202  	Timestamp         int64   `protobuf:"fixed64,13,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   203  	Type              int32   `protobuf:"varint,14,opt,name=type,proto3" json:"type,omitempty"`
   204  	Compression       int32   `protobuf:"varint,15,opt,name=compression,proto3" json:"compression,omitempty"`
   205  	SortKey           string  `protobuf:"bytes,16,opt,name=sort_key,json=sortKey,proto3" json:"sort_key,omitempty"`
   206  	FileSize          int64   `protobuf:"varint,17,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
   207  }
   208  
   209  func (m *ChunkCheckpointModel) Reset()         { *m = ChunkCheckpointModel{} }
   210  func (m *ChunkCheckpointModel) String() string { return proto.CompactTextString(m) }
   211  func (*ChunkCheckpointModel) ProtoMessage()    {}
   212  func (*ChunkCheckpointModel) Descriptor() ([]byte, []int) {
   213  	return fileDescriptor_deb32a9bf46ada61, []int{4}
   214  }
   215  func (m *ChunkCheckpointModel) XXX_Unmarshal(b []byte) error {
   216  	return m.Unmarshal(b)
   217  }
   218  func (m *ChunkCheckpointModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   219  	if deterministic {
   220  		return xxx_messageInfo_ChunkCheckpointModel.Marshal(b, m, deterministic)
   221  	} else {
   222  		b = b[:cap(b)]
   223  		n, err := m.MarshalToSizedBuffer(b)
   224  		if err != nil {
   225  			return nil, err
   226  		}
   227  		return b[:n], nil
   228  	}
   229  }
   230  func (m *ChunkCheckpointModel) XXX_Merge(src proto.Message) {
   231  	xxx_messageInfo_ChunkCheckpointModel.Merge(m, src)
   232  }
   233  func (m *ChunkCheckpointModel) XXX_Size() int {
   234  	return m.Size()
   235  }
   236  func (m *ChunkCheckpointModel) XXX_DiscardUnknown() {
   237  	xxx_messageInfo_ChunkCheckpointModel.DiscardUnknown(m)
   238  }
   239  
   240  var xxx_messageInfo_ChunkCheckpointModel proto.InternalMessageInfo
   241  
   242  func init() {
   243  	proto.RegisterType((*CheckpointsModel)(nil), "CheckpointsModel")
   244  	proto.RegisterMapType((map[string]*TableCheckpointModel)(nil), "CheckpointsModel.CheckpointsEntry")
   245  	proto.RegisterType((*TaskCheckpointModel)(nil), "TaskCheckpointModel")
   246  	proto.RegisterType((*TableCheckpointModel)(nil), "TableCheckpointModel")
   247  	proto.RegisterMapType((map[int32]*EngineCheckpointModel)(nil), "TableCheckpointModel.EnginesEntry")
   248  	proto.RegisterType((*EngineCheckpointModel)(nil), "EngineCheckpointModel")
   249  	proto.RegisterMapType((map[string]*ChunkCheckpointModel)(nil), "EngineCheckpointModel.ChunksEntry")
   250  	proto.RegisterType((*ChunkCheckpointModel)(nil), "ChunkCheckpointModel")
   251  }
   252  
   253  func init() {
   254  	proto.RegisterFile("lightning/checkpoints/file_checkpoints.proto", fileDescriptor_deb32a9bf46ada61)
   255  }
   256  
   257  var fileDescriptor_deb32a9bf46ada61 = []byte{
   258  	// 820 bytes of a gzipped FileDescriptorProto
   259  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0x1b, 0x37,
   260  	0x10, 0xf6, 0x6a, 0x2d, 0x59, 0xa2, 0x24, 0x47, 0x66, 0x9d, 0x94, 0x75, 0x5b, 0x41, 0x55, 0x7a,
   261  	0x50, 0xd1, 0x44, 0x06, 0xd2, 0x4b, 0x11, 0xb4, 0x87, 0xda, 0x0e, 0xd0, 0xc0, 0x08, 0x6a, 0xb0,
   262  	0x69, 0x0f, 0xbd, 0x2c, 0xa8, 0x25, 0xad, 0x5d, 0xec, 0x0f, 0x17, 0x24, 0x77, 0x1b, 0xe5, 0x1d,
   263  	0x0a, 0xf4, 0x31, 0xfa, 0x12, 0xbd, 0x07, 0x3d, 0xe5, 0xd8, 0x63, 0x6b, 0xdf, 0xfb, 0x0c, 0x05,
   264  	0x87, 0x6b, 0x6b, 0x15, 0x08, 0x46, 0x6e, 0x9c, 0x6f, 0xbe, 0xf9, 0x38, 0x33, 0x9c, 0x21, 0x7a,
   265  	0x94, 0xc6, 0xcb, 0xc8, 0xe4, 0x71, 0xbe, 0x3c, 0x0e, 0x23, 0x11, 0x26, 0x85, 0x8c, 0x73, 0xa3,
   266  	0x8f, 0x2f, 0xe3, 0x54, 0x04, 0x0d, 0x60, 0x5e, 0x28, 0x69, 0xe4, 0xd1, 0xe3, 0x65, 0x6c, 0xa2,
   267  	0x72, 0x31, 0x0f, 0x65, 0x76, 0xbc, 0x94, 0x4b, 0x79, 0x0c, 0xf0, 0xa2, 0xbc, 0x04, 0x0b, 0x0c,
   268  	0x38, 0x39, 0xfa, 0xf4, 0x3f, 0x0f, 0x8d, 0x4e, 0xd7, 0x22, 0x2f, 0x24, 0x17, 0x29, 0x3e, 0x43,
   269  	0xfd, 0x86, 0x30, 0xf1, 0x26, 0xfe, 0xac, 0xff, 0x64, 0x3a, 0x7f, 0x97, 0xd7, 0x04, 0x9e, 0xe5,
   270  	0x46, 0xad, 0x68, 0x33, 0x0c, 0x7f, 0x8b, 0xee, 0x19, 0xa6, 0x93, 0x46, 0x8e, 0xa4, 0x35, 0xf1,
   271  	0x66, 0xfd, 0x27, 0x87, 0xf3, 0x97, 0x4c, 0x27, 0xeb, 0x60, 0x10, 0xa3, 0xfb, 0x66, 0x03, 0x3c,
   272  	0xfa, 0x69, 0x23, 0x31, 0xd0, 0xc7, 0x23, 0xe4, 0x27, 0x62, 0x45, 0xbc, 0x89, 0x37, 0xeb, 0x51,
   273  	0x7b, 0xc4, 0x5f, 0xa2, 0x76, 0xc5, 0xd2, 0x52, 0xd4, 0xd2, 0xf7, 0xe7, 0x2f, 0xd9, 0x22, 0x15,
   274  	0xef, 0x6a, 0x3b, 0xce, 0xd3, 0xd6, 0xd7, 0xde, 0xf4, 0x8f, 0x16, 0xfa, 0x60, 0xcb, 0xf5, 0xf8,
   275  	0x43, 0xb4, 0x07, 0xd9, 0xc6, 0x1c, 0xe4, 0x7d, 0xda, 0xb1, 0xe6, 0x73, 0x8e, 0x3f, 0x45, 0x48,
   276  	0xcb, 0x52, 0x85, 0x22, 0xe0, 0xb1, 0x82, 0x6b, 0x7a, 0xb4, 0xe7, 0x90, 0xb3, 0x58, 0x61, 0x82,
   277  	0xf6, 0x16, 0x2c, 0x4c, 0x44, 0xce, 0x89, 0x0f, 0xbe, 0x1b, 0x13, 0x3f, 0x44, 0xc3, 0x38, 0x2b,
   278  	0xa4, 0x32, 0x42, 0x05, 0x8c, 0x73, 0x45, 0x76, 0xc1, 0x3f, 0xb8, 0x01, 0xbf, 0xe3, 0x5c, 0xe1,
   279  	0x8f, 0x51, 0xcf, 0xc4, 0x7c, 0x11, 0x44, 0x52, 0x1b, 0xd2, 0x06, 0x42, 0xd7, 0x02, 0xdf, 0x4b,
   280  	0x6d, 0x6e, 0x9d, 0x96, 0x4f, 0x3a, 0x13, 0x6f, 0xd6, 0x76, 0xce, 0x0b, 0xa9, 0x8c, 0x4d, 0xb8,
   281  	0xe0, 0x4e, 0x78, 0x0f, 0xe2, 0x3a, 0x05, 0x07, 0xc9, 0x29, 0x1a, 0x6a, 0x7b, 0x01, 0x0f, 0x92,
   282  	0x0a, 0x72, 0xee, 0x82, 0xbb, 0xef, 0xc0, 0xf3, 0xca, 0x66, 0xfd, 0x10, 0x0d, 0x6f, 0xa7, 0x2a,
   283  	0xa8, 0x84, 0x22, 0x3d, 0x97, 0xdb, 0x2d, 0xf8, 0xb3, 0x50, 0xd3, 0xdf, 0x5a, 0xe8, 0x70, 0x5b,
   284  	0x3b, 0x31, 0x46, 0xbb, 0x11, 0xd3, 0x11, 0x34, 0x6a, 0x40, 0xe1, 0x8c, 0x1f, 0xa0, 0x8e, 0x36,
   285  	0xcc, 0x94, 0x1a, 0xda, 0x30, 0xa4, 0xb5, 0x65, 0xdb, 0xc7, 0xd2, 0x54, 0x86, 0xc1, 0x82, 0x69,
   286  	0x01, 0x2d, 0xf0, 0x69, 0x0f, 0x90, 0x13, 0xa6, 0x05, 0xfe, 0x06, 0xed, 0x89, 0x7c, 0x19, 0xe7,
   287  	0x42, 0x93, 0x6e, 0x3d, 0x66, 0xdb, 0xae, 0x9c, 0x3f, 0x73, 0x24, 0x37, 0x66, 0x37, 0x21, 0xb6,
   288  	0xf9, 0xc6, 0xb2, 0x9f, 0x9f, 0x41, 0x01, 0x3e, 0xbd, 0x31, 0x8f, 0x28, 0x1a, 0x34, 0x43, 0x9a,
   289  	0x93, 0x73, 0xe0, 0x26, 0xe7, 0xd1, 0xe6, 0xe4, 0x3c, 0xa8, 0xaf, 0xb8, 0x63, 0x74, 0xfe, 0xf4,
   290  	0xd0, 0xfd, 0xad, 0xa4, 0x46, 0xf1, 0xde, 0x46, 0xf1, 0x4f, 0x51, 0x27, 0x8c, 0xca, 0x3c, 0xd1,
   291  	0xa4, 0x55, 0x17, 0xb7, 0x35, 0x7e, 0x7e, 0x0a, 0x24, 0x57, 0x5c, 0x1d, 0x71, 0x74, 0x81, 0xfa,
   292  	0x0d, 0xf8, 0x7d, 0x46, 0x1f, 0xe8, 0x77, 0xe4, 0xff, 0x97, 0x8f, 0x0e, 0xb7, 0x71, 0xec, 0x7b,
   293  	0x16, 0xcc, 0x44, 0xb5, 0x38, 0x9c, 0x6d, 0x49, 0xf2, 0xf2, 0x52, 0x0b, 0xb7, 0xb4, 0x3e, 0xad,
   294  	0x2d, 0xfc, 0x18, 0xe1, 0x50, 0xa6, 0x65, 0x96, 0x07, 0x85, 0x50, 0x59, 0x69, 0x98, 0x89, 0x65,
   295  	0x4e, 0x06, 0x13, 0x7f, 0xd6, 0xa6, 0x07, 0xce, 0x73, 0xb1, 0x76, 0xd8, 0xe7, 0x17, 0x39, 0x0f,
   296  	0x6a, 0xa9, 0xb6, 0x7b, 0x7e, 0x91, 0xf3, 0x1f, 0x9c, 0xda, 0x08, 0xf9, 0x85, 0xd4, 0x30, 0xdb,
   297  	0x3e, 0xb5, 0x47, 0xfc, 0x39, 0xda, 0x2f, 0x94, 0xa8, 0x02, 0x25, 0x7f, 0x8d, 0x79, 0x90, 0xb1,
   298  	0x57, 0x30, 0xdd, 0x3e, 0x1d, 0x58, 0x94, 0x5a, 0xf0, 0x05, 0x7b, 0x65, 0x37, 0x63, 0x4d, 0xe8,
   299  	0x02, 0xa1, 0xab, 0x1a, 0xce, 0xa4, 0x0a, 0x83, 0xc5, 0xca, 0x08, 0x0d, 0x73, 0xb1, 0x4b, 0xbb,
   300  	0x49, 0x15, 0x9e, 0x58, 0xdb, 0xae, 0x8d, 0x75, 0x26, 0x95, 0x26, 0x08, 0x5c, 0x9d, 0xa4, 0x0a,
   301  	0xcf, 0x2b, 0x8d, 0x3f, 0x43, 0x03, 0xeb, 0x80, 0xdf, 0x4a, 0x97, 0x19, 0xe9, 0x4f, 0xbc, 0x59,
   302  	0x87, 0xf6, 0x93, 0x2a, 0x3c, 0xad, 0x21, 0xfc, 0x89, 0xdd, 0xc7, 0x4c, 0x68, 0xc3, 0xb2, 0x82,
   303  	0x0c, 0x27, 0xde, 0x6c, 0x44, 0xd7, 0x80, 0xed, 0xa2, 0x59, 0x15, 0x82, 0xec, 0xc3, 0xa2, 0xc2,
   304  	0x19, 0x4f, 0x50, 0x3f, 0x94, 0x59, 0xa1, 0x84, 0xd6, 0xb6, 0x4d, 0xf7, 0xc0, 0xd5, 0x84, 0xf0,
   305  	0x47, 0xa8, 0x6b, 0x17, 0x33, 0xb0, 0x8f, 0x3b, 0x72, 0x1f, 0x88, 0xb5, 0xcf, 0xc5, 0xca, 0xd6,
   306  	0x01, 0x9f, 0xbc, 0x8e, 0x5f, 0x0b, 0x72, 0xe0, 0x8a, 0xb4, 0xc0, 0x8f, 0xf1, 0x6b, 0x71, 0xf2,
   307  	0xc5, 0x9b, 0x7f, 0xc7, 0x3b, 0x6f, 0xae, 0xc6, 0xde, 0xdb, 0xab, 0xb1, 0xf7, 0xcf, 0xd5, 0xd8,
   308  	0xfb, 0xfd, 0x7a, 0xbc, 0xf3, 0xf6, 0x7a, 0xbc, 0xf3, 0xf7, 0xf5, 0x78, 0xe7, 0x97, 0xe6, 0x47,
   309  	0xbc, 0xe8, 0xc0, 0x57, 0xff, 0xd5, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2b, 0xa3, 0x0f, 0xb7,
   310  	0x49, 0x06, 0x00, 0x00,
   311  }
   312  
   313  func (m *CheckpointsModel) Marshal() (dAtA []byte, err error) {
   314  	size := m.Size()
   315  	dAtA = make([]byte, size)
   316  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   317  	if err != nil {
   318  		return nil, err
   319  	}
   320  	return dAtA[:n], nil
   321  }
   322  
   323  func (m *CheckpointsModel) MarshalTo(dAtA []byte) (int, error) {
   324  	size := m.Size()
   325  	return m.MarshalToSizedBuffer(dAtA[:size])
   326  }
   327  
   328  func (m *CheckpointsModel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   329  	i := len(dAtA)
   330  	_ = i
   331  	var l int
   332  	_ = l
   333  	if m.TaskCheckpoint != nil {
   334  		{
   335  			size, err := m.TaskCheckpoint.MarshalToSizedBuffer(dAtA[:i])
   336  			if err != nil {
   337  				return 0, err
   338  			}
   339  			i -= size
   340  			i = encodeVarintFileCheckpoints(dAtA, i, uint64(size))
   341  		}
   342  		i--
   343  		dAtA[i] = 0x12
   344  	}
   345  	if len(m.Checkpoints) > 0 {
   346  		for k := range m.Checkpoints {
   347  			v := m.Checkpoints[k]
   348  			baseI := i
   349  			if v != nil {
   350  				{
   351  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
   352  					if err != nil {
   353  						return 0, err
   354  					}
   355  					i -= size
   356  					i = encodeVarintFileCheckpoints(dAtA, i, uint64(size))
   357  				}
   358  				i--
   359  				dAtA[i] = 0x12
   360  			}
   361  			i -= len(k)
   362  			copy(dAtA[i:], k)
   363  			i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(k)))
   364  			i--
   365  			dAtA[i] = 0xa
   366  			i = encodeVarintFileCheckpoints(dAtA, i, uint64(baseI-i))
   367  			i--
   368  			dAtA[i] = 0xa
   369  		}
   370  	}
   371  	return len(dAtA) - i, nil
   372  }
   373  
   374  func (m *TaskCheckpointModel) Marshal() (dAtA []byte, err error) {
   375  	size := m.Size()
   376  	dAtA = make([]byte, size)
   377  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   378  	if err != nil {
   379  		return nil, err
   380  	}
   381  	return dAtA[:n], nil
   382  }
   383  
   384  func (m *TaskCheckpointModel) MarshalTo(dAtA []byte) (int, error) {
   385  	size := m.Size()
   386  	return m.MarshalToSizedBuffer(dAtA[:size])
   387  }
   388  
   389  func (m *TaskCheckpointModel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   390  	i := len(dAtA)
   391  	_ = i
   392  	var l int
   393  	_ = l
   394  	if len(m.LightningVer) > 0 {
   395  		i -= len(m.LightningVer)
   396  		copy(dAtA[i:], m.LightningVer)
   397  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(m.LightningVer)))
   398  		i--
   399  		dAtA[i] = 0x4a
   400  	}
   401  	if len(m.SortedKvDir) > 0 {
   402  		i -= len(m.SortedKvDir)
   403  		copy(dAtA[i:], m.SortedKvDir)
   404  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(m.SortedKvDir)))
   405  		i--
   406  		dAtA[i] = 0x42
   407  	}
   408  	if len(m.PdAddr) > 0 {
   409  		i -= len(m.PdAddr)
   410  		copy(dAtA[i:], m.PdAddr)
   411  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(m.PdAddr)))
   412  		i--
   413  		dAtA[i] = 0x3a
   414  	}
   415  	if m.TidbPort != 0 {
   416  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.TidbPort))
   417  		i--
   418  		dAtA[i] = 0x30
   419  	}
   420  	if len(m.TidbHost) > 0 {
   421  		i -= len(m.TidbHost)
   422  		copy(dAtA[i:], m.TidbHost)
   423  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(m.TidbHost)))
   424  		i--
   425  		dAtA[i] = 0x2a
   426  	}
   427  	if len(m.ImporterAddr) > 0 {
   428  		i -= len(m.ImporterAddr)
   429  		copy(dAtA[i:], m.ImporterAddr)
   430  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(m.ImporterAddr)))
   431  		i--
   432  		dAtA[i] = 0x22
   433  	}
   434  	if len(m.Backend) > 0 {
   435  		i -= len(m.Backend)
   436  		copy(dAtA[i:], m.Backend)
   437  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(m.Backend)))
   438  		i--
   439  		dAtA[i] = 0x1a
   440  	}
   441  	if len(m.SourceDir) > 0 {
   442  		i -= len(m.SourceDir)
   443  		copy(dAtA[i:], m.SourceDir)
   444  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(m.SourceDir)))
   445  		i--
   446  		dAtA[i] = 0x12
   447  	}
   448  	if m.TaskId != 0 {
   449  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.TaskId))
   450  		i--
   451  		dAtA[i] = 0x8
   452  	}
   453  	return len(dAtA) - i, nil
   454  }
   455  
   456  func (m *TableCheckpointModel) Marshal() (dAtA []byte, err error) {
   457  	size := m.Size()
   458  	dAtA = make([]byte, size)
   459  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   460  	if err != nil {
   461  		return nil, err
   462  	}
   463  	return dAtA[:n], nil
   464  }
   465  
   466  func (m *TableCheckpointModel) MarshalTo(dAtA []byte) (int, error) {
   467  	size := m.Size()
   468  	return m.MarshalToSizedBuffer(dAtA[:size])
   469  }
   470  
   471  func (m *TableCheckpointModel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   472  	i := len(dAtA)
   473  	_ = i
   474  	var l int
   475  	_ = l
   476  	if m.TableID != 0 {
   477  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.TableID))
   478  		i--
   479  		dAtA[i] = 0x48
   480  	}
   481  	if len(m.Engines) > 0 {
   482  		for k := range m.Engines {
   483  			v := m.Engines[k]
   484  			baseI := i
   485  			if v != nil {
   486  				{
   487  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
   488  					if err != nil {
   489  						return 0, err
   490  					}
   491  					i -= size
   492  					i = encodeVarintFileCheckpoints(dAtA, i, uint64(size))
   493  				}
   494  				i--
   495  				dAtA[i] = 0x12
   496  			}
   497  			i = encodeVarintFileCheckpoints(dAtA, i, uint64((uint32(k)<<1)^uint32((k>>31))))
   498  			i--
   499  			dAtA[i] = 0x8
   500  			i = encodeVarintFileCheckpoints(dAtA, i, uint64(baseI-i))
   501  			i--
   502  			dAtA[i] = 0x42
   503  		}
   504  	}
   505  	if m.AllocBase != 0 {
   506  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.AllocBase))
   507  		i--
   508  		dAtA[i] = 0x20
   509  	}
   510  	if m.Status != 0 {
   511  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.Status))
   512  		i--
   513  		dAtA[i] = 0x18
   514  	}
   515  	if len(m.Hash) > 0 {
   516  		i -= len(m.Hash)
   517  		copy(dAtA[i:], m.Hash)
   518  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(m.Hash)))
   519  		i--
   520  		dAtA[i] = 0xa
   521  	}
   522  	return len(dAtA) - i, nil
   523  }
   524  
   525  func (m *EngineCheckpointModel) Marshal() (dAtA []byte, err error) {
   526  	size := m.Size()
   527  	dAtA = make([]byte, size)
   528  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   529  	if err != nil {
   530  		return nil, err
   531  	}
   532  	return dAtA[:n], nil
   533  }
   534  
   535  func (m *EngineCheckpointModel) MarshalTo(dAtA []byte) (int, error) {
   536  	size := m.Size()
   537  	return m.MarshalToSizedBuffer(dAtA[:size])
   538  }
   539  
   540  func (m *EngineCheckpointModel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   541  	i := len(dAtA)
   542  	_ = i
   543  	var l int
   544  	_ = l
   545  	if len(m.Chunks) > 0 {
   546  		for k := range m.Chunks {
   547  			v := m.Chunks[k]
   548  			baseI := i
   549  			if v != nil {
   550  				{
   551  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
   552  					if err != nil {
   553  						return 0, err
   554  					}
   555  					i -= size
   556  					i = encodeVarintFileCheckpoints(dAtA, i, uint64(size))
   557  				}
   558  				i--
   559  				dAtA[i] = 0x12
   560  			}
   561  			i -= len(k)
   562  			copy(dAtA[i:], k)
   563  			i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(k)))
   564  			i--
   565  			dAtA[i] = 0xa
   566  			i = encodeVarintFileCheckpoints(dAtA, i, uint64(baseI-i))
   567  			i--
   568  			dAtA[i] = 0x12
   569  		}
   570  	}
   571  	if m.Status != 0 {
   572  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.Status))
   573  		i--
   574  		dAtA[i] = 0x8
   575  	}
   576  	return len(dAtA) - i, nil
   577  }
   578  
   579  func (m *ChunkCheckpointModel) Marshal() (dAtA []byte, err error) {
   580  	size := m.Size()
   581  	dAtA = make([]byte, size)
   582  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   583  	if err != nil {
   584  		return nil, err
   585  	}
   586  	return dAtA[:n], nil
   587  }
   588  
   589  func (m *ChunkCheckpointModel) MarshalTo(dAtA []byte) (int, error) {
   590  	size := m.Size()
   591  	return m.MarshalToSizedBuffer(dAtA[:size])
   592  }
   593  
   594  func (m *ChunkCheckpointModel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   595  	i := len(dAtA)
   596  	_ = i
   597  	var l int
   598  	_ = l
   599  	if m.FileSize != 0 {
   600  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.FileSize))
   601  		i--
   602  		dAtA[i] = 0x1
   603  		i--
   604  		dAtA[i] = 0x88
   605  	}
   606  	if len(m.SortKey) > 0 {
   607  		i -= len(m.SortKey)
   608  		copy(dAtA[i:], m.SortKey)
   609  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(m.SortKey)))
   610  		i--
   611  		dAtA[i] = 0x1
   612  		i--
   613  		dAtA[i] = 0x82
   614  	}
   615  	if m.Compression != 0 {
   616  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.Compression))
   617  		i--
   618  		dAtA[i] = 0x78
   619  	}
   620  	if m.Type != 0 {
   621  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.Type))
   622  		i--
   623  		dAtA[i] = 0x70
   624  	}
   625  	if m.Timestamp != 0 {
   626  		i -= 8
   627  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Timestamp))
   628  		i--
   629  		dAtA[i] = 0x69
   630  	}
   631  	if len(m.ColumnPermutation) > 0 {
   632  		dAtA6 := make([]byte, len(m.ColumnPermutation)*10)
   633  		var j5 int
   634  		for _, num1 := range m.ColumnPermutation {
   635  			num := uint64(num1)
   636  			for num >= 1<<7 {
   637  				dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80)
   638  				num >>= 7
   639  				j5++
   640  			}
   641  			dAtA6[j5] = uint8(num)
   642  			j5++
   643  		}
   644  		i -= j5
   645  		copy(dAtA[i:], dAtA6[:j5])
   646  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(j5))
   647  		i--
   648  		dAtA[i] = 0x62
   649  	}
   650  	if m.KvcChecksum != 0 {
   651  		i -= 8
   652  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.KvcChecksum))
   653  		i--
   654  		dAtA[i] = 0x59
   655  	}
   656  	if m.KvcKvs != 0 {
   657  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.KvcKvs))
   658  		i--
   659  		dAtA[i] = 0x50
   660  	}
   661  	if m.KvcBytes != 0 {
   662  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.KvcBytes))
   663  		i--
   664  		dAtA[i] = 0x48
   665  	}
   666  	if m.RowidMax != 0 {
   667  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.RowidMax))
   668  		i--
   669  		dAtA[i] = 0x40
   670  	}
   671  	if m.PrevRowidMax != 0 {
   672  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.PrevRowidMax))
   673  		i--
   674  		dAtA[i] = 0x38
   675  	}
   676  	if m.Pos != 0 {
   677  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.Pos))
   678  		i--
   679  		dAtA[i] = 0x30
   680  	}
   681  	if m.EndOffset != 0 {
   682  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.EndOffset))
   683  		i--
   684  		dAtA[i] = 0x28
   685  	}
   686  	if m.Offset != 0 {
   687  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(m.Offset))
   688  		i--
   689  		dAtA[i] = 0x10
   690  	}
   691  	if len(m.Path) > 0 {
   692  		i -= len(m.Path)
   693  		copy(dAtA[i:], m.Path)
   694  		i = encodeVarintFileCheckpoints(dAtA, i, uint64(len(m.Path)))
   695  		i--
   696  		dAtA[i] = 0xa
   697  	}
   698  	return len(dAtA) - i, nil
   699  }
   700  
   701  func encodeVarintFileCheckpoints(dAtA []byte, offset int, v uint64) int {
   702  	offset -= sovFileCheckpoints(v)
   703  	base := offset
   704  	for v >= 1<<7 {
   705  		dAtA[offset] = uint8(v&0x7f | 0x80)
   706  		v >>= 7
   707  		offset++
   708  	}
   709  	dAtA[offset] = uint8(v)
   710  	return base
   711  }
   712  func (m *CheckpointsModel) Size() (n int) {
   713  	if m == nil {
   714  		return 0
   715  	}
   716  	var l int
   717  	_ = l
   718  	if len(m.Checkpoints) > 0 {
   719  		for k, v := range m.Checkpoints {
   720  			_ = k
   721  			_ = v
   722  			l = 0
   723  			if v != nil {
   724  				l = v.Size()
   725  				l += 1 + sovFileCheckpoints(uint64(l))
   726  			}
   727  			mapEntrySize := 1 + len(k) + sovFileCheckpoints(uint64(len(k))) + l
   728  			n += mapEntrySize + 1 + sovFileCheckpoints(uint64(mapEntrySize))
   729  		}
   730  	}
   731  	if m.TaskCheckpoint != nil {
   732  		l = m.TaskCheckpoint.Size()
   733  		n += 1 + l + sovFileCheckpoints(uint64(l))
   734  	}
   735  	return n
   736  }
   737  
   738  func (m *TaskCheckpointModel) Size() (n int) {
   739  	if m == nil {
   740  		return 0
   741  	}
   742  	var l int
   743  	_ = l
   744  	if m.TaskId != 0 {
   745  		n += 1 + sovFileCheckpoints(uint64(m.TaskId))
   746  	}
   747  	l = len(m.SourceDir)
   748  	if l > 0 {
   749  		n += 1 + l + sovFileCheckpoints(uint64(l))
   750  	}
   751  	l = len(m.Backend)
   752  	if l > 0 {
   753  		n += 1 + l + sovFileCheckpoints(uint64(l))
   754  	}
   755  	l = len(m.ImporterAddr)
   756  	if l > 0 {
   757  		n += 1 + l + sovFileCheckpoints(uint64(l))
   758  	}
   759  	l = len(m.TidbHost)
   760  	if l > 0 {
   761  		n += 1 + l + sovFileCheckpoints(uint64(l))
   762  	}
   763  	if m.TidbPort != 0 {
   764  		n += 1 + sovFileCheckpoints(uint64(m.TidbPort))
   765  	}
   766  	l = len(m.PdAddr)
   767  	if l > 0 {
   768  		n += 1 + l + sovFileCheckpoints(uint64(l))
   769  	}
   770  	l = len(m.SortedKvDir)
   771  	if l > 0 {
   772  		n += 1 + l + sovFileCheckpoints(uint64(l))
   773  	}
   774  	l = len(m.LightningVer)
   775  	if l > 0 {
   776  		n += 1 + l + sovFileCheckpoints(uint64(l))
   777  	}
   778  	return n
   779  }
   780  
   781  func (m *TableCheckpointModel) Size() (n int) {
   782  	if m == nil {
   783  		return 0
   784  	}
   785  	var l int
   786  	_ = l
   787  	l = len(m.Hash)
   788  	if l > 0 {
   789  		n += 1 + l + sovFileCheckpoints(uint64(l))
   790  	}
   791  	if m.Status != 0 {
   792  		n += 1 + sovFileCheckpoints(uint64(m.Status))
   793  	}
   794  	if m.AllocBase != 0 {
   795  		n += 1 + sovFileCheckpoints(uint64(m.AllocBase))
   796  	}
   797  	if len(m.Engines) > 0 {
   798  		for k, v := range m.Engines {
   799  			_ = k
   800  			_ = v
   801  			l = 0
   802  			if v != nil {
   803  				l = v.Size()
   804  				l += 1 + sovFileCheckpoints(uint64(l))
   805  			}
   806  			mapEntrySize := 1 + sozFileCheckpoints(uint64(k)) + l
   807  			n += mapEntrySize + 1 + sovFileCheckpoints(uint64(mapEntrySize))
   808  		}
   809  	}
   810  	if m.TableID != 0 {
   811  		n += 1 + sovFileCheckpoints(uint64(m.TableID))
   812  	}
   813  	return n
   814  }
   815  
   816  func (m *EngineCheckpointModel) Size() (n int) {
   817  	if m == nil {
   818  		return 0
   819  	}
   820  	var l int
   821  	_ = l
   822  	if m.Status != 0 {
   823  		n += 1 + sovFileCheckpoints(uint64(m.Status))
   824  	}
   825  	if len(m.Chunks) > 0 {
   826  		for k, v := range m.Chunks {
   827  			_ = k
   828  			_ = v
   829  			l = 0
   830  			if v != nil {
   831  				l = v.Size()
   832  				l += 1 + sovFileCheckpoints(uint64(l))
   833  			}
   834  			mapEntrySize := 1 + len(k) + sovFileCheckpoints(uint64(len(k))) + l
   835  			n += mapEntrySize + 1 + sovFileCheckpoints(uint64(mapEntrySize))
   836  		}
   837  	}
   838  	return n
   839  }
   840  
   841  func (m *ChunkCheckpointModel) Size() (n int) {
   842  	if m == nil {
   843  		return 0
   844  	}
   845  	var l int
   846  	_ = l
   847  	l = len(m.Path)
   848  	if l > 0 {
   849  		n += 1 + l + sovFileCheckpoints(uint64(l))
   850  	}
   851  	if m.Offset != 0 {
   852  		n += 1 + sovFileCheckpoints(uint64(m.Offset))
   853  	}
   854  	if m.EndOffset != 0 {
   855  		n += 1 + sovFileCheckpoints(uint64(m.EndOffset))
   856  	}
   857  	if m.Pos != 0 {
   858  		n += 1 + sovFileCheckpoints(uint64(m.Pos))
   859  	}
   860  	if m.PrevRowidMax != 0 {
   861  		n += 1 + sovFileCheckpoints(uint64(m.PrevRowidMax))
   862  	}
   863  	if m.RowidMax != 0 {
   864  		n += 1 + sovFileCheckpoints(uint64(m.RowidMax))
   865  	}
   866  	if m.KvcBytes != 0 {
   867  		n += 1 + sovFileCheckpoints(uint64(m.KvcBytes))
   868  	}
   869  	if m.KvcKvs != 0 {
   870  		n += 1 + sovFileCheckpoints(uint64(m.KvcKvs))
   871  	}
   872  	if m.KvcChecksum != 0 {
   873  		n += 9
   874  	}
   875  	if len(m.ColumnPermutation) > 0 {
   876  		l = 0
   877  		for _, e := range m.ColumnPermutation {
   878  			l += sovFileCheckpoints(uint64(e))
   879  		}
   880  		n += 1 + sovFileCheckpoints(uint64(l)) + l
   881  	}
   882  	if m.Timestamp != 0 {
   883  		n += 9
   884  	}
   885  	if m.Type != 0 {
   886  		n += 1 + sovFileCheckpoints(uint64(m.Type))
   887  	}
   888  	if m.Compression != 0 {
   889  		n += 1 + sovFileCheckpoints(uint64(m.Compression))
   890  	}
   891  	l = len(m.SortKey)
   892  	if l > 0 {
   893  		n += 2 + l + sovFileCheckpoints(uint64(l))
   894  	}
   895  	if m.FileSize != 0 {
   896  		n += 2 + sovFileCheckpoints(uint64(m.FileSize))
   897  	}
   898  	return n
   899  }
   900  
   901  func sovFileCheckpoints(x uint64) (n int) {
   902  	return (math_bits.Len64(x|1) + 6) / 7
   903  }
   904  func sozFileCheckpoints(x uint64) (n int) {
   905  	return sovFileCheckpoints(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   906  }
   907  func (m *CheckpointsModel) Unmarshal(dAtA []byte) error {
   908  	l := len(dAtA)
   909  	iNdEx := 0
   910  	for iNdEx < l {
   911  		preIndex := iNdEx
   912  		var wire uint64
   913  		for shift := uint(0); ; shift += 7 {
   914  			if shift >= 64 {
   915  				return ErrIntOverflowFileCheckpoints
   916  			}
   917  			if iNdEx >= l {
   918  				return io.ErrUnexpectedEOF
   919  			}
   920  			b := dAtA[iNdEx]
   921  			iNdEx++
   922  			wire |= uint64(b&0x7F) << shift
   923  			if b < 0x80 {
   924  				break
   925  			}
   926  		}
   927  		fieldNum := int32(wire >> 3)
   928  		wireType := int(wire & 0x7)
   929  		if wireType == 4 {
   930  			return fmt.Errorf("proto: CheckpointsModel: wiretype end group for non-group")
   931  		}
   932  		if fieldNum <= 0 {
   933  			return fmt.Errorf("proto: CheckpointsModel: illegal tag %d (wire type %d)", fieldNum, wire)
   934  		}
   935  		switch fieldNum {
   936  		case 1:
   937  			if wireType != 2 {
   938  				return fmt.Errorf("proto: wrong wireType = %d for field Checkpoints", wireType)
   939  			}
   940  			var msglen int
   941  			for shift := uint(0); ; shift += 7 {
   942  				if shift >= 64 {
   943  					return ErrIntOverflowFileCheckpoints
   944  				}
   945  				if iNdEx >= l {
   946  					return io.ErrUnexpectedEOF
   947  				}
   948  				b := dAtA[iNdEx]
   949  				iNdEx++
   950  				msglen |= int(b&0x7F) << shift
   951  				if b < 0x80 {
   952  					break
   953  				}
   954  			}
   955  			if msglen < 0 {
   956  				return ErrInvalidLengthFileCheckpoints
   957  			}
   958  			postIndex := iNdEx + msglen
   959  			if postIndex < 0 {
   960  				return ErrInvalidLengthFileCheckpoints
   961  			}
   962  			if postIndex > l {
   963  				return io.ErrUnexpectedEOF
   964  			}
   965  			if m.Checkpoints == nil {
   966  				m.Checkpoints = make(map[string]*TableCheckpointModel)
   967  			}
   968  			var mapkey string
   969  			var mapvalue *TableCheckpointModel
   970  			for iNdEx < postIndex {
   971  				entryPreIndex := iNdEx
   972  				var wire uint64
   973  				for shift := uint(0); ; shift += 7 {
   974  					if shift >= 64 {
   975  						return ErrIntOverflowFileCheckpoints
   976  					}
   977  					if iNdEx >= l {
   978  						return io.ErrUnexpectedEOF
   979  					}
   980  					b := dAtA[iNdEx]
   981  					iNdEx++
   982  					wire |= uint64(b&0x7F) << shift
   983  					if b < 0x80 {
   984  						break
   985  					}
   986  				}
   987  				fieldNum := int32(wire >> 3)
   988  				if fieldNum == 1 {
   989  					var stringLenmapkey uint64
   990  					for shift := uint(0); ; shift += 7 {
   991  						if shift >= 64 {
   992  							return ErrIntOverflowFileCheckpoints
   993  						}
   994  						if iNdEx >= l {
   995  							return io.ErrUnexpectedEOF
   996  						}
   997  						b := dAtA[iNdEx]
   998  						iNdEx++
   999  						stringLenmapkey |= uint64(b&0x7F) << shift
  1000  						if b < 0x80 {
  1001  							break
  1002  						}
  1003  					}
  1004  					intStringLenmapkey := int(stringLenmapkey)
  1005  					if intStringLenmapkey < 0 {
  1006  						return ErrInvalidLengthFileCheckpoints
  1007  					}
  1008  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1009  					if postStringIndexmapkey < 0 {
  1010  						return ErrInvalidLengthFileCheckpoints
  1011  					}
  1012  					if postStringIndexmapkey > l {
  1013  						return io.ErrUnexpectedEOF
  1014  					}
  1015  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1016  					iNdEx = postStringIndexmapkey
  1017  				} else if fieldNum == 2 {
  1018  					var mapmsglen int
  1019  					for shift := uint(0); ; shift += 7 {
  1020  						if shift >= 64 {
  1021  							return ErrIntOverflowFileCheckpoints
  1022  						}
  1023  						if iNdEx >= l {
  1024  							return io.ErrUnexpectedEOF
  1025  						}
  1026  						b := dAtA[iNdEx]
  1027  						iNdEx++
  1028  						mapmsglen |= int(b&0x7F) << shift
  1029  						if b < 0x80 {
  1030  							break
  1031  						}
  1032  					}
  1033  					if mapmsglen < 0 {
  1034  						return ErrInvalidLengthFileCheckpoints
  1035  					}
  1036  					postmsgIndex := iNdEx + mapmsglen
  1037  					if postmsgIndex < 0 {
  1038  						return ErrInvalidLengthFileCheckpoints
  1039  					}
  1040  					if postmsgIndex > l {
  1041  						return io.ErrUnexpectedEOF
  1042  					}
  1043  					mapvalue = &TableCheckpointModel{}
  1044  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1045  						return err
  1046  					}
  1047  					iNdEx = postmsgIndex
  1048  				} else {
  1049  					iNdEx = entryPreIndex
  1050  					skippy, err := skipFileCheckpoints(dAtA[iNdEx:])
  1051  					if err != nil {
  1052  						return err
  1053  					}
  1054  					if skippy < 0 {
  1055  						return ErrInvalidLengthFileCheckpoints
  1056  					}
  1057  					if (iNdEx + skippy) > postIndex {
  1058  						return io.ErrUnexpectedEOF
  1059  					}
  1060  					iNdEx += skippy
  1061  				}
  1062  			}
  1063  			m.Checkpoints[mapkey] = mapvalue
  1064  			iNdEx = postIndex
  1065  		case 2:
  1066  			if wireType != 2 {
  1067  				return fmt.Errorf("proto: wrong wireType = %d for field TaskCheckpoint", wireType)
  1068  			}
  1069  			var msglen int
  1070  			for shift := uint(0); ; shift += 7 {
  1071  				if shift >= 64 {
  1072  					return ErrIntOverflowFileCheckpoints
  1073  				}
  1074  				if iNdEx >= l {
  1075  					return io.ErrUnexpectedEOF
  1076  				}
  1077  				b := dAtA[iNdEx]
  1078  				iNdEx++
  1079  				msglen |= int(b&0x7F) << shift
  1080  				if b < 0x80 {
  1081  					break
  1082  				}
  1083  			}
  1084  			if msglen < 0 {
  1085  				return ErrInvalidLengthFileCheckpoints
  1086  			}
  1087  			postIndex := iNdEx + msglen
  1088  			if postIndex < 0 {
  1089  				return ErrInvalidLengthFileCheckpoints
  1090  			}
  1091  			if postIndex > l {
  1092  				return io.ErrUnexpectedEOF
  1093  			}
  1094  			if m.TaskCheckpoint == nil {
  1095  				m.TaskCheckpoint = &TaskCheckpointModel{}
  1096  			}
  1097  			if err := m.TaskCheckpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1098  				return err
  1099  			}
  1100  			iNdEx = postIndex
  1101  		default:
  1102  			iNdEx = preIndex
  1103  			skippy, err := skipFileCheckpoints(dAtA[iNdEx:])
  1104  			if err != nil {
  1105  				return err
  1106  			}
  1107  			if skippy < 0 {
  1108  				return ErrInvalidLengthFileCheckpoints
  1109  			}
  1110  			if (iNdEx + skippy) < 0 {
  1111  				return ErrInvalidLengthFileCheckpoints
  1112  			}
  1113  			if (iNdEx + skippy) > l {
  1114  				return io.ErrUnexpectedEOF
  1115  			}
  1116  			iNdEx += skippy
  1117  		}
  1118  	}
  1119  
  1120  	if iNdEx > l {
  1121  		return io.ErrUnexpectedEOF
  1122  	}
  1123  	return nil
  1124  }
  1125  func (m *TaskCheckpointModel) Unmarshal(dAtA []byte) error {
  1126  	l := len(dAtA)
  1127  	iNdEx := 0
  1128  	for iNdEx < l {
  1129  		preIndex := iNdEx
  1130  		var wire uint64
  1131  		for shift := uint(0); ; shift += 7 {
  1132  			if shift >= 64 {
  1133  				return ErrIntOverflowFileCheckpoints
  1134  			}
  1135  			if iNdEx >= l {
  1136  				return io.ErrUnexpectedEOF
  1137  			}
  1138  			b := dAtA[iNdEx]
  1139  			iNdEx++
  1140  			wire |= uint64(b&0x7F) << shift
  1141  			if b < 0x80 {
  1142  				break
  1143  			}
  1144  		}
  1145  		fieldNum := int32(wire >> 3)
  1146  		wireType := int(wire & 0x7)
  1147  		if wireType == 4 {
  1148  			return fmt.Errorf("proto: TaskCheckpointModel: wiretype end group for non-group")
  1149  		}
  1150  		if fieldNum <= 0 {
  1151  			return fmt.Errorf("proto: TaskCheckpointModel: illegal tag %d (wire type %d)", fieldNum, wire)
  1152  		}
  1153  		switch fieldNum {
  1154  		case 1:
  1155  			if wireType != 0 {
  1156  				return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
  1157  			}
  1158  			m.TaskId = 0
  1159  			for shift := uint(0); ; shift += 7 {
  1160  				if shift >= 64 {
  1161  					return ErrIntOverflowFileCheckpoints
  1162  				}
  1163  				if iNdEx >= l {
  1164  					return io.ErrUnexpectedEOF
  1165  				}
  1166  				b := dAtA[iNdEx]
  1167  				iNdEx++
  1168  				m.TaskId |= int64(b&0x7F) << shift
  1169  				if b < 0x80 {
  1170  					break
  1171  				}
  1172  			}
  1173  		case 2:
  1174  			if wireType != 2 {
  1175  				return fmt.Errorf("proto: wrong wireType = %d for field SourceDir", wireType)
  1176  			}
  1177  			var stringLen uint64
  1178  			for shift := uint(0); ; shift += 7 {
  1179  				if shift >= 64 {
  1180  					return ErrIntOverflowFileCheckpoints
  1181  				}
  1182  				if iNdEx >= l {
  1183  					return io.ErrUnexpectedEOF
  1184  				}
  1185  				b := dAtA[iNdEx]
  1186  				iNdEx++
  1187  				stringLen |= uint64(b&0x7F) << shift
  1188  				if b < 0x80 {
  1189  					break
  1190  				}
  1191  			}
  1192  			intStringLen := int(stringLen)
  1193  			if intStringLen < 0 {
  1194  				return ErrInvalidLengthFileCheckpoints
  1195  			}
  1196  			postIndex := iNdEx + intStringLen
  1197  			if postIndex < 0 {
  1198  				return ErrInvalidLengthFileCheckpoints
  1199  			}
  1200  			if postIndex > l {
  1201  				return io.ErrUnexpectedEOF
  1202  			}
  1203  			m.SourceDir = string(dAtA[iNdEx:postIndex])
  1204  			iNdEx = postIndex
  1205  		case 3:
  1206  			if wireType != 2 {
  1207  				return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType)
  1208  			}
  1209  			var stringLen uint64
  1210  			for shift := uint(0); ; shift += 7 {
  1211  				if shift >= 64 {
  1212  					return ErrIntOverflowFileCheckpoints
  1213  				}
  1214  				if iNdEx >= l {
  1215  					return io.ErrUnexpectedEOF
  1216  				}
  1217  				b := dAtA[iNdEx]
  1218  				iNdEx++
  1219  				stringLen |= uint64(b&0x7F) << shift
  1220  				if b < 0x80 {
  1221  					break
  1222  				}
  1223  			}
  1224  			intStringLen := int(stringLen)
  1225  			if intStringLen < 0 {
  1226  				return ErrInvalidLengthFileCheckpoints
  1227  			}
  1228  			postIndex := iNdEx + intStringLen
  1229  			if postIndex < 0 {
  1230  				return ErrInvalidLengthFileCheckpoints
  1231  			}
  1232  			if postIndex > l {
  1233  				return io.ErrUnexpectedEOF
  1234  			}
  1235  			m.Backend = string(dAtA[iNdEx:postIndex])
  1236  			iNdEx = postIndex
  1237  		case 4:
  1238  			if wireType != 2 {
  1239  				return fmt.Errorf("proto: wrong wireType = %d for field ImporterAddr", wireType)
  1240  			}
  1241  			var stringLen uint64
  1242  			for shift := uint(0); ; shift += 7 {
  1243  				if shift >= 64 {
  1244  					return ErrIntOverflowFileCheckpoints
  1245  				}
  1246  				if iNdEx >= l {
  1247  					return io.ErrUnexpectedEOF
  1248  				}
  1249  				b := dAtA[iNdEx]
  1250  				iNdEx++
  1251  				stringLen |= uint64(b&0x7F) << shift
  1252  				if b < 0x80 {
  1253  					break
  1254  				}
  1255  			}
  1256  			intStringLen := int(stringLen)
  1257  			if intStringLen < 0 {
  1258  				return ErrInvalidLengthFileCheckpoints
  1259  			}
  1260  			postIndex := iNdEx + intStringLen
  1261  			if postIndex < 0 {
  1262  				return ErrInvalidLengthFileCheckpoints
  1263  			}
  1264  			if postIndex > l {
  1265  				return io.ErrUnexpectedEOF
  1266  			}
  1267  			m.ImporterAddr = string(dAtA[iNdEx:postIndex])
  1268  			iNdEx = postIndex
  1269  		case 5:
  1270  			if wireType != 2 {
  1271  				return fmt.Errorf("proto: wrong wireType = %d for field TidbHost", wireType)
  1272  			}
  1273  			var stringLen uint64
  1274  			for shift := uint(0); ; shift += 7 {
  1275  				if shift >= 64 {
  1276  					return ErrIntOverflowFileCheckpoints
  1277  				}
  1278  				if iNdEx >= l {
  1279  					return io.ErrUnexpectedEOF
  1280  				}
  1281  				b := dAtA[iNdEx]
  1282  				iNdEx++
  1283  				stringLen |= uint64(b&0x7F) << shift
  1284  				if b < 0x80 {
  1285  					break
  1286  				}
  1287  			}
  1288  			intStringLen := int(stringLen)
  1289  			if intStringLen < 0 {
  1290  				return ErrInvalidLengthFileCheckpoints
  1291  			}
  1292  			postIndex := iNdEx + intStringLen
  1293  			if postIndex < 0 {
  1294  				return ErrInvalidLengthFileCheckpoints
  1295  			}
  1296  			if postIndex > l {
  1297  				return io.ErrUnexpectedEOF
  1298  			}
  1299  			m.TidbHost = string(dAtA[iNdEx:postIndex])
  1300  			iNdEx = postIndex
  1301  		case 6:
  1302  			if wireType != 0 {
  1303  				return fmt.Errorf("proto: wrong wireType = %d for field TidbPort", wireType)
  1304  			}
  1305  			m.TidbPort = 0
  1306  			for shift := uint(0); ; shift += 7 {
  1307  				if shift >= 64 {
  1308  					return ErrIntOverflowFileCheckpoints
  1309  				}
  1310  				if iNdEx >= l {
  1311  					return io.ErrUnexpectedEOF
  1312  				}
  1313  				b := dAtA[iNdEx]
  1314  				iNdEx++
  1315  				m.TidbPort |= int32(b&0x7F) << shift
  1316  				if b < 0x80 {
  1317  					break
  1318  				}
  1319  			}
  1320  		case 7:
  1321  			if wireType != 2 {
  1322  				return fmt.Errorf("proto: wrong wireType = %d for field PdAddr", wireType)
  1323  			}
  1324  			var stringLen uint64
  1325  			for shift := uint(0); ; shift += 7 {
  1326  				if shift >= 64 {
  1327  					return ErrIntOverflowFileCheckpoints
  1328  				}
  1329  				if iNdEx >= l {
  1330  					return io.ErrUnexpectedEOF
  1331  				}
  1332  				b := dAtA[iNdEx]
  1333  				iNdEx++
  1334  				stringLen |= uint64(b&0x7F) << shift
  1335  				if b < 0x80 {
  1336  					break
  1337  				}
  1338  			}
  1339  			intStringLen := int(stringLen)
  1340  			if intStringLen < 0 {
  1341  				return ErrInvalidLengthFileCheckpoints
  1342  			}
  1343  			postIndex := iNdEx + intStringLen
  1344  			if postIndex < 0 {
  1345  				return ErrInvalidLengthFileCheckpoints
  1346  			}
  1347  			if postIndex > l {
  1348  				return io.ErrUnexpectedEOF
  1349  			}
  1350  			m.PdAddr = string(dAtA[iNdEx:postIndex])
  1351  			iNdEx = postIndex
  1352  		case 8:
  1353  			if wireType != 2 {
  1354  				return fmt.Errorf("proto: wrong wireType = %d for field SortedKvDir", wireType)
  1355  			}
  1356  			var stringLen uint64
  1357  			for shift := uint(0); ; shift += 7 {
  1358  				if shift >= 64 {
  1359  					return ErrIntOverflowFileCheckpoints
  1360  				}
  1361  				if iNdEx >= l {
  1362  					return io.ErrUnexpectedEOF
  1363  				}
  1364  				b := dAtA[iNdEx]
  1365  				iNdEx++
  1366  				stringLen |= uint64(b&0x7F) << shift
  1367  				if b < 0x80 {
  1368  					break
  1369  				}
  1370  			}
  1371  			intStringLen := int(stringLen)
  1372  			if intStringLen < 0 {
  1373  				return ErrInvalidLengthFileCheckpoints
  1374  			}
  1375  			postIndex := iNdEx + intStringLen
  1376  			if postIndex < 0 {
  1377  				return ErrInvalidLengthFileCheckpoints
  1378  			}
  1379  			if postIndex > l {
  1380  				return io.ErrUnexpectedEOF
  1381  			}
  1382  			m.SortedKvDir = string(dAtA[iNdEx:postIndex])
  1383  			iNdEx = postIndex
  1384  		case 9:
  1385  			if wireType != 2 {
  1386  				return fmt.Errorf("proto: wrong wireType = %d for field LightningVer", wireType)
  1387  			}
  1388  			var stringLen uint64
  1389  			for shift := uint(0); ; shift += 7 {
  1390  				if shift >= 64 {
  1391  					return ErrIntOverflowFileCheckpoints
  1392  				}
  1393  				if iNdEx >= l {
  1394  					return io.ErrUnexpectedEOF
  1395  				}
  1396  				b := dAtA[iNdEx]
  1397  				iNdEx++
  1398  				stringLen |= uint64(b&0x7F) << shift
  1399  				if b < 0x80 {
  1400  					break
  1401  				}
  1402  			}
  1403  			intStringLen := int(stringLen)
  1404  			if intStringLen < 0 {
  1405  				return ErrInvalidLengthFileCheckpoints
  1406  			}
  1407  			postIndex := iNdEx + intStringLen
  1408  			if postIndex < 0 {
  1409  				return ErrInvalidLengthFileCheckpoints
  1410  			}
  1411  			if postIndex > l {
  1412  				return io.ErrUnexpectedEOF
  1413  			}
  1414  			m.LightningVer = string(dAtA[iNdEx:postIndex])
  1415  			iNdEx = postIndex
  1416  		default:
  1417  			iNdEx = preIndex
  1418  			skippy, err := skipFileCheckpoints(dAtA[iNdEx:])
  1419  			if err != nil {
  1420  				return err
  1421  			}
  1422  			if skippy < 0 {
  1423  				return ErrInvalidLengthFileCheckpoints
  1424  			}
  1425  			if (iNdEx + skippy) < 0 {
  1426  				return ErrInvalidLengthFileCheckpoints
  1427  			}
  1428  			if (iNdEx + skippy) > l {
  1429  				return io.ErrUnexpectedEOF
  1430  			}
  1431  			iNdEx += skippy
  1432  		}
  1433  	}
  1434  
  1435  	if iNdEx > l {
  1436  		return io.ErrUnexpectedEOF
  1437  	}
  1438  	return nil
  1439  }
  1440  func (m *TableCheckpointModel) Unmarshal(dAtA []byte) error {
  1441  	l := len(dAtA)
  1442  	iNdEx := 0
  1443  	for iNdEx < l {
  1444  		preIndex := iNdEx
  1445  		var wire uint64
  1446  		for shift := uint(0); ; shift += 7 {
  1447  			if shift >= 64 {
  1448  				return ErrIntOverflowFileCheckpoints
  1449  			}
  1450  			if iNdEx >= l {
  1451  				return io.ErrUnexpectedEOF
  1452  			}
  1453  			b := dAtA[iNdEx]
  1454  			iNdEx++
  1455  			wire |= uint64(b&0x7F) << shift
  1456  			if b < 0x80 {
  1457  				break
  1458  			}
  1459  		}
  1460  		fieldNum := int32(wire >> 3)
  1461  		wireType := int(wire & 0x7)
  1462  		if wireType == 4 {
  1463  			return fmt.Errorf("proto: TableCheckpointModel: wiretype end group for non-group")
  1464  		}
  1465  		if fieldNum <= 0 {
  1466  			return fmt.Errorf("proto: TableCheckpointModel: illegal tag %d (wire type %d)", fieldNum, wire)
  1467  		}
  1468  		switch fieldNum {
  1469  		case 1:
  1470  			if wireType != 2 {
  1471  				return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  1472  			}
  1473  			var byteLen int
  1474  			for shift := uint(0); ; shift += 7 {
  1475  				if shift >= 64 {
  1476  					return ErrIntOverflowFileCheckpoints
  1477  				}
  1478  				if iNdEx >= l {
  1479  					return io.ErrUnexpectedEOF
  1480  				}
  1481  				b := dAtA[iNdEx]
  1482  				iNdEx++
  1483  				byteLen |= int(b&0x7F) << shift
  1484  				if b < 0x80 {
  1485  					break
  1486  				}
  1487  			}
  1488  			if byteLen < 0 {
  1489  				return ErrInvalidLengthFileCheckpoints
  1490  			}
  1491  			postIndex := iNdEx + byteLen
  1492  			if postIndex < 0 {
  1493  				return ErrInvalidLengthFileCheckpoints
  1494  			}
  1495  			if postIndex > l {
  1496  				return io.ErrUnexpectedEOF
  1497  			}
  1498  			m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  1499  			if m.Hash == nil {
  1500  				m.Hash = []byte{}
  1501  			}
  1502  			iNdEx = postIndex
  1503  		case 3:
  1504  			if wireType != 0 {
  1505  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  1506  			}
  1507  			m.Status = 0
  1508  			for shift := uint(0); ; shift += 7 {
  1509  				if shift >= 64 {
  1510  					return ErrIntOverflowFileCheckpoints
  1511  				}
  1512  				if iNdEx >= l {
  1513  					return io.ErrUnexpectedEOF
  1514  				}
  1515  				b := dAtA[iNdEx]
  1516  				iNdEx++
  1517  				m.Status |= uint32(b&0x7F) << shift
  1518  				if b < 0x80 {
  1519  					break
  1520  				}
  1521  			}
  1522  		case 4:
  1523  			if wireType != 0 {
  1524  				return fmt.Errorf("proto: wrong wireType = %d for field AllocBase", wireType)
  1525  			}
  1526  			m.AllocBase = 0
  1527  			for shift := uint(0); ; shift += 7 {
  1528  				if shift >= 64 {
  1529  					return ErrIntOverflowFileCheckpoints
  1530  				}
  1531  				if iNdEx >= l {
  1532  					return io.ErrUnexpectedEOF
  1533  				}
  1534  				b := dAtA[iNdEx]
  1535  				iNdEx++
  1536  				m.AllocBase |= int64(b&0x7F) << shift
  1537  				if b < 0x80 {
  1538  					break
  1539  				}
  1540  			}
  1541  		case 8:
  1542  			if wireType != 2 {
  1543  				return fmt.Errorf("proto: wrong wireType = %d for field Engines", wireType)
  1544  			}
  1545  			var msglen int
  1546  			for shift := uint(0); ; shift += 7 {
  1547  				if shift >= 64 {
  1548  					return ErrIntOverflowFileCheckpoints
  1549  				}
  1550  				if iNdEx >= l {
  1551  					return io.ErrUnexpectedEOF
  1552  				}
  1553  				b := dAtA[iNdEx]
  1554  				iNdEx++
  1555  				msglen |= int(b&0x7F) << shift
  1556  				if b < 0x80 {
  1557  					break
  1558  				}
  1559  			}
  1560  			if msglen < 0 {
  1561  				return ErrInvalidLengthFileCheckpoints
  1562  			}
  1563  			postIndex := iNdEx + msglen
  1564  			if postIndex < 0 {
  1565  				return ErrInvalidLengthFileCheckpoints
  1566  			}
  1567  			if postIndex > l {
  1568  				return io.ErrUnexpectedEOF
  1569  			}
  1570  			if m.Engines == nil {
  1571  				m.Engines = make(map[int32]*EngineCheckpointModel)
  1572  			}
  1573  			var mapkey int32
  1574  			var mapvalue *EngineCheckpointModel
  1575  			for iNdEx < postIndex {
  1576  				entryPreIndex := iNdEx
  1577  				var wire uint64
  1578  				for shift := uint(0); ; shift += 7 {
  1579  					if shift >= 64 {
  1580  						return ErrIntOverflowFileCheckpoints
  1581  					}
  1582  					if iNdEx >= l {
  1583  						return io.ErrUnexpectedEOF
  1584  					}
  1585  					b := dAtA[iNdEx]
  1586  					iNdEx++
  1587  					wire |= uint64(b&0x7F) << shift
  1588  					if b < 0x80 {
  1589  						break
  1590  					}
  1591  				}
  1592  				fieldNum := int32(wire >> 3)
  1593  				if fieldNum == 1 {
  1594  					var mapkeytemp int32
  1595  					for shift := uint(0); ; shift += 7 {
  1596  						if shift >= 64 {
  1597  							return ErrIntOverflowFileCheckpoints
  1598  						}
  1599  						if iNdEx >= l {
  1600  							return io.ErrUnexpectedEOF
  1601  						}
  1602  						b := dAtA[iNdEx]
  1603  						iNdEx++
  1604  						mapkeytemp |= int32(b&0x7F) << shift
  1605  						if b < 0x80 {
  1606  							break
  1607  						}
  1608  					}
  1609  					mapkeytemp = int32((uint32(mapkeytemp) >> 1) ^ uint32(((mapkeytemp&1)<<31)>>31))
  1610  					mapkey = int32(mapkeytemp)
  1611  				} else if fieldNum == 2 {
  1612  					var mapmsglen int
  1613  					for shift := uint(0); ; shift += 7 {
  1614  						if shift >= 64 {
  1615  							return ErrIntOverflowFileCheckpoints
  1616  						}
  1617  						if iNdEx >= l {
  1618  							return io.ErrUnexpectedEOF
  1619  						}
  1620  						b := dAtA[iNdEx]
  1621  						iNdEx++
  1622  						mapmsglen |= int(b&0x7F) << shift
  1623  						if b < 0x80 {
  1624  							break
  1625  						}
  1626  					}
  1627  					if mapmsglen < 0 {
  1628  						return ErrInvalidLengthFileCheckpoints
  1629  					}
  1630  					postmsgIndex := iNdEx + mapmsglen
  1631  					if postmsgIndex < 0 {
  1632  						return ErrInvalidLengthFileCheckpoints
  1633  					}
  1634  					if postmsgIndex > l {
  1635  						return io.ErrUnexpectedEOF
  1636  					}
  1637  					mapvalue = &EngineCheckpointModel{}
  1638  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1639  						return err
  1640  					}
  1641  					iNdEx = postmsgIndex
  1642  				} else {
  1643  					iNdEx = entryPreIndex
  1644  					skippy, err := skipFileCheckpoints(dAtA[iNdEx:])
  1645  					if err != nil {
  1646  						return err
  1647  					}
  1648  					if skippy < 0 {
  1649  						return ErrInvalidLengthFileCheckpoints
  1650  					}
  1651  					if (iNdEx + skippy) > postIndex {
  1652  						return io.ErrUnexpectedEOF
  1653  					}
  1654  					iNdEx += skippy
  1655  				}
  1656  			}
  1657  			m.Engines[mapkey] = mapvalue
  1658  			iNdEx = postIndex
  1659  		case 9:
  1660  			if wireType != 0 {
  1661  				return fmt.Errorf("proto: wrong wireType = %d for field TableID", wireType)
  1662  			}
  1663  			m.TableID = 0
  1664  			for shift := uint(0); ; shift += 7 {
  1665  				if shift >= 64 {
  1666  					return ErrIntOverflowFileCheckpoints
  1667  				}
  1668  				if iNdEx >= l {
  1669  					return io.ErrUnexpectedEOF
  1670  				}
  1671  				b := dAtA[iNdEx]
  1672  				iNdEx++
  1673  				m.TableID |= int64(b&0x7F) << shift
  1674  				if b < 0x80 {
  1675  					break
  1676  				}
  1677  			}
  1678  		default:
  1679  			iNdEx = preIndex
  1680  			skippy, err := skipFileCheckpoints(dAtA[iNdEx:])
  1681  			if err != nil {
  1682  				return err
  1683  			}
  1684  			if skippy < 0 {
  1685  				return ErrInvalidLengthFileCheckpoints
  1686  			}
  1687  			if (iNdEx + skippy) < 0 {
  1688  				return ErrInvalidLengthFileCheckpoints
  1689  			}
  1690  			if (iNdEx + skippy) > l {
  1691  				return io.ErrUnexpectedEOF
  1692  			}
  1693  			iNdEx += skippy
  1694  		}
  1695  	}
  1696  
  1697  	if iNdEx > l {
  1698  		return io.ErrUnexpectedEOF
  1699  	}
  1700  	return nil
  1701  }
  1702  func (m *EngineCheckpointModel) Unmarshal(dAtA []byte) error {
  1703  	l := len(dAtA)
  1704  	iNdEx := 0
  1705  	for iNdEx < l {
  1706  		preIndex := iNdEx
  1707  		var wire uint64
  1708  		for shift := uint(0); ; shift += 7 {
  1709  			if shift >= 64 {
  1710  				return ErrIntOverflowFileCheckpoints
  1711  			}
  1712  			if iNdEx >= l {
  1713  				return io.ErrUnexpectedEOF
  1714  			}
  1715  			b := dAtA[iNdEx]
  1716  			iNdEx++
  1717  			wire |= uint64(b&0x7F) << shift
  1718  			if b < 0x80 {
  1719  				break
  1720  			}
  1721  		}
  1722  		fieldNum := int32(wire >> 3)
  1723  		wireType := int(wire & 0x7)
  1724  		if wireType == 4 {
  1725  			return fmt.Errorf("proto: EngineCheckpointModel: wiretype end group for non-group")
  1726  		}
  1727  		if fieldNum <= 0 {
  1728  			return fmt.Errorf("proto: EngineCheckpointModel: illegal tag %d (wire type %d)", fieldNum, wire)
  1729  		}
  1730  		switch fieldNum {
  1731  		case 1:
  1732  			if wireType != 0 {
  1733  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  1734  			}
  1735  			m.Status = 0
  1736  			for shift := uint(0); ; shift += 7 {
  1737  				if shift >= 64 {
  1738  					return ErrIntOverflowFileCheckpoints
  1739  				}
  1740  				if iNdEx >= l {
  1741  					return io.ErrUnexpectedEOF
  1742  				}
  1743  				b := dAtA[iNdEx]
  1744  				iNdEx++
  1745  				m.Status |= uint32(b&0x7F) << shift
  1746  				if b < 0x80 {
  1747  					break
  1748  				}
  1749  			}
  1750  		case 2:
  1751  			if wireType != 2 {
  1752  				return fmt.Errorf("proto: wrong wireType = %d for field Chunks", wireType)
  1753  			}
  1754  			var msglen int
  1755  			for shift := uint(0); ; shift += 7 {
  1756  				if shift >= 64 {
  1757  					return ErrIntOverflowFileCheckpoints
  1758  				}
  1759  				if iNdEx >= l {
  1760  					return io.ErrUnexpectedEOF
  1761  				}
  1762  				b := dAtA[iNdEx]
  1763  				iNdEx++
  1764  				msglen |= int(b&0x7F) << shift
  1765  				if b < 0x80 {
  1766  					break
  1767  				}
  1768  			}
  1769  			if msglen < 0 {
  1770  				return ErrInvalidLengthFileCheckpoints
  1771  			}
  1772  			postIndex := iNdEx + msglen
  1773  			if postIndex < 0 {
  1774  				return ErrInvalidLengthFileCheckpoints
  1775  			}
  1776  			if postIndex > l {
  1777  				return io.ErrUnexpectedEOF
  1778  			}
  1779  			if m.Chunks == nil {
  1780  				m.Chunks = make(map[string]*ChunkCheckpointModel)
  1781  			}
  1782  			var mapkey string
  1783  			var mapvalue *ChunkCheckpointModel
  1784  			for iNdEx < postIndex {
  1785  				entryPreIndex := iNdEx
  1786  				var wire uint64
  1787  				for shift := uint(0); ; shift += 7 {
  1788  					if shift >= 64 {
  1789  						return ErrIntOverflowFileCheckpoints
  1790  					}
  1791  					if iNdEx >= l {
  1792  						return io.ErrUnexpectedEOF
  1793  					}
  1794  					b := dAtA[iNdEx]
  1795  					iNdEx++
  1796  					wire |= uint64(b&0x7F) << shift
  1797  					if b < 0x80 {
  1798  						break
  1799  					}
  1800  				}
  1801  				fieldNum := int32(wire >> 3)
  1802  				if fieldNum == 1 {
  1803  					var stringLenmapkey uint64
  1804  					for shift := uint(0); ; shift += 7 {
  1805  						if shift >= 64 {
  1806  							return ErrIntOverflowFileCheckpoints
  1807  						}
  1808  						if iNdEx >= l {
  1809  							return io.ErrUnexpectedEOF
  1810  						}
  1811  						b := dAtA[iNdEx]
  1812  						iNdEx++
  1813  						stringLenmapkey |= uint64(b&0x7F) << shift
  1814  						if b < 0x80 {
  1815  							break
  1816  						}
  1817  					}
  1818  					intStringLenmapkey := int(stringLenmapkey)
  1819  					if intStringLenmapkey < 0 {
  1820  						return ErrInvalidLengthFileCheckpoints
  1821  					}
  1822  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1823  					if postStringIndexmapkey < 0 {
  1824  						return ErrInvalidLengthFileCheckpoints
  1825  					}
  1826  					if postStringIndexmapkey > l {
  1827  						return io.ErrUnexpectedEOF
  1828  					}
  1829  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1830  					iNdEx = postStringIndexmapkey
  1831  				} else if fieldNum == 2 {
  1832  					var mapmsglen int
  1833  					for shift := uint(0); ; shift += 7 {
  1834  						if shift >= 64 {
  1835  							return ErrIntOverflowFileCheckpoints
  1836  						}
  1837  						if iNdEx >= l {
  1838  							return io.ErrUnexpectedEOF
  1839  						}
  1840  						b := dAtA[iNdEx]
  1841  						iNdEx++
  1842  						mapmsglen |= int(b&0x7F) << shift
  1843  						if b < 0x80 {
  1844  							break
  1845  						}
  1846  					}
  1847  					if mapmsglen < 0 {
  1848  						return ErrInvalidLengthFileCheckpoints
  1849  					}
  1850  					postmsgIndex := iNdEx + mapmsglen
  1851  					if postmsgIndex < 0 {
  1852  						return ErrInvalidLengthFileCheckpoints
  1853  					}
  1854  					if postmsgIndex > l {
  1855  						return io.ErrUnexpectedEOF
  1856  					}
  1857  					mapvalue = &ChunkCheckpointModel{}
  1858  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1859  						return err
  1860  					}
  1861  					iNdEx = postmsgIndex
  1862  				} else {
  1863  					iNdEx = entryPreIndex
  1864  					skippy, err := skipFileCheckpoints(dAtA[iNdEx:])
  1865  					if err != nil {
  1866  						return err
  1867  					}
  1868  					if skippy < 0 {
  1869  						return ErrInvalidLengthFileCheckpoints
  1870  					}
  1871  					if (iNdEx + skippy) > postIndex {
  1872  						return io.ErrUnexpectedEOF
  1873  					}
  1874  					iNdEx += skippy
  1875  				}
  1876  			}
  1877  			m.Chunks[mapkey] = mapvalue
  1878  			iNdEx = postIndex
  1879  		default:
  1880  			iNdEx = preIndex
  1881  			skippy, err := skipFileCheckpoints(dAtA[iNdEx:])
  1882  			if err != nil {
  1883  				return err
  1884  			}
  1885  			if skippy < 0 {
  1886  				return ErrInvalidLengthFileCheckpoints
  1887  			}
  1888  			if (iNdEx + skippy) < 0 {
  1889  				return ErrInvalidLengthFileCheckpoints
  1890  			}
  1891  			if (iNdEx + skippy) > l {
  1892  				return io.ErrUnexpectedEOF
  1893  			}
  1894  			iNdEx += skippy
  1895  		}
  1896  	}
  1897  
  1898  	if iNdEx > l {
  1899  		return io.ErrUnexpectedEOF
  1900  	}
  1901  	return nil
  1902  }
  1903  func (m *ChunkCheckpointModel) Unmarshal(dAtA []byte) error {
  1904  	l := len(dAtA)
  1905  	iNdEx := 0
  1906  	for iNdEx < l {
  1907  		preIndex := iNdEx
  1908  		var wire uint64
  1909  		for shift := uint(0); ; shift += 7 {
  1910  			if shift >= 64 {
  1911  				return ErrIntOverflowFileCheckpoints
  1912  			}
  1913  			if iNdEx >= l {
  1914  				return io.ErrUnexpectedEOF
  1915  			}
  1916  			b := dAtA[iNdEx]
  1917  			iNdEx++
  1918  			wire |= uint64(b&0x7F) << shift
  1919  			if b < 0x80 {
  1920  				break
  1921  			}
  1922  		}
  1923  		fieldNum := int32(wire >> 3)
  1924  		wireType := int(wire & 0x7)
  1925  		if wireType == 4 {
  1926  			return fmt.Errorf("proto: ChunkCheckpointModel: wiretype end group for non-group")
  1927  		}
  1928  		if fieldNum <= 0 {
  1929  			return fmt.Errorf("proto: ChunkCheckpointModel: illegal tag %d (wire type %d)", fieldNum, wire)
  1930  		}
  1931  		switch fieldNum {
  1932  		case 1:
  1933  			if wireType != 2 {
  1934  				return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
  1935  			}
  1936  			var stringLen uint64
  1937  			for shift := uint(0); ; shift += 7 {
  1938  				if shift >= 64 {
  1939  					return ErrIntOverflowFileCheckpoints
  1940  				}
  1941  				if iNdEx >= l {
  1942  					return io.ErrUnexpectedEOF
  1943  				}
  1944  				b := dAtA[iNdEx]
  1945  				iNdEx++
  1946  				stringLen |= uint64(b&0x7F) << shift
  1947  				if b < 0x80 {
  1948  					break
  1949  				}
  1950  			}
  1951  			intStringLen := int(stringLen)
  1952  			if intStringLen < 0 {
  1953  				return ErrInvalidLengthFileCheckpoints
  1954  			}
  1955  			postIndex := iNdEx + intStringLen
  1956  			if postIndex < 0 {
  1957  				return ErrInvalidLengthFileCheckpoints
  1958  			}
  1959  			if postIndex > l {
  1960  				return io.ErrUnexpectedEOF
  1961  			}
  1962  			m.Path = string(dAtA[iNdEx:postIndex])
  1963  			iNdEx = postIndex
  1964  		case 2:
  1965  			if wireType != 0 {
  1966  				return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  1967  			}
  1968  			m.Offset = 0
  1969  			for shift := uint(0); ; shift += 7 {
  1970  				if shift >= 64 {
  1971  					return ErrIntOverflowFileCheckpoints
  1972  				}
  1973  				if iNdEx >= l {
  1974  					return io.ErrUnexpectedEOF
  1975  				}
  1976  				b := dAtA[iNdEx]
  1977  				iNdEx++
  1978  				m.Offset |= int64(b&0x7F) << shift
  1979  				if b < 0x80 {
  1980  					break
  1981  				}
  1982  			}
  1983  		case 5:
  1984  			if wireType != 0 {
  1985  				return fmt.Errorf("proto: wrong wireType = %d for field EndOffset", wireType)
  1986  			}
  1987  			m.EndOffset = 0
  1988  			for shift := uint(0); ; shift += 7 {
  1989  				if shift >= 64 {
  1990  					return ErrIntOverflowFileCheckpoints
  1991  				}
  1992  				if iNdEx >= l {
  1993  					return io.ErrUnexpectedEOF
  1994  				}
  1995  				b := dAtA[iNdEx]
  1996  				iNdEx++
  1997  				m.EndOffset |= int64(b&0x7F) << shift
  1998  				if b < 0x80 {
  1999  					break
  2000  				}
  2001  			}
  2002  		case 6:
  2003  			if wireType != 0 {
  2004  				return fmt.Errorf("proto: wrong wireType = %d for field Pos", wireType)
  2005  			}
  2006  			m.Pos = 0
  2007  			for shift := uint(0); ; shift += 7 {
  2008  				if shift >= 64 {
  2009  					return ErrIntOverflowFileCheckpoints
  2010  				}
  2011  				if iNdEx >= l {
  2012  					return io.ErrUnexpectedEOF
  2013  				}
  2014  				b := dAtA[iNdEx]
  2015  				iNdEx++
  2016  				m.Pos |= int64(b&0x7F) << shift
  2017  				if b < 0x80 {
  2018  					break
  2019  				}
  2020  			}
  2021  		case 7:
  2022  			if wireType != 0 {
  2023  				return fmt.Errorf("proto: wrong wireType = %d for field PrevRowidMax", wireType)
  2024  			}
  2025  			m.PrevRowidMax = 0
  2026  			for shift := uint(0); ; shift += 7 {
  2027  				if shift >= 64 {
  2028  					return ErrIntOverflowFileCheckpoints
  2029  				}
  2030  				if iNdEx >= l {
  2031  					return io.ErrUnexpectedEOF
  2032  				}
  2033  				b := dAtA[iNdEx]
  2034  				iNdEx++
  2035  				m.PrevRowidMax |= int64(b&0x7F) << shift
  2036  				if b < 0x80 {
  2037  					break
  2038  				}
  2039  			}
  2040  		case 8:
  2041  			if wireType != 0 {
  2042  				return fmt.Errorf("proto: wrong wireType = %d for field RowidMax", wireType)
  2043  			}
  2044  			m.RowidMax = 0
  2045  			for shift := uint(0); ; shift += 7 {
  2046  				if shift >= 64 {
  2047  					return ErrIntOverflowFileCheckpoints
  2048  				}
  2049  				if iNdEx >= l {
  2050  					return io.ErrUnexpectedEOF
  2051  				}
  2052  				b := dAtA[iNdEx]
  2053  				iNdEx++
  2054  				m.RowidMax |= int64(b&0x7F) << shift
  2055  				if b < 0x80 {
  2056  					break
  2057  				}
  2058  			}
  2059  		case 9:
  2060  			if wireType != 0 {
  2061  				return fmt.Errorf("proto: wrong wireType = %d for field KvcBytes", wireType)
  2062  			}
  2063  			m.KvcBytes = 0
  2064  			for shift := uint(0); ; shift += 7 {
  2065  				if shift >= 64 {
  2066  					return ErrIntOverflowFileCheckpoints
  2067  				}
  2068  				if iNdEx >= l {
  2069  					return io.ErrUnexpectedEOF
  2070  				}
  2071  				b := dAtA[iNdEx]
  2072  				iNdEx++
  2073  				m.KvcBytes |= uint64(b&0x7F) << shift
  2074  				if b < 0x80 {
  2075  					break
  2076  				}
  2077  			}
  2078  		case 10:
  2079  			if wireType != 0 {
  2080  				return fmt.Errorf("proto: wrong wireType = %d for field KvcKvs", wireType)
  2081  			}
  2082  			m.KvcKvs = 0
  2083  			for shift := uint(0); ; shift += 7 {
  2084  				if shift >= 64 {
  2085  					return ErrIntOverflowFileCheckpoints
  2086  				}
  2087  				if iNdEx >= l {
  2088  					return io.ErrUnexpectedEOF
  2089  				}
  2090  				b := dAtA[iNdEx]
  2091  				iNdEx++
  2092  				m.KvcKvs |= uint64(b&0x7F) << shift
  2093  				if b < 0x80 {
  2094  					break
  2095  				}
  2096  			}
  2097  		case 11:
  2098  			if wireType != 1 {
  2099  				return fmt.Errorf("proto: wrong wireType = %d for field KvcChecksum", wireType)
  2100  			}
  2101  			m.KvcChecksum = 0
  2102  			if (iNdEx + 8) > l {
  2103  				return io.ErrUnexpectedEOF
  2104  			}
  2105  			m.KvcChecksum = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  2106  			iNdEx += 8
  2107  		case 12:
  2108  			if wireType == 0 {
  2109  				var v int32
  2110  				for shift := uint(0); ; shift += 7 {
  2111  					if shift >= 64 {
  2112  						return ErrIntOverflowFileCheckpoints
  2113  					}
  2114  					if iNdEx >= l {
  2115  						return io.ErrUnexpectedEOF
  2116  					}
  2117  					b := dAtA[iNdEx]
  2118  					iNdEx++
  2119  					v |= int32(b&0x7F) << shift
  2120  					if b < 0x80 {
  2121  						break
  2122  					}
  2123  				}
  2124  				m.ColumnPermutation = append(m.ColumnPermutation, v)
  2125  			} else if wireType == 2 {
  2126  				var packedLen int
  2127  				for shift := uint(0); ; shift += 7 {
  2128  					if shift >= 64 {
  2129  						return ErrIntOverflowFileCheckpoints
  2130  					}
  2131  					if iNdEx >= l {
  2132  						return io.ErrUnexpectedEOF
  2133  					}
  2134  					b := dAtA[iNdEx]
  2135  					iNdEx++
  2136  					packedLen |= int(b&0x7F) << shift
  2137  					if b < 0x80 {
  2138  						break
  2139  					}
  2140  				}
  2141  				if packedLen < 0 {
  2142  					return ErrInvalidLengthFileCheckpoints
  2143  				}
  2144  				postIndex := iNdEx + packedLen
  2145  				if postIndex < 0 {
  2146  					return ErrInvalidLengthFileCheckpoints
  2147  				}
  2148  				if postIndex > l {
  2149  					return io.ErrUnexpectedEOF
  2150  				}
  2151  				var elementCount int
  2152  				var count int
  2153  				for _, integer := range dAtA[iNdEx:postIndex] {
  2154  					if integer < 128 {
  2155  						count++
  2156  					}
  2157  				}
  2158  				elementCount = count
  2159  				if elementCount != 0 && len(m.ColumnPermutation) == 0 {
  2160  					m.ColumnPermutation = make([]int32, 0, elementCount)
  2161  				}
  2162  				for iNdEx < postIndex {
  2163  					var v int32
  2164  					for shift := uint(0); ; shift += 7 {
  2165  						if shift >= 64 {
  2166  							return ErrIntOverflowFileCheckpoints
  2167  						}
  2168  						if iNdEx >= l {
  2169  							return io.ErrUnexpectedEOF
  2170  						}
  2171  						b := dAtA[iNdEx]
  2172  						iNdEx++
  2173  						v |= int32(b&0x7F) << shift
  2174  						if b < 0x80 {
  2175  							break
  2176  						}
  2177  					}
  2178  					m.ColumnPermutation = append(m.ColumnPermutation, v)
  2179  				}
  2180  			} else {
  2181  				return fmt.Errorf("proto: wrong wireType = %d for field ColumnPermutation", wireType)
  2182  			}
  2183  		case 13:
  2184  			if wireType != 1 {
  2185  				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  2186  			}
  2187  			m.Timestamp = 0
  2188  			if (iNdEx + 8) > l {
  2189  				return io.ErrUnexpectedEOF
  2190  			}
  2191  			m.Timestamp = int64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  2192  			iNdEx += 8
  2193  		case 14:
  2194  			if wireType != 0 {
  2195  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2196  			}
  2197  			m.Type = 0
  2198  			for shift := uint(0); ; shift += 7 {
  2199  				if shift >= 64 {
  2200  					return ErrIntOverflowFileCheckpoints
  2201  				}
  2202  				if iNdEx >= l {
  2203  					return io.ErrUnexpectedEOF
  2204  				}
  2205  				b := dAtA[iNdEx]
  2206  				iNdEx++
  2207  				m.Type |= int32(b&0x7F) << shift
  2208  				if b < 0x80 {
  2209  					break
  2210  				}
  2211  			}
  2212  		case 15:
  2213  			if wireType != 0 {
  2214  				return fmt.Errorf("proto: wrong wireType = %d for field Compression", wireType)
  2215  			}
  2216  			m.Compression = 0
  2217  			for shift := uint(0); ; shift += 7 {
  2218  				if shift >= 64 {
  2219  					return ErrIntOverflowFileCheckpoints
  2220  				}
  2221  				if iNdEx >= l {
  2222  					return io.ErrUnexpectedEOF
  2223  				}
  2224  				b := dAtA[iNdEx]
  2225  				iNdEx++
  2226  				m.Compression |= int32(b&0x7F) << shift
  2227  				if b < 0x80 {
  2228  					break
  2229  				}
  2230  			}
  2231  		case 16:
  2232  			if wireType != 2 {
  2233  				return fmt.Errorf("proto: wrong wireType = %d for field SortKey", wireType)
  2234  			}
  2235  			var stringLen uint64
  2236  			for shift := uint(0); ; shift += 7 {
  2237  				if shift >= 64 {
  2238  					return ErrIntOverflowFileCheckpoints
  2239  				}
  2240  				if iNdEx >= l {
  2241  					return io.ErrUnexpectedEOF
  2242  				}
  2243  				b := dAtA[iNdEx]
  2244  				iNdEx++
  2245  				stringLen |= uint64(b&0x7F) << shift
  2246  				if b < 0x80 {
  2247  					break
  2248  				}
  2249  			}
  2250  			intStringLen := int(stringLen)
  2251  			if intStringLen < 0 {
  2252  				return ErrInvalidLengthFileCheckpoints
  2253  			}
  2254  			postIndex := iNdEx + intStringLen
  2255  			if postIndex < 0 {
  2256  				return ErrInvalidLengthFileCheckpoints
  2257  			}
  2258  			if postIndex > l {
  2259  				return io.ErrUnexpectedEOF
  2260  			}
  2261  			m.SortKey = string(dAtA[iNdEx:postIndex])
  2262  			iNdEx = postIndex
  2263  		case 17:
  2264  			if wireType != 0 {
  2265  				return fmt.Errorf("proto: wrong wireType = %d for field FileSize", wireType)
  2266  			}
  2267  			m.FileSize = 0
  2268  			for shift := uint(0); ; shift += 7 {
  2269  				if shift >= 64 {
  2270  					return ErrIntOverflowFileCheckpoints
  2271  				}
  2272  				if iNdEx >= l {
  2273  					return io.ErrUnexpectedEOF
  2274  				}
  2275  				b := dAtA[iNdEx]
  2276  				iNdEx++
  2277  				m.FileSize |= int64(b&0x7F) << shift
  2278  				if b < 0x80 {
  2279  					break
  2280  				}
  2281  			}
  2282  		default:
  2283  			iNdEx = preIndex
  2284  			skippy, err := skipFileCheckpoints(dAtA[iNdEx:])
  2285  			if err != nil {
  2286  				return err
  2287  			}
  2288  			if skippy < 0 {
  2289  				return ErrInvalidLengthFileCheckpoints
  2290  			}
  2291  			if (iNdEx + skippy) < 0 {
  2292  				return ErrInvalidLengthFileCheckpoints
  2293  			}
  2294  			if (iNdEx + skippy) > l {
  2295  				return io.ErrUnexpectedEOF
  2296  			}
  2297  			iNdEx += skippy
  2298  		}
  2299  	}
  2300  
  2301  	if iNdEx > l {
  2302  		return io.ErrUnexpectedEOF
  2303  	}
  2304  	return nil
  2305  }
  2306  func skipFileCheckpoints(dAtA []byte) (n int, err error) {
  2307  	l := len(dAtA)
  2308  	iNdEx := 0
  2309  	depth := 0
  2310  	for iNdEx < l {
  2311  		var wire uint64
  2312  		for shift := uint(0); ; shift += 7 {
  2313  			if shift >= 64 {
  2314  				return 0, ErrIntOverflowFileCheckpoints
  2315  			}
  2316  			if iNdEx >= l {
  2317  				return 0, io.ErrUnexpectedEOF
  2318  			}
  2319  			b := dAtA[iNdEx]
  2320  			iNdEx++
  2321  			wire |= (uint64(b) & 0x7F) << shift
  2322  			if b < 0x80 {
  2323  				break
  2324  			}
  2325  		}
  2326  		wireType := int(wire & 0x7)
  2327  		switch wireType {
  2328  		case 0:
  2329  			for shift := uint(0); ; shift += 7 {
  2330  				if shift >= 64 {
  2331  					return 0, ErrIntOverflowFileCheckpoints
  2332  				}
  2333  				if iNdEx >= l {
  2334  					return 0, io.ErrUnexpectedEOF
  2335  				}
  2336  				iNdEx++
  2337  				if dAtA[iNdEx-1] < 0x80 {
  2338  					break
  2339  				}
  2340  			}
  2341  		case 1:
  2342  			iNdEx += 8
  2343  		case 2:
  2344  			var length int
  2345  			for shift := uint(0); ; shift += 7 {
  2346  				if shift >= 64 {
  2347  					return 0, ErrIntOverflowFileCheckpoints
  2348  				}
  2349  				if iNdEx >= l {
  2350  					return 0, io.ErrUnexpectedEOF
  2351  				}
  2352  				b := dAtA[iNdEx]
  2353  				iNdEx++
  2354  				length |= (int(b) & 0x7F) << shift
  2355  				if b < 0x80 {
  2356  					break
  2357  				}
  2358  			}
  2359  			if length < 0 {
  2360  				return 0, ErrInvalidLengthFileCheckpoints
  2361  			}
  2362  			iNdEx += length
  2363  		case 3:
  2364  			depth++
  2365  		case 4:
  2366  			if depth == 0 {
  2367  				return 0, ErrUnexpectedEndOfGroupFileCheckpoints
  2368  			}
  2369  			depth--
  2370  		case 5:
  2371  			iNdEx += 4
  2372  		default:
  2373  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2374  		}
  2375  		if iNdEx < 0 {
  2376  			return 0, ErrInvalidLengthFileCheckpoints
  2377  		}
  2378  		if depth == 0 {
  2379  			return iNdEx, nil
  2380  		}
  2381  	}
  2382  	return 0, io.ErrUnexpectedEOF
  2383  }
  2384  
  2385  var (
  2386  	ErrInvalidLengthFileCheckpoints        = fmt.Errorf("proto: negative length found during unmarshaling")
  2387  	ErrIntOverflowFileCheckpoints          = fmt.Errorf("proto: integer overflow")
  2388  	ErrUnexpectedEndOfGroupFileCheckpoints = fmt.Errorf("proto: unexpected end of group")
  2389  )