github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/swarmkit/protobuf/plugin/plugin.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/docker/swarmkit/protobuf/plugin/plugin.proto 3 4 package plugin 5 6 import ( 7 fmt "fmt" 8 github_com_docker_swarmkit_api_deepcopy "github.com/docker/swarmkit/api/deepcopy" 9 github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" 10 proto "github.com/gogo/protobuf/proto" 11 descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" 12 io "io" 13 math "math" 14 reflect "reflect" 15 strings "strings" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var _ = proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 28 29 type WatchSelectors struct { 30 // supported by all object types 31 ID *bool `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` 32 IDPrefix *bool `protobuf:"varint,2,opt,name=id_prefix,json=idPrefix" json:"id_prefix,omitempty"` 33 Name *bool `protobuf:"varint,3,opt,name=name" json:"name,omitempty"` 34 NamePrefix *bool `protobuf:"varint,4,opt,name=name_prefix,json=namePrefix" json:"name_prefix,omitempty"` 35 Custom *bool `protobuf:"varint,5,opt,name=custom" json:"custom,omitempty"` 36 CustomPrefix *bool `protobuf:"varint,6,opt,name=custom_prefix,json=customPrefix" json:"custom_prefix,omitempty"` 37 // supported by tasks only 38 ServiceID *bool `protobuf:"varint,7,opt,name=service_id,json=serviceId" json:"service_id,omitempty"` 39 NodeID *bool `protobuf:"varint,8,opt,name=node_id,json=nodeId" json:"node_id,omitempty"` 40 Slot *bool `protobuf:"varint,9,opt,name=slot" json:"slot,omitempty"` 41 DesiredState *bool `protobuf:"varint,10,opt,name=desired_state,json=desiredState" json:"desired_state,omitempty"` 42 // supported by nodes only 43 Role *bool `protobuf:"varint,11,opt,name=role" json:"role,omitempty"` 44 Membership *bool `protobuf:"varint,12,opt,name=membership" json:"membership,omitempty"` 45 // supported by: resource 46 Kind *bool `protobuf:"varint,13,opt,name=kind" json:"kind,omitempty"` 47 } 48 49 func (m *WatchSelectors) Reset() { *m = WatchSelectors{} } 50 func (*WatchSelectors) ProtoMessage() {} 51 func (*WatchSelectors) Descriptor() ([]byte, []int) { 52 return fileDescriptor_3708583e03e1c1e3, []int{0} 53 } 54 func (m *WatchSelectors) XXX_Unmarshal(b []byte) error { 55 return m.Unmarshal(b) 56 } 57 func (m *WatchSelectors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 58 if deterministic { 59 return xxx_messageInfo_WatchSelectors.Marshal(b, m, deterministic) 60 } else { 61 b = b[:cap(b)] 62 n, err := m.MarshalTo(b) 63 if err != nil { 64 return nil, err 65 } 66 return b[:n], nil 67 } 68 } 69 func (m *WatchSelectors) XXX_Merge(src proto.Message) { 70 xxx_messageInfo_WatchSelectors.Merge(m, src) 71 } 72 func (m *WatchSelectors) XXX_Size() int { 73 return m.Size() 74 } 75 func (m *WatchSelectors) XXX_DiscardUnknown() { 76 xxx_messageInfo_WatchSelectors.DiscardUnknown(m) 77 } 78 79 var xxx_messageInfo_WatchSelectors proto.InternalMessageInfo 80 81 type StoreObject struct { 82 WatchSelectors *WatchSelectors `protobuf:"bytes,1,req,name=watch_selectors,json=watchSelectors" json:"watch_selectors,omitempty"` 83 } 84 85 func (m *StoreObject) Reset() { *m = StoreObject{} } 86 func (*StoreObject) ProtoMessage() {} 87 func (*StoreObject) Descriptor() ([]byte, []int) { 88 return fileDescriptor_3708583e03e1c1e3, []int{1} 89 } 90 func (m *StoreObject) XXX_Unmarshal(b []byte) error { 91 return m.Unmarshal(b) 92 } 93 func (m *StoreObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 94 if deterministic { 95 return xxx_messageInfo_StoreObject.Marshal(b, m, deterministic) 96 } else { 97 b = b[:cap(b)] 98 n, err := m.MarshalTo(b) 99 if err != nil { 100 return nil, err 101 } 102 return b[:n], nil 103 } 104 } 105 func (m *StoreObject) XXX_Merge(src proto.Message) { 106 xxx_messageInfo_StoreObject.Merge(m, src) 107 } 108 func (m *StoreObject) XXX_Size() int { 109 return m.Size() 110 } 111 func (m *StoreObject) XXX_DiscardUnknown() { 112 xxx_messageInfo_StoreObject.DiscardUnknown(m) 113 } 114 115 var xxx_messageInfo_StoreObject proto.InternalMessageInfo 116 117 type TLSAuthorization struct { 118 // Roles contains the acceptable TLS OU roles for the handler. 119 Roles []string `protobuf:"bytes,1,rep,name=roles" json:"roles,omitempty"` 120 // Insecure is set to true if this method does not require 121 // authorization. NOTE: Specifying both "insecure" and a nonempty 122 // list of roles is invalid. This would fail at codegen time. 123 Insecure *bool `protobuf:"varint,2,opt,name=insecure" json:"insecure,omitempty"` 124 } 125 126 func (m *TLSAuthorization) Reset() { *m = TLSAuthorization{} } 127 func (*TLSAuthorization) ProtoMessage() {} 128 func (*TLSAuthorization) Descriptor() ([]byte, []int) { 129 return fileDescriptor_3708583e03e1c1e3, []int{2} 130 } 131 func (m *TLSAuthorization) XXX_Unmarshal(b []byte) error { 132 return m.Unmarshal(b) 133 } 134 func (m *TLSAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 135 if deterministic { 136 return xxx_messageInfo_TLSAuthorization.Marshal(b, m, deterministic) 137 } else { 138 b = b[:cap(b)] 139 n, err := m.MarshalTo(b) 140 if err != nil { 141 return nil, err 142 } 143 return b[:n], nil 144 } 145 } 146 func (m *TLSAuthorization) XXX_Merge(src proto.Message) { 147 xxx_messageInfo_TLSAuthorization.Merge(m, src) 148 } 149 func (m *TLSAuthorization) XXX_Size() int { 150 return m.Size() 151 } 152 func (m *TLSAuthorization) XXX_DiscardUnknown() { 153 xxx_messageInfo_TLSAuthorization.DiscardUnknown(m) 154 } 155 156 var xxx_messageInfo_TLSAuthorization proto.InternalMessageInfo 157 158 var E_Deepcopy = &proto.ExtensionDesc{ 159 ExtendedType: (*descriptor.MessageOptions)(nil), 160 ExtensionType: (*bool)(nil), 161 Field: 70000, 162 Name: "docker.protobuf.plugin.deepcopy", 163 Tag: "varint,70000,opt,name=deepcopy,def=1", 164 Filename: "github.com/docker/swarmkit/protobuf/plugin/plugin.proto", 165 } 166 167 var E_StoreObject = &proto.ExtensionDesc{ 168 ExtendedType: (*descriptor.MessageOptions)(nil), 169 ExtensionType: (*StoreObject)(nil), 170 Field: 70001, 171 Name: "docker.protobuf.plugin.store_object", 172 Tag: "bytes,70001,opt,name=store_object", 173 Filename: "github.com/docker/swarmkit/protobuf/plugin/plugin.proto", 174 } 175 176 var E_TlsAuthorization = &proto.ExtensionDesc{ 177 ExtendedType: (*descriptor.MethodOptions)(nil), 178 ExtensionType: (*TLSAuthorization)(nil), 179 Field: 73626345, 180 Name: "docker.protobuf.plugin.tls_authorization", 181 Tag: "bytes,73626345,opt,name=tls_authorization", 182 Filename: "github.com/docker/swarmkit/protobuf/plugin/plugin.proto", 183 } 184 185 func init() { 186 proto.RegisterType((*WatchSelectors)(nil), "docker.protobuf.plugin.WatchSelectors") 187 proto.RegisterType((*StoreObject)(nil), "docker.protobuf.plugin.StoreObject") 188 proto.RegisterType((*TLSAuthorization)(nil), "docker.protobuf.plugin.TLSAuthorization") 189 proto.RegisterExtension(E_Deepcopy) 190 proto.RegisterExtension(E_StoreObject) 191 proto.RegisterExtension(E_TlsAuthorization) 192 } 193 194 func init() { 195 proto.RegisterFile("github.com/docker/swarmkit/protobuf/plugin/plugin.proto", fileDescriptor_3708583e03e1c1e3) 196 } 197 198 var fileDescriptor_3708583e03e1c1e3 = []byte{ 199 // 588 bytes of a gzipped FileDescriptorProto 200 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x41, 0x6f, 0xd3, 0x4c, 201 0x10, 0x8d, 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4d, 0xb9, 0x91, 0xcf, 0x9a, 0xd5, 0x7e, 0xef, 0xa5, 0xc1, 0x82, 213 0x2a, 0xa3, 0x36, 0x22, 0x04, 0xd6, 0x93, 0x70, 0x8a, 0xee, 0x9a, 0x66, 0x05, 0x26, 0x26, 0x4d, 214 0xa8, 0xeb, 0xef, 0xa2, 0xc1, 0xba, 0x29, 0x81, 0x86, 0x0a, 0xd1, 0x2e, 0x54, 0xa2, 0x4c, 0x2a, 215 0x3e, 0x75, 0x37, 0x4c, 0xad, 0xc8, 0x48, 0x0b, 0xb6, 0x6c, 0xb4, 0x90, 0x56, 0x4c, 0xb9, 0x61, 216 0xc1, 0x42, 0xfc, 0x08, 0x40, 0xa2, 0x78, 0xc7, 0x22, 0x1c, 0x32, 0xea, 0x6e, 0x9a, 0xed, 0xb6, 217 0xf2, 0x59, 0xb3, 0x36, 0xb0, 0x68, 0xbf, 0x17, 0xd4, 0x0a, 0x42, 0x9f, 0x92, 0x16, 0x6c, 0x26, 218 0x9c, 0x1a, 0x6a, 0xd5, 0x50, 0x21, 0x9f, 0x35, 0x2b, 0x2f, 0x38, 0xd5, 0xbc, 0x8a, 0x2e, 0xf5, 219 0xa9, 0x36, 0x21, 0x63, 0xae, 0xdc, 0x9a, 0x35, 0xa1, 0x63, 0xbd, 0x0b, 0x45, 0xc9, 0x04, 0xd2, 220 0xa1, 0x54, 0xa1, 0x42, 0x17, 0xec, 0x2e, 0x05, 0x38, 0xd0, 0x98, 0x16, 0x0a, 0x1e, 0xa3, 0x5b, 221 0xb7, 0x42, 0x1d, 0x13, 0x0f, 0x60, 0x8a, 0xd3, 0x11, 0x0a, 0x39, 0x61, 0xa9, 0xdb, 0xb0, 0xe6, 222 0x97, 0x88, 0xd6, 0x9c, 0xb2, 0x84, 0xba, 0x5b, 0x56, 0xa3, 0xe3, 0x83, 0x37, 0x50, 0x1f, 0x28, 223 0x2e, 0xf0, 0x78, 0xf4, 0x16, 0x23, 0x45, 0x8e, 0xe1, 0xbf,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0xee, 0x39, 235 0xdf, 0x72, 0xcf, 0xf9, 0x3c, 0xf7, 0x4a, 0x97, 0x73, 0xaf, 0x74, 0x35, 0xf7, 0x4a, 0xbf, 0x03, 236 0x00, 0x00, 0xff, 0xff, 0x0f, 0x50, 0xb9, 0xa3, 0x05, 0x04, 0x00, 0x00, 237 } 238 239 func (m *WatchSelectors) Copy() *WatchSelectors { 240 if m == nil { 241 return nil 242 } 243 o := &WatchSelectors{} 244 o.CopyFrom(m) 245 return o 246 } 247 248 func (m *WatchSelectors) CopyFrom(src interface{}) { 249 250 o := src.(*WatchSelectors) 251 *m = *o 252 } 253 254 func (m *StoreObject) Copy() *StoreObject { 255 if m == nil { 256 return nil 257 } 258 o := &StoreObject{} 259 o.CopyFrom(m) 260 return o 261 } 262 263 func (m *StoreObject) CopyFrom(src interface{}) { 264 265 o := src.(*StoreObject) 266 *m = *o 267 if o.WatchSelectors != nil { 268 m.WatchSelectors = &WatchSelectors{} 269 github_com_docker_swarmkit_api_deepcopy.Copy(m.WatchSelectors, o.WatchSelectors) 270 } 271 } 272 273 func (m *TLSAuthorization) Copy() *TLSAuthorization { 274 if m == nil { 275 return nil 276 } 277 o := &TLSAuthorization{} 278 o.CopyFrom(m) 279 return o 280 } 281 282 func (m *TLSAuthorization) CopyFrom(src interface{}) { 283 284 o := src.(*TLSAuthorization) 285 *m = *o 286 if o.Roles != nil { 287 m.Roles = make([]string, len(o.Roles)) 288 copy(m.Roles, o.Roles) 289 } 290 291 } 292 293 func (m *WatchSelectors) Marshal() (dAtA []byte, err error) { 294 size := m.Size() 295 dAtA = make([]byte, size) 296 n, err := m.MarshalTo(dAtA) 297 if err != nil { 298 return nil, err 299 } 300 return dAtA[:n], nil 301 } 302 303 func (m *WatchSelectors) MarshalTo(dAtA []byte) (int, error) { 304 var i int 305 _ = i 306 var l int 307 _ = l 308 if m.ID != nil { 309 dAtA[i] = 0x8 310 i++ 311 if *m.ID { 312 dAtA[i] = 1 313 } else { 314 dAtA[i] = 0 315 } 316 i++ 317 } 318 if m.IDPrefix != nil { 319 dAtA[i] = 0x10 320 i++ 321 if *m.IDPrefix { 322 dAtA[i] = 1 323 } else { 324 dAtA[i] = 0 325 } 326 i++ 327 } 328 if m.Name != nil { 329 dAtA[i] = 0x18 330 i++ 331 if *m.Name { 332 dAtA[i] = 1 333 } else { 334 dAtA[i] = 0 335 } 336 i++ 337 } 338 if m.NamePrefix != nil { 339 dAtA[i] = 0x20 340 i++ 341 if *m.NamePrefix { 342 dAtA[i] = 1 343 } else { 344 dAtA[i] = 0 345 } 346 i++ 347 } 348 if m.Custom != nil { 349 dAtA[i] = 0x28 350 i++ 351 if *m.Custom { 352 dAtA[i] = 1 353 } else { 354 dAtA[i] = 0 355 } 356 i++ 357 } 358 if m.CustomPrefix != nil { 359 dAtA[i] = 0x30 360 i++ 361 if *m.CustomPrefix { 362 dAtA[i] = 1 363 } else { 364 dAtA[i] = 0 365 } 366 i++ 367 } 368 if m.ServiceID != nil { 369 dAtA[i] = 0x38 370 i++ 371 if *m.ServiceID { 372 dAtA[i] = 1 373 } else { 374 dAtA[i] = 0 375 } 376 i++ 377 } 378 if m.NodeID != nil { 379 dAtA[i] = 0x40 380 i++ 381 if *m.NodeID { 382 dAtA[i] = 1 383 } else { 384 dAtA[i] = 0 385 } 386 i++ 387 } 388 if m.Slot != nil { 389 dAtA[i] = 0x48 390 i++ 391 if *m.Slot { 392 dAtA[i] = 1 393 } else { 394 dAtA[i] = 0 395 } 396 i++ 397 } 398 if m.DesiredState != nil { 399 dAtA[i] = 0x50 400 i++ 401 if *m.DesiredState { 402 dAtA[i] = 1 403 } else { 404 dAtA[i] = 0 405 } 406 i++ 407 } 408 if m.Role != nil { 409 dAtA[i] = 0x58 410 i++ 411 if *m.Role { 412 dAtA[i] = 1 413 } else { 414 dAtA[i] = 0 415 } 416 i++ 417 } 418 if m.Membership != nil { 419 dAtA[i] = 0x60 420 i++ 421 if *m.Membership { 422 dAtA[i] = 1 423 } else { 424 dAtA[i] = 0 425 } 426 i++ 427 } 428 if m.Kind != nil { 429 dAtA[i] = 0x68 430 i++ 431 if *m.Kind { 432 dAtA[i] = 1 433 } else { 434 dAtA[i] = 0 435 } 436 i++ 437 } 438 return i, nil 439 } 440 441 func (m *StoreObject) Marshal() (dAtA []byte, err error) { 442 size := m.Size() 443 dAtA = make([]byte, size) 444 n, err := m.MarshalTo(dAtA) 445 if err != nil { 446 return nil, err 447 } 448 return dAtA[:n], nil 449 } 450 451 func (m *StoreObject) MarshalTo(dAtA []byte) (int, error) { 452 var i int 453 _ = i 454 var l int 455 _ = l 456 if m.WatchSelectors == nil { 457 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("watch_selectors") 458 } else { 459 dAtA[i] = 0xa 460 i++ 461 i = encodeVarintPlugin(dAtA, i, uint64(m.WatchSelectors.Size())) 462 n1, err := m.WatchSelectors.MarshalTo(dAtA[i:]) 463 if err != nil { 464 return 0, err 465 } 466 i += n1 467 } 468 return i, nil 469 } 470 471 func (m *TLSAuthorization) Marshal() (dAtA []byte, err error) { 472 size := m.Size() 473 dAtA = make([]byte, size) 474 n, err := m.MarshalTo(dAtA) 475 if err != nil { 476 return nil, err 477 } 478 return dAtA[:n], nil 479 } 480 481 func (m *TLSAuthorization) MarshalTo(dAtA []byte) (int, error) { 482 var i int 483 _ = i 484 var l int 485 _ = l 486 if len(m.Roles) > 0 { 487 for _, s := range m.Roles { 488 dAtA[i] = 0xa 489 i++ 490 l = len(s) 491 for l >= 1<<7 { 492 dAtA[i] = uint8(uint64(l)&0x7f | 0x80) 493 l >>= 7 494 i++ 495 } 496 dAtA[i] = uint8(l) 497 i++ 498 i += copy(dAtA[i:], s) 499 } 500 } 501 if m.Insecure != nil { 502 dAtA[i] = 0x10 503 i++ 504 if *m.Insecure { 505 dAtA[i] = 1 506 } else { 507 dAtA[i] = 0 508 } 509 i++ 510 } 511 return i, nil 512 } 513 514 func encodeVarintPlugin(dAtA []byte, offset int, v uint64) int { 515 for v >= 1<<7 { 516 dAtA[offset] = uint8(v&0x7f | 0x80) 517 v >>= 7 518 offset++ 519 } 520 dAtA[offset] = uint8(v) 521 return offset + 1 522 } 523 func (m *WatchSelectors) Size() (n int) { 524 if m == nil { 525 return 0 526 } 527 var l int 528 _ = l 529 if m.ID != nil { 530 n += 2 531 } 532 if m.IDPrefix != nil { 533 n += 2 534 } 535 if m.Name != nil { 536 n += 2 537 } 538 if m.NamePrefix != nil { 539 n += 2 540 } 541 if m.Custom != nil { 542 n += 2 543 } 544 if m.CustomPrefix != nil { 545 n += 2 546 } 547 if m.ServiceID != nil { 548 n += 2 549 } 550 if m.NodeID != nil { 551 n += 2 552 } 553 if m.Slot != nil { 554 n += 2 555 } 556 if m.DesiredState != nil { 557 n += 2 558 } 559 if m.Role != nil { 560 n += 2 561 } 562 if m.Membership != nil { 563 n += 2 564 } 565 if m.Kind != nil { 566 n += 2 567 } 568 return n 569 } 570 571 func (m *StoreObject) Size() (n int) { 572 if m == nil { 573 return 0 574 } 575 var l int 576 _ = l 577 if m.WatchSelectors != nil { 578 l = m.WatchSelectors.Size() 579 n += 1 + l + sovPlugin(uint64(l)) 580 } 581 return n 582 } 583 584 func (m *TLSAuthorization) Size() (n int) { 585 if m == nil { 586 return 0 587 } 588 var l int 589 _ = l 590 if len(m.Roles) > 0 { 591 for _, s := range m.Roles { 592 l = len(s) 593 n += 1 + l + sovPlugin(uint64(l)) 594 } 595 } 596 if m.Insecure != nil { 597 n += 2 598 } 599 return n 600 } 601 602 func sovPlugin(x uint64) (n int) { 603 for { 604 n++ 605 x >>= 7 606 if x == 0 { 607 break 608 } 609 } 610 return n 611 } 612 func sozPlugin(x uint64) (n int) { 613 return sovPlugin(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 614 } 615 func (this *WatchSelectors) String() string { 616 if this == nil { 617 return "nil" 618 } 619 s := strings.Join([]string{`&WatchSelectors{`, 620 `ID:` + valueToStringPlugin(this.ID) + `,`, 621 `IDPrefix:` + valueToStringPlugin(this.IDPrefix) + `,`, 622 `Name:` + valueToStringPlugin(this.Name) + `,`, 623 `NamePrefix:` + valueToStringPlugin(this.NamePrefix) + `,`, 624 `Custom:` + valueToStringPlugin(this.Custom) + `,`, 625 `CustomPrefix:` + valueToStringPlugin(this.CustomPrefix) + `,`, 626 `ServiceID:` + valueToStringPlugin(this.ServiceID) + `,`, 627 `NodeID:` + valueToStringPlugin(this.NodeID) + `,`, 628 `Slot:` + valueToStringPlugin(this.Slot) + `,`, 629 `DesiredState:` + valueToStringPlugin(this.DesiredState) + `,`, 630 `Role:` + valueToStringPlugin(this.Role) + `,`, 631 `Membership:` + valueToStringPlugin(this.Membership) + `,`, 632 `Kind:` + valueToStringPlugin(this.Kind) + `,`, 633 `}`, 634 }, "") 635 return s 636 } 637 func (this *StoreObject) String() string { 638 if this == nil { 639 return "nil" 640 } 641 s := strings.Join([]string{`&StoreObject{`, 642 `WatchSelectors:` + strings.Replace(fmt.Sprintf("%v", this.WatchSelectors), "WatchSelectors", "WatchSelectors", 1) + `,`, 643 `}`, 644 }, "") 645 return s 646 } 647 func (this *TLSAuthorization) String() string { 648 if this == nil { 649 return "nil" 650 } 651 s := strings.Join([]string{`&TLSAuthorization{`, 652 `Roles:` + fmt.Sprintf("%v", this.Roles) + `,`, 653 `Insecure:` + valueToStringPlugin(this.Insecure) + `,`, 654 `}`, 655 }, "") 656 return s 657 } 658 func valueToStringPlugin(v interface{}) string { 659 rv := reflect.ValueOf(v) 660 if rv.IsNil() { 661 return "nil" 662 } 663 pv := reflect.Indirect(rv).Interface() 664 return fmt.Sprintf("*%v", pv) 665 } 666 func (m *WatchSelectors) Unmarshal(dAtA []byte) error { 667 l := len(dAtA) 668 iNdEx := 0 669 for iNdEx < l { 670 preIndex := iNdEx 671 var wire uint64 672 for shift := uint(0); ; shift += 7 { 673 if shift >= 64 { 674 return ErrIntOverflowPlugin 675 } 676 if iNdEx >= l { 677 return io.ErrUnexpectedEOF 678 } 679 b := dAtA[iNdEx] 680 iNdEx++ 681 wire |= uint64(b&0x7F) << shift 682 if b < 0x80 { 683 break 684 } 685 } 686 fieldNum := int32(wire >> 3) 687 wireType := int(wire & 0x7) 688 if wireType == 4 { 689 return fmt.Errorf("proto: WatchSelectors: wiretype end group for non-group") 690 } 691 if fieldNum <= 0 { 692 return fmt.Errorf("proto: WatchSelectors: illegal tag %d (wire type %d)", fieldNum, wire) 693 } 694 switch fieldNum { 695 case 1: 696 if wireType != 0 { 697 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 698 } 699 var v int 700 for shift := uint(0); ; shift += 7 { 701 if shift >= 64 { 702 return ErrIntOverflowPlugin 703 } 704 if iNdEx >= l { 705 return io.ErrUnexpectedEOF 706 } 707 b := dAtA[iNdEx] 708 iNdEx++ 709 v |= int(b&0x7F) << shift 710 if b < 0x80 { 711 break 712 } 713 } 714 b := bool(v != 0) 715 m.ID = &b 716 case 2: 717 if wireType != 0 { 718 return fmt.Errorf("proto: wrong wireType = %d for field IDPrefix", wireType) 719 } 720 var v int 721 for shift := uint(0); ; shift += 7 { 722 if shift >= 64 { 723 return ErrIntOverflowPlugin 724 } 725 if iNdEx >= l { 726 return io.ErrUnexpectedEOF 727 } 728 b := dAtA[iNdEx] 729 iNdEx++ 730 v |= int(b&0x7F) << shift 731 if b < 0x80 { 732 break 733 } 734 } 735 b := bool(v != 0) 736 m.IDPrefix = &b 737 case 3: 738 if wireType != 0 { 739 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 740 } 741 var v int 742 for shift := uint(0); ; shift += 7 { 743 if shift >= 64 { 744 return ErrIntOverflowPlugin 745 } 746 if iNdEx >= l { 747 return io.ErrUnexpectedEOF 748 } 749 b := dAtA[iNdEx] 750 iNdEx++ 751 v |= int(b&0x7F) << shift 752 if b < 0x80 { 753 break 754 } 755 } 756 b := bool(v != 0) 757 m.Name = &b 758 case 4: 759 if wireType != 0 { 760 return fmt.Errorf("proto: wrong wireType = %d for field NamePrefix", wireType) 761 } 762 var v int 763 for shift := uint(0); ; shift += 7 { 764 if shift >= 64 { 765 return ErrIntOverflowPlugin 766 } 767 if iNdEx >= l { 768 return io.ErrUnexpectedEOF 769 } 770 b := dAtA[iNdEx] 771 iNdEx++ 772 v |= int(b&0x7F) << shift 773 if b < 0x80 { 774 break 775 } 776 } 777 b := bool(v != 0) 778 m.NamePrefix = &b 779 case 5: 780 if wireType != 0 { 781 return fmt.Errorf("proto: wrong wireType = %d for field Custom", wireType) 782 } 783 var v int 784 for shift := uint(0); ; shift += 7 { 785 if shift >= 64 { 786 return ErrIntOverflowPlugin 787 } 788 if iNdEx >= l { 789 return io.ErrUnexpectedEOF 790 } 791 b := dAtA[iNdEx] 792 iNdEx++ 793 v |= int(b&0x7F) << shift 794 if b < 0x80 { 795 break 796 } 797 } 798 b := bool(v != 0) 799 m.Custom = &b 800 case 6: 801 if wireType != 0 { 802 return fmt.Errorf("proto: wrong wireType = %d for field CustomPrefix", wireType) 803 } 804 var v int 805 for shift := uint(0); ; shift += 7 { 806 if shift >= 64 { 807 return ErrIntOverflowPlugin 808 } 809 if iNdEx >= l { 810 return io.ErrUnexpectedEOF 811 } 812 b := dAtA[iNdEx] 813 iNdEx++ 814 v |= int(b&0x7F) << shift 815 if b < 0x80 { 816 break 817 } 818 } 819 b := bool(v != 0) 820 m.CustomPrefix = &b 821 case 7: 822 if wireType != 0 { 823 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 824 } 825 var v int 826 for shift := uint(0); ; shift += 7 { 827 if shift >= 64 { 828 return ErrIntOverflowPlugin 829 } 830 if iNdEx >= l { 831 return io.ErrUnexpectedEOF 832 } 833 b := dAtA[iNdEx] 834 iNdEx++ 835 v |= int(b&0x7F) << shift 836 if b < 0x80 { 837 break 838 } 839 } 840 b := bool(v != 0) 841 m.ServiceID = &b 842 case 8: 843 if wireType != 0 { 844 return fmt.Errorf("proto: wrong wireType = %d for field NodeID", wireType) 845 } 846 var v int 847 for shift := uint(0); ; shift += 7 { 848 if shift >= 64 { 849 return ErrIntOverflowPlugin 850 } 851 if iNdEx >= l { 852 return io.ErrUnexpectedEOF 853 } 854 b := dAtA[iNdEx] 855 iNdEx++ 856 v |= int(b&0x7F) << shift 857 if b < 0x80 { 858 break 859 } 860 } 861 b := bool(v != 0) 862 m.NodeID = &b 863 case 9: 864 if wireType != 0 { 865 return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) 866 } 867 var v int 868 for shift := uint(0); ; shift += 7 { 869 if shift >= 64 { 870 return ErrIntOverflowPlugin 871 } 872 if iNdEx >= l { 873 return io.ErrUnexpectedEOF 874 } 875 b := dAtA[iNdEx] 876 iNdEx++ 877 v |= int(b&0x7F) << shift 878 if b < 0x80 { 879 break 880 } 881 } 882 b := bool(v != 0) 883 m.Slot = &b 884 case 10: 885 if wireType != 0 { 886 return fmt.Errorf("proto: wrong wireType = %d for field DesiredState", wireType) 887 } 888 var v int 889 for shift := uint(0); ; shift += 7 { 890 if shift >= 64 { 891 return ErrIntOverflowPlugin 892 } 893 if iNdEx >= l { 894 return io.ErrUnexpectedEOF 895 } 896 b := dAtA[iNdEx] 897 iNdEx++ 898 v |= int(b&0x7F) << shift 899 if b < 0x80 { 900 break 901 } 902 } 903 b := bool(v != 0) 904 m.DesiredState = &b 905 case 11: 906 if wireType != 0 { 907 return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) 908 } 909 var v int 910 for shift := uint(0); ; shift += 7 { 911 if shift >= 64 { 912 return ErrIntOverflowPlugin 913 } 914 if iNdEx >= l { 915 return io.ErrUnexpectedEOF 916 } 917 b := dAtA[iNdEx] 918 iNdEx++ 919 v |= int(b&0x7F) << shift 920 if b < 0x80 { 921 break 922 } 923 } 924 b := bool(v != 0) 925 m.Role = &b 926 case 12: 927 if wireType != 0 { 928 return fmt.Errorf("proto: wrong wireType = %d for field Membership", wireType) 929 } 930 var v int 931 for shift := uint(0); ; shift += 7 { 932 if shift >= 64 { 933 return ErrIntOverflowPlugin 934 } 935 if iNdEx >= l { 936 return io.ErrUnexpectedEOF 937 } 938 b := dAtA[iNdEx] 939 iNdEx++ 940 v |= int(b&0x7F) << shift 941 if b < 0x80 { 942 break 943 } 944 } 945 b := bool(v != 0) 946 m.Membership = &b 947 case 13: 948 if wireType != 0 { 949 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) 950 } 951 var v int 952 for shift := uint(0); ; shift += 7 { 953 if shift >= 64 { 954 return ErrIntOverflowPlugin 955 } 956 if iNdEx >= l { 957 return io.ErrUnexpectedEOF 958 } 959 b := dAtA[iNdEx] 960 iNdEx++ 961 v |= int(b&0x7F) << shift 962 if b < 0x80 { 963 break 964 } 965 } 966 b := bool(v != 0) 967 m.Kind = &b 968 default: 969 iNdEx = preIndex 970 skippy, err := skipPlugin(dAtA[iNdEx:]) 971 if err != nil { 972 return err 973 } 974 if skippy < 0 { 975 return ErrInvalidLengthPlugin 976 } 977 if (iNdEx + skippy) < 0 { 978 return ErrInvalidLengthPlugin 979 } 980 if (iNdEx + skippy) > l { 981 return io.ErrUnexpectedEOF 982 } 983 iNdEx += skippy 984 } 985 } 986 987 if iNdEx > l { 988 return io.ErrUnexpectedEOF 989 } 990 return nil 991 } 992 func (m *StoreObject) Unmarshal(dAtA []byte) error { 993 var hasFields [1]uint64 994 l := len(dAtA) 995 iNdEx := 0 996 for iNdEx < l { 997 preIndex := iNdEx 998 var wire uint64 999 for shift := uint(0); ; shift += 7 { 1000 if shift >= 64 { 1001 return ErrIntOverflowPlugin 1002 } 1003 if iNdEx >= l { 1004 return io.ErrUnexpectedEOF 1005 } 1006 b := dAtA[iNdEx] 1007 iNdEx++ 1008 wire |= uint64(b&0x7F) << shift 1009 if b < 0x80 { 1010 break 1011 } 1012 } 1013 fieldNum := int32(wire >> 3) 1014 wireType := int(wire & 0x7) 1015 if wireType == 4 { 1016 return fmt.Errorf("proto: StoreObject: wiretype end group for non-group") 1017 } 1018 if fieldNum <= 0 { 1019 return fmt.Errorf("proto: StoreObject: illegal tag %d (wire type %d)", fieldNum, wire) 1020 } 1021 switch fieldNum { 1022 case 1: 1023 if wireType != 2 { 1024 return fmt.Errorf("proto: wrong wireType = %d for field WatchSelectors", wireType) 1025 } 1026 var msglen int 1027 for shift := uint(0); ; shift += 7 { 1028 if shift >= 64 { 1029 return ErrIntOverflowPlugin 1030 } 1031 if iNdEx >= l { 1032 return io.ErrUnexpectedEOF 1033 } 1034 b := dAtA[iNdEx] 1035 iNdEx++ 1036 msglen |= int(b&0x7F) << shift 1037 if b < 0x80 { 1038 break 1039 } 1040 } 1041 if msglen < 0 { 1042 return ErrInvalidLengthPlugin 1043 } 1044 postIndex := iNdEx + msglen 1045 if postIndex < 0 { 1046 return ErrInvalidLengthPlugin 1047 } 1048 if postIndex > l { 1049 return io.ErrUnexpectedEOF 1050 } 1051 if m.WatchSelectors == nil { 1052 m.WatchSelectors = &WatchSelectors{} 1053 } 1054 if err := m.WatchSelectors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1055 return err 1056 } 1057 iNdEx = postIndex 1058 hasFields[0] |= uint64(0x00000001) 1059 default: 1060 iNdEx = preIndex 1061 skippy, err := skipPlugin(dAtA[iNdEx:]) 1062 if err != nil { 1063 return err 1064 } 1065 if skippy < 0 { 1066 return ErrInvalidLengthPlugin 1067 } 1068 if (iNdEx + skippy) < 0 { 1069 return ErrInvalidLengthPlugin 1070 } 1071 if (iNdEx + skippy) > l { 1072 return io.ErrUnexpectedEOF 1073 } 1074 iNdEx += skippy 1075 } 1076 } 1077 if hasFields[0]&uint64(0x00000001) == 0 { 1078 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("watch_selectors") 1079 } 1080 1081 if iNdEx > l { 1082 return io.ErrUnexpectedEOF 1083 } 1084 return nil 1085 } 1086 func (m *TLSAuthorization) Unmarshal(dAtA []byte) error { 1087 l := len(dAtA) 1088 iNdEx := 0 1089 for iNdEx < l { 1090 preIndex := iNdEx 1091 var wire uint64 1092 for shift := uint(0); ; shift += 7 { 1093 if shift >= 64 { 1094 return ErrIntOverflowPlugin 1095 } 1096 if iNdEx >= l { 1097 return io.ErrUnexpectedEOF 1098 } 1099 b := dAtA[iNdEx] 1100 iNdEx++ 1101 wire |= uint64(b&0x7F) << shift 1102 if b < 0x80 { 1103 break 1104 } 1105 } 1106 fieldNum := int32(wire >> 3) 1107 wireType := int(wire & 0x7) 1108 if wireType == 4 { 1109 return fmt.Errorf("proto: TLSAuthorization: wiretype end group for non-group") 1110 } 1111 if fieldNum <= 0 { 1112 return fmt.Errorf("proto: TLSAuthorization: illegal tag %d (wire type %d)", fieldNum, wire) 1113 } 1114 switch fieldNum { 1115 case 1: 1116 if wireType != 2 { 1117 return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) 1118 } 1119 var stringLen uint64 1120 for shift := uint(0); ; shift += 7 { 1121 if shift >= 64 { 1122 return ErrIntOverflowPlugin 1123 } 1124 if iNdEx >= l { 1125 return io.ErrUnexpectedEOF 1126 } 1127 b := dAtA[iNdEx] 1128 iNdEx++ 1129 stringLen |= uint64(b&0x7F) << shift 1130 if b < 0x80 { 1131 break 1132 } 1133 } 1134 intStringLen := int(stringLen) 1135 if intStringLen < 0 { 1136 return ErrInvalidLengthPlugin 1137 } 1138 postIndex := iNdEx + intStringLen 1139 if postIndex < 0 { 1140 return ErrInvalidLengthPlugin 1141 } 1142 if postIndex > l { 1143 return io.ErrUnexpectedEOF 1144 } 1145 m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex])) 1146 iNdEx = postIndex 1147 case 2: 1148 if wireType != 0 { 1149 return fmt.Errorf("proto: wrong wireType = %d for field Insecure", wireType) 1150 } 1151 var v int 1152 for shift := uint(0); ; shift += 7 { 1153 if shift >= 64 { 1154 return ErrIntOverflowPlugin 1155 } 1156 if iNdEx >= l { 1157 return io.ErrUnexpectedEOF 1158 } 1159 b := dAtA[iNdEx] 1160 iNdEx++ 1161 v |= int(b&0x7F) << shift 1162 if b < 0x80 { 1163 break 1164 } 1165 } 1166 b := bool(v != 0) 1167 m.Insecure = &b 1168 default: 1169 iNdEx = preIndex 1170 skippy, err := skipPlugin(dAtA[iNdEx:]) 1171 if err != nil { 1172 return err 1173 } 1174 if skippy < 0 { 1175 return ErrInvalidLengthPlugin 1176 } 1177 if (iNdEx + skippy) < 0 { 1178 return ErrInvalidLengthPlugin 1179 } 1180 if (iNdEx + skippy) > l { 1181 return io.ErrUnexpectedEOF 1182 } 1183 iNdEx += skippy 1184 } 1185 } 1186 1187 if iNdEx > l { 1188 return io.ErrUnexpectedEOF 1189 } 1190 return nil 1191 } 1192 func skipPlugin(dAtA []byte) (n int, err error) { 1193 l := len(dAtA) 1194 iNdEx := 0 1195 for iNdEx < l { 1196 var wire uint64 1197 for shift := uint(0); ; shift += 7 { 1198 if shift >= 64 { 1199 return 0, ErrIntOverflowPlugin 1200 } 1201 if iNdEx >= l { 1202 return 0, io.ErrUnexpectedEOF 1203 } 1204 b := dAtA[iNdEx] 1205 iNdEx++ 1206 wire |= (uint64(b) & 0x7F) << shift 1207 if b < 0x80 { 1208 break 1209 } 1210 } 1211 wireType := int(wire & 0x7) 1212 switch wireType { 1213 case 0: 1214 for shift := uint(0); ; shift += 7 { 1215 if shift >= 64 { 1216 return 0, ErrIntOverflowPlugin 1217 } 1218 if iNdEx >= l { 1219 return 0, io.ErrUnexpectedEOF 1220 } 1221 iNdEx++ 1222 if dAtA[iNdEx-1] < 0x80 { 1223 break 1224 } 1225 } 1226 return iNdEx, nil 1227 case 1: 1228 iNdEx += 8 1229 return iNdEx, nil 1230 case 2: 1231 var length int 1232 for shift := uint(0); ; shift += 7 { 1233 if shift >= 64 { 1234 return 0, ErrIntOverflowPlugin 1235 } 1236 if iNdEx >= l { 1237 return 0, io.ErrUnexpectedEOF 1238 } 1239 b := dAtA[iNdEx] 1240 iNdEx++ 1241 length |= (int(b) & 0x7F) << shift 1242 if b < 0x80 { 1243 break 1244 } 1245 } 1246 if length < 0 { 1247 return 0, ErrInvalidLengthPlugin 1248 } 1249 iNdEx += length 1250 if iNdEx < 0 { 1251 return 0, ErrInvalidLengthPlugin 1252 } 1253 return iNdEx, nil 1254 case 3: 1255 for { 1256 var innerWire uint64 1257 var start int = iNdEx 1258 for shift := uint(0); ; shift += 7 { 1259 if shift >= 64 { 1260 return 0, ErrIntOverflowPlugin 1261 } 1262 if iNdEx >= l { 1263 return 0, io.ErrUnexpectedEOF 1264 } 1265 b := dAtA[iNdEx] 1266 iNdEx++ 1267 innerWire |= (uint64(b) & 0x7F) << shift 1268 if b < 0x80 { 1269 break 1270 } 1271 } 1272 innerWireType := int(innerWire & 0x7) 1273 if innerWireType == 4 { 1274 break 1275 } 1276 next, err := skipPlugin(dAtA[start:]) 1277 if err != nil { 1278 return 0, err 1279 } 1280 iNdEx = start + next 1281 if iNdEx < 0 { 1282 return 0, ErrInvalidLengthPlugin 1283 } 1284 } 1285 return iNdEx, nil 1286 case 4: 1287 return iNdEx, nil 1288 case 5: 1289 iNdEx += 4 1290 return iNdEx, nil 1291 default: 1292 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1293 } 1294 } 1295 panic("unreachable") 1296 } 1297 1298 var ( 1299 ErrInvalidLengthPlugin = fmt.Errorf("proto: negative length found during unmarshaling") 1300 ErrIntOverflowPlugin = fmt.Errorf("proto: integer overflow") 1301 )