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