github.com/matrixorigin/matrixone@v1.2.0/pkg/pb/proxy/proxy.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: proxy.proto 3 4 package proxy 5 6 import ( 7 fmt "fmt" 8 io "io" 9 math "math" 10 math_bits "math/bits" 11 12 proto "github.com/gogo/protobuf/proto" 13 ) 14 15 // Reference imports to suppress errors if they are not otherwise used. 16 var _ = proto.Marshal 17 var _ = fmt.Errorf 18 var _ = math.Inf 19 20 // This is a compile-time assertion to ensure that this generated file 21 // is compatible with the proto package it is being compiled against. 22 // A compilation error at this line likely means your copy of the 23 // proto package needs to be updated. 24 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 25 26 type ExtraInfo struct { 27 Salt []byte `protobuf:"bytes,1,opt,name=Salt,proto3" json:"Salt,omitempty"` 28 InternalConn bool `protobuf:"varint,2,opt,name=InternalConn,proto3" json:"InternalConn,omitempty"` 29 ConnectionID uint32 `protobuf:"varint,3,opt,name=ConnectionID,proto3" json:"ConnectionID,omitempty"` 30 Label map[string]string `protobuf:"bytes,4,rep,name=Label,proto3" json:"Label,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 31 ClientAddr string `protobuf:"bytes,5,opt,name=ClientAddr,proto3" json:"ClientAddr,omitempty"` 32 XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 XXX_unrecognized []byte `json:"-"` 34 XXX_sizecache int32 `json:"-"` 35 } 36 37 func (m *ExtraInfo) Reset() { *m = ExtraInfo{} } 38 func (m *ExtraInfo) String() string { return proto.CompactTextString(m) } 39 func (*ExtraInfo) ProtoMessage() {} 40 func (*ExtraInfo) Descriptor() ([]byte, []int) { 41 return fileDescriptor_700b50b08ed8dbaf, []int{0} 42 } 43 func (m *ExtraInfo) XXX_Unmarshal(b []byte) error { 44 return m.Unmarshal(b) 45 } 46 func (m *ExtraInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 47 if deterministic { 48 return xxx_messageInfo_ExtraInfo.Marshal(b, m, deterministic) 49 } else { 50 b = b[:cap(b)] 51 n, err := m.MarshalToSizedBuffer(b) 52 if err != nil { 53 return nil, err 54 } 55 return b[:n], nil 56 } 57 } 58 func (m *ExtraInfo) XXX_Merge(src proto.Message) { 59 xxx_messageInfo_ExtraInfo.Merge(m, src) 60 } 61 func (m *ExtraInfo) XXX_Size() int { 62 return m.Size() 63 } 64 func (m *ExtraInfo) XXX_DiscardUnknown() { 65 xxx_messageInfo_ExtraInfo.DiscardUnknown(m) 66 } 67 68 var xxx_messageInfo_ExtraInfo proto.InternalMessageInfo 69 70 func (m *ExtraInfo) GetSalt() []byte { 71 if m != nil { 72 return m.Salt 73 } 74 return nil 75 } 76 77 func (m *ExtraInfo) GetInternalConn() bool { 78 if m != nil { 79 return m.InternalConn 80 } 81 return false 82 } 83 84 func (m *ExtraInfo) GetConnectionID() uint32 { 85 if m != nil { 86 return m.ConnectionID 87 } 88 return 0 89 } 90 91 func (m *ExtraInfo) GetLabel() map[string]string { 92 if m != nil { 93 return m.Label 94 } 95 return nil 96 } 97 98 func (m *ExtraInfo) GetClientAddr() string { 99 if m != nil { 100 return m.ClientAddr 101 } 102 return "" 103 } 104 105 func init() { 106 proto.RegisterType((*ExtraInfo)(nil), "proxy.ExtraInfo") 107 proto.RegisterMapType((map[string]string)(nil), "proxy.ExtraInfo.LabelEntry") 108 } 109 110 func init() { proto.RegisterFile("proxy.proto", fileDescriptor_700b50b08ed8dbaf) } 111 112 var fileDescriptor_700b50b08ed8dbaf = []byte{ 113 // 268 bytes of a gzipped FileDescriptorProto 114 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xcf, 0x4a, 0xc3, 0x40, 115 0x10, 0xc6, 0x99, 0xb6, 0x11, 0x33, 0xad, 0x20, 0x8b, 0x87, 0xa0, 0x10, 0x42, 0x4f, 0x39, 0x25, 116 0xa8, 0x97, 0x22, 0x5e, 0xb4, 0xf6, 0x10, 0xf0, 0xb4, 0xde, 0xbc, 0x6d, 0xda, 0x35, 0x2e, 0xdd, 117 0xce, 0x86, 0x65, 0x2b, 0xc9, 0x1b, 0x7a, 0xf4, 0x11, 0x24, 0xcf, 0xe0, 0x03, 0x48, 0x36, 0xf8, 118 0xa7, 0xa7, 0xfd, 0xbe, 0x6f, 0xbf, 0x61, 0x7e, 0x0c, 0x4e, 0x6b, 0x6b, 0x9a, 0x36, 0xab, 0xad, 119 0x71, 0x86, 0x05, 0xde, 0xcc, 0xbf, 0x00, 0xc3, 0x55, 0xe3, 0xac, 0x28, 0xe8, 0xc5, 0x30, 0x86, 120 0x93, 0x27, 0xa1, 0x5d, 0x04, 0x09, 0xa4, 0x33, 0xee, 0x35, 0x9b, 0xe3, 0xac, 0x20, 0x27, 0x2d, 121 0x09, 0xbd, 0x34, 0x44, 0xd1, 0x28, 0x81, 0xf4, 0x98, 0x1f, 0x64, 0x7d, 0xa7, 0x7f, 0xe5, 0xda, 122 0x29, 0x43, 0xc5, 0x43, 0x34, 0x4e, 0x20, 0x3d, 0xe1, 0x07, 0x19, 0xbb, 0xc4, 0xe0, 0x51, 0x94, 123 0x52, 0x47, 0x93, 0x64, 0x9c, 0x4e, 0xaf, 0x2e, 0xb2, 0x81, 0xe6, 0x77, 0x79, 0xe6, 0x7f, 0x57, 124 0xe4, 0x6c, 0xcb, 0x87, 0x26, 0x8b, 0x11, 0x97, 0x5a, 0x49, 0x72, 0x77, 0x9b, 0x8d, 0x8d, 0x82, 125 0x04, 0xd2, 0x90, 0xff, 0x4b, 0xce, 0x17, 0x88, 0x7f, 0x43, 0xec, 0x14, 0xc7, 0x5b, 0xd9, 0x7a, 126 0xf6, 0x90, 0xf7, 0x92, 0x9d, 0x61, 0xf0, 0x26, 0xf4, 0x5e, 0x7a, 0xe6, 0x90, 0x0f, 0xe6, 0x66, 127 0xb4, 0x80, 0xfb, 0xdb, 0xf7, 0x2e, 0x86, 0x8f, 0x2e, 0x86, 0xcf, 0x2e, 0x86, 0xe7, 0xac, 0x52, 128 0xee, 0x75, 0x5f, 0x66, 0x6b, 0xb3, 0xcb, 0x77, 0xc2, 0x59, 0xd5, 0x18, 0xab, 0x2a, 0x45, 0x3f, 129 0x86, 0x64, 0x5e, 0x6f, 0xab, 0xbc, 0x2e, 0x73, 0xcf, 0x5c, 0x1e, 0xf9, 0x13, 0x5e, 0x7f, 0x07, 130 0x00, 0x00, 0xff, 0xff, 0x59, 0x46, 0x1c, 0x7a, 0x51, 0x01, 0x00, 0x00, 131 } 132 133 func (m *ExtraInfo) Marshal() (dAtA []byte, err error) { 134 size := m.Size() 135 dAtA = make([]byte, size) 136 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 137 if err != nil { 138 return nil, err 139 } 140 return dAtA[:n], nil 141 } 142 143 func (m *ExtraInfo) MarshalTo(dAtA []byte) (int, error) { 144 size := m.Size() 145 return m.MarshalToSizedBuffer(dAtA[:size]) 146 } 147 148 func (m *ExtraInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 149 i := len(dAtA) 150 _ = i 151 var l int 152 _ = l 153 if m.XXX_unrecognized != nil { 154 i -= len(m.XXX_unrecognized) 155 copy(dAtA[i:], m.XXX_unrecognized) 156 } 157 if len(m.ClientAddr) > 0 { 158 i -= len(m.ClientAddr) 159 copy(dAtA[i:], m.ClientAddr) 160 i = encodeVarintProxy(dAtA, i, uint64(len(m.ClientAddr))) 161 i-- 162 dAtA[i] = 0x2a 163 } 164 if len(m.Label) > 0 { 165 for k := range m.Label { 166 v := m.Label[k] 167 baseI := i 168 i -= len(v) 169 copy(dAtA[i:], v) 170 i = encodeVarintProxy(dAtA, i, uint64(len(v))) 171 i-- 172 dAtA[i] = 0x12 173 i -= len(k) 174 copy(dAtA[i:], k) 175 i = encodeVarintProxy(dAtA, i, uint64(len(k))) 176 i-- 177 dAtA[i] = 0xa 178 i = encodeVarintProxy(dAtA, i, uint64(baseI-i)) 179 i-- 180 dAtA[i] = 0x22 181 } 182 } 183 if m.ConnectionID != 0 { 184 i = encodeVarintProxy(dAtA, i, uint64(m.ConnectionID)) 185 i-- 186 dAtA[i] = 0x18 187 } 188 if m.InternalConn { 189 i-- 190 if m.InternalConn { 191 dAtA[i] = 1 192 } else { 193 dAtA[i] = 0 194 } 195 i-- 196 dAtA[i] = 0x10 197 } 198 if len(m.Salt) > 0 { 199 i -= len(m.Salt) 200 copy(dAtA[i:], m.Salt) 201 i = encodeVarintProxy(dAtA, i, uint64(len(m.Salt))) 202 i-- 203 dAtA[i] = 0xa 204 } 205 return len(dAtA) - i, nil 206 } 207 208 func encodeVarintProxy(dAtA []byte, offset int, v uint64) int { 209 offset -= sovProxy(v) 210 base := offset 211 for v >= 1<<7 { 212 dAtA[offset] = uint8(v&0x7f | 0x80) 213 v >>= 7 214 offset++ 215 } 216 dAtA[offset] = uint8(v) 217 return base 218 } 219 func (m *ExtraInfo) Size() (n int) { 220 if m == nil { 221 return 0 222 } 223 var l int 224 _ = l 225 l = len(m.Salt) 226 if l > 0 { 227 n += 1 + l + sovProxy(uint64(l)) 228 } 229 if m.InternalConn { 230 n += 2 231 } 232 if m.ConnectionID != 0 { 233 n += 1 + sovProxy(uint64(m.ConnectionID)) 234 } 235 if len(m.Label) > 0 { 236 for k, v := range m.Label { 237 _ = k 238 _ = v 239 mapEntrySize := 1 + len(k) + sovProxy(uint64(len(k))) + 1 + len(v) + sovProxy(uint64(len(v))) 240 n += mapEntrySize + 1 + sovProxy(uint64(mapEntrySize)) 241 } 242 } 243 l = len(m.ClientAddr) 244 if l > 0 { 245 n += 1 + l + sovProxy(uint64(l)) 246 } 247 if m.XXX_unrecognized != nil { 248 n += len(m.XXX_unrecognized) 249 } 250 return n 251 } 252 253 func sovProxy(x uint64) (n int) { 254 return (math_bits.Len64(x|1) + 6) / 7 255 } 256 func sozProxy(x uint64) (n int) { 257 return sovProxy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 258 } 259 func (m *ExtraInfo) Unmarshal(dAtA []byte) error { 260 l := len(dAtA) 261 iNdEx := 0 262 for iNdEx < l { 263 preIndex := iNdEx 264 var wire uint64 265 for shift := uint(0); ; shift += 7 { 266 if shift >= 64 { 267 return ErrIntOverflowProxy 268 } 269 if iNdEx >= l { 270 return io.ErrUnexpectedEOF 271 } 272 b := dAtA[iNdEx] 273 iNdEx++ 274 wire |= uint64(b&0x7F) << shift 275 if b < 0x80 { 276 break 277 } 278 } 279 fieldNum := int32(wire >> 3) 280 wireType := int(wire & 0x7) 281 if wireType == 4 { 282 return fmt.Errorf("proto: ExtraInfo: wiretype end group for non-group") 283 } 284 if fieldNum <= 0 { 285 return fmt.Errorf("proto: ExtraInfo: illegal tag %d (wire type %d)", fieldNum, wire) 286 } 287 switch fieldNum { 288 case 1: 289 if wireType != 2 { 290 return fmt.Errorf("proto: wrong wireType = %d for field Salt", wireType) 291 } 292 var byteLen int 293 for shift := uint(0); ; shift += 7 { 294 if shift >= 64 { 295 return ErrIntOverflowProxy 296 } 297 if iNdEx >= l { 298 return io.ErrUnexpectedEOF 299 } 300 b := dAtA[iNdEx] 301 iNdEx++ 302 byteLen |= int(b&0x7F) << shift 303 if b < 0x80 { 304 break 305 } 306 } 307 if byteLen < 0 { 308 return ErrInvalidLengthProxy 309 } 310 postIndex := iNdEx + byteLen 311 if postIndex < 0 { 312 return ErrInvalidLengthProxy 313 } 314 if postIndex > l { 315 return io.ErrUnexpectedEOF 316 } 317 m.Salt = append(m.Salt[:0], dAtA[iNdEx:postIndex]...) 318 if m.Salt == nil { 319 m.Salt = []byte{} 320 } 321 iNdEx = postIndex 322 case 2: 323 if wireType != 0 { 324 return fmt.Errorf("proto: wrong wireType = %d for field InternalConn", wireType) 325 } 326 var v int 327 for shift := uint(0); ; shift += 7 { 328 if shift >= 64 { 329 return ErrIntOverflowProxy 330 } 331 if iNdEx >= l { 332 return io.ErrUnexpectedEOF 333 } 334 b := dAtA[iNdEx] 335 iNdEx++ 336 v |= int(b&0x7F) << shift 337 if b < 0x80 { 338 break 339 } 340 } 341 m.InternalConn = bool(v != 0) 342 case 3: 343 if wireType != 0 { 344 return fmt.Errorf("proto: wrong wireType = %d for field ConnectionID", wireType) 345 } 346 m.ConnectionID = 0 347 for shift := uint(0); ; shift += 7 { 348 if shift >= 64 { 349 return ErrIntOverflowProxy 350 } 351 if iNdEx >= l { 352 return io.ErrUnexpectedEOF 353 } 354 b := dAtA[iNdEx] 355 iNdEx++ 356 m.ConnectionID |= uint32(b&0x7F) << shift 357 if b < 0x80 { 358 break 359 } 360 } 361 case 4: 362 if wireType != 2 { 363 return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType) 364 } 365 var msglen int 366 for shift := uint(0); ; shift += 7 { 367 if shift >= 64 { 368 return ErrIntOverflowProxy 369 } 370 if iNdEx >= l { 371 return io.ErrUnexpectedEOF 372 } 373 b := dAtA[iNdEx] 374 iNdEx++ 375 msglen |= int(b&0x7F) << shift 376 if b < 0x80 { 377 break 378 } 379 } 380 if msglen < 0 { 381 return ErrInvalidLengthProxy 382 } 383 postIndex := iNdEx + msglen 384 if postIndex < 0 { 385 return ErrInvalidLengthProxy 386 } 387 if postIndex > l { 388 return io.ErrUnexpectedEOF 389 } 390 if m.Label == nil { 391 m.Label = make(map[string]string) 392 } 393 var mapkey string 394 var mapvalue string 395 for iNdEx < postIndex { 396 entryPreIndex := iNdEx 397 var wire uint64 398 for shift := uint(0); ; shift += 7 { 399 if shift >= 64 { 400 return ErrIntOverflowProxy 401 } 402 if iNdEx >= l { 403 return io.ErrUnexpectedEOF 404 } 405 b := dAtA[iNdEx] 406 iNdEx++ 407 wire |= uint64(b&0x7F) << shift 408 if b < 0x80 { 409 break 410 } 411 } 412 fieldNum := int32(wire >> 3) 413 if fieldNum == 1 { 414 var stringLenmapkey uint64 415 for shift := uint(0); ; shift += 7 { 416 if shift >= 64 { 417 return ErrIntOverflowProxy 418 } 419 if iNdEx >= l { 420 return io.ErrUnexpectedEOF 421 } 422 b := dAtA[iNdEx] 423 iNdEx++ 424 stringLenmapkey |= uint64(b&0x7F) << shift 425 if b < 0x80 { 426 break 427 } 428 } 429 intStringLenmapkey := int(stringLenmapkey) 430 if intStringLenmapkey < 0 { 431 return ErrInvalidLengthProxy 432 } 433 postStringIndexmapkey := iNdEx + intStringLenmapkey 434 if postStringIndexmapkey < 0 { 435 return ErrInvalidLengthProxy 436 } 437 if postStringIndexmapkey > l { 438 return io.ErrUnexpectedEOF 439 } 440 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 441 iNdEx = postStringIndexmapkey 442 } else if fieldNum == 2 { 443 var stringLenmapvalue uint64 444 for shift := uint(0); ; shift += 7 { 445 if shift >= 64 { 446 return ErrIntOverflowProxy 447 } 448 if iNdEx >= l { 449 return io.ErrUnexpectedEOF 450 } 451 b := dAtA[iNdEx] 452 iNdEx++ 453 stringLenmapvalue |= uint64(b&0x7F) << shift 454 if b < 0x80 { 455 break 456 } 457 } 458 intStringLenmapvalue := int(stringLenmapvalue) 459 if intStringLenmapvalue < 0 { 460 return ErrInvalidLengthProxy 461 } 462 postStringIndexmapvalue := iNdEx + intStringLenmapvalue 463 if postStringIndexmapvalue < 0 { 464 return ErrInvalidLengthProxy 465 } 466 if postStringIndexmapvalue > l { 467 return io.ErrUnexpectedEOF 468 } 469 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) 470 iNdEx = postStringIndexmapvalue 471 } else { 472 iNdEx = entryPreIndex 473 skippy, err := skipProxy(dAtA[iNdEx:]) 474 if err != nil { 475 return err 476 } 477 if (skippy < 0) || (iNdEx+skippy) < 0 { 478 return ErrInvalidLengthProxy 479 } 480 if (iNdEx + skippy) > postIndex { 481 return io.ErrUnexpectedEOF 482 } 483 iNdEx += skippy 484 } 485 } 486 m.Label[mapkey] = mapvalue 487 iNdEx = postIndex 488 case 5: 489 if wireType != 2 { 490 return fmt.Errorf("proto: wrong wireType = %d for field ClientAddr", wireType) 491 } 492 var stringLen uint64 493 for shift := uint(0); ; shift += 7 { 494 if shift >= 64 { 495 return ErrIntOverflowProxy 496 } 497 if iNdEx >= l { 498 return io.ErrUnexpectedEOF 499 } 500 b := dAtA[iNdEx] 501 iNdEx++ 502 stringLen |= uint64(b&0x7F) << shift 503 if b < 0x80 { 504 break 505 } 506 } 507 intStringLen := int(stringLen) 508 if intStringLen < 0 { 509 return ErrInvalidLengthProxy 510 } 511 postIndex := iNdEx + intStringLen 512 if postIndex < 0 { 513 return ErrInvalidLengthProxy 514 } 515 if postIndex > l { 516 return io.ErrUnexpectedEOF 517 } 518 m.ClientAddr = string(dAtA[iNdEx:postIndex]) 519 iNdEx = postIndex 520 default: 521 iNdEx = preIndex 522 skippy, err := skipProxy(dAtA[iNdEx:]) 523 if err != nil { 524 return err 525 } 526 if (skippy < 0) || (iNdEx+skippy) < 0 { 527 return ErrInvalidLengthProxy 528 } 529 if (iNdEx + skippy) > l { 530 return io.ErrUnexpectedEOF 531 } 532 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 533 iNdEx += skippy 534 } 535 } 536 537 if iNdEx > l { 538 return io.ErrUnexpectedEOF 539 } 540 return nil 541 } 542 func skipProxy(dAtA []byte) (n int, err error) { 543 l := len(dAtA) 544 iNdEx := 0 545 depth := 0 546 for iNdEx < l { 547 var wire uint64 548 for shift := uint(0); ; shift += 7 { 549 if shift >= 64 { 550 return 0, ErrIntOverflowProxy 551 } 552 if iNdEx >= l { 553 return 0, io.ErrUnexpectedEOF 554 } 555 b := dAtA[iNdEx] 556 iNdEx++ 557 wire |= (uint64(b) & 0x7F) << shift 558 if b < 0x80 { 559 break 560 } 561 } 562 wireType := int(wire & 0x7) 563 switch wireType { 564 case 0: 565 for shift := uint(0); ; shift += 7 { 566 if shift >= 64 { 567 return 0, ErrIntOverflowProxy 568 } 569 if iNdEx >= l { 570 return 0, io.ErrUnexpectedEOF 571 } 572 iNdEx++ 573 if dAtA[iNdEx-1] < 0x80 { 574 break 575 } 576 } 577 case 1: 578 iNdEx += 8 579 case 2: 580 var length int 581 for shift := uint(0); ; shift += 7 { 582 if shift >= 64 { 583 return 0, ErrIntOverflowProxy 584 } 585 if iNdEx >= l { 586 return 0, io.ErrUnexpectedEOF 587 } 588 b := dAtA[iNdEx] 589 iNdEx++ 590 length |= (int(b) & 0x7F) << shift 591 if b < 0x80 { 592 break 593 } 594 } 595 if length < 0 { 596 return 0, ErrInvalidLengthProxy 597 } 598 iNdEx += length 599 case 3: 600 depth++ 601 case 4: 602 if depth == 0 { 603 return 0, ErrUnexpectedEndOfGroupProxy 604 } 605 depth-- 606 case 5: 607 iNdEx += 4 608 default: 609 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 610 } 611 if iNdEx < 0 { 612 return 0, ErrInvalidLengthProxy 613 } 614 if depth == 0 { 615 return iNdEx, nil 616 } 617 } 618 return 0, io.ErrUnexpectedEOF 619 } 620 621 var ( 622 ErrInvalidLengthProxy = fmt.Errorf("proto: negative length found during unmarshaling") 623 ErrIntOverflowProxy = fmt.Errorf("proto: integer overflow") 624 ErrUnexpectedEndOfGroupProxy = fmt.Errorf("proto: unexpected end of group") 625 )