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