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