github.com/onosproject/onos-api/go@v0.10.32/onos/discovery/discovery.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: onos/discovery/discovery.proto 3 4 package discovery 5 6 import ( 7 context "context" 8 fmt "fmt" 9 _ "github.com/gogo/protobuf/gogoproto" 10 proto "github.com/gogo/protobuf/proto" 11 grpc "google.golang.org/grpc" 12 codes "google.golang.org/grpc/codes" 13 status "google.golang.org/grpc/status" 14 io "io" 15 math "math" 16 math_bits "math/bits" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var _ = proto.Marshal 21 var _ = fmt.Errorf 22 var _ = math.Inf 23 24 // This is a compile-time assertion to ensure that this generated file 25 // is compatible with the proto package it is being compiled against. 26 // A compilation error at this line likely means your copy of the 27 // proto package needs to be updated. 28 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 29 30 type AddPodRequest struct { 31 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 32 } 33 34 func (m *AddPodRequest) Reset() { *m = AddPodRequest{} } 35 func (m *AddPodRequest) String() string { return proto.CompactTextString(m) } 36 func (*AddPodRequest) ProtoMessage() {} 37 func (*AddPodRequest) Descriptor() ([]byte, []int) { 38 return fileDescriptor_ee9a9e1db4c6208c, []int{0} 39 } 40 func (m *AddPodRequest) XXX_Unmarshal(b []byte) error { 41 return m.Unmarshal(b) 42 } 43 func (m *AddPodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 if deterministic { 45 return xxx_messageInfo_AddPodRequest.Marshal(b, m, deterministic) 46 } else { 47 b = b[:cap(b)] 48 n, err := m.MarshalToSizedBuffer(b) 49 if err != nil { 50 return nil, err 51 } 52 return b[:n], nil 53 } 54 } 55 func (m *AddPodRequest) XXX_Merge(src proto.Message) { 56 xxx_messageInfo_AddPodRequest.Merge(m, src) 57 } 58 func (m *AddPodRequest) XXX_Size() int { 59 return m.Size() 60 } 61 func (m *AddPodRequest) XXX_DiscardUnknown() { 62 xxx_messageInfo_AddPodRequest.DiscardUnknown(m) 63 } 64 65 var xxx_messageInfo_AddPodRequest proto.InternalMessageInfo 66 67 func (m *AddPodRequest) GetID() string { 68 if m != nil { 69 return m.ID 70 } 71 return "" 72 } 73 74 type AddPodResponse struct { 75 } 76 77 func (m *AddPodResponse) Reset() { *m = AddPodResponse{} } 78 func (m *AddPodResponse) String() string { return proto.CompactTextString(m) } 79 func (*AddPodResponse) ProtoMessage() {} 80 func (*AddPodResponse) Descriptor() ([]byte, []int) { 81 return fileDescriptor_ee9a9e1db4c6208c, []int{1} 82 } 83 func (m *AddPodResponse) XXX_Unmarshal(b []byte) error { 84 return m.Unmarshal(b) 85 } 86 func (m *AddPodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 87 if deterministic { 88 return xxx_messageInfo_AddPodResponse.Marshal(b, m, deterministic) 89 } else { 90 b = b[:cap(b)] 91 n, err := m.MarshalToSizedBuffer(b) 92 if err != nil { 93 return nil, err 94 } 95 return b[:n], nil 96 } 97 } 98 func (m *AddPodResponse) XXX_Merge(src proto.Message) { 99 xxx_messageInfo_AddPodResponse.Merge(m, src) 100 } 101 func (m *AddPodResponse) XXX_Size() int { 102 return m.Size() 103 } 104 func (m *AddPodResponse) XXX_DiscardUnknown() { 105 xxx_messageInfo_AddPodResponse.DiscardUnknown(m) 106 } 107 108 var xxx_messageInfo_AddPodResponse proto.InternalMessageInfo 109 110 type AddRackRequest struct { 111 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 112 PodID string `protobuf:"bytes,2,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` 113 } 114 115 func (m *AddRackRequest) Reset() { *m = AddRackRequest{} } 116 func (m *AddRackRequest) String() string { return proto.CompactTextString(m) } 117 func (*AddRackRequest) ProtoMessage() {} 118 func (*AddRackRequest) Descriptor() ([]byte, []int) { 119 return fileDescriptor_ee9a9e1db4c6208c, []int{2} 120 } 121 func (m *AddRackRequest) XXX_Unmarshal(b []byte) error { 122 return m.Unmarshal(b) 123 } 124 func (m *AddRackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 125 if deterministic { 126 return xxx_messageInfo_AddRackRequest.Marshal(b, m, deterministic) 127 } else { 128 b = b[:cap(b)] 129 n, err := m.MarshalToSizedBuffer(b) 130 if err != nil { 131 return nil, err 132 } 133 return b[:n], nil 134 } 135 } 136 func (m *AddRackRequest) XXX_Merge(src proto.Message) { 137 xxx_messageInfo_AddRackRequest.Merge(m, src) 138 } 139 func (m *AddRackRequest) XXX_Size() int { 140 return m.Size() 141 } 142 func (m *AddRackRequest) XXX_DiscardUnknown() { 143 xxx_messageInfo_AddRackRequest.DiscardUnknown(m) 144 } 145 146 var xxx_messageInfo_AddRackRequest proto.InternalMessageInfo 147 148 func (m *AddRackRequest) GetID() string { 149 if m != nil { 150 return m.ID 151 } 152 return "" 153 } 154 155 func (m *AddRackRequest) GetPodID() string { 156 if m != nil { 157 return m.PodID 158 } 159 return "" 160 } 161 162 type AddRackResponse struct { 163 } 164 165 func (m *AddRackResponse) Reset() { *m = AddRackResponse{} } 166 func (m *AddRackResponse) String() string { return proto.CompactTextString(m) } 167 func (*AddRackResponse) ProtoMessage() {} 168 func (*AddRackResponse) Descriptor() ([]byte, []int) { 169 return fileDescriptor_ee9a9e1db4c6208c, []int{3} 170 } 171 func (m *AddRackResponse) XXX_Unmarshal(b []byte) error { 172 return m.Unmarshal(b) 173 } 174 func (m *AddRackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 175 if deterministic { 176 return xxx_messageInfo_AddRackResponse.Marshal(b, m, deterministic) 177 } else { 178 b = b[:cap(b)] 179 n, err := m.MarshalToSizedBuffer(b) 180 if err != nil { 181 return nil, err 182 } 183 return b[:n], nil 184 } 185 } 186 func (m *AddRackResponse) XXX_Merge(src proto.Message) { 187 xxx_messageInfo_AddRackResponse.Merge(m, src) 188 } 189 func (m *AddRackResponse) XXX_Size() int { 190 return m.Size() 191 } 192 func (m *AddRackResponse) XXX_DiscardUnknown() { 193 xxx_messageInfo_AddRackResponse.DiscardUnknown(m) 194 } 195 196 var xxx_messageInfo_AddRackResponse proto.InternalMessageInfo 197 198 type ManagementInfo struct { 199 P4RTEndpoint string `protobuf:"bytes,1,opt,name=p4rt_endpoint,json=p4rtEndpoint,proto3" json:"p4rt_endpoint,omitempty"` 200 GNMIEndpoint string `protobuf:"bytes,2,opt,name=gnmi_endpoint,json=gnmiEndpoint,proto3" json:"gnmi_endpoint,omitempty"` 201 PipelineConfigID string `protobuf:"bytes,3,opt,name=pipeline_config_id,json=pipelineConfigId,proto3" json:"pipeline_config_id,omitempty"` 202 ChassisConfigID string `protobuf:"bytes,4,opt,name=chassis_config_id,json=chassisConfigId,proto3" json:"chassis_config_id,omitempty"` 203 LinkAgentEndpoint string `protobuf:"bytes,5,opt,name=link_agent_endpoint,json=linkAgentEndpoint,proto3" json:"link_agent_endpoint,omitempty"` 204 HostAgentEndpoint string `protobuf:"bytes,6,opt,name=host_agent_endpoint,json=hostAgentEndpoint,proto3" json:"host_agent_endpoint,omitempty"` 205 NatAgentEndpoint string `protobuf:"bytes,7,opt,name=nat_agent_endpoint,json=natAgentEndpoint,proto3" json:"nat_agent_endpoint,omitempty"` 206 DeviceID uint64 `protobuf:"varint,8,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` 207 Realm string `protobuf:"bytes,9,opt,name=realm,proto3" json:"realm,omitempty"` 208 Role string `protobuf:"bytes,10,opt,name=role,proto3" json:"role,omitempty"` 209 } 210 211 func (m *ManagementInfo) Reset() { *m = ManagementInfo{} } 212 func (m *ManagementInfo) String() string { return proto.CompactTextString(m) } 213 func (*ManagementInfo) ProtoMessage() {} 214 func (*ManagementInfo) Descriptor() ([]byte, []int) { 215 return fileDescriptor_ee9a9e1db4c6208c, []int{4} 216 } 217 func (m *ManagementInfo) XXX_Unmarshal(b []byte) error { 218 return m.Unmarshal(b) 219 } 220 func (m *ManagementInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 221 if deterministic { 222 return xxx_messageInfo_ManagementInfo.Marshal(b, m, deterministic) 223 } else { 224 b = b[:cap(b)] 225 n, err := m.MarshalToSizedBuffer(b) 226 if err != nil { 227 return nil, err 228 } 229 return b[:n], nil 230 } 231 } 232 func (m *ManagementInfo) XXX_Merge(src proto.Message) { 233 xxx_messageInfo_ManagementInfo.Merge(m, src) 234 } 235 func (m *ManagementInfo) XXX_Size() int { 236 return m.Size() 237 } 238 func (m *ManagementInfo) XXX_DiscardUnknown() { 239 xxx_messageInfo_ManagementInfo.DiscardUnknown(m) 240 } 241 242 var xxx_messageInfo_ManagementInfo proto.InternalMessageInfo 243 244 func (m *ManagementInfo) GetP4RTEndpoint() string { 245 if m != nil { 246 return m.P4RTEndpoint 247 } 248 return "" 249 } 250 251 func (m *ManagementInfo) GetGNMIEndpoint() string { 252 if m != nil { 253 return m.GNMIEndpoint 254 } 255 return "" 256 } 257 258 func (m *ManagementInfo) GetPipelineConfigID() string { 259 if m != nil { 260 return m.PipelineConfigID 261 } 262 return "" 263 } 264 265 func (m *ManagementInfo) GetChassisConfigID() string { 266 if m != nil { 267 return m.ChassisConfigID 268 } 269 return "" 270 } 271 272 func (m *ManagementInfo) GetLinkAgentEndpoint() string { 273 if m != nil { 274 return m.LinkAgentEndpoint 275 } 276 return "" 277 } 278 279 func (m *ManagementInfo) GetHostAgentEndpoint() string { 280 if m != nil { 281 return m.HostAgentEndpoint 282 } 283 return "" 284 } 285 286 func (m *ManagementInfo) GetNatAgentEndpoint() string { 287 if m != nil { 288 return m.NatAgentEndpoint 289 } 290 return "" 291 } 292 293 func (m *ManagementInfo) GetDeviceID() uint64 { 294 if m != nil { 295 return m.DeviceID 296 } 297 return 0 298 } 299 300 func (m *ManagementInfo) GetRealm() string { 301 if m != nil { 302 return m.Realm 303 } 304 return "" 305 } 306 307 func (m *ManagementInfo) GetRole() string { 308 if m != nil { 309 return m.Role 310 } 311 return "" 312 } 313 314 type AddSwitchRequest struct { 315 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 316 PodID string `protobuf:"bytes,2,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` 317 RackID string `protobuf:"bytes,3,opt,name=rack_id,json=rackId,proto3" json:"rack_id,omitempty"` 318 ManagementInfo *ManagementInfo `protobuf:"bytes,4,opt,name=management_info,json=managementInfo,proto3" json:"management_info,omitempty"` 319 } 320 321 func (m *AddSwitchRequest) Reset() { *m = AddSwitchRequest{} } 322 func (m *AddSwitchRequest) String() string { return proto.CompactTextString(m) } 323 func (*AddSwitchRequest) ProtoMessage() {} 324 func (*AddSwitchRequest) Descriptor() ([]byte, []int) { 325 return fileDescriptor_ee9a9e1db4c6208c, []int{5} 326 } 327 func (m *AddSwitchRequest) XXX_Unmarshal(b []byte) error { 328 return m.Unmarshal(b) 329 } 330 func (m *AddSwitchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 331 if deterministic { 332 return xxx_messageInfo_AddSwitchRequest.Marshal(b, m, deterministic) 333 } else { 334 b = b[:cap(b)] 335 n, err := m.MarshalToSizedBuffer(b) 336 if err != nil { 337 return nil, err 338 } 339 return b[:n], nil 340 } 341 } 342 func (m *AddSwitchRequest) XXX_Merge(src proto.Message) { 343 xxx_messageInfo_AddSwitchRequest.Merge(m, src) 344 } 345 func (m *AddSwitchRequest) XXX_Size() int { 346 return m.Size() 347 } 348 func (m *AddSwitchRequest) XXX_DiscardUnknown() { 349 xxx_messageInfo_AddSwitchRequest.DiscardUnknown(m) 350 } 351 352 var xxx_messageInfo_AddSwitchRequest proto.InternalMessageInfo 353 354 func (m *AddSwitchRequest) GetID() string { 355 if m != nil { 356 return m.ID 357 } 358 return "" 359 } 360 361 func (m *AddSwitchRequest) GetPodID() string { 362 if m != nil { 363 return m.PodID 364 } 365 return "" 366 } 367 368 func (m *AddSwitchRequest) GetRackID() string { 369 if m != nil { 370 return m.RackID 371 } 372 return "" 373 } 374 375 func (m *AddSwitchRequest) GetManagementInfo() *ManagementInfo { 376 if m != nil { 377 return m.ManagementInfo 378 } 379 return nil 380 } 381 382 type AddSwitchResponse struct { 383 } 384 385 func (m *AddSwitchResponse) Reset() { *m = AddSwitchResponse{} } 386 func (m *AddSwitchResponse) String() string { return proto.CompactTextString(m) } 387 func (*AddSwitchResponse) ProtoMessage() {} 388 func (*AddSwitchResponse) Descriptor() ([]byte, []int) { 389 return fileDescriptor_ee9a9e1db4c6208c, []int{6} 390 } 391 func (m *AddSwitchResponse) XXX_Unmarshal(b []byte) error { 392 return m.Unmarshal(b) 393 } 394 func (m *AddSwitchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 395 if deterministic { 396 return xxx_messageInfo_AddSwitchResponse.Marshal(b, m, deterministic) 397 } else { 398 b = b[:cap(b)] 399 n, err := m.MarshalToSizedBuffer(b) 400 if err != nil { 401 return nil, err 402 } 403 return b[:n], nil 404 } 405 } 406 func (m *AddSwitchResponse) XXX_Merge(src proto.Message) { 407 xxx_messageInfo_AddSwitchResponse.Merge(m, src) 408 } 409 func (m *AddSwitchResponse) XXX_Size() int { 410 return m.Size() 411 } 412 func (m *AddSwitchResponse) XXX_DiscardUnknown() { 413 xxx_messageInfo_AddSwitchResponse.DiscardUnknown(m) 414 } 415 416 var xxx_messageInfo_AddSwitchResponse proto.InternalMessageInfo 417 418 type AddServerIPURequest struct { 419 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 420 PodID string `protobuf:"bytes,2,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` 421 RackID string `protobuf:"bytes,3,opt,name=rack_id,json=rackId,proto3" json:"rack_id,omitempty"` 422 ManagementInfo *ManagementInfo `protobuf:"bytes,4,opt,name=management_info,json=managementInfo,proto3" json:"management_info,omitempty"` 423 Links []*InjectedLink `protobuf:"bytes,5,rep,name=links,proto3" json:"links,omitempty"` 424 } 425 426 func (m *AddServerIPURequest) Reset() { *m = AddServerIPURequest{} } 427 func (m *AddServerIPURequest) String() string { return proto.CompactTextString(m) } 428 func (*AddServerIPURequest) ProtoMessage() {} 429 func (*AddServerIPURequest) Descriptor() ([]byte, []int) { 430 return fileDescriptor_ee9a9e1db4c6208c, []int{7} 431 } 432 func (m *AddServerIPURequest) XXX_Unmarshal(b []byte) error { 433 return m.Unmarshal(b) 434 } 435 func (m *AddServerIPURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 436 if deterministic { 437 return xxx_messageInfo_AddServerIPURequest.Marshal(b, m, deterministic) 438 } else { 439 b = b[:cap(b)] 440 n, err := m.MarshalToSizedBuffer(b) 441 if err != nil { 442 return nil, err 443 } 444 return b[:n], nil 445 } 446 } 447 func (m *AddServerIPURequest) XXX_Merge(src proto.Message) { 448 xxx_messageInfo_AddServerIPURequest.Merge(m, src) 449 } 450 func (m *AddServerIPURequest) XXX_Size() int { 451 return m.Size() 452 } 453 func (m *AddServerIPURequest) XXX_DiscardUnknown() { 454 xxx_messageInfo_AddServerIPURequest.DiscardUnknown(m) 455 } 456 457 var xxx_messageInfo_AddServerIPURequest proto.InternalMessageInfo 458 459 func (m *AddServerIPURequest) GetID() string { 460 if m != nil { 461 return m.ID 462 } 463 return "" 464 } 465 466 func (m *AddServerIPURequest) GetPodID() string { 467 if m != nil { 468 return m.PodID 469 } 470 return "" 471 } 472 473 func (m *AddServerIPURequest) GetRackID() string { 474 if m != nil { 475 return m.RackID 476 } 477 return "" 478 } 479 480 func (m *AddServerIPURequest) GetManagementInfo() *ManagementInfo { 481 if m != nil { 482 return m.ManagementInfo 483 } 484 return nil 485 } 486 487 func (m *AddServerIPURequest) GetLinks() []*InjectedLink { 488 if m != nil { 489 return m.Links 490 } 491 return nil 492 } 493 494 type InjectedLink struct { 495 Port uint64 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"` 496 RemotePort string `protobuf:"bytes,2,opt,name=remote_port,json=remotePort,proto3" json:"remote_port,omitempty"` 497 } 498 499 func (m *InjectedLink) Reset() { *m = InjectedLink{} } 500 func (m *InjectedLink) String() string { return proto.CompactTextString(m) } 501 func (*InjectedLink) ProtoMessage() {} 502 func (*InjectedLink) Descriptor() ([]byte, []int) { 503 return fileDescriptor_ee9a9e1db4c6208c, []int{8} 504 } 505 func (m *InjectedLink) XXX_Unmarshal(b []byte) error { 506 return m.Unmarshal(b) 507 } 508 func (m *InjectedLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 509 if deterministic { 510 return xxx_messageInfo_InjectedLink.Marshal(b, m, deterministic) 511 } else { 512 b = b[:cap(b)] 513 n, err := m.MarshalToSizedBuffer(b) 514 if err != nil { 515 return nil, err 516 } 517 return b[:n], nil 518 } 519 } 520 func (m *InjectedLink) XXX_Merge(src proto.Message) { 521 xxx_messageInfo_InjectedLink.Merge(m, src) 522 } 523 func (m *InjectedLink) XXX_Size() int { 524 return m.Size() 525 } 526 func (m *InjectedLink) XXX_DiscardUnknown() { 527 xxx_messageInfo_InjectedLink.DiscardUnknown(m) 528 } 529 530 var xxx_messageInfo_InjectedLink proto.InternalMessageInfo 531 532 func (m *InjectedLink) GetPort() uint64 { 533 if m != nil { 534 return m.Port 535 } 536 return 0 537 } 538 539 func (m *InjectedLink) GetRemotePort() string { 540 if m != nil { 541 return m.RemotePort 542 } 543 return "" 544 } 545 546 type AddServerIPUResponse struct { 547 } 548 549 func (m *AddServerIPUResponse) Reset() { *m = AddServerIPUResponse{} } 550 func (m *AddServerIPUResponse) String() string { return proto.CompactTextString(m) } 551 func (*AddServerIPUResponse) ProtoMessage() {} 552 func (*AddServerIPUResponse) Descriptor() ([]byte, []int) { 553 return fileDescriptor_ee9a9e1db4c6208c, []int{9} 554 } 555 func (m *AddServerIPUResponse) XXX_Unmarshal(b []byte) error { 556 return m.Unmarshal(b) 557 } 558 func (m *AddServerIPUResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 559 if deterministic { 560 return xxx_messageInfo_AddServerIPUResponse.Marshal(b, m, deterministic) 561 } else { 562 b = b[:cap(b)] 563 n, err := m.MarshalToSizedBuffer(b) 564 if err != nil { 565 return nil, err 566 } 567 return b[:n], nil 568 } 569 } 570 func (m *AddServerIPUResponse) XXX_Merge(src proto.Message) { 571 xxx_messageInfo_AddServerIPUResponse.Merge(m, src) 572 } 573 func (m *AddServerIPUResponse) XXX_Size() int { 574 return m.Size() 575 } 576 func (m *AddServerIPUResponse) XXX_DiscardUnknown() { 577 xxx_messageInfo_AddServerIPUResponse.DiscardUnknown(m) 578 } 579 580 var xxx_messageInfo_AddServerIPUResponse proto.InternalMessageInfo 581 582 func init() { 583 proto.RegisterType((*AddPodRequest)(nil), "onos.discovery.AddPodRequest") 584 proto.RegisterType((*AddPodResponse)(nil), "onos.discovery.AddPodResponse") 585 proto.RegisterType((*AddRackRequest)(nil), "onos.discovery.AddRackRequest") 586 proto.RegisterType((*AddRackResponse)(nil), "onos.discovery.AddRackResponse") 587 proto.RegisterType((*ManagementInfo)(nil), "onos.discovery.ManagementInfo") 588 proto.RegisterType((*AddSwitchRequest)(nil), "onos.discovery.AddSwitchRequest") 589 proto.RegisterType((*AddSwitchResponse)(nil), "onos.discovery.AddSwitchResponse") 590 proto.RegisterType((*AddServerIPURequest)(nil), "onos.discovery.AddServerIPURequest") 591 proto.RegisterType((*InjectedLink)(nil), "onos.discovery.InjectedLink") 592 proto.RegisterType((*AddServerIPUResponse)(nil), "onos.discovery.AddServerIPUResponse") 593 } 594 595 func init() { proto.RegisterFile("onos/discovery/discovery.proto", fileDescriptor_ee9a9e1db4c6208c) } 596 597 var fileDescriptor_ee9a9e1db4c6208c = []byte{ 598 // 687 bytes of a gzipped FileDescriptorProto 599 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0xcd, 0x6e, 0xd3, 0x4a, 600 0x18, 0xad, 0xd3, 0x24, 0x6d, 0xbe, 0xa6, 0xf9, 0x99, 0x44, 0x55, 0x14, 0xdd, 0x6b, 0xe7, 0xba, 601 0x57, 0xa2, 0x48, 0x28, 0x95, 0x42, 0x59, 0xa3, 0xa6, 0x41, 0x95, 0x2b, 0x8a, 0xac, 0x01, 0x16, 602 0xac, 0x22, 0xe3, 0x99, 0xa6, 0x43, 0x92, 0x19, 0x63, 0x9b, 0x22, 0xde, 0x82, 0xe7, 0xe1, 0x09, 603 0x58, 0x76, 0xc1, 0x82, 0x95, 0x85, 0x5c, 0x89, 0x3d, 0x6f, 0x80, 0x66, 0xec, 0x3a, 0x71, 0x68, 604 0xcb, 0x82, 0x15, 0xbb, 0x99, 0x73, 0xce, 0x77, 0x3c, 0xdf, 0xcc, 0x99, 0x31, 0xe8, 0x82, 0x8b, 605 0x60, 0x9f, 0xb0, 0xc0, 0x15, 0x17, 0xd4, 0xff, 0xb0, 0x18, 0xf5, 0x3d, 0x5f, 0x84, 0x02, 0xd5, 606 0x24, 0xdf, 0xcf, 0xd0, 0x6e, 0x7b, 0x22, 0x26, 0x42, 0x51, 0xfb, 0x72, 0x94, 0xa8, 0xcc, 0x7b, 607 0xb0, 0x7d, 0x48, 0x88, 0x2d, 0x08, 0xa6, 0x6f, 0xdf, 0xd1, 0x20, 0x44, 0x3b, 0x50, 0x60, 0xa4, 608 0xa3, 0xf5, 0xb4, 0xbd, 0xca, 0xb0, 0x1c, 0x47, 0x46, 0xc1, 0x1a, 0xe1, 0x02, 0x23, 0x66, 0x03, 609 0x6a, 0xd7, 0xc2, 0xc0, 0x13, 0x3c, 0xa0, 0xe6, 0x89, 0x42, 0xb0, 0xe3, 0x4e, 0x7f, 0x53, 0x8b, 610 0x7a, 0x50, 0xf6, 0x04, 0x19, 0x33, 0xd2, 0x29, 0x28, 0xae, 0x12, 0x47, 0x46, 0xc9, 0x16, 0xc4, 611 0x1a, 0xe1, 0x92, 0x27, 0x88, 0x45, 0xcc, 0x26, 0xd4, 0x33, 0xaf, 0xd4, 0xfe, 0xfb, 0x3a, 0xd4, 612 0x4e, 0x1d, 0xee, 0x4c, 0xe8, 0x9c, 0xf2, 0xd0, 0xe2, 0x67, 0x02, 0x3d, 0x82, 0x6d, 0xef, 0xc0, 613 0x0f, 0xc7, 0x94, 0x13, 0x4f, 0x30, 0x1e, 0xa6, 0x9f, 0x6a, 0xc4, 0x91, 0x51, 0xb5, 0x0f, 0xf0, 614 0x8b, 0x27, 0x29, 0x8e, 0xab, 0x52, 0x76, 0x3d, 0x93, 0x65, 0x13, 0x3e, 0x67, 0x8b, 0xb2, 0xc2, 615 0xa2, 0xec, 0xf8, 0xd9, 0xa9, 0xb5, 0x28, 0x93, 0xb2, 0xac, 0x6c, 0x08, 0xc8, 0x63, 0x1e, 0x9d, 616 0x31, 0x4e, 0xc7, 0xae, 0xe0, 0x67, 0x6c, 0x22, 0x3b, 0x58, 0x57, 0xb5, 0xed, 0x38, 0x32, 0x1a, 617 0x76, 0xca, 0x1e, 0x29, 0xd2, 0x1a, 0xe1, 0x86, 0x97, 0x47, 0x08, 0x7a, 0x0c, 0x4d, 0xf7, 0xdc, 618 0x09, 0x02, 0x16, 0x2c, 0x59, 0x14, 0x95, 0x45, 0x2b, 0x8e, 0x8c, 0xfa, 0x51, 0x42, 0x66, 0x0e, 619 0x75, 0x37, 0x07, 0x10, 0xd4, 0x87, 0xd6, 0x8c, 0xf1, 0xe9, 0xd8, 0x99, 0x50, 0xbe, 0xd4, 0x78, 620 0x49, 0x5a, 0xe0, 0xa6, 0xa4, 0x0e, 0x25, 0x93, 0x2d, 0xba, 0x0f, 0xad, 0x73, 0x11, 0x84, 0xab, 621 0xfa, 0x72, 0xa2, 0x97, 0x54, 0x5e, 0xff, 0x00, 0x10, 0x77, 0x7e, 0x91, 0x6f, 0x28, 0x79, 0x83, 622 0x3b, 0x2b, 0xea, 0xfb, 0x50, 0x21, 0xf4, 0x82, 0xb9, 0x54, 0xb6, 0xb1, 0xd9, 0xd3, 0xf6, 0x8a, 623 0xc3, 0x6a, 0x1c, 0x19, 0x9b, 0x23, 0x05, 0x5a, 0x23, 0xbc, 0x99, 0xd0, 0x16, 0x41, 0x6d, 0x28, 624 0xf9, 0xd4, 0x99, 0xcd, 0x3b, 0x15, 0xe5, 0x95, 0x4c, 0x10, 0x82, 0xa2, 0x2f, 0x66, 0xb4, 0x03, 625 0x0a, 0x54, 0x63, 0xf3, 0x93, 0x06, 0x8d, 0x43, 0x42, 0x9e, 0xbf, 0x67, 0xa1, 0x7b, 0xfe, 0xc7, 626 0x51, 0x42, 0xbb, 0xb0, 0xe1, 0x3b, 0xee, 0x74, 0x71, 0x56, 0x10, 0x47, 0x46, 0x59, 0x46, 0xcb, 627 0x1a, 0xe1, 0xb2, 0xa4, 0x2c, 0x82, 0x8e, 0xa1, 0x3e, 0xcf, 0xb2, 0x35, 0x66, 0xfc, 0x4c, 0xa8, 628 0x53, 0xd9, 0x1a, 0xe8, 0xfd, 0xfc, 0xb5, 0xe9, 0xe7, 0x23, 0x88, 0x6b, 0xf3, 0xdc, 0xdc, 0x6c, 629 0x41, 0x73, 0x69, 0xed, 0x69, 0x74, 0x7f, 0x68, 0xd0, 0x92, 0x28, 0xf5, 0x2f, 0xa8, 0x6f, 0xd9, 630 0x2f, 0xff, 0xb2, 0xa6, 0xd0, 0x00, 0x4a, 0x32, 0x59, 0x41, 0xa7, 0xd4, 0x5b, 0xdf, 0xdb, 0x1a, 631 0xfc, 0xb3, 0x5a, 0x6e, 0xf1, 0x37, 0xd4, 0x0d, 0x29, 0x79, 0xca, 0xf8, 0x14, 0x27, 0x52, 0xf3, 632 0x08, 0xaa, 0xcb, 0xb0, 0x3c, 0x69, 0x4f, 0xf8, 0xc9, 0x15, 0x2d, 0x62, 0x35, 0x46, 0x06, 0x6c, 633 0xf9, 0x74, 0x2e, 0x42, 0x3a, 0x56, 0x94, 0x6a, 0x16, 0x43, 0x02, 0xd9, 0xc2, 0x0f, 0xcd, 0x1d, 634 0x68, 0xe7, 0xf7, 0x2d, 0xd9, 0xd0, 0xc1, 0x97, 0x02, 0x34, 0x46, 0xd7, 0x9f, 0x97, 0x34, 0x73, 635 0x29, 0x3a, 0x86, 0x72, 0xf2, 0x22, 0xa1, 0x7f, 0x57, 0x17, 0x98, 0x7b, 0xd2, 0xba, 0xfa, 0x6d, 636 0x74, 0xe2, 0x8e, 0x4e, 0x60, 0x23, 0x7d, 0x7c, 0xd0, 0x4d, 0xd2, 0xa5, 0x17, 0xae, 0x6b, 0xdc, 637 0xca, 0xa7, 0x5e, 0x36, 0x54, 0xb2, 0x3c, 0xa0, 0xde, 0x0d, 0xea, 0x5c, 0xcc, 0xbb, 0xff, 0xdd, 638 0xa1, 0x48, 0x1d, 0x5f, 0x41, 0x75, 0x79, 0x4f, 0xd0, 0xee, 0x4d, 0x25, 0x2b, 0x49, 0xeb, 0xfe, 639 0x7f, 0xb7, 0x28, 0xb1, 0x1e, 0x76, 0x3e, 0xc7, 0xba, 0x76, 0x19, 0xeb, 0xda, 0xb7, 0x58, 0xd7, 640 0x3e, 0x5e, 0xe9, 0x6b, 0x97, 0x57, 0xfa, 0xda, 0xd7, 0x2b, 0x7d, 0xed, 0x75, 0x59, 0xfd, 0x1d, 641 0x1e, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x04, 0xd2, 0x25, 0x65, 0x06, 0x00, 0x00, 642 } 643 644 // Reference imports to suppress errors if they are not otherwise used. 645 var _ context.Context 646 var _ grpc.ClientConn 647 648 // This is a compile-time assertion to ensure that this generated file 649 // is compatible with the grpc package it is being compiled against. 650 const _ = grpc.SupportPackageIsVersion4 651 652 // DiscoveryServiceClient is the client API for DiscoveryService service. 653 // 654 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 655 type DiscoveryServiceClient interface { 656 // AddPod adds a new POD entity with the requisite aspects 657 AddPod(ctx context.Context, in *AddPodRequest, opts ...grpc.CallOption) (*AddPodResponse, error) 658 // AddRack adds a new rack entity with the requisite aspects as part of a POD 659 AddRack(ctx context.Context, in *AddRackRequest, opts ...grpc.CallOption) (*AddRackResponse, error) 660 // AddSwitch adds a new switch entity with the requisite aspects into a rack 661 AddSwitch(ctx context.Context, in *AddSwitchRequest, opts ...grpc.CallOption) (*AddSwitchResponse, error) 662 // AddServerIPU adds a new server entity and an associated IPU entity, both with the requisite aspects into a rack 663 AddServerIPU(ctx context.Context, in *AddServerIPURequest, opts ...grpc.CallOption) (*AddServerIPUResponse, error) 664 } 665 666 type discoveryServiceClient struct { 667 cc *grpc.ClientConn 668 } 669 670 func NewDiscoveryServiceClient(cc *grpc.ClientConn) DiscoveryServiceClient { 671 return &discoveryServiceClient{cc} 672 } 673 674 func (c *discoveryServiceClient) AddPod(ctx context.Context, in *AddPodRequest, opts ...grpc.CallOption) (*AddPodResponse, error) { 675 out := new(AddPodResponse) 676 err := c.cc.Invoke(ctx, "/onos.discovery.DiscoveryService/AddPod", in, out, opts...) 677 if err != nil { 678 return nil, err 679 } 680 return out, nil 681 } 682 683 func (c *discoveryServiceClient) AddRack(ctx context.Context, in *AddRackRequest, opts ...grpc.CallOption) (*AddRackResponse, error) { 684 out := new(AddRackResponse) 685 err := c.cc.Invoke(ctx, "/onos.discovery.DiscoveryService/AddRack", in, out, opts...) 686 if err != nil { 687 return nil, err 688 } 689 return out, nil 690 } 691 692 func (c *discoveryServiceClient) AddSwitch(ctx context.Context, in *AddSwitchRequest, opts ...grpc.CallOption) (*AddSwitchResponse, error) { 693 out := new(AddSwitchResponse) 694 err := c.cc.Invoke(ctx, "/onos.discovery.DiscoveryService/AddSwitch", in, out, opts...) 695 if err != nil { 696 return nil, err 697 } 698 return out, nil 699 } 700 701 func (c *discoveryServiceClient) AddServerIPU(ctx context.Context, in *AddServerIPURequest, opts ...grpc.CallOption) (*AddServerIPUResponse, error) { 702 out := new(AddServerIPUResponse) 703 err := c.cc.Invoke(ctx, "/onos.discovery.DiscoveryService/AddServerIPU", in, out, opts...) 704 if err != nil { 705 return nil, err 706 } 707 return out, nil 708 } 709 710 // DiscoveryServiceServer is the server API for DiscoveryService service. 711 type DiscoveryServiceServer interface { 712 // AddPod adds a new POD entity with the requisite aspects 713 AddPod(context.Context, *AddPodRequest) (*AddPodResponse, error) 714 // AddRack adds a new rack entity with the requisite aspects as part of a POD 715 AddRack(context.Context, *AddRackRequest) (*AddRackResponse, error) 716 // AddSwitch adds a new switch entity with the requisite aspects into a rack 717 AddSwitch(context.Context, *AddSwitchRequest) (*AddSwitchResponse, error) 718 // AddServerIPU adds a new server entity and an associated IPU entity, both with the requisite aspects into a rack 719 AddServerIPU(context.Context, *AddServerIPURequest) (*AddServerIPUResponse, error) 720 } 721 722 // UnimplementedDiscoveryServiceServer can be embedded to have forward compatible implementations. 723 type UnimplementedDiscoveryServiceServer struct { 724 } 725 726 func (*UnimplementedDiscoveryServiceServer) AddPod(ctx context.Context, req *AddPodRequest) (*AddPodResponse, error) { 727 return nil, status.Errorf(codes.Unimplemented, "method AddPod not implemented") 728 } 729 func (*UnimplementedDiscoveryServiceServer) AddRack(ctx context.Context, req *AddRackRequest) (*AddRackResponse, error) { 730 return nil, status.Errorf(codes.Unimplemented, "method AddRack not implemented") 731 } 732 func (*UnimplementedDiscoveryServiceServer) AddSwitch(ctx context.Context, req *AddSwitchRequest) (*AddSwitchResponse, error) { 733 return nil, status.Errorf(codes.Unimplemented, "method AddSwitch not implemented") 734 } 735 func (*UnimplementedDiscoveryServiceServer) AddServerIPU(ctx context.Context, req *AddServerIPURequest) (*AddServerIPUResponse, error) { 736 return nil, status.Errorf(codes.Unimplemented, "method AddServerIPU not implemented") 737 } 738 739 func RegisterDiscoveryServiceServer(s *grpc.Server, srv DiscoveryServiceServer) { 740 s.RegisterService(&_DiscoveryService_serviceDesc, srv) 741 } 742 743 func _DiscoveryService_AddPod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 744 in := new(AddPodRequest) 745 if err := dec(in); err != nil { 746 return nil, err 747 } 748 if interceptor == nil { 749 return srv.(DiscoveryServiceServer).AddPod(ctx, in) 750 } 751 info := &grpc.UnaryServerInfo{ 752 Server: srv, 753 FullMethod: "/onos.discovery.DiscoveryService/AddPod", 754 } 755 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 756 return srv.(DiscoveryServiceServer).AddPod(ctx, req.(*AddPodRequest)) 757 } 758 return interceptor(ctx, in, info, handler) 759 } 760 761 func _DiscoveryService_AddRack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 762 in := new(AddRackRequest) 763 if err := dec(in); err != nil { 764 return nil, err 765 } 766 if interceptor == nil { 767 return srv.(DiscoveryServiceServer).AddRack(ctx, in) 768 } 769 info := &grpc.UnaryServerInfo{ 770 Server: srv, 771 FullMethod: "/onos.discovery.DiscoveryService/AddRack", 772 } 773 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 774 return srv.(DiscoveryServiceServer).AddRack(ctx, req.(*AddRackRequest)) 775 } 776 return interceptor(ctx, in, info, handler) 777 } 778 779 func _DiscoveryService_AddSwitch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 780 in := new(AddSwitchRequest) 781 if err := dec(in); err != nil { 782 return nil, err 783 } 784 if interceptor == nil { 785 return srv.(DiscoveryServiceServer).AddSwitch(ctx, in) 786 } 787 info := &grpc.UnaryServerInfo{ 788 Server: srv, 789 FullMethod: "/onos.discovery.DiscoveryService/AddSwitch", 790 } 791 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 792 return srv.(DiscoveryServiceServer).AddSwitch(ctx, req.(*AddSwitchRequest)) 793 } 794 return interceptor(ctx, in, info, handler) 795 } 796 797 func _DiscoveryService_AddServerIPU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 798 in := new(AddServerIPURequest) 799 if err := dec(in); err != nil { 800 return nil, err 801 } 802 if interceptor == nil { 803 return srv.(DiscoveryServiceServer).AddServerIPU(ctx, in) 804 } 805 info := &grpc.UnaryServerInfo{ 806 Server: srv, 807 FullMethod: "/onos.discovery.DiscoveryService/AddServerIPU", 808 } 809 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 810 return srv.(DiscoveryServiceServer).AddServerIPU(ctx, req.(*AddServerIPURequest)) 811 } 812 return interceptor(ctx, in, info, handler) 813 } 814 815 var _DiscoveryService_serviceDesc = grpc.ServiceDesc{ 816 ServiceName: "onos.discovery.DiscoveryService", 817 HandlerType: (*DiscoveryServiceServer)(nil), 818 Methods: []grpc.MethodDesc{ 819 { 820 MethodName: "AddPod", 821 Handler: _DiscoveryService_AddPod_Handler, 822 }, 823 { 824 MethodName: "AddRack", 825 Handler: _DiscoveryService_AddRack_Handler, 826 }, 827 { 828 MethodName: "AddSwitch", 829 Handler: _DiscoveryService_AddSwitch_Handler, 830 }, 831 { 832 MethodName: "AddServerIPU", 833 Handler: _DiscoveryService_AddServerIPU_Handler, 834 }, 835 }, 836 Streams: []grpc.StreamDesc{}, 837 Metadata: "onos/discovery/discovery.proto", 838 } 839 840 func (m *AddPodRequest) Marshal() (dAtA []byte, err error) { 841 size := m.Size() 842 dAtA = make([]byte, size) 843 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 844 if err != nil { 845 return nil, err 846 } 847 return dAtA[:n], nil 848 } 849 850 func (m *AddPodRequest) MarshalTo(dAtA []byte) (int, error) { 851 size := m.Size() 852 return m.MarshalToSizedBuffer(dAtA[:size]) 853 } 854 855 func (m *AddPodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 856 i := len(dAtA) 857 _ = i 858 var l int 859 _ = l 860 if len(m.ID) > 0 { 861 i -= len(m.ID) 862 copy(dAtA[i:], m.ID) 863 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.ID))) 864 i-- 865 dAtA[i] = 0xa 866 } 867 return len(dAtA) - i, nil 868 } 869 870 func (m *AddPodResponse) Marshal() (dAtA []byte, err error) { 871 size := m.Size() 872 dAtA = make([]byte, size) 873 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 874 if err != nil { 875 return nil, err 876 } 877 return dAtA[:n], nil 878 } 879 880 func (m *AddPodResponse) MarshalTo(dAtA []byte) (int, error) { 881 size := m.Size() 882 return m.MarshalToSizedBuffer(dAtA[:size]) 883 } 884 885 func (m *AddPodResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 886 i := len(dAtA) 887 _ = i 888 var l int 889 _ = l 890 return len(dAtA) - i, nil 891 } 892 893 func (m *AddRackRequest) Marshal() (dAtA []byte, err error) { 894 size := m.Size() 895 dAtA = make([]byte, size) 896 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 897 if err != nil { 898 return nil, err 899 } 900 return dAtA[:n], nil 901 } 902 903 func (m *AddRackRequest) MarshalTo(dAtA []byte) (int, error) { 904 size := m.Size() 905 return m.MarshalToSizedBuffer(dAtA[:size]) 906 } 907 908 func (m *AddRackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 909 i := len(dAtA) 910 _ = i 911 var l int 912 _ = l 913 if len(m.PodID) > 0 { 914 i -= len(m.PodID) 915 copy(dAtA[i:], m.PodID) 916 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.PodID))) 917 i-- 918 dAtA[i] = 0x12 919 } 920 if len(m.ID) > 0 { 921 i -= len(m.ID) 922 copy(dAtA[i:], m.ID) 923 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.ID))) 924 i-- 925 dAtA[i] = 0xa 926 } 927 return len(dAtA) - i, nil 928 } 929 930 func (m *AddRackResponse) Marshal() (dAtA []byte, err error) { 931 size := m.Size() 932 dAtA = make([]byte, size) 933 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 934 if err != nil { 935 return nil, err 936 } 937 return dAtA[:n], nil 938 } 939 940 func (m *AddRackResponse) MarshalTo(dAtA []byte) (int, error) { 941 size := m.Size() 942 return m.MarshalToSizedBuffer(dAtA[:size]) 943 } 944 945 func (m *AddRackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 946 i := len(dAtA) 947 _ = i 948 var l int 949 _ = l 950 return len(dAtA) - i, nil 951 } 952 953 func (m *ManagementInfo) Marshal() (dAtA []byte, err error) { 954 size := m.Size() 955 dAtA = make([]byte, size) 956 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 957 if err != nil { 958 return nil, err 959 } 960 return dAtA[:n], nil 961 } 962 963 func (m *ManagementInfo) MarshalTo(dAtA []byte) (int, error) { 964 size := m.Size() 965 return m.MarshalToSizedBuffer(dAtA[:size]) 966 } 967 968 func (m *ManagementInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 969 i := len(dAtA) 970 _ = i 971 var l int 972 _ = l 973 if len(m.Role) > 0 { 974 i -= len(m.Role) 975 copy(dAtA[i:], m.Role) 976 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.Role))) 977 i-- 978 dAtA[i] = 0x52 979 } 980 if len(m.Realm) > 0 { 981 i -= len(m.Realm) 982 copy(dAtA[i:], m.Realm) 983 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.Realm))) 984 i-- 985 dAtA[i] = 0x4a 986 } 987 if m.DeviceID != 0 { 988 i = encodeVarintDiscovery(dAtA, i, uint64(m.DeviceID)) 989 i-- 990 dAtA[i] = 0x40 991 } 992 if len(m.NatAgentEndpoint) > 0 { 993 i -= len(m.NatAgentEndpoint) 994 copy(dAtA[i:], m.NatAgentEndpoint) 995 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.NatAgentEndpoint))) 996 i-- 997 dAtA[i] = 0x3a 998 } 999 if len(m.HostAgentEndpoint) > 0 { 1000 i -= len(m.HostAgentEndpoint) 1001 copy(dAtA[i:], m.HostAgentEndpoint) 1002 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.HostAgentEndpoint))) 1003 i-- 1004 dAtA[i] = 0x32 1005 } 1006 if len(m.LinkAgentEndpoint) > 0 { 1007 i -= len(m.LinkAgentEndpoint) 1008 copy(dAtA[i:], m.LinkAgentEndpoint) 1009 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.LinkAgentEndpoint))) 1010 i-- 1011 dAtA[i] = 0x2a 1012 } 1013 if len(m.ChassisConfigID) > 0 { 1014 i -= len(m.ChassisConfigID) 1015 copy(dAtA[i:], m.ChassisConfigID) 1016 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.ChassisConfigID))) 1017 i-- 1018 dAtA[i] = 0x22 1019 } 1020 if len(m.PipelineConfigID) > 0 { 1021 i -= len(m.PipelineConfigID) 1022 copy(dAtA[i:], m.PipelineConfigID) 1023 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.PipelineConfigID))) 1024 i-- 1025 dAtA[i] = 0x1a 1026 } 1027 if len(m.GNMIEndpoint) > 0 { 1028 i -= len(m.GNMIEndpoint) 1029 copy(dAtA[i:], m.GNMIEndpoint) 1030 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.GNMIEndpoint))) 1031 i-- 1032 dAtA[i] = 0x12 1033 } 1034 if len(m.P4RTEndpoint) > 0 { 1035 i -= len(m.P4RTEndpoint) 1036 copy(dAtA[i:], m.P4RTEndpoint) 1037 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.P4RTEndpoint))) 1038 i-- 1039 dAtA[i] = 0xa 1040 } 1041 return len(dAtA) - i, nil 1042 } 1043 1044 func (m *AddSwitchRequest) Marshal() (dAtA []byte, err error) { 1045 size := m.Size() 1046 dAtA = make([]byte, size) 1047 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1048 if err != nil { 1049 return nil, err 1050 } 1051 return dAtA[:n], nil 1052 } 1053 1054 func (m *AddSwitchRequest) MarshalTo(dAtA []byte) (int, error) { 1055 size := m.Size() 1056 return m.MarshalToSizedBuffer(dAtA[:size]) 1057 } 1058 1059 func (m *AddSwitchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1060 i := len(dAtA) 1061 _ = i 1062 var l int 1063 _ = l 1064 if m.ManagementInfo != nil { 1065 { 1066 size, err := m.ManagementInfo.MarshalToSizedBuffer(dAtA[:i]) 1067 if err != nil { 1068 return 0, err 1069 } 1070 i -= size 1071 i = encodeVarintDiscovery(dAtA, i, uint64(size)) 1072 } 1073 i-- 1074 dAtA[i] = 0x22 1075 } 1076 if len(m.RackID) > 0 { 1077 i -= len(m.RackID) 1078 copy(dAtA[i:], m.RackID) 1079 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.RackID))) 1080 i-- 1081 dAtA[i] = 0x1a 1082 } 1083 if len(m.PodID) > 0 { 1084 i -= len(m.PodID) 1085 copy(dAtA[i:], m.PodID) 1086 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.PodID))) 1087 i-- 1088 dAtA[i] = 0x12 1089 } 1090 if len(m.ID) > 0 { 1091 i -= len(m.ID) 1092 copy(dAtA[i:], m.ID) 1093 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.ID))) 1094 i-- 1095 dAtA[i] = 0xa 1096 } 1097 return len(dAtA) - i, nil 1098 } 1099 1100 func (m *AddSwitchResponse) Marshal() (dAtA []byte, err error) { 1101 size := m.Size() 1102 dAtA = make([]byte, size) 1103 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1104 if err != nil { 1105 return nil, err 1106 } 1107 return dAtA[:n], nil 1108 } 1109 1110 func (m *AddSwitchResponse) MarshalTo(dAtA []byte) (int, error) { 1111 size := m.Size() 1112 return m.MarshalToSizedBuffer(dAtA[:size]) 1113 } 1114 1115 func (m *AddSwitchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1116 i := len(dAtA) 1117 _ = i 1118 var l int 1119 _ = l 1120 return len(dAtA) - i, nil 1121 } 1122 1123 func (m *AddServerIPURequest) Marshal() (dAtA []byte, err error) { 1124 size := m.Size() 1125 dAtA = make([]byte, size) 1126 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1127 if err != nil { 1128 return nil, err 1129 } 1130 return dAtA[:n], nil 1131 } 1132 1133 func (m *AddServerIPURequest) MarshalTo(dAtA []byte) (int, error) { 1134 size := m.Size() 1135 return m.MarshalToSizedBuffer(dAtA[:size]) 1136 } 1137 1138 func (m *AddServerIPURequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1139 i := len(dAtA) 1140 _ = i 1141 var l int 1142 _ = l 1143 if len(m.Links) > 0 { 1144 for iNdEx := len(m.Links) - 1; iNdEx >= 0; iNdEx-- { 1145 { 1146 size, err := m.Links[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1147 if err != nil { 1148 return 0, err 1149 } 1150 i -= size 1151 i = encodeVarintDiscovery(dAtA, i, uint64(size)) 1152 } 1153 i-- 1154 dAtA[i] = 0x2a 1155 } 1156 } 1157 if m.ManagementInfo != nil { 1158 { 1159 size, err := m.ManagementInfo.MarshalToSizedBuffer(dAtA[:i]) 1160 if err != nil { 1161 return 0, err 1162 } 1163 i -= size 1164 i = encodeVarintDiscovery(dAtA, i, uint64(size)) 1165 } 1166 i-- 1167 dAtA[i] = 0x22 1168 } 1169 if len(m.RackID) > 0 { 1170 i -= len(m.RackID) 1171 copy(dAtA[i:], m.RackID) 1172 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.RackID))) 1173 i-- 1174 dAtA[i] = 0x1a 1175 } 1176 if len(m.PodID) > 0 { 1177 i -= len(m.PodID) 1178 copy(dAtA[i:], m.PodID) 1179 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.PodID))) 1180 i-- 1181 dAtA[i] = 0x12 1182 } 1183 if len(m.ID) > 0 { 1184 i -= len(m.ID) 1185 copy(dAtA[i:], m.ID) 1186 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.ID))) 1187 i-- 1188 dAtA[i] = 0xa 1189 } 1190 return len(dAtA) - i, nil 1191 } 1192 1193 func (m *InjectedLink) Marshal() (dAtA []byte, err error) { 1194 size := m.Size() 1195 dAtA = make([]byte, size) 1196 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1197 if err != nil { 1198 return nil, err 1199 } 1200 return dAtA[:n], nil 1201 } 1202 1203 func (m *InjectedLink) MarshalTo(dAtA []byte) (int, error) { 1204 size := m.Size() 1205 return m.MarshalToSizedBuffer(dAtA[:size]) 1206 } 1207 1208 func (m *InjectedLink) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1209 i := len(dAtA) 1210 _ = i 1211 var l int 1212 _ = l 1213 if len(m.RemotePort) > 0 { 1214 i -= len(m.RemotePort) 1215 copy(dAtA[i:], m.RemotePort) 1216 i = encodeVarintDiscovery(dAtA, i, uint64(len(m.RemotePort))) 1217 i-- 1218 dAtA[i] = 0x12 1219 } 1220 if m.Port != 0 { 1221 i = encodeVarintDiscovery(dAtA, i, uint64(m.Port)) 1222 i-- 1223 dAtA[i] = 0x8 1224 } 1225 return len(dAtA) - i, nil 1226 } 1227 1228 func (m *AddServerIPUResponse) Marshal() (dAtA []byte, err error) { 1229 size := m.Size() 1230 dAtA = make([]byte, size) 1231 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1232 if err != nil { 1233 return nil, err 1234 } 1235 return dAtA[:n], nil 1236 } 1237 1238 func (m *AddServerIPUResponse) MarshalTo(dAtA []byte) (int, error) { 1239 size := m.Size() 1240 return m.MarshalToSizedBuffer(dAtA[:size]) 1241 } 1242 1243 func (m *AddServerIPUResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1244 i := len(dAtA) 1245 _ = i 1246 var l int 1247 _ = l 1248 return len(dAtA) - i, nil 1249 } 1250 1251 func encodeVarintDiscovery(dAtA []byte, offset int, v uint64) int { 1252 offset -= sovDiscovery(v) 1253 base := offset 1254 for v >= 1<<7 { 1255 dAtA[offset] = uint8(v&0x7f | 0x80) 1256 v >>= 7 1257 offset++ 1258 } 1259 dAtA[offset] = uint8(v) 1260 return base 1261 } 1262 func (m *AddPodRequest) Size() (n int) { 1263 if m == nil { 1264 return 0 1265 } 1266 var l int 1267 _ = l 1268 l = len(m.ID) 1269 if l > 0 { 1270 n += 1 + l + sovDiscovery(uint64(l)) 1271 } 1272 return n 1273 } 1274 1275 func (m *AddPodResponse) Size() (n int) { 1276 if m == nil { 1277 return 0 1278 } 1279 var l int 1280 _ = l 1281 return n 1282 } 1283 1284 func (m *AddRackRequest) Size() (n int) { 1285 if m == nil { 1286 return 0 1287 } 1288 var l int 1289 _ = l 1290 l = len(m.ID) 1291 if l > 0 { 1292 n += 1 + l + sovDiscovery(uint64(l)) 1293 } 1294 l = len(m.PodID) 1295 if l > 0 { 1296 n += 1 + l + sovDiscovery(uint64(l)) 1297 } 1298 return n 1299 } 1300 1301 func (m *AddRackResponse) Size() (n int) { 1302 if m == nil { 1303 return 0 1304 } 1305 var l int 1306 _ = l 1307 return n 1308 } 1309 1310 func (m *ManagementInfo) Size() (n int) { 1311 if m == nil { 1312 return 0 1313 } 1314 var l int 1315 _ = l 1316 l = len(m.P4RTEndpoint) 1317 if l > 0 { 1318 n += 1 + l + sovDiscovery(uint64(l)) 1319 } 1320 l = len(m.GNMIEndpoint) 1321 if l > 0 { 1322 n += 1 + l + sovDiscovery(uint64(l)) 1323 } 1324 l = len(m.PipelineConfigID) 1325 if l > 0 { 1326 n += 1 + l + sovDiscovery(uint64(l)) 1327 } 1328 l = len(m.ChassisConfigID) 1329 if l > 0 { 1330 n += 1 + l + sovDiscovery(uint64(l)) 1331 } 1332 l = len(m.LinkAgentEndpoint) 1333 if l > 0 { 1334 n += 1 + l + sovDiscovery(uint64(l)) 1335 } 1336 l = len(m.HostAgentEndpoint) 1337 if l > 0 { 1338 n += 1 + l + sovDiscovery(uint64(l)) 1339 } 1340 l = len(m.NatAgentEndpoint) 1341 if l > 0 { 1342 n += 1 + l + sovDiscovery(uint64(l)) 1343 } 1344 if m.DeviceID != 0 { 1345 n += 1 + sovDiscovery(uint64(m.DeviceID)) 1346 } 1347 l = len(m.Realm) 1348 if l > 0 { 1349 n += 1 + l + sovDiscovery(uint64(l)) 1350 } 1351 l = len(m.Role) 1352 if l > 0 { 1353 n += 1 + l + sovDiscovery(uint64(l)) 1354 } 1355 return n 1356 } 1357 1358 func (m *AddSwitchRequest) Size() (n int) { 1359 if m == nil { 1360 return 0 1361 } 1362 var l int 1363 _ = l 1364 l = len(m.ID) 1365 if l > 0 { 1366 n += 1 + l + sovDiscovery(uint64(l)) 1367 } 1368 l = len(m.PodID) 1369 if l > 0 { 1370 n += 1 + l + sovDiscovery(uint64(l)) 1371 } 1372 l = len(m.RackID) 1373 if l > 0 { 1374 n += 1 + l + sovDiscovery(uint64(l)) 1375 } 1376 if m.ManagementInfo != nil { 1377 l = m.ManagementInfo.Size() 1378 n += 1 + l + sovDiscovery(uint64(l)) 1379 } 1380 return n 1381 } 1382 1383 func (m *AddSwitchResponse) Size() (n int) { 1384 if m == nil { 1385 return 0 1386 } 1387 var l int 1388 _ = l 1389 return n 1390 } 1391 1392 func (m *AddServerIPURequest) Size() (n int) { 1393 if m == nil { 1394 return 0 1395 } 1396 var l int 1397 _ = l 1398 l = len(m.ID) 1399 if l > 0 { 1400 n += 1 + l + sovDiscovery(uint64(l)) 1401 } 1402 l = len(m.PodID) 1403 if l > 0 { 1404 n += 1 + l + sovDiscovery(uint64(l)) 1405 } 1406 l = len(m.RackID) 1407 if l > 0 { 1408 n += 1 + l + sovDiscovery(uint64(l)) 1409 } 1410 if m.ManagementInfo != nil { 1411 l = m.ManagementInfo.Size() 1412 n += 1 + l + sovDiscovery(uint64(l)) 1413 } 1414 if len(m.Links) > 0 { 1415 for _, e := range m.Links { 1416 l = e.Size() 1417 n += 1 + l + sovDiscovery(uint64(l)) 1418 } 1419 } 1420 return n 1421 } 1422 1423 func (m *InjectedLink) Size() (n int) { 1424 if m == nil { 1425 return 0 1426 } 1427 var l int 1428 _ = l 1429 if m.Port != 0 { 1430 n += 1 + sovDiscovery(uint64(m.Port)) 1431 } 1432 l = len(m.RemotePort) 1433 if l > 0 { 1434 n += 1 + l + sovDiscovery(uint64(l)) 1435 } 1436 return n 1437 } 1438 1439 func (m *AddServerIPUResponse) Size() (n int) { 1440 if m == nil { 1441 return 0 1442 } 1443 var l int 1444 _ = l 1445 return n 1446 } 1447 1448 func sovDiscovery(x uint64) (n int) { 1449 return (math_bits.Len64(x|1) + 6) / 7 1450 } 1451 func sozDiscovery(x uint64) (n int) { 1452 return sovDiscovery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1453 } 1454 func (m *AddPodRequest) Unmarshal(dAtA []byte) error { 1455 l := len(dAtA) 1456 iNdEx := 0 1457 for iNdEx < l { 1458 preIndex := iNdEx 1459 var wire uint64 1460 for shift := uint(0); ; shift += 7 { 1461 if shift >= 64 { 1462 return ErrIntOverflowDiscovery 1463 } 1464 if iNdEx >= l { 1465 return io.ErrUnexpectedEOF 1466 } 1467 b := dAtA[iNdEx] 1468 iNdEx++ 1469 wire |= uint64(b&0x7F) << shift 1470 if b < 0x80 { 1471 break 1472 } 1473 } 1474 fieldNum := int32(wire >> 3) 1475 wireType := int(wire & 0x7) 1476 if wireType == 4 { 1477 return fmt.Errorf("proto: AddPodRequest: wiretype end group for non-group") 1478 } 1479 if fieldNum <= 0 { 1480 return fmt.Errorf("proto: AddPodRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1481 } 1482 switch fieldNum { 1483 case 1: 1484 if wireType != 2 { 1485 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 1486 } 1487 var stringLen uint64 1488 for shift := uint(0); ; shift += 7 { 1489 if shift >= 64 { 1490 return ErrIntOverflowDiscovery 1491 } 1492 if iNdEx >= l { 1493 return io.ErrUnexpectedEOF 1494 } 1495 b := dAtA[iNdEx] 1496 iNdEx++ 1497 stringLen |= uint64(b&0x7F) << shift 1498 if b < 0x80 { 1499 break 1500 } 1501 } 1502 intStringLen := int(stringLen) 1503 if intStringLen < 0 { 1504 return ErrInvalidLengthDiscovery 1505 } 1506 postIndex := iNdEx + intStringLen 1507 if postIndex < 0 { 1508 return ErrInvalidLengthDiscovery 1509 } 1510 if postIndex > l { 1511 return io.ErrUnexpectedEOF 1512 } 1513 m.ID = string(dAtA[iNdEx:postIndex]) 1514 iNdEx = postIndex 1515 default: 1516 iNdEx = preIndex 1517 skippy, err := skipDiscovery(dAtA[iNdEx:]) 1518 if err != nil { 1519 return err 1520 } 1521 if (skippy < 0) || (iNdEx+skippy) < 0 { 1522 return ErrInvalidLengthDiscovery 1523 } 1524 if (iNdEx + skippy) > l { 1525 return io.ErrUnexpectedEOF 1526 } 1527 iNdEx += skippy 1528 } 1529 } 1530 1531 if iNdEx > l { 1532 return io.ErrUnexpectedEOF 1533 } 1534 return nil 1535 } 1536 func (m *AddPodResponse) Unmarshal(dAtA []byte) error { 1537 l := len(dAtA) 1538 iNdEx := 0 1539 for iNdEx < l { 1540 preIndex := iNdEx 1541 var wire uint64 1542 for shift := uint(0); ; shift += 7 { 1543 if shift >= 64 { 1544 return ErrIntOverflowDiscovery 1545 } 1546 if iNdEx >= l { 1547 return io.ErrUnexpectedEOF 1548 } 1549 b := dAtA[iNdEx] 1550 iNdEx++ 1551 wire |= uint64(b&0x7F) << shift 1552 if b < 0x80 { 1553 break 1554 } 1555 } 1556 fieldNum := int32(wire >> 3) 1557 wireType := int(wire & 0x7) 1558 if wireType == 4 { 1559 return fmt.Errorf("proto: AddPodResponse: wiretype end group for non-group") 1560 } 1561 if fieldNum <= 0 { 1562 return fmt.Errorf("proto: AddPodResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1563 } 1564 switch fieldNum { 1565 default: 1566 iNdEx = preIndex 1567 skippy, err := skipDiscovery(dAtA[iNdEx:]) 1568 if err != nil { 1569 return err 1570 } 1571 if (skippy < 0) || (iNdEx+skippy) < 0 { 1572 return ErrInvalidLengthDiscovery 1573 } 1574 if (iNdEx + skippy) > l { 1575 return io.ErrUnexpectedEOF 1576 } 1577 iNdEx += skippy 1578 } 1579 } 1580 1581 if iNdEx > l { 1582 return io.ErrUnexpectedEOF 1583 } 1584 return nil 1585 } 1586 func (m *AddRackRequest) Unmarshal(dAtA []byte) error { 1587 l := len(dAtA) 1588 iNdEx := 0 1589 for iNdEx < l { 1590 preIndex := iNdEx 1591 var wire uint64 1592 for shift := uint(0); ; shift += 7 { 1593 if shift >= 64 { 1594 return ErrIntOverflowDiscovery 1595 } 1596 if iNdEx >= l { 1597 return io.ErrUnexpectedEOF 1598 } 1599 b := dAtA[iNdEx] 1600 iNdEx++ 1601 wire |= uint64(b&0x7F) << shift 1602 if b < 0x80 { 1603 break 1604 } 1605 } 1606 fieldNum := int32(wire >> 3) 1607 wireType := int(wire & 0x7) 1608 if wireType == 4 { 1609 return fmt.Errorf("proto: AddRackRequest: wiretype end group for non-group") 1610 } 1611 if fieldNum <= 0 { 1612 return fmt.Errorf("proto: AddRackRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1613 } 1614 switch fieldNum { 1615 case 1: 1616 if wireType != 2 { 1617 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 1618 } 1619 var stringLen uint64 1620 for shift := uint(0); ; shift += 7 { 1621 if shift >= 64 { 1622 return ErrIntOverflowDiscovery 1623 } 1624 if iNdEx >= l { 1625 return io.ErrUnexpectedEOF 1626 } 1627 b := dAtA[iNdEx] 1628 iNdEx++ 1629 stringLen |= uint64(b&0x7F) << shift 1630 if b < 0x80 { 1631 break 1632 } 1633 } 1634 intStringLen := int(stringLen) 1635 if intStringLen < 0 { 1636 return ErrInvalidLengthDiscovery 1637 } 1638 postIndex := iNdEx + intStringLen 1639 if postIndex < 0 { 1640 return ErrInvalidLengthDiscovery 1641 } 1642 if postIndex > l { 1643 return io.ErrUnexpectedEOF 1644 } 1645 m.ID = string(dAtA[iNdEx:postIndex]) 1646 iNdEx = postIndex 1647 case 2: 1648 if wireType != 2 { 1649 return fmt.Errorf("proto: wrong wireType = %d for field PodID", wireType) 1650 } 1651 var stringLen uint64 1652 for shift := uint(0); ; shift += 7 { 1653 if shift >= 64 { 1654 return ErrIntOverflowDiscovery 1655 } 1656 if iNdEx >= l { 1657 return io.ErrUnexpectedEOF 1658 } 1659 b := dAtA[iNdEx] 1660 iNdEx++ 1661 stringLen |= uint64(b&0x7F) << shift 1662 if b < 0x80 { 1663 break 1664 } 1665 } 1666 intStringLen := int(stringLen) 1667 if intStringLen < 0 { 1668 return ErrInvalidLengthDiscovery 1669 } 1670 postIndex := iNdEx + intStringLen 1671 if postIndex < 0 { 1672 return ErrInvalidLengthDiscovery 1673 } 1674 if postIndex > l { 1675 return io.ErrUnexpectedEOF 1676 } 1677 m.PodID = string(dAtA[iNdEx:postIndex]) 1678 iNdEx = postIndex 1679 default: 1680 iNdEx = preIndex 1681 skippy, err := skipDiscovery(dAtA[iNdEx:]) 1682 if err != nil { 1683 return err 1684 } 1685 if (skippy < 0) || (iNdEx+skippy) < 0 { 1686 return ErrInvalidLengthDiscovery 1687 } 1688 if (iNdEx + skippy) > l { 1689 return io.ErrUnexpectedEOF 1690 } 1691 iNdEx += skippy 1692 } 1693 } 1694 1695 if iNdEx > l { 1696 return io.ErrUnexpectedEOF 1697 } 1698 return nil 1699 } 1700 func (m *AddRackResponse) Unmarshal(dAtA []byte) error { 1701 l := len(dAtA) 1702 iNdEx := 0 1703 for iNdEx < l { 1704 preIndex := iNdEx 1705 var wire uint64 1706 for shift := uint(0); ; shift += 7 { 1707 if shift >= 64 { 1708 return ErrIntOverflowDiscovery 1709 } 1710 if iNdEx >= l { 1711 return io.ErrUnexpectedEOF 1712 } 1713 b := dAtA[iNdEx] 1714 iNdEx++ 1715 wire |= uint64(b&0x7F) << shift 1716 if b < 0x80 { 1717 break 1718 } 1719 } 1720 fieldNum := int32(wire >> 3) 1721 wireType := int(wire & 0x7) 1722 if wireType == 4 { 1723 return fmt.Errorf("proto: AddRackResponse: wiretype end group for non-group") 1724 } 1725 if fieldNum <= 0 { 1726 return fmt.Errorf("proto: AddRackResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1727 } 1728 switch fieldNum { 1729 default: 1730 iNdEx = preIndex 1731 skippy, err := skipDiscovery(dAtA[iNdEx:]) 1732 if err != nil { 1733 return err 1734 } 1735 if (skippy < 0) || (iNdEx+skippy) < 0 { 1736 return ErrInvalidLengthDiscovery 1737 } 1738 if (iNdEx + skippy) > l { 1739 return io.ErrUnexpectedEOF 1740 } 1741 iNdEx += skippy 1742 } 1743 } 1744 1745 if iNdEx > l { 1746 return io.ErrUnexpectedEOF 1747 } 1748 return nil 1749 } 1750 func (m *ManagementInfo) Unmarshal(dAtA []byte) error { 1751 l := len(dAtA) 1752 iNdEx := 0 1753 for iNdEx < l { 1754 preIndex := iNdEx 1755 var wire uint64 1756 for shift := uint(0); ; shift += 7 { 1757 if shift >= 64 { 1758 return ErrIntOverflowDiscovery 1759 } 1760 if iNdEx >= l { 1761 return io.ErrUnexpectedEOF 1762 } 1763 b := dAtA[iNdEx] 1764 iNdEx++ 1765 wire |= uint64(b&0x7F) << shift 1766 if b < 0x80 { 1767 break 1768 } 1769 } 1770 fieldNum := int32(wire >> 3) 1771 wireType := int(wire & 0x7) 1772 if wireType == 4 { 1773 return fmt.Errorf("proto: ManagementInfo: wiretype end group for non-group") 1774 } 1775 if fieldNum <= 0 { 1776 return fmt.Errorf("proto: ManagementInfo: illegal tag %d (wire type %d)", fieldNum, wire) 1777 } 1778 switch fieldNum { 1779 case 1: 1780 if wireType != 2 { 1781 return fmt.Errorf("proto: wrong wireType = %d for field P4RTEndpoint", wireType) 1782 } 1783 var stringLen uint64 1784 for shift := uint(0); ; shift += 7 { 1785 if shift >= 64 { 1786 return ErrIntOverflowDiscovery 1787 } 1788 if iNdEx >= l { 1789 return io.ErrUnexpectedEOF 1790 } 1791 b := dAtA[iNdEx] 1792 iNdEx++ 1793 stringLen |= uint64(b&0x7F) << shift 1794 if b < 0x80 { 1795 break 1796 } 1797 } 1798 intStringLen := int(stringLen) 1799 if intStringLen < 0 { 1800 return ErrInvalidLengthDiscovery 1801 } 1802 postIndex := iNdEx + intStringLen 1803 if postIndex < 0 { 1804 return ErrInvalidLengthDiscovery 1805 } 1806 if postIndex > l { 1807 return io.ErrUnexpectedEOF 1808 } 1809 m.P4RTEndpoint = string(dAtA[iNdEx:postIndex]) 1810 iNdEx = postIndex 1811 case 2: 1812 if wireType != 2 { 1813 return fmt.Errorf("proto: wrong wireType = %d for field GNMIEndpoint", wireType) 1814 } 1815 var stringLen uint64 1816 for shift := uint(0); ; shift += 7 { 1817 if shift >= 64 { 1818 return ErrIntOverflowDiscovery 1819 } 1820 if iNdEx >= l { 1821 return io.ErrUnexpectedEOF 1822 } 1823 b := dAtA[iNdEx] 1824 iNdEx++ 1825 stringLen |= uint64(b&0x7F) << shift 1826 if b < 0x80 { 1827 break 1828 } 1829 } 1830 intStringLen := int(stringLen) 1831 if intStringLen < 0 { 1832 return ErrInvalidLengthDiscovery 1833 } 1834 postIndex := iNdEx + intStringLen 1835 if postIndex < 0 { 1836 return ErrInvalidLengthDiscovery 1837 } 1838 if postIndex > l { 1839 return io.ErrUnexpectedEOF 1840 } 1841 m.GNMIEndpoint = string(dAtA[iNdEx:postIndex]) 1842 iNdEx = postIndex 1843 case 3: 1844 if wireType != 2 { 1845 return fmt.Errorf("proto: wrong wireType = %d for field PipelineConfigID", wireType) 1846 } 1847 var stringLen uint64 1848 for shift := uint(0); ; shift += 7 { 1849 if shift >= 64 { 1850 return ErrIntOverflowDiscovery 1851 } 1852 if iNdEx >= l { 1853 return io.ErrUnexpectedEOF 1854 } 1855 b := dAtA[iNdEx] 1856 iNdEx++ 1857 stringLen |= uint64(b&0x7F) << shift 1858 if b < 0x80 { 1859 break 1860 } 1861 } 1862 intStringLen := int(stringLen) 1863 if intStringLen < 0 { 1864 return ErrInvalidLengthDiscovery 1865 } 1866 postIndex := iNdEx + intStringLen 1867 if postIndex < 0 { 1868 return ErrInvalidLengthDiscovery 1869 } 1870 if postIndex > l { 1871 return io.ErrUnexpectedEOF 1872 } 1873 m.PipelineConfigID = string(dAtA[iNdEx:postIndex]) 1874 iNdEx = postIndex 1875 case 4: 1876 if wireType != 2 { 1877 return fmt.Errorf("proto: wrong wireType = %d for field ChassisConfigID", wireType) 1878 } 1879 var stringLen uint64 1880 for shift := uint(0); ; shift += 7 { 1881 if shift >= 64 { 1882 return ErrIntOverflowDiscovery 1883 } 1884 if iNdEx >= l { 1885 return io.ErrUnexpectedEOF 1886 } 1887 b := dAtA[iNdEx] 1888 iNdEx++ 1889 stringLen |= uint64(b&0x7F) << shift 1890 if b < 0x80 { 1891 break 1892 } 1893 } 1894 intStringLen := int(stringLen) 1895 if intStringLen < 0 { 1896 return ErrInvalidLengthDiscovery 1897 } 1898 postIndex := iNdEx + intStringLen 1899 if postIndex < 0 { 1900 return ErrInvalidLengthDiscovery 1901 } 1902 if postIndex > l { 1903 return io.ErrUnexpectedEOF 1904 } 1905 m.ChassisConfigID = string(dAtA[iNdEx:postIndex]) 1906 iNdEx = postIndex 1907 case 5: 1908 if wireType != 2 { 1909 return fmt.Errorf("proto: wrong wireType = %d for field LinkAgentEndpoint", wireType) 1910 } 1911 var stringLen uint64 1912 for shift := uint(0); ; shift += 7 { 1913 if shift >= 64 { 1914 return ErrIntOverflowDiscovery 1915 } 1916 if iNdEx >= l { 1917 return io.ErrUnexpectedEOF 1918 } 1919 b := dAtA[iNdEx] 1920 iNdEx++ 1921 stringLen |= uint64(b&0x7F) << shift 1922 if b < 0x80 { 1923 break 1924 } 1925 } 1926 intStringLen := int(stringLen) 1927 if intStringLen < 0 { 1928 return ErrInvalidLengthDiscovery 1929 } 1930 postIndex := iNdEx + intStringLen 1931 if postIndex < 0 { 1932 return ErrInvalidLengthDiscovery 1933 } 1934 if postIndex > l { 1935 return io.ErrUnexpectedEOF 1936 } 1937 m.LinkAgentEndpoint = string(dAtA[iNdEx:postIndex]) 1938 iNdEx = postIndex 1939 case 6: 1940 if wireType != 2 { 1941 return fmt.Errorf("proto: wrong wireType = %d for field HostAgentEndpoint", wireType) 1942 } 1943 var stringLen uint64 1944 for shift := uint(0); ; shift += 7 { 1945 if shift >= 64 { 1946 return ErrIntOverflowDiscovery 1947 } 1948 if iNdEx >= l { 1949 return io.ErrUnexpectedEOF 1950 } 1951 b := dAtA[iNdEx] 1952 iNdEx++ 1953 stringLen |= uint64(b&0x7F) << shift 1954 if b < 0x80 { 1955 break 1956 } 1957 } 1958 intStringLen := int(stringLen) 1959 if intStringLen < 0 { 1960 return ErrInvalidLengthDiscovery 1961 } 1962 postIndex := iNdEx + intStringLen 1963 if postIndex < 0 { 1964 return ErrInvalidLengthDiscovery 1965 } 1966 if postIndex > l { 1967 return io.ErrUnexpectedEOF 1968 } 1969 m.HostAgentEndpoint = string(dAtA[iNdEx:postIndex]) 1970 iNdEx = postIndex 1971 case 7: 1972 if wireType != 2 { 1973 return fmt.Errorf("proto: wrong wireType = %d for field NatAgentEndpoint", wireType) 1974 } 1975 var stringLen uint64 1976 for shift := uint(0); ; shift += 7 { 1977 if shift >= 64 { 1978 return ErrIntOverflowDiscovery 1979 } 1980 if iNdEx >= l { 1981 return io.ErrUnexpectedEOF 1982 } 1983 b := dAtA[iNdEx] 1984 iNdEx++ 1985 stringLen |= uint64(b&0x7F) << shift 1986 if b < 0x80 { 1987 break 1988 } 1989 } 1990 intStringLen := int(stringLen) 1991 if intStringLen < 0 { 1992 return ErrInvalidLengthDiscovery 1993 } 1994 postIndex := iNdEx + intStringLen 1995 if postIndex < 0 { 1996 return ErrInvalidLengthDiscovery 1997 } 1998 if postIndex > l { 1999 return io.ErrUnexpectedEOF 2000 } 2001 m.NatAgentEndpoint = string(dAtA[iNdEx:postIndex]) 2002 iNdEx = postIndex 2003 case 8: 2004 if wireType != 0 { 2005 return fmt.Errorf("proto: wrong wireType = %d for field DeviceID", wireType) 2006 } 2007 m.DeviceID = 0 2008 for shift := uint(0); ; shift += 7 { 2009 if shift >= 64 { 2010 return ErrIntOverflowDiscovery 2011 } 2012 if iNdEx >= l { 2013 return io.ErrUnexpectedEOF 2014 } 2015 b := dAtA[iNdEx] 2016 iNdEx++ 2017 m.DeviceID |= uint64(b&0x7F) << shift 2018 if b < 0x80 { 2019 break 2020 } 2021 } 2022 case 9: 2023 if wireType != 2 { 2024 return fmt.Errorf("proto: wrong wireType = %d for field Realm", wireType) 2025 } 2026 var stringLen uint64 2027 for shift := uint(0); ; shift += 7 { 2028 if shift >= 64 { 2029 return ErrIntOverflowDiscovery 2030 } 2031 if iNdEx >= l { 2032 return io.ErrUnexpectedEOF 2033 } 2034 b := dAtA[iNdEx] 2035 iNdEx++ 2036 stringLen |= uint64(b&0x7F) << shift 2037 if b < 0x80 { 2038 break 2039 } 2040 } 2041 intStringLen := int(stringLen) 2042 if intStringLen < 0 { 2043 return ErrInvalidLengthDiscovery 2044 } 2045 postIndex := iNdEx + intStringLen 2046 if postIndex < 0 { 2047 return ErrInvalidLengthDiscovery 2048 } 2049 if postIndex > l { 2050 return io.ErrUnexpectedEOF 2051 } 2052 m.Realm = string(dAtA[iNdEx:postIndex]) 2053 iNdEx = postIndex 2054 case 10: 2055 if wireType != 2 { 2056 return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) 2057 } 2058 var stringLen uint64 2059 for shift := uint(0); ; shift += 7 { 2060 if shift >= 64 { 2061 return ErrIntOverflowDiscovery 2062 } 2063 if iNdEx >= l { 2064 return io.ErrUnexpectedEOF 2065 } 2066 b := dAtA[iNdEx] 2067 iNdEx++ 2068 stringLen |= uint64(b&0x7F) << shift 2069 if b < 0x80 { 2070 break 2071 } 2072 } 2073 intStringLen := int(stringLen) 2074 if intStringLen < 0 { 2075 return ErrInvalidLengthDiscovery 2076 } 2077 postIndex := iNdEx + intStringLen 2078 if postIndex < 0 { 2079 return ErrInvalidLengthDiscovery 2080 } 2081 if postIndex > l { 2082 return io.ErrUnexpectedEOF 2083 } 2084 m.Role = string(dAtA[iNdEx:postIndex]) 2085 iNdEx = postIndex 2086 default: 2087 iNdEx = preIndex 2088 skippy, err := skipDiscovery(dAtA[iNdEx:]) 2089 if err != nil { 2090 return err 2091 } 2092 if (skippy < 0) || (iNdEx+skippy) < 0 { 2093 return ErrInvalidLengthDiscovery 2094 } 2095 if (iNdEx + skippy) > l { 2096 return io.ErrUnexpectedEOF 2097 } 2098 iNdEx += skippy 2099 } 2100 } 2101 2102 if iNdEx > l { 2103 return io.ErrUnexpectedEOF 2104 } 2105 return nil 2106 } 2107 func (m *AddSwitchRequest) Unmarshal(dAtA []byte) error { 2108 l := len(dAtA) 2109 iNdEx := 0 2110 for iNdEx < l { 2111 preIndex := iNdEx 2112 var wire uint64 2113 for shift := uint(0); ; shift += 7 { 2114 if shift >= 64 { 2115 return ErrIntOverflowDiscovery 2116 } 2117 if iNdEx >= l { 2118 return io.ErrUnexpectedEOF 2119 } 2120 b := dAtA[iNdEx] 2121 iNdEx++ 2122 wire |= uint64(b&0x7F) << shift 2123 if b < 0x80 { 2124 break 2125 } 2126 } 2127 fieldNum := int32(wire >> 3) 2128 wireType := int(wire & 0x7) 2129 if wireType == 4 { 2130 return fmt.Errorf("proto: AddSwitchRequest: wiretype end group for non-group") 2131 } 2132 if fieldNum <= 0 { 2133 return fmt.Errorf("proto: AddSwitchRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2134 } 2135 switch fieldNum { 2136 case 1: 2137 if wireType != 2 { 2138 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 2139 } 2140 var stringLen uint64 2141 for shift := uint(0); ; shift += 7 { 2142 if shift >= 64 { 2143 return ErrIntOverflowDiscovery 2144 } 2145 if iNdEx >= l { 2146 return io.ErrUnexpectedEOF 2147 } 2148 b := dAtA[iNdEx] 2149 iNdEx++ 2150 stringLen |= uint64(b&0x7F) << shift 2151 if b < 0x80 { 2152 break 2153 } 2154 } 2155 intStringLen := int(stringLen) 2156 if intStringLen < 0 { 2157 return ErrInvalidLengthDiscovery 2158 } 2159 postIndex := iNdEx + intStringLen 2160 if postIndex < 0 { 2161 return ErrInvalidLengthDiscovery 2162 } 2163 if postIndex > l { 2164 return io.ErrUnexpectedEOF 2165 } 2166 m.ID = string(dAtA[iNdEx:postIndex]) 2167 iNdEx = postIndex 2168 case 2: 2169 if wireType != 2 { 2170 return fmt.Errorf("proto: wrong wireType = %d for field PodID", wireType) 2171 } 2172 var stringLen uint64 2173 for shift := uint(0); ; shift += 7 { 2174 if shift >= 64 { 2175 return ErrIntOverflowDiscovery 2176 } 2177 if iNdEx >= l { 2178 return io.ErrUnexpectedEOF 2179 } 2180 b := dAtA[iNdEx] 2181 iNdEx++ 2182 stringLen |= uint64(b&0x7F) << shift 2183 if b < 0x80 { 2184 break 2185 } 2186 } 2187 intStringLen := int(stringLen) 2188 if intStringLen < 0 { 2189 return ErrInvalidLengthDiscovery 2190 } 2191 postIndex := iNdEx + intStringLen 2192 if postIndex < 0 { 2193 return ErrInvalidLengthDiscovery 2194 } 2195 if postIndex > l { 2196 return io.ErrUnexpectedEOF 2197 } 2198 m.PodID = string(dAtA[iNdEx:postIndex]) 2199 iNdEx = postIndex 2200 case 3: 2201 if wireType != 2 { 2202 return fmt.Errorf("proto: wrong wireType = %d for field RackID", wireType) 2203 } 2204 var stringLen uint64 2205 for shift := uint(0); ; shift += 7 { 2206 if shift >= 64 { 2207 return ErrIntOverflowDiscovery 2208 } 2209 if iNdEx >= l { 2210 return io.ErrUnexpectedEOF 2211 } 2212 b := dAtA[iNdEx] 2213 iNdEx++ 2214 stringLen |= uint64(b&0x7F) << shift 2215 if b < 0x80 { 2216 break 2217 } 2218 } 2219 intStringLen := int(stringLen) 2220 if intStringLen < 0 { 2221 return ErrInvalidLengthDiscovery 2222 } 2223 postIndex := iNdEx + intStringLen 2224 if postIndex < 0 { 2225 return ErrInvalidLengthDiscovery 2226 } 2227 if postIndex > l { 2228 return io.ErrUnexpectedEOF 2229 } 2230 m.RackID = string(dAtA[iNdEx:postIndex]) 2231 iNdEx = postIndex 2232 case 4: 2233 if wireType != 2 { 2234 return fmt.Errorf("proto: wrong wireType = %d for field ManagementInfo", wireType) 2235 } 2236 var msglen int 2237 for shift := uint(0); ; shift += 7 { 2238 if shift >= 64 { 2239 return ErrIntOverflowDiscovery 2240 } 2241 if iNdEx >= l { 2242 return io.ErrUnexpectedEOF 2243 } 2244 b := dAtA[iNdEx] 2245 iNdEx++ 2246 msglen |= int(b&0x7F) << shift 2247 if b < 0x80 { 2248 break 2249 } 2250 } 2251 if msglen < 0 { 2252 return ErrInvalidLengthDiscovery 2253 } 2254 postIndex := iNdEx + msglen 2255 if postIndex < 0 { 2256 return ErrInvalidLengthDiscovery 2257 } 2258 if postIndex > l { 2259 return io.ErrUnexpectedEOF 2260 } 2261 if m.ManagementInfo == nil { 2262 m.ManagementInfo = &ManagementInfo{} 2263 } 2264 if err := m.ManagementInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2265 return err 2266 } 2267 iNdEx = postIndex 2268 default: 2269 iNdEx = preIndex 2270 skippy, err := skipDiscovery(dAtA[iNdEx:]) 2271 if err != nil { 2272 return err 2273 } 2274 if (skippy < 0) || (iNdEx+skippy) < 0 { 2275 return ErrInvalidLengthDiscovery 2276 } 2277 if (iNdEx + skippy) > l { 2278 return io.ErrUnexpectedEOF 2279 } 2280 iNdEx += skippy 2281 } 2282 } 2283 2284 if iNdEx > l { 2285 return io.ErrUnexpectedEOF 2286 } 2287 return nil 2288 } 2289 func (m *AddSwitchResponse) Unmarshal(dAtA []byte) error { 2290 l := len(dAtA) 2291 iNdEx := 0 2292 for iNdEx < l { 2293 preIndex := iNdEx 2294 var wire uint64 2295 for shift := uint(0); ; shift += 7 { 2296 if shift >= 64 { 2297 return ErrIntOverflowDiscovery 2298 } 2299 if iNdEx >= l { 2300 return io.ErrUnexpectedEOF 2301 } 2302 b := dAtA[iNdEx] 2303 iNdEx++ 2304 wire |= uint64(b&0x7F) << shift 2305 if b < 0x80 { 2306 break 2307 } 2308 } 2309 fieldNum := int32(wire >> 3) 2310 wireType := int(wire & 0x7) 2311 if wireType == 4 { 2312 return fmt.Errorf("proto: AddSwitchResponse: wiretype end group for non-group") 2313 } 2314 if fieldNum <= 0 { 2315 return fmt.Errorf("proto: AddSwitchResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2316 } 2317 switch fieldNum { 2318 default: 2319 iNdEx = preIndex 2320 skippy, err := skipDiscovery(dAtA[iNdEx:]) 2321 if err != nil { 2322 return err 2323 } 2324 if (skippy < 0) || (iNdEx+skippy) < 0 { 2325 return ErrInvalidLengthDiscovery 2326 } 2327 if (iNdEx + skippy) > l { 2328 return io.ErrUnexpectedEOF 2329 } 2330 iNdEx += skippy 2331 } 2332 } 2333 2334 if iNdEx > l { 2335 return io.ErrUnexpectedEOF 2336 } 2337 return nil 2338 } 2339 func (m *AddServerIPURequest) Unmarshal(dAtA []byte) error { 2340 l := len(dAtA) 2341 iNdEx := 0 2342 for iNdEx < l { 2343 preIndex := iNdEx 2344 var wire uint64 2345 for shift := uint(0); ; shift += 7 { 2346 if shift >= 64 { 2347 return ErrIntOverflowDiscovery 2348 } 2349 if iNdEx >= l { 2350 return io.ErrUnexpectedEOF 2351 } 2352 b := dAtA[iNdEx] 2353 iNdEx++ 2354 wire |= uint64(b&0x7F) << shift 2355 if b < 0x80 { 2356 break 2357 } 2358 } 2359 fieldNum := int32(wire >> 3) 2360 wireType := int(wire & 0x7) 2361 if wireType == 4 { 2362 return fmt.Errorf("proto: AddServerIPURequest: wiretype end group for non-group") 2363 } 2364 if fieldNum <= 0 { 2365 return fmt.Errorf("proto: AddServerIPURequest: illegal tag %d (wire type %d)", fieldNum, wire) 2366 } 2367 switch fieldNum { 2368 case 1: 2369 if wireType != 2 { 2370 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 2371 } 2372 var stringLen uint64 2373 for shift := uint(0); ; shift += 7 { 2374 if shift >= 64 { 2375 return ErrIntOverflowDiscovery 2376 } 2377 if iNdEx >= l { 2378 return io.ErrUnexpectedEOF 2379 } 2380 b := dAtA[iNdEx] 2381 iNdEx++ 2382 stringLen |= uint64(b&0x7F) << shift 2383 if b < 0x80 { 2384 break 2385 } 2386 } 2387 intStringLen := int(stringLen) 2388 if intStringLen < 0 { 2389 return ErrInvalidLengthDiscovery 2390 } 2391 postIndex := iNdEx + intStringLen 2392 if postIndex < 0 { 2393 return ErrInvalidLengthDiscovery 2394 } 2395 if postIndex > l { 2396 return io.ErrUnexpectedEOF 2397 } 2398 m.ID = string(dAtA[iNdEx:postIndex]) 2399 iNdEx = postIndex 2400 case 2: 2401 if wireType != 2 { 2402 return fmt.Errorf("proto: wrong wireType = %d for field PodID", wireType) 2403 } 2404 var stringLen uint64 2405 for shift := uint(0); ; shift += 7 { 2406 if shift >= 64 { 2407 return ErrIntOverflowDiscovery 2408 } 2409 if iNdEx >= l { 2410 return io.ErrUnexpectedEOF 2411 } 2412 b := dAtA[iNdEx] 2413 iNdEx++ 2414 stringLen |= uint64(b&0x7F) << shift 2415 if b < 0x80 { 2416 break 2417 } 2418 } 2419 intStringLen := int(stringLen) 2420 if intStringLen < 0 { 2421 return ErrInvalidLengthDiscovery 2422 } 2423 postIndex := iNdEx + intStringLen 2424 if postIndex < 0 { 2425 return ErrInvalidLengthDiscovery 2426 } 2427 if postIndex > l { 2428 return io.ErrUnexpectedEOF 2429 } 2430 m.PodID = string(dAtA[iNdEx:postIndex]) 2431 iNdEx = postIndex 2432 case 3: 2433 if wireType != 2 { 2434 return fmt.Errorf("proto: wrong wireType = %d for field RackID", wireType) 2435 } 2436 var stringLen uint64 2437 for shift := uint(0); ; shift += 7 { 2438 if shift >= 64 { 2439 return ErrIntOverflowDiscovery 2440 } 2441 if iNdEx >= l { 2442 return io.ErrUnexpectedEOF 2443 } 2444 b := dAtA[iNdEx] 2445 iNdEx++ 2446 stringLen |= uint64(b&0x7F) << shift 2447 if b < 0x80 { 2448 break 2449 } 2450 } 2451 intStringLen := int(stringLen) 2452 if intStringLen < 0 { 2453 return ErrInvalidLengthDiscovery 2454 } 2455 postIndex := iNdEx + intStringLen 2456 if postIndex < 0 { 2457 return ErrInvalidLengthDiscovery 2458 } 2459 if postIndex > l { 2460 return io.ErrUnexpectedEOF 2461 } 2462 m.RackID = string(dAtA[iNdEx:postIndex]) 2463 iNdEx = postIndex 2464 case 4: 2465 if wireType != 2 { 2466 return fmt.Errorf("proto: wrong wireType = %d for field ManagementInfo", wireType) 2467 } 2468 var msglen int 2469 for shift := uint(0); ; shift += 7 { 2470 if shift >= 64 { 2471 return ErrIntOverflowDiscovery 2472 } 2473 if iNdEx >= l { 2474 return io.ErrUnexpectedEOF 2475 } 2476 b := dAtA[iNdEx] 2477 iNdEx++ 2478 msglen |= int(b&0x7F) << shift 2479 if b < 0x80 { 2480 break 2481 } 2482 } 2483 if msglen < 0 { 2484 return ErrInvalidLengthDiscovery 2485 } 2486 postIndex := iNdEx + msglen 2487 if postIndex < 0 { 2488 return ErrInvalidLengthDiscovery 2489 } 2490 if postIndex > l { 2491 return io.ErrUnexpectedEOF 2492 } 2493 if m.ManagementInfo == nil { 2494 m.ManagementInfo = &ManagementInfo{} 2495 } 2496 if err := m.ManagementInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2497 return err 2498 } 2499 iNdEx = postIndex 2500 case 5: 2501 if wireType != 2 { 2502 return fmt.Errorf("proto: wrong wireType = %d for field Links", wireType) 2503 } 2504 var msglen int 2505 for shift := uint(0); ; shift += 7 { 2506 if shift >= 64 { 2507 return ErrIntOverflowDiscovery 2508 } 2509 if iNdEx >= l { 2510 return io.ErrUnexpectedEOF 2511 } 2512 b := dAtA[iNdEx] 2513 iNdEx++ 2514 msglen |= int(b&0x7F) << shift 2515 if b < 0x80 { 2516 break 2517 } 2518 } 2519 if msglen < 0 { 2520 return ErrInvalidLengthDiscovery 2521 } 2522 postIndex := iNdEx + msglen 2523 if postIndex < 0 { 2524 return ErrInvalidLengthDiscovery 2525 } 2526 if postIndex > l { 2527 return io.ErrUnexpectedEOF 2528 } 2529 m.Links = append(m.Links, &InjectedLink{}) 2530 if err := m.Links[len(m.Links)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2531 return err 2532 } 2533 iNdEx = postIndex 2534 default: 2535 iNdEx = preIndex 2536 skippy, err := skipDiscovery(dAtA[iNdEx:]) 2537 if err != nil { 2538 return err 2539 } 2540 if (skippy < 0) || (iNdEx+skippy) < 0 { 2541 return ErrInvalidLengthDiscovery 2542 } 2543 if (iNdEx + skippy) > l { 2544 return io.ErrUnexpectedEOF 2545 } 2546 iNdEx += skippy 2547 } 2548 } 2549 2550 if iNdEx > l { 2551 return io.ErrUnexpectedEOF 2552 } 2553 return nil 2554 } 2555 func (m *InjectedLink) Unmarshal(dAtA []byte) error { 2556 l := len(dAtA) 2557 iNdEx := 0 2558 for iNdEx < l { 2559 preIndex := iNdEx 2560 var wire uint64 2561 for shift := uint(0); ; shift += 7 { 2562 if shift >= 64 { 2563 return ErrIntOverflowDiscovery 2564 } 2565 if iNdEx >= l { 2566 return io.ErrUnexpectedEOF 2567 } 2568 b := dAtA[iNdEx] 2569 iNdEx++ 2570 wire |= uint64(b&0x7F) << shift 2571 if b < 0x80 { 2572 break 2573 } 2574 } 2575 fieldNum := int32(wire >> 3) 2576 wireType := int(wire & 0x7) 2577 if wireType == 4 { 2578 return fmt.Errorf("proto: InjectedLink: wiretype end group for non-group") 2579 } 2580 if fieldNum <= 0 { 2581 return fmt.Errorf("proto: InjectedLink: illegal tag %d (wire type %d)", fieldNum, wire) 2582 } 2583 switch fieldNum { 2584 case 1: 2585 if wireType != 0 { 2586 return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) 2587 } 2588 m.Port = 0 2589 for shift := uint(0); ; shift += 7 { 2590 if shift >= 64 { 2591 return ErrIntOverflowDiscovery 2592 } 2593 if iNdEx >= l { 2594 return io.ErrUnexpectedEOF 2595 } 2596 b := dAtA[iNdEx] 2597 iNdEx++ 2598 m.Port |= uint64(b&0x7F) << shift 2599 if b < 0x80 { 2600 break 2601 } 2602 } 2603 case 2: 2604 if wireType != 2 { 2605 return fmt.Errorf("proto: wrong wireType = %d for field RemotePort", wireType) 2606 } 2607 var stringLen uint64 2608 for shift := uint(0); ; shift += 7 { 2609 if shift >= 64 { 2610 return ErrIntOverflowDiscovery 2611 } 2612 if iNdEx >= l { 2613 return io.ErrUnexpectedEOF 2614 } 2615 b := dAtA[iNdEx] 2616 iNdEx++ 2617 stringLen |= uint64(b&0x7F) << shift 2618 if b < 0x80 { 2619 break 2620 } 2621 } 2622 intStringLen := int(stringLen) 2623 if intStringLen < 0 { 2624 return ErrInvalidLengthDiscovery 2625 } 2626 postIndex := iNdEx + intStringLen 2627 if postIndex < 0 { 2628 return ErrInvalidLengthDiscovery 2629 } 2630 if postIndex > l { 2631 return io.ErrUnexpectedEOF 2632 } 2633 m.RemotePort = string(dAtA[iNdEx:postIndex]) 2634 iNdEx = postIndex 2635 default: 2636 iNdEx = preIndex 2637 skippy, err := skipDiscovery(dAtA[iNdEx:]) 2638 if err != nil { 2639 return err 2640 } 2641 if (skippy < 0) || (iNdEx+skippy) < 0 { 2642 return ErrInvalidLengthDiscovery 2643 } 2644 if (iNdEx + skippy) > l { 2645 return io.ErrUnexpectedEOF 2646 } 2647 iNdEx += skippy 2648 } 2649 } 2650 2651 if iNdEx > l { 2652 return io.ErrUnexpectedEOF 2653 } 2654 return nil 2655 } 2656 func (m *AddServerIPUResponse) Unmarshal(dAtA []byte) error { 2657 l := len(dAtA) 2658 iNdEx := 0 2659 for iNdEx < l { 2660 preIndex := iNdEx 2661 var wire uint64 2662 for shift := uint(0); ; shift += 7 { 2663 if shift >= 64 { 2664 return ErrIntOverflowDiscovery 2665 } 2666 if iNdEx >= l { 2667 return io.ErrUnexpectedEOF 2668 } 2669 b := dAtA[iNdEx] 2670 iNdEx++ 2671 wire |= uint64(b&0x7F) << shift 2672 if b < 0x80 { 2673 break 2674 } 2675 } 2676 fieldNum := int32(wire >> 3) 2677 wireType := int(wire & 0x7) 2678 if wireType == 4 { 2679 return fmt.Errorf("proto: AddServerIPUResponse: wiretype end group for non-group") 2680 } 2681 if fieldNum <= 0 { 2682 return fmt.Errorf("proto: AddServerIPUResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2683 } 2684 switch fieldNum { 2685 default: 2686 iNdEx = preIndex 2687 skippy, err := skipDiscovery(dAtA[iNdEx:]) 2688 if err != nil { 2689 return err 2690 } 2691 if (skippy < 0) || (iNdEx+skippy) < 0 { 2692 return ErrInvalidLengthDiscovery 2693 } 2694 if (iNdEx + skippy) > l { 2695 return io.ErrUnexpectedEOF 2696 } 2697 iNdEx += skippy 2698 } 2699 } 2700 2701 if iNdEx > l { 2702 return io.ErrUnexpectedEOF 2703 } 2704 return nil 2705 } 2706 func skipDiscovery(dAtA []byte) (n int, err error) { 2707 l := len(dAtA) 2708 iNdEx := 0 2709 depth := 0 2710 for iNdEx < l { 2711 var wire uint64 2712 for shift := uint(0); ; shift += 7 { 2713 if shift >= 64 { 2714 return 0, ErrIntOverflowDiscovery 2715 } 2716 if iNdEx >= l { 2717 return 0, io.ErrUnexpectedEOF 2718 } 2719 b := dAtA[iNdEx] 2720 iNdEx++ 2721 wire |= (uint64(b) & 0x7F) << shift 2722 if b < 0x80 { 2723 break 2724 } 2725 } 2726 wireType := int(wire & 0x7) 2727 switch wireType { 2728 case 0: 2729 for shift := uint(0); ; shift += 7 { 2730 if shift >= 64 { 2731 return 0, ErrIntOverflowDiscovery 2732 } 2733 if iNdEx >= l { 2734 return 0, io.ErrUnexpectedEOF 2735 } 2736 iNdEx++ 2737 if dAtA[iNdEx-1] < 0x80 { 2738 break 2739 } 2740 } 2741 case 1: 2742 iNdEx += 8 2743 case 2: 2744 var length int 2745 for shift := uint(0); ; shift += 7 { 2746 if shift >= 64 { 2747 return 0, ErrIntOverflowDiscovery 2748 } 2749 if iNdEx >= l { 2750 return 0, io.ErrUnexpectedEOF 2751 } 2752 b := dAtA[iNdEx] 2753 iNdEx++ 2754 length |= (int(b) & 0x7F) << shift 2755 if b < 0x80 { 2756 break 2757 } 2758 } 2759 if length < 0 { 2760 return 0, ErrInvalidLengthDiscovery 2761 } 2762 iNdEx += length 2763 case 3: 2764 depth++ 2765 case 4: 2766 if depth == 0 { 2767 return 0, ErrUnexpectedEndOfGroupDiscovery 2768 } 2769 depth-- 2770 case 5: 2771 iNdEx += 4 2772 default: 2773 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 2774 } 2775 if iNdEx < 0 { 2776 return 0, ErrInvalidLengthDiscovery 2777 } 2778 if depth == 0 { 2779 return iNdEx, nil 2780 } 2781 } 2782 return 0, io.ErrUnexpectedEOF 2783 } 2784 2785 var ( 2786 ErrInvalidLengthDiscovery = fmt.Errorf("proto: negative length found during unmarshaling") 2787 ErrIntOverflowDiscovery = fmt.Errorf("proto: integer overflow") 2788 ErrUnexpectedEndOfGroupDiscovery = fmt.Errorf("proto: unexpected end of group") 2789 )