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