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