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