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