github.com/matrixorigin/matrixone@v0.7.0/pkg/pb/ctl/ctl.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: ctl.proto 3 4 package ctl 5 6 import ( 7 fmt "fmt" 8 io "io" 9 math "math" 10 math_bits "math/bits" 11 12 _ "github.com/gogo/protobuf/gogoproto" 13 proto "github.com/gogo/protobuf/proto" 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 // CmdMethod debug command method 28 type CmdMethod int32 29 30 const ( 31 // Ping ping the service. 32 CmdMethod_Ping CmdMethod = 0 33 // Flush is to force flush the table data. 34 // parameter should be "DbName.TableName" 35 CmdMethod_Flush CmdMethod = 1 36 // Task disable or enable task framework 37 CmdMethod_Task CmdMethod = 2 38 // Checkpoint is to force incremental checkpoint. 39 CmdMethod_Checkpoint CmdMethod = 3 40 // UseSnapshot use a spec snapshot timestamp, and all txn will use this ts as snapshot timestamp 41 CmdMethod_UseSnapshot CmdMethod = 4 42 // GetSnapshot get current snapshot timestamp 43 CmdMethod_GetSnapshot CmdMethod = 5 44 // ForceGC forcing a GC to free memory 45 CmdMethod_ForceGC CmdMethod = 6 46 // Inspect DN info 47 CmdMethod_Inspect CmdMethod = 7 48 ) 49 50 var CmdMethod_name = map[int32]string{ 51 0: "Ping", 52 1: "Flush", 53 2: "Task", 54 3: "Checkpoint", 55 4: "UseSnapshot", 56 5: "GetSnapshot", 57 6: "ForceGC", 58 7: "Inspect", 59 } 60 61 var CmdMethod_value = map[string]int32{ 62 "Ping": 0, 63 "Flush": 1, 64 "Task": 2, 65 "Checkpoint": 3, 66 "UseSnapshot": 4, 67 "GetSnapshot": 5, 68 "ForceGC": 6, 69 "Inspect": 7, 70 } 71 72 func (x CmdMethod) String() string { 73 return proto.EnumName(CmdMethod_name, int32(x)) 74 } 75 76 func (CmdMethod) EnumDescriptor() ([]byte, []int) { 77 return fileDescriptor_0646114e50303026, []int{0} 78 } 79 80 // DNPingRequest ping request 81 type DNPingRequest struct { 82 Parameter string `protobuf:"bytes,1,opt,name=parameter,proto3" json:"parameter,omitempty"` 83 XXX_NoUnkeyedLiteral struct{} `json:"-"` 84 XXX_unrecognized []byte `json:"-"` 85 XXX_sizecache int32 `json:"-"` 86 } 87 88 func (m *DNPingRequest) Reset() { *m = DNPingRequest{} } 89 func (m *DNPingRequest) String() string { return proto.CompactTextString(m) } 90 func (*DNPingRequest) ProtoMessage() {} 91 func (*DNPingRequest) Descriptor() ([]byte, []int) { 92 return fileDescriptor_0646114e50303026, []int{0} 93 } 94 func (m *DNPingRequest) XXX_Unmarshal(b []byte) error { 95 return m.Unmarshal(b) 96 } 97 func (m *DNPingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 98 if deterministic { 99 return xxx_messageInfo_DNPingRequest.Marshal(b, m, deterministic) 100 } else { 101 b = b[:cap(b)] 102 n, err := m.MarshalToSizedBuffer(b) 103 if err != nil { 104 return nil, err 105 } 106 return b[:n], nil 107 } 108 } 109 func (m *DNPingRequest) XXX_Merge(src proto.Message) { 110 xxx_messageInfo_DNPingRequest.Merge(m, src) 111 } 112 func (m *DNPingRequest) XXX_Size() int { 113 return m.Size() 114 } 115 func (m *DNPingRequest) XXX_DiscardUnknown() { 116 xxx_messageInfo_DNPingRequest.DiscardUnknown(m) 117 } 118 119 var xxx_messageInfo_DNPingRequest proto.InternalMessageInfo 120 121 func (m *DNPingRequest) GetParameter() string { 122 if m != nil { 123 return m.Parameter 124 } 125 return "" 126 } 127 128 // DNPingResponse ping response 129 type DNPingResponse struct { 130 StoreID string `protobuf:"bytes,1,opt,name=storeID,proto3" json:"storeID,omitempty"` 131 ServiceAddress string `protobuf:"bytes,2,opt,name=serviceAddress,proto3" json:"serviceAddress,omitempty"` 132 ShardID uint64 `protobuf:"varint,3,opt,name=shardID,proto3" json:"shardID,omitempty"` 133 ReplicaID uint64 `protobuf:"varint,4,opt,name=replicaID,proto3" json:"replicaID,omitempty"` 134 LogShardID uint64 `protobuf:"varint,5,opt,name=logShardID,proto3" json:"logShardID,omitempty"` 135 XXX_NoUnkeyedLiteral struct{} `json:"-"` 136 XXX_unrecognized []byte `json:"-"` 137 XXX_sizecache int32 `json:"-"` 138 } 139 140 func (m *DNPingResponse) Reset() { *m = DNPingResponse{} } 141 func (m *DNPingResponse) String() string { return proto.CompactTextString(m) } 142 func (*DNPingResponse) ProtoMessage() {} 143 func (*DNPingResponse) Descriptor() ([]byte, []int) { 144 return fileDescriptor_0646114e50303026, []int{1} 145 } 146 func (m *DNPingResponse) XXX_Unmarshal(b []byte) error { 147 return m.Unmarshal(b) 148 } 149 func (m *DNPingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 150 if deterministic { 151 return xxx_messageInfo_DNPingResponse.Marshal(b, m, deterministic) 152 } else { 153 b = b[:cap(b)] 154 n, err := m.MarshalToSizedBuffer(b) 155 if err != nil { 156 return nil, err 157 } 158 return b[:n], nil 159 } 160 } 161 func (m *DNPingResponse) XXX_Merge(src proto.Message) { 162 xxx_messageInfo_DNPingResponse.Merge(m, src) 163 } 164 func (m *DNPingResponse) XXX_Size() int { 165 return m.Size() 166 } 167 func (m *DNPingResponse) XXX_DiscardUnknown() { 168 xxx_messageInfo_DNPingResponse.DiscardUnknown(m) 169 } 170 171 var xxx_messageInfo_DNPingResponse proto.InternalMessageInfo 172 173 func (m *DNPingResponse) GetStoreID() string { 174 if m != nil { 175 return m.StoreID 176 } 177 return "" 178 } 179 180 func (m *DNPingResponse) GetServiceAddress() string { 181 if m != nil { 182 return m.ServiceAddress 183 } 184 return "" 185 } 186 187 func (m *DNPingResponse) GetShardID() uint64 { 188 if m != nil { 189 return m.ShardID 190 } 191 return 0 192 } 193 194 func (m *DNPingResponse) GetReplicaID() uint64 { 195 if m != nil { 196 return m.ReplicaID 197 } 198 return 0 199 } 200 201 func (m *DNPingResponse) GetLogShardID() uint64 { 202 if m != nil { 203 return m.LogShardID 204 } 205 return 0 206 } 207 208 // DNStringResponse string type response 209 type DNStringResponse struct { 210 ReturnStr string `protobuf:"bytes,1,opt,name=returnStr,proto3" json:"returnStr,omitempty"` 211 XXX_NoUnkeyedLiteral struct{} `json:"-"` 212 XXX_unrecognized []byte `json:"-"` 213 XXX_sizecache int32 `json:"-"` 214 } 215 216 func (m *DNStringResponse) Reset() { *m = DNStringResponse{} } 217 func (m *DNStringResponse) String() string { return proto.CompactTextString(m) } 218 func (*DNStringResponse) ProtoMessage() {} 219 func (*DNStringResponse) Descriptor() ([]byte, []int) { 220 return fileDescriptor_0646114e50303026, []int{2} 221 } 222 func (m *DNStringResponse) XXX_Unmarshal(b []byte) error { 223 return m.Unmarshal(b) 224 } 225 func (m *DNStringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 226 if deterministic { 227 return xxx_messageInfo_DNStringResponse.Marshal(b, m, deterministic) 228 } else { 229 b = b[:cap(b)] 230 n, err := m.MarshalToSizedBuffer(b) 231 if err != nil { 232 return nil, err 233 } 234 return b[:n], nil 235 } 236 } 237 func (m *DNStringResponse) XXX_Merge(src proto.Message) { 238 xxx_messageInfo_DNStringResponse.Merge(m, src) 239 } 240 func (m *DNStringResponse) XXX_Size() int { 241 return m.Size() 242 } 243 func (m *DNStringResponse) XXX_DiscardUnknown() { 244 xxx_messageInfo_DNStringResponse.DiscardUnknown(m) 245 } 246 247 var xxx_messageInfo_DNStringResponse proto.InternalMessageInfo 248 249 func (m *DNStringResponse) GetReturnStr() string { 250 if m != nil { 251 return m.ReturnStr 252 } 253 return "" 254 } 255 256 func init() { 257 proto.RegisterEnum("ctl.CmdMethod", CmdMethod_name, CmdMethod_value) 258 proto.RegisterType((*DNPingRequest)(nil), "ctl.DNPingRequest") 259 proto.RegisterType((*DNPingResponse)(nil), "ctl.DNPingResponse") 260 proto.RegisterType((*DNStringResponse)(nil), "ctl.DNStringResponse") 261 } 262 263 func init() { proto.RegisterFile("ctl.proto", fileDescriptor_0646114e50303026) } 264 265 var fileDescriptor_0646114e50303026 = []byte{ 266 // 367 bytes of a gzipped FileDescriptorProto 267 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xc1, 0x6e, 0xd3, 0x40, 268 0x10, 0x86, 0xd9, 0x26, 0x69, 0xf0, 0x54, 0x84, 0xd5, 0x9e, 0x2c, 0x84, 0xac, 0x2a, 0x07, 0x54, 269 0x21, 0x5a, 0x23, 0x71, 0x47, 0x82, 0x58, 0xad, 0x72, 0xa0, 0x42, 0x31, 0x5c, 0xb8, 0xd9, 0xeb, 270 0xc1, 0x5e, 0xc5, 0xde, 0x5d, 0x76, 0xc7, 0x15, 0xcf, 0xc4, 0x93, 0x70, 0xec, 0x23, 0x40, 0x9e, 271 0x04, 0x79, 0xa9, 0x93, 0xa8, 0xb7, 0xfd, 0xbe, 0xf9, 0x77, 0x34, 0xa3, 0x81, 0x48, 0x52, 0x7b, 272 0x65, 0x9d, 0x21, 0x23, 0x26, 0x92, 0xda, 0x17, 0x97, 0xb5, 0xa2, 0xa6, 0x2f, 0xaf, 0xa4, 0xe9, 273 0xd2, 0xda, 0xd4, 0x26, 0x0d, 0xb5, 0xb2, 0xff, 0x1e, 0x28, 0x40, 0x78, 0xfd, 0xff, 0xb3, 0xbc, 274 0x84, 0x67, 0xd9, 0xed, 0x67, 0xa5, 0xeb, 0x0d, 0xfe, 0xe8, 0xd1, 0x93, 0x78, 0x09, 0x91, 0x2d, 275 0x5c, 0xd1, 0x21, 0xa1, 0x8b, 0xd9, 0x39, 0xbb, 0x88, 0x36, 0x07, 0xb1, 0xfc, 0xc5, 0x60, 0x31, 276 0xe6, 0xbd, 0x35, 0xda, 0xa3, 0x88, 0x61, 0xee, 0xc9, 0x38, 0x5c, 0x67, 0x0f, 0xf1, 0x11, 0xc5, 277 0x2b, 0x58, 0x78, 0x74, 0x77, 0x4a, 0xe2, 0x87, 0xaa, 0x72, 0xe8, 0x7d, 0x7c, 0x12, 0x02, 0x8f, 278 0x6c, 0xe8, 0xd0, 0x14, 0xae, 0x5a, 0x67, 0xf1, 0xe4, 0x9c, 0x5d, 0x4c, 0x37, 0x23, 0x0e, 0xc3, 279 0x38, 0xb4, 0xad, 0x92, 0xc5, 0x3a, 0x8b, 0xa7, 0xa1, 0x76, 0x10, 0x22, 0x01, 0x68, 0x4d, 0x9d, 280 0x3f, 0x7c, 0x9d, 0x85, 0xf2, 0x91, 0x59, 0xbe, 0x05, 0x9e, 0xdd, 0xe6, 0xe4, 0x8e, 0xa7, 0x0d, 281 0x1d, 0xa9, 0x77, 0x3a, 0xa7, 0xfd, 0x7a, 0x7b, 0xf1, 0xfa, 0x0e, 0xa2, 0x55, 0x57, 0x7d, 0x42, 282 0x6a, 0x4c, 0x25, 0x9e, 0xc2, 0x74, 0x58, 0x94, 0x3f, 0x11, 0x11, 0xcc, 0xae, 0xdb, 0xde, 0x37, 283 0x9c, 0x0d, 0xf2, 0x4b, 0xe1, 0xb7, 0xfc, 0x44, 0x2c, 0x00, 0x56, 0x0d, 0xca, 0xad, 0x35, 0x4a, 284 0x13, 0x9f, 0x88, 0xe7, 0x70, 0xf6, 0xd5, 0x63, 0xae, 0x0b, 0xeb, 0x1b, 0x43, 0x7c, 0x3a, 0x88, 285 0x1b, 0xa4, 0xbd, 0x98, 0x89, 0x33, 0x98, 0x5f, 0x1b, 0x27, 0xf1, 0x66, 0xc5, 0x4f, 0x07, 0x58, 286 0x6b, 0x6f, 0x51, 0x12, 0x9f, 0x7f, 0x7c, 0x7f, 0xff, 0x37, 0x61, 0xbf, 0x77, 0x09, 0xbb, 0xdf, 287 0x25, 0xec, 0xcf, 0x2e, 0x61, 0xdf, 0xde, 0x1c, 0x9d, 0xb1, 0x2b, 0xc8, 0xa9, 0x9f, 0xc6, 0xa9, 288 0x5a, 0xe9, 0x11, 0x34, 0xa6, 0x76, 0x5b, 0xa7, 0xb6, 0x4c, 0x25, 0xb5, 0xe5, 0x69, 0x38, 0xe6, 289 0xbb, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa9, 0x06, 0x59, 0x5b, 0x0d, 0x02, 0x00, 0x00, 290 } 291 292 func (m *DNPingRequest) Marshal() (dAtA []byte, err error) { 293 size := m.Size() 294 dAtA = make([]byte, size) 295 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 296 if err != nil { 297 return nil, err 298 } 299 return dAtA[:n], nil 300 } 301 302 func (m *DNPingRequest) MarshalTo(dAtA []byte) (int, error) { 303 size := m.Size() 304 return m.MarshalToSizedBuffer(dAtA[:size]) 305 } 306 307 func (m *DNPingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 308 i := len(dAtA) 309 _ = i 310 var l int 311 _ = l 312 if m.XXX_unrecognized != nil { 313 i -= len(m.XXX_unrecognized) 314 copy(dAtA[i:], m.XXX_unrecognized) 315 } 316 if len(m.Parameter) > 0 { 317 i -= len(m.Parameter) 318 copy(dAtA[i:], m.Parameter) 319 i = encodeVarintCtl(dAtA, i, uint64(len(m.Parameter))) 320 i-- 321 dAtA[i] = 0xa 322 } 323 return len(dAtA) - i, nil 324 } 325 326 func (m *DNPingResponse) Marshal() (dAtA []byte, err error) { 327 size := m.Size() 328 dAtA = make([]byte, size) 329 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 330 if err != nil { 331 return nil, err 332 } 333 return dAtA[:n], nil 334 } 335 336 func (m *DNPingResponse) MarshalTo(dAtA []byte) (int, error) { 337 size := m.Size() 338 return m.MarshalToSizedBuffer(dAtA[:size]) 339 } 340 341 func (m *DNPingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 342 i := len(dAtA) 343 _ = i 344 var l int 345 _ = l 346 if m.XXX_unrecognized != nil { 347 i -= len(m.XXX_unrecognized) 348 copy(dAtA[i:], m.XXX_unrecognized) 349 } 350 if m.LogShardID != 0 { 351 i = encodeVarintCtl(dAtA, i, uint64(m.LogShardID)) 352 i-- 353 dAtA[i] = 0x28 354 } 355 if m.ReplicaID != 0 { 356 i = encodeVarintCtl(dAtA, i, uint64(m.ReplicaID)) 357 i-- 358 dAtA[i] = 0x20 359 } 360 if m.ShardID != 0 { 361 i = encodeVarintCtl(dAtA, i, uint64(m.ShardID)) 362 i-- 363 dAtA[i] = 0x18 364 } 365 if len(m.ServiceAddress) > 0 { 366 i -= len(m.ServiceAddress) 367 copy(dAtA[i:], m.ServiceAddress) 368 i = encodeVarintCtl(dAtA, i, uint64(len(m.ServiceAddress))) 369 i-- 370 dAtA[i] = 0x12 371 } 372 if len(m.StoreID) > 0 { 373 i -= len(m.StoreID) 374 copy(dAtA[i:], m.StoreID) 375 i = encodeVarintCtl(dAtA, i, uint64(len(m.StoreID))) 376 i-- 377 dAtA[i] = 0xa 378 } 379 return len(dAtA) - i, nil 380 } 381 382 func (m *DNStringResponse) Marshal() (dAtA []byte, err error) { 383 size := m.Size() 384 dAtA = make([]byte, size) 385 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 386 if err != nil { 387 return nil, err 388 } 389 return dAtA[:n], nil 390 } 391 392 func (m *DNStringResponse) MarshalTo(dAtA []byte) (int, error) { 393 size := m.Size() 394 return m.MarshalToSizedBuffer(dAtA[:size]) 395 } 396 397 func (m *DNStringResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 398 i := len(dAtA) 399 _ = i 400 var l int 401 _ = l 402 if m.XXX_unrecognized != nil { 403 i -= len(m.XXX_unrecognized) 404 copy(dAtA[i:], m.XXX_unrecognized) 405 } 406 if len(m.ReturnStr) > 0 { 407 i -= len(m.ReturnStr) 408 copy(dAtA[i:], m.ReturnStr) 409 i = encodeVarintCtl(dAtA, i, uint64(len(m.ReturnStr))) 410 i-- 411 dAtA[i] = 0xa 412 } 413 return len(dAtA) - i, nil 414 } 415 416 func encodeVarintCtl(dAtA []byte, offset int, v uint64) int { 417 offset -= sovCtl(v) 418 base := offset 419 for v >= 1<<7 { 420 dAtA[offset] = uint8(v&0x7f | 0x80) 421 v >>= 7 422 offset++ 423 } 424 dAtA[offset] = uint8(v) 425 return base 426 } 427 func (m *DNPingRequest) Size() (n int) { 428 if m == nil { 429 return 0 430 } 431 var l int 432 _ = l 433 l = len(m.Parameter) 434 if l > 0 { 435 n += 1 + l + sovCtl(uint64(l)) 436 } 437 if m.XXX_unrecognized != nil { 438 n += len(m.XXX_unrecognized) 439 } 440 return n 441 } 442 443 func (m *DNPingResponse) Size() (n int) { 444 if m == nil { 445 return 0 446 } 447 var l int 448 _ = l 449 l = len(m.StoreID) 450 if l > 0 { 451 n += 1 + l + sovCtl(uint64(l)) 452 } 453 l = len(m.ServiceAddress) 454 if l > 0 { 455 n += 1 + l + sovCtl(uint64(l)) 456 } 457 if m.ShardID != 0 { 458 n += 1 + sovCtl(uint64(m.ShardID)) 459 } 460 if m.ReplicaID != 0 { 461 n += 1 + sovCtl(uint64(m.ReplicaID)) 462 } 463 if m.LogShardID != 0 { 464 n += 1 + sovCtl(uint64(m.LogShardID)) 465 } 466 if m.XXX_unrecognized != nil { 467 n += len(m.XXX_unrecognized) 468 } 469 return n 470 } 471 472 func (m *DNStringResponse) Size() (n int) { 473 if m == nil { 474 return 0 475 } 476 var l int 477 _ = l 478 l = len(m.ReturnStr) 479 if l > 0 { 480 n += 1 + l + sovCtl(uint64(l)) 481 } 482 if m.XXX_unrecognized != nil { 483 n += len(m.XXX_unrecognized) 484 } 485 return n 486 } 487 488 func sovCtl(x uint64) (n int) { 489 return (math_bits.Len64(x|1) + 6) / 7 490 } 491 func sozCtl(x uint64) (n int) { 492 return sovCtl(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 493 } 494 func (m *DNPingRequest) Unmarshal(dAtA []byte) error { 495 l := len(dAtA) 496 iNdEx := 0 497 for iNdEx < l { 498 preIndex := iNdEx 499 var wire uint64 500 for shift := uint(0); ; shift += 7 { 501 if shift >= 64 { 502 return ErrIntOverflowCtl 503 } 504 if iNdEx >= l { 505 return io.ErrUnexpectedEOF 506 } 507 b := dAtA[iNdEx] 508 iNdEx++ 509 wire |= uint64(b&0x7F) << shift 510 if b < 0x80 { 511 break 512 } 513 } 514 fieldNum := int32(wire >> 3) 515 wireType := int(wire & 0x7) 516 if wireType == 4 { 517 return fmt.Errorf("proto: DNPingRequest: wiretype end group for non-group") 518 } 519 if fieldNum <= 0 { 520 return fmt.Errorf("proto: DNPingRequest: illegal tag %d (wire type %d)", fieldNum, wire) 521 } 522 switch fieldNum { 523 case 1: 524 if wireType != 2 { 525 return fmt.Errorf("proto: wrong wireType = %d for field Parameter", wireType) 526 } 527 var stringLen uint64 528 for shift := uint(0); ; shift += 7 { 529 if shift >= 64 { 530 return ErrIntOverflowCtl 531 } 532 if iNdEx >= l { 533 return io.ErrUnexpectedEOF 534 } 535 b := dAtA[iNdEx] 536 iNdEx++ 537 stringLen |= uint64(b&0x7F) << shift 538 if b < 0x80 { 539 break 540 } 541 } 542 intStringLen := int(stringLen) 543 if intStringLen < 0 { 544 return ErrInvalidLengthCtl 545 } 546 postIndex := iNdEx + intStringLen 547 if postIndex < 0 { 548 return ErrInvalidLengthCtl 549 } 550 if postIndex > l { 551 return io.ErrUnexpectedEOF 552 } 553 m.Parameter = string(dAtA[iNdEx:postIndex]) 554 iNdEx = postIndex 555 default: 556 iNdEx = preIndex 557 skippy, err := skipCtl(dAtA[iNdEx:]) 558 if err != nil { 559 return err 560 } 561 if (skippy < 0) || (iNdEx+skippy) < 0 { 562 return ErrInvalidLengthCtl 563 } 564 if (iNdEx + skippy) > l { 565 return io.ErrUnexpectedEOF 566 } 567 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 568 iNdEx += skippy 569 } 570 } 571 572 if iNdEx > l { 573 return io.ErrUnexpectedEOF 574 } 575 return nil 576 } 577 func (m *DNPingResponse) Unmarshal(dAtA []byte) error { 578 l := len(dAtA) 579 iNdEx := 0 580 for iNdEx < l { 581 preIndex := iNdEx 582 var wire uint64 583 for shift := uint(0); ; shift += 7 { 584 if shift >= 64 { 585 return ErrIntOverflowCtl 586 } 587 if iNdEx >= l { 588 return io.ErrUnexpectedEOF 589 } 590 b := dAtA[iNdEx] 591 iNdEx++ 592 wire |= uint64(b&0x7F) << shift 593 if b < 0x80 { 594 break 595 } 596 } 597 fieldNum := int32(wire >> 3) 598 wireType := int(wire & 0x7) 599 if wireType == 4 { 600 return fmt.Errorf("proto: DNPingResponse: wiretype end group for non-group") 601 } 602 if fieldNum <= 0 { 603 return fmt.Errorf("proto: DNPingResponse: illegal tag %d (wire type %d)", fieldNum, wire) 604 } 605 switch fieldNum { 606 case 1: 607 if wireType != 2 { 608 return fmt.Errorf("proto: wrong wireType = %d for field StoreID", wireType) 609 } 610 var stringLen uint64 611 for shift := uint(0); ; shift += 7 { 612 if shift >= 64 { 613 return ErrIntOverflowCtl 614 } 615 if iNdEx >= l { 616 return io.ErrUnexpectedEOF 617 } 618 b := dAtA[iNdEx] 619 iNdEx++ 620 stringLen |= uint64(b&0x7F) << shift 621 if b < 0x80 { 622 break 623 } 624 } 625 intStringLen := int(stringLen) 626 if intStringLen < 0 { 627 return ErrInvalidLengthCtl 628 } 629 postIndex := iNdEx + intStringLen 630 if postIndex < 0 { 631 return ErrInvalidLengthCtl 632 } 633 if postIndex > l { 634 return io.ErrUnexpectedEOF 635 } 636 m.StoreID = string(dAtA[iNdEx:postIndex]) 637 iNdEx = postIndex 638 case 2: 639 if wireType != 2 { 640 return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType) 641 } 642 var stringLen uint64 643 for shift := uint(0); ; shift += 7 { 644 if shift >= 64 { 645 return ErrIntOverflowCtl 646 } 647 if iNdEx >= l { 648 return io.ErrUnexpectedEOF 649 } 650 b := dAtA[iNdEx] 651 iNdEx++ 652 stringLen |= uint64(b&0x7F) << shift 653 if b < 0x80 { 654 break 655 } 656 } 657 intStringLen := int(stringLen) 658 if intStringLen < 0 { 659 return ErrInvalidLengthCtl 660 } 661 postIndex := iNdEx + intStringLen 662 if postIndex < 0 { 663 return ErrInvalidLengthCtl 664 } 665 if postIndex > l { 666 return io.ErrUnexpectedEOF 667 } 668 m.ServiceAddress = string(dAtA[iNdEx:postIndex]) 669 iNdEx = postIndex 670 case 3: 671 if wireType != 0 { 672 return fmt.Errorf("proto: wrong wireType = %d for field ShardID", wireType) 673 } 674 m.ShardID = 0 675 for shift := uint(0); ; shift += 7 { 676 if shift >= 64 { 677 return ErrIntOverflowCtl 678 } 679 if iNdEx >= l { 680 return io.ErrUnexpectedEOF 681 } 682 b := dAtA[iNdEx] 683 iNdEx++ 684 m.ShardID |= uint64(b&0x7F) << shift 685 if b < 0x80 { 686 break 687 } 688 } 689 case 4: 690 if wireType != 0 { 691 return fmt.Errorf("proto: wrong wireType = %d for field ReplicaID", wireType) 692 } 693 m.ReplicaID = 0 694 for shift := uint(0); ; shift += 7 { 695 if shift >= 64 { 696 return ErrIntOverflowCtl 697 } 698 if iNdEx >= l { 699 return io.ErrUnexpectedEOF 700 } 701 b := dAtA[iNdEx] 702 iNdEx++ 703 m.ReplicaID |= uint64(b&0x7F) << shift 704 if b < 0x80 { 705 break 706 } 707 } 708 case 5: 709 if wireType != 0 { 710 return fmt.Errorf("proto: wrong wireType = %d for field LogShardID", wireType) 711 } 712 m.LogShardID = 0 713 for shift := uint(0); ; shift += 7 { 714 if shift >= 64 { 715 return ErrIntOverflowCtl 716 } 717 if iNdEx >= l { 718 return io.ErrUnexpectedEOF 719 } 720 b := dAtA[iNdEx] 721 iNdEx++ 722 m.LogShardID |= uint64(b&0x7F) << shift 723 if b < 0x80 { 724 break 725 } 726 } 727 default: 728 iNdEx = preIndex 729 skippy, err := skipCtl(dAtA[iNdEx:]) 730 if err != nil { 731 return err 732 } 733 if (skippy < 0) || (iNdEx+skippy) < 0 { 734 return ErrInvalidLengthCtl 735 } 736 if (iNdEx + skippy) > l { 737 return io.ErrUnexpectedEOF 738 } 739 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 740 iNdEx += skippy 741 } 742 } 743 744 if iNdEx > l { 745 return io.ErrUnexpectedEOF 746 } 747 return nil 748 } 749 func (m *DNStringResponse) Unmarshal(dAtA []byte) error { 750 l := len(dAtA) 751 iNdEx := 0 752 for iNdEx < l { 753 preIndex := iNdEx 754 var wire uint64 755 for shift := uint(0); ; shift += 7 { 756 if shift >= 64 { 757 return ErrIntOverflowCtl 758 } 759 if iNdEx >= l { 760 return io.ErrUnexpectedEOF 761 } 762 b := dAtA[iNdEx] 763 iNdEx++ 764 wire |= uint64(b&0x7F) << shift 765 if b < 0x80 { 766 break 767 } 768 } 769 fieldNum := int32(wire >> 3) 770 wireType := int(wire & 0x7) 771 if wireType == 4 { 772 return fmt.Errorf("proto: DNStringResponse: wiretype end group for non-group") 773 } 774 if fieldNum <= 0 { 775 return fmt.Errorf("proto: DNStringResponse: illegal tag %d (wire type %d)", fieldNum, wire) 776 } 777 switch fieldNum { 778 case 1: 779 if wireType != 2 { 780 return fmt.Errorf("proto: wrong wireType = %d for field ReturnStr", wireType) 781 } 782 var stringLen uint64 783 for shift := uint(0); ; shift += 7 { 784 if shift >= 64 { 785 return ErrIntOverflowCtl 786 } 787 if iNdEx >= l { 788 return io.ErrUnexpectedEOF 789 } 790 b := dAtA[iNdEx] 791 iNdEx++ 792 stringLen |= uint64(b&0x7F) << shift 793 if b < 0x80 { 794 break 795 } 796 } 797 intStringLen := int(stringLen) 798 if intStringLen < 0 { 799 return ErrInvalidLengthCtl 800 } 801 postIndex := iNdEx + intStringLen 802 if postIndex < 0 { 803 return ErrInvalidLengthCtl 804 } 805 if postIndex > l { 806 return io.ErrUnexpectedEOF 807 } 808 m.ReturnStr = string(dAtA[iNdEx:postIndex]) 809 iNdEx = postIndex 810 default: 811 iNdEx = preIndex 812 skippy, err := skipCtl(dAtA[iNdEx:]) 813 if err != nil { 814 return err 815 } 816 if (skippy < 0) || (iNdEx+skippy) < 0 { 817 return ErrInvalidLengthCtl 818 } 819 if (iNdEx + skippy) > l { 820 return io.ErrUnexpectedEOF 821 } 822 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 823 iNdEx += skippy 824 } 825 } 826 827 if iNdEx > l { 828 return io.ErrUnexpectedEOF 829 } 830 return nil 831 } 832 func skipCtl(dAtA []byte) (n int, err error) { 833 l := len(dAtA) 834 iNdEx := 0 835 depth := 0 836 for iNdEx < l { 837 var wire uint64 838 for shift := uint(0); ; shift += 7 { 839 if shift >= 64 { 840 return 0, ErrIntOverflowCtl 841 } 842 if iNdEx >= l { 843 return 0, io.ErrUnexpectedEOF 844 } 845 b := dAtA[iNdEx] 846 iNdEx++ 847 wire |= (uint64(b) & 0x7F) << shift 848 if b < 0x80 { 849 break 850 } 851 } 852 wireType := int(wire & 0x7) 853 switch wireType { 854 case 0: 855 for shift := uint(0); ; shift += 7 { 856 if shift >= 64 { 857 return 0, ErrIntOverflowCtl 858 } 859 if iNdEx >= l { 860 return 0, io.ErrUnexpectedEOF 861 } 862 iNdEx++ 863 if dAtA[iNdEx-1] < 0x80 { 864 break 865 } 866 } 867 case 1: 868 iNdEx += 8 869 case 2: 870 var length int 871 for shift := uint(0); ; shift += 7 { 872 if shift >= 64 { 873 return 0, ErrIntOverflowCtl 874 } 875 if iNdEx >= l { 876 return 0, io.ErrUnexpectedEOF 877 } 878 b := dAtA[iNdEx] 879 iNdEx++ 880 length |= (int(b) & 0x7F) << shift 881 if b < 0x80 { 882 break 883 } 884 } 885 if length < 0 { 886 return 0, ErrInvalidLengthCtl 887 } 888 iNdEx += length 889 case 3: 890 depth++ 891 case 4: 892 if depth == 0 { 893 return 0, ErrUnexpectedEndOfGroupCtl 894 } 895 depth-- 896 case 5: 897 iNdEx += 4 898 default: 899 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 900 } 901 if iNdEx < 0 { 902 return 0, ErrInvalidLengthCtl 903 } 904 if depth == 0 { 905 return iNdEx, nil 906 } 907 } 908 return 0, io.ErrUnexpectedEOF 909 } 910 911 var ( 912 ErrInvalidLengthCtl = fmt.Errorf("proto: negative length found during unmarshaling") 913 ErrIntOverflowCtl = fmt.Errorf("proto: integer overflow") 914 ErrUnexpectedEndOfGroupCtl = fmt.Errorf("proto: unexpected end of group") 915 )