github.com/onosproject/onos-api/go@v0.10.32/onos/e2t/e2/v1beta1/subscription.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: onos/e2t/e2/v1beta1/subscription.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 context "context" 10 fmt "fmt" 11 _ "github.com/gogo/protobuf/gogoproto" 12 proto "github.com/gogo/protobuf/proto" 13 _ "github.com/gogo/protobuf/types" 14 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 15 golang_proto "github.com/golang/protobuf/proto" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status "google.golang.org/grpc/status" 19 io "io" 20 math "math" 21 math_bits "math/bits" 22 time "time" 23 ) 24 25 // Reference imports to suppress errors if they are not otherwise used. 26 var _ = proto.Marshal 27 var _ = golang_proto.Marshal 28 var _ = fmt.Errorf 29 var _ = math.Inf 30 var _ = time.Kitchen 31 32 // This is a compile-time assertion to ensure that this generated file 33 // is compatible with the proto package it is being compiled against. 34 // A compilation error at this line likely means your copy of the 35 // proto package needs to be updated. 36 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 37 38 type ActionType int32 39 40 const ( 41 ActionType_ACTION_TYPE_REPORT ActionType = 0 42 ActionType_ACTION_TYPE_INSERT ActionType = 1 43 ActionType_ACTION_TYPE_POLICY ActionType = 2 44 ) 45 46 var ActionType_name = map[int32]string{ 47 0: "ACTION_TYPE_REPORT", 48 1: "ACTION_TYPE_INSERT", 49 2: "ACTION_TYPE_POLICY", 50 } 51 52 var ActionType_value = map[string]int32{ 53 "ACTION_TYPE_REPORT": 0, 54 "ACTION_TYPE_INSERT": 1, 55 "ACTION_TYPE_POLICY": 2, 56 } 57 58 func (x ActionType) String() string { 59 return proto.EnumName(ActionType_name, int32(x)) 60 } 61 62 func (ActionType) EnumDescriptor() ([]byte, []int) { 63 return fileDescriptor_dcfc9e59554ac999, []int{0} 64 } 65 66 type SubsequentActionType int32 67 68 const ( 69 SubsequentActionType_SUBSEQUENT_ACTION_TYPE_CONTINUE SubsequentActionType = 0 70 SubsequentActionType_SUBSEQUENT_ACTION_TYPE_WAIT SubsequentActionType = 1 71 ) 72 73 var SubsequentActionType_name = map[int32]string{ 74 0: "SUBSEQUENT_ACTION_TYPE_CONTINUE", 75 1: "SUBSEQUENT_ACTION_TYPE_WAIT", 76 } 77 78 var SubsequentActionType_value = map[string]int32{ 79 "SUBSEQUENT_ACTION_TYPE_CONTINUE": 0, 80 "SUBSEQUENT_ACTION_TYPE_WAIT": 1, 81 } 82 83 func (x SubsequentActionType) String() string { 84 return proto.EnumName(SubsequentActionType_name, int32(x)) 85 } 86 87 func (SubsequentActionType) EnumDescriptor() ([]byte, []int) { 88 return fileDescriptor_dcfc9e59554ac999, []int{1} 89 } 90 91 type TimeToWait int32 92 93 const ( 94 TimeToWait_TIME_TO_WAIT_ZERO TimeToWait = 0 95 TimeToWait_TIME_TO_WAIT_W1MS TimeToWait = 1 96 TimeToWait_TIME_TO_WAIT_W2MS TimeToWait = 2 97 TimeToWait_TIME_TO_WAIT_W5MS TimeToWait = 3 98 TimeToWait_TIME_TO_WAIT_W10MS TimeToWait = 4 99 TimeToWait_TIME_TO_WAIT_W20MS TimeToWait = 5 100 TimeToWait_TIME_TO_WAIT_W30MS TimeToWait = 6 101 TimeToWait_TIME_TO_WAIT_W40MS TimeToWait = 7 102 TimeToWait_TIME_TO_WAIT_W50MS TimeToWait = 8 103 TimeToWait_TIME_TO_WAIT_W100MS TimeToWait = 9 104 TimeToWait_TIME_TO_WAIT_W200MS TimeToWait = 10 105 TimeToWait_TIME_TO_WAIT_W500MS TimeToWait = 11 106 TimeToWait_TIME_TO_WAIT_W1S TimeToWait = 12 107 TimeToWait_TIME_TO_WAIT_W2S TimeToWait = 13 108 TimeToWait_TIME_TO_WAIT_W5S TimeToWait = 14 109 TimeToWait_TIME_TO_WAIT_W10S TimeToWait = 15 110 TimeToWait_TIME_TO_WAIT_W20S TimeToWait = 16 111 TimeToWait_TIME_TO_WAIT_W60S TimeToWait = 17 112 ) 113 114 var TimeToWait_name = map[int32]string{ 115 0: "TIME_TO_WAIT_ZERO", 116 1: "TIME_TO_WAIT_W1MS", 117 2: "TIME_TO_WAIT_W2MS", 118 3: "TIME_TO_WAIT_W5MS", 119 4: "TIME_TO_WAIT_W10MS", 120 5: "TIME_TO_WAIT_W20MS", 121 6: "TIME_TO_WAIT_W30MS", 122 7: "TIME_TO_WAIT_W40MS", 123 8: "TIME_TO_WAIT_W50MS", 124 9: "TIME_TO_WAIT_W100MS", 125 10: "TIME_TO_WAIT_W200MS", 126 11: "TIME_TO_WAIT_W500MS", 127 12: "TIME_TO_WAIT_W1S", 128 13: "TIME_TO_WAIT_W2S", 129 14: "TIME_TO_WAIT_W5S", 130 15: "TIME_TO_WAIT_W10S", 131 16: "TIME_TO_WAIT_W20S", 132 17: "TIME_TO_WAIT_W60S", 133 } 134 135 var TimeToWait_value = map[string]int32{ 136 "TIME_TO_WAIT_ZERO": 0, 137 "TIME_TO_WAIT_W1MS": 1, 138 "TIME_TO_WAIT_W2MS": 2, 139 "TIME_TO_WAIT_W5MS": 3, 140 "TIME_TO_WAIT_W10MS": 4, 141 "TIME_TO_WAIT_W20MS": 5, 142 "TIME_TO_WAIT_W30MS": 6, 143 "TIME_TO_WAIT_W40MS": 7, 144 "TIME_TO_WAIT_W50MS": 8, 145 "TIME_TO_WAIT_W100MS": 9, 146 "TIME_TO_WAIT_W200MS": 10, 147 "TIME_TO_WAIT_W500MS": 11, 148 "TIME_TO_WAIT_W1S": 12, 149 "TIME_TO_WAIT_W2S": 13, 150 "TIME_TO_WAIT_W5S": 14, 151 "TIME_TO_WAIT_W10S": 15, 152 "TIME_TO_WAIT_W20S": 16, 153 "TIME_TO_WAIT_W60S": 17, 154 } 155 156 func (x TimeToWait) String() string { 157 return proto.EnumName(TimeToWait_name, int32(x)) 158 } 159 160 func (TimeToWait) EnumDescriptor() ([]byte, []int) { 161 return fileDescriptor_dcfc9e59554ac999, []int{2} 162 } 163 164 type ChannelEventType int32 165 166 const ( 167 ChannelEventType_CHANNEL_EVENT_UNKNOWN ChannelEventType = 0 168 ChannelEventType_CHANNEL_CREATED ChannelEventType = 1 169 ChannelEventType_CHANNEL_UPDATED ChannelEventType = 2 170 ChannelEventType_CHANNEL_DELETED ChannelEventType = 3 171 ChannelEventType_CHANNEL_REPLAYED ChannelEventType = 4 172 ) 173 174 var ChannelEventType_name = map[int32]string{ 175 0: "CHANNEL_EVENT_UNKNOWN", 176 1: "CHANNEL_CREATED", 177 2: "CHANNEL_UPDATED", 178 3: "CHANNEL_DELETED", 179 4: "CHANNEL_REPLAYED", 180 } 181 182 var ChannelEventType_value = map[string]int32{ 183 "CHANNEL_EVENT_UNKNOWN": 0, 184 "CHANNEL_CREATED": 1, 185 "CHANNEL_UPDATED": 2, 186 "CHANNEL_DELETED": 3, 187 "CHANNEL_REPLAYED": 4, 188 } 189 190 func (x ChannelEventType) String() string { 191 return proto.EnumName(ChannelEventType_name, int32(x)) 192 } 193 194 func (ChannelEventType) EnumDescriptor() ([]byte, []int) { 195 return fileDescriptor_dcfc9e59554ac999, []int{3} 196 } 197 198 type SubscriptionEventType int32 199 200 const ( 201 SubscriptionEventType_SUBSCRIPTION_EVENT_UNKNOWN SubscriptionEventType = 0 202 SubscriptionEventType_SUBSCRIPTION_CREATED SubscriptionEventType = 1 203 SubscriptionEventType_SUBSCRIPTION_UPDATED SubscriptionEventType = 2 204 SubscriptionEventType_SUBSCRIPTION_DELETED SubscriptionEventType = 3 205 SubscriptionEventType_SUBSCRIPTION_REPLAYED SubscriptionEventType = 4 206 ) 207 208 var SubscriptionEventType_name = map[int32]string{ 209 0: "SUBSCRIPTION_EVENT_UNKNOWN", 210 1: "SUBSCRIPTION_CREATED", 211 2: "SUBSCRIPTION_UPDATED", 212 3: "SUBSCRIPTION_DELETED", 213 4: "SUBSCRIPTION_REPLAYED", 214 } 215 216 var SubscriptionEventType_value = map[string]int32{ 217 "SUBSCRIPTION_EVENT_UNKNOWN": 0, 218 "SUBSCRIPTION_CREATED": 1, 219 "SUBSCRIPTION_UPDATED": 2, 220 "SUBSCRIPTION_DELETED": 3, 221 "SUBSCRIPTION_REPLAYED": 4, 222 } 223 224 func (x SubscriptionEventType) String() string { 225 return proto.EnumName(SubscriptionEventType_name, int32(x)) 226 } 227 228 func (SubscriptionEventType) EnumDescriptor() ([]byte, []int) { 229 return fileDescriptor_dcfc9e59554ac999, []int{4} 230 } 231 232 type ChannelPhase int32 233 234 const ( 235 ChannelPhase_CHANNEL_CLOSED ChannelPhase = 0 236 ChannelPhase_CHANNEL_OPEN ChannelPhase = 1 237 ) 238 239 var ChannelPhase_name = map[int32]string{ 240 0: "CHANNEL_CLOSED", 241 1: "CHANNEL_OPEN", 242 } 243 244 var ChannelPhase_value = map[string]int32{ 245 "CHANNEL_CLOSED": 0, 246 "CHANNEL_OPEN": 1, 247 } 248 249 func (x ChannelPhase) String() string { 250 return proto.EnumName(ChannelPhase_name, int32(x)) 251 } 252 253 func (ChannelPhase) EnumDescriptor() ([]byte, []int) { 254 return fileDescriptor_dcfc9e59554ac999, []int{5} 255 } 256 257 type ChannelState int32 258 259 const ( 260 // CHANNEL_PENDING indicates the channel phase is pending 261 ChannelState_CHANNEL_PENDING ChannelState = 0 262 // CHANNEL_COMPLETE indicates the channel phase is complete 263 ChannelState_CHANNEL_COMPLETE ChannelState = 1 264 // CHANNEL_FAILED indicates the channel phase failed 265 ChannelState_CHANNEL_FAILED ChannelState = 2 266 ) 267 268 var ChannelState_name = map[int32]string{ 269 0: "CHANNEL_PENDING", 270 1: "CHANNEL_COMPLETE", 271 2: "CHANNEL_FAILED", 272 } 273 274 var ChannelState_value = map[string]int32{ 275 "CHANNEL_PENDING": 0, 276 "CHANNEL_COMPLETE": 1, 277 "CHANNEL_FAILED": 2, 278 } 279 280 func (x ChannelState) String() string { 281 return proto.EnumName(ChannelState_name, int32(x)) 282 } 283 284 func (ChannelState) EnumDescriptor() ([]byte, []int) { 285 return fileDescriptor_dcfc9e59554ac999, []int{6} 286 } 287 288 type SubscriptionPhase int32 289 290 const ( 291 SubscriptionPhase_SUBSCRIPTION_CLOSED SubscriptionPhase = 0 292 SubscriptionPhase_SUBSCRIPTION_OPEN SubscriptionPhase = 1 293 ) 294 295 var SubscriptionPhase_name = map[int32]string{ 296 0: "SUBSCRIPTION_CLOSED", 297 1: "SUBSCRIPTION_OPEN", 298 } 299 300 var SubscriptionPhase_value = map[string]int32{ 301 "SUBSCRIPTION_CLOSED": 0, 302 "SUBSCRIPTION_OPEN": 1, 303 } 304 305 func (x SubscriptionPhase) String() string { 306 return proto.EnumName(SubscriptionPhase_name, int32(x)) 307 } 308 309 func (SubscriptionPhase) EnumDescriptor() ([]byte, []int) { 310 return fileDescriptor_dcfc9e59554ac999, []int{7} 311 } 312 313 type SubscriptionState int32 314 315 const ( 316 // SUBSCRIPTION_PENDING indicates the subscription phase is pending 317 SubscriptionState_SUBSCRIPTION_PENDING SubscriptionState = 0 318 // SUBSCRIPTION_COMPLETE indicates the subscription phase is complete 319 SubscriptionState_SUBSCRIPTION_COMPLETE SubscriptionState = 1 320 // SUBSCRIPTION_FAILED indicates the subscription phase failed 321 SubscriptionState_SUBSCRIPTION_FAILED SubscriptionState = 2 322 ) 323 324 var SubscriptionState_name = map[int32]string{ 325 0: "SUBSCRIPTION_PENDING", 326 1: "SUBSCRIPTION_COMPLETE", 327 2: "SUBSCRIPTION_FAILED", 328 } 329 330 var SubscriptionState_value = map[string]int32{ 331 "SUBSCRIPTION_PENDING": 0, 332 "SUBSCRIPTION_COMPLETE": 1, 333 "SUBSCRIPTION_FAILED": 2, 334 } 335 336 func (x SubscriptionState) String() string { 337 return proto.EnumName(SubscriptionState_name, int32(x)) 338 } 339 340 func (SubscriptionState) EnumDescriptor() ([]byte, []int) { 341 return fileDescriptor_dcfc9e59554ac999, []int{8} 342 } 343 344 type SubscribeRequest struct { 345 Headers RequestHeaders `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers"` 346 TransactionID TransactionID `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3,casttype=TransactionID" json:"transaction_id,omitempty"` 347 Subscription SubscriptionSpec `protobuf:"bytes,3,opt,name=subscription,proto3" json:"subscription"` 348 TransactionTimeout *time.Duration `protobuf:"bytes,4,opt,name=transaction_timeout,json=transactionTimeout,proto3,stdduration" json:"transaction_timeout,omitempty"` 349 } 350 351 func (m *SubscribeRequest) Reset() { *m = SubscribeRequest{} } 352 func (m *SubscribeRequest) String() string { return proto.CompactTextString(m) } 353 func (*SubscribeRequest) ProtoMessage() {} 354 func (*SubscribeRequest) Descriptor() ([]byte, []int) { 355 return fileDescriptor_dcfc9e59554ac999, []int{0} 356 } 357 func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error { 358 return m.Unmarshal(b) 359 } 360 func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 361 if deterministic { 362 return xxx_messageInfo_SubscribeRequest.Marshal(b, m, deterministic) 363 } else { 364 b = b[:cap(b)] 365 n, err := m.MarshalToSizedBuffer(b) 366 if err != nil { 367 return nil, err 368 } 369 return b[:n], nil 370 } 371 } 372 func (m *SubscribeRequest) XXX_Merge(src proto.Message) { 373 xxx_messageInfo_SubscribeRequest.Merge(m, src) 374 } 375 func (m *SubscribeRequest) XXX_Size() int { 376 return m.Size() 377 } 378 func (m *SubscribeRequest) XXX_DiscardUnknown() { 379 xxx_messageInfo_SubscribeRequest.DiscardUnknown(m) 380 } 381 382 var xxx_messageInfo_SubscribeRequest proto.InternalMessageInfo 383 384 func (m *SubscribeRequest) GetHeaders() RequestHeaders { 385 if m != nil { 386 return m.Headers 387 } 388 return RequestHeaders{} 389 } 390 391 func (m *SubscribeRequest) GetTransactionID() TransactionID { 392 if m != nil { 393 return m.TransactionID 394 } 395 return "" 396 } 397 398 func (m *SubscribeRequest) GetSubscription() SubscriptionSpec { 399 if m != nil { 400 return m.Subscription 401 } 402 return SubscriptionSpec{} 403 } 404 405 func (m *SubscribeRequest) GetTransactionTimeout() *time.Duration { 406 if m != nil { 407 return m.TransactionTimeout 408 } 409 return nil 410 } 411 412 type SubscribeResponse struct { 413 Headers ResponseHeaders `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers"` 414 // Types that are valid to be assigned to Message: 415 // 416 // *SubscribeResponse_Ack 417 // *SubscribeResponse_Indication 418 Message isSubscribeResponse_Message `protobuf_oneof:"message"` 419 } 420 421 func (m *SubscribeResponse) Reset() { *m = SubscribeResponse{} } 422 func (m *SubscribeResponse) String() string { return proto.CompactTextString(m) } 423 func (*SubscribeResponse) ProtoMessage() {} 424 func (*SubscribeResponse) Descriptor() ([]byte, []int) { 425 return fileDescriptor_dcfc9e59554ac999, []int{1} 426 } 427 func (m *SubscribeResponse) XXX_Unmarshal(b []byte) error { 428 return m.Unmarshal(b) 429 } 430 func (m *SubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 431 if deterministic { 432 return xxx_messageInfo_SubscribeResponse.Marshal(b, m, deterministic) 433 } else { 434 b = b[:cap(b)] 435 n, err := m.MarshalToSizedBuffer(b) 436 if err != nil { 437 return nil, err 438 } 439 return b[:n], nil 440 } 441 } 442 func (m *SubscribeResponse) XXX_Merge(src proto.Message) { 443 xxx_messageInfo_SubscribeResponse.Merge(m, src) 444 } 445 func (m *SubscribeResponse) XXX_Size() int { 446 return m.Size() 447 } 448 func (m *SubscribeResponse) XXX_DiscardUnknown() { 449 xxx_messageInfo_SubscribeResponse.DiscardUnknown(m) 450 } 451 452 var xxx_messageInfo_SubscribeResponse proto.InternalMessageInfo 453 454 type isSubscribeResponse_Message interface { 455 isSubscribeResponse_Message() 456 MarshalTo([]byte) (int, error) 457 Size() int 458 } 459 460 type SubscribeResponse_Ack struct { 461 Ack *Acknowledgement `protobuf:"bytes,2,opt,name=ack,proto3,oneof" json:"ack,omitempty"` 462 } 463 type SubscribeResponse_Indication struct { 464 Indication *Indication `protobuf:"bytes,3,opt,name=indication,proto3,oneof" json:"indication,omitempty"` 465 } 466 467 func (*SubscribeResponse_Ack) isSubscribeResponse_Message() {} 468 func (*SubscribeResponse_Indication) isSubscribeResponse_Message() {} 469 470 func (m *SubscribeResponse) GetMessage() isSubscribeResponse_Message { 471 if m != nil { 472 return m.Message 473 } 474 return nil 475 } 476 477 func (m *SubscribeResponse) GetHeaders() ResponseHeaders { 478 if m != nil { 479 return m.Headers 480 } 481 return ResponseHeaders{} 482 } 483 484 func (m *SubscribeResponse) GetAck() *Acknowledgement { 485 if x, ok := m.GetMessage().(*SubscribeResponse_Ack); ok { 486 return x.Ack 487 } 488 return nil 489 } 490 491 func (m *SubscribeResponse) GetIndication() *Indication { 492 if x, ok := m.GetMessage().(*SubscribeResponse_Indication); ok { 493 return x.Indication 494 } 495 return nil 496 } 497 498 // XXX_OneofWrappers is for the internal use of the proto package. 499 func (*SubscribeResponse) XXX_OneofWrappers() []interface{} { 500 return []interface{}{ 501 (*SubscribeResponse_Ack)(nil), 502 (*SubscribeResponse_Indication)(nil), 503 } 504 } 505 506 type UnsubscribeRequest struct { 507 Headers RequestHeaders `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers"` 508 TransactionID TransactionID `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3,casttype=TransactionID" json:"transaction_id,omitempty"` 509 } 510 511 func (m *UnsubscribeRequest) Reset() { *m = UnsubscribeRequest{} } 512 func (m *UnsubscribeRequest) String() string { return proto.CompactTextString(m) } 513 func (*UnsubscribeRequest) ProtoMessage() {} 514 func (*UnsubscribeRequest) Descriptor() ([]byte, []int) { 515 return fileDescriptor_dcfc9e59554ac999, []int{2} 516 } 517 func (m *UnsubscribeRequest) XXX_Unmarshal(b []byte) error { 518 return m.Unmarshal(b) 519 } 520 func (m *UnsubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 521 if deterministic { 522 return xxx_messageInfo_UnsubscribeRequest.Marshal(b, m, deterministic) 523 } else { 524 b = b[:cap(b)] 525 n, err := m.MarshalToSizedBuffer(b) 526 if err != nil { 527 return nil, err 528 } 529 return b[:n], nil 530 } 531 } 532 func (m *UnsubscribeRequest) XXX_Merge(src proto.Message) { 533 xxx_messageInfo_UnsubscribeRequest.Merge(m, src) 534 } 535 func (m *UnsubscribeRequest) XXX_Size() int { 536 return m.Size() 537 } 538 func (m *UnsubscribeRequest) XXX_DiscardUnknown() { 539 xxx_messageInfo_UnsubscribeRequest.DiscardUnknown(m) 540 } 541 542 var xxx_messageInfo_UnsubscribeRequest proto.InternalMessageInfo 543 544 func (m *UnsubscribeRequest) GetHeaders() RequestHeaders { 545 if m != nil { 546 return m.Headers 547 } 548 return RequestHeaders{} 549 } 550 551 func (m *UnsubscribeRequest) GetTransactionID() TransactionID { 552 if m != nil { 553 return m.TransactionID 554 } 555 return "" 556 } 557 558 type UnsubscribeResponse struct { 559 Headers ResponseHeaders `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers"` 560 } 561 562 func (m *UnsubscribeResponse) Reset() { *m = UnsubscribeResponse{} } 563 func (m *UnsubscribeResponse) String() string { return proto.CompactTextString(m) } 564 func (*UnsubscribeResponse) ProtoMessage() {} 565 func (*UnsubscribeResponse) Descriptor() ([]byte, []int) { 566 return fileDescriptor_dcfc9e59554ac999, []int{3} 567 } 568 func (m *UnsubscribeResponse) XXX_Unmarshal(b []byte) error { 569 return m.Unmarshal(b) 570 } 571 func (m *UnsubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 572 if deterministic { 573 return xxx_messageInfo_UnsubscribeResponse.Marshal(b, m, deterministic) 574 } else { 575 b = b[:cap(b)] 576 n, err := m.MarshalToSizedBuffer(b) 577 if err != nil { 578 return nil, err 579 } 580 return b[:n], nil 581 } 582 } 583 func (m *UnsubscribeResponse) XXX_Merge(src proto.Message) { 584 xxx_messageInfo_UnsubscribeResponse.Merge(m, src) 585 } 586 func (m *UnsubscribeResponse) XXX_Size() int { 587 return m.Size() 588 } 589 func (m *UnsubscribeResponse) XXX_DiscardUnknown() { 590 xxx_messageInfo_UnsubscribeResponse.DiscardUnknown(m) 591 } 592 593 var xxx_messageInfo_UnsubscribeResponse proto.InternalMessageInfo 594 595 func (m *UnsubscribeResponse) GetHeaders() ResponseHeaders { 596 if m != nil { 597 return m.Headers 598 } 599 return ResponseHeaders{} 600 } 601 602 type SubscriptionSpec struct { 603 EventTrigger EventTrigger `protobuf:"bytes,1,opt,name=event_trigger,json=eventTrigger,proto3" json:"event_trigger"` 604 Actions []Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions"` 605 } 606 607 func (m *SubscriptionSpec) Reset() { *m = SubscriptionSpec{} } 608 func (m *SubscriptionSpec) String() string { return proto.CompactTextString(m) } 609 func (*SubscriptionSpec) ProtoMessage() {} 610 func (*SubscriptionSpec) Descriptor() ([]byte, []int) { 611 return fileDescriptor_dcfc9e59554ac999, []int{4} 612 } 613 func (m *SubscriptionSpec) XXX_Unmarshal(b []byte) error { 614 return m.Unmarshal(b) 615 } 616 func (m *SubscriptionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 617 if deterministic { 618 return xxx_messageInfo_SubscriptionSpec.Marshal(b, m, deterministic) 619 } else { 620 b = b[:cap(b)] 621 n, err := m.MarshalToSizedBuffer(b) 622 if err != nil { 623 return nil, err 624 } 625 return b[:n], nil 626 } 627 } 628 func (m *SubscriptionSpec) XXX_Merge(src proto.Message) { 629 xxx_messageInfo_SubscriptionSpec.Merge(m, src) 630 } 631 func (m *SubscriptionSpec) XXX_Size() int { 632 return m.Size() 633 } 634 func (m *SubscriptionSpec) XXX_DiscardUnknown() { 635 xxx_messageInfo_SubscriptionSpec.DiscardUnknown(m) 636 } 637 638 var xxx_messageInfo_SubscriptionSpec proto.InternalMessageInfo 639 640 func (m *SubscriptionSpec) GetEventTrigger() EventTrigger { 641 if m != nil { 642 return m.EventTrigger 643 } 644 return EventTrigger{} 645 } 646 647 func (m *SubscriptionSpec) GetActions() []Action { 648 if m != nil { 649 return m.Actions 650 } 651 return nil 652 } 653 654 type EventTrigger struct { 655 Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 656 } 657 658 func (m *EventTrigger) Reset() { *m = EventTrigger{} } 659 func (m *EventTrigger) String() string { return proto.CompactTextString(m) } 660 func (*EventTrigger) ProtoMessage() {} 661 func (*EventTrigger) Descriptor() ([]byte, []int) { 662 return fileDescriptor_dcfc9e59554ac999, []int{5} 663 } 664 func (m *EventTrigger) XXX_Unmarshal(b []byte) error { 665 return m.Unmarshal(b) 666 } 667 func (m *EventTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 668 if deterministic { 669 return xxx_messageInfo_EventTrigger.Marshal(b, m, deterministic) 670 } else { 671 b = b[:cap(b)] 672 n, err := m.MarshalToSizedBuffer(b) 673 if err != nil { 674 return nil, err 675 } 676 return b[:n], nil 677 } 678 } 679 func (m *EventTrigger) XXX_Merge(src proto.Message) { 680 xxx_messageInfo_EventTrigger.Merge(m, src) 681 } 682 func (m *EventTrigger) XXX_Size() int { 683 return m.Size() 684 } 685 func (m *EventTrigger) XXX_DiscardUnknown() { 686 xxx_messageInfo_EventTrigger.DiscardUnknown(m) 687 } 688 689 var xxx_messageInfo_EventTrigger proto.InternalMessageInfo 690 691 func (m *EventTrigger) GetPayload() []byte { 692 if m != nil { 693 return m.Payload 694 } 695 return nil 696 } 697 698 type Action struct { 699 ID int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 700 Type ActionType `protobuf:"varint,2,opt,name=type,proto3,enum=onos.e2t.e2.v1beta1.ActionType" json:"type,omitempty"` 701 Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` 702 SubsequentAction *SubsequentAction `protobuf:"bytes,4,opt,name=subsequent_action,json=subsequentAction,proto3" json:"subsequent_action,omitempty"` 703 } 704 705 func (m *Action) Reset() { *m = Action{} } 706 func (m *Action) String() string { return proto.CompactTextString(m) } 707 func (*Action) ProtoMessage() {} 708 func (*Action) Descriptor() ([]byte, []int) { 709 return fileDescriptor_dcfc9e59554ac999, []int{6} 710 } 711 func (m *Action) XXX_Unmarshal(b []byte) error { 712 return m.Unmarshal(b) 713 } 714 func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 715 if deterministic { 716 return xxx_messageInfo_Action.Marshal(b, m, deterministic) 717 } else { 718 b = b[:cap(b)] 719 n, err := m.MarshalToSizedBuffer(b) 720 if err != nil { 721 return nil, err 722 } 723 return b[:n], nil 724 } 725 } 726 func (m *Action) XXX_Merge(src proto.Message) { 727 xxx_messageInfo_Action.Merge(m, src) 728 } 729 func (m *Action) XXX_Size() int { 730 return m.Size() 731 } 732 func (m *Action) XXX_DiscardUnknown() { 733 xxx_messageInfo_Action.DiscardUnknown(m) 734 } 735 736 var xxx_messageInfo_Action proto.InternalMessageInfo 737 738 func (m *Action) GetID() int32 { 739 if m != nil { 740 return m.ID 741 } 742 return 0 743 } 744 745 func (m *Action) GetType() ActionType { 746 if m != nil { 747 return m.Type 748 } 749 return ActionType_ACTION_TYPE_REPORT 750 } 751 752 func (m *Action) GetPayload() []byte { 753 if m != nil { 754 return m.Payload 755 } 756 return nil 757 } 758 759 func (m *Action) GetSubsequentAction() *SubsequentAction { 760 if m != nil { 761 return m.SubsequentAction 762 } 763 return nil 764 } 765 766 type SubsequentAction struct { 767 Type SubsequentActionType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.e2t.e2.v1beta1.SubsequentActionType" json:"type,omitempty"` 768 TimeToWait TimeToWait `protobuf:"varint,2,opt,name=time_to_wait,json=timeToWait,proto3,enum=onos.e2t.e2.v1beta1.TimeToWait" json:"time_to_wait,omitempty"` 769 } 770 771 func (m *SubsequentAction) Reset() { *m = SubsequentAction{} } 772 func (m *SubsequentAction) String() string { return proto.CompactTextString(m) } 773 func (*SubsequentAction) ProtoMessage() {} 774 func (*SubsequentAction) Descriptor() ([]byte, []int) { 775 return fileDescriptor_dcfc9e59554ac999, []int{7} 776 } 777 func (m *SubsequentAction) XXX_Unmarshal(b []byte) error { 778 return m.Unmarshal(b) 779 } 780 func (m *SubsequentAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 781 if deterministic { 782 return xxx_messageInfo_SubsequentAction.Marshal(b, m, deterministic) 783 } else { 784 b = b[:cap(b)] 785 n, err := m.MarshalToSizedBuffer(b) 786 if err != nil { 787 return nil, err 788 } 789 return b[:n], nil 790 } 791 } 792 func (m *SubsequentAction) XXX_Merge(src proto.Message) { 793 xxx_messageInfo_SubsequentAction.Merge(m, src) 794 } 795 func (m *SubsequentAction) XXX_Size() int { 796 return m.Size() 797 } 798 func (m *SubsequentAction) XXX_DiscardUnknown() { 799 xxx_messageInfo_SubsequentAction.DiscardUnknown(m) 800 } 801 802 var xxx_messageInfo_SubsequentAction proto.InternalMessageInfo 803 804 func (m *SubsequentAction) GetType() SubsequentActionType { 805 if m != nil { 806 return m.Type 807 } 808 return SubsequentActionType_SUBSEQUENT_ACTION_TYPE_CONTINUE 809 } 810 811 func (m *SubsequentAction) GetTimeToWait() TimeToWait { 812 if m != nil { 813 return m.TimeToWait 814 } 815 return TimeToWait_TIME_TO_WAIT_ZERO 816 } 817 818 type Acknowledgement struct { 819 ChannelID ChannelID `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3,casttype=ChannelID" json:"channel_id,omitempty"` 820 } 821 822 func (m *Acknowledgement) Reset() { *m = Acknowledgement{} } 823 func (m *Acknowledgement) String() string { return proto.CompactTextString(m) } 824 func (*Acknowledgement) ProtoMessage() {} 825 func (*Acknowledgement) Descriptor() ([]byte, []int) { 826 return fileDescriptor_dcfc9e59554ac999, []int{8} 827 } 828 func (m *Acknowledgement) XXX_Unmarshal(b []byte) error { 829 return m.Unmarshal(b) 830 } 831 func (m *Acknowledgement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 832 if deterministic { 833 return xxx_messageInfo_Acknowledgement.Marshal(b, m, deterministic) 834 } else { 835 b = b[:cap(b)] 836 n, err := m.MarshalToSizedBuffer(b) 837 if err != nil { 838 return nil, err 839 } 840 return b[:n], nil 841 } 842 } 843 func (m *Acknowledgement) XXX_Merge(src proto.Message) { 844 xxx_messageInfo_Acknowledgement.Merge(m, src) 845 } 846 func (m *Acknowledgement) XXX_Size() int { 847 return m.Size() 848 } 849 func (m *Acknowledgement) XXX_DiscardUnknown() { 850 xxx_messageInfo_Acknowledgement.DiscardUnknown(m) 851 } 852 853 var xxx_messageInfo_Acknowledgement proto.InternalMessageInfo 854 855 func (m *Acknowledgement) GetChannelID() ChannelID { 856 if m != nil { 857 return m.ChannelID 858 } 859 return "" 860 } 861 862 type Indication struct { 863 Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` 864 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` 865 CallProcessId []byte `protobuf:"bytes,3,opt,name=call_process_id,json=callProcessId,proto3" json:"call_process_id,omitempty"` 866 } 867 868 func (m *Indication) Reset() { *m = Indication{} } 869 func (m *Indication) String() string { return proto.CompactTextString(m) } 870 func (*Indication) ProtoMessage() {} 871 func (*Indication) Descriptor() ([]byte, []int) { 872 return fileDescriptor_dcfc9e59554ac999, []int{9} 873 } 874 func (m *Indication) XXX_Unmarshal(b []byte) error { 875 return m.Unmarshal(b) 876 } 877 func (m *Indication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 878 if deterministic { 879 return xxx_messageInfo_Indication.Marshal(b, m, deterministic) 880 } else { 881 b = b[:cap(b)] 882 n, err := m.MarshalToSizedBuffer(b) 883 if err != nil { 884 return nil, err 885 } 886 return b[:n], nil 887 } 888 } 889 func (m *Indication) XXX_Merge(src proto.Message) { 890 xxx_messageInfo_Indication.Merge(m, src) 891 } 892 func (m *Indication) XXX_Size() int { 893 return m.Size() 894 } 895 func (m *Indication) XXX_DiscardUnknown() { 896 xxx_messageInfo_Indication.DiscardUnknown(m) 897 } 898 899 var xxx_messageInfo_Indication proto.InternalMessageInfo 900 901 func (m *Indication) GetHeader() []byte { 902 if m != nil { 903 return m.Header 904 } 905 return nil 906 } 907 908 func (m *Indication) GetPayload() []byte { 909 if m != nil { 910 return m.Payload 911 } 912 return nil 913 } 914 915 func (m *Indication) GetCallProcessId() []byte { 916 if m != nil { 917 return m.CallProcessId 918 } 919 return nil 920 } 921 922 type GetChannelRequest struct { 923 ChannelID ChannelID `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3,casttype=ChannelID" json:"channel_id,omitempty"` 924 } 925 926 func (m *GetChannelRequest) Reset() { *m = GetChannelRequest{} } 927 func (m *GetChannelRequest) String() string { return proto.CompactTextString(m) } 928 func (*GetChannelRequest) ProtoMessage() {} 929 func (*GetChannelRequest) Descriptor() ([]byte, []int) { 930 return fileDescriptor_dcfc9e59554ac999, []int{10} 931 } 932 func (m *GetChannelRequest) XXX_Unmarshal(b []byte) error { 933 return m.Unmarshal(b) 934 } 935 func (m *GetChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 936 if deterministic { 937 return xxx_messageInfo_GetChannelRequest.Marshal(b, m, deterministic) 938 } else { 939 b = b[:cap(b)] 940 n, err := m.MarshalToSizedBuffer(b) 941 if err != nil { 942 return nil, err 943 } 944 return b[:n], nil 945 } 946 } 947 func (m *GetChannelRequest) XXX_Merge(src proto.Message) { 948 xxx_messageInfo_GetChannelRequest.Merge(m, src) 949 } 950 func (m *GetChannelRequest) XXX_Size() int { 951 return m.Size() 952 } 953 func (m *GetChannelRequest) XXX_DiscardUnknown() { 954 xxx_messageInfo_GetChannelRequest.DiscardUnknown(m) 955 } 956 957 var xxx_messageInfo_GetChannelRequest proto.InternalMessageInfo 958 959 func (m *GetChannelRequest) GetChannelID() ChannelID { 960 if m != nil { 961 return m.ChannelID 962 } 963 return "" 964 } 965 966 type GetChannelResponse struct { 967 Channel Channel `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel"` 968 } 969 970 func (m *GetChannelResponse) Reset() { *m = GetChannelResponse{} } 971 func (m *GetChannelResponse) String() string { return proto.CompactTextString(m) } 972 func (*GetChannelResponse) ProtoMessage() {} 973 func (*GetChannelResponse) Descriptor() ([]byte, []int) { 974 return fileDescriptor_dcfc9e59554ac999, []int{11} 975 } 976 func (m *GetChannelResponse) XXX_Unmarshal(b []byte) error { 977 return m.Unmarshal(b) 978 } 979 func (m *GetChannelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 980 if deterministic { 981 return xxx_messageInfo_GetChannelResponse.Marshal(b, m, deterministic) 982 } else { 983 b = b[:cap(b)] 984 n, err := m.MarshalToSizedBuffer(b) 985 if err != nil { 986 return nil, err 987 } 988 return b[:n], nil 989 } 990 } 991 func (m *GetChannelResponse) XXX_Merge(src proto.Message) { 992 xxx_messageInfo_GetChannelResponse.Merge(m, src) 993 } 994 func (m *GetChannelResponse) XXX_Size() int { 995 return m.Size() 996 } 997 func (m *GetChannelResponse) XXX_DiscardUnknown() { 998 xxx_messageInfo_GetChannelResponse.DiscardUnknown(m) 999 } 1000 1001 var xxx_messageInfo_GetChannelResponse proto.InternalMessageInfo 1002 1003 func (m *GetChannelResponse) GetChannel() Channel { 1004 if m != nil { 1005 return m.Channel 1006 } 1007 return Channel{} 1008 } 1009 1010 type ListChannelsRequest struct { 1011 } 1012 1013 func (m *ListChannelsRequest) Reset() { *m = ListChannelsRequest{} } 1014 func (m *ListChannelsRequest) String() string { return proto.CompactTextString(m) } 1015 func (*ListChannelsRequest) ProtoMessage() {} 1016 func (*ListChannelsRequest) Descriptor() ([]byte, []int) { 1017 return fileDescriptor_dcfc9e59554ac999, []int{12} 1018 } 1019 func (m *ListChannelsRequest) XXX_Unmarshal(b []byte) error { 1020 return m.Unmarshal(b) 1021 } 1022 func (m *ListChannelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1023 if deterministic { 1024 return xxx_messageInfo_ListChannelsRequest.Marshal(b, m, deterministic) 1025 } else { 1026 b = b[:cap(b)] 1027 n, err := m.MarshalToSizedBuffer(b) 1028 if err != nil { 1029 return nil, err 1030 } 1031 return b[:n], nil 1032 } 1033 } 1034 func (m *ListChannelsRequest) XXX_Merge(src proto.Message) { 1035 xxx_messageInfo_ListChannelsRequest.Merge(m, src) 1036 } 1037 func (m *ListChannelsRequest) XXX_Size() int { 1038 return m.Size() 1039 } 1040 func (m *ListChannelsRequest) XXX_DiscardUnknown() { 1041 xxx_messageInfo_ListChannelsRequest.DiscardUnknown(m) 1042 } 1043 1044 var xxx_messageInfo_ListChannelsRequest proto.InternalMessageInfo 1045 1046 type ListChannelsResponse struct { 1047 Channels []Channel `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels"` 1048 } 1049 1050 func (m *ListChannelsResponse) Reset() { *m = ListChannelsResponse{} } 1051 func (m *ListChannelsResponse) String() string { return proto.CompactTextString(m) } 1052 func (*ListChannelsResponse) ProtoMessage() {} 1053 func (*ListChannelsResponse) Descriptor() ([]byte, []int) { 1054 return fileDescriptor_dcfc9e59554ac999, []int{13} 1055 } 1056 func (m *ListChannelsResponse) XXX_Unmarshal(b []byte) error { 1057 return m.Unmarshal(b) 1058 } 1059 func (m *ListChannelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1060 if deterministic { 1061 return xxx_messageInfo_ListChannelsResponse.Marshal(b, m, deterministic) 1062 } else { 1063 b = b[:cap(b)] 1064 n, err := m.MarshalToSizedBuffer(b) 1065 if err != nil { 1066 return nil, err 1067 } 1068 return b[:n], nil 1069 } 1070 } 1071 func (m *ListChannelsResponse) XXX_Merge(src proto.Message) { 1072 xxx_messageInfo_ListChannelsResponse.Merge(m, src) 1073 } 1074 func (m *ListChannelsResponse) XXX_Size() int { 1075 return m.Size() 1076 } 1077 func (m *ListChannelsResponse) XXX_DiscardUnknown() { 1078 xxx_messageInfo_ListChannelsResponse.DiscardUnknown(m) 1079 } 1080 1081 var xxx_messageInfo_ListChannelsResponse proto.InternalMessageInfo 1082 1083 func (m *ListChannelsResponse) GetChannels() []Channel { 1084 if m != nil { 1085 return m.Channels 1086 } 1087 return nil 1088 } 1089 1090 type WatchChannelsRequest struct { 1091 NoReplay bool `protobuf:"varint,1,opt,name=no_replay,json=noReplay,proto3" json:"no_replay,omitempty"` 1092 } 1093 1094 func (m *WatchChannelsRequest) Reset() { *m = WatchChannelsRequest{} } 1095 func (m *WatchChannelsRequest) String() string { return proto.CompactTextString(m) } 1096 func (*WatchChannelsRequest) ProtoMessage() {} 1097 func (*WatchChannelsRequest) Descriptor() ([]byte, []int) { 1098 return fileDescriptor_dcfc9e59554ac999, []int{14} 1099 } 1100 func (m *WatchChannelsRequest) XXX_Unmarshal(b []byte) error { 1101 return m.Unmarshal(b) 1102 } 1103 func (m *WatchChannelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1104 if deterministic { 1105 return xxx_messageInfo_WatchChannelsRequest.Marshal(b, m, deterministic) 1106 } else { 1107 b = b[:cap(b)] 1108 n, err := m.MarshalToSizedBuffer(b) 1109 if err != nil { 1110 return nil, err 1111 } 1112 return b[:n], nil 1113 } 1114 } 1115 func (m *WatchChannelsRequest) XXX_Merge(src proto.Message) { 1116 xxx_messageInfo_WatchChannelsRequest.Merge(m, src) 1117 } 1118 func (m *WatchChannelsRequest) XXX_Size() int { 1119 return m.Size() 1120 } 1121 func (m *WatchChannelsRequest) XXX_DiscardUnknown() { 1122 xxx_messageInfo_WatchChannelsRequest.DiscardUnknown(m) 1123 } 1124 1125 var xxx_messageInfo_WatchChannelsRequest proto.InternalMessageInfo 1126 1127 func (m *WatchChannelsRequest) GetNoReplay() bool { 1128 if m != nil { 1129 return m.NoReplay 1130 } 1131 return false 1132 } 1133 1134 type WatchChannelsResponse struct { 1135 Event ChannelEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event"` 1136 } 1137 1138 func (m *WatchChannelsResponse) Reset() { *m = WatchChannelsResponse{} } 1139 func (m *WatchChannelsResponse) String() string { return proto.CompactTextString(m) } 1140 func (*WatchChannelsResponse) ProtoMessage() {} 1141 func (*WatchChannelsResponse) Descriptor() ([]byte, []int) { 1142 return fileDescriptor_dcfc9e59554ac999, []int{15} 1143 } 1144 func (m *WatchChannelsResponse) XXX_Unmarshal(b []byte) error { 1145 return m.Unmarshal(b) 1146 } 1147 func (m *WatchChannelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1148 if deterministic { 1149 return xxx_messageInfo_WatchChannelsResponse.Marshal(b, m, deterministic) 1150 } else { 1151 b = b[:cap(b)] 1152 n, err := m.MarshalToSizedBuffer(b) 1153 if err != nil { 1154 return nil, err 1155 } 1156 return b[:n], nil 1157 } 1158 } 1159 func (m *WatchChannelsResponse) XXX_Merge(src proto.Message) { 1160 xxx_messageInfo_WatchChannelsResponse.Merge(m, src) 1161 } 1162 func (m *WatchChannelsResponse) XXX_Size() int { 1163 return m.Size() 1164 } 1165 func (m *WatchChannelsResponse) XXX_DiscardUnknown() { 1166 xxx_messageInfo_WatchChannelsResponse.DiscardUnknown(m) 1167 } 1168 1169 var xxx_messageInfo_WatchChannelsResponse proto.InternalMessageInfo 1170 1171 func (m *WatchChannelsResponse) GetEvent() ChannelEvent { 1172 if m != nil { 1173 return m.Event 1174 } 1175 return ChannelEvent{} 1176 } 1177 1178 type ChannelEvent struct { 1179 Type ChannelEventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.e2t.e2.v1beta1.ChannelEventType" json:"type,omitempty"` 1180 Channel Channel `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel"` 1181 } 1182 1183 func (m *ChannelEvent) Reset() { *m = ChannelEvent{} } 1184 func (m *ChannelEvent) String() string { return proto.CompactTextString(m) } 1185 func (*ChannelEvent) ProtoMessage() {} 1186 func (*ChannelEvent) Descriptor() ([]byte, []int) { 1187 return fileDescriptor_dcfc9e59554ac999, []int{16} 1188 } 1189 func (m *ChannelEvent) XXX_Unmarshal(b []byte) error { 1190 return m.Unmarshal(b) 1191 } 1192 func (m *ChannelEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1193 if deterministic { 1194 return xxx_messageInfo_ChannelEvent.Marshal(b, m, deterministic) 1195 } else { 1196 b = b[:cap(b)] 1197 n, err := m.MarshalToSizedBuffer(b) 1198 if err != nil { 1199 return nil, err 1200 } 1201 return b[:n], nil 1202 } 1203 } 1204 func (m *ChannelEvent) XXX_Merge(src proto.Message) { 1205 xxx_messageInfo_ChannelEvent.Merge(m, src) 1206 } 1207 func (m *ChannelEvent) XXX_Size() int { 1208 return m.Size() 1209 } 1210 func (m *ChannelEvent) XXX_DiscardUnknown() { 1211 xxx_messageInfo_ChannelEvent.DiscardUnknown(m) 1212 } 1213 1214 var xxx_messageInfo_ChannelEvent proto.InternalMessageInfo 1215 1216 func (m *ChannelEvent) GetType() ChannelEventType { 1217 if m != nil { 1218 return m.Type 1219 } 1220 return ChannelEventType_CHANNEL_EVENT_UNKNOWN 1221 } 1222 1223 func (m *ChannelEvent) GetChannel() Channel { 1224 if m != nil { 1225 return m.Channel 1226 } 1227 return Channel{} 1228 } 1229 1230 type GetSubscriptionRequest struct { 1231 SubscriptionID SubscriptionID `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3,casttype=SubscriptionID" json:"subscription_id,omitempty"` 1232 } 1233 1234 func (m *GetSubscriptionRequest) Reset() { *m = GetSubscriptionRequest{} } 1235 func (m *GetSubscriptionRequest) String() string { return proto.CompactTextString(m) } 1236 func (*GetSubscriptionRequest) ProtoMessage() {} 1237 func (*GetSubscriptionRequest) Descriptor() ([]byte, []int) { 1238 return fileDescriptor_dcfc9e59554ac999, []int{17} 1239 } 1240 func (m *GetSubscriptionRequest) XXX_Unmarshal(b []byte) error { 1241 return m.Unmarshal(b) 1242 } 1243 func (m *GetSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1244 if deterministic { 1245 return xxx_messageInfo_GetSubscriptionRequest.Marshal(b, m, deterministic) 1246 } else { 1247 b = b[:cap(b)] 1248 n, err := m.MarshalToSizedBuffer(b) 1249 if err != nil { 1250 return nil, err 1251 } 1252 return b[:n], nil 1253 } 1254 } 1255 func (m *GetSubscriptionRequest) XXX_Merge(src proto.Message) { 1256 xxx_messageInfo_GetSubscriptionRequest.Merge(m, src) 1257 } 1258 func (m *GetSubscriptionRequest) XXX_Size() int { 1259 return m.Size() 1260 } 1261 func (m *GetSubscriptionRequest) XXX_DiscardUnknown() { 1262 xxx_messageInfo_GetSubscriptionRequest.DiscardUnknown(m) 1263 } 1264 1265 var xxx_messageInfo_GetSubscriptionRequest proto.InternalMessageInfo 1266 1267 func (m *GetSubscriptionRequest) GetSubscriptionID() SubscriptionID { 1268 if m != nil { 1269 return m.SubscriptionID 1270 } 1271 return "" 1272 } 1273 1274 type GetSubscriptionResponse struct { 1275 Subscription Subscription `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription"` 1276 } 1277 1278 func (m *GetSubscriptionResponse) Reset() { *m = GetSubscriptionResponse{} } 1279 func (m *GetSubscriptionResponse) String() string { return proto.CompactTextString(m) } 1280 func (*GetSubscriptionResponse) ProtoMessage() {} 1281 func (*GetSubscriptionResponse) Descriptor() ([]byte, []int) { 1282 return fileDescriptor_dcfc9e59554ac999, []int{18} 1283 } 1284 func (m *GetSubscriptionResponse) XXX_Unmarshal(b []byte) error { 1285 return m.Unmarshal(b) 1286 } 1287 func (m *GetSubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1288 if deterministic { 1289 return xxx_messageInfo_GetSubscriptionResponse.Marshal(b, m, deterministic) 1290 } else { 1291 b = b[:cap(b)] 1292 n, err := m.MarshalToSizedBuffer(b) 1293 if err != nil { 1294 return nil, err 1295 } 1296 return b[:n], nil 1297 } 1298 } 1299 func (m *GetSubscriptionResponse) XXX_Merge(src proto.Message) { 1300 xxx_messageInfo_GetSubscriptionResponse.Merge(m, src) 1301 } 1302 func (m *GetSubscriptionResponse) XXX_Size() int { 1303 return m.Size() 1304 } 1305 func (m *GetSubscriptionResponse) XXX_DiscardUnknown() { 1306 xxx_messageInfo_GetSubscriptionResponse.DiscardUnknown(m) 1307 } 1308 1309 var xxx_messageInfo_GetSubscriptionResponse proto.InternalMessageInfo 1310 1311 func (m *GetSubscriptionResponse) GetSubscription() Subscription { 1312 if m != nil { 1313 return m.Subscription 1314 } 1315 return Subscription{} 1316 } 1317 1318 type ListSubscriptionsRequest struct { 1319 } 1320 1321 func (m *ListSubscriptionsRequest) Reset() { *m = ListSubscriptionsRequest{} } 1322 func (m *ListSubscriptionsRequest) String() string { return proto.CompactTextString(m) } 1323 func (*ListSubscriptionsRequest) ProtoMessage() {} 1324 func (*ListSubscriptionsRequest) Descriptor() ([]byte, []int) { 1325 return fileDescriptor_dcfc9e59554ac999, []int{19} 1326 } 1327 func (m *ListSubscriptionsRequest) XXX_Unmarshal(b []byte) error { 1328 return m.Unmarshal(b) 1329 } 1330 func (m *ListSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1331 if deterministic { 1332 return xxx_messageInfo_ListSubscriptionsRequest.Marshal(b, m, deterministic) 1333 } else { 1334 b = b[:cap(b)] 1335 n, err := m.MarshalToSizedBuffer(b) 1336 if err != nil { 1337 return nil, err 1338 } 1339 return b[:n], nil 1340 } 1341 } 1342 func (m *ListSubscriptionsRequest) XXX_Merge(src proto.Message) { 1343 xxx_messageInfo_ListSubscriptionsRequest.Merge(m, src) 1344 } 1345 func (m *ListSubscriptionsRequest) XXX_Size() int { 1346 return m.Size() 1347 } 1348 func (m *ListSubscriptionsRequest) XXX_DiscardUnknown() { 1349 xxx_messageInfo_ListSubscriptionsRequest.DiscardUnknown(m) 1350 } 1351 1352 var xxx_messageInfo_ListSubscriptionsRequest proto.InternalMessageInfo 1353 1354 type ListSubscriptionsResponse struct { 1355 Subscriptions []Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions"` 1356 } 1357 1358 func (m *ListSubscriptionsResponse) Reset() { *m = ListSubscriptionsResponse{} } 1359 func (m *ListSubscriptionsResponse) String() string { return proto.CompactTextString(m) } 1360 func (*ListSubscriptionsResponse) ProtoMessage() {} 1361 func (*ListSubscriptionsResponse) Descriptor() ([]byte, []int) { 1362 return fileDescriptor_dcfc9e59554ac999, []int{20} 1363 } 1364 func (m *ListSubscriptionsResponse) XXX_Unmarshal(b []byte) error { 1365 return m.Unmarshal(b) 1366 } 1367 func (m *ListSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1368 if deterministic { 1369 return xxx_messageInfo_ListSubscriptionsResponse.Marshal(b, m, deterministic) 1370 } else { 1371 b = b[:cap(b)] 1372 n, err := m.MarshalToSizedBuffer(b) 1373 if err != nil { 1374 return nil, err 1375 } 1376 return b[:n], nil 1377 } 1378 } 1379 func (m *ListSubscriptionsResponse) XXX_Merge(src proto.Message) { 1380 xxx_messageInfo_ListSubscriptionsResponse.Merge(m, src) 1381 } 1382 func (m *ListSubscriptionsResponse) XXX_Size() int { 1383 return m.Size() 1384 } 1385 func (m *ListSubscriptionsResponse) XXX_DiscardUnknown() { 1386 xxx_messageInfo_ListSubscriptionsResponse.DiscardUnknown(m) 1387 } 1388 1389 var xxx_messageInfo_ListSubscriptionsResponse proto.InternalMessageInfo 1390 1391 func (m *ListSubscriptionsResponse) GetSubscriptions() []Subscription { 1392 if m != nil { 1393 return m.Subscriptions 1394 } 1395 return nil 1396 } 1397 1398 type WatchSubscriptionsRequest struct { 1399 NoReplay bool `protobuf:"varint,1,opt,name=no_replay,json=noReplay,proto3" json:"no_replay,omitempty"` 1400 } 1401 1402 func (m *WatchSubscriptionsRequest) Reset() { *m = WatchSubscriptionsRequest{} } 1403 func (m *WatchSubscriptionsRequest) String() string { return proto.CompactTextString(m) } 1404 func (*WatchSubscriptionsRequest) ProtoMessage() {} 1405 func (*WatchSubscriptionsRequest) Descriptor() ([]byte, []int) { 1406 return fileDescriptor_dcfc9e59554ac999, []int{21} 1407 } 1408 func (m *WatchSubscriptionsRequest) XXX_Unmarshal(b []byte) error { 1409 return m.Unmarshal(b) 1410 } 1411 func (m *WatchSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1412 if deterministic { 1413 return xxx_messageInfo_WatchSubscriptionsRequest.Marshal(b, m, deterministic) 1414 } else { 1415 b = b[:cap(b)] 1416 n, err := m.MarshalToSizedBuffer(b) 1417 if err != nil { 1418 return nil, err 1419 } 1420 return b[:n], nil 1421 } 1422 } 1423 func (m *WatchSubscriptionsRequest) XXX_Merge(src proto.Message) { 1424 xxx_messageInfo_WatchSubscriptionsRequest.Merge(m, src) 1425 } 1426 func (m *WatchSubscriptionsRequest) XXX_Size() int { 1427 return m.Size() 1428 } 1429 func (m *WatchSubscriptionsRequest) XXX_DiscardUnknown() { 1430 xxx_messageInfo_WatchSubscriptionsRequest.DiscardUnknown(m) 1431 } 1432 1433 var xxx_messageInfo_WatchSubscriptionsRequest proto.InternalMessageInfo 1434 1435 func (m *WatchSubscriptionsRequest) GetNoReplay() bool { 1436 if m != nil { 1437 return m.NoReplay 1438 } 1439 return false 1440 } 1441 1442 type WatchSubscriptionsResponse struct { 1443 Event SubscriptionEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event"` 1444 } 1445 1446 func (m *WatchSubscriptionsResponse) Reset() { *m = WatchSubscriptionsResponse{} } 1447 func (m *WatchSubscriptionsResponse) String() string { return proto.CompactTextString(m) } 1448 func (*WatchSubscriptionsResponse) ProtoMessage() {} 1449 func (*WatchSubscriptionsResponse) Descriptor() ([]byte, []int) { 1450 return fileDescriptor_dcfc9e59554ac999, []int{22} 1451 } 1452 func (m *WatchSubscriptionsResponse) XXX_Unmarshal(b []byte) error { 1453 return m.Unmarshal(b) 1454 } 1455 func (m *WatchSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1456 if deterministic { 1457 return xxx_messageInfo_WatchSubscriptionsResponse.Marshal(b, m, deterministic) 1458 } else { 1459 b = b[:cap(b)] 1460 n, err := m.MarshalToSizedBuffer(b) 1461 if err != nil { 1462 return nil, err 1463 } 1464 return b[:n], nil 1465 } 1466 } 1467 func (m *WatchSubscriptionsResponse) XXX_Merge(src proto.Message) { 1468 xxx_messageInfo_WatchSubscriptionsResponse.Merge(m, src) 1469 } 1470 func (m *WatchSubscriptionsResponse) XXX_Size() int { 1471 return m.Size() 1472 } 1473 func (m *WatchSubscriptionsResponse) XXX_DiscardUnknown() { 1474 xxx_messageInfo_WatchSubscriptionsResponse.DiscardUnknown(m) 1475 } 1476 1477 var xxx_messageInfo_WatchSubscriptionsResponse proto.InternalMessageInfo 1478 1479 func (m *WatchSubscriptionsResponse) GetEvent() SubscriptionEvent { 1480 if m != nil { 1481 return m.Event 1482 } 1483 return SubscriptionEvent{} 1484 } 1485 1486 type SubscriptionEvent struct { 1487 Type SubscriptionEventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.e2t.e2.v1beta1.SubscriptionEventType" json:"type,omitempty"` 1488 Subscription Subscription `protobuf:"bytes,2,opt,name=subscription,proto3" json:"subscription"` 1489 } 1490 1491 func (m *SubscriptionEvent) Reset() { *m = SubscriptionEvent{} } 1492 func (m *SubscriptionEvent) String() string { return proto.CompactTextString(m) } 1493 func (*SubscriptionEvent) ProtoMessage() {} 1494 func (*SubscriptionEvent) Descriptor() ([]byte, []int) { 1495 return fileDescriptor_dcfc9e59554ac999, []int{23} 1496 } 1497 func (m *SubscriptionEvent) XXX_Unmarshal(b []byte) error { 1498 return m.Unmarshal(b) 1499 } 1500 func (m *SubscriptionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1501 if deterministic { 1502 return xxx_messageInfo_SubscriptionEvent.Marshal(b, m, deterministic) 1503 } else { 1504 b = b[:cap(b)] 1505 n, err := m.MarshalToSizedBuffer(b) 1506 if err != nil { 1507 return nil, err 1508 } 1509 return b[:n], nil 1510 } 1511 } 1512 func (m *SubscriptionEvent) XXX_Merge(src proto.Message) { 1513 xxx_messageInfo_SubscriptionEvent.Merge(m, src) 1514 } 1515 func (m *SubscriptionEvent) XXX_Size() int { 1516 return m.Size() 1517 } 1518 func (m *SubscriptionEvent) XXX_DiscardUnknown() { 1519 xxx_messageInfo_SubscriptionEvent.DiscardUnknown(m) 1520 } 1521 1522 var xxx_messageInfo_SubscriptionEvent proto.InternalMessageInfo 1523 1524 func (m *SubscriptionEvent) GetType() SubscriptionEventType { 1525 if m != nil { 1526 return m.Type 1527 } 1528 return SubscriptionEventType_SUBSCRIPTION_EVENT_UNKNOWN 1529 } 1530 1531 func (m *SubscriptionEvent) GetSubscription() Subscription { 1532 if m != nil { 1533 return m.Subscription 1534 } 1535 return Subscription{} 1536 } 1537 1538 // ChannelMeta contains metadata relating to a subscription channel 1539 type ChannelMeta struct { 1540 // app_id is an identifier for the application that created the channel shared across all instances of the application 1541 AppID AppID `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3,casttype=AppID" json:"app_id,omitempty"` 1542 // app_instance_id is an identifier unique to a single node within the application that created the channel 1543 AppInstanceID AppInstanceID `protobuf:"bytes,2,opt,name=app_instance_id,json=appInstanceId,proto3,casttype=AppInstanceID" json:"app_instance_id,omitempty"` 1544 // e2_node_id is the identifier for the E2 node to which the subscription is targeted 1545 E2NodeID E2NodeID `protobuf:"bytes,3,opt,name=e2_node_id,json=e2NodeId,proto3,casttype=E2NodeID" json:"e2_node_id,omitempty"` 1546 // transaction_id is a persistent identifier for the transaction 1547 TransactionID TransactionID `protobuf:"bytes,4,opt,name=transaction_id,json=transactionId,proto3,casttype=TransactionID" json:"transaction_id,omitempty"` 1548 // subscription_id is the identifier for the underlying subscription 1549 SubscriptionID SubscriptionID `protobuf:"bytes,5,opt,name=subscription_id,json=subscriptionId,proto3,casttype=SubscriptionID" json:"subscription_id,omitempty"` 1550 // service_model is the service model specification 1551 ServiceModel ServiceModel `protobuf:"bytes,6,opt,name=service_model,json=serviceModel,proto3" json:"service_model"` 1552 // encoding indicates the type of encoding used within the parent message 1553 Encoding Encoding `protobuf:"varint,7,opt,name=encoding,proto3,enum=onos.e2t.e2.v1beta1.Encoding" json:"encoding,omitempty"` 1554 Revision Revision `protobuf:"varint,8,opt,name=revision,proto3,casttype=Revision" json:"revision,omitempty"` 1555 Finalizers []string `protobuf:"bytes,9,rep,name=finalizers,proto3" json:"finalizers,omitempty"` 1556 } 1557 1558 func (m *ChannelMeta) Reset() { *m = ChannelMeta{} } 1559 func (m *ChannelMeta) String() string { return proto.CompactTextString(m) } 1560 func (*ChannelMeta) ProtoMessage() {} 1561 func (*ChannelMeta) Descriptor() ([]byte, []int) { 1562 return fileDescriptor_dcfc9e59554ac999, []int{24} 1563 } 1564 func (m *ChannelMeta) XXX_Unmarshal(b []byte) error { 1565 return m.Unmarshal(b) 1566 } 1567 func (m *ChannelMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1568 if deterministic { 1569 return xxx_messageInfo_ChannelMeta.Marshal(b, m, deterministic) 1570 } else { 1571 b = b[:cap(b)] 1572 n, err := m.MarshalToSizedBuffer(b) 1573 if err != nil { 1574 return nil, err 1575 } 1576 return b[:n], nil 1577 } 1578 } 1579 func (m *ChannelMeta) XXX_Merge(src proto.Message) { 1580 xxx_messageInfo_ChannelMeta.Merge(m, src) 1581 } 1582 func (m *ChannelMeta) XXX_Size() int { 1583 return m.Size() 1584 } 1585 func (m *ChannelMeta) XXX_DiscardUnknown() { 1586 xxx_messageInfo_ChannelMeta.DiscardUnknown(m) 1587 } 1588 1589 var xxx_messageInfo_ChannelMeta proto.InternalMessageInfo 1590 1591 func (m *ChannelMeta) GetAppID() AppID { 1592 if m != nil { 1593 return m.AppID 1594 } 1595 return "" 1596 } 1597 1598 func (m *ChannelMeta) GetAppInstanceID() AppInstanceID { 1599 if m != nil { 1600 return m.AppInstanceID 1601 } 1602 return "" 1603 } 1604 1605 func (m *ChannelMeta) GetE2NodeID() E2NodeID { 1606 if m != nil { 1607 return m.E2NodeID 1608 } 1609 return "" 1610 } 1611 1612 func (m *ChannelMeta) GetTransactionID() TransactionID { 1613 if m != nil { 1614 return m.TransactionID 1615 } 1616 return "" 1617 } 1618 1619 func (m *ChannelMeta) GetSubscriptionID() SubscriptionID { 1620 if m != nil { 1621 return m.SubscriptionID 1622 } 1623 return "" 1624 } 1625 1626 func (m *ChannelMeta) GetServiceModel() ServiceModel { 1627 if m != nil { 1628 return m.ServiceModel 1629 } 1630 return ServiceModel{} 1631 } 1632 1633 func (m *ChannelMeta) GetEncoding() Encoding { 1634 if m != nil { 1635 return m.Encoding 1636 } 1637 return Encoding_PROTO 1638 } 1639 1640 func (m *ChannelMeta) GetRevision() Revision { 1641 if m != nil { 1642 return m.Revision 1643 } 1644 return 0 1645 } 1646 1647 func (m *ChannelMeta) GetFinalizers() []string { 1648 if m != nil { 1649 return m.Finalizers 1650 } 1651 return nil 1652 } 1653 1654 type Channel struct { 1655 ID ChannelID `protobuf:"bytes,1,opt,name=id,proto3,casttype=ChannelID" json:"id,omitempty"` 1656 ChannelMeta `protobuf:"bytes,2,opt,name=meta,proto3,embedded=meta" json:"meta"` 1657 Spec ChannelSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec"` 1658 Status ChannelStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status"` 1659 } 1660 1661 func (m *Channel) Reset() { *m = Channel{} } 1662 func (m *Channel) String() string { return proto.CompactTextString(m) } 1663 func (*Channel) ProtoMessage() {} 1664 func (*Channel) Descriptor() ([]byte, []int) { 1665 return fileDescriptor_dcfc9e59554ac999, []int{25} 1666 } 1667 func (m *Channel) XXX_Unmarshal(b []byte) error { 1668 return m.Unmarshal(b) 1669 } 1670 func (m *Channel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1671 if deterministic { 1672 return xxx_messageInfo_Channel.Marshal(b, m, deterministic) 1673 } else { 1674 b = b[:cap(b)] 1675 n, err := m.MarshalToSizedBuffer(b) 1676 if err != nil { 1677 return nil, err 1678 } 1679 return b[:n], nil 1680 } 1681 } 1682 func (m *Channel) XXX_Merge(src proto.Message) { 1683 xxx_messageInfo_Channel.Merge(m, src) 1684 } 1685 func (m *Channel) XXX_Size() int { 1686 return m.Size() 1687 } 1688 func (m *Channel) XXX_DiscardUnknown() { 1689 xxx_messageInfo_Channel.DiscardUnknown(m) 1690 } 1691 1692 var xxx_messageInfo_Channel proto.InternalMessageInfo 1693 1694 func (m *Channel) GetID() ChannelID { 1695 if m != nil { 1696 return m.ID 1697 } 1698 return "" 1699 } 1700 1701 func (m *Channel) GetSpec() ChannelSpec { 1702 if m != nil { 1703 return m.Spec 1704 } 1705 return ChannelSpec{} 1706 } 1707 1708 func (m *Channel) GetStatus() ChannelStatus { 1709 if m != nil { 1710 return m.Status 1711 } 1712 return ChannelStatus{} 1713 } 1714 1715 type ChannelSpec struct { 1716 SubscriptionSpec `protobuf:"bytes,1,opt,name=subscription,proto3,embedded=subscription" json:"subscription"` 1717 TransactionTimeout *time.Duration `protobuf:"bytes,2,opt,name=transaction_timeout,json=transactionTimeout,proto3,stdduration" json:"transaction_timeout,omitempty"` 1718 } 1719 1720 func (m *ChannelSpec) Reset() { *m = ChannelSpec{} } 1721 func (m *ChannelSpec) String() string { return proto.CompactTextString(m) } 1722 func (*ChannelSpec) ProtoMessage() {} 1723 func (*ChannelSpec) Descriptor() ([]byte, []int) { 1724 return fileDescriptor_dcfc9e59554ac999, []int{26} 1725 } 1726 func (m *ChannelSpec) XXX_Unmarshal(b []byte) error { 1727 return m.Unmarshal(b) 1728 } 1729 func (m *ChannelSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1730 if deterministic { 1731 return xxx_messageInfo_ChannelSpec.Marshal(b, m, deterministic) 1732 } else { 1733 b = b[:cap(b)] 1734 n, err := m.MarshalToSizedBuffer(b) 1735 if err != nil { 1736 return nil, err 1737 } 1738 return b[:n], nil 1739 } 1740 } 1741 func (m *ChannelSpec) XXX_Merge(src proto.Message) { 1742 xxx_messageInfo_ChannelSpec.Merge(m, src) 1743 } 1744 func (m *ChannelSpec) XXX_Size() int { 1745 return m.Size() 1746 } 1747 func (m *ChannelSpec) XXX_DiscardUnknown() { 1748 xxx_messageInfo_ChannelSpec.DiscardUnknown(m) 1749 } 1750 1751 var xxx_messageInfo_ChannelSpec proto.InternalMessageInfo 1752 1753 func (m *ChannelSpec) GetTransactionTimeout() *time.Duration { 1754 if m != nil { 1755 return m.TransactionTimeout 1756 } 1757 return nil 1758 } 1759 1760 type ChannelStatus struct { 1761 Phase ChannelPhase `protobuf:"varint,1,opt,name=phase,proto3,enum=onos.e2t.e2.v1beta1.ChannelPhase" json:"phase,omitempty"` 1762 State ChannelState `protobuf:"varint,2,opt,name=state,proto3,enum=onos.e2t.e2.v1beta1.ChannelState" json:"state,omitempty"` 1763 Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` 1764 Timestamp *time.Time `protobuf:"bytes,4,opt,name=timestamp,proto3,stdtime" json:"timestamp,omitempty"` 1765 Term TermID `protobuf:"varint,5,opt,name=term,proto3,casttype=TermID" json:"term,omitempty"` 1766 Master MasterID `protobuf:"bytes,6,opt,name=master,proto3,casttype=MasterID" json:"master,omitempty"` 1767 } 1768 1769 func (m *ChannelStatus) Reset() { *m = ChannelStatus{} } 1770 func (m *ChannelStatus) String() string { return proto.CompactTextString(m) } 1771 func (*ChannelStatus) ProtoMessage() {} 1772 func (*ChannelStatus) Descriptor() ([]byte, []int) { 1773 return fileDescriptor_dcfc9e59554ac999, []int{27} 1774 } 1775 func (m *ChannelStatus) XXX_Unmarshal(b []byte) error { 1776 return m.Unmarshal(b) 1777 } 1778 func (m *ChannelStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1779 if deterministic { 1780 return xxx_messageInfo_ChannelStatus.Marshal(b, m, deterministic) 1781 } else { 1782 b = b[:cap(b)] 1783 n, err := m.MarshalToSizedBuffer(b) 1784 if err != nil { 1785 return nil, err 1786 } 1787 return b[:n], nil 1788 } 1789 } 1790 func (m *ChannelStatus) XXX_Merge(src proto.Message) { 1791 xxx_messageInfo_ChannelStatus.Merge(m, src) 1792 } 1793 func (m *ChannelStatus) XXX_Size() int { 1794 return m.Size() 1795 } 1796 func (m *ChannelStatus) XXX_DiscardUnknown() { 1797 xxx_messageInfo_ChannelStatus.DiscardUnknown(m) 1798 } 1799 1800 var xxx_messageInfo_ChannelStatus proto.InternalMessageInfo 1801 1802 func (m *ChannelStatus) GetPhase() ChannelPhase { 1803 if m != nil { 1804 return m.Phase 1805 } 1806 return ChannelPhase_CHANNEL_CLOSED 1807 } 1808 1809 func (m *ChannelStatus) GetState() ChannelState { 1810 if m != nil { 1811 return m.State 1812 } 1813 return ChannelState_CHANNEL_PENDING 1814 } 1815 1816 func (m *ChannelStatus) GetError() *Error { 1817 if m != nil { 1818 return m.Error 1819 } 1820 return nil 1821 } 1822 1823 func (m *ChannelStatus) GetTimestamp() *time.Time { 1824 if m != nil { 1825 return m.Timestamp 1826 } 1827 return nil 1828 } 1829 1830 func (m *ChannelStatus) GetTerm() TermID { 1831 if m != nil { 1832 return m.Term 1833 } 1834 return 0 1835 } 1836 1837 func (m *ChannelStatus) GetMaster() MasterID { 1838 if m != nil { 1839 return m.Master 1840 } 1841 return "" 1842 } 1843 1844 type SubscriptionMeta struct { 1845 E2NodeID E2NodeID `protobuf:"bytes,1,opt,name=e2_node_id,json=e2NodeId,proto3,casttype=E2NodeID" json:"e2_node_id,omitempty"` 1846 ServiceModel ServiceModel `protobuf:"bytes,2,opt,name=service_model,json=serviceModel,proto3" json:"service_model"` 1847 Encoding Encoding `protobuf:"varint,3,opt,name=encoding,proto3,enum=onos.e2t.e2.v1beta1.Encoding" json:"encoding,omitempty"` 1848 Revision Revision `protobuf:"varint,4,opt,name=revision,proto3,casttype=Revision" json:"revision,omitempty"` 1849 Finalizers []string `protobuf:"bytes,5,rep,name=finalizers,proto3" json:"finalizers,omitempty"` 1850 } 1851 1852 func (m *SubscriptionMeta) Reset() { *m = SubscriptionMeta{} } 1853 func (m *SubscriptionMeta) String() string { return proto.CompactTextString(m) } 1854 func (*SubscriptionMeta) ProtoMessage() {} 1855 func (*SubscriptionMeta) Descriptor() ([]byte, []int) { 1856 return fileDescriptor_dcfc9e59554ac999, []int{28} 1857 } 1858 func (m *SubscriptionMeta) XXX_Unmarshal(b []byte) error { 1859 return m.Unmarshal(b) 1860 } 1861 func (m *SubscriptionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1862 if deterministic { 1863 return xxx_messageInfo_SubscriptionMeta.Marshal(b, m, deterministic) 1864 } else { 1865 b = b[:cap(b)] 1866 n, err := m.MarshalToSizedBuffer(b) 1867 if err != nil { 1868 return nil, err 1869 } 1870 return b[:n], nil 1871 } 1872 } 1873 func (m *SubscriptionMeta) XXX_Merge(src proto.Message) { 1874 xxx_messageInfo_SubscriptionMeta.Merge(m, src) 1875 } 1876 func (m *SubscriptionMeta) XXX_Size() int { 1877 return m.Size() 1878 } 1879 func (m *SubscriptionMeta) XXX_DiscardUnknown() { 1880 xxx_messageInfo_SubscriptionMeta.DiscardUnknown(m) 1881 } 1882 1883 var xxx_messageInfo_SubscriptionMeta proto.InternalMessageInfo 1884 1885 func (m *SubscriptionMeta) GetE2NodeID() E2NodeID { 1886 if m != nil { 1887 return m.E2NodeID 1888 } 1889 return "" 1890 } 1891 1892 func (m *SubscriptionMeta) GetServiceModel() ServiceModel { 1893 if m != nil { 1894 return m.ServiceModel 1895 } 1896 return ServiceModel{} 1897 } 1898 1899 func (m *SubscriptionMeta) GetEncoding() Encoding { 1900 if m != nil { 1901 return m.Encoding 1902 } 1903 return Encoding_PROTO 1904 } 1905 1906 func (m *SubscriptionMeta) GetRevision() Revision { 1907 if m != nil { 1908 return m.Revision 1909 } 1910 return 0 1911 } 1912 1913 func (m *SubscriptionMeta) GetFinalizers() []string { 1914 if m != nil { 1915 return m.Finalizers 1916 } 1917 return nil 1918 } 1919 1920 type Subscription struct { 1921 ID SubscriptionID `protobuf:"bytes,1,opt,name=id,proto3,casttype=SubscriptionID" json:"id,omitempty"` 1922 SubscriptionMeta `protobuf:"bytes,2,opt,name=meta,proto3,embedded=meta" json:"meta"` 1923 Spec SubscriptionSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec"` 1924 Status SubscriptionStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status"` 1925 } 1926 1927 func (m *Subscription) Reset() { *m = Subscription{} } 1928 func (m *Subscription) String() string { return proto.CompactTextString(m) } 1929 func (*Subscription) ProtoMessage() {} 1930 func (*Subscription) Descriptor() ([]byte, []int) { 1931 return fileDescriptor_dcfc9e59554ac999, []int{29} 1932 } 1933 func (m *Subscription) XXX_Unmarshal(b []byte) error { 1934 return m.Unmarshal(b) 1935 } 1936 func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1937 if deterministic { 1938 return xxx_messageInfo_Subscription.Marshal(b, m, deterministic) 1939 } else { 1940 b = b[:cap(b)] 1941 n, err := m.MarshalToSizedBuffer(b) 1942 if err != nil { 1943 return nil, err 1944 } 1945 return b[:n], nil 1946 } 1947 } 1948 func (m *Subscription) XXX_Merge(src proto.Message) { 1949 xxx_messageInfo_Subscription.Merge(m, src) 1950 } 1951 func (m *Subscription) XXX_Size() int { 1952 return m.Size() 1953 } 1954 func (m *Subscription) XXX_DiscardUnknown() { 1955 xxx_messageInfo_Subscription.DiscardUnknown(m) 1956 } 1957 1958 var xxx_messageInfo_Subscription proto.InternalMessageInfo 1959 1960 func (m *Subscription) GetID() SubscriptionID { 1961 if m != nil { 1962 return m.ID 1963 } 1964 return "" 1965 } 1966 1967 func (m *Subscription) GetSpec() SubscriptionSpec { 1968 if m != nil { 1969 return m.Spec 1970 } 1971 return SubscriptionSpec{} 1972 } 1973 1974 func (m *Subscription) GetStatus() SubscriptionStatus { 1975 if m != nil { 1976 return m.Status 1977 } 1978 return SubscriptionStatus{} 1979 } 1980 1981 type SubscriptionStatus struct { 1982 Phase SubscriptionPhase `protobuf:"varint,1,opt,name=phase,proto3,enum=onos.e2t.e2.v1beta1.SubscriptionPhase" json:"phase,omitempty"` 1983 State SubscriptionState `protobuf:"varint,2,opt,name=state,proto3,enum=onos.e2t.e2.v1beta1.SubscriptionState" json:"state,omitempty"` 1984 Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` 1985 Channels []ChannelID `protobuf:"bytes,4,rep,name=channels,proto3,casttype=ChannelID" json:"channels,omitempty"` 1986 Term TermID `protobuf:"varint,5,opt,name=term,proto3,casttype=TermID" json:"term,omitempty"` 1987 Master MasterID `protobuf:"bytes,6,opt,name=master,proto3,casttype=MasterID" json:"master,omitempty"` 1988 } 1989 1990 func (m *SubscriptionStatus) Reset() { *m = SubscriptionStatus{} } 1991 func (m *SubscriptionStatus) String() string { return proto.CompactTextString(m) } 1992 func (*SubscriptionStatus) ProtoMessage() {} 1993 func (*SubscriptionStatus) Descriptor() ([]byte, []int) { 1994 return fileDescriptor_dcfc9e59554ac999, []int{30} 1995 } 1996 func (m *SubscriptionStatus) XXX_Unmarshal(b []byte) error { 1997 return m.Unmarshal(b) 1998 } 1999 func (m *SubscriptionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2000 if deterministic { 2001 return xxx_messageInfo_SubscriptionStatus.Marshal(b, m, deterministic) 2002 } else { 2003 b = b[:cap(b)] 2004 n, err := m.MarshalToSizedBuffer(b) 2005 if err != nil { 2006 return nil, err 2007 } 2008 return b[:n], nil 2009 } 2010 } 2011 func (m *SubscriptionStatus) XXX_Merge(src proto.Message) { 2012 xxx_messageInfo_SubscriptionStatus.Merge(m, src) 2013 } 2014 func (m *SubscriptionStatus) XXX_Size() int { 2015 return m.Size() 2016 } 2017 func (m *SubscriptionStatus) XXX_DiscardUnknown() { 2018 xxx_messageInfo_SubscriptionStatus.DiscardUnknown(m) 2019 } 2020 2021 var xxx_messageInfo_SubscriptionStatus proto.InternalMessageInfo 2022 2023 func (m *SubscriptionStatus) GetPhase() SubscriptionPhase { 2024 if m != nil { 2025 return m.Phase 2026 } 2027 return SubscriptionPhase_SUBSCRIPTION_CLOSED 2028 } 2029 2030 func (m *SubscriptionStatus) GetState() SubscriptionState { 2031 if m != nil { 2032 return m.State 2033 } 2034 return SubscriptionState_SUBSCRIPTION_PENDING 2035 } 2036 2037 func (m *SubscriptionStatus) GetError() *Error { 2038 if m != nil { 2039 return m.Error 2040 } 2041 return nil 2042 } 2043 2044 func (m *SubscriptionStatus) GetChannels() []ChannelID { 2045 if m != nil { 2046 return m.Channels 2047 } 2048 return nil 2049 } 2050 2051 func (m *SubscriptionStatus) GetTerm() TermID { 2052 if m != nil { 2053 return m.Term 2054 } 2055 return 0 2056 } 2057 2058 func (m *SubscriptionStatus) GetMaster() MasterID { 2059 if m != nil { 2060 return m.Master 2061 } 2062 return "" 2063 } 2064 2065 func init() { 2066 proto.RegisterEnum("onos.e2t.e2.v1beta1.ActionType", ActionType_name, ActionType_value) 2067 golang_proto.RegisterEnum("onos.e2t.e2.v1beta1.ActionType", ActionType_name, ActionType_value) 2068 proto.RegisterEnum("onos.e2t.e2.v1beta1.SubsequentActionType", SubsequentActionType_name, SubsequentActionType_value) 2069 golang_proto.RegisterEnum("onos.e2t.e2.v1beta1.SubsequentActionType", SubsequentActionType_name, SubsequentActionType_value) 2070 proto.RegisterEnum("onos.e2t.e2.v1beta1.TimeToWait", TimeToWait_name, TimeToWait_value) 2071 golang_proto.RegisterEnum("onos.e2t.e2.v1beta1.TimeToWait", TimeToWait_name, TimeToWait_value) 2072 proto.RegisterEnum("onos.e2t.e2.v1beta1.ChannelEventType", ChannelEventType_name, ChannelEventType_value) 2073 golang_proto.RegisterEnum("onos.e2t.e2.v1beta1.ChannelEventType", ChannelEventType_name, ChannelEventType_value) 2074 proto.RegisterEnum("onos.e2t.e2.v1beta1.SubscriptionEventType", SubscriptionEventType_name, SubscriptionEventType_value) 2075 golang_proto.RegisterEnum("onos.e2t.e2.v1beta1.SubscriptionEventType", SubscriptionEventType_name, SubscriptionEventType_value) 2076 proto.RegisterEnum("onos.e2t.e2.v1beta1.ChannelPhase", ChannelPhase_name, ChannelPhase_value) 2077 golang_proto.RegisterEnum("onos.e2t.e2.v1beta1.ChannelPhase", ChannelPhase_name, ChannelPhase_value) 2078 proto.RegisterEnum("onos.e2t.e2.v1beta1.ChannelState", ChannelState_name, ChannelState_value) 2079 golang_proto.RegisterEnum("onos.e2t.e2.v1beta1.ChannelState", ChannelState_name, ChannelState_value) 2080 proto.RegisterEnum("onos.e2t.e2.v1beta1.SubscriptionPhase", SubscriptionPhase_name, SubscriptionPhase_value) 2081 golang_proto.RegisterEnum("onos.e2t.e2.v1beta1.SubscriptionPhase", SubscriptionPhase_name, SubscriptionPhase_value) 2082 proto.RegisterEnum("onos.e2t.e2.v1beta1.SubscriptionState", SubscriptionState_name, SubscriptionState_value) 2083 golang_proto.RegisterEnum("onos.e2t.e2.v1beta1.SubscriptionState", SubscriptionState_name, SubscriptionState_value) 2084 proto.RegisterType((*SubscribeRequest)(nil), "onos.e2t.e2.v1beta1.SubscribeRequest") 2085 golang_proto.RegisterType((*SubscribeRequest)(nil), "onos.e2t.e2.v1beta1.SubscribeRequest") 2086 proto.RegisterType((*SubscribeResponse)(nil), "onos.e2t.e2.v1beta1.SubscribeResponse") 2087 golang_proto.RegisterType((*SubscribeResponse)(nil), "onos.e2t.e2.v1beta1.SubscribeResponse") 2088 proto.RegisterType((*UnsubscribeRequest)(nil), "onos.e2t.e2.v1beta1.UnsubscribeRequest") 2089 golang_proto.RegisterType((*UnsubscribeRequest)(nil), "onos.e2t.e2.v1beta1.UnsubscribeRequest") 2090 proto.RegisterType((*UnsubscribeResponse)(nil), "onos.e2t.e2.v1beta1.UnsubscribeResponse") 2091 golang_proto.RegisterType((*UnsubscribeResponse)(nil), "onos.e2t.e2.v1beta1.UnsubscribeResponse") 2092 proto.RegisterType((*SubscriptionSpec)(nil), "onos.e2t.e2.v1beta1.SubscriptionSpec") 2093 golang_proto.RegisterType((*SubscriptionSpec)(nil), "onos.e2t.e2.v1beta1.SubscriptionSpec") 2094 proto.RegisterType((*EventTrigger)(nil), "onos.e2t.e2.v1beta1.EventTrigger") 2095 golang_proto.RegisterType((*EventTrigger)(nil), "onos.e2t.e2.v1beta1.EventTrigger") 2096 proto.RegisterType((*Action)(nil), "onos.e2t.e2.v1beta1.Action") 2097 golang_proto.RegisterType((*Action)(nil), "onos.e2t.e2.v1beta1.Action") 2098 proto.RegisterType((*SubsequentAction)(nil), "onos.e2t.e2.v1beta1.SubsequentAction") 2099 golang_proto.RegisterType((*SubsequentAction)(nil), "onos.e2t.e2.v1beta1.SubsequentAction") 2100 proto.RegisterType((*Acknowledgement)(nil), "onos.e2t.e2.v1beta1.Acknowledgement") 2101 golang_proto.RegisterType((*Acknowledgement)(nil), "onos.e2t.e2.v1beta1.Acknowledgement") 2102 proto.RegisterType((*Indication)(nil), "onos.e2t.e2.v1beta1.Indication") 2103 golang_proto.RegisterType((*Indication)(nil), "onos.e2t.e2.v1beta1.Indication") 2104 proto.RegisterType((*GetChannelRequest)(nil), "onos.e2t.e2.v1beta1.GetChannelRequest") 2105 golang_proto.RegisterType((*GetChannelRequest)(nil), "onos.e2t.e2.v1beta1.GetChannelRequest") 2106 proto.RegisterType((*GetChannelResponse)(nil), "onos.e2t.e2.v1beta1.GetChannelResponse") 2107 golang_proto.RegisterType((*GetChannelResponse)(nil), "onos.e2t.e2.v1beta1.GetChannelResponse") 2108 proto.RegisterType((*ListChannelsRequest)(nil), "onos.e2t.e2.v1beta1.ListChannelsRequest") 2109 golang_proto.RegisterType((*ListChannelsRequest)(nil), "onos.e2t.e2.v1beta1.ListChannelsRequest") 2110 proto.RegisterType((*ListChannelsResponse)(nil), "onos.e2t.e2.v1beta1.ListChannelsResponse") 2111 golang_proto.RegisterType((*ListChannelsResponse)(nil), "onos.e2t.e2.v1beta1.ListChannelsResponse") 2112 proto.RegisterType((*WatchChannelsRequest)(nil), "onos.e2t.e2.v1beta1.WatchChannelsRequest") 2113 golang_proto.RegisterType((*WatchChannelsRequest)(nil), "onos.e2t.e2.v1beta1.WatchChannelsRequest") 2114 proto.RegisterType((*WatchChannelsResponse)(nil), "onos.e2t.e2.v1beta1.WatchChannelsResponse") 2115 golang_proto.RegisterType((*WatchChannelsResponse)(nil), "onos.e2t.e2.v1beta1.WatchChannelsResponse") 2116 proto.RegisterType((*ChannelEvent)(nil), "onos.e2t.e2.v1beta1.ChannelEvent") 2117 golang_proto.RegisterType((*ChannelEvent)(nil), "onos.e2t.e2.v1beta1.ChannelEvent") 2118 proto.RegisterType((*GetSubscriptionRequest)(nil), "onos.e2t.e2.v1beta1.GetSubscriptionRequest") 2119 golang_proto.RegisterType((*GetSubscriptionRequest)(nil), "onos.e2t.e2.v1beta1.GetSubscriptionRequest") 2120 proto.RegisterType((*GetSubscriptionResponse)(nil), "onos.e2t.e2.v1beta1.GetSubscriptionResponse") 2121 golang_proto.RegisterType((*GetSubscriptionResponse)(nil), "onos.e2t.e2.v1beta1.GetSubscriptionResponse") 2122 proto.RegisterType((*ListSubscriptionsRequest)(nil), "onos.e2t.e2.v1beta1.ListSubscriptionsRequest") 2123 golang_proto.RegisterType((*ListSubscriptionsRequest)(nil), "onos.e2t.e2.v1beta1.ListSubscriptionsRequest") 2124 proto.RegisterType((*ListSubscriptionsResponse)(nil), "onos.e2t.e2.v1beta1.ListSubscriptionsResponse") 2125 golang_proto.RegisterType((*ListSubscriptionsResponse)(nil), "onos.e2t.e2.v1beta1.ListSubscriptionsResponse") 2126 proto.RegisterType((*WatchSubscriptionsRequest)(nil), "onos.e2t.e2.v1beta1.WatchSubscriptionsRequest") 2127 golang_proto.RegisterType((*WatchSubscriptionsRequest)(nil), "onos.e2t.e2.v1beta1.WatchSubscriptionsRequest") 2128 proto.RegisterType((*WatchSubscriptionsResponse)(nil), "onos.e2t.e2.v1beta1.WatchSubscriptionsResponse") 2129 golang_proto.RegisterType((*WatchSubscriptionsResponse)(nil), "onos.e2t.e2.v1beta1.WatchSubscriptionsResponse") 2130 proto.RegisterType((*SubscriptionEvent)(nil), "onos.e2t.e2.v1beta1.SubscriptionEvent") 2131 golang_proto.RegisterType((*SubscriptionEvent)(nil), "onos.e2t.e2.v1beta1.SubscriptionEvent") 2132 proto.RegisterType((*ChannelMeta)(nil), "onos.e2t.e2.v1beta1.ChannelMeta") 2133 golang_proto.RegisterType((*ChannelMeta)(nil), "onos.e2t.e2.v1beta1.ChannelMeta") 2134 proto.RegisterType((*Channel)(nil), "onos.e2t.e2.v1beta1.Channel") 2135 golang_proto.RegisterType((*Channel)(nil), "onos.e2t.e2.v1beta1.Channel") 2136 proto.RegisterType((*ChannelSpec)(nil), "onos.e2t.e2.v1beta1.ChannelSpec") 2137 golang_proto.RegisterType((*ChannelSpec)(nil), "onos.e2t.e2.v1beta1.ChannelSpec") 2138 proto.RegisterType((*ChannelStatus)(nil), "onos.e2t.e2.v1beta1.ChannelStatus") 2139 golang_proto.RegisterType((*ChannelStatus)(nil), "onos.e2t.e2.v1beta1.ChannelStatus") 2140 proto.RegisterType((*SubscriptionMeta)(nil), "onos.e2t.e2.v1beta1.SubscriptionMeta") 2141 golang_proto.RegisterType((*SubscriptionMeta)(nil), "onos.e2t.e2.v1beta1.SubscriptionMeta") 2142 proto.RegisterType((*Subscription)(nil), "onos.e2t.e2.v1beta1.Subscription") 2143 golang_proto.RegisterType((*Subscription)(nil), "onos.e2t.e2.v1beta1.Subscription") 2144 proto.RegisterType((*SubscriptionStatus)(nil), "onos.e2t.e2.v1beta1.SubscriptionStatus") 2145 golang_proto.RegisterType((*SubscriptionStatus)(nil), "onos.e2t.e2.v1beta1.SubscriptionStatus") 2146 } 2147 2148 func init() { 2149 proto.RegisterFile("onos/e2t/e2/v1beta1/subscription.proto", fileDescriptor_dcfc9e59554ac999) 2150 } 2151 func init() { 2152 golang_proto.RegisterFile("onos/e2t/e2/v1beta1/subscription.proto", fileDescriptor_dcfc9e59554ac999) 2153 } 2154 2155 var fileDescriptor_dcfc9e59554ac999 = []byte{ 2156 // 2128 bytes of a gzipped FileDescriptorProto 2157 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcb, 0x73, 0x1b, 0x59, 2158 0xd5, 0x57, 0xeb, 0x65, 0xe9, 0x44, 0xb2, 0xdb, 0xd7, 0x76, 0x22, 0x2b, 0xf9, 0x24, 0x4f, 0x27, 2159 0xe3, 0x71, 0xfc, 0x81, 0xec, 0x28, 0x93, 0x61, 0x02, 0x99, 0x80, 0x1e, 0x4d, 0xd2, 0x8c, 0xf5, 2160 0xa0, 0x25, 0xc7, 0x15, 0x18, 0x4a, 0xd3, 0x96, 0x6e, 0x64, 0x31, 0x52, 0xb7, 0x50, 0xb7, 0x93, 2161 0x0a, 0x4b, 0xaa, 0x28, 0xb6, 0xb3, 0x60, 0xc1, 0x66, 0xaa, 0xa6, 0x0a, 0x36, 0x6c, 0x81, 0x0d, 2162 0x3b, 0xaa, 0x28, 0xaa, 0x66, 0x99, 0x0d, 0x55, 0xac, 0x0c, 0x38, 0x5b, 0xfe, 0x82, 0x59, 0x51, 2163 0xb7, 0xfb, 0x76, 0xeb, 0xf6, 0x43, 0xb2, 0xf2, 0x58, 0xb0, 0x93, 0xce, 0xf9, 0x9d, 0x7b, 0x7e, 2164 0xf7, 0xdc, 0x73, 0x4e, 0x9f, 0x7b, 0x61, 0x5b, 0x53, 0x35, 0x7d, 0x0f, 0x17, 0x8d, 0x3d, 0x5c, 2165 0xdc, 0x7b, 0x7a, 0xeb, 0x18, 0x1b, 0xca, 0xad, 0x3d, 0xfd, 0xf4, 0x58, 0xef, 0x4e, 0x06, 0x63, 2166 0x63, 0xa0, 0xa9, 0x85, 0xf1, 0x44, 0x33, 0x34, 0xb4, 0x46, 0x70, 0x05, 0x5c, 0x34, 0x0a, 0xb8, 2167 0x58, 0xa0, 0xb8, 0xec, 0x7a, 0x5f, 0xeb, 0x6b, 0xa6, 0x7e, 0x8f, 0xfc, 0xb2, 0xa0, 0xd9, 0x6b, 2168 0x41, 0x4b, 0xe2, 0x22, 0xd5, 0xe6, 0xfb, 0x9a, 0xd6, 0x1f, 0xe2, 0x3d, 0xf3, 0xdf, 0xf1, 0xe9, 2169 0x93, 0x3d, 0x63, 0x30, 0xc2, 0xba, 0xa1, 0x8c, 0xc6, 0x14, 0x90, 0xf3, 0x02, 0x7a, 0xa7, 0x13, 2170 0x65, 0xca, 0x44, 0xf8, 0x5b, 0x18, 0xf8, 0x96, 0x45, 0xf0, 0x18, 0xcb, 0xf8, 0x67, 0xa7, 0x58, 2171 0x37, 0x50, 0x05, 0x96, 0x4e, 0xb0, 0xd2, 0xc3, 0x13, 0x3d, 0xc3, 0x6d, 0x71, 0x3b, 0x97, 0x8a, 2172 0xd7, 0x0b, 0x01, 0x84, 0x0b, 0x14, 0xfe, 0xd0, 0x82, 0x96, 0xa3, 0x5f, 0x9d, 0xe5, 0x43, 0xb2, 2173 0x6d, 0x89, 0x24, 0x58, 0x36, 0x26, 0x8a, 0xaa, 0x2b, 0x5d, 0xe2, 0xae, 0x33, 0xe8, 0x65, 0xc2, 2174 0x5b, 0xdc, 0x4e, 0xb2, 0x2c, 0x9c, 0x9f, 0xe5, 0xd3, 0xed, 0xa9, 0x46, 0xaa, 0x7e, 0xed, 0x15, 2175 0xc8, 0x69, 0xc6, 0x52, 0xea, 0xa1, 0x06, 0xa4, 0xd8, 0x20, 0x66, 0x22, 0x26, 0xa9, 0x77, 0x03, 2176 0x49, 0xb5, 0x18, 0x60, 0x6b, 0x8c, 0xbb, 0x94, 0x96, 0x6b, 0x01, 0xd4, 0x84, 0x35, 0x96, 0x1b, 2177 0x09, 0x9a, 0x76, 0x6a, 0x64, 0xa2, 0xe6, 0xba, 0x9b, 0x05, 0x2b, 0x66, 0x05, 0x3b, 0x66, 0x85, 2178 0x2a, 0x8d, 0x59, 0x39, 0xfa, 0x9b, 0x7f, 0xe6, 0x39, 0x19, 0x31, 0xb6, 0x6d, 0xcb, 0x54, 0xf8, 2179 0x37, 0x07, 0xab, 0x4c, 0x1c, 0xf5, 0xb1, 0xa6, 0xea, 0x18, 0x55, 0xbd, 0x81, 0xbc, 0x31, 0x23, 2180 0x90, 0x16, 0x7e, 0x46, 0x24, 0x3f, 0x84, 0x88, 0xd2, 0xfd, 0xcc, 0x0c, 0xdf, 0xac, 0x15, 0x4a, 2181 0xdd, 0xcf, 0x54, 0xed, 0xd9, 0x10, 0xf7, 0xfa, 0x78, 0x84, 0x55, 0xe3, 0x61, 0x48, 0x26, 0x26, 2182 0xa8, 0x04, 0x30, 0x50, 0x7b, 0x83, 0xae, 0xc2, 0x84, 0x2d, 0x1f, 0xb8, 0x80, 0xe4, 0xc0, 0x1e, 2183 0x86, 0x64, 0xc6, 0xa8, 0x9c, 0x84, 0xa5, 0x11, 0xd6, 0x75, 0xa5, 0x8f, 0x85, 0xdf, 0x71, 0x80, 2184 0x0e, 0x55, 0xfd, 0x7f, 0x3c, 0x5b, 0x84, 0x1f, 0xc3, 0x9a, 0x8b, 0xe5, 0xdb, 0x3c, 0x0b, 0xe1, 2185 0x0b, 0xce, 0xa9, 0x17, 0x27, 0xc5, 0xd0, 0x01, 0xa4, 0xf1, 0x53, 0xac, 0x1a, 0x1d, 0x63, 0x32, 2186 0xe8, 0xf7, 0xf1, 0x84, 0x3a, 0x78, 0x27, 0xd0, 0x81, 0x48, 0x90, 0x6d, 0x0b, 0x68, 0x27, 0x27, 2187 0x66, 0x64, 0xe8, 0x3b, 0xb0, 0x64, 0xed, 0x45, 0xcf, 0x84, 0xb7, 0x22, 0x3b, 0x97, 0x8a, 0x57, 2188 0x67, 0x1c, 0xb9, 0x95, 0x92, 0x16, 0x3f, 0x6a, 0x21, 0xec, 0x40, 0x8a, 0x75, 0x80, 0x32, 0xb0, 2189 0x34, 0x56, 0x9e, 0x0f, 0x35, 0xa5, 0x67, 0x92, 0x4a, 0xc9, 0xf6, 0x5f, 0xe1, 0xaf, 0x1c, 0xc4, 2190 0xad, 0x35, 0xd0, 0x65, 0x08, 0x0f, 0x2c, 0x7d, 0xac, 0x1c, 0x3f, 0x3f, 0xcb, 0x87, 0xa5, 0xaa, 2191 0x1c, 0x1e, 0xf4, 0xd0, 0x6d, 0x88, 0x1a, 0xcf, 0xc7, 0xd8, 0x3c, 0x8a, 0xe5, 0x19, 0x89, 0x63, 2192 0x2d, 0xd1, 0x7e, 0x3e, 0xc6, 0xb2, 0x09, 0x66, 0x3d, 0x46, 0x5c, 0x1e, 0x91, 0x0c, 0xab, 0xe4, 2193 0x58, 0x48, 0x1e, 0xa8, 0x46, 0xc7, 0x62, 0x4c, 0x6b, 0x6e, 0x76, 0x2d, 0x5b, 0x68, 0xcb, 0x8b, 2194 0xcc, 0xeb, 0x1e, 0x89, 0xf0, 0x6b, 0x7a, 0x1e, 0xac, 0x10, 0x7d, 0x44, 0x79, 0x73, 0x26, 0xef, 2195 0x9b, 0x0b, 0xad, 0xcd, 0xec, 0xa0, 0x04, 0x29, 0xd2, 0x11, 0x3a, 0x86, 0xd6, 0x79, 0xa6, 0x0c, 2196 0x8c, 0xb9, 0xdb, 0x27, 0xf5, 0xdf, 0xd6, 0x8e, 0x94, 0x81, 0x21, 0x83, 0xe1, 0xfc, 0x16, 0x0e, 2197 0x60, 0xc5, 0x53, 0x92, 0xe8, 0x2e, 0x40, 0xf7, 0x44, 0x51, 0x55, 0x3c, 0xec, 0xd0, 0x60, 0x27, 2198 0xcb, 0xd9, 0xf3, 0xb3, 0x7c, 0xb2, 0x62, 0x49, 0xcd, 0xcc, 0x9e, 0xfe, 0x91, 0x93, 0x14, 0x2d, 2199 0xf5, 0x84, 0x27, 0x00, 0xd3, 0xfa, 0x44, 0x97, 0x21, 0x6e, 0x65, 0x23, 0x3d, 0x51, 0xfa, 0x8f, 2200 0x0d, 0x7c, 0xd8, 0x1d, 0xf8, 0x6d, 0x58, 0xe9, 0x2a, 0xc3, 0x61, 0x67, 0x3c, 0xd1, 0xba, 0x58, 2201 0xd7, 0x89, 0x7f, 0xeb, 0x68, 0xd2, 0x44, 0xdc, 0xb4, 0xa4, 0x52, 0x4f, 0xa8, 0xc3, 0xea, 0x03, 2202 0x6c, 0x50, 0x0a, 0x76, 0x79, 0xbf, 0x01, 0x6f, 0x19, 0x10, 0xbb, 0x1e, 0x2d, 0xc4, 0x7b, 0xb0, 2203 0x44, 0x21, 0xb4, 0x4e, 0xae, 0x05, 0x46, 0x96, 0x9a, 0xd9, 0x09, 0x4e, 0x4d, 0x84, 0x0d, 0x58, 2204 0x3b, 0x18, 0xe8, 0xf6, 0xa2, 0x3a, 0x65, 0x29, 0x3c, 0x82, 0x75, 0xb7, 0x98, 0x3a, 0xbb, 0x0f, 2205 0x09, 0x6a, 0x49, 0xca, 0x3e, 0xb2, 0xa0, 0x37, 0xc7, 0x46, 0xb8, 0x0d, 0xeb, 0x47, 0x8a, 0xd1, 2206 0x3d, 0xf1, 0xf8, 0x43, 0x57, 0x21, 0xa9, 0x6a, 0x9d, 0x09, 0x1e, 0x0f, 0x95, 0xe7, 0xe6, 0x36, 2207 0x12, 0x72, 0x42, 0xd5, 0x64, 0xf3, 0xbf, 0xf0, 0x08, 0x36, 0x3c, 0x46, 0x94, 0xcd, 0x47, 0x10, 2208 0x33, 0x4b, 0x7d, 0x6e, 0x83, 0xa0, 0x56, 0x66, 0x19, 0x53, 0x3e, 0x96, 0x95, 0xf0, 0x2b, 0x0e, 2209 0x52, 0xac, 0x16, 0xdd, 0x75, 0x25, 0xfa, 0xbb, 0x17, 0x2e, 0xc7, 0x24, 0x39, 0x73, 0x0a, 0xe1, 2210 0x57, 0x3f, 0x85, 0x3e, 0x5c, 0x7e, 0x80, 0x0d, 0xb6, 0x11, 0xda, 0x81, 0xa9, 0xc1, 0x0a, 0xfb, 2211 0xa9, 0x9d, 0xe6, 0xcc, 0x8d, 0xf3, 0xb3, 0xfc, 0x32, 0x6b, 0x61, 0x26, 0x8e, 0x47, 0x22, 0x2f, 2212 0xb3, 0xc6, 0x66, 0xea, 0x5f, 0xf1, 0x39, 0xa2, 0xc1, 0xfc, 0xd8, 0x33, 0x15, 0xcc, 0x8b, 0x29, 2213 0xbb, 0x40, 0xd0, 0x44, 0x20, 0x64, 0x21, 0x43, 0xf2, 0x87, 0xc5, 0x39, 0xb9, 0xf5, 0x53, 0xd8, 2214 0x0c, 0xd0, 0x51, 0x16, 0x35, 0x48, 0xb3, 0x0b, 0xd9, 0x59, 0xb6, 0x30, 0x0d, 0xb7, 0xb5, 0xf0, 2215 0x21, 0x6c, 0x9a, 0xa9, 0x13, 0x44, 0x64, 0x7e, 0xd2, 0x7d, 0x0a, 0xd9, 0x20, 0x4b, 0x4a, 0xb3, 2216 0xec, 0xce, 0xbc, 0xed, 0x0b, 0xe9, 0x05, 0xa4, 0xdf, 0x97, 0xd3, 0x19, 0x67, 0x0a, 0x41, 0xf7, 2217 0x5d, 0x39, 0xb8, 0xbb, 0xd8, 0xc2, 0x4c, 0x22, 0x7a, 0x8f, 0x31, 0xfc, 0x26, 0xc7, 0xf8, 0xfb, 2218 0x28, 0x5c, 0xa2, 0x29, 0x5b, 0xc3, 0x86, 0x82, 0x6e, 0x42, 0x5c, 0x19, 0x8f, 0xa7, 0x49, 0x88, 2219 0xce, 0xcf, 0xf2, 0xb1, 0xd2, 0x78, 0x6c, 0xe6, 0x9e, 0xf5, 0x43, 0x8e, 0x29, 0xe3, 0xb1, 0xd4, 2220 0x43, 0x3f, 0x80, 0x15, 0x13, 0xaa, 0xea, 0x86, 0xa2, 0x76, 0xb1, 0x67, 0x04, 0x21, 0x50, 0xaa, 2221 0xb1, 0x46, 0x10, 0x97, 0x40, 0x4e, 0x2b, 0xcc, 0xdf, 0x1e, 0xfa, 0x00, 0x00, 0x17, 0x3b, 0xaa, 2222 0xd6, 0xc3, 0x76, 0xaf, 0x4d, 0x96, 0x33, 0xe7, 0x67, 0xf9, 0x84, 0x58, 0xac, 0x6b, 0x3d, 0x6b, 2223 0x05, 0xe7, 0xb7, 0x9c, 0xc0, 0xd6, 0xaf, 0x5e, 0xc0, 0x14, 0x14, 0x7d, 0xdd, 0x99, 0x39, 0xa0, 2224 0x0e, 0x63, 0xaf, 0x5f, 0x87, 0x64, 0xc4, 0xd1, 0xf1, 0xe4, 0xe9, 0xa0, 0x8b, 0x3b, 0x23, 0xad, 2225 0x87, 0x87, 0x99, 0xf8, 0xbc, 0x63, 0xb2, 0x90, 0x35, 0x02, 0x74, 0x8e, 0x89, 0x91, 0xa1, 0xbb, 2226 0x90, 0xc0, 0x6a, 0x57, 0xeb, 0x0d, 0xd4, 0x7e, 0x66, 0xc9, 0xcc, 0x9b, 0xff, 0x0b, 0x9e, 0x95, 2227 0x28, 0x48, 0x76, 0xe0, 0x68, 0x07, 0x12, 0x13, 0xfc, 0x74, 0xa0, 0x93, 0x54, 0x49, 0x6c, 0x71, 2228 0x3b, 0xd1, 0x72, 0x8a, 0x04, 0x53, 0xa6, 0x32, 0xd9, 0xd1, 0xa2, 0x1c, 0xc0, 0x93, 0x81, 0xaa, 2229 0x0c, 0x07, 0x3f, 0x27, 0x33, 0x5f, 0x72, 0x2b, 0xb2, 0x93, 0x94, 0x19, 0x89, 0xf0, 0x1f, 0x0e, 2230 0x96, 0x68, 0xae, 0xa0, 0xeb, 0xce, 0x04, 0x94, 0x2c, 0xaf, 0x59, 0x13, 0x90, 0xfb, 0xab, 0x46, 2231 0xc6, 0xa1, 0xfb, 0x10, 0x1d, 0x61, 0x43, 0xa1, 0x19, 0xba, 0x35, 0xaf, 0x5f, 0x92, 0xe4, 0x2b, 2232 0x27, 0xc8, 0xce, 0x5f, 0x9c, 0xe5, 0x39, 0xd9, 0xb4, 0x43, 0xdf, 0x86, 0xa8, 0x3e, 0xc6, 0x5d, 2233 0x3a, 0x87, 0xcf, 0xb5, 0x67, 0x6e, 0x2e, 0xa6, 0x0d, 0xfa, 0x1e, 0xc4, 0x75, 0x43, 0x31, 0x4e, 2234 0x75, 0x3a, 0x30, 0x09, 0x73, 0xad, 0x4d, 0x24, 0xb5, 0xa7, 0x76, 0xc2, 0x9f, 0x38, 0xa7, 0x34, 2235 0xcc, 0xa1, 0xb5, 0x15, 0xd8, 0x3e, 0x17, 0xbc, 0x54, 0x4d, 0xb7, 0xb6, 0xd0, 0xc5, 0x2a, 0xfc, 2236 0xfa, 0x17, 0xab, 0x3f, 0x87, 0x21, 0xed, 0xda, 0x16, 0xfa, 0x16, 0xc4, 0xc6, 0x27, 0x8a, 0x6e, 2237 0x77, 0x9c, 0xb9, 0x1f, 0xd1, 0x26, 0x01, 0xca, 0x16, 0x9e, 0x18, 0x92, 0x58, 0xd8, 0xf3, 0xec, 2238 0x3b, 0x17, 0x85, 0x10, 0xcb, 0x16, 0x1e, 0xed, 0x43, 0x0c, 0x4f, 0x26, 0xda, 0x84, 0x9e, 0x5c, 2239 0x36, 0x38, 0x57, 0x09, 0x42, 0xb6, 0x80, 0xe8, 0x3e, 0x24, 0x9d, 0x9b, 0x38, 0x3d, 0xb1, 0xac, 2240 0x6f, 0xf7, 0x6d, 0x1b, 0x51, 0x8e, 0x7e, 0x4e, 0xb6, 0x3f, 0x35, 0x41, 0x39, 0x88, 0x1a, 0x78, 2241 0x32, 0x32, 0x4b, 0x36, 0x5a, 0x86, 0xaf, 0xcf, 0xf2, 0xf1, 0x36, 0x9e, 0x8c, 0xa4, 0xaa, 0x6c, 2242 0xca, 0xd1, 0x0d, 0x88, 0x8f, 0x14, 0xdd, 0xc0, 0x13, 0xb3, 0x0e, 0x93, 0x56, 0x0d, 0xd4, 0x4c, 2243 0x89, 0x54, 0x95, 0xa9, 0x4e, 0xf8, 0x22, 0xec, 0xbe, 0xac, 0x98, 0x2d, 0xd1, 0xdd, 0x9b, 0xb8, 2244 0x85, 0x7b, 0x93, 0xaf, 0x03, 0x84, 0xdf, 0x56, 0x07, 0x88, 0xbc, 0x7e, 0x07, 0x88, 0xbe, 0x42, 2245 0x07, 0x88, 0xf9, 0x3a, 0xc0, 0x2f, 0xc3, 0x90, 0x62, 0xe3, 0x83, 0x76, 0x98, 0x36, 0x90, 0x71, 2246 0xda, 0x80, 0xb7, 0x37, 0x92, 0x5e, 0x50, 0x71, 0xf5, 0x82, 0x8b, 0xab, 0x26, 0xb0, 0x21, 0x7c, 2247 0xd7, 0xd5, 0x10, 0x5e, 0xe9, 0x3d, 0xc3, 0xea, 0x0a, 0xa2, 0xa7, 0x2b, 0xbc, 0x77, 0xf1, 0x12, 2248 0x41, 0xad, 0xe1, 0x8f, 0x61, 0x40, 0x7e, 0x10, 0xba, 0xe7, 0x2e, 0xb4, 0x8b, 0x67, 0x06, 0x57, 2249 0xb5, 0xdd, 0x73, 0x57, 0xdb, 0xf6, 0x42, 0xd4, 0xde, 0xa0, 0xe4, 0x6e, 0x32, 0x93, 0x7e, 0x94, 2250 0x1c, 0x75, 0x39, 0xed, 0x6e, 0xe1, 0x8e, 0xfa, 0xed, 0x54, 0xd7, 0x6e, 0x1b, 0x60, 0x7a, 0x75, 2251 0x44, 0x97, 0x01, 0x95, 0x2a, 0x6d, 0xa9, 0x51, 0xef, 0xb4, 0x1f, 0x37, 0xc5, 0x8e, 0x2c, 0x36, 2252 0x1b, 0x72, 0x9b, 0x0f, 0x79, 0xe5, 0x52, 0xbd, 0x25, 0xca, 0x6d, 0x9e, 0xf3, 0xca, 0x9b, 0x8d, 2253 0x03, 0xa9, 0xf2, 0x98, 0x0f, 0xef, 0x7e, 0x02, 0xeb, 0x41, 0x57, 0x53, 0x74, 0x1d, 0xf2, 0xad, 2254 0xc3, 0x72, 0x4b, 0xfc, 0xe1, 0xa1, 0x58, 0x6f, 0x77, 0x58, 0xd3, 0x4a, 0xa3, 0xde, 0x96, 0xea, 2255 0x87, 0x22, 0x1f, 0x42, 0x79, 0xb8, 0x3a, 0x03, 0x74, 0x54, 0x92, 0xda, 0x3c, 0xb7, 0xfb, 0x87, 2256 0x08, 0xc0, 0xf4, 0xca, 0x8a, 0x36, 0x60, 0xb5, 0x2d, 0xd5, 0xc4, 0x4e, 0xbb, 0x61, 0x02, 0x3a, 2257 0x3f, 0x12, 0xe5, 0x06, 0x1f, 0xf2, 0x89, 0x8f, 0x6e, 0xd5, 0x5a, 0x3c, 0xe7, 0x17, 0x17, 0x6b, 2258 0x2d, 0x3e, 0xec, 0x17, 0xdf, 0xa9, 0xb5, 0xf8, 0x08, 0xd9, 0xa0, 0x67, 0x91, 0xfd, 0x5a, 0x8b, 2259 0x8f, 0xfa, 0xe5, 0x45, 0x22, 0x8f, 0xf9, 0xe5, 0xb7, 0x89, 0x3c, 0xee, 0x97, 0xbf, 0x4f, 0xe4, 2260 0x4b, 0x7e, 0xf9, 0x1d, 0x22, 0x4f, 0xa0, 0x2b, 0xb0, 0xe6, 0xf5, 0x4b, 0x14, 0x49, 0xbf, 0xa2, 2261 0x68, 0x2a, 0xc0, 0xaf, 0xb8, 0x63, 0x2a, 0x2e, 0xa1, 0x75, 0xe0, 0x3d, 0x4b, 0xb5, 0xf8, 0x94, 2262 0x5f, 0x5a, 0x6c, 0xf1, 0x69, 0xbf, 0xf4, 0x4e, 0x8b, 0x5f, 0x0e, 0x88, 0xe4, 0x7e, 0x8b, 0x5f, 2263 0x09, 0x88, 0xe4, 0x7e, 0x8b, 0xe7, 0xfd, 0xe2, 0x0f, 0xf6, 0x5b, 0xfc, 0xea, 0xee, 0x2f, 0x38, 2264 0xe0, 0xbd, 0xb7, 0x38, 0xb4, 0x09, 0x1b, 0x95, 0x87, 0xa5, 0x7a, 0x5d, 0x3c, 0xe8, 0x88, 0x8f, 2265 0xc8, 0x69, 0x1f, 0xd6, 0x3f, 0xae, 0x37, 0x8e, 0xea, 0x7c, 0x08, 0xad, 0xc1, 0x8a, 0xad, 0xaa, 2266 0xc8, 0x62, 0xa9, 0x2d, 0x56, 0x79, 0x8e, 0x15, 0x1e, 0x36, 0xab, 0xa6, 0x30, 0xcc, 0x0a, 0xab, 2267 0xe2, 0x81, 0x48, 0x84, 0x11, 0xb2, 0x13, 0x5b, 0x28, 0x8b, 0xcd, 0x83, 0xd2, 0x63, 0xb1, 0xca, 2268 0x47, 0x77, 0xbf, 0xe4, 0x60, 0x23, 0x70, 0x8c, 0x47, 0x39, 0xc8, 0x92, 0xa4, 0xab, 0xc8, 0x52, 2269 0xd3, 0xcc, 0x37, 0x2f, 0x9d, 0x0c, 0xac, 0xbb, 0xf4, 0x53, 0x4e, 0x5e, 0xcd, 0x94, 0x98, 0x57, 2270 0x33, 0x65, 0xb7, 0x09, 0x1b, 0x2e, 0x0d, 0x43, 0xf1, 0x7d, 0xe7, 0x76, 0x6c, 0x36, 0x22, 0x84, 2271 0x60, 0xd9, 0x89, 0xc3, 0x41, 0xa3, 0x25, 0x56, 0xf9, 0x10, 0xe2, 0x21, 0x65, 0xcb, 0x1a, 0x4d, 2272 0xb1, 0xce, 0x73, 0xbb, 0x35, 0xc7, 0xca, 0x6c, 0x40, 0x6c, 0x4c, 0x9a, 0x62, 0xbd, 0x2a, 0xd5, 2273 0x1f, 0xf0, 0x21, 0x36, 0x26, 0x95, 0x46, 0xad, 0x49, 0xc8, 0xf0, 0x1c, 0xeb, 0xe0, 0xfb, 0x25, 2274 0xe9, 0x80, 0x30, 0xdf, 0xad, 0xb8, 0xef, 0x48, 0x16, 0x93, 0x2b, 0xb0, 0xe6, 0x0e, 0x81, 0x4d, 2275 0x67, 0x03, 0x56, 0x5d, 0x0a, 0xca, 0x49, 0x71, 0x2f, 0x62, 0x11, 0xf3, 0xc6, 0x64, 0xca, 0xce, 2276 0x1b, 0x13, 0x86, 0xa2, 0xd7, 0xb3, 0xcd, 0xb3, 0xf8, 0x77, 0x0e, 0xd6, 0x5c, 0x3e, 0xac, 0xaf, 2277 0x33, 0xfa, 0x04, 0x92, 0xce, 0x3b, 0x36, 0x9a, 0xfb, 0x49, 0x72, 0x5e, 0x80, 0xb3, 0xdb, 0x17, 2278 0xc1, 0xac, 0x4b, 0xe8, 0x3e, 0x87, 0x3e, 0x85, 0x4b, 0xcc, 0xdb, 0x2c, 0x0a, 0xfe, 0x5e, 0xf9, 2279 0xdf, 0x98, 0xb3, 0x3b, 0x17, 0x03, 0x2d, 0x1f, 0xc5, 0xdf, 0xc6, 0x20, 0xc3, 0xee, 0xab, 0xd4, 2280 0x1b, 0x0d, 0x9c, 0xcd, 0xfd, 0x04, 0x60, 0xfa, 0x20, 0x85, 0x82, 0x69, 0xfb, 0x5e, 0xc0, 0xb2, 2281 0xef, 0x5d, 0x88, 0xa3, 0x97, 0xec, 0x2e, 0xa4, 0xd8, 0x47, 0x28, 0x14, 0xcc, 0x3a, 0xe0, 0xf9, 2282 0x2a, 0x7b, 0x73, 0x01, 0x24, 0x75, 0x72, 0x02, 0x69, 0xd7, 0xe3, 0x12, 0x0a, 0xb6, 0x0d, 0x7a, 2283 0xb5, 0xca, 0xee, 0x2e, 0x02, 0x75, 0x0e, 0x6b, 0x08, 0x2b, 0x9e, 0xb7, 0x17, 0xf4, 0xff, 0xb3, 2284 0x42, 0x11, 0xf0, 0x14, 0x94, 0xfd, 0xc6, 0x62, 0x60, 0xba, 0xaf, 0x09, 0xac, 0xfa, 0x5e, 0x59, 2285 0xd0, 0x37, 0x67, 0xc6, 0x25, 0xe8, 0x81, 0x24, 0x5b, 0x58, 0x14, 0x4e, 0x7d, 0x3e, 0x03, 0xe4, 2286 0x7f, 0x33, 0x41, 0x85, 0xd9, 0x51, 0x0a, 0xf4, 0xba, 0xb7, 0x30, 0xde, 0x0e, 0x6d, 0xf9, 0xda, 2287 0x57, 0xe7, 0x39, 0xee, 0xc5, 0x79, 0x8e, 0xfb, 0xd7, 0x79, 0x8e, 0xfb, 0xfc, 0x65, 0x2e, 0xf4, 2288 0x97, 0x97, 0x39, 0xee, 0xc5, 0xcb, 0x5c, 0xe8, 0x1f, 0x2f, 0x73, 0xa1, 0xe3, 0xb8, 0x79, 0x45, 2289 0xb8, 0xfd, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x62, 0x48, 0xe0, 0x38, 0x4f, 0x1c, 0x00, 0x00, 2290 } 2291 2292 // Reference imports to suppress errors if they are not otherwise used. 2293 var _ context.Context 2294 var _ grpc.ClientConn 2295 2296 // This is a compile-time assertion to ensure that this generated file 2297 // is compatible with the grpc package it is being compiled against. 2298 const _ = grpc.SupportPackageIsVersion4 2299 2300 // SubscriptionServiceClient is the client API for SubscriptionService service. 2301 // 2302 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2303 type SubscriptionServiceClient interface { 2304 Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (SubscriptionService_SubscribeClient, error) 2305 Unsubscribe(ctx context.Context, in *UnsubscribeRequest, opts ...grpc.CallOption) (*UnsubscribeResponse, error) 2306 } 2307 2308 type subscriptionServiceClient struct { 2309 cc *grpc.ClientConn 2310 } 2311 2312 func NewSubscriptionServiceClient(cc *grpc.ClientConn) SubscriptionServiceClient { 2313 return &subscriptionServiceClient{cc} 2314 } 2315 2316 func (c *subscriptionServiceClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (SubscriptionService_SubscribeClient, error) { 2317 stream, err := c.cc.NewStream(ctx, &_SubscriptionService_serviceDesc.Streams[0], "/onos.e2t.e2.v1beta1.SubscriptionService/Subscribe", opts...) 2318 if err != nil { 2319 return nil, err 2320 } 2321 x := &subscriptionServiceSubscribeClient{stream} 2322 if err := x.ClientStream.SendMsg(in); err != nil { 2323 return nil, err 2324 } 2325 if err := x.ClientStream.CloseSend(); err != nil { 2326 return nil, err 2327 } 2328 return x, nil 2329 } 2330 2331 type SubscriptionService_SubscribeClient interface { 2332 Recv() (*SubscribeResponse, error) 2333 grpc.ClientStream 2334 } 2335 2336 type subscriptionServiceSubscribeClient struct { 2337 grpc.ClientStream 2338 } 2339 2340 func (x *subscriptionServiceSubscribeClient) Recv() (*SubscribeResponse, error) { 2341 m := new(SubscribeResponse) 2342 if err := x.ClientStream.RecvMsg(m); err != nil { 2343 return nil, err 2344 } 2345 return m, nil 2346 } 2347 2348 func (c *subscriptionServiceClient) Unsubscribe(ctx context.Context, in *UnsubscribeRequest, opts ...grpc.CallOption) (*UnsubscribeResponse, error) { 2349 out := new(UnsubscribeResponse) 2350 err := c.cc.Invoke(ctx, "/onos.e2t.e2.v1beta1.SubscriptionService/Unsubscribe", in, out, opts...) 2351 if err != nil { 2352 return nil, err 2353 } 2354 return out, nil 2355 } 2356 2357 // SubscriptionServiceServer is the server API for SubscriptionService service. 2358 type SubscriptionServiceServer interface { 2359 Subscribe(*SubscribeRequest, SubscriptionService_SubscribeServer) error 2360 Unsubscribe(context.Context, *UnsubscribeRequest) (*UnsubscribeResponse, error) 2361 } 2362 2363 // UnimplementedSubscriptionServiceServer can be embedded to have forward compatible implementations. 2364 type UnimplementedSubscriptionServiceServer struct { 2365 } 2366 2367 func (*UnimplementedSubscriptionServiceServer) Subscribe(req *SubscribeRequest, srv SubscriptionService_SubscribeServer) error { 2368 return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") 2369 } 2370 func (*UnimplementedSubscriptionServiceServer) Unsubscribe(ctx context.Context, req *UnsubscribeRequest) (*UnsubscribeResponse, error) { 2371 return nil, status.Errorf(codes.Unimplemented, "method Unsubscribe not implemented") 2372 } 2373 2374 func RegisterSubscriptionServiceServer(s *grpc.Server, srv SubscriptionServiceServer) { 2375 s.RegisterService(&_SubscriptionService_serviceDesc, srv) 2376 } 2377 2378 func _SubscriptionService_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error { 2379 m := new(SubscribeRequest) 2380 if err := stream.RecvMsg(m); err != nil { 2381 return err 2382 } 2383 return srv.(SubscriptionServiceServer).Subscribe(m, &subscriptionServiceSubscribeServer{stream}) 2384 } 2385 2386 type SubscriptionService_SubscribeServer interface { 2387 Send(*SubscribeResponse) error 2388 grpc.ServerStream 2389 } 2390 2391 type subscriptionServiceSubscribeServer struct { 2392 grpc.ServerStream 2393 } 2394 2395 func (x *subscriptionServiceSubscribeServer) Send(m *SubscribeResponse) error { 2396 return x.ServerStream.SendMsg(m) 2397 } 2398 2399 func _SubscriptionService_Unsubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2400 in := new(UnsubscribeRequest) 2401 if err := dec(in); err != nil { 2402 return nil, err 2403 } 2404 if interceptor == nil { 2405 return srv.(SubscriptionServiceServer).Unsubscribe(ctx, in) 2406 } 2407 info := &grpc.UnaryServerInfo{ 2408 Server: srv, 2409 FullMethod: "/onos.e2t.e2.v1beta1.SubscriptionService/Unsubscribe", 2410 } 2411 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2412 return srv.(SubscriptionServiceServer).Unsubscribe(ctx, req.(*UnsubscribeRequest)) 2413 } 2414 return interceptor(ctx, in, info, handler) 2415 } 2416 2417 var _SubscriptionService_serviceDesc = grpc.ServiceDesc{ 2418 ServiceName: "onos.e2t.e2.v1beta1.SubscriptionService", 2419 HandlerType: (*SubscriptionServiceServer)(nil), 2420 Methods: []grpc.MethodDesc{ 2421 { 2422 MethodName: "Unsubscribe", 2423 Handler: _SubscriptionService_Unsubscribe_Handler, 2424 }, 2425 }, 2426 Streams: []grpc.StreamDesc{ 2427 { 2428 StreamName: "Subscribe", 2429 Handler: _SubscriptionService_Subscribe_Handler, 2430 ServerStreams: true, 2431 }, 2432 }, 2433 Metadata: "onos/e2t/e2/v1beta1/subscription.proto", 2434 } 2435 2436 // SubscriptionAdminServiceClient is the client API for SubscriptionAdminService service. 2437 // 2438 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2439 type SubscriptionAdminServiceClient interface { 2440 GetChannel(ctx context.Context, in *GetChannelRequest, opts ...grpc.CallOption) (*GetChannelResponse, error) 2441 ListChannels(ctx context.Context, in *ListChannelsRequest, opts ...grpc.CallOption) (*ListChannelsResponse, error) 2442 WatchChannels(ctx context.Context, in *WatchChannelsRequest, opts ...grpc.CallOption) (SubscriptionAdminService_WatchChannelsClient, error) 2443 GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*GetSubscriptionResponse, error) 2444 ListSubscriptions(ctx context.Context, in *ListSubscriptionsRequest, opts ...grpc.CallOption) (*ListSubscriptionsResponse, error) 2445 WatchSubscriptions(ctx context.Context, in *WatchSubscriptionsRequest, opts ...grpc.CallOption) (SubscriptionAdminService_WatchSubscriptionsClient, error) 2446 } 2447 2448 type subscriptionAdminServiceClient struct { 2449 cc *grpc.ClientConn 2450 } 2451 2452 func NewSubscriptionAdminServiceClient(cc *grpc.ClientConn) SubscriptionAdminServiceClient { 2453 return &subscriptionAdminServiceClient{cc} 2454 } 2455 2456 func (c *subscriptionAdminServiceClient) GetChannel(ctx context.Context, in *GetChannelRequest, opts ...grpc.CallOption) (*GetChannelResponse, error) { 2457 out := new(GetChannelResponse) 2458 err := c.cc.Invoke(ctx, "/onos.e2t.e2.v1beta1.SubscriptionAdminService/GetChannel", in, out, opts...) 2459 if err != nil { 2460 return nil, err 2461 } 2462 return out, nil 2463 } 2464 2465 func (c *subscriptionAdminServiceClient) ListChannels(ctx context.Context, in *ListChannelsRequest, opts ...grpc.CallOption) (*ListChannelsResponse, error) { 2466 out := new(ListChannelsResponse) 2467 err := c.cc.Invoke(ctx, "/onos.e2t.e2.v1beta1.SubscriptionAdminService/ListChannels", in, out, opts...) 2468 if err != nil { 2469 return nil, err 2470 } 2471 return out, nil 2472 } 2473 2474 func (c *subscriptionAdminServiceClient) WatchChannels(ctx context.Context, in *WatchChannelsRequest, opts ...grpc.CallOption) (SubscriptionAdminService_WatchChannelsClient, error) { 2475 stream, err := c.cc.NewStream(ctx, &_SubscriptionAdminService_serviceDesc.Streams[0], "/onos.e2t.e2.v1beta1.SubscriptionAdminService/WatchChannels", opts...) 2476 if err != nil { 2477 return nil, err 2478 } 2479 x := &subscriptionAdminServiceWatchChannelsClient{stream} 2480 if err := x.ClientStream.SendMsg(in); err != nil { 2481 return nil, err 2482 } 2483 if err := x.ClientStream.CloseSend(); err != nil { 2484 return nil, err 2485 } 2486 return x, nil 2487 } 2488 2489 type SubscriptionAdminService_WatchChannelsClient interface { 2490 Recv() (*WatchChannelsResponse, error) 2491 grpc.ClientStream 2492 } 2493 2494 type subscriptionAdminServiceWatchChannelsClient struct { 2495 grpc.ClientStream 2496 } 2497 2498 func (x *subscriptionAdminServiceWatchChannelsClient) Recv() (*WatchChannelsResponse, error) { 2499 m := new(WatchChannelsResponse) 2500 if err := x.ClientStream.RecvMsg(m); err != nil { 2501 return nil, err 2502 } 2503 return m, nil 2504 } 2505 2506 func (c *subscriptionAdminServiceClient) GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*GetSubscriptionResponse, error) { 2507 out := new(GetSubscriptionResponse) 2508 err := c.cc.Invoke(ctx, "/onos.e2t.e2.v1beta1.SubscriptionAdminService/GetSubscription", in, out, opts...) 2509 if err != nil { 2510 return nil, err 2511 } 2512 return out, nil 2513 } 2514 2515 func (c *subscriptionAdminServiceClient) ListSubscriptions(ctx context.Context, in *ListSubscriptionsRequest, opts ...grpc.CallOption) (*ListSubscriptionsResponse, error) { 2516 out := new(ListSubscriptionsResponse) 2517 err := c.cc.Invoke(ctx, "/onos.e2t.e2.v1beta1.SubscriptionAdminService/ListSubscriptions", in, out, opts...) 2518 if err != nil { 2519 return nil, err 2520 } 2521 return out, nil 2522 } 2523 2524 func (c *subscriptionAdminServiceClient) WatchSubscriptions(ctx context.Context, in *WatchSubscriptionsRequest, opts ...grpc.CallOption) (SubscriptionAdminService_WatchSubscriptionsClient, error) { 2525 stream, err := c.cc.NewStream(ctx, &_SubscriptionAdminService_serviceDesc.Streams[1], "/onos.e2t.e2.v1beta1.SubscriptionAdminService/WatchSubscriptions", opts...) 2526 if err != nil { 2527 return nil, err 2528 } 2529 x := &subscriptionAdminServiceWatchSubscriptionsClient{stream} 2530 if err := x.ClientStream.SendMsg(in); err != nil { 2531 return nil, err 2532 } 2533 if err := x.ClientStream.CloseSend(); err != nil { 2534 return nil, err 2535 } 2536 return x, nil 2537 } 2538 2539 type SubscriptionAdminService_WatchSubscriptionsClient interface { 2540 Recv() (*WatchSubscriptionsResponse, error) 2541 grpc.ClientStream 2542 } 2543 2544 type subscriptionAdminServiceWatchSubscriptionsClient struct { 2545 grpc.ClientStream 2546 } 2547 2548 func (x *subscriptionAdminServiceWatchSubscriptionsClient) Recv() (*WatchSubscriptionsResponse, error) { 2549 m := new(WatchSubscriptionsResponse) 2550 if err := x.ClientStream.RecvMsg(m); err != nil { 2551 return nil, err 2552 } 2553 return m, nil 2554 } 2555 2556 // SubscriptionAdminServiceServer is the server API for SubscriptionAdminService service. 2557 type SubscriptionAdminServiceServer interface { 2558 GetChannel(context.Context, *GetChannelRequest) (*GetChannelResponse, error) 2559 ListChannels(context.Context, *ListChannelsRequest) (*ListChannelsResponse, error) 2560 WatchChannels(*WatchChannelsRequest, SubscriptionAdminService_WatchChannelsServer) error 2561 GetSubscription(context.Context, *GetSubscriptionRequest) (*GetSubscriptionResponse, error) 2562 ListSubscriptions(context.Context, *ListSubscriptionsRequest) (*ListSubscriptionsResponse, error) 2563 WatchSubscriptions(*WatchSubscriptionsRequest, SubscriptionAdminService_WatchSubscriptionsServer) error 2564 } 2565 2566 // UnimplementedSubscriptionAdminServiceServer can be embedded to have forward compatible implementations. 2567 type UnimplementedSubscriptionAdminServiceServer struct { 2568 } 2569 2570 func (*UnimplementedSubscriptionAdminServiceServer) GetChannel(ctx context.Context, req *GetChannelRequest) (*GetChannelResponse, error) { 2571 return nil, status.Errorf(codes.Unimplemented, "method GetChannel not implemented") 2572 } 2573 func (*UnimplementedSubscriptionAdminServiceServer) ListChannels(ctx context.Context, req *ListChannelsRequest) (*ListChannelsResponse, error) { 2574 return nil, status.Errorf(codes.Unimplemented, "method ListChannels not implemented") 2575 } 2576 func (*UnimplementedSubscriptionAdminServiceServer) WatchChannels(req *WatchChannelsRequest, srv SubscriptionAdminService_WatchChannelsServer) error { 2577 return status.Errorf(codes.Unimplemented, "method WatchChannels not implemented") 2578 } 2579 func (*UnimplementedSubscriptionAdminServiceServer) GetSubscription(ctx context.Context, req *GetSubscriptionRequest) (*GetSubscriptionResponse, error) { 2580 return nil, status.Errorf(codes.Unimplemented, "method GetSubscription not implemented") 2581 } 2582 func (*UnimplementedSubscriptionAdminServiceServer) ListSubscriptions(ctx context.Context, req *ListSubscriptionsRequest) (*ListSubscriptionsResponse, error) { 2583 return nil, status.Errorf(codes.Unimplemented, "method ListSubscriptions not implemented") 2584 } 2585 func (*UnimplementedSubscriptionAdminServiceServer) WatchSubscriptions(req *WatchSubscriptionsRequest, srv SubscriptionAdminService_WatchSubscriptionsServer) error { 2586 return status.Errorf(codes.Unimplemented, "method WatchSubscriptions not implemented") 2587 } 2588 2589 func RegisterSubscriptionAdminServiceServer(s *grpc.Server, srv SubscriptionAdminServiceServer) { 2590 s.RegisterService(&_SubscriptionAdminService_serviceDesc, srv) 2591 } 2592 2593 func _SubscriptionAdminService_GetChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2594 in := new(GetChannelRequest) 2595 if err := dec(in); err != nil { 2596 return nil, err 2597 } 2598 if interceptor == nil { 2599 return srv.(SubscriptionAdminServiceServer).GetChannel(ctx, in) 2600 } 2601 info := &grpc.UnaryServerInfo{ 2602 Server: srv, 2603 FullMethod: "/onos.e2t.e2.v1beta1.SubscriptionAdminService/GetChannel", 2604 } 2605 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2606 return srv.(SubscriptionAdminServiceServer).GetChannel(ctx, req.(*GetChannelRequest)) 2607 } 2608 return interceptor(ctx, in, info, handler) 2609 } 2610 2611 func _SubscriptionAdminService_ListChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2612 in := new(ListChannelsRequest) 2613 if err := dec(in); err != nil { 2614 return nil, err 2615 } 2616 if interceptor == nil { 2617 return srv.(SubscriptionAdminServiceServer).ListChannels(ctx, in) 2618 } 2619 info := &grpc.UnaryServerInfo{ 2620 Server: srv, 2621 FullMethod: "/onos.e2t.e2.v1beta1.SubscriptionAdminService/ListChannels", 2622 } 2623 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2624 return srv.(SubscriptionAdminServiceServer).ListChannels(ctx, req.(*ListChannelsRequest)) 2625 } 2626 return interceptor(ctx, in, info, handler) 2627 } 2628 2629 func _SubscriptionAdminService_WatchChannels_Handler(srv interface{}, stream grpc.ServerStream) error { 2630 m := new(WatchChannelsRequest) 2631 if err := stream.RecvMsg(m); err != nil { 2632 return err 2633 } 2634 return srv.(SubscriptionAdminServiceServer).WatchChannels(m, &subscriptionAdminServiceWatchChannelsServer{stream}) 2635 } 2636 2637 type SubscriptionAdminService_WatchChannelsServer interface { 2638 Send(*WatchChannelsResponse) error 2639 grpc.ServerStream 2640 } 2641 2642 type subscriptionAdminServiceWatchChannelsServer struct { 2643 grpc.ServerStream 2644 } 2645 2646 func (x *subscriptionAdminServiceWatchChannelsServer) Send(m *WatchChannelsResponse) error { 2647 return x.ServerStream.SendMsg(m) 2648 } 2649 2650 func _SubscriptionAdminService_GetSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2651 in := new(GetSubscriptionRequest) 2652 if err := dec(in); err != nil { 2653 return nil, err 2654 } 2655 if interceptor == nil { 2656 return srv.(SubscriptionAdminServiceServer).GetSubscription(ctx, in) 2657 } 2658 info := &grpc.UnaryServerInfo{ 2659 Server: srv, 2660 FullMethod: "/onos.e2t.e2.v1beta1.SubscriptionAdminService/GetSubscription", 2661 } 2662 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2663 return srv.(SubscriptionAdminServiceServer).GetSubscription(ctx, req.(*GetSubscriptionRequest)) 2664 } 2665 return interceptor(ctx, in, info, handler) 2666 } 2667 2668 func _SubscriptionAdminService_ListSubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2669 in := new(ListSubscriptionsRequest) 2670 if err := dec(in); err != nil { 2671 return nil, err 2672 } 2673 if interceptor == nil { 2674 return srv.(SubscriptionAdminServiceServer).ListSubscriptions(ctx, in) 2675 } 2676 info := &grpc.UnaryServerInfo{ 2677 Server: srv, 2678 FullMethod: "/onos.e2t.e2.v1beta1.SubscriptionAdminService/ListSubscriptions", 2679 } 2680 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2681 return srv.(SubscriptionAdminServiceServer).ListSubscriptions(ctx, req.(*ListSubscriptionsRequest)) 2682 } 2683 return interceptor(ctx, in, info, handler) 2684 } 2685 2686 func _SubscriptionAdminService_WatchSubscriptions_Handler(srv interface{}, stream grpc.ServerStream) error { 2687 m := new(WatchSubscriptionsRequest) 2688 if err := stream.RecvMsg(m); err != nil { 2689 return err 2690 } 2691 return srv.(SubscriptionAdminServiceServer).WatchSubscriptions(m, &subscriptionAdminServiceWatchSubscriptionsServer{stream}) 2692 } 2693 2694 type SubscriptionAdminService_WatchSubscriptionsServer interface { 2695 Send(*WatchSubscriptionsResponse) error 2696 grpc.ServerStream 2697 } 2698 2699 type subscriptionAdminServiceWatchSubscriptionsServer struct { 2700 grpc.ServerStream 2701 } 2702 2703 func (x *subscriptionAdminServiceWatchSubscriptionsServer) Send(m *WatchSubscriptionsResponse) error { 2704 return x.ServerStream.SendMsg(m) 2705 } 2706 2707 var _SubscriptionAdminService_serviceDesc = grpc.ServiceDesc{ 2708 ServiceName: "onos.e2t.e2.v1beta1.SubscriptionAdminService", 2709 HandlerType: (*SubscriptionAdminServiceServer)(nil), 2710 Methods: []grpc.MethodDesc{ 2711 { 2712 MethodName: "GetChannel", 2713 Handler: _SubscriptionAdminService_GetChannel_Handler, 2714 }, 2715 { 2716 MethodName: "ListChannels", 2717 Handler: _SubscriptionAdminService_ListChannels_Handler, 2718 }, 2719 { 2720 MethodName: "GetSubscription", 2721 Handler: _SubscriptionAdminService_GetSubscription_Handler, 2722 }, 2723 { 2724 MethodName: "ListSubscriptions", 2725 Handler: _SubscriptionAdminService_ListSubscriptions_Handler, 2726 }, 2727 }, 2728 Streams: []grpc.StreamDesc{ 2729 { 2730 StreamName: "WatchChannels", 2731 Handler: _SubscriptionAdminService_WatchChannels_Handler, 2732 ServerStreams: true, 2733 }, 2734 { 2735 StreamName: "WatchSubscriptions", 2736 Handler: _SubscriptionAdminService_WatchSubscriptions_Handler, 2737 ServerStreams: true, 2738 }, 2739 }, 2740 Metadata: "onos/e2t/e2/v1beta1/subscription.proto", 2741 } 2742 2743 func (m *SubscribeRequest) Marshal() (dAtA []byte, err error) { 2744 size := m.Size() 2745 dAtA = make([]byte, size) 2746 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2747 if err != nil { 2748 return nil, err 2749 } 2750 return dAtA[:n], nil 2751 } 2752 2753 func (m *SubscribeRequest) MarshalTo(dAtA []byte) (int, error) { 2754 size := m.Size() 2755 return m.MarshalToSizedBuffer(dAtA[:size]) 2756 } 2757 2758 func (m *SubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2759 i := len(dAtA) 2760 _ = i 2761 var l int 2762 _ = l 2763 if m.TransactionTimeout != nil { 2764 n1, err1 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.TransactionTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TransactionTimeout):]) 2765 if err1 != nil { 2766 return 0, err1 2767 } 2768 i -= n1 2769 i = encodeVarintSubscription(dAtA, i, uint64(n1)) 2770 i-- 2771 dAtA[i] = 0x22 2772 } 2773 { 2774 size, err := m.Subscription.MarshalToSizedBuffer(dAtA[:i]) 2775 if err != nil { 2776 return 0, err 2777 } 2778 i -= size 2779 i = encodeVarintSubscription(dAtA, i, uint64(size)) 2780 } 2781 i-- 2782 dAtA[i] = 0x1a 2783 if len(m.TransactionID) > 0 { 2784 i -= len(m.TransactionID) 2785 copy(dAtA[i:], m.TransactionID) 2786 i = encodeVarintSubscription(dAtA, i, uint64(len(m.TransactionID))) 2787 i-- 2788 dAtA[i] = 0x12 2789 } 2790 { 2791 size, err := m.Headers.MarshalToSizedBuffer(dAtA[:i]) 2792 if err != nil { 2793 return 0, err 2794 } 2795 i -= size 2796 i = encodeVarintSubscription(dAtA, i, uint64(size)) 2797 } 2798 i-- 2799 dAtA[i] = 0xa 2800 return len(dAtA) - i, nil 2801 } 2802 2803 func (m *SubscribeResponse) Marshal() (dAtA []byte, err error) { 2804 size := m.Size() 2805 dAtA = make([]byte, size) 2806 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2807 if err != nil { 2808 return nil, err 2809 } 2810 return dAtA[:n], nil 2811 } 2812 2813 func (m *SubscribeResponse) MarshalTo(dAtA []byte) (int, error) { 2814 size := m.Size() 2815 return m.MarshalToSizedBuffer(dAtA[:size]) 2816 } 2817 2818 func (m *SubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2819 i := len(dAtA) 2820 _ = i 2821 var l int 2822 _ = l 2823 if m.Message != nil { 2824 { 2825 size := m.Message.Size() 2826 i -= size 2827 if _, err := m.Message.MarshalTo(dAtA[i:]); err != nil { 2828 return 0, err 2829 } 2830 } 2831 } 2832 { 2833 size, err := m.Headers.MarshalToSizedBuffer(dAtA[:i]) 2834 if err != nil { 2835 return 0, err 2836 } 2837 i -= size 2838 i = encodeVarintSubscription(dAtA, i, uint64(size)) 2839 } 2840 i-- 2841 dAtA[i] = 0xa 2842 return len(dAtA) - i, nil 2843 } 2844 2845 func (m *SubscribeResponse_Ack) MarshalTo(dAtA []byte) (int, error) { 2846 size := m.Size() 2847 return m.MarshalToSizedBuffer(dAtA[:size]) 2848 } 2849 2850 func (m *SubscribeResponse_Ack) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2851 i := len(dAtA) 2852 if m.Ack != nil { 2853 { 2854 size, err := m.Ack.MarshalToSizedBuffer(dAtA[:i]) 2855 if err != nil { 2856 return 0, err 2857 } 2858 i -= size 2859 i = encodeVarintSubscription(dAtA, i, uint64(size)) 2860 } 2861 i-- 2862 dAtA[i] = 0x12 2863 } 2864 return len(dAtA) - i, nil 2865 } 2866 func (m *SubscribeResponse_Indication) MarshalTo(dAtA []byte) (int, error) { 2867 size := m.Size() 2868 return m.MarshalToSizedBuffer(dAtA[:size]) 2869 } 2870 2871 func (m *SubscribeResponse_Indication) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2872 i := len(dAtA) 2873 if m.Indication != nil { 2874 { 2875 size, err := m.Indication.MarshalToSizedBuffer(dAtA[:i]) 2876 if err != nil { 2877 return 0, err 2878 } 2879 i -= size 2880 i = encodeVarintSubscription(dAtA, i, uint64(size)) 2881 } 2882 i-- 2883 dAtA[i] = 0x1a 2884 } 2885 return len(dAtA) - i, nil 2886 } 2887 func (m *UnsubscribeRequest) Marshal() (dAtA []byte, err error) { 2888 size := m.Size() 2889 dAtA = make([]byte, size) 2890 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2891 if err != nil { 2892 return nil, err 2893 } 2894 return dAtA[:n], nil 2895 } 2896 2897 func (m *UnsubscribeRequest) MarshalTo(dAtA []byte) (int, error) { 2898 size := m.Size() 2899 return m.MarshalToSizedBuffer(dAtA[:size]) 2900 } 2901 2902 func (m *UnsubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2903 i := len(dAtA) 2904 _ = i 2905 var l int 2906 _ = l 2907 if len(m.TransactionID) > 0 { 2908 i -= len(m.TransactionID) 2909 copy(dAtA[i:], m.TransactionID) 2910 i = encodeVarintSubscription(dAtA, i, uint64(len(m.TransactionID))) 2911 i-- 2912 dAtA[i] = 0x12 2913 } 2914 { 2915 size, err := m.Headers.MarshalToSizedBuffer(dAtA[:i]) 2916 if err != nil { 2917 return 0, err 2918 } 2919 i -= size 2920 i = encodeVarintSubscription(dAtA, i, uint64(size)) 2921 } 2922 i-- 2923 dAtA[i] = 0xa 2924 return len(dAtA) - i, nil 2925 } 2926 2927 func (m *UnsubscribeResponse) Marshal() (dAtA []byte, err error) { 2928 size := m.Size() 2929 dAtA = make([]byte, size) 2930 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2931 if err != nil { 2932 return nil, err 2933 } 2934 return dAtA[:n], nil 2935 } 2936 2937 func (m *UnsubscribeResponse) MarshalTo(dAtA []byte) (int, error) { 2938 size := m.Size() 2939 return m.MarshalToSizedBuffer(dAtA[:size]) 2940 } 2941 2942 func (m *UnsubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2943 i := len(dAtA) 2944 _ = i 2945 var l int 2946 _ = l 2947 { 2948 size, err := m.Headers.MarshalToSizedBuffer(dAtA[:i]) 2949 if err != nil { 2950 return 0, err 2951 } 2952 i -= size 2953 i = encodeVarintSubscription(dAtA, i, uint64(size)) 2954 } 2955 i-- 2956 dAtA[i] = 0xa 2957 return len(dAtA) - i, nil 2958 } 2959 2960 func (m *SubscriptionSpec) Marshal() (dAtA []byte, err error) { 2961 size := m.Size() 2962 dAtA = make([]byte, size) 2963 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2964 if err != nil { 2965 return nil, err 2966 } 2967 return dAtA[:n], nil 2968 } 2969 2970 func (m *SubscriptionSpec) MarshalTo(dAtA []byte) (int, error) { 2971 size := m.Size() 2972 return m.MarshalToSizedBuffer(dAtA[:size]) 2973 } 2974 2975 func (m *SubscriptionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2976 i := len(dAtA) 2977 _ = i 2978 var l int 2979 _ = l 2980 if len(m.Actions) > 0 { 2981 for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { 2982 { 2983 size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2984 if err != nil { 2985 return 0, err 2986 } 2987 i -= size 2988 i = encodeVarintSubscription(dAtA, i, uint64(size)) 2989 } 2990 i-- 2991 dAtA[i] = 0x12 2992 } 2993 } 2994 { 2995 size, err := m.EventTrigger.MarshalToSizedBuffer(dAtA[:i]) 2996 if err != nil { 2997 return 0, err 2998 } 2999 i -= size 3000 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3001 } 3002 i-- 3003 dAtA[i] = 0xa 3004 return len(dAtA) - i, nil 3005 } 3006 3007 func (m *EventTrigger) Marshal() (dAtA []byte, err error) { 3008 size := m.Size() 3009 dAtA = make([]byte, size) 3010 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3011 if err != nil { 3012 return nil, err 3013 } 3014 return dAtA[:n], nil 3015 } 3016 3017 func (m *EventTrigger) MarshalTo(dAtA []byte) (int, error) { 3018 size := m.Size() 3019 return m.MarshalToSizedBuffer(dAtA[:size]) 3020 } 3021 3022 func (m *EventTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3023 i := len(dAtA) 3024 _ = i 3025 var l int 3026 _ = l 3027 if len(m.Payload) > 0 { 3028 i -= len(m.Payload) 3029 copy(dAtA[i:], m.Payload) 3030 i = encodeVarintSubscription(dAtA, i, uint64(len(m.Payload))) 3031 i-- 3032 dAtA[i] = 0xa 3033 } 3034 return len(dAtA) - i, nil 3035 } 3036 3037 func (m *Action) Marshal() (dAtA []byte, err error) { 3038 size := m.Size() 3039 dAtA = make([]byte, size) 3040 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3041 if err != nil { 3042 return nil, err 3043 } 3044 return dAtA[:n], nil 3045 } 3046 3047 func (m *Action) MarshalTo(dAtA []byte) (int, error) { 3048 size := m.Size() 3049 return m.MarshalToSizedBuffer(dAtA[:size]) 3050 } 3051 3052 func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3053 i := len(dAtA) 3054 _ = i 3055 var l int 3056 _ = l 3057 if m.SubsequentAction != nil { 3058 { 3059 size, err := m.SubsequentAction.MarshalToSizedBuffer(dAtA[:i]) 3060 if err != nil { 3061 return 0, err 3062 } 3063 i -= size 3064 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3065 } 3066 i-- 3067 dAtA[i] = 0x22 3068 } 3069 if len(m.Payload) > 0 { 3070 i -= len(m.Payload) 3071 copy(dAtA[i:], m.Payload) 3072 i = encodeVarintSubscription(dAtA, i, uint64(len(m.Payload))) 3073 i-- 3074 dAtA[i] = 0x1a 3075 } 3076 if m.Type != 0 { 3077 i = encodeVarintSubscription(dAtA, i, uint64(m.Type)) 3078 i-- 3079 dAtA[i] = 0x10 3080 } 3081 if m.ID != 0 { 3082 i = encodeVarintSubscription(dAtA, i, uint64(m.ID)) 3083 i-- 3084 dAtA[i] = 0x8 3085 } 3086 return len(dAtA) - i, nil 3087 } 3088 3089 func (m *SubsequentAction) Marshal() (dAtA []byte, err error) { 3090 size := m.Size() 3091 dAtA = make([]byte, size) 3092 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3093 if err != nil { 3094 return nil, err 3095 } 3096 return dAtA[:n], nil 3097 } 3098 3099 func (m *SubsequentAction) MarshalTo(dAtA []byte) (int, error) { 3100 size := m.Size() 3101 return m.MarshalToSizedBuffer(dAtA[:size]) 3102 } 3103 3104 func (m *SubsequentAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3105 i := len(dAtA) 3106 _ = i 3107 var l int 3108 _ = l 3109 if m.TimeToWait != 0 { 3110 i = encodeVarintSubscription(dAtA, i, uint64(m.TimeToWait)) 3111 i-- 3112 dAtA[i] = 0x10 3113 } 3114 if m.Type != 0 { 3115 i = encodeVarintSubscription(dAtA, i, uint64(m.Type)) 3116 i-- 3117 dAtA[i] = 0x8 3118 } 3119 return len(dAtA) - i, nil 3120 } 3121 3122 func (m *Acknowledgement) Marshal() (dAtA []byte, err error) { 3123 size := m.Size() 3124 dAtA = make([]byte, size) 3125 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3126 if err != nil { 3127 return nil, err 3128 } 3129 return dAtA[:n], nil 3130 } 3131 3132 func (m *Acknowledgement) MarshalTo(dAtA []byte) (int, error) { 3133 size := m.Size() 3134 return m.MarshalToSizedBuffer(dAtA[:size]) 3135 } 3136 3137 func (m *Acknowledgement) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3138 i := len(dAtA) 3139 _ = i 3140 var l int 3141 _ = l 3142 if len(m.ChannelID) > 0 { 3143 i -= len(m.ChannelID) 3144 copy(dAtA[i:], m.ChannelID) 3145 i = encodeVarintSubscription(dAtA, i, uint64(len(m.ChannelID))) 3146 i-- 3147 dAtA[i] = 0xa 3148 } 3149 return len(dAtA) - i, nil 3150 } 3151 3152 func (m *Indication) Marshal() (dAtA []byte, err error) { 3153 size := m.Size() 3154 dAtA = make([]byte, size) 3155 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3156 if err != nil { 3157 return nil, err 3158 } 3159 return dAtA[:n], nil 3160 } 3161 3162 func (m *Indication) MarshalTo(dAtA []byte) (int, error) { 3163 size := m.Size() 3164 return m.MarshalToSizedBuffer(dAtA[:size]) 3165 } 3166 3167 func (m *Indication) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3168 i := len(dAtA) 3169 _ = i 3170 var l int 3171 _ = l 3172 if len(m.CallProcessId) > 0 { 3173 i -= len(m.CallProcessId) 3174 copy(dAtA[i:], m.CallProcessId) 3175 i = encodeVarintSubscription(dAtA, i, uint64(len(m.CallProcessId))) 3176 i-- 3177 dAtA[i] = 0x1a 3178 } 3179 if len(m.Payload) > 0 { 3180 i -= len(m.Payload) 3181 copy(dAtA[i:], m.Payload) 3182 i = encodeVarintSubscription(dAtA, i, uint64(len(m.Payload))) 3183 i-- 3184 dAtA[i] = 0x12 3185 } 3186 if len(m.Header) > 0 { 3187 i -= len(m.Header) 3188 copy(dAtA[i:], m.Header) 3189 i = encodeVarintSubscription(dAtA, i, uint64(len(m.Header))) 3190 i-- 3191 dAtA[i] = 0xa 3192 } 3193 return len(dAtA) - i, nil 3194 } 3195 3196 func (m *GetChannelRequest) Marshal() (dAtA []byte, err error) { 3197 size := m.Size() 3198 dAtA = make([]byte, size) 3199 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3200 if err != nil { 3201 return nil, err 3202 } 3203 return dAtA[:n], nil 3204 } 3205 3206 func (m *GetChannelRequest) MarshalTo(dAtA []byte) (int, error) { 3207 size := m.Size() 3208 return m.MarshalToSizedBuffer(dAtA[:size]) 3209 } 3210 3211 func (m *GetChannelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3212 i := len(dAtA) 3213 _ = i 3214 var l int 3215 _ = l 3216 if len(m.ChannelID) > 0 { 3217 i -= len(m.ChannelID) 3218 copy(dAtA[i:], m.ChannelID) 3219 i = encodeVarintSubscription(dAtA, i, uint64(len(m.ChannelID))) 3220 i-- 3221 dAtA[i] = 0xa 3222 } 3223 return len(dAtA) - i, nil 3224 } 3225 3226 func (m *GetChannelResponse) Marshal() (dAtA []byte, err error) { 3227 size := m.Size() 3228 dAtA = make([]byte, size) 3229 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3230 if err != nil { 3231 return nil, err 3232 } 3233 return dAtA[:n], nil 3234 } 3235 3236 func (m *GetChannelResponse) MarshalTo(dAtA []byte) (int, error) { 3237 size := m.Size() 3238 return m.MarshalToSizedBuffer(dAtA[:size]) 3239 } 3240 3241 func (m *GetChannelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3242 i := len(dAtA) 3243 _ = i 3244 var l int 3245 _ = l 3246 { 3247 size, err := m.Channel.MarshalToSizedBuffer(dAtA[:i]) 3248 if err != nil { 3249 return 0, err 3250 } 3251 i -= size 3252 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3253 } 3254 i-- 3255 dAtA[i] = 0xa 3256 return len(dAtA) - i, nil 3257 } 3258 3259 func (m *ListChannelsRequest) Marshal() (dAtA []byte, err error) { 3260 size := m.Size() 3261 dAtA = make([]byte, size) 3262 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3263 if err != nil { 3264 return nil, err 3265 } 3266 return dAtA[:n], nil 3267 } 3268 3269 func (m *ListChannelsRequest) MarshalTo(dAtA []byte) (int, error) { 3270 size := m.Size() 3271 return m.MarshalToSizedBuffer(dAtA[:size]) 3272 } 3273 3274 func (m *ListChannelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3275 i := len(dAtA) 3276 _ = i 3277 var l int 3278 _ = l 3279 return len(dAtA) - i, nil 3280 } 3281 3282 func (m *ListChannelsResponse) Marshal() (dAtA []byte, err error) { 3283 size := m.Size() 3284 dAtA = make([]byte, size) 3285 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3286 if err != nil { 3287 return nil, err 3288 } 3289 return dAtA[:n], nil 3290 } 3291 3292 func (m *ListChannelsResponse) MarshalTo(dAtA []byte) (int, error) { 3293 size := m.Size() 3294 return m.MarshalToSizedBuffer(dAtA[:size]) 3295 } 3296 3297 func (m *ListChannelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3298 i := len(dAtA) 3299 _ = i 3300 var l int 3301 _ = l 3302 if len(m.Channels) > 0 { 3303 for iNdEx := len(m.Channels) - 1; iNdEx >= 0; iNdEx-- { 3304 { 3305 size, err := m.Channels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3306 if err != nil { 3307 return 0, err 3308 } 3309 i -= size 3310 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3311 } 3312 i-- 3313 dAtA[i] = 0xa 3314 } 3315 } 3316 return len(dAtA) - i, nil 3317 } 3318 3319 func (m *WatchChannelsRequest) Marshal() (dAtA []byte, err error) { 3320 size := m.Size() 3321 dAtA = make([]byte, size) 3322 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3323 if err != nil { 3324 return nil, err 3325 } 3326 return dAtA[:n], nil 3327 } 3328 3329 func (m *WatchChannelsRequest) MarshalTo(dAtA []byte) (int, error) { 3330 size := m.Size() 3331 return m.MarshalToSizedBuffer(dAtA[:size]) 3332 } 3333 3334 func (m *WatchChannelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3335 i := len(dAtA) 3336 _ = i 3337 var l int 3338 _ = l 3339 if m.NoReplay { 3340 i-- 3341 if m.NoReplay { 3342 dAtA[i] = 1 3343 } else { 3344 dAtA[i] = 0 3345 } 3346 i-- 3347 dAtA[i] = 0x8 3348 } 3349 return len(dAtA) - i, nil 3350 } 3351 3352 func (m *WatchChannelsResponse) Marshal() (dAtA []byte, err error) { 3353 size := m.Size() 3354 dAtA = make([]byte, size) 3355 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3356 if err != nil { 3357 return nil, err 3358 } 3359 return dAtA[:n], nil 3360 } 3361 3362 func (m *WatchChannelsResponse) MarshalTo(dAtA []byte) (int, error) { 3363 size := m.Size() 3364 return m.MarshalToSizedBuffer(dAtA[:size]) 3365 } 3366 3367 func (m *WatchChannelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3368 i := len(dAtA) 3369 _ = i 3370 var l int 3371 _ = l 3372 { 3373 size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) 3374 if err != nil { 3375 return 0, err 3376 } 3377 i -= size 3378 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3379 } 3380 i-- 3381 dAtA[i] = 0xa 3382 return len(dAtA) - i, nil 3383 } 3384 3385 func (m *ChannelEvent) Marshal() (dAtA []byte, err error) { 3386 size := m.Size() 3387 dAtA = make([]byte, size) 3388 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3389 if err != nil { 3390 return nil, err 3391 } 3392 return dAtA[:n], nil 3393 } 3394 3395 func (m *ChannelEvent) MarshalTo(dAtA []byte) (int, error) { 3396 size := m.Size() 3397 return m.MarshalToSizedBuffer(dAtA[:size]) 3398 } 3399 3400 func (m *ChannelEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3401 i := len(dAtA) 3402 _ = i 3403 var l int 3404 _ = l 3405 { 3406 size, err := m.Channel.MarshalToSizedBuffer(dAtA[:i]) 3407 if err != nil { 3408 return 0, err 3409 } 3410 i -= size 3411 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3412 } 3413 i-- 3414 dAtA[i] = 0x12 3415 if m.Type != 0 { 3416 i = encodeVarintSubscription(dAtA, i, uint64(m.Type)) 3417 i-- 3418 dAtA[i] = 0x8 3419 } 3420 return len(dAtA) - i, nil 3421 } 3422 3423 func (m *GetSubscriptionRequest) Marshal() (dAtA []byte, err error) { 3424 size := m.Size() 3425 dAtA = make([]byte, size) 3426 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3427 if err != nil { 3428 return nil, err 3429 } 3430 return dAtA[:n], nil 3431 } 3432 3433 func (m *GetSubscriptionRequest) MarshalTo(dAtA []byte) (int, error) { 3434 size := m.Size() 3435 return m.MarshalToSizedBuffer(dAtA[:size]) 3436 } 3437 3438 func (m *GetSubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3439 i := len(dAtA) 3440 _ = i 3441 var l int 3442 _ = l 3443 if len(m.SubscriptionID) > 0 { 3444 i -= len(m.SubscriptionID) 3445 copy(dAtA[i:], m.SubscriptionID) 3446 i = encodeVarintSubscription(dAtA, i, uint64(len(m.SubscriptionID))) 3447 i-- 3448 dAtA[i] = 0xa 3449 } 3450 return len(dAtA) - i, nil 3451 } 3452 3453 func (m *GetSubscriptionResponse) Marshal() (dAtA []byte, err error) { 3454 size := m.Size() 3455 dAtA = make([]byte, size) 3456 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3457 if err != nil { 3458 return nil, err 3459 } 3460 return dAtA[:n], nil 3461 } 3462 3463 func (m *GetSubscriptionResponse) MarshalTo(dAtA []byte) (int, error) { 3464 size := m.Size() 3465 return m.MarshalToSizedBuffer(dAtA[:size]) 3466 } 3467 3468 func (m *GetSubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3469 i := len(dAtA) 3470 _ = i 3471 var l int 3472 _ = l 3473 { 3474 size, err := m.Subscription.MarshalToSizedBuffer(dAtA[:i]) 3475 if err != nil { 3476 return 0, err 3477 } 3478 i -= size 3479 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3480 } 3481 i-- 3482 dAtA[i] = 0xa 3483 return len(dAtA) - i, nil 3484 } 3485 3486 func (m *ListSubscriptionsRequest) Marshal() (dAtA []byte, err error) { 3487 size := m.Size() 3488 dAtA = make([]byte, size) 3489 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3490 if err != nil { 3491 return nil, err 3492 } 3493 return dAtA[:n], nil 3494 } 3495 3496 func (m *ListSubscriptionsRequest) MarshalTo(dAtA []byte) (int, error) { 3497 size := m.Size() 3498 return m.MarshalToSizedBuffer(dAtA[:size]) 3499 } 3500 3501 func (m *ListSubscriptionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3502 i := len(dAtA) 3503 _ = i 3504 var l int 3505 _ = l 3506 return len(dAtA) - i, nil 3507 } 3508 3509 func (m *ListSubscriptionsResponse) Marshal() (dAtA []byte, err error) { 3510 size := m.Size() 3511 dAtA = make([]byte, size) 3512 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3513 if err != nil { 3514 return nil, err 3515 } 3516 return dAtA[:n], nil 3517 } 3518 3519 func (m *ListSubscriptionsResponse) MarshalTo(dAtA []byte) (int, error) { 3520 size := m.Size() 3521 return m.MarshalToSizedBuffer(dAtA[:size]) 3522 } 3523 3524 func (m *ListSubscriptionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3525 i := len(dAtA) 3526 _ = i 3527 var l int 3528 _ = l 3529 if len(m.Subscriptions) > 0 { 3530 for iNdEx := len(m.Subscriptions) - 1; iNdEx >= 0; iNdEx-- { 3531 { 3532 size, err := m.Subscriptions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3533 if err != nil { 3534 return 0, err 3535 } 3536 i -= size 3537 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3538 } 3539 i-- 3540 dAtA[i] = 0xa 3541 } 3542 } 3543 return len(dAtA) - i, nil 3544 } 3545 3546 func (m *WatchSubscriptionsRequest) Marshal() (dAtA []byte, err error) { 3547 size := m.Size() 3548 dAtA = make([]byte, size) 3549 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3550 if err != nil { 3551 return nil, err 3552 } 3553 return dAtA[:n], nil 3554 } 3555 3556 func (m *WatchSubscriptionsRequest) MarshalTo(dAtA []byte) (int, error) { 3557 size := m.Size() 3558 return m.MarshalToSizedBuffer(dAtA[:size]) 3559 } 3560 3561 func (m *WatchSubscriptionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3562 i := len(dAtA) 3563 _ = i 3564 var l int 3565 _ = l 3566 if m.NoReplay { 3567 i-- 3568 if m.NoReplay { 3569 dAtA[i] = 1 3570 } else { 3571 dAtA[i] = 0 3572 } 3573 i-- 3574 dAtA[i] = 0x8 3575 } 3576 return len(dAtA) - i, nil 3577 } 3578 3579 func (m *WatchSubscriptionsResponse) Marshal() (dAtA []byte, err error) { 3580 size := m.Size() 3581 dAtA = make([]byte, size) 3582 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3583 if err != nil { 3584 return nil, err 3585 } 3586 return dAtA[:n], nil 3587 } 3588 3589 func (m *WatchSubscriptionsResponse) MarshalTo(dAtA []byte) (int, error) { 3590 size := m.Size() 3591 return m.MarshalToSizedBuffer(dAtA[:size]) 3592 } 3593 3594 func (m *WatchSubscriptionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3595 i := len(dAtA) 3596 _ = i 3597 var l int 3598 _ = l 3599 { 3600 size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) 3601 if err != nil { 3602 return 0, err 3603 } 3604 i -= size 3605 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3606 } 3607 i-- 3608 dAtA[i] = 0xa 3609 return len(dAtA) - i, nil 3610 } 3611 3612 func (m *SubscriptionEvent) Marshal() (dAtA []byte, err error) { 3613 size := m.Size() 3614 dAtA = make([]byte, size) 3615 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3616 if err != nil { 3617 return nil, err 3618 } 3619 return dAtA[:n], nil 3620 } 3621 3622 func (m *SubscriptionEvent) MarshalTo(dAtA []byte) (int, error) { 3623 size := m.Size() 3624 return m.MarshalToSizedBuffer(dAtA[:size]) 3625 } 3626 3627 func (m *SubscriptionEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3628 i := len(dAtA) 3629 _ = i 3630 var l int 3631 _ = l 3632 { 3633 size, err := m.Subscription.MarshalToSizedBuffer(dAtA[:i]) 3634 if err != nil { 3635 return 0, err 3636 } 3637 i -= size 3638 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3639 } 3640 i-- 3641 dAtA[i] = 0x12 3642 if m.Type != 0 { 3643 i = encodeVarintSubscription(dAtA, i, uint64(m.Type)) 3644 i-- 3645 dAtA[i] = 0x8 3646 } 3647 return len(dAtA) - i, nil 3648 } 3649 3650 func (m *ChannelMeta) Marshal() (dAtA []byte, err error) { 3651 size := m.Size() 3652 dAtA = make([]byte, size) 3653 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3654 if err != nil { 3655 return nil, err 3656 } 3657 return dAtA[:n], nil 3658 } 3659 3660 func (m *ChannelMeta) MarshalTo(dAtA []byte) (int, error) { 3661 size := m.Size() 3662 return m.MarshalToSizedBuffer(dAtA[:size]) 3663 } 3664 3665 func (m *ChannelMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3666 i := len(dAtA) 3667 _ = i 3668 var l int 3669 _ = l 3670 if len(m.Finalizers) > 0 { 3671 for iNdEx := len(m.Finalizers) - 1; iNdEx >= 0; iNdEx-- { 3672 i -= len(m.Finalizers[iNdEx]) 3673 copy(dAtA[i:], m.Finalizers[iNdEx]) 3674 i = encodeVarintSubscription(dAtA, i, uint64(len(m.Finalizers[iNdEx]))) 3675 i-- 3676 dAtA[i] = 0x4a 3677 } 3678 } 3679 if m.Revision != 0 { 3680 i = encodeVarintSubscription(dAtA, i, uint64(m.Revision)) 3681 i-- 3682 dAtA[i] = 0x40 3683 } 3684 if m.Encoding != 0 { 3685 i = encodeVarintSubscription(dAtA, i, uint64(m.Encoding)) 3686 i-- 3687 dAtA[i] = 0x38 3688 } 3689 { 3690 size, err := m.ServiceModel.MarshalToSizedBuffer(dAtA[:i]) 3691 if err != nil { 3692 return 0, err 3693 } 3694 i -= size 3695 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3696 } 3697 i-- 3698 dAtA[i] = 0x32 3699 if len(m.SubscriptionID) > 0 { 3700 i -= len(m.SubscriptionID) 3701 copy(dAtA[i:], m.SubscriptionID) 3702 i = encodeVarintSubscription(dAtA, i, uint64(len(m.SubscriptionID))) 3703 i-- 3704 dAtA[i] = 0x2a 3705 } 3706 if len(m.TransactionID) > 0 { 3707 i -= len(m.TransactionID) 3708 copy(dAtA[i:], m.TransactionID) 3709 i = encodeVarintSubscription(dAtA, i, uint64(len(m.TransactionID))) 3710 i-- 3711 dAtA[i] = 0x22 3712 } 3713 if len(m.E2NodeID) > 0 { 3714 i -= len(m.E2NodeID) 3715 copy(dAtA[i:], m.E2NodeID) 3716 i = encodeVarintSubscription(dAtA, i, uint64(len(m.E2NodeID))) 3717 i-- 3718 dAtA[i] = 0x1a 3719 } 3720 if len(m.AppInstanceID) > 0 { 3721 i -= len(m.AppInstanceID) 3722 copy(dAtA[i:], m.AppInstanceID) 3723 i = encodeVarintSubscription(dAtA, i, uint64(len(m.AppInstanceID))) 3724 i-- 3725 dAtA[i] = 0x12 3726 } 3727 if len(m.AppID) > 0 { 3728 i -= len(m.AppID) 3729 copy(dAtA[i:], m.AppID) 3730 i = encodeVarintSubscription(dAtA, i, uint64(len(m.AppID))) 3731 i-- 3732 dAtA[i] = 0xa 3733 } 3734 return len(dAtA) - i, nil 3735 } 3736 3737 func (m *Channel) Marshal() (dAtA []byte, err error) { 3738 size := m.Size() 3739 dAtA = make([]byte, size) 3740 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3741 if err != nil { 3742 return nil, err 3743 } 3744 return dAtA[:n], nil 3745 } 3746 3747 func (m *Channel) MarshalTo(dAtA []byte) (int, error) { 3748 size := m.Size() 3749 return m.MarshalToSizedBuffer(dAtA[:size]) 3750 } 3751 3752 func (m *Channel) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3753 i := len(dAtA) 3754 _ = i 3755 var l int 3756 _ = l 3757 { 3758 size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) 3759 if err != nil { 3760 return 0, err 3761 } 3762 i -= size 3763 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3764 } 3765 i-- 3766 dAtA[i] = 0x22 3767 { 3768 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) 3769 if err != nil { 3770 return 0, err 3771 } 3772 i -= size 3773 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3774 } 3775 i-- 3776 dAtA[i] = 0x1a 3777 { 3778 size, err := m.ChannelMeta.MarshalToSizedBuffer(dAtA[:i]) 3779 if err != nil { 3780 return 0, err 3781 } 3782 i -= size 3783 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3784 } 3785 i-- 3786 dAtA[i] = 0x12 3787 if len(m.ID) > 0 { 3788 i -= len(m.ID) 3789 copy(dAtA[i:], m.ID) 3790 i = encodeVarintSubscription(dAtA, i, uint64(len(m.ID))) 3791 i-- 3792 dAtA[i] = 0xa 3793 } 3794 return len(dAtA) - i, nil 3795 } 3796 3797 func (m *ChannelSpec) Marshal() (dAtA []byte, err error) { 3798 size := m.Size() 3799 dAtA = make([]byte, size) 3800 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3801 if err != nil { 3802 return nil, err 3803 } 3804 return dAtA[:n], nil 3805 } 3806 3807 func (m *ChannelSpec) MarshalTo(dAtA []byte) (int, error) { 3808 size := m.Size() 3809 return m.MarshalToSizedBuffer(dAtA[:size]) 3810 } 3811 3812 func (m *ChannelSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3813 i := len(dAtA) 3814 _ = i 3815 var l int 3816 _ = l 3817 if m.TransactionTimeout != nil { 3818 n21, err21 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.TransactionTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TransactionTimeout):]) 3819 if err21 != nil { 3820 return 0, err21 3821 } 3822 i -= n21 3823 i = encodeVarintSubscription(dAtA, i, uint64(n21)) 3824 i-- 3825 dAtA[i] = 0x12 3826 } 3827 { 3828 size, err := m.SubscriptionSpec.MarshalToSizedBuffer(dAtA[:i]) 3829 if err != nil { 3830 return 0, err 3831 } 3832 i -= size 3833 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3834 } 3835 i-- 3836 dAtA[i] = 0xa 3837 return len(dAtA) - i, nil 3838 } 3839 3840 func (m *ChannelStatus) Marshal() (dAtA []byte, err error) { 3841 size := m.Size() 3842 dAtA = make([]byte, size) 3843 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3844 if err != nil { 3845 return nil, err 3846 } 3847 return dAtA[:n], nil 3848 } 3849 3850 func (m *ChannelStatus) MarshalTo(dAtA []byte) (int, error) { 3851 size := m.Size() 3852 return m.MarshalToSizedBuffer(dAtA[:size]) 3853 } 3854 3855 func (m *ChannelStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3856 i := len(dAtA) 3857 _ = i 3858 var l int 3859 _ = l 3860 if len(m.Master) > 0 { 3861 i -= len(m.Master) 3862 copy(dAtA[i:], m.Master) 3863 i = encodeVarintSubscription(dAtA, i, uint64(len(m.Master))) 3864 i-- 3865 dAtA[i] = 0x32 3866 } 3867 if m.Term != 0 { 3868 i = encodeVarintSubscription(dAtA, i, uint64(m.Term)) 3869 i-- 3870 dAtA[i] = 0x28 3871 } 3872 if m.Timestamp != nil { 3873 n23, err23 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.Timestamp):]) 3874 if err23 != nil { 3875 return 0, err23 3876 } 3877 i -= n23 3878 i = encodeVarintSubscription(dAtA, i, uint64(n23)) 3879 i-- 3880 dAtA[i] = 0x22 3881 } 3882 if m.Error != nil { 3883 { 3884 size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) 3885 if err != nil { 3886 return 0, err 3887 } 3888 i -= size 3889 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3890 } 3891 i-- 3892 dAtA[i] = 0x1a 3893 } 3894 if m.State != 0 { 3895 i = encodeVarintSubscription(dAtA, i, uint64(m.State)) 3896 i-- 3897 dAtA[i] = 0x10 3898 } 3899 if m.Phase != 0 { 3900 i = encodeVarintSubscription(dAtA, i, uint64(m.Phase)) 3901 i-- 3902 dAtA[i] = 0x8 3903 } 3904 return len(dAtA) - i, nil 3905 } 3906 3907 func (m *SubscriptionMeta) Marshal() (dAtA []byte, err error) { 3908 size := m.Size() 3909 dAtA = make([]byte, size) 3910 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3911 if err != nil { 3912 return nil, err 3913 } 3914 return dAtA[:n], nil 3915 } 3916 3917 func (m *SubscriptionMeta) MarshalTo(dAtA []byte) (int, error) { 3918 size := m.Size() 3919 return m.MarshalToSizedBuffer(dAtA[:size]) 3920 } 3921 3922 func (m *SubscriptionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3923 i := len(dAtA) 3924 _ = i 3925 var l int 3926 _ = l 3927 if len(m.Finalizers) > 0 { 3928 for iNdEx := len(m.Finalizers) - 1; iNdEx >= 0; iNdEx-- { 3929 i -= len(m.Finalizers[iNdEx]) 3930 copy(dAtA[i:], m.Finalizers[iNdEx]) 3931 i = encodeVarintSubscription(dAtA, i, uint64(len(m.Finalizers[iNdEx]))) 3932 i-- 3933 dAtA[i] = 0x2a 3934 } 3935 } 3936 if m.Revision != 0 { 3937 i = encodeVarintSubscription(dAtA, i, uint64(m.Revision)) 3938 i-- 3939 dAtA[i] = 0x20 3940 } 3941 if m.Encoding != 0 { 3942 i = encodeVarintSubscription(dAtA, i, uint64(m.Encoding)) 3943 i-- 3944 dAtA[i] = 0x18 3945 } 3946 { 3947 size, err := m.ServiceModel.MarshalToSizedBuffer(dAtA[:i]) 3948 if err != nil { 3949 return 0, err 3950 } 3951 i -= size 3952 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3953 } 3954 i-- 3955 dAtA[i] = 0x12 3956 if len(m.E2NodeID) > 0 { 3957 i -= len(m.E2NodeID) 3958 copy(dAtA[i:], m.E2NodeID) 3959 i = encodeVarintSubscription(dAtA, i, uint64(len(m.E2NodeID))) 3960 i-- 3961 dAtA[i] = 0xa 3962 } 3963 return len(dAtA) - i, nil 3964 } 3965 3966 func (m *Subscription) Marshal() (dAtA []byte, err error) { 3967 size := m.Size() 3968 dAtA = make([]byte, size) 3969 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3970 if err != nil { 3971 return nil, err 3972 } 3973 return dAtA[:n], nil 3974 } 3975 3976 func (m *Subscription) MarshalTo(dAtA []byte) (int, error) { 3977 size := m.Size() 3978 return m.MarshalToSizedBuffer(dAtA[:size]) 3979 } 3980 3981 func (m *Subscription) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3982 i := len(dAtA) 3983 _ = i 3984 var l int 3985 _ = l 3986 { 3987 size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) 3988 if err != nil { 3989 return 0, err 3990 } 3991 i -= size 3992 i = encodeVarintSubscription(dAtA, i, uint64(size)) 3993 } 3994 i-- 3995 dAtA[i] = 0x22 3996 { 3997 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) 3998 if err != nil { 3999 return 0, err 4000 } 4001 i -= size 4002 i = encodeVarintSubscription(dAtA, i, uint64(size)) 4003 } 4004 i-- 4005 dAtA[i] = 0x1a 4006 { 4007 size, err := m.SubscriptionMeta.MarshalToSizedBuffer(dAtA[:i]) 4008 if err != nil { 4009 return 0, err 4010 } 4011 i -= size 4012 i = encodeVarintSubscription(dAtA, i, uint64(size)) 4013 } 4014 i-- 4015 dAtA[i] = 0x12 4016 if len(m.ID) > 0 { 4017 i -= len(m.ID) 4018 copy(dAtA[i:], m.ID) 4019 i = encodeVarintSubscription(dAtA, i, uint64(len(m.ID))) 4020 i-- 4021 dAtA[i] = 0xa 4022 } 4023 return len(dAtA) - i, nil 4024 } 4025 4026 func (m *SubscriptionStatus) Marshal() (dAtA []byte, err error) { 4027 size := m.Size() 4028 dAtA = make([]byte, size) 4029 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4030 if err != nil { 4031 return nil, err 4032 } 4033 return dAtA[:n], nil 4034 } 4035 4036 func (m *SubscriptionStatus) MarshalTo(dAtA []byte) (int, error) { 4037 size := m.Size() 4038 return m.MarshalToSizedBuffer(dAtA[:size]) 4039 } 4040 4041 func (m *SubscriptionStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4042 i := len(dAtA) 4043 _ = i 4044 var l int 4045 _ = l 4046 if len(m.Master) > 0 { 4047 i -= len(m.Master) 4048 copy(dAtA[i:], m.Master) 4049 i = encodeVarintSubscription(dAtA, i, uint64(len(m.Master))) 4050 i-- 4051 dAtA[i] = 0x32 4052 } 4053 if m.Term != 0 { 4054 i = encodeVarintSubscription(dAtA, i, uint64(m.Term)) 4055 i-- 4056 dAtA[i] = 0x28 4057 } 4058 if len(m.Channels) > 0 { 4059 for iNdEx := len(m.Channels) - 1; iNdEx >= 0; iNdEx-- { 4060 i -= len(m.Channels[iNdEx]) 4061 copy(dAtA[i:], m.Channels[iNdEx]) 4062 i = encodeVarintSubscription(dAtA, i, uint64(len(m.Channels[iNdEx]))) 4063 i-- 4064 dAtA[i] = 0x22 4065 } 4066 } 4067 if m.Error != nil { 4068 { 4069 size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) 4070 if err != nil { 4071 return 0, err 4072 } 4073 i -= size 4074 i = encodeVarintSubscription(dAtA, i, uint64(size)) 4075 } 4076 i-- 4077 dAtA[i] = 0x1a 4078 } 4079 if m.State != 0 { 4080 i = encodeVarintSubscription(dAtA, i, uint64(m.State)) 4081 i-- 4082 dAtA[i] = 0x10 4083 } 4084 if m.Phase != 0 { 4085 i = encodeVarintSubscription(dAtA, i, uint64(m.Phase)) 4086 i-- 4087 dAtA[i] = 0x8 4088 } 4089 return len(dAtA) - i, nil 4090 } 4091 4092 func encodeVarintSubscription(dAtA []byte, offset int, v uint64) int { 4093 offset -= sovSubscription(v) 4094 base := offset 4095 for v >= 1<<7 { 4096 dAtA[offset] = uint8(v&0x7f | 0x80) 4097 v >>= 7 4098 offset++ 4099 } 4100 dAtA[offset] = uint8(v) 4101 return base 4102 } 4103 func (m *SubscribeRequest) Size() (n int) { 4104 if m == nil { 4105 return 0 4106 } 4107 var l int 4108 _ = l 4109 l = m.Headers.Size() 4110 n += 1 + l + sovSubscription(uint64(l)) 4111 l = len(m.TransactionID) 4112 if l > 0 { 4113 n += 1 + l + sovSubscription(uint64(l)) 4114 } 4115 l = m.Subscription.Size() 4116 n += 1 + l + sovSubscription(uint64(l)) 4117 if m.TransactionTimeout != nil { 4118 l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TransactionTimeout) 4119 n += 1 + l + sovSubscription(uint64(l)) 4120 } 4121 return n 4122 } 4123 4124 func (m *SubscribeResponse) Size() (n int) { 4125 if m == nil { 4126 return 0 4127 } 4128 var l int 4129 _ = l 4130 l = m.Headers.Size() 4131 n += 1 + l + sovSubscription(uint64(l)) 4132 if m.Message != nil { 4133 n += m.Message.Size() 4134 } 4135 return n 4136 } 4137 4138 func (m *SubscribeResponse_Ack) Size() (n int) { 4139 if m == nil { 4140 return 0 4141 } 4142 var l int 4143 _ = l 4144 if m.Ack != nil { 4145 l = m.Ack.Size() 4146 n += 1 + l + sovSubscription(uint64(l)) 4147 } 4148 return n 4149 } 4150 func (m *SubscribeResponse_Indication) Size() (n int) { 4151 if m == nil { 4152 return 0 4153 } 4154 var l int 4155 _ = l 4156 if m.Indication != nil { 4157 l = m.Indication.Size() 4158 n += 1 + l + sovSubscription(uint64(l)) 4159 } 4160 return n 4161 } 4162 func (m *UnsubscribeRequest) Size() (n int) { 4163 if m == nil { 4164 return 0 4165 } 4166 var l int 4167 _ = l 4168 l = m.Headers.Size() 4169 n += 1 + l + sovSubscription(uint64(l)) 4170 l = len(m.TransactionID) 4171 if l > 0 { 4172 n += 1 + l + sovSubscription(uint64(l)) 4173 } 4174 return n 4175 } 4176 4177 func (m *UnsubscribeResponse) Size() (n int) { 4178 if m == nil { 4179 return 0 4180 } 4181 var l int 4182 _ = l 4183 l = m.Headers.Size() 4184 n += 1 + l + sovSubscription(uint64(l)) 4185 return n 4186 } 4187 4188 func (m *SubscriptionSpec) Size() (n int) { 4189 if m == nil { 4190 return 0 4191 } 4192 var l int 4193 _ = l 4194 l = m.EventTrigger.Size() 4195 n += 1 + l + sovSubscription(uint64(l)) 4196 if len(m.Actions) > 0 { 4197 for _, e := range m.Actions { 4198 l = e.Size() 4199 n += 1 + l + sovSubscription(uint64(l)) 4200 } 4201 } 4202 return n 4203 } 4204 4205 func (m *EventTrigger) Size() (n int) { 4206 if m == nil { 4207 return 0 4208 } 4209 var l int 4210 _ = l 4211 l = len(m.Payload) 4212 if l > 0 { 4213 n += 1 + l + sovSubscription(uint64(l)) 4214 } 4215 return n 4216 } 4217 4218 func (m *Action) Size() (n int) { 4219 if m == nil { 4220 return 0 4221 } 4222 var l int 4223 _ = l 4224 if m.ID != 0 { 4225 n += 1 + sovSubscription(uint64(m.ID)) 4226 } 4227 if m.Type != 0 { 4228 n += 1 + sovSubscription(uint64(m.Type)) 4229 } 4230 l = len(m.Payload) 4231 if l > 0 { 4232 n += 1 + l + sovSubscription(uint64(l)) 4233 } 4234 if m.SubsequentAction != nil { 4235 l = m.SubsequentAction.Size() 4236 n += 1 + l + sovSubscription(uint64(l)) 4237 } 4238 return n 4239 } 4240 4241 func (m *SubsequentAction) Size() (n int) { 4242 if m == nil { 4243 return 0 4244 } 4245 var l int 4246 _ = l 4247 if m.Type != 0 { 4248 n += 1 + sovSubscription(uint64(m.Type)) 4249 } 4250 if m.TimeToWait != 0 { 4251 n += 1 + sovSubscription(uint64(m.TimeToWait)) 4252 } 4253 return n 4254 } 4255 4256 func (m *Acknowledgement) Size() (n int) { 4257 if m == nil { 4258 return 0 4259 } 4260 var l int 4261 _ = l 4262 l = len(m.ChannelID) 4263 if l > 0 { 4264 n += 1 + l + sovSubscription(uint64(l)) 4265 } 4266 return n 4267 } 4268 4269 func (m *Indication) Size() (n int) { 4270 if m == nil { 4271 return 0 4272 } 4273 var l int 4274 _ = l 4275 l = len(m.Header) 4276 if l > 0 { 4277 n += 1 + l + sovSubscription(uint64(l)) 4278 } 4279 l = len(m.Payload) 4280 if l > 0 { 4281 n += 1 + l + sovSubscription(uint64(l)) 4282 } 4283 l = len(m.CallProcessId) 4284 if l > 0 { 4285 n += 1 + l + sovSubscription(uint64(l)) 4286 } 4287 return n 4288 } 4289 4290 func (m *GetChannelRequest) Size() (n int) { 4291 if m == nil { 4292 return 0 4293 } 4294 var l int 4295 _ = l 4296 l = len(m.ChannelID) 4297 if l > 0 { 4298 n += 1 + l + sovSubscription(uint64(l)) 4299 } 4300 return n 4301 } 4302 4303 func (m *GetChannelResponse) Size() (n int) { 4304 if m == nil { 4305 return 0 4306 } 4307 var l int 4308 _ = l 4309 l = m.Channel.Size() 4310 n += 1 + l + sovSubscription(uint64(l)) 4311 return n 4312 } 4313 4314 func (m *ListChannelsRequest) Size() (n int) { 4315 if m == nil { 4316 return 0 4317 } 4318 var l int 4319 _ = l 4320 return n 4321 } 4322 4323 func (m *ListChannelsResponse) Size() (n int) { 4324 if m == nil { 4325 return 0 4326 } 4327 var l int 4328 _ = l 4329 if len(m.Channels) > 0 { 4330 for _, e := range m.Channels { 4331 l = e.Size() 4332 n += 1 + l + sovSubscription(uint64(l)) 4333 } 4334 } 4335 return n 4336 } 4337 4338 func (m *WatchChannelsRequest) Size() (n int) { 4339 if m == nil { 4340 return 0 4341 } 4342 var l int 4343 _ = l 4344 if m.NoReplay { 4345 n += 2 4346 } 4347 return n 4348 } 4349 4350 func (m *WatchChannelsResponse) Size() (n int) { 4351 if m == nil { 4352 return 0 4353 } 4354 var l int 4355 _ = l 4356 l = m.Event.Size() 4357 n += 1 + l + sovSubscription(uint64(l)) 4358 return n 4359 } 4360 4361 func (m *ChannelEvent) Size() (n int) { 4362 if m == nil { 4363 return 0 4364 } 4365 var l int 4366 _ = l 4367 if m.Type != 0 { 4368 n += 1 + sovSubscription(uint64(m.Type)) 4369 } 4370 l = m.Channel.Size() 4371 n += 1 + l + sovSubscription(uint64(l)) 4372 return n 4373 } 4374 4375 func (m *GetSubscriptionRequest) Size() (n int) { 4376 if m == nil { 4377 return 0 4378 } 4379 var l int 4380 _ = l 4381 l = len(m.SubscriptionID) 4382 if l > 0 { 4383 n += 1 + l + sovSubscription(uint64(l)) 4384 } 4385 return n 4386 } 4387 4388 func (m *GetSubscriptionResponse) Size() (n int) { 4389 if m == nil { 4390 return 0 4391 } 4392 var l int 4393 _ = l 4394 l = m.Subscription.Size() 4395 n += 1 + l + sovSubscription(uint64(l)) 4396 return n 4397 } 4398 4399 func (m *ListSubscriptionsRequest) Size() (n int) { 4400 if m == nil { 4401 return 0 4402 } 4403 var l int 4404 _ = l 4405 return n 4406 } 4407 4408 func (m *ListSubscriptionsResponse) Size() (n int) { 4409 if m == nil { 4410 return 0 4411 } 4412 var l int 4413 _ = l 4414 if len(m.Subscriptions) > 0 { 4415 for _, e := range m.Subscriptions { 4416 l = e.Size() 4417 n += 1 + l + sovSubscription(uint64(l)) 4418 } 4419 } 4420 return n 4421 } 4422 4423 func (m *WatchSubscriptionsRequest) Size() (n int) { 4424 if m == nil { 4425 return 0 4426 } 4427 var l int 4428 _ = l 4429 if m.NoReplay { 4430 n += 2 4431 } 4432 return n 4433 } 4434 4435 func (m *WatchSubscriptionsResponse) Size() (n int) { 4436 if m == nil { 4437 return 0 4438 } 4439 var l int 4440 _ = l 4441 l = m.Event.Size() 4442 n += 1 + l + sovSubscription(uint64(l)) 4443 return n 4444 } 4445 4446 func (m *SubscriptionEvent) Size() (n int) { 4447 if m == nil { 4448 return 0 4449 } 4450 var l int 4451 _ = l 4452 if m.Type != 0 { 4453 n += 1 + sovSubscription(uint64(m.Type)) 4454 } 4455 l = m.Subscription.Size() 4456 n += 1 + l + sovSubscription(uint64(l)) 4457 return n 4458 } 4459 4460 func (m *ChannelMeta) Size() (n int) { 4461 if m == nil { 4462 return 0 4463 } 4464 var l int 4465 _ = l 4466 l = len(m.AppID) 4467 if l > 0 { 4468 n += 1 + l + sovSubscription(uint64(l)) 4469 } 4470 l = len(m.AppInstanceID) 4471 if l > 0 { 4472 n += 1 + l + sovSubscription(uint64(l)) 4473 } 4474 l = len(m.E2NodeID) 4475 if l > 0 { 4476 n += 1 + l + sovSubscription(uint64(l)) 4477 } 4478 l = len(m.TransactionID) 4479 if l > 0 { 4480 n += 1 + l + sovSubscription(uint64(l)) 4481 } 4482 l = len(m.SubscriptionID) 4483 if l > 0 { 4484 n += 1 + l + sovSubscription(uint64(l)) 4485 } 4486 l = m.ServiceModel.Size() 4487 n += 1 + l + sovSubscription(uint64(l)) 4488 if m.Encoding != 0 { 4489 n += 1 + sovSubscription(uint64(m.Encoding)) 4490 } 4491 if m.Revision != 0 { 4492 n += 1 + sovSubscription(uint64(m.Revision)) 4493 } 4494 if len(m.Finalizers) > 0 { 4495 for _, s := range m.Finalizers { 4496 l = len(s) 4497 n += 1 + l + sovSubscription(uint64(l)) 4498 } 4499 } 4500 return n 4501 } 4502 4503 func (m *Channel) Size() (n int) { 4504 if m == nil { 4505 return 0 4506 } 4507 var l int 4508 _ = l 4509 l = len(m.ID) 4510 if l > 0 { 4511 n += 1 + l + sovSubscription(uint64(l)) 4512 } 4513 l = m.ChannelMeta.Size() 4514 n += 1 + l + sovSubscription(uint64(l)) 4515 l = m.Spec.Size() 4516 n += 1 + l + sovSubscription(uint64(l)) 4517 l = m.Status.Size() 4518 n += 1 + l + sovSubscription(uint64(l)) 4519 return n 4520 } 4521 4522 func (m *ChannelSpec) Size() (n int) { 4523 if m == nil { 4524 return 0 4525 } 4526 var l int 4527 _ = l 4528 l = m.SubscriptionSpec.Size() 4529 n += 1 + l + sovSubscription(uint64(l)) 4530 if m.TransactionTimeout != nil { 4531 l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TransactionTimeout) 4532 n += 1 + l + sovSubscription(uint64(l)) 4533 } 4534 return n 4535 } 4536 4537 func (m *ChannelStatus) Size() (n int) { 4538 if m == nil { 4539 return 0 4540 } 4541 var l int 4542 _ = l 4543 if m.Phase != 0 { 4544 n += 1 + sovSubscription(uint64(m.Phase)) 4545 } 4546 if m.State != 0 { 4547 n += 1 + sovSubscription(uint64(m.State)) 4548 } 4549 if m.Error != nil { 4550 l = m.Error.Size() 4551 n += 1 + l + sovSubscription(uint64(l)) 4552 } 4553 if m.Timestamp != nil { 4554 l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.Timestamp) 4555 n += 1 + l + sovSubscription(uint64(l)) 4556 } 4557 if m.Term != 0 { 4558 n += 1 + sovSubscription(uint64(m.Term)) 4559 } 4560 l = len(m.Master) 4561 if l > 0 { 4562 n += 1 + l + sovSubscription(uint64(l)) 4563 } 4564 return n 4565 } 4566 4567 func (m *SubscriptionMeta) Size() (n int) { 4568 if m == nil { 4569 return 0 4570 } 4571 var l int 4572 _ = l 4573 l = len(m.E2NodeID) 4574 if l > 0 { 4575 n += 1 + l + sovSubscription(uint64(l)) 4576 } 4577 l = m.ServiceModel.Size() 4578 n += 1 + l + sovSubscription(uint64(l)) 4579 if m.Encoding != 0 { 4580 n += 1 + sovSubscription(uint64(m.Encoding)) 4581 } 4582 if m.Revision != 0 { 4583 n += 1 + sovSubscription(uint64(m.Revision)) 4584 } 4585 if len(m.Finalizers) > 0 { 4586 for _, s := range m.Finalizers { 4587 l = len(s) 4588 n += 1 + l + sovSubscription(uint64(l)) 4589 } 4590 } 4591 return n 4592 } 4593 4594 func (m *Subscription) Size() (n int) { 4595 if m == nil { 4596 return 0 4597 } 4598 var l int 4599 _ = l 4600 l = len(m.ID) 4601 if l > 0 { 4602 n += 1 + l + sovSubscription(uint64(l)) 4603 } 4604 l = m.SubscriptionMeta.Size() 4605 n += 1 + l + sovSubscription(uint64(l)) 4606 l = m.Spec.Size() 4607 n += 1 + l + sovSubscription(uint64(l)) 4608 l = m.Status.Size() 4609 n += 1 + l + sovSubscription(uint64(l)) 4610 return n 4611 } 4612 4613 func (m *SubscriptionStatus) Size() (n int) { 4614 if m == nil { 4615 return 0 4616 } 4617 var l int 4618 _ = l 4619 if m.Phase != 0 { 4620 n += 1 + sovSubscription(uint64(m.Phase)) 4621 } 4622 if m.State != 0 { 4623 n += 1 + sovSubscription(uint64(m.State)) 4624 } 4625 if m.Error != nil { 4626 l = m.Error.Size() 4627 n += 1 + l + sovSubscription(uint64(l)) 4628 } 4629 if len(m.Channels) > 0 { 4630 for _, s := range m.Channels { 4631 l = len(s) 4632 n += 1 + l + sovSubscription(uint64(l)) 4633 } 4634 } 4635 if m.Term != 0 { 4636 n += 1 + sovSubscription(uint64(m.Term)) 4637 } 4638 l = len(m.Master) 4639 if l > 0 { 4640 n += 1 + l + sovSubscription(uint64(l)) 4641 } 4642 return n 4643 } 4644 4645 func sovSubscription(x uint64) (n int) { 4646 return (math_bits.Len64(x|1) + 6) / 7 4647 } 4648 func sozSubscription(x uint64) (n int) { 4649 return sovSubscription(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 4650 } 4651 func (m *SubscribeRequest) Unmarshal(dAtA []byte) error { 4652 l := len(dAtA) 4653 iNdEx := 0 4654 for iNdEx < l { 4655 preIndex := iNdEx 4656 var wire uint64 4657 for shift := uint(0); ; shift += 7 { 4658 if shift >= 64 { 4659 return ErrIntOverflowSubscription 4660 } 4661 if iNdEx >= l { 4662 return io.ErrUnexpectedEOF 4663 } 4664 b := dAtA[iNdEx] 4665 iNdEx++ 4666 wire |= uint64(b&0x7F) << shift 4667 if b < 0x80 { 4668 break 4669 } 4670 } 4671 fieldNum := int32(wire >> 3) 4672 wireType := int(wire & 0x7) 4673 if wireType == 4 { 4674 return fmt.Errorf("proto: SubscribeRequest: wiretype end group for non-group") 4675 } 4676 if fieldNum <= 0 { 4677 return fmt.Errorf("proto: SubscribeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4678 } 4679 switch fieldNum { 4680 case 1: 4681 if wireType != 2 { 4682 return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) 4683 } 4684 var msglen int 4685 for shift := uint(0); ; shift += 7 { 4686 if shift >= 64 { 4687 return ErrIntOverflowSubscription 4688 } 4689 if iNdEx >= l { 4690 return io.ErrUnexpectedEOF 4691 } 4692 b := dAtA[iNdEx] 4693 iNdEx++ 4694 msglen |= int(b&0x7F) << shift 4695 if b < 0x80 { 4696 break 4697 } 4698 } 4699 if msglen < 0 { 4700 return ErrInvalidLengthSubscription 4701 } 4702 postIndex := iNdEx + msglen 4703 if postIndex < 0 { 4704 return ErrInvalidLengthSubscription 4705 } 4706 if postIndex > l { 4707 return io.ErrUnexpectedEOF 4708 } 4709 if err := m.Headers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4710 return err 4711 } 4712 iNdEx = postIndex 4713 case 2: 4714 if wireType != 2 { 4715 return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType) 4716 } 4717 var stringLen uint64 4718 for shift := uint(0); ; shift += 7 { 4719 if shift >= 64 { 4720 return ErrIntOverflowSubscription 4721 } 4722 if iNdEx >= l { 4723 return io.ErrUnexpectedEOF 4724 } 4725 b := dAtA[iNdEx] 4726 iNdEx++ 4727 stringLen |= uint64(b&0x7F) << shift 4728 if b < 0x80 { 4729 break 4730 } 4731 } 4732 intStringLen := int(stringLen) 4733 if intStringLen < 0 { 4734 return ErrInvalidLengthSubscription 4735 } 4736 postIndex := iNdEx + intStringLen 4737 if postIndex < 0 { 4738 return ErrInvalidLengthSubscription 4739 } 4740 if postIndex > l { 4741 return io.ErrUnexpectedEOF 4742 } 4743 m.TransactionID = TransactionID(dAtA[iNdEx:postIndex]) 4744 iNdEx = postIndex 4745 case 3: 4746 if wireType != 2 { 4747 return fmt.Errorf("proto: wrong wireType = %d for field Subscription", wireType) 4748 } 4749 var msglen int 4750 for shift := uint(0); ; shift += 7 { 4751 if shift >= 64 { 4752 return ErrIntOverflowSubscription 4753 } 4754 if iNdEx >= l { 4755 return io.ErrUnexpectedEOF 4756 } 4757 b := dAtA[iNdEx] 4758 iNdEx++ 4759 msglen |= int(b&0x7F) << shift 4760 if b < 0x80 { 4761 break 4762 } 4763 } 4764 if msglen < 0 { 4765 return ErrInvalidLengthSubscription 4766 } 4767 postIndex := iNdEx + msglen 4768 if postIndex < 0 { 4769 return ErrInvalidLengthSubscription 4770 } 4771 if postIndex > l { 4772 return io.ErrUnexpectedEOF 4773 } 4774 if err := m.Subscription.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4775 return err 4776 } 4777 iNdEx = postIndex 4778 case 4: 4779 if wireType != 2 { 4780 return fmt.Errorf("proto: wrong wireType = %d for field TransactionTimeout", wireType) 4781 } 4782 var msglen int 4783 for shift := uint(0); ; shift += 7 { 4784 if shift >= 64 { 4785 return ErrIntOverflowSubscription 4786 } 4787 if iNdEx >= l { 4788 return io.ErrUnexpectedEOF 4789 } 4790 b := dAtA[iNdEx] 4791 iNdEx++ 4792 msglen |= int(b&0x7F) << shift 4793 if b < 0x80 { 4794 break 4795 } 4796 } 4797 if msglen < 0 { 4798 return ErrInvalidLengthSubscription 4799 } 4800 postIndex := iNdEx + msglen 4801 if postIndex < 0 { 4802 return ErrInvalidLengthSubscription 4803 } 4804 if postIndex > l { 4805 return io.ErrUnexpectedEOF 4806 } 4807 if m.TransactionTimeout == nil { 4808 m.TransactionTimeout = new(time.Duration) 4809 } 4810 if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.TransactionTimeout, dAtA[iNdEx:postIndex]); err != nil { 4811 return err 4812 } 4813 iNdEx = postIndex 4814 default: 4815 iNdEx = preIndex 4816 skippy, err := skipSubscription(dAtA[iNdEx:]) 4817 if err != nil { 4818 return err 4819 } 4820 if (skippy < 0) || (iNdEx+skippy) < 0 { 4821 return ErrInvalidLengthSubscription 4822 } 4823 if (iNdEx + skippy) > l { 4824 return io.ErrUnexpectedEOF 4825 } 4826 iNdEx += skippy 4827 } 4828 } 4829 4830 if iNdEx > l { 4831 return io.ErrUnexpectedEOF 4832 } 4833 return nil 4834 } 4835 func (m *SubscribeResponse) Unmarshal(dAtA []byte) error { 4836 l := len(dAtA) 4837 iNdEx := 0 4838 for iNdEx < l { 4839 preIndex := iNdEx 4840 var wire uint64 4841 for shift := uint(0); ; shift += 7 { 4842 if shift >= 64 { 4843 return ErrIntOverflowSubscription 4844 } 4845 if iNdEx >= l { 4846 return io.ErrUnexpectedEOF 4847 } 4848 b := dAtA[iNdEx] 4849 iNdEx++ 4850 wire |= uint64(b&0x7F) << shift 4851 if b < 0x80 { 4852 break 4853 } 4854 } 4855 fieldNum := int32(wire >> 3) 4856 wireType := int(wire & 0x7) 4857 if wireType == 4 { 4858 return fmt.Errorf("proto: SubscribeResponse: wiretype end group for non-group") 4859 } 4860 if fieldNum <= 0 { 4861 return fmt.Errorf("proto: SubscribeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4862 } 4863 switch fieldNum { 4864 case 1: 4865 if wireType != 2 { 4866 return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) 4867 } 4868 var msglen int 4869 for shift := uint(0); ; shift += 7 { 4870 if shift >= 64 { 4871 return ErrIntOverflowSubscription 4872 } 4873 if iNdEx >= l { 4874 return io.ErrUnexpectedEOF 4875 } 4876 b := dAtA[iNdEx] 4877 iNdEx++ 4878 msglen |= int(b&0x7F) << shift 4879 if b < 0x80 { 4880 break 4881 } 4882 } 4883 if msglen < 0 { 4884 return ErrInvalidLengthSubscription 4885 } 4886 postIndex := iNdEx + msglen 4887 if postIndex < 0 { 4888 return ErrInvalidLengthSubscription 4889 } 4890 if postIndex > l { 4891 return io.ErrUnexpectedEOF 4892 } 4893 if err := m.Headers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4894 return err 4895 } 4896 iNdEx = postIndex 4897 case 2: 4898 if wireType != 2 { 4899 return fmt.Errorf("proto: wrong wireType = %d for field Ack", wireType) 4900 } 4901 var msglen int 4902 for shift := uint(0); ; shift += 7 { 4903 if shift >= 64 { 4904 return ErrIntOverflowSubscription 4905 } 4906 if iNdEx >= l { 4907 return io.ErrUnexpectedEOF 4908 } 4909 b := dAtA[iNdEx] 4910 iNdEx++ 4911 msglen |= int(b&0x7F) << shift 4912 if b < 0x80 { 4913 break 4914 } 4915 } 4916 if msglen < 0 { 4917 return ErrInvalidLengthSubscription 4918 } 4919 postIndex := iNdEx + msglen 4920 if postIndex < 0 { 4921 return ErrInvalidLengthSubscription 4922 } 4923 if postIndex > l { 4924 return io.ErrUnexpectedEOF 4925 } 4926 v := &Acknowledgement{} 4927 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4928 return err 4929 } 4930 m.Message = &SubscribeResponse_Ack{v} 4931 iNdEx = postIndex 4932 case 3: 4933 if wireType != 2 { 4934 return fmt.Errorf("proto: wrong wireType = %d for field Indication", wireType) 4935 } 4936 var msglen int 4937 for shift := uint(0); ; shift += 7 { 4938 if shift >= 64 { 4939 return ErrIntOverflowSubscription 4940 } 4941 if iNdEx >= l { 4942 return io.ErrUnexpectedEOF 4943 } 4944 b := dAtA[iNdEx] 4945 iNdEx++ 4946 msglen |= int(b&0x7F) << shift 4947 if b < 0x80 { 4948 break 4949 } 4950 } 4951 if msglen < 0 { 4952 return ErrInvalidLengthSubscription 4953 } 4954 postIndex := iNdEx + msglen 4955 if postIndex < 0 { 4956 return ErrInvalidLengthSubscription 4957 } 4958 if postIndex > l { 4959 return io.ErrUnexpectedEOF 4960 } 4961 v := &Indication{} 4962 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4963 return err 4964 } 4965 m.Message = &SubscribeResponse_Indication{v} 4966 iNdEx = postIndex 4967 default: 4968 iNdEx = preIndex 4969 skippy, err := skipSubscription(dAtA[iNdEx:]) 4970 if err != nil { 4971 return err 4972 } 4973 if (skippy < 0) || (iNdEx+skippy) < 0 { 4974 return ErrInvalidLengthSubscription 4975 } 4976 if (iNdEx + skippy) > l { 4977 return io.ErrUnexpectedEOF 4978 } 4979 iNdEx += skippy 4980 } 4981 } 4982 4983 if iNdEx > l { 4984 return io.ErrUnexpectedEOF 4985 } 4986 return nil 4987 } 4988 func (m *UnsubscribeRequest) Unmarshal(dAtA []byte) error { 4989 l := len(dAtA) 4990 iNdEx := 0 4991 for iNdEx < l { 4992 preIndex := iNdEx 4993 var wire uint64 4994 for shift := uint(0); ; shift += 7 { 4995 if shift >= 64 { 4996 return ErrIntOverflowSubscription 4997 } 4998 if iNdEx >= l { 4999 return io.ErrUnexpectedEOF 5000 } 5001 b := dAtA[iNdEx] 5002 iNdEx++ 5003 wire |= uint64(b&0x7F) << shift 5004 if b < 0x80 { 5005 break 5006 } 5007 } 5008 fieldNum := int32(wire >> 3) 5009 wireType := int(wire & 0x7) 5010 if wireType == 4 { 5011 return fmt.Errorf("proto: UnsubscribeRequest: wiretype end group for non-group") 5012 } 5013 if fieldNum <= 0 { 5014 return fmt.Errorf("proto: UnsubscribeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5015 } 5016 switch fieldNum { 5017 case 1: 5018 if wireType != 2 { 5019 return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) 5020 } 5021 var msglen int 5022 for shift := uint(0); ; shift += 7 { 5023 if shift >= 64 { 5024 return ErrIntOverflowSubscription 5025 } 5026 if iNdEx >= l { 5027 return io.ErrUnexpectedEOF 5028 } 5029 b := dAtA[iNdEx] 5030 iNdEx++ 5031 msglen |= int(b&0x7F) << shift 5032 if b < 0x80 { 5033 break 5034 } 5035 } 5036 if msglen < 0 { 5037 return ErrInvalidLengthSubscription 5038 } 5039 postIndex := iNdEx + msglen 5040 if postIndex < 0 { 5041 return ErrInvalidLengthSubscription 5042 } 5043 if postIndex > l { 5044 return io.ErrUnexpectedEOF 5045 } 5046 if err := m.Headers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5047 return err 5048 } 5049 iNdEx = postIndex 5050 case 2: 5051 if wireType != 2 { 5052 return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType) 5053 } 5054 var stringLen uint64 5055 for shift := uint(0); ; shift += 7 { 5056 if shift >= 64 { 5057 return ErrIntOverflowSubscription 5058 } 5059 if iNdEx >= l { 5060 return io.ErrUnexpectedEOF 5061 } 5062 b := dAtA[iNdEx] 5063 iNdEx++ 5064 stringLen |= uint64(b&0x7F) << shift 5065 if b < 0x80 { 5066 break 5067 } 5068 } 5069 intStringLen := int(stringLen) 5070 if intStringLen < 0 { 5071 return ErrInvalidLengthSubscription 5072 } 5073 postIndex := iNdEx + intStringLen 5074 if postIndex < 0 { 5075 return ErrInvalidLengthSubscription 5076 } 5077 if postIndex > l { 5078 return io.ErrUnexpectedEOF 5079 } 5080 m.TransactionID = TransactionID(dAtA[iNdEx:postIndex]) 5081 iNdEx = postIndex 5082 default: 5083 iNdEx = preIndex 5084 skippy, err := skipSubscription(dAtA[iNdEx:]) 5085 if err != nil { 5086 return err 5087 } 5088 if (skippy < 0) || (iNdEx+skippy) < 0 { 5089 return ErrInvalidLengthSubscription 5090 } 5091 if (iNdEx + skippy) > l { 5092 return io.ErrUnexpectedEOF 5093 } 5094 iNdEx += skippy 5095 } 5096 } 5097 5098 if iNdEx > l { 5099 return io.ErrUnexpectedEOF 5100 } 5101 return nil 5102 } 5103 func (m *UnsubscribeResponse) Unmarshal(dAtA []byte) error { 5104 l := len(dAtA) 5105 iNdEx := 0 5106 for iNdEx < l { 5107 preIndex := iNdEx 5108 var wire uint64 5109 for shift := uint(0); ; shift += 7 { 5110 if shift >= 64 { 5111 return ErrIntOverflowSubscription 5112 } 5113 if iNdEx >= l { 5114 return io.ErrUnexpectedEOF 5115 } 5116 b := dAtA[iNdEx] 5117 iNdEx++ 5118 wire |= uint64(b&0x7F) << shift 5119 if b < 0x80 { 5120 break 5121 } 5122 } 5123 fieldNum := int32(wire >> 3) 5124 wireType := int(wire & 0x7) 5125 if wireType == 4 { 5126 return fmt.Errorf("proto: UnsubscribeResponse: wiretype end group for non-group") 5127 } 5128 if fieldNum <= 0 { 5129 return fmt.Errorf("proto: UnsubscribeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5130 } 5131 switch fieldNum { 5132 case 1: 5133 if wireType != 2 { 5134 return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) 5135 } 5136 var msglen int 5137 for shift := uint(0); ; shift += 7 { 5138 if shift >= 64 { 5139 return ErrIntOverflowSubscription 5140 } 5141 if iNdEx >= l { 5142 return io.ErrUnexpectedEOF 5143 } 5144 b := dAtA[iNdEx] 5145 iNdEx++ 5146 msglen |= int(b&0x7F) << shift 5147 if b < 0x80 { 5148 break 5149 } 5150 } 5151 if msglen < 0 { 5152 return ErrInvalidLengthSubscription 5153 } 5154 postIndex := iNdEx + msglen 5155 if postIndex < 0 { 5156 return ErrInvalidLengthSubscription 5157 } 5158 if postIndex > l { 5159 return io.ErrUnexpectedEOF 5160 } 5161 if err := m.Headers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5162 return err 5163 } 5164 iNdEx = postIndex 5165 default: 5166 iNdEx = preIndex 5167 skippy, err := skipSubscription(dAtA[iNdEx:]) 5168 if err != nil { 5169 return err 5170 } 5171 if (skippy < 0) || (iNdEx+skippy) < 0 { 5172 return ErrInvalidLengthSubscription 5173 } 5174 if (iNdEx + skippy) > l { 5175 return io.ErrUnexpectedEOF 5176 } 5177 iNdEx += skippy 5178 } 5179 } 5180 5181 if iNdEx > l { 5182 return io.ErrUnexpectedEOF 5183 } 5184 return nil 5185 } 5186 func (m *SubscriptionSpec) Unmarshal(dAtA []byte) error { 5187 l := len(dAtA) 5188 iNdEx := 0 5189 for iNdEx < l { 5190 preIndex := iNdEx 5191 var wire uint64 5192 for shift := uint(0); ; shift += 7 { 5193 if shift >= 64 { 5194 return ErrIntOverflowSubscription 5195 } 5196 if iNdEx >= l { 5197 return io.ErrUnexpectedEOF 5198 } 5199 b := dAtA[iNdEx] 5200 iNdEx++ 5201 wire |= uint64(b&0x7F) << shift 5202 if b < 0x80 { 5203 break 5204 } 5205 } 5206 fieldNum := int32(wire >> 3) 5207 wireType := int(wire & 0x7) 5208 if wireType == 4 { 5209 return fmt.Errorf("proto: SubscriptionSpec: wiretype end group for non-group") 5210 } 5211 if fieldNum <= 0 { 5212 return fmt.Errorf("proto: SubscriptionSpec: illegal tag %d (wire type %d)", fieldNum, wire) 5213 } 5214 switch fieldNum { 5215 case 1: 5216 if wireType != 2 { 5217 return fmt.Errorf("proto: wrong wireType = %d for field EventTrigger", wireType) 5218 } 5219 var msglen int 5220 for shift := uint(0); ; shift += 7 { 5221 if shift >= 64 { 5222 return ErrIntOverflowSubscription 5223 } 5224 if iNdEx >= l { 5225 return io.ErrUnexpectedEOF 5226 } 5227 b := dAtA[iNdEx] 5228 iNdEx++ 5229 msglen |= int(b&0x7F) << shift 5230 if b < 0x80 { 5231 break 5232 } 5233 } 5234 if msglen < 0 { 5235 return ErrInvalidLengthSubscription 5236 } 5237 postIndex := iNdEx + msglen 5238 if postIndex < 0 { 5239 return ErrInvalidLengthSubscription 5240 } 5241 if postIndex > l { 5242 return io.ErrUnexpectedEOF 5243 } 5244 if err := m.EventTrigger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5245 return err 5246 } 5247 iNdEx = postIndex 5248 case 2: 5249 if wireType != 2 { 5250 return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) 5251 } 5252 var msglen int 5253 for shift := uint(0); ; shift += 7 { 5254 if shift >= 64 { 5255 return ErrIntOverflowSubscription 5256 } 5257 if iNdEx >= l { 5258 return io.ErrUnexpectedEOF 5259 } 5260 b := dAtA[iNdEx] 5261 iNdEx++ 5262 msglen |= int(b&0x7F) << shift 5263 if b < 0x80 { 5264 break 5265 } 5266 } 5267 if msglen < 0 { 5268 return ErrInvalidLengthSubscription 5269 } 5270 postIndex := iNdEx + msglen 5271 if postIndex < 0 { 5272 return ErrInvalidLengthSubscription 5273 } 5274 if postIndex > l { 5275 return io.ErrUnexpectedEOF 5276 } 5277 m.Actions = append(m.Actions, Action{}) 5278 if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5279 return err 5280 } 5281 iNdEx = postIndex 5282 default: 5283 iNdEx = preIndex 5284 skippy, err := skipSubscription(dAtA[iNdEx:]) 5285 if err != nil { 5286 return err 5287 } 5288 if (skippy < 0) || (iNdEx+skippy) < 0 { 5289 return ErrInvalidLengthSubscription 5290 } 5291 if (iNdEx + skippy) > l { 5292 return io.ErrUnexpectedEOF 5293 } 5294 iNdEx += skippy 5295 } 5296 } 5297 5298 if iNdEx > l { 5299 return io.ErrUnexpectedEOF 5300 } 5301 return nil 5302 } 5303 func (m *EventTrigger) Unmarshal(dAtA []byte) error { 5304 l := len(dAtA) 5305 iNdEx := 0 5306 for iNdEx < l { 5307 preIndex := iNdEx 5308 var wire uint64 5309 for shift := uint(0); ; shift += 7 { 5310 if shift >= 64 { 5311 return ErrIntOverflowSubscription 5312 } 5313 if iNdEx >= l { 5314 return io.ErrUnexpectedEOF 5315 } 5316 b := dAtA[iNdEx] 5317 iNdEx++ 5318 wire |= uint64(b&0x7F) << shift 5319 if b < 0x80 { 5320 break 5321 } 5322 } 5323 fieldNum := int32(wire >> 3) 5324 wireType := int(wire & 0x7) 5325 if wireType == 4 { 5326 return fmt.Errorf("proto: EventTrigger: wiretype end group for non-group") 5327 } 5328 if fieldNum <= 0 { 5329 return fmt.Errorf("proto: EventTrigger: illegal tag %d (wire type %d)", fieldNum, wire) 5330 } 5331 switch fieldNum { 5332 case 1: 5333 if wireType != 2 { 5334 return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) 5335 } 5336 var byteLen int 5337 for shift := uint(0); ; shift += 7 { 5338 if shift >= 64 { 5339 return ErrIntOverflowSubscription 5340 } 5341 if iNdEx >= l { 5342 return io.ErrUnexpectedEOF 5343 } 5344 b := dAtA[iNdEx] 5345 iNdEx++ 5346 byteLen |= int(b&0x7F) << shift 5347 if b < 0x80 { 5348 break 5349 } 5350 } 5351 if byteLen < 0 { 5352 return ErrInvalidLengthSubscription 5353 } 5354 postIndex := iNdEx + byteLen 5355 if postIndex < 0 { 5356 return ErrInvalidLengthSubscription 5357 } 5358 if postIndex > l { 5359 return io.ErrUnexpectedEOF 5360 } 5361 m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) 5362 if m.Payload == nil { 5363 m.Payload = []byte{} 5364 } 5365 iNdEx = postIndex 5366 default: 5367 iNdEx = preIndex 5368 skippy, err := skipSubscription(dAtA[iNdEx:]) 5369 if err != nil { 5370 return err 5371 } 5372 if (skippy < 0) || (iNdEx+skippy) < 0 { 5373 return ErrInvalidLengthSubscription 5374 } 5375 if (iNdEx + skippy) > l { 5376 return io.ErrUnexpectedEOF 5377 } 5378 iNdEx += skippy 5379 } 5380 } 5381 5382 if iNdEx > l { 5383 return io.ErrUnexpectedEOF 5384 } 5385 return nil 5386 } 5387 func (m *Action) Unmarshal(dAtA []byte) error { 5388 l := len(dAtA) 5389 iNdEx := 0 5390 for iNdEx < l { 5391 preIndex := iNdEx 5392 var wire uint64 5393 for shift := uint(0); ; shift += 7 { 5394 if shift >= 64 { 5395 return ErrIntOverflowSubscription 5396 } 5397 if iNdEx >= l { 5398 return io.ErrUnexpectedEOF 5399 } 5400 b := dAtA[iNdEx] 5401 iNdEx++ 5402 wire |= uint64(b&0x7F) << shift 5403 if b < 0x80 { 5404 break 5405 } 5406 } 5407 fieldNum := int32(wire >> 3) 5408 wireType := int(wire & 0x7) 5409 if wireType == 4 { 5410 return fmt.Errorf("proto: Action: wiretype end group for non-group") 5411 } 5412 if fieldNum <= 0 { 5413 return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) 5414 } 5415 switch fieldNum { 5416 case 1: 5417 if wireType != 0 { 5418 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5419 } 5420 m.ID = 0 5421 for shift := uint(0); ; shift += 7 { 5422 if shift >= 64 { 5423 return ErrIntOverflowSubscription 5424 } 5425 if iNdEx >= l { 5426 return io.ErrUnexpectedEOF 5427 } 5428 b := dAtA[iNdEx] 5429 iNdEx++ 5430 m.ID |= int32(b&0x7F) << shift 5431 if b < 0x80 { 5432 break 5433 } 5434 } 5435 case 2: 5436 if wireType != 0 { 5437 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 5438 } 5439 m.Type = 0 5440 for shift := uint(0); ; shift += 7 { 5441 if shift >= 64 { 5442 return ErrIntOverflowSubscription 5443 } 5444 if iNdEx >= l { 5445 return io.ErrUnexpectedEOF 5446 } 5447 b := dAtA[iNdEx] 5448 iNdEx++ 5449 m.Type |= ActionType(b&0x7F) << shift 5450 if b < 0x80 { 5451 break 5452 } 5453 } 5454 case 3: 5455 if wireType != 2 { 5456 return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) 5457 } 5458 var byteLen int 5459 for shift := uint(0); ; shift += 7 { 5460 if shift >= 64 { 5461 return ErrIntOverflowSubscription 5462 } 5463 if iNdEx >= l { 5464 return io.ErrUnexpectedEOF 5465 } 5466 b := dAtA[iNdEx] 5467 iNdEx++ 5468 byteLen |= int(b&0x7F) << shift 5469 if b < 0x80 { 5470 break 5471 } 5472 } 5473 if byteLen < 0 { 5474 return ErrInvalidLengthSubscription 5475 } 5476 postIndex := iNdEx + byteLen 5477 if postIndex < 0 { 5478 return ErrInvalidLengthSubscription 5479 } 5480 if postIndex > l { 5481 return io.ErrUnexpectedEOF 5482 } 5483 m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) 5484 if m.Payload == nil { 5485 m.Payload = []byte{} 5486 } 5487 iNdEx = postIndex 5488 case 4: 5489 if wireType != 2 { 5490 return fmt.Errorf("proto: wrong wireType = %d for field SubsequentAction", wireType) 5491 } 5492 var msglen int 5493 for shift := uint(0); ; shift += 7 { 5494 if shift >= 64 { 5495 return ErrIntOverflowSubscription 5496 } 5497 if iNdEx >= l { 5498 return io.ErrUnexpectedEOF 5499 } 5500 b := dAtA[iNdEx] 5501 iNdEx++ 5502 msglen |= int(b&0x7F) << shift 5503 if b < 0x80 { 5504 break 5505 } 5506 } 5507 if msglen < 0 { 5508 return ErrInvalidLengthSubscription 5509 } 5510 postIndex := iNdEx + msglen 5511 if postIndex < 0 { 5512 return ErrInvalidLengthSubscription 5513 } 5514 if postIndex > l { 5515 return io.ErrUnexpectedEOF 5516 } 5517 if m.SubsequentAction == nil { 5518 m.SubsequentAction = &SubsequentAction{} 5519 } 5520 if err := m.SubsequentAction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5521 return err 5522 } 5523 iNdEx = postIndex 5524 default: 5525 iNdEx = preIndex 5526 skippy, err := skipSubscription(dAtA[iNdEx:]) 5527 if err != nil { 5528 return err 5529 } 5530 if (skippy < 0) || (iNdEx+skippy) < 0 { 5531 return ErrInvalidLengthSubscription 5532 } 5533 if (iNdEx + skippy) > l { 5534 return io.ErrUnexpectedEOF 5535 } 5536 iNdEx += skippy 5537 } 5538 } 5539 5540 if iNdEx > l { 5541 return io.ErrUnexpectedEOF 5542 } 5543 return nil 5544 } 5545 func (m *SubsequentAction) Unmarshal(dAtA []byte) error { 5546 l := len(dAtA) 5547 iNdEx := 0 5548 for iNdEx < l { 5549 preIndex := iNdEx 5550 var wire uint64 5551 for shift := uint(0); ; shift += 7 { 5552 if shift >= 64 { 5553 return ErrIntOverflowSubscription 5554 } 5555 if iNdEx >= l { 5556 return io.ErrUnexpectedEOF 5557 } 5558 b := dAtA[iNdEx] 5559 iNdEx++ 5560 wire |= uint64(b&0x7F) << shift 5561 if b < 0x80 { 5562 break 5563 } 5564 } 5565 fieldNum := int32(wire >> 3) 5566 wireType := int(wire & 0x7) 5567 if wireType == 4 { 5568 return fmt.Errorf("proto: SubsequentAction: wiretype end group for non-group") 5569 } 5570 if fieldNum <= 0 { 5571 return fmt.Errorf("proto: SubsequentAction: illegal tag %d (wire type %d)", fieldNum, wire) 5572 } 5573 switch fieldNum { 5574 case 1: 5575 if wireType != 0 { 5576 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 5577 } 5578 m.Type = 0 5579 for shift := uint(0); ; shift += 7 { 5580 if shift >= 64 { 5581 return ErrIntOverflowSubscription 5582 } 5583 if iNdEx >= l { 5584 return io.ErrUnexpectedEOF 5585 } 5586 b := dAtA[iNdEx] 5587 iNdEx++ 5588 m.Type |= SubsequentActionType(b&0x7F) << shift 5589 if b < 0x80 { 5590 break 5591 } 5592 } 5593 case 2: 5594 if wireType != 0 { 5595 return fmt.Errorf("proto: wrong wireType = %d for field TimeToWait", wireType) 5596 } 5597 m.TimeToWait = 0 5598 for shift := uint(0); ; shift += 7 { 5599 if shift >= 64 { 5600 return ErrIntOverflowSubscription 5601 } 5602 if iNdEx >= l { 5603 return io.ErrUnexpectedEOF 5604 } 5605 b := dAtA[iNdEx] 5606 iNdEx++ 5607 m.TimeToWait |= TimeToWait(b&0x7F) << shift 5608 if b < 0x80 { 5609 break 5610 } 5611 } 5612 default: 5613 iNdEx = preIndex 5614 skippy, err := skipSubscription(dAtA[iNdEx:]) 5615 if err != nil { 5616 return err 5617 } 5618 if (skippy < 0) || (iNdEx+skippy) < 0 { 5619 return ErrInvalidLengthSubscription 5620 } 5621 if (iNdEx + skippy) > l { 5622 return io.ErrUnexpectedEOF 5623 } 5624 iNdEx += skippy 5625 } 5626 } 5627 5628 if iNdEx > l { 5629 return io.ErrUnexpectedEOF 5630 } 5631 return nil 5632 } 5633 func (m *Acknowledgement) Unmarshal(dAtA []byte) error { 5634 l := len(dAtA) 5635 iNdEx := 0 5636 for iNdEx < l { 5637 preIndex := iNdEx 5638 var wire uint64 5639 for shift := uint(0); ; shift += 7 { 5640 if shift >= 64 { 5641 return ErrIntOverflowSubscription 5642 } 5643 if iNdEx >= l { 5644 return io.ErrUnexpectedEOF 5645 } 5646 b := dAtA[iNdEx] 5647 iNdEx++ 5648 wire |= uint64(b&0x7F) << shift 5649 if b < 0x80 { 5650 break 5651 } 5652 } 5653 fieldNum := int32(wire >> 3) 5654 wireType := int(wire & 0x7) 5655 if wireType == 4 { 5656 return fmt.Errorf("proto: Acknowledgement: wiretype end group for non-group") 5657 } 5658 if fieldNum <= 0 { 5659 return fmt.Errorf("proto: Acknowledgement: illegal tag %d (wire type %d)", fieldNum, wire) 5660 } 5661 switch fieldNum { 5662 case 1: 5663 if wireType != 2 { 5664 return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) 5665 } 5666 var stringLen uint64 5667 for shift := uint(0); ; shift += 7 { 5668 if shift >= 64 { 5669 return ErrIntOverflowSubscription 5670 } 5671 if iNdEx >= l { 5672 return io.ErrUnexpectedEOF 5673 } 5674 b := dAtA[iNdEx] 5675 iNdEx++ 5676 stringLen |= uint64(b&0x7F) << shift 5677 if b < 0x80 { 5678 break 5679 } 5680 } 5681 intStringLen := int(stringLen) 5682 if intStringLen < 0 { 5683 return ErrInvalidLengthSubscription 5684 } 5685 postIndex := iNdEx + intStringLen 5686 if postIndex < 0 { 5687 return ErrInvalidLengthSubscription 5688 } 5689 if postIndex > l { 5690 return io.ErrUnexpectedEOF 5691 } 5692 m.ChannelID = ChannelID(dAtA[iNdEx:postIndex]) 5693 iNdEx = postIndex 5694 default: 5695 iNdEx = preIndex 5696 skippy, err := skipSubscription(dAtA[iNdEx:]) 5697 if err != nil { 5698 return err 5699 } 5700 if (skippy < 0) || (iNdEx+skippy) < 0 { 5701 return ErrInvalidLengthSubscription 5702 } 5703 if (iNdEx + skippy) > l { 5704 return io.ErrUnexpectedEOF 5705 } 5706 iNdEx += skippy 5707 } 5708 } 5709 5710 if iNdEx > l { 5711 return io.ErrUnexpectedEOF 5712 } 5713 return nil 5714 } 5715 func (m *Indication) Unmarshal(dAtA []byte) error { 5716 l := len(dAtA) 5717 iNdEx := 0 5718 for iNdEx < l { 5719 preIndex := iNdEx 5720 var wire uint64 5721 for shift := uint(0); ; shift += 7 { 5722 if shift >= 64 { 5723 return ErrIntOverflowSubscription 5724 } 5725 if iNdEx >= l { 5726 return io.ErrUnexpectedEOF 5727 } 5728 b := dAtA[iNdEx] 5729 iNdEx++ 5730 wire |= uint64(b&0x7F) << shift 5731 if b < 0x80 { 5732 break 5733 } 5734 } 5735 fieldNum := int32(wire >> 3) 5736 wireType := int(wire & 0x7) 5737 if wireType == 4 { 5738 return fmt.Errorf("proto: Indication: wiretype end group for non-group") 5739 } 5740 if fieldNum <= 0 { 5741 return fmt.Errorf("proto: Indication: illegal tag %d (wire type %d)", fieldNum, wire) 5742 } 5743 switch fieldNum { 5744 case 1: 5745 if wireType != 2 { 5746 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) 5747 } 5748 var byteLen int 5749 for shift := uint(0); ; shift += 7 { 5750 if shift >= 64 { 5751 return ErrIntOverflowSubscription 5752 } 5753 if iNdEx >= l { 5754 return io.ErrUnexpectedEOF 5755 } 5756 b := dAtA[iNdEx] 5757 iNdEx++ 5758 byteLen |= int(b&0x7F) << shift 5759 if b < 0x80 { 5760 break 5761 } 5762 } 5763 if byteLen < 0 { 5764 return ErrInvalidLengthSubscription 5765 } 5766 postIndex := iNdEx + byteLen 5767 if postIndex < 0 { 5768 return ErrInvalidLengthSubscription 5769 } 5770 if postIndex > l { 5771 return io.ErrUnexpectedEOF 5772 } 5773 m.Header = append(m.Header[:0], dAtA[iNdEx:postIndex]...) 5774 if m.Header == nil { 5775 m.Header = []byte{} 5776 } 5777 iNdEx = postIndex 5778 case 2: 5779 if wireType != 2 { 5780 return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) 5781 } 5782 var byteLen int 5783 for shift := uint(0); ; shift += 7 { 5784 if shift >= 64 { 5785 return ErrIntOverflowSubscription 5786 } 5787 if iNdEx >= l { 5788 return io.ErrUnexpectedEOF 5789 } 5790 b := dAtA[iNdEx] 5791 iNdEx++ 5792 byteLen |= int(b&0x7F) << shift 5793 if b < 0x80 { 5794 break 5795 } 5796 } 5797 if byteLen < 0 { 5798 return ErrInvalidLengthSubscription 5799 } 5800 postIndex := iNdEx + byteLen 5801 if postIndex < 0 { 5802 return ErrInvalidLengthSubscription 5803 } 5804 if postIndex > l { 5805 return io.ErrUnexpectedEOF 5806 } 5807 m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) 5808 if m.Payload == nil { 5809 m.Payload = []byte{} 5810 } 5811 iNdEx = postIndex 5812 case 3: 5813 if wireType != 2 { 5814 return fmt.Errorf("proto: wrong wireType = %d for field CallProcessId", wireType) 5815 } 5816 var byteLen int 5817 for shift := uint(0); ; shift += 7 { 5818 if shift >= 64 { 5819 return ErrIntOverflowSubscription 5820 } 5821 if iNdEx >= l { 5822 return io.ErrUnexpectedEOF 5823 } 5824 b := dAtA[iNdEx] 5825 iNdEx++ 5826 byteLen |= int(b&0x7F) << shift 5827 if b < 0x80 { 5828 break 5829 } 5830 } 5831 if byteLen < 0 { 5832 return ErrInvalidLengthSubscription 5833 } 5834 postIndex := iNdEx + byteLen 5835 if postIndex < 0 { 5836 return ErrInvalidLengthSubscription 5837 } 5838 if postIndex > l { 5839 return io.ErrUnexpectedEOF 5840 } 5841 m.CallProcessId = append(m.CallProcessId[:0], dAtA[iNdEx:postIndex]...) 5842 if m.CallProcessId == nil { 5843 m.CallProcessId = []byte{} 5844 } 5845 iNdEx = postIndex 5846 default: 5847 iNdEx = preIndex 5848 skippy, err := skipSubscription(dAtA[iNdEx:]) 5849 if err != nil { 5850 return err 5851 } 5852 if (skippy < 0) || (iNdEx+skippy) < 0 { 5853 return ErrInvalidLengthSubscription 5854 } 5855 if (iNdEx + skippy) > l { 5856 return io.ErrUnexpectedEOF 5857 } 5858 iNdEx += skippy 5859 } 5860 } 5861 5862 if iNdEx > l { 5863 return io.ErrUnexpectedEOF 5864 } 5865 return nil 5866 } 5867 func (m *GetChannelRequest) Unmarshal(dAtA []byte) error { 5868 l := len(dAtA) 5869 iNdEx := 0 5870 for iNdEx < l { 5871 preIndex := iNdEx 5872 var wire uint64 5873 for shift := uint(0); ; shift += 7 { 5874 if shift >= 64 { 5875 return ErrIntOverflowSubscription 5876 } 5877 if iNdEx >= l { 5878 return io.ErrUnexpectedEOF 5879 } 5880 b := dAtA[iNdEx] 5881 iNdEx++ 5882 wire |= uint64(b&0x7F) << shift 5883 if b < 0x80 { 5884 break 5885 } 5886 } 5887 fieldNum := int32(wire >> 3) 5888 wireType := int(wire & 0x7) 5889 if wireType == 4 { 5890 return fmt.Errorf("proto: GetChannelRequest: wiretype end group for non-group") 5891 } 5892 if fieldNum <= 0 { 5893 return fmt.Errorf("proto: GetChannelRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5894 } 5895 switch fieldNum { 5896 case 1: 5897 if wireType != 2 { 5898 return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) 5899 } 5900 var stringLen uint64 5901 for shift := uint(0); ; shift += 7 { 5902 if shift >= 64 { 5903 return ErrIntOverflowSubscription 5904 } 5905 if iNdEx >= l { 5906 return io.ErrUnexpectedEOF 5907 } 5908 b := dAtA[iNdEx] 5909 iNdEx++ 5910 stringLen |= uint64(b&0x7F) << shift 5911 if b < 0x80 { 5912 break 5913 } 5914 } 5915 intStringLen := int(stringLen) 5916 if intStringLen < 0 { 5917 return ErrInvalidLengthSubscription 5918 } 5919 postIndex := iNdEx + intStringLen 5920 if postIndex < 0 { 5921 return ErrInvalidLengthSubscription 5922 } 5923 if postIndex > l { 5924 return io.ErrUnexpectedEOF 5925 } 5926 m.ChannelID = ChannelID(dAtA[iNdEx:postIndex]) 5927 iNdEx = postIndex 5928 default: 5929 iNdEx = preIndex 5930 skippy, err := skipSubscription(dAtA[iNdEx:]) 5931 if err != nil { 5932 return err 5933 } 5934 if (skippy < 0) || (iNdEx+skippy) < 0 { 5935 return ErrInvalidLengthSubscription 5936 } 5937 if (iNdEx + skippy) > l { 5938 return io.ErrUnexpectedEOF 5939 } 5940 iNdEx += skippy 5941 } 5942 } 5943 5944 if iNdEx > l { 5945 return io.ErrUnexpectedEOF 5946 } 5947 return nil 5948 } 5949 func (m *GetChannelResponse) Unmarshal(dAtA []byte) error { 5950 l := len(dAtA) 5951 iNdEx := 0 5952 for iNdEx < l { 5953 preIndex := iNdEx 5954 var wire uint64 5955 for shift := uint(0); ; shift += 7 { 5956 if shift >= 64 { 5957 return ErrIntOverflowSubscription 5958 } 5959 if iNdEx >= l { 5960 return io.ErrUnexpectedEOF 5961 } 5962 b := dAtA[iNdEx] 5963 iNdEx++ 5964 wire |= uint64(b&0x7F) << shift 5965 if b < 0x80 { 5966 break 5967 } 5968 } 5969 fieldNum := int32(wire >> 3) 5970 wireType := int(wire & 0x7) 5971 if wireType == 4 { 5972 return fmt.Errorf("proto: GetChannelResponse: wiretype end group for non-group") 5973 } 5974 if fieldNum <= 0 { 5975 return fmt.Errorf("proto: GetChannelResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5976 } 5977 switch fieldNum { 5978 case 1: 5979 if wireType != 2 { 5980 return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType) 5981 } 5982 var msglen int 5983 for shift := uint(0); ; shift += 7 { 5984 if shift >= 64 { 5985 return ErrIntOverflowSubscription 5986 } 5987 if iNdEx >= l { 5988 return io.ErrUnexpectedEOF 5989 } 5990 b := dAtA[iNdEx] 5991 iNdEx++ 5992 msglen |= int(b&0x7F) << shift 5993 if b < 0x80 { 5994 break 5995 } 5996 } 5997 if msglen < 0 { 5998 return ErrInvalidLengthSubscription 5999 } 6000 postIndex := iNdEx + msglen 6001 if postIndex < 0 { 6002 return ErrInvalidLengthSubscription 6003 } 6004 if postIndex > l { 6005 return io.ErrUnexpectedEOF 6006 } 6007 if err := m.Channel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6008 return err 6009 } 6010 iNdEx = postIndex 6011 default: 6012 iNdEx = preIndex 6013 skippy, err := skipSubscription(dAtA[iNdEx:]) 6014 if err != nil { 6015 return err 6016 } 6017 if (skippy < 0) || (iNdEx+skippy) < 0 { 6018 return ErrInvalidLengthSubscription 6019 } 6020 if (iNdEx + skippy) > l { 6021 return io.ErrUnexpectedEOF 6022 } 6023 iNdEx += skippy 6024 } 6025 } 6026 6027 if iNdEx > l { 6028 return io.ErrUnexpectedEOF 6029 } 6030 return nil 6031 } 6032 func (m *ListChannelsRequest) Unmarshal(dAtA []byte) error { 6033 l := len(dAtA) 6034 iNdEx := 0 6035 for iNdEx < l { 6036 preIndex := iNdEx 6037 var wire uint64 6038 for shift := uint(0); ; shift += 7 { 6039 if shift >= 64 { 6040 return ErrIntOverflowSubscription 6041 } 6042 if iNdEx >= l { 6043 return io.ErrUnexpectedEOF 6044 } 6045 b := dAtA[iNdEx] 6046 iNdEx++ 6047 wire |= uint64(b&0x7F) << shift 6048 if b < 0x80 { 6049 break 6050 } 6051 } 6052 fieldNum := int32(wire >> 3) 6053 wireType := int(wire & 0x7) 6054 if wireType == 4 { 6055 return fmt.Errorf("proto: ListChannelsRequest: wiretype end group for non-group") 6056 } 6057 if fieldNum <= 0 { 6058 return fmt.Errorf("proto: ListChannelsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6059 } 6060 switch fieldNum { 6061 default: 6062 iNdEx = preIndex 6063 skippy, err := skipSubscription(dAtA[iNdEx:]) 6064 if err != nil { 6065 return err 6066 } 6067 if (skippy < 0) || (iNdEx+skippy) < 0 { 6068 return ErrInvalidLengthSubscription 6069 } 6070 if (iNdEx + skippy) > l { 6071 return io.ErrUnexpectedEOF 6072 } 6073 iNdEx += skippy 6074 } 6075 } 6076 6077 if iNdEx > l { 6078 return io.ErrUnexpectedEOF 6079 } 6080 return nil 6081 } 6082 func (m *ListChannelsResponse) Unmarshal(dAtA []byte) error { 6083 l := len(dAtA) 6084 iNdEx := 0 6085 for iNdEx < l { 6086 preIndex := iNdEx 6087 var wire uint64 6088 for shift := uint(0); ; shift += 7 { 6089 if shift >= 64 { 6090 return ErrIntOverflowSubscription 6091 } 6092 if iNdEx >= l { 6093 return io.ErrUnexpectedEOF 6094 } 6095 b := dAtA[iNdEx] 6096 iNdEx++ 6097 wire |= uint64(b&0x7F) << shift 6098 if b < 0x80 { 6099 break 6100 } 6101 } 6102 fieldNum := int32(wire >> 3) 6103 wireType := int(wire & 0x7) 6104 if wireType == 4 { 6105 return fmt.Errorf("proto: ListChannelsResponse: wiretype end group for non-group") 6106 } 6107 if fieldNum <= 0 { 6108 return fmt.Errorf("proto: ListChannelsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6109 } 6110 switch fieldNum { 6111 case 1: 6112 if wireType != 2 { 6113 return fmt.Errorf("proto: wrong wireType = %d for field Channels", wireType) 6114 } 6115 var msglen int 6116 for shift := uint(0); ; shift += 7 { 6117 if shift >= 64 { 6118 return ErrIntOverflowSubscription 6119 } 6120 if iNdEx >= l { 6121 return io.ErrUnexpectedEOF 6122 } 6123 b := dAtA[iNdEx] 6124 iNdEx++ 6125 msglen |= int(b&0x7F) << shift 6126 if b < 0x80 { 6127 break 6128 } 6129 } 6130 if msglen < 0 { 6131 return ErrInvalidLengthSubscription 6132 } 6133 postIndex := iNdEx + msglen 6134 if postIndex < 0 { 6135 return ErrInvalidLengthSubscription 6136 } 6137 if postIndex > l { 6138 return io.ErrUnexpectedEOF 6139 } 6140 m.Channels = append(m.Channels, Channel{}) 6141 if err := m.Channels[len(m.Channels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6142 return err 6143 } 6144 iNdEx = postIndex 6145 default: 6146 iNdEx = preIndex 6147 skippy, err := skipSubscription(dAtA[iNdEx:]) 6148 if err != nil { 6149 return err 6150 } 6151 if (skippy < 0) || (iNdEx+skippy) < 0 { 6152 return ErrInvalidLengthSubscription 6153 } 6154 if (iNdEx + skippy) > l { 6155 return io.ErrUnexpectedEOF 6156 } 6157 iNdEx += skippy 6158 } 6159 } 6160 6161 if iNdEx > l { 6162 return io.ErrUnexpectedEOF 6163 } 6164 return nil 6165 } 6166 func (m *WatchChannelsRequest) Unmarshal(dAtA []byte) error { 6167 l := len(dAtA) 6168 iNdEx := 0 6169 for iNdEx < l { 6170 preIndex := iNdEx 6171 var wire uint64 6172 for shift := uint(0); ; shift += 7 { 6173 if shift >= 64 { 6174 return ErrIntOverflowSubscription 6175 } 6176 if iNdEx >= l { 6177 return io.ErrUnexpectedEOF 6178 } 6179 b := dAtA[iNdEx] 6180 iNdEx++ 6181 wire |= uint64(b&0x7F) << shift 6182 if b < 0x80 { 6183 break 6184 } 6185 } 6186 fieldNum := int32(wire >> 3) 6187 wireType := int(wire & 0x7) 6188 if wireType == 4 { 6189 return fmt.Errorf("proto: WatchChannelsRequest: wiretype end group for non-group") 6190 } 6191 if fieldNum <= 0 { 6192 return fmt.Errorf("proto: WatchChannelsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6193 } 6194 switch fieldNum { 6195 case 1: 6196 if wireType != 0 { 6197 return fmt.Errorf("proto: wrong wireType = %d for field NoReplay", wireType) 6198 } 6199 var v int 6200 for shift := uint(0); ; shift += 7 { 6201 if shift >= 64 { 6202 return ErrIntOverflowSubscription 6203 } 6204 if iNdEx >= l { 6205 return io.ErrUnexpectedEOF 6206 } 6207 b := dAtA[iNdEx] 6208 iNdEx++ 6209 v |= int(b&0x7F) << shift 6210 if b < 0x80 { 6211 break 6212 } 6213 } 6214 m.NoReplay = bool(v != 0) 6215 default: 6216 iNdEx = preIndex 6217 skippy, err := skipSubscription(dAtA[iNdEx:]) 6218 if err != nil { 6219 return err 6220 } 6221 if (skippy < 0) || (iNdEx+skippy) < 0 { 6222 return ErrInvalidLengthSubscription 6223 } 6224 if (iNdEx + skippy) > l { 6225 return io.ErrUnexpectedEOF 6226 } 6227 iNdEx += skippy 6228 } 6229 } 6230 6231 if iNdEx > l { 6232 return io.ErrUnexpectedEOF 6233 } 6234 return nil 6235 } 6236 func (m *WatchChannelsResponse) Unmarshal(dAtA []byte) error { 6237 l := len(dAtA) 6238 iNdEx := 0 6239 for iNdEx < l { 6240 preIndex := iNdEx 6241 var wire uint64 6242 for shift := uint(0); ; shift += 7 { 6243 if shift >= 64 { 6244 return ErrIntOverflowSubscription 6245 } 6246 if iNdEx >= l { 6247 return io.ErrUnexpectedEOF 6248 } 6249 b := dAtA[iNdEx] 6250 iNdEx++ 6251 wire |= uint64(b&0x7F) << shift 6252 if b < 0x80 { 6253 break 6254 } 6255 } 6256 fieldNum := int32(wire >> 3) 6257 wireType := int(wire & 0x7) 6258 if wireType == 4 { 6259 return fmt.Errorf("proto: WatchChannelsResponse: wiretype end group for non-group") 6260 } 6261 if fieldNum <= 0 { 6262 return fmt.Errorf("proto: WatchChannelsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6263 } 6264 switch fieldNum { 6265 case 1: 6266 if wireType != 2 { 6267 return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) 6268 } 6269 var msglen int 6270 for shift := uint(0); ; shift += 7 { 6271 if shift >= 64 { 6272 return ErrIntOverflowSubscription 6273 } 6274 if iNdEx >= l { 6275 return io.ErrUnexpectedEOF 6276 } 6277 b := dAtA[iNdEx] 6278 iNdEx++ 6279 msglen |= int(b&0x7F) << shift 6280 if b < 0x80 { 6281 break 6282 } 6283 } 6284 if msglen < 0 { 6285 return ErrInvalidLengthSubscription 6286 } 6287 postIndex := iNdEx + msglen 6288 if postIndex < 0 { 6289 return ErrInvalidLengthSubscription 6290 } 6291 if postIndex > l { 6292 return io.ErrUnexpectedEOF 6293 } 6294 if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6295 return err 6296 } 6297 iNdEx = postIndex 6298 default: 6299 iNdEx = preIndex 6300 skippy, err := skipSubscription(dAtA[iNdEx:]) 6301 if err != nil { 6302 return err 6303 } 6304 if (skippy < 0) || (iNdEx+skippy) < 0 { 6305 return ErrInvalidLengthSubscription 6306 } 6307 if (iNdEx + skippy) > l { 6308 return io.ErrUnexpectedEOF 6309 } 6310 iNdEx += skippy 6311 } 6312 } 6313 6314 if iNdEx > l { 6315 return io.ErrUnexpectedEOF 6316 } 6317 return nil 6318 } 6319 func (m *ChannelEvent) Unmarshal(dAtA []byte) error { 6320 l := len(dAtA) 6321 iNdEx := 0 6322 for iNdEx < l { 6323 preIndex := iNdEx 6324 var wire uint64 6325 for shift := uint(0); ; shift += 7 { 6326 if shift >= 64 { 6327 return ErrIntOverflowSubscription 6328 } 6329 if iNdEx >= l { 6330 return io.ErrUnexpectedEOF 6331 } 6332 b := dAtA[iNdEx] 6333 iNdEx++ 6334 wire |= uint64(b&0x7F) << shift 6335 if b < 0x80 { 6336 break 6337 } 6338 } 6339 fieldNum := int32(wire >> 3) 6340 wireType := int(wire & 0x7) 6341 if wireType == 4 { 6342 return fmt.Errorf("proto: ChannelEvent: wiretype end group for non-group") 6343 } 6344 if fieldNum <= 0 { 6345 return fmt.Errorf("proto: ChannelEvent: illegal tag %d (wire type %d)", fieldNum, wire) 6346 } 6347 switch fieldNum { 6348 case 1: 6349 if wireType != 0 { 6350 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 6351 } 6352 m.Type = 0 6353 for shift := uint(0); ; shift += 7 { 6354 if shift >= 64 { 6355 return ErrIntOverflowSubscription 6356 } 6357 if iNdEx >= l { 6358 return io.ErrUnexpectedEOF 6359 } 6360 b := dAtA[iNdEx] 6361 iNdEx++ 6362 m.Type |= ChannelEventType(b&0x7F) << shift 6363 if b < 0x80 { 6364 break 6365 } 6366 } 6367 case 2: 6368 if wireType != 2 { 6369 return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType) 6370 } 6371 var msglen int 6372 for shift := uint(0); ; shift += 7 { 6373 if shift >= 64 { 6374 return ErrIntOverflowSubscription 6375 } 6376 if iNdEx >= l { 6377 return io.ErrUnexpectedEOF 6378 } 6379 b := dAtA[iNdEx] 6380 iNdEx++ 6381 msglen |= int(b&0x7F) << shift 6382 if b < 0x80 { 6383 break 6384 } 6385 } 6386 if msglen < 0 { 6387 return ErrInvalidLengthSubscription 6388 } 6389 postIndex := iNdEx + msglen 6390 if postIndex < 0 { 6391 return ErrInvalidLengthSubscription 6392 } 6393 if postIndex > l { 6394 return io.ErrUnexpectedEOF 6395 } 6396 if err := m.Channel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6397 return err 6398 } 6399 iNdEx = postIndex 6400 default: 6401 iNdEx = preIndex 6402 skippy, err := skipSubscription(dAtA[iNdEx:]) 6403 if err != nil { 6404 return err 6405 } 6406 if (skippy < 0) || (iNdEx+skippy) < 0 { 6407 return ErrInvalidLengthSubscription 6408 } 6409 if (iNdEx + skippy) > l { 6410 return io.ErrUnexpectedEOF 6411 } 6412 iNdEx += skippy 6413 } 6414 } 6415 6416 if iNdEx > l { 6417 return io.ErrUnexpectedEOF 6418 } 6419 return nil 6420 } 6421 func (m *GetSubscriptionRequest) Unmarshal(dAtA []byte) error { 6422 l := len(dAtA) 6423 iNdEx := 0 6424 for iNdEx < l { 6425 preIndex := iNdEx 6426 var wire uint64 6427 for shift := uint(0); ; shift += 7 { 6428 if shift >= 64 { 6429 return ErrIntOverflowSubscription 6430 } 6431 if iNdEx >= l { 6432 return io.ErrUnexpectedEOF 6433 } 6434 b := dAtA[iNdEx] 6435 iNdEx++ 6436 wire |= uint64(b&0x7F) << shift 6437 if b < 0x80 { 6438 break 6439 } 6440 } 6441 fieldNum := int32(wire >> 3) 6442 wireType := int(wire & 0x7) 6443 if wireType == 4 { 6444 return fmt.Errorf("proto: GetSubscriptionRequest: wiretype end group for non-group") 6445 } 6446 if fieldNum <= 0 { 6447 return fmt.Errorf("proto: GetSubscriptionRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6448 } 6449 switch fieldNum { 6450 case 1: 6451 if wireType != 2 { 6452 return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionID", wireType) 6453 } 6454 var stringLen uint64 6455 for shift := uint(0); ; shift += 7 { 6456 if shift >= 64 { 6457 return ErrIntOverflowSubscription 6458 } 6459 if iNdEx >= l { 6460 return io.ErrUnexpectedEOF 6461 } 6462 b := dAtA[iNdEx] 6463 iNdEx++ 6464 stringLen |= uint64(b&0x7F) << shift 6465 if b < 0x80 { 6466 break 6467 } 6468 } 6469 intStringLen := int(stringLen) 6470 if intStringLen < 0 { 6471 return ErrInvalidLengthSubscription 6472 } 6473 postIndex := iNdEx + intStringLen 6474 if postIndex < 0 { 6475 return ErrInvalidLengthSubscription 6476 } 6477 if postIndex > l { 6478 return io.ErrUnexpectedEOF 6479 } 6480 m.SubscriptionID = SubscriptionID(dAtA[iNdEx:postIndex]) 6481 iNdEx = postIndex 6482 default: 6483 iNdEx = preIndex 6484 skippy, err := skipSubscription(dAtA[iNdEx:]) 6485 if err != nil { 6486 return err 6487 } 6488 if (skippy < 0) || (iNdEx+skippy) < 0 { 6489 return ErrInvalidLengthSubscription 6490 } 6491 if (iNdEx + skippy) > l { 6492 return io.ErrUnexpectedEOF 6493 } 6494 iNdEx += skippy 6495 } 6496 } 6497 6498 if iNdEx > l { 6499 return io.ErrUnexpectedEOF 6500 } 6501 return nil 6502 } 6503 func (m *GetSubscriptionResponse) Unmarshal(dAtA []byte) error { 6504 l := len(dAtA) 6505 iNdEx := 0 6506 for iNdEx < l { 6507 preIndex := iNdEx 6508 var wire uint64 6509 for shift := uint(0); ; shift += 7 { 6510 if shift >= 64 { 6511 return ErrIntOverflowSubscription 6512 } 6513 if iNdEx >= l { 6514 return io.ErrUnexpectedEOF 6515 } 6516 b := dAtA[iNdEx] 6517 iNdEx++ 6518 wire |= uint64(b&0x7F) << shift 6519 if b < 0x80 { 6520 break 6521 } 6522 } 6523 fieldNum := int32(wire >> 3) 6524 wireType := int(wire & 0x7) 6525 if wireType == 4 { 6526 return fmt.Errorf("proto: GetSubscriptionResponse: wiretype end group for non-group") 6527 } 6528 if fieldNum <= 0 { 6529 return fmt.Errorf("proto: GetSubscriptionResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6530 } 6531 switch fieldNum { 6532 case 1: 6533 if wireType != 2 { 6534 return fmt.Errorf("proto: wrong wireType = %d for field Subscription", wireType) 6535 } 6536 var msglen int 6537 for shift := uint(0); ; shift += 7 { 6538 if shift >= 64 { 6539 return ErrIntOverflowSubscription 6540 } 6541 if iNdEx >= l { 6542 return io.ErrUnexpectedEOF 6543 } 6544 b := dAtA[iNdEx] 6545 iNdEx++ 6546 msglen |= int(b&0x7F) << shift 6547 if b < 0x80 { 6548 break 6549 } 6550 } 6551 if msglen < 0 { 6552 return ErrInvalidLengthSubscription 6553 } 6554 postIndex := iNdEx + msglen 6555 if postIndex < 0 { 6556 return ErrInvalidLengthSubscription 6557 } 6558 if postIndex > l { 6559 return io.ErrUnexpectedEOF 6560 } 6561 if err := m.Subscription.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6562 return err 6563 } 6564 iNdEx = postIndex 6565 default: 6566 iNdEx = preIndex 6567 skippy, err := skipSubscription(dAtA[iNdEx:]) 6568 if err != nil { 6569 return err 6570 } 6571 if (skippy < 0) || (iNdEx+skippy) < 0 { 6572 return ErrInvalidLengthSubscription 6573 } 6574 if (iNdEx + skippy) > l { 6575 return io.ErrUnexpectedEOF 6576 } 6577 iNdEx += skippy 6578 } 6579 } 6580 6581 if iNdEx > l { 6582 return io.ErrUnexpectedEOF 6583 } 6584 return nil 6585 } 6586 func (m *ListSubscriptionsRequest) Unmarshal(dAtA []byte) error { 6587 l := len(dAtA) 6588 iNdEx := 0 6589 for iNdEx < l { 6590 preIndex := iNdEx 6591 var wire uint64 6592 for shift := uint(0); ; shift += 7 { 6593 if shift >= 64 { 6594 return ErrIntOverflowSubscription 6595 } 6596 if iNdEx >= l { 6597 return io.ErrUnexpectedEOF 6598 } 6599 b := dAtA[iNdEx] 6600 iNdEx++ 6601 wire |= uint64(b&0x7F) << shift 6602 if b < 0x80 { 6603 break 6604 } 6605 } 6606 fieldNum := int32(wire >> 3) 6607 wireType := int(wire & 0x7) 6608 if wireType == 4 { 6609 return fmt.Errorf("proto: ListSubscriptionsRequest: wiretype end group for non-group") 6610 } 6611 if fieldNum <= 0 { 6612 return fmt.Errorf("proto: ListSubscriptionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6613 } 6614 switch fieldNum { 6615 default: 6616 iNdEx = preIndex 6617 skippy, err := skipSubscription(dAtA[iNdEx:]) 6618 if err != nil { 6619 return err 6620 } 6621 if (skippy < 0) || (iNdEx+skippy) < 0 { 6622 return ErrInvalidLengthSubscription 6623 } 6624 if (iNdEx + skippy) > l { 6625 return io.ErrUnexpectedEOF 6626 } 6627 iNdEx += skippy 6628 } 6629 } 6630 6631 if iNdEx > l { 6632 return io.ErrUnexpectedEOF 6633 } 6634 return nil 6635 } 6636 func (m *ListSubscriptionsResponse) Unmarshal(dAtA []byte) error { 6637 l := len(dAtA) 6638 iNdEx := 0 6639 for iNdEx < l { 6640 preIndex := iNdEx 6641 var wire uint64 6642 for shift := uint(0); ; shift += 7 { 6643 if shift >= 64 { 6644 return ErrIntOverflowSubscription 6645 } 6646 if iNdEx >= l { 6647 return io.ErrUnexpectedEOF 6648 } 6649 b := dAtA[iNdEx] 6650 iNdEx++ 6651 wire |= uint64(b&0x7F) << shift 6652 if b < 0x80 { 6653 break 6654 } 6655 } 6656 fieldNum := int32(wire >> 3) 6657 wireType := int(wire & 0x7) 6658 if wireType == 4 { 6659 return fmt.Errorf("proto: ListSubscriptionsResponse: wiretype end group for non-group") 6660 } 6661 if fieldNum <= 0 { 6662 return fmt.Errorf("proto: ListSubscriptionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6663 } 6664 switch fieldNum { 6665 case 1: 6666 if wireType != 2 { 6667 return fmt.Errorf("proto: wrong wireType = %d for field Subscriptions", wireType) 6668 } 6669 var msglen int 6670 for shift := uint(0); ; shift += 7 { 6671 if shift >= 64 { 6672 return ErrIntOverflowSubscription 6673 } 6674 if iNdEx >= l { 6675 return io.ErrUnexpectedEOF 6676 } 6677 b := dAtA[iNdEx] 6678 iNdEx++ 6679 msglen |= int(b&0x7F) << shift 6680 if b < 0x80 { 6681 break 6682 } 6683 } 6684 if msglen < 0 { 6685 return ErrInvalidLengthSubscription 6686 } 6687 postIndex := iNdEx + msglen 6688 if postIndex < 0 { 6689 return ErrInvalidLengthSubscription 6690 } 6691 if postIndex > l { 6692 return io.ErrUnexpectedEOF 6693 } 6694 m.Subscriptions = append(m.Subscriptions, Subscription{}) 6695 if err := m.Subscriptions[len(m.Subscriptions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6696 return err 6697 } 6698 iNdEx = postIndex 6699 default: 6700 iNdEx = preIndex 6701 skippy, err := skipSubscription(dAtA[iNdEx:]) 6702 if err != nil { 6703 return err 6704 } 6705 if (skippy < 0) || (iNdEx+skippy) < 0 { 6706 return ErrInvalidLengthSubscription 6707 } 6708 if (iNdEx + skippy) > l { 6709 return io.ErrUnexpectedEOF 6710 } 6711 iNdEx += skippy 6712 } 6713 } 6714 6715 if iNdEx > l { 6716 return io.ErrUnexpectedEOF 6717 } 6718 return nil 6719 } 6720 func (m *WatchSubscriptionsRequest) Unmarshal(dAtA []byte) error { 6721 l := len(dAtA) 6722 iNdEx := 0 6723 for iNdEx < l { 6724 preIndex := iNdEx 6725 var wire uint64 6726 for shift := uint(0); ; shift += 7 { 6727 if shift >= 64 { 6728 return ErrIntOverflowSubscription 6729 } 6730 if iNdEx >= l { 6731 return io.ErrUnexpectedEOF 6732 } 6733 b := dAtA[iNdEx] 6734 iNdEx++ 6735 wire |= uint64(b&0x7F) << shift 6736 if b < 0x80 { 6737 break 6738 } 6739 } 6740 fieldNum := int32(wire >> 3) 6741 wireType := int(wire & 0x7) 6742 if wireType == 4 { 6743 return fmt.Errorf("proto: WatchSubscriptionsRequest: wiretype end group for non-group") 6744 } 6745 if fieldNum <= 0 { 6746 return fmt.Errorf("proto: WatchSubscriptionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6747 } 6748 switch fieldNum { 6749 case 1: 6750 if wireType != 0 { 6751 return fmt.Errorf("proto: wrong wireType = %d for field NoReplay", wireType) 6752 } 6753 var v int 6754 for shift := uint(0); ; shift += 7 { 6755 if shift >= 64 { 6756 return ErrIntOverflowSubscription 6757 } 6758 if iNdEx >= l { 6759 return io.ErrUnexpectedEOF 6760 } 6761 b := dAtA[iNdEx] 6762 iNdEx++ 6763 v |= int(b&0x7F) << shift 6764 if b < 0x80 { 6765 break 6766 } 6767 } 6768 m.NoReplay = bool(v != 0) 6769 default: 6770 iNdEx = preIndex 6771 skippy, err := skipSubscription(dAtA[iNdEx:]) 6772 if err != nil { 6773 return err 6774 } 6775 if (skippy < 0) || (iNdEx+skippy) < 0 { 6776 return ErrInvalidLengthSubscription 6777 } 6778 if (iNdEx + skippy) > l { 6779 return io.ErrUnexpectedEOF 6780 } 6781 iNdEx += skippy 6782 } 6783 } 6784 6785 if iNdEx > l { 6786 return io.ErrUnexpectedEOF 6787 } 6788 return nil 6789 } 6790 func (m *WatchSubscriptionsResponse) Unmarshal(dAtA []byte) error { 6791 l := len(dAtA) 6792 iNdEx := 0 6793 for iNdEx < l { 6794 preIndex := iNdEx 6795 var wire uint64 6796 for shift := uint(0); ; shift += 7 { 6797 if shift >= 64 { 6798 return ErrIntOverflowSubscription 6799 } 6800 if iNdEx >= l { 6801 return io.ErrUnexpectedEOF 6802 } 6803 b := dAtA[iNdEx] 6804 iNdEx++ 6805 wire |= uint64(b&0x7F) << shift 6806 if b < 0x80 { 6807 break 6808 } 6809 } 6810 fieldNum := int32(wire >> 3) 6811 wireType := int(wire & 0x7) 6812 if wireType == 4 { 6813 return fmt.Errorf("proto: WatchSubscriptionsResponse: wiretype end group for non-group") 6814 } 6815 if fieldNum <= 0 { 6816 return fmt.Errorf("proto: WatchSubscriptionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6817 } 6818 switch fieldNum { 6819 case 1: 6820 if wireType != 2 { 6821 return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) 6822 } 6823 var msglen int 6824 for shift := uint(0); ; shift += 7 { 6825 if shift >= 64 { 6826 return ErrIntOverflowSubscription 6827 } 6828 if iNdEx >= l { 6829 return io.ErrUnexpectedEOF 6830 } 6831 b := dAtA[iNdEx] 6832 iNdEx++ 6833 msglen |= int(b&0x7F) << shift 6834 if b < 0x80 { 6835 break 6836 } 6837 } 6838 if msglen < 0 { 6839 return ErrInvalidLengthSubscription 6840 } 6841 postIndex := iNdEx + msglen 6842 if postIndex < 0 { 6843 return ErrInvalidLengthSubscription 6844 } 6845 if postIndex > l { 6846 return io.ErrUnexpectedEOF 6847 } 6848 if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6849 return err 6850 } 6851 iNdEx = postIndex 6852 default: 6853 iNdEx = preIndex 6854 skippy, err := skipSubscription(dAtA[iNdEx:]) 6855 if err != nil { 6856 return err 6857 } 6858 if (skippy < 0) || (iNdEx+skippy) < 0 { 6859 return ErrInvalidLengthSubscription 6860 } 6861 if (iNdEx + skippy) > l { 6862 return io.ErrUnexpectedEOF 6863 } 6864 iNdEx += skippy 6865 } 6866 } 6867 6868 if iNdEx > l { 6869 return io.ErrUnexpectedEOF 6870 } 6871 return nil 6872 } 6873 func (m *SubscriptionEvent) Unmarshal(dAtA []byte) error { 6874 l := len(dAtA) 6875 iNdEx := 0 6876 for iNdEx < l { 6877 preIndex := iNdEx 6878 var wire uint64 6879 for shift := uint(0); ; shift += 7 { 6880 if shift >= 64 { 6881 return ErrIntOverflowSubscription 6882 } 6883 if iNdEx >= l { 6884 return io.ErrUnexpectedEOF 6885 } 6886 b := dAtA[iNdEx] 6887 iNdEx++ 6888 wire |= uint64(b&0x7F) << shift 6889 if b < 0x80 { 6890 break 6891 } 6892 } 6893 fieldNum := int32(wire >> 3) 6894 wireType := int(wire & 0x7) 6895 if wireType == 4 { 6896 return fmt.Errorf("proto: SubscriptionEvent: wiretype end group for non-group") 6897 } 6898 if fieldNum <= 0 { 6899 return fmt.Errorf("proto: SubscriptionEvent: illegal tag %d (wire type %d)", fieldNum, wire) 6900 } 6901 switch fieldNum { 6902 case 1: 6903 if wireType != 0 { 6904 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 6905 } 6906 m.Type = 0 6907 for shift := uint(0); ; shift += 7 { 6908 if shift >= 64 { 6909 return ErrIntOverflowSubscription 6910 } 6911 if iNdEx >= l { 6912 return io.ErrUnexpectedEOF 6913 } 6914 b := dAtA[iNdEx] 6915 iNdEx++ 6916 m.Type |= SubscriptionEventType(b&0x7F) << shift 6917 if b < 0x80 { 6918 break 6919 } 6920 } 6921 case 2: 6922 if wireType != 2 { 6923 return fmt.Errorf("proto: wrong wireType = %d for field Subscription", wireType) 6924 } 6925 var msglen int 6926 for shift := uint(0); ; shift += 7 { 6927 if shift >= 64 { 6928 return ErrIntOverflowSubscription 6929 } 6930 if iNdEx >= l { 6931 return io.ErrUnexpectedEOF 6932 } 6933 b := dAtA[iNdEx] 6934 iNdEx++ 6935 msglen |= int(b&0x7F) << shift 6936 if b < 0x80 { 6937 break 6938 } 6939 } 6940 if msglen < 0 { 6941 return ErrInvalidLengthSubscription 6942 } 6943 postIndex := iNdEx + msglen 6944 if postIndex < 0 { 6945 return ErrInvalidLengthSubscription 6946 } 6947 if postIndex > l { 6948 return io.ErrUnexpectedEOF 6949 } 6950 if err := m.Subscription.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6951 return err 6952 } 6953 iNdEx = postIndex 6954 default: 6955 iNdEx = preIndex 6956 skippy, err := skipSubscription(dAtA[iNdEx:]) 6957 if err != nil { 6958 return err 6959 } 6960 if (skippy < 0) || (iNdEx+skippy) < 0 { 6961 return ErrInvalidLengthSubscription 6962 } 6963 if (iNdEx + skippy) > l { 6964 return io.ErrUnexpectedEOF 6965 } 6966 iNdEx += skippy 6967 } 6968 } 6969 6970 if iNdEx > l { 6971 return io.ErrUnexpectedEOF 6972 } 6973 return nil 6974 } 6975 func (m *ChannelMeta) Unmarshal(dAtA []byte) error { 6976 l := len(dAtA) 6977 iNdEx := 0 6978 for iNdEx < l { 6979 preIndex := iNdEx 6980 var wire uint64 6981 for shift := uint(0); ; shift += 7 { 6982 if shift >= 64 { 6983 return ErrIntOverflowSubscription 6984 } 6985 if iNdEx >= l { 6986 return io.ErrUnexpectedEOF 6987 } 6988 b := dAtA[iNdEx] 6989 iNdEx++ 6990 wire |= uint64(b&0x7F) << shift 6991 if b < 0x80 { 6992 break 6993 } 6994 } 6995 fieldNum := int32(wire >> 3) 6996 wireType := int(wire & 0x7) 6997 if wireType == 4 { 6998 return fmt.Errorf("proto: ChannelMeta: wiretype end group for non-group") 6999 } 7000 if fieldNum <= 0 { 7001 return fmt.Errorf("proto: ChannelMeta: illegal tag %d (wire type %d)", fieldNum, wire) 7002 } 7003 switch fieldNum { 7004 case 1: 7005 if wireType != 2 { 7006 return fmt.Errorf("proto: wrong wireType = %d for field AppID", wireType) 7007 } 7008 var stringLen uint64 7009 for shift := uint(0); ; shift += 7 { 7010 if shift >= 64 { 7011 return ErrIntOverflowSubscription 7012 } 7013 if iNdEx >= l { 7014 return io.ErrUnexpectedEOF 7015 } 7016 b := dAtA[iNdEx] 7017 iNdEx++ 7018 stringLen |= uint64(b&0x7F) << shift 7019 if b < 0x80 { 7020 break 7021 } 7022 } 7023 intStringLen := int(stringLen) 7024 if intStringLen < 0 { 7025 return ErrInvalidLengthSubscription 7026 } 7027 postIndex := iNdEx + intStringLen 7028 if postIndex < 0 { 7029 return ErrInvalidLengthSubscription 7030 } 7031 if postIndex > l { 7032 return io.ErrUnexpectedEOF 7033 } 7034 m.AppID = AppID(dAtA[iNdEx:postIndex]) 7035 iNdEx = postIndex 7036 case 2: 7037 if wireType != 2 { 7038 return fmt.Errorf("proto: wrong wireType = %d for field AppInstanceID", wireType) 7039 } 7040 var stringLen uint64 7041 for shift := uint(0); ; shift += 7 { 7042 if shift >= 64 { 7043 return ErrIntOverflowSubscription 7044 } 7045 if iNdEx >= l { 7046 return io.ErrUnexpectedEOF 7047 } 7048 b := dAtA[iNdEx] 7049 iNdEx++ 7050 stringLen |= uint64(b&0x7F) << shift 7051 if b < 0x80 { 7052 break 7053 } 7054 } 7055 intStringLen := int(stringLen) 7056 if intStringLen < 0 { 7057 return ErrInvalidLengthSubscription 7058 } 7059 postIndex := iNdEx + intStringLen 7060 if postIndex < 0 { 7061 return ErrInvalidLengthSubscription 7062 } 7063 if postIndex > l { 7064 return io.ErrUnexpectedEOF 7065 } 7066 m.AppInstanceID = AppInstanceID(dAtA[iNdEx:postIndex]) 7067 iNdEx = postIndex 7068 case 3: 7069 if wireType != 2 { 7070 return fmt.Errorf("proto: wrong wireType = %d for field E2NodeID", wireType) 7071 } 7072 var stringLen uint64 7073 for shift := uint(0); ; shift += 7 { 7074 if shift >= 64 { 7075 return ErrIntOverflowSubscription 7076 } 7077 if iNdEx >= l { 7078 return io.ErrUnexpectedEOF 7079 } 7080 b := dAtA[iNdEx] 7081 iNdEx++ 7082 stringLen |= uint64(b&0x7F) << shift 7083 if b < 0x80 { 7084 break 7085 } 7086 } 7087 intStringLen := int(stringLen) 7088 if intStringLen < 0 { 7089 return ErrInvalidLengthSubscription 7090 } 7091 postIndex := iNdEx + intStringLen 7092 if postIndex < 0 { 7093 return ErrInvalidLengthSubscription 7094 } 7095 if postIndex > l { 7096 return io.ErrUnexpectedEOF 7097 } 7098 m.E2NodeID = E2NodeID(dAtA[iNdEx:postIndex]) 7099 iNdEx = postIndex 7100 case 4: 7101 if wireType != 2 { 7102 return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType) 7103 } 7104 var stringLen uint64 7105 for shift := uint(0); ; shift += 7 { 7106 if shift >= 64 { 7107 return ErrIntOverflowSubscription 7108 } 7109 if iNdEx >= l { 7110 return io.ErrUnexpectedEOF 7111 } 7112 b := dAtA[iNdEx] 7113 iNdEx++ 7114 stringLen |= uint64(b&0x7F) << shift 7115 if b < 0x80 { 7116 break 7117 } 7118 } 7119 intStringLen := int(stringLen) 7120 if intStringLen < 0 { 7121 return ErrInvalidLengthSubscription 7122 } 7123 postIndex := iNdEx + intStringLen 7124 if postIndex < 0 { 7125 return ErrInvalidLengthSubscription 7126 } 7127 if postIndex > l { 7128 return io.ErrUnexpectedEOF 7129 } 7130 m.TransactionID = TransactionID(dAtA[iNdEx:postIndex]) 7131 iNdEx = postIndex 7132 case 5: 7133 if wireType != 2 { 7134 return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionID", wireType) 7135 } 7136 var stringLen uint64 7137 for shift := uint(0); ; shift += 7 { 7138 if shift >= 64 { 7139 return ErrIntOverflowSubscription 7140 } 7141 if iNdEx >= l { 7142 return io.ErrUnexpectedEOF 7143 } 7144 b := dAtA[iNdEx] 7145 iNdEx++ 7146 stringLen |= uint64(b&0x7F) << shift 7147 if b < 0x80 { 7148 break 7149 } 7150 } 7151 intStringLen := int(stringLen) 7152 if intStringLen < 0 { 7153 return ErrInvalidLengthSubscription 7154 } 7155 postIndex := iNdEx + intStringLen 7156 if postIndex < 0 { 7157 return ErrInvalidLengthSubscription 7158 } 7159 if postIndex > l { 7160 return io.ErrUnexpectedEOF 7161 } 7162 m.SubscriptionID = SubscriptionID(dAtA[iNdEx:postIndex]) 7163 iNdEx = postIndex 7164 case 6: 7165 if wireType != 2 { 7166 return fmt.Errorf("proto: wrong wireType = %d for field ServiceModel", wireType) 7167 } 7168 var msglen int 7169 for shift := uint(0); ; shift += 7 { 7170 if shift >= 64 { 7171 return ErrIntOverflowSubscription 7172 } 7173 if iNdEx >= l { 7174 return io.ErrUnexpectedEOF 7175 } 7176 b := dAtA[iNdEx] 7177 iNdEx++ 7178 msglen |= int(b&0x7F) << shift 7179 if b < 0x80 { 7180 break 7181 } 7182 } 7183 if msglen < 0 { 7184 return ErrInvalidLengthSubscription 7185 } 7186 postIndex := iNdEx + msglen 7187 if postIndex < 0 { 7188 return ErrInvalidLengthSubscription 7189 } 7190 if postIndex > l { 7191 return io.ErrUnexpectedEOF 7192 } 7193 if err := m.ServiceModel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7194 return err 7195 } 7196 iNdEx = postIndex 7197 case 7: 7198 if wireType != 0 { 7199 return fmt.Errorf("proto: wrong wireType = %d for field Encoding", wireType) 7200 } 7201 m.Encoding = 0 7202 for shift := uint(0); ; shift += 7 { 7203 if shift >= 64 { 7204 return ErrIntOverflowSubscription 7205 } 7206 if iNdEx >= l { 7207 return io.ErrUnexpectedEOF 7208 } 7209 b := dAtA[iNdEx] 7210 iNdEx++ 7211 m.Encoding |= Encoding(b&0x7F) << shift 7212 if b < 0x80 { 7213 break 7214 } 7215 } 7216 case 8: 7217 if wireType != 0 { 7218 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 7219 } 7220 m.Revision = 0 7221 for shift := uint(0); ; shift += 7 { 7222 if shift >= 64 { 7223 return ErrIntOverflowSubscription 7224 } 7225 if iNdEx >= l { 7226 return io.ErrUnexpectedEOF 7227 } 7228 b := dAtA[iNdEx] 7229 iNdEx++ 7230 m.Revision |= Revision(b&0x7F) << shift 7231 if b < 0x80 { 7232 break 7233 } 7234 } 7235 case 9: 7236 if wireType != 2 { 7237 return fmt.Errorf("proto: wrong wireType = %d for field Finalizers", wireType) 7238 } 7239 var stringLen uint64 7240 for shift := uint(0); ; shift += 7 { 7241 if shift >= 64 { 7242 return ErrIntOverflowSubscription 7243 } 7244 if iNdEx >= l { 7245 return io.ErrUnexpectedEOF 7246 } 7247 b := dAtA[iNdEx] 7248 iNdEx++ 7249 stringLen |= uint64(b&0x7F) << shift 7250 if b < 0x80 { 7251 break 7252 } 7253 } 7254 intStringLen := int(stringLen) 7255 if intStringLen < 0 { 7256 return ErrInvalidLengthSubscription 7257 } 7258 postIndex := iNdEx + intStringLen 7259 if postIndex < 0 { 7260 return ErrInvalidLengthSubscription 7261 } 7262 if postIndex > l { 7263 return io.ErrUnexpectedEOF 7264 } 7265 m.Finalizers = append(m.Finalizers, string(dAtA[iNdEx:postIndex])) 7266 iNdEx = postIndex 7267 default: 7268 iNdEx = preIndex 7269 skippy, err := skipSubscription(dAtA[iNdEx:]) 7270 if err != nil { 7271 return err 7272 } 7273 if (skippy < 0) || (iNdEx+skippy) < 0 { 7274 return ErrInvalidLengthSubscription 7275 } 7276 if (iNdEx + skippy) > l { 7277 return io.ErrUnexpectedEOF 7278 } 7279 iNdEx += skippy 7280 } 7281 } 7282 7283 if iNdEx > l { 7284 return io.ErrUnexpectedEOF 7285 } 7286 return nil 7287 } 7288 func (m *Channel) Unmarshal(dAtA []byte) error { 7289 l := len(dAtA) 7290 iNdEx := 0 7291 for iNdEx < l { 7292 preIndex := iNdEx 7293 var wire uint64 7294 for shift := uint(0); ; shift += 7 { 7295 if shift >= 64 { 7296 return ErrIntOverflowSubscription 7297 } 7298 if iNdEx >= l { 7299 return io.ErrUnexpectedEOF 7300 } 7301 b := dAtA[iNdEx] 7302 iNdEx++ 7303 wire |= uint64(b&0x7F) << shift 7304 if b < 0x80 { 7305 break 7306 } 7307 } 7308 fieldNum := int32(wire >> 3) 7309 wireType := int(wire & 0x7) 7310 if wireType == 4 { 7311 return fmt.Errorf("proto: Channel: wiretype end group for non-group") 7312 } 7313 if fieldNum <= 0 { 7314 return fmt.Errorf("proto: Channel: illegal tag %d (wire type %d)", fieldNum, wire) 7315 } 7316 switch fieldNum { 7317 case 1: 7318 if wireType != 2 { 7319 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 7320 } 7321 var stringLen uint64 7322 for shift := uint(0); ; shift += 7 { 7323 if shift >= 64 { 7324 return ErrIntOverflowSubscription 7325 } 7326 if iNdEx >= l { 7327 return io.ErrUnexpectedEOF 7328 } 7329 b := dAtA[iNdEx] 7330 iNdEx++ 7331 stringLen |= uint64(b&0x7F) << shift 7332 if b < 0x80 { 7333 break 7334 } 7335 } 7336 intStringLen := int(stringLen) 7337 if intStringLen < 0 { 7338 return ErrInvalidLengthSubscription 7339 } 7340 postIndex := iNdEx + intStringLen 7341 if postIndex < 0 { 7342 return ErrInvalidLengthSubscription 7343 } 7344 if postIndex > l { 7345 return io.ErrUnexpectedEOF 7346 } 7347 m.ID = ChannelID(dAtA[iNdEx:postIndex]) 7348 iNdEx = postIndex 7349 case 2: 7350 if wireType != 2 { 7351 return fmt.Errorf("proto: wrong wireType = %d for field ChannelMeta", wireType) 7352 } 7353 var msglen int 7354 for shift := uint(0); ; shift += 7 { 7355 if shift >= 64 { 7356 return ErrIntOverflowSubscription 7357 } 7358 if iNdEx >= l { 7359 return io.ErrUnexpectedEOF 7360 } 7361 b := dAtA[iNdEx] 7362 iNdEx++ 7363 msglen |= int(b&0x7F) << shift 7364 if b < 0x80 { 7365 break 7366 } 7367 } 7368 if msglen < 0 { 7369 return ErrInvalidLengthSubscription 7370 } 7371 postIndex := iNdEx + msglen 7372 if postIndex < 0 { 7373 return ErrInvalidLengthSubscription 7374 } 7375 if postIndex > l { 7376 return io.ErrUnexpectedEOF 7377 } 7378 if err := m.ChannelMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7379 return err 7380 } 7381 iNdEx = postIndex 7382 case 3: 7383 if wireType != 2 { 7384 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) 7385 } 7386 var msglen int 7387 for shift := uint(0); ; shift += 7 { 7388 if shift >= 64 { 7389 return ErrIntOverflowSubscription 7390 } 7391 if iNdEx >= l { 7392 return io.ErrUnexpectedEOF 7393 } 7394 b := dAtA[iNdEx] 7395 iNdEx++ 7396 msglen |= int(b&0x7F) << shift 7397 if b < 0x80 { 7398 break 7399 } 7400 } 7401 if msglen < 0 { 7402 return ErrInvalidLengthSubscription 7403 } 7404 postIndex := iNdEx + msglen 7405 if postIndex < 0 { 7406 return ErrInvalidLengthSubscription 7407 } 7408 if postIndex > l { 7409 return io.ErrUnexpectedEOF 7410 } 7411 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7412 return err 7413 } 7414 iNdEx = postIndex 7415 case 4: 7416 if wireType != 2 { 7417 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 7418 } 7419 var msglen int 7420 for shift := uint(0); ; shift += 7 { 7421 if shift >= 64 { 7422 return ErrIntOverflowSubscription 7423 } 7424 if iNdEx >= l { 7425 return io.ErrUnexpectedEOF 7426 } 7427 b := dAtA[iNdEx] 7428 iNdEx++ 7429 msglen |= int(b&0x7F) << shift 7430 if b < 0x80 { 7431 break 7432 } 7433 } 7434 if msglen < 0 { 7435 return ErrInvalidLengthSubscription 7436 } 7437 postIndex := iNdEx + msglen 7438 if postIndex < 0 { 7439 return ErrInvalidLengthSubscription 7440 } 7441 if postIndex > l { 7442 return io.ErrUnexpectedEOF 7443 } 7444 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7445 return err 7446 } 7447 iNdEx = postIndex 7448 default: 7449 iNdEx = preIndex 7450 skippy, err := skipSubscription(dAtA[iNdEx:]) 7451 if err != nil { 7452 return err 7453 } 7454 if (skippy < 0) || (iNdEx+skippy) < 0 { 7455 return ErrInvalidLengthSubscription 7456 } 7457 if (iNdEx + skippy) > l { 7458 return io.ErrUnexpectedEOF 7459 } 7460 iNdEx += skippy 7461 } 7462 } 7463 7464 if iNdEx > l { 7465 return io.ErrUnexpectedEOF 7466 } 7467 return nil 7468 } 7469 func (m *ChannelSpec) Unmarshal(dAtA []byte) error { 7470 l := len(dAtA) 7471 iNdEx := 0 7472 for iNdEx < l { 7473 preIndex := iNdEx 7474 var wire uint64 7475 for shift := uint(0); ; shift += 7 { 7476 if shift >= 64 { 7477 return ErrIntOverflowSubscription 7478 } 7479 if iNdEx >= l { 7480 return io.ErrUnexpectedEOF 7481 } 7482 b := dAtA[iNdEx] 7483 iNdEx++ 7484 wire |= uint64(b&0x7F) << shift 7485 if b < 0x80 { 7486 break 7487 } 7488 } 7489 fieldNum := int32(wire >> 3) 7490 wireType := int(wire & 0x7) 7491 if wireType == 4 { 7492 return fmt.Errorf("proto: ChannelSpec: wiretype end group for non-group") 7493 } 7494 if fieldNum <= 0 { 7495 return fmt.Errorf("proto: ChannelSpec: illegal tag %d (wire type %d)", fieldNum, wire) 7496 } 7497 switch fieldNum { 7498 case 1: 7499 if wireType != 2 { 7500 return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionSpec", wireType) 7501 } 7502 var msglen int 7503 for shift := uint(0); ; shift += 7 { 7504 if shift >= 64 { 7505 return ErrIntOverflowSubscription 7506 } 7507 if iNdEx >= l { 7508 return io.ErrUnexpectedEOF 7509 } 7510 b := dAtA[iNdEx] 7511 iNdEx++ 7512 msglen |= int(b&0x7F) << shift 7513 if b < 0x80 { 7514 break 7515 } 7516 } 7517 if msglen < 0 { 7518 return ErrInvalidLengthSubscription 7519 } 7520 postIndex := iNdEx + msglen 7521 if postIndex < 0 { 7522 return ErrInvalidLengthSubscription 7523 } 7524 if postIndex > l { 7525 return io.ErrUnexpectedEOF 7526 } 7527 if err := m.SubscriptionSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7528 return err 7529 } 7530 iNdEx = postIndex 7531 case 2: 7532 if wireType != 2 { 7533 return fmt.Errorf("proto: wrong wireType = %d for field TransactionTimeout", wireType) 7534 } 7535 var msglen int 7536 for shift := uint(0); ; shift += 7 { 7537 if shift >= 64 { 7538 return ErrIntOverflowSubscription 7539 } 7540 if iNdEx >= l { 7541 return io.ErrUnexpectedEOF 7542 } 7543 b := dAtA[iNdEx] 7544 iNdEx++ 7545 msglen |= int(b&0x7F) << shift 7546 if b < 0x80 { 7547 break 7548 } 7549 } 7550 if msglen < 0 { 7551 return ErrInvalidLengthSubscription 7552 } 7553 postIndex := iNdEx + msglen 7554 if postIndex < 0 { 7555 return ErrInvalidLengthSubscription 7556 } 7557 if postIndex > l { 7558 return io.ErrUnexpectedEOF 7559 } 7560 if m.TransactionTimeout == nil { 7561 m.TransactionTimeout = new(time.Duration) 7562 } 7563 if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.TransactionTimeout, dAtA[iNdEx:postIndex]); err != nil { 7564 return err 7565 } 7566 iNdEx = postIndex 7567 default: 7568 iNdEx = preIndex 7569 skippy, err := skipSubscription(dAtA[iNdEx:]) 7570 if err != nil { 7571 return err 7572 } 7573 if (skippy < 0) || (iNdEx+skippy) < 0 { 7574 return ErrInvalidLengthSubscription 7575 } 7576 if (iNdEx + skippy) > l { 7577 return io.ErrUnexpectedEOF 7578 } 7579 iNdEx += skippy 7580 } 7581 } 7582 7583 if iNdEx > l { 7584 return io.ErrUnexpectedEOF 7585 } 7586 return nil 7587 } 7588 func (m *ChannelStatus) Unmarshal(dAtA []byte) error { 7589 l := len(dAtA) 7590 iNdEx := 0 7591 for iNdEx < l { 7592 preIndex := iNdEx 7593 var wire uint64 7594 for shift := uint(0); ; shift += 7 { 7595 if shift >= 64 { 7596 return ErrIntOverflowSubscription 7597 } 7598 if iNdEx >= l { 7599 return io.ErrUnexpectedEOF 7600 } 7601 b := dAtA[iNdEx] 7602 iNdEx++ 7603 wire |= uint64(b&0x7F) << shift 7604 if b < 0x80 { 7605 break 7606 } 7607 } 7608 fieldNum := int32(wire >> 3) 7609 wireType := int(wire & 0x7) 7610 if wireType == 4 { 7611 return fmt.Errorf("proto: ChannelStatus: wiretype end group for non-group") 7612 } 7613 if fieldNum <= 0 { 7614 return fmt.Errorf("proto: ChannelStatus: illegal tag %d (wire type %d)", fieldNum, wire) 7615 } 7616 switch fieldNum { 7617 case 1: 7618 if wireType != 0 { 7619 return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) 7620 } 7621 m.Phase = 0 7622 for shift := uint(0); ; shift += 7 { 7623 if shift >= 64 { 7624 return ErrIntOverflowSubscription 7625 } 7626 if iNdEx >= l { 7627 return io.ErrUnexpectedEOF 7628 } 7629 b := dAtA[iNdEx] 7630 iNdEx++ 7631 m.Phase |= ChannelPhase(b&0x7F) << shift 7632 if b < 0x80 { 7633 break 7634 } 7635 } 7636 case 2: 7637 if wireType != 0 { 7638 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 7639 } 7640 m.State = 0 7641 for shift := uint(0); ; shift += 7 { 7642 if shift >= 64 { 7643 return ErrIntOverflowSubscription 7644 } 7645 if iNdEx >= l { 7646 return io.ErrUnexpectedEOF 7647 } 7648 b := dAtA[iNdEx] 7649 iNdEx++ 7650 m.State |= ChannelState(b&0x7F) << shift 7651 if b < 0x80 { 7652 break 7653 } 7654 } 7655 case 3: 7656 if wireType != 2 { 7657 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) 7658 } 7659 var msglen int 7660 for shift := uint(0); ; shift += 7 { 7661 if shift >= 64 { 7662 return ErrIntOverflowSubscription 7663 } 7664 if iNdEx >= l { 7665 return io.ErrUnexpectedEOF 7666 } 7667 b := dAtA[iNdEx] 7668 iNdEx++ 7669 msglen |= int(b&0x7F) << shift 7670 if b < 0x80 { 7671 break 7672 } 7673 } 7674 if msglen < 0 { 7675 return ErrInvalidLengthSubscription 7676 } 7677 postIndex := iNdEx + msglen 7678 if postIndex < 0 { 7679 return ErrInvalidLengthSubscription 7680 } 7681 if postIndex > l { 7682 return io.ErrUnexpectedEOF 7683 } 7684 if m.Error == nil { 7685 m.Error = &Error{} 7686 } 7687 if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7688 return err 7689 } 7690 iNdEx = postIndex 7691 case 4: 7692 if wireType != 2 { 7693 return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) 7694 } 7695 var msglen int 7696 for shift := uint(0); ; shift += 7 { 7697 if shift >= 64 { 7698 return ErrIntOverflowSubscription 7699 } 7700 if iNdEx >= l { 7701 return io.ErrUnexpectedEOF 7702 } 7703 b := dAtA[iNdEx] 7704 iNdEx++ 7705 msglen |= int(b&0x7F) << shift 7706 if b < 0x80 { 7707 break 7708 } 7709 } 7710 if msglen < 0 { 7711 return ErrInvalidLengthSubscription 7712 } 7713 postIndex := iNdEx + msglen 7714 if postIndex < 0 { 7715 return ErrInvalidLengthSubscription 7716 } 7717 if postIndex > l { 7718 return io.ErrUnexpectedEOF 7719 } 7720 if m.Timestamp == nil { 7721 m.Timestamp = new(time.Time) 7722 } 7723 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { 7724 return err 7725 } 7726 iNdEx = postIndex 7727 case 5: 7728 if wireType != 0 { 7729 return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType) 7730 } 7731 m.Term = 0 7732 for shift := uint(0); ; shift += 7 { 7733 if shift >= 64 { 7734 return ErrIntOverflowSubscription 7735 } 7736 if iNdEx >= l { 7737 return io.ErrUnexpectedEOF 7738 } 7739 b := dAtA[iNdEx] 7740 iNdEx++ 7741 m.Term |= TermID(b&0x7F) << shift 7742 if b < 0x80 { 7743 break 7744 } 7745 } 7746 case 6: 7747 if wireType != 2 { 7748 return fmt.Errorf("proto: wrong wireType = %d for field Master", wireType) 7749 } 7750 var stringLen uint64 7751 for shift := uint(0); ; shift += 7 { 7752 if shift >= 64 { 7753 return ErrIntOverflowSubscription 7754 } 7755 if iNdEx >= l { 7756 return io.ErrUnexpectedEOF 7757 } 7758 b := dAtA[iNdEx] 7759 iNdEx++ 7760 stringLen |= uint64(b&0x7F) << shift 7761 if b < 0x80 { 7762 break 7763 } 7764 } 7765 intStringLen := int(stringLen) 7766 if intStringLen < 0 { 7767 return ErrInvalidLengthSubscription 7768 } 7769 postIndex := iNdEx + intStringLen 7770 if postIndex < 0 { 7771 return ErrInvalidLengthSubscription 7772 } 7773 if postIndex > l { 7774 return io.ErrUnexpectedEOF 7775 } 7776 m.Master = MasterID(dAtA[iNdEx:postIndex]) 7777 iNdEx = postIndex 7778 default: 7779 iNdEx = preIndex 7780 skippy, err := skipSubscription(dAtA[iNdEx:]) 7781 if err != nil { 7782 return err 7783 } 7784 if (skippy < 0) || (iNdEx+skippy) < 0 { 7785 return ErrInvalidLengthSubscription 7786 } 7787 if (iNdEx + skippy) > l { 7788 return io.ErrUnexpectedEOF 7789 } 7790 iNdEx += skippy 7791 } 7792 } 7793 7794 if iNdEx > l { 7795 return io.ErrUnexpectedEOF 7796 } 7797 return nil 7798 } 7799 func (m *SubscriptionMeta) Unmarshal(dAtA []byte) error { 7800 l := len(dAtA) 7801 iNdEx := 0 7802 for iNdEx < l { 7803 preIndex := iNdEx 7804 var wire uint64 7805 for shift := uint(0); ; shift += 7 { 7806 if shift >= 64 { 7807 return ErrIntOverflowSubscription 7808 } 7809 if iNdEx >= l { 7810 return io.ErrUnexpectedEOF 7811 } 7812 b := dAtA[iNdEx] 7813 iNdEx++ 7814 wire |= uint64(b&0x7F) << shift 7815 if b < 0x80 { 7816 break 7817 } 7818 } 7819 fieldNum := int32(wire >> 3) 7820 wireType := int(wire & 0x7) 7821 if wireType == 4 { 7822 return fmt.Errorf("proto: SubscriptionMeta: wiretype end group for non-group") 7823 } 7824 if fieldNum <= 0 { 7825 return fmt.Errorf("proto: SubscriptionMeta: illegal tag %d (wire type %d)", fieldNum, wire) 7826 } 7827 switch fieldNum { 7828 case 1: 7829 if wireType != 2 { 7830 return fmt.Errorf("proto: wrong wireType = %d for field E2NodeID", wireType) 7831 } 7832 var stringLen uint64 7833 for shift := uint(0); ; shift += 7 { 7834 if shift >= 64 { 7835 return ErrIntOverflowSubscription 7836 } 7837 if iNdEx >= l { 7838 return io.ErrUnexpectedEOF 7839 } 7840 b := dAtA[iNdEx] 7841 iNdEx++ 7842 stringLen |= uint64(b&0x7F) << shift 7843 if b < 0x80 { 7844 break 7845 } 7846 } 7847 intStringLen := int(stringLen) 7848 if intStringLen < 0 { 7849 return ErrInvalidLengthSubscription 7850 } 7851 postIndex := iNdEx + intStringLen 7852 if postIndex < 0 { 7853 return ErrInvalidLengthSubscription 7854 } 7855 if postIndex > l { 7856 return io.ErrUnexpectedEOF 7857 } 7858 m.E2NodeID = E2NodeID(dAtA[iNdEx:postIndex]) 7859 iNdEx = postIndex 7860 case 2: 7861 if wireType != 2 { 7862 return fmt.Errorf("proto: wrong wireType = %d for field ServiceModel", wireType) 7863 } 7864 var msglen int 7865 for shift := uint(0); ; shift += 7 { 7866 if shift >= 64 { 7867 return ErrIntOverflowSubscription 7868 } 7869 if iNdEx >= l { 7870 return io.ErrUnexpectedEOF 7871 } 7872 b := dAtA[iNdEx] 7873 iNdEx++ 7874 msglen |= int(b&0x7F) << shift 7875 if b < 0x80 { 7876 break 7877 } 7878 } 7879 if msglen < 0 { 7880 return ErrInvalidLengthSubscription 7881 } 7882 postIndex := iNdEx + msglen 7883 if postIndex < 0 { 7884 return ErrInvalidLengthSubscription 7885 } 7886 if postIndex > l { 7887 return io.ErrUnexpectedEOF 7888 } 7889 if err := m.ServiceModel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7890 return err 7891 } 7892 iNdEx = postIndex 7893 case 3: 7894 if wireType != 0 { 7895 return fmt.Errorf("proto: wrong wireType = %d for field Encoding", wireType) 7896 } 7897 m.Encoding = 0 7898 for shift := uint(0); ; shift += 7 { 7899 if shift >= 64 { 7900 return ErrIntOverflowSubscription 7901 } 7902 if iNdEx >= l { 7903 return io.ErrUnexpectedEOF 7904 } 7905 b := dAtA[iNdEx] 7906 iNdEx++ 7907 m.Encoding |= Encoding(b&0x7F) << shift 7908 if b < 0x80 { 7909 break 7910 } 7911 } 7912 case 4: 7913 if wireType != 0 { 7914 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 7915 } 7916 m.Revision = 0 7917 for shift := uint(0); ; shift += 7 { 7918 if shift >= 64 { 7919 return ErrIntOverflowSubscription 7920 } 7921 if iNdEx >= l { 7922 return io.ErrUnexpectedEOF 7923 } 7924 b := dAtA[iNdEx] 7925 iNdEx++ 7926 m.Revision |= Revision(b&0x7F) << shift 7927 if b < 0x80 { 7928 break 7929 } 7930 } 7931 case 5: 7932 if wireType != 2 { 7933 return fmt.Errorf("proto: wrong wireType = %d for field Finalizers", wireType) 7934 } 7935 var stringLen uint64 7936 for shift := uint(0); ; shift += 7 { 7937 if shift >= 64 { 7938 return ErrIntOverflowSubscription 7939 } 7940 if iNdEx >= l { 7941 return io.ErrUnexpectedEOF 7942 } 7943 b := dAtA[iNdEx] 7944 iNdEx++ 7945 stringLen |= uint64(b&0x7F) << shift 7946 if b < 0x80 { 7947 break 7948 } 7949 } 7950 intStringLen := int(stringLen) 7951 if intStringLen < 0 { 7952 return ErrInvalidLengthSubscription 7953 } 7954 postIndex := iNdEx + intStringLen 7955 if postIndex < 0 { 7956 return ErrInvalidLengthSubscription 7957 } 7958 if postIndex > l { 7959 return io.ErrUnexpectedEOF 7960 } 7961 m.Finalizers = append(m.Finalizers, string(dAtA[iNdEx:postIndex])) 7962 iNdEx = postIndex 7963 default: 7964 iNdEx = preIndex 7965 skippy, err := skipSubscription(dAtA[iNdEx:]) 7966 if err != nil { 7967 return err 7968 } 7969 if (skippy < 0) || (iNdEx+skippy) < 0 { 7970 return ErrInvalidLengthSubscription 7971 } 7972 if (iNdEx + skippy) > l { 7973 return io.ErrUnexpectedEOF 7974 } 7975 iNdEx += skippy 7976 } 7977 } 7978 7979 if iNdEx > l { 7980 return io.ErrUnexpectedEOF 7981 } 7982 return nil 7983 } 7984 func (m *Subscription) Unmarshal(dAtA []byte) error { 7985 l := len(dAtA) 7986 iNdEx := 0 7987 for iNdEx < l { 7988 preIndex := iNdEx 7989 var wire uint64 7990 for shift := uint(0); ; shift += 7 { 7991 if shift >= 64 { 7992 return ErrIntOverflowSubscription 7993 } 7994 if iNdEx >= l { 7995 return io.ErrUnexpectedEOF 7996 } 7997 b := dAtA[iNdEx] 7998 iNdEx++ 7999 wire |= uint64(b&0x7F) << shift 8000 if b < 0x80 { 8001 break 8002 } 8003 } 8004 fieldNum := int32(wire >> 3) 8005 wireType := int(wire & 0x7) 8006 if wireType == 4 { 8007 return fmt.Errorf("proto: Subscription: wiretype end group for non-group") 8008 } 8009 if fieldNum <= 0 { 8010 return fmt.Errorf("proto: Subscription: illegal tag %d (wire type %d)", fieldNum, wire) 8011 } 8012 switch fieldNum { 8013 case 1: 8014 if wireType != 2 { 8015 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 8016 } 8017 var stringLen uint64 8018 for shift := uint(0); ; shift += 7 { 8019 if shift >= 64 { 8020 return ErrIntOverflowSubscription 8021 } 8022 if iNdEx >= l { 8023 return io.ErrUnexpectedEOF 8024 } 8025 b := dAtA[iNdEx] 8026 iNdEx++ 8027 stringLen |= uint64(b&0x7F) << shift 8028 if b < 0x80 { 8029 break 8030 } 8031 } 8032 intStringLen := int(stringLen) 8033 if intStringLen < 0 { 8034 return ErrInvalidLengthSubscription 8035 } 8036 postIndex := iNdEx + intStringLen 8037 if postIndex < 0 { 8038 return ErrInvalidLengthSubscription 8039 } 8040 if postIndex > l { 8041 return io.ErrUnexpectedEOF 8042 } 8043 m.ID = SubscriptionID(dAtA[iNdEx:postIndex]) 8044 iNdEx = postIndex 8045 case 2: 8046 if wireType != 2 { 8047 return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionMeta", wireType) 8048 } 8049 var msglen int 8050 for shift := uint(0); ; shift += 7 { 8051 if shift >= 64 { 8052 return ErrIntOverflowSubscription 8053 } 8054 if iNdEx >= l { 8055 return io.ErrUnexpectedEOF 8056 } 8057 b := dAtA[iNdEx] 8058 iNdEx++ 8059 msglen |= int(b&0x7F) << shift 8060 if b < 0x80 { 8061 break 8062 } 8063 } 8064 if msglen < 0 { 8065 return ErrInvalidLengthSubscription 8066 } 8067 postIndex := iNdEx + msglen 8068 if postIndex < 0 { 8069 return ErrInvalidLengthSubscription 8070 } 8071 if postIndex > l { 8072 return io.ErrUnexpectedEOF 8073 } 8074 if err := m.SubscriptionMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8075 return err 8076 } 8077 iNdEx = postIndex 8078 case 3: 8079 if wireType != 2 { 8080 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) 8081 } 8082 var msglen int 8083 for shift := uint(0); ; shift += 7 { 8084 if shift >= 64 { 8085 return ErrIntOverflowSubscription 8086 } 8087 if iNdEx >= l { 8088 return io.ErrUnexpectedEOF 8089 } 8090 b := dAtA[iNdEx] 8091 iNdEx++ 8092 msglen |= int(b&0x7F) << shift 8093 if b < 0x80 { 8094 break 8095 } 8096 } 8097 if msglen < 0 { 8098 return ErrInvalidLengthSubscription 8099 } 8100 postIndex := iNdEx + msglen 8101 if postIndex < 0 { 8102 return ErrInvalidLengthSubscription 8103 } 8104 if postIndex > l { 8105 return io.ErrUnexpectedEOF 8106 } 8107 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8108 return err 8109 } 8110 iNdEx = postIndex 8111 case 4: 8112 if wireType != 2 { 8113 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 8114 } 8115 var msglen int 8116 for shift := uint(0); ; shift += 7 { 8117 if shift >= 64 { 8118 return ErrIntOverflowSubscription 8119 } 8120 if iNdEx >= l { 8121 return io.ErrUnexpectedEOF 8122 } 8123 b := dAtA[iNdEx] 8124 iNdEx++ 8125 msglen |= int(b&0x7F) << shift 8126 if b < 0x80 { 8127 break 8128 } 8129 } 8130 if msglen < 0 { 8131 return ErrInvalidLengthSubscription 8132 } 8133 postIndex := iNdEx + msglen 8134 if postIndex < 0 { 8135 return ErrInvalidLengthSubscription 8136 } 8137 if postIndex > l { 8138 return io.ErrUnexpectedEOF 8139 } 8140 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8141 return err 8142 } 8143 iNdEx = postIndex 8144 default: 8145 iNdEx = preIndex 8146 skippy, err := skipSubscription(dAtA[iNdEx:]) 8147 if err != nil { 8148 return err 8149 } 8150 if (skippy < 0) || (iNdEx+skippy) < 0 { 8151 return ErrInvalidLengthSubscription 8152 } 8153 if (iNdEx + skippy) > l { 8154 return io.ErrUnexpectedEOF 8155 } 8156 iNdEx += skippy 8157 } 8158 } 8159 8160 if iNdEx > l { 8161 return io.ErrUnexpectedEOF 8162 } 8163 return nil 8164 } 8165 func (m *SubscriptionStatus) Unmarshal(dAtA []byte) error { 8166 l := len(dAtA) 8167 iNdEx := 0 8168 for iNdEx < l { 8169 preIndex := iNdEx 8170 var wire uint64 8171 for shift := uint(0); ; shift += 7 { 8172 if shift >= 64 { 8173 return ErrIntOverflowSubscription 8174 } 8175 if iNdEx >= l { 8176 return io.ErrUnexpectedEOF 8177 } 8178 b := dAtA[iNdEx] 8179 iNdEx++ 8180 wire |= uint64(b&0x7F) << shift 8181 if b < 0x80 { 8182 break 8183 } 8184 } 8185 fieldNum := int32(wire >> 3) 8186 wireType := int(wire & 0x7) 8187 if wireType == 4 { 8188 return fmt.Errorf("proto: SubscriptionStatus: wiretype end group for non-group") 8189 } 8190 if fieldNum <= 0 { 8191 return fmt.Errorf("proto: SubscriptionStatus: illegal tag %d (wire type %d)", fieldNum, wire) 8192 } 8193 switch fieldNum { 8194 case 1: 8195 if wireType != 0 { 8196 return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) 8197 } 8198 m.Phase = 0 8199 for shift := uint(0); ; shift += 7 { 8200 if shift >= 64 { 8201 return ErrIntOverflowSubscription 8202 } 8203 if iNdEx >= l { 8204 return io.ErrUnexpectedEOF 8205 } 8206 b := dAtA[iNdEx] 8207 iNdEx++ 8208 m.Phase |= SubscriptionPhase(b&0x7F) << shift 8209 if b < 0x80 { 8210 break 8211 } 8212 } 8213 case 2: 8214 if wireType != 0 { 8215 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 8216 } 8217 m.State = 0 8218 for shift := uint(0); ; shift += 7 { 8219 if shift >= 64 { 8220 return ErrIntOverflowSubscription 8221 } 8222 if iNdEx >= l { 8223 return io.ErrUnexpectedEOF 8224 } 8225 b := dAtA[iNdEx] 8226 iNdEx++ 8227 m.State |= SubscriptionState(b&0x7F) << shift 8228 if b < 0x80 { 8229 break 8230 } 8231 } 8232 case 3: 8233 if wireType != 2 { 8234 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) 8235 } 8236 var msglen int 8237 for shift := uint(0); ; shift += 7 { 8238 if shift >= 64 { 8239 return ErrIntOverflowSubscription 8240 } 8241 if iNdEx >= l { 8242 return io.ErrUnexpectedEOF 8243 } 8244 b := dAtA[iNdEx] 8245 iNdEx++ 8246 msglen |= int(b&0x7F) << shift 8247 if b < 0x80 { 8248 break 8249 } 8250 } 8251 if msglen < 0 { 8252 return ErrInvalidLengthSubscription 8253 } 8254 postIndex := iNdEx + msglen 8255 if postIndex < 0 { 8256 return ErrInvalidLengthSubscription 8257 } 8258 if postIndex > l { 8259 return io.ErrUnexpectedEOF 8260 } 8261 if m.Error == nil { 8262 m.Error = &Error{} 8263 } 8264 if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8265 return err 8266 } 8267 iNdEx = postIndex 8268 case 4: 8269 if wireType != 2 { 8270 return fmt.Errorf("proto: wrong wireType = %d for field Channels", wireType) 8271 } 8272 var stringLen uint64 8273 for shift := uint(0); ; shift += 7 { 8274 if shift >= 64 { 8275 return ErrIntOverflowSubscription 8276 } 8277 if iNdEx >= l { 8278 return io.ErrUnexpectedEOF 8279 } 8280 b := dAtA[iNdEx] 8281 iNdEx++ 8282 stringLen |= uint64(b&0x7F) << shift 8283 if b < 0x80 { 8284 break 8285 } 8286 } 8287 intStringLen := int(stringLen) 8288 if intStringLen < 0 { 8289 return ErrInvalidLengthSubscription 8290 } 8291 postIndex := iNdEx + intStringLen 8292 if postIndex < 0 { 8293 return ErrInvalidLengthSubscription 8294 } 8295 if postIndex > l { 8296 return io.ErrUnexpectedEOF 8297 } 8298 m.Channels = append(m.Channels, ChannelID(dAtA[iNdEx:postIndex])) 8299 iNdEx = postIndex 8300 case 5: 8301 if wireType != 0 { 8302 return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType) 8303 } 8304 m.Term = 0 8305 for shift := uint(0); ; shift += 7 { 8306 if shift >= 64 { 8307 return ErrIntOverflowSubscription 8308 } 8309 if iNdEx >= l { 8310 return io.ErrUnexpectedEOF 8311 } 8312 b := dAtA[iNdEx] 8313 iNdEx++ 8314 m.Term |= TermID(b&0x7F) << shift 8315 if b < 0x80 { 8316 break 8317 } 8318 } 8319 case 6: 8320 if wireType != 2 { 8321 return fmt.Errorf("proto: wrong wireType = %d for field Master", wireType) 8322 } 8323 var stringLen uint64 8324 for shift := uint(0); ; shift += 7 { 8325 if shift >= 64 { 8326 return ErrIntOverflowSubscription 8327 } 8328 if iNdEx >= l { 8329 return io.ErrUnexpectedEOF 8330 } 8331 b := dAtA[iNdEx] 8332 iNdEx++ 8333 stringLen |= uint64(b&0x7F) << shift 8334 if b < 0x80 { 8335 break 8336 } 8337 } 8338 intStringLen := int(stringLen) 8339 if intStringLen < 0 { 8340 return ErrInvalidLengthSubscription 8341 } 8342 postIndex := iNdEx + intStringLen 8343 if postIndex < 0 { 8344 return ErrInvalidLengthSubscription 8345 } 8346 if postIndex > l { 8347 return io.ErrUnexpectedEOF 8348 } 8349 m.Master = MasterID(dAtA[iNdEx:postIndex]) 8350 iNdEx = postIndex 8351 default: 8352 iNdEx = preIndex 8353 skippy, err := skipSubscription(dAtA[iNdEx:]) 8354 if err != nil { 8355 return err 8356 } 8357 if (skippy < 0) || (iNdEx+skippy) < 0 { 8358 return ErrInvalidLengthSubscription 8359 } 8360 if (iNdEx + skippy) > l { 8361 return io.ErrUnexpectedEOF 8362 } 8363 iNdEx += skippy 8364 } 8365 } 8366 8367 if iNdEx > l { 8368 return io.ErrUnexpectedEOF 8369 } 8370 return nil 8371 } 8372 func skipSubscription(dAtA []byte) (n int, err error) { 8373 l := len(dAtA) 8374 iNdEx := 0 8375 depth := 0 8376 for iNdEx < l { 8377 var wire uint64 8378 for shift := uint(0); ; shift += 7 { 8379 if shift >= 64 { 8380 return 0, ErrIntOverflowSubscription 8381 } 8382 if iNdEx >= l { 8383 return 0, io.ErrUnexpectedEOF 8384 } 8385 b := dAtA[iNdEx] 8386 iNdEx++ 8387 wire |= (uint64(b) & 0x7F) << shift 8388 if b < 0x80 { 8389 break 8390 } 8391 } 8392 wireType := int(wire & 0x7) 8393 switch wireType { 8394 case 0: 8395 for shift := uint(0); ; shift += 7 { 8396 if shift >= 64 { 8397 return 0, ErrIntOverflowSubscription 8398 } 8399 if iNdEx >= l { 8400 return 0, io.ErrUnexpectedEOF 8401 } 8402 iNdEx++ 8403 if dAtA[iNdEx-1] < 0x80 { 8404 break 8405 } 8406 } 8407 case 1: 8408 iNdEx += 8 8409 case 2: 8410 var length int 8411 for shift := uint(0); ; shift += 7 { 8412 if shift >= 64 { 8413 return 0, ErrIntOverflowSubscription 8414 } 8415 if iNdEx >= l { 8416 return 0, io.ErrUnexpectedEOF 8417 } 8418 b := dAtA[iNdEx] 8419 iNdEx++ 8420 length |= (int(b) & 0x7F) << shift 8421 if b < 0x80 { 8422 break 8423 } 8424 } 8425 if length < 0 { 8426 return 0, ErrInvalidLengthSubscription 8427 } 8428 iNdEx += length 8429 case 3: 8430 depth++ 8431 case 4: 8432 if depth == 0 { 8433 return 0, ErrUnexpectedEndOfGroupSubscription 8434 } 8435 depth-- 8436 case 5: 8437 iNdEx += 4 8438 default: 8439 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 8440 } 8441 if iNdEx < 0 { 8442 return 0, ErrInvalidLengthSubscription 8443 } 8444 if depth == 0 { 8445 return iNdEx, nil 8446 } 8447 } 8448 return 0, io.ErrUnexpectedEOF 8449 } 8450 8451 var ( 8452 ErrInvalidLengthSubscription = fmt.Errorf("proto: negative length found during unmarshaling") 8453 ErrIntOverflowSubscription = fmt.Errorf("proto: integer overflow") 8454 ErrUnexpectedEndOfGroupSubscription = fmt.Errorf("proto: unexpected end of group") 8455 )