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