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