 9bdcbe0447
			
		
	
	9bdcbe0447
	
	
	
		
			
			Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			2650 lines
		
	
	
		
			61 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			2650 lines
		
	
	
		
			61 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Code generated by protoc-gen-gogo. DO NOT EDIT.
 | |
| // source: rpc.proto
 | |
| 
 | |
| package pubsub_pb
 | |
| 
 | |
| import (
 | |
| 	fmt "fmt"
 | |
| 	proto "github.com/gogo/protobuf/proto"
 | |
| 	io "io"
 | |
| 	math "math"
 | |
| 	math_bits "math/bits"
 | |
| )
 | |
| 
 | |
| // Reference imports to suppress errors if they are not otherwise used.
 | |
| var _ = proto.Marshal
 | |
| var _ = fmt.Errorf
 | |
| var _ = math.Inf
 | |
| 
 | |
| // This is a compile-time assertion to ensure that this generated file
 | |
| // is compatible with the proto package it is being compiled against.
 | |
| // A compilation error at this line likely means your copy of the
 | |
| // proto package needs to be updated.
 | |
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
 | |
| 
 | |
| type RPC struct {
 | |
| 	Subscriptions        []*RPC_SubOpts  `protobuf:"bytes,1,rep,name=subscriptions" json:"subscriptions,omitempty"`
 | |
| 	Publish              []*Message      `protobuf:"bytes,2,rep,name=publish" json:"publish,omitempty"`
 | |
| 	Control              *ControlMessage `protobuf:"bytes,3,opt,name=control" json:"control,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
 | |
| 	XXX_unrecognized     []byte          `json:"-"`
 | |
| 	XXX_sizecache        int32           `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *RPC) Reset()         { *m = RPC{} }
 | |
| func (m *RPC) String() string { return proto.CompactTextString(m) }
 | |
| func (*RPC) ProtoMessage()    {}
 | |
| func (*RPC) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_77a6da22d6a3feb1, []int{0}
 | |
| }
 | |
| func (m *RPC) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *RPC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_RPC.Marshal(b, m, deterministic)
 | |
| 	} else {
 | |
| 		b = b[:cap(b)]
 | |
| 		n, err := m.MarshalToSizedBuffer(b)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 		return b[:n], nil
 | |
| 	}
 | |
| }
 | |
| func (m *RPC) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_RPC.Merge(m, src)
 | |
| }
 | |
| func (m *RPC) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *RPC) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_RPC.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_RPC proto.InternalMessageInfo
 | |
| 
 | |
| func (m *RPC) GetSubscriptions() []*RPC_SubOpts {
 | |
| 	if m != nil {
 | |
| 		return m.Subscriptions
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *RPC) GetPublish() []*Message {
 | |
| 	if m != nil {
 | |
| 		return m.Publish
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *RPC) GetControl() *ControlMessage {
 | |
| 	if m != nil {
 | |
| 		return m.Control
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type RPC_SubOpts struct {
 | |
| 	Subscribe            *bool    `protobuf:"varint,1,opt,name=subscribe" json:"subscribe,omitempty"`
 | |
| 	Topicid              *string  `protobuf:"bytes,2,opt,name=topicid" json:"topicid,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 | |
| 	XXX_unrecognized     []byte   `json:"-"`
 | |
| 	XXX_sizecache        int32    `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *RPC_SubOpts) Reset()         { *m = RPC_SubOpts{} }
 | |
| func (m *RPC_SubOpts) String() string { return proto.CompactTextString(m) }
 | |
| func (*RPC_SubOpts) ProtoMessage()    {}
 | |
| func (*RPC_SubOpts) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_77a6da22d6a3feb1, []int{0, 0}
 | |
| }
 | |
| func (m *RPC_SubOpts) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *RPC_SubOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_RPC_SubOpts.Marshal(b, m, deterministic)
 | |
| 	} else {
 | |
| 		b = b[:cap(b)]
 | |
| 		n, err := m.MarshalToSizedBuffer(b)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 		return b[:n], nil
 | |
| 	}
 | |
| }
 | |
| func (m *RPC_SubOpts) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_RPC_SubOpts.Merge(m, src)
 | |
| }
 | |
| func (m *RPC_SubOpts) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *RPC_SubOpts) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_RPC_SubOpts.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_RPC_SubOpts proto.InternalMessageInfo
 | |
| 
 | |
| func (m *RPC_SubOpts) GetSubscribe() bool {
 | |
| 	if m != nil && m.Subscribe != nil {
 | |
| 		return *m.Subscribe
 | |
| 	}
 | |
| 	return false
 | |
| }
 | |
| 
 | |
| func (m *RPC_SubOpts) GetTopicid() string {
 | |
| 	if m != nil && m.Topicid != nil {
 | |
| 		return *m.Topicid
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| type Message struct {
 | |
| 	From                 []byte   `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"`
 | |
| 	Data                 []byte   `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
 | |
| 	Seqno                []byte   `protobuf:"bytes,3,opt,name=seqno" json:"seqno,omitempty"`
 | |
| 	Topic                *string  `protobuf:"bytes,4,opt,name=topic" json:"topic,omitempty"`
 | |
| 	Signature            []byte   `protobuf:"bytes,5,opt,name=signature" json:"signature,omitempty"`
 | |
| 	Key                  []byte   `protobuf:"bytes,6,opt,name=key" json:"key,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 | |
| 	XXX_unrecognized     []byte   `json:"-"`
 | |
| 	XXX_sizecache        int32    `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *Message) Reset()         { *m = Message{} }
 | |
| func (m *Message) String() string { return proto.CompactTextString(m) }
 | |
| func (*Message) ProtoMessage()    {}
 | |
| func (*Message) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_77a6da22d6a3feb1, []int{1}
 | |
| }
 | |
| func (m *Message) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_Message.Marshal(b, m, deterministic)
 | |
| 	} else {
 | |
| 		b = b[:cap(b)]
 | |
| 		n, err := m.MarshalToSizedBuffer(b)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 		return b[:n], nil
 | |
| 	}
 | |
| }
 | |
| func (m *Message) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_Message.Merge(m, src)
 | |
| }
 | |
| func (m *Message) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *Message) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_Message.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_Message proto.InternalMessageInfo
 | |
| 
 | |
| func (m *Message) GetFrom() []byte {
 | |
| 	if m != nil {
 | |
| 		return m.From
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *Message) GetData() []byte {
 | |
| 	if m != nil {
 | |
| 		return m.Data
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *Message) GetSeqno() []byte {
 | |
| 	if m != nil {
 | |
| 		return m.Seqno
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *Message) GetTopic() string {
 | |
| 	if m != nil && m.Topic != nil {
 | |
| 		return *m.Topic
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (m *Message) GetSignature() []byte {
 | |
| 	if m != nil {
 | |
| 		return m.Signature
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *Message) GetKey() []byte {
 | |
| 	if m != nil {
 | |
| 		return m.Key
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type ControlMessage struct {
 | |
| 	Ihave                []*ControlIHave `protobuf:"bytes,1,rep,name=ihave" json:"ihave,omitempty"`
 | |
| 	Iwant                []*ControlIWant `protobuf:"bytes,2,rep,name=iwant" json:"iwant,omitempty"`
 | |
| 	Graft                []*ControlGraft `protobuf:"bytes,3,rep,name=graft" json:"graft,omitempty"`
 | |
| 	Prune                []*ControlPrune `protobuf:"bytes,4,rep,name=prune" json:"prune,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
 | |
| 	XXX_unrecognized     []byte          `json:"-"`
 | |
| 	XXX_sizecache        int32           `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *ControlMessage) Reset()         { *m = ControlMessage{} }
 | |
| func (m *ControlMessage) String() string { return proto.CompactTextString(m) }
 | |
| func (*ControlMessage) ProtoMessage()    {}
 | |
| func (*ControlMessage) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_77a6da22d6a3feb1, []int{2}
 | |
| }
 | |
| func (m *ControlMessage) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *ControlMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_ControlMessage.Marshal(b, m, deterministic)
 | |
| 	} else {
 | |
| 		b = b[:cap(b)]
 | |
| 		n, err := m.MarshalToSizedBuffer(b)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 		return b[:n], nil
 | |
| 	}
 | |
| }
 | |
| func (m *ControlMessage) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ControlMessage.Merge(m, src)
 | |
| }
 | |
| func (m *ControlMessage) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *ControlMessage) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_ControlMessage.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_ControlMessage proto.InternalMessageInfo
 | |
| 
 | |
| func (m *ControlMessage) GetIhave() []*ControlIHave {
 | |
| 	if m != nil {
 | |
| 		return m.Ihave
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *ControlMessage) GetIwant() []*ControlIWant {
 | |
| 	if m != nil {
 | |
| 		return m.Iwant
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *ControlMessage) GetGraft() []*ControlGraft {
 | |
| 	if m != nil {
 | |
| 		return m.Graft
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *ControlMessage) GetPrune() []*ControlPrune {
 | |
| 	if m != nil {
 | |
| 		return m.Prune
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type ControlIHave struct {
 | |
| 	TopicID *string `protobuf:"bytes,1,opt,name=topicID" json:"topicID,omitempty"`
 | |
| 	// implementors from other languages should use bytes here - go protobuf emits invalid utf8 strings
 | |
| 	MessageIDs           []string `protobuf:"bytes,2,rep,name=messageIDs" json:"messageIDs,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 | |
| 	XXX_unrecognized     []byte   `json:"-"`
 | |
| 	XXX_sizecache        int32    `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *ControlIHave) Reset()         { *m = ControlIHave{} }
 | |
| func (m *ControlIHave) String() string { return proto.CompactTextString(m) }
 | |
| func (*ControlIHave) ProtoMessage()    {}
 | |
| func (*ControlIHave) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_77a6da22d6a3feb1, []int{3}
 | |
| }
 | |
| func (m *ControlIHave) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *ControlIHave) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_ControlIHave.Marshal(b, m, deterministic)
 | |
| 	} else {
 | |
| 		b = b[:cap(b)]
 | |
| 		n, err := m.MarshalToSizedBuffer(b)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 		return b[:n], nil
 | |
| 	}
 | |
| }
 | |
| func (m *ControlIHave) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ControlIHave.Merge(m, src)
 | |
| }
 | |
| func (m *ControlIHave) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *ControlIHave) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_ControlIHave.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_ControlIHave proto.InternalMessageInfo
 | |
| 
 | |
| func (m *ControlIHave) GetTopicID() string {
 | |
| 	if m != nil && m.TopicID != nil {
 | |
| 		return *m.TopicID
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (m *ControlIHave) GetMessageIDs() []string {
 | |
| 	if m != nil {
 | |
| 		return m.MessageIDs
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type ControlIWant struct {
 | |
| 	// implementors from other languages should use bytes here - go protobuf emits invalid utf8 strings
 | |
| 	MessageIDs           []string `protobuf:"bytes,1,rep,name=messageIDs" json:"messageIDs,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 | |
| 	XXX_unrecognized     []byte   `json:"-"`
 | |
| 	XXX_sizecache        int32    `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *ControlIWant) Reset()         { *m = ControlIWant{} }
 | |
| func (m *ControlIWant) String() string { return proto.CompactTextString(m) }
 | |
| func (*ControlIWant) ProtoMessage()    {}
 | |
| func (*ControlIWant) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_77a6da22d6a3feb1, []int{4}
 | |
| }
 | |
| func (m *ControlIWant) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *ControlIWant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_ControlIWant.Marshal(b, m, deterministic)
 | |
| 	} else {
 | |
| 		b = b[:cap(b)]
 | |
| 		n, err := m.MarshalToSizedBuffer(b)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 		return b[:n], nil
 | |
| 	}
 | |
| }
 | |
| func (m *ControlIWant) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ControlIWant.Merge(m, src)
 | |
| }
 | |
| func (m *ControlIWant) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *ControlIWant) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_ControlIWant.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_ControlIWant proto.InternalMessageInfo
 | |
| 
 | |
| func (m *ControlIWant) GetMessageIDs() []string {
 | |
| 	if m != nil {
 | |
| 		return m.MessageIDs
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type ControlGraft struct {
 | |
| 	TopicID              *string  `protobuf:"bytes,1,opt,name=topicID" json:"topicID,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 | |
| 	XXX_unrecognized     []byte   `json:"-"`
 | |
| 	XXX_sizecache        int32    `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *ControlGraft) Reset()         { *m = ControlGraft{} }
 | |
| func (m *ControlGraft) String() string { return proto.CompactTextString(m) }
 | |
| func (*ControlGraft) ProtoMessage()    {}
 | |
| func (*ControlGraft) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_77a6da22d6a3feb1, []int{5}
 | |
| }
 | |
| func (m *ControlGraft) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *ControlGraft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_ControlGraft.Marshal(b, m, deterministic)
 | |
| 	} else {
 | |
| 		b = b[:cap(b)]
 | |
| 		n, err := m.MarshalToSizedBuffer(b)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 		return b[:n], nil
 | |
| 	}
 | |
| }
 | |
| func (m *ControlGraft) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ControlGraft.Merge(m, src)
 | |
| }
 | |
| func (m *ControlGraft) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *ControlGraft) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_ControlGraft.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_ControlGraft proto.InternalMessageInfo
 | |
| 
 | |
| func (m *ControlGraft) GetTopicID() string {
 | |
| 	if m != nil && m.TopicID != nil {
 | |
| 		return *m.TopicID
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| type ControlPrune struct {
 | |
| 	TopicID              *string     `protobuf:"bytes,1,opt,name=topicID" json:"topicID,omitempty"`
 | |
| 	Peers                []*PeerInfo `protobuf:"bytes,2,rep,name=peers" json:"peers,omitempty"`
 | |
| 	Backoff              *uint64     `protobuf:"varint,3,opt,name=backoff" json:"backoff,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
 | |
| 	XXX_unrecognized     []byte      `json:"-"`
 | |
| 	XXX_sizecache        int32       `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *ControlPrune) Reset()         { *m = ControlPrune{} }
 | |
| func (m *ControlPrune) String() string { return proto.CompactTextString(m) }
 | |
| func (*ControlPrune) ProtoMessage()    {}
 | |
| func (*ControlPrune) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_77a6da22d6a3feb1, []int{6}
 | |
| }
 | |
| func (m *ControlPrune) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *ControlPrune) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_ControlPrune.Marshal(b, m, deterministic)
 | |
| 	} else {
 | |
| 		b = b[:cap(b)]
 | |
| 		n, err := m.MarshalToSizedBuffer(b)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 		return b[:n], nil
 | |
| 	}
 | |
| }
 | |
| func (m *ControlPrune) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ControlPrune.Merge(m, src)
 | |
| }
 | |
| func (m *ControlPrune) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *ControlPrune) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_ControlPrune.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_ControlPrune proto.InternalMessageInfo
 | |
| 
 | |
| func (m *ControlPrune) GetTopicID() string {
 | |
| 	if m != nil && m.TopicID != nil {
 | |
| 		return *m.TopicID
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (m *ControlPrune) GetPeers() []*PeerInfo {
 | |
| 	if m != nil {
 | |
| 		return m.Peers
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *ControlPrune) GetBackoff() uint64 {
 | |
| 	if m != nil && m.Backoff != nil {
 | |
| 		return *m.Backoff
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| type PeerInfo struct {
 | |
| 	PeerID               []byte   `protobuf:"bytes,1,opt,name=peerID" json:"peerID,omitempty"`
 | |
| 	SignedPeerRecord     []byte   `protobuf:"bytes,2,opt,name=signedPeerRecord" json:"signedPeerRecord,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 | |
| 	XXX_unrecognized     []byte   `json:"-"`
 | |
| 	XXX_sizecache        int32    `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *PeerInfo) Reset()         { *m = PeerInfo{} }
 | |
| func (m *PeerInfo) String() string { return proto.CompactTextString(m) }
 | |
| func (*PeerInfo) ProtoMessage()    {}
 | |
| func (*PeerInfo) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_77a6da22d6a3feb1, []int{7}
 | |
| }
 | |
| func (m *PeerInfo) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *PeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_PeerInfo.Marshal(b, m, deterministic)
 | |
| 	} else {
 | |
| 		b = b[:cap(b)]
 | |
| 		n, err := m.MarshalToSizedBuffer(b)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 		return b[:n], nil
 | |
| 	}
 | |
| }
 | |
| func (m *PeerInfo) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_PeerInfo.Merge(m, src)
 | |
| }
 | |
| func (m *PeerInfo) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *PeerInfo) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_PeerInfo.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_PeerInfo proto.InternalMessageInfo
 | |
| 
 | |
| func (m *PeerInfo) GetPeerID() []byte {
 | |
| 	if m != nil {
 | |
| 		return m.PeerID
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (m *PeerInfo) GetSignedPeerRecord() []byte {
 | |
| 	if m != nil {
 | |
| 		return m.SignedPeerRecord
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func init() {
 | |
| 	proto.RegisterType((*RPC)(nil), "pubsub.pb.RPC")
 | |
| 	proto.RegisterType((*RPC_SubOpts)(nil), "pubsub.pb.RPC.SubOpts")
 | |
| 	proto.RegisterType((*Message)(nil), "pubsub.pb.Message")
 | |
| 	proto.RegisterType((*ControlMessage)(nil), "pubsub.pb.ControlMessage")
 | |
| 	proto.RegisterType((*ControlIHave)(nil), "pubsub.pb.ControlIHave")
 | |
| 	proto.RegisterType((*ControlIWant)(nil), "pubsub.pb.ControlIWant")
 | |
| 	proto.RegisterType((*ControlGraft)(nil), "pubsub.pb.ControlGraft")
 | |
| 	proto.RegisterType((*ControlPrune)(nil), "pubsub.pb.ControlPrune")
 | |
| 	proto.RegisterType((*PeerInfo)(nil), "pubsub.pb.PeerInfo")
 | |
| }
 | |
| 
 | |
| func init() { proto.RegisterFile("rpc.proto", fileDescriptor_77a6da22d6a3feb1) }
 | |
| 
 | |
| var fileDescriptor_77a6da22d6a3feb1 = []byte{
 | |
| 	// 480 bytes of a gzipped FileDescriptorProto
 | |
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x8e, 0xd3, 0x3c,
 | |
| 	0x10, 0xc7, 0xe5, 0x6d, 0xbb, 0xd9, 0xcc, 0xe6, 0xfb, 0xb4, 0x32, 0x68, 0x31, 0x08, 0x55, 0x55,
 | |
| 	0x4e, 0x01, 0x41, 0x0e, 0xcb, 0x95, 0x0b, 0xb4, 0x12, 0x9b, 0x03, 0x50, 0x99, 0x03, 0x67, 0x27,
 | |
| 	0x75, 0xba, 0xd1, 0x6e, 0x63, 0x63, 0x3b, 0x8b, 0x78, 0x08, 0xde, 0x8b, 0x03, 0x07, 0x1e, 0x01,
 | |
| 	0xf5, 0xc6, 0x5b, 0x20, 0x3b, 0x4e, 0x9a, 0xa5, 0x94, 0x9b, 0xe7, 0xef, 0xdf, 0xcc, 0xfc, 0x3d,
 | |
| 	0x1e, 0x08, 0x95, 0x2c, 0x52, 0xa9, 0x84, 0x11, 0x38, 0x94, 0x4d, 0xae, 0x9b, 0x3c, 0x95, 0x79,
 | |
| 	0xfc, 0x0b, 0xc1, 0x88, 0x2e, 0xe7, 0xf8, 0x25, 0xfc, 0xa7, 0x9b, 0x5c, 0x17, 0xaa, 0x92, 0xa6,
 | |
| 	0x12, 0xb5, 0x26, 0x68, 0x36, 0x4a, 0x4e, 0x2f, 0xce, 0xd3, 0x1e, 0x4d, 0xe9, 0x72, 0x9e, 0x7e,
 | |
| 	0x68, 0xf2, 0xf7, 0xd2, 0x68, 0x7a, 0x17, 0xc6, 0xcf, 0x20, 0x90, 0x4d, 0x7e, 0x53, 0xe9, 0x2b,
 | |
| 	0x72, 0xe4, 0xf2, 0xf0, 0x20, 0xef, 0x2d, 0xd7, 0x9a, 0xad, 0x39, 0xed, 0x10, 0xfc, 0x02, 0x82,
 | |
| 	0x42, 0xd4, 0x46, 0x89, 0x1b, 0x32, 0x9a, 0xa1, 0xe4, 0xf4, 0xe2, 0xe1, 0x80, 0x9e, 0xb7, 0x37,
 | |
| 	0x7d, 0x92, 0x27, 0x1f, 0xbd, 0x82, 0xc0, 0x37, 0xc7, 0x8f, 0x21, 0xf4, 0xed, 0x73, 0x4e, 0xd0,
 | |
| 	0x0c, 0x25, 0x27, 0x74, 0x27, 0x60, 0x02, 0x81, 0x11, 0xb2, 0x2a, 0xaa, 0x15, 0x39, 0x9a, 0xa1,
 | |
| 	0x24, 0xa4, 0x5d, 0x18, 0x7f, 0x45, 0x10, 0xf8, 0xba, 0x18, 0xc3, 0xb8, 0x54, 0x62, 0xe3, 0xd2,
 | |
| 	0x23, 0xea, 0xce, 0x56, 0x5b, 0x31, 0xc3, 0x5c, 0x5a, 0x44, 0xdd, 0x19, 0xdf, 0x87, 0x89, 0xe6,
 | |
| 	0x9f, 0x6a, 0xe1, 0x9c, 0x46, 0xb4, 0x0d, 0xac, 0xea, 0x8a, 0x92, 0xb1, 0xeb, 0xd0, 0x06, 0xce,
 | |
| 	0x57, 0xb5, 0xae, 0x99, 0x69, 0x14, 0x27, 0x13, 0xc7, 0xef, 0x04, 0x7c, 0x06, 0xa3, 0x6b, 0xfe,
 | |
| 	0x85, 0x1c, 0x3b, 0xdd, 0x1e, 0xe3, 0xef, 0x08, 0xfe, 0xbf, 0xfb, 0x5c, 0xfc, 0x1c, 0x26, 0xd5,
 | |
| 	0x15, 0xbb, 0xe5, 0x7e, 0xfc, 0x0f, 0xf6, 0x07, 0x93, 0x5d, 0xb2, 0x5b, 0x4e, 0x5b, 0xca, 0xe1,
 | |
| 	0x9f, 0x59, 0x6d, 0xfc, 0xd4, 0xff, 0x86, 0x7f, 0x64, 0xb5, 0xa1, 0x2d, 0x65, 0xf1, 0xb5, 0x62,
 | |
| 	0xa5, 0x21, 0xa3, 0x43, 0xf8, 0x1b, 0x7b, 0x4d, 0x5b, 0xca, 0xe2, 0x52, 0x35, 0x35, 0x27, 0xe3,
 | |
| 	0x43, 0xf8, 0xd2, 0x5e, 0xd3, 0x96, 0x8a, 0x2f, 0x21, 0x1a, 0x7a, 0xec, 0x3f, 0x22, 0x5b, 0xb8,
 | |
| 	0x29, 0x77, 0x1f, 0x91, 0x2d, 0xf0, 0x14, 0x60, 0xd3, 0x3e, 0x38, 0x5b, 0x68, 0xe7, 0x3d, 0xa4,
 | |
| 	0x03, 0x25, 0x4e, 0x77, 0x95, 0xac, 0xfd, 0x3f, 0x78, 0xb4, 0xc7, 0x27, 0x3d, 0xef, 0xfc, 0x1f,
 | |
| 	0xee, 0x1c, 0x6f, 0x7a, 0xd2, 0x59, 0xff, 0x87, 0xc7, 0x27, 0x30, 0x91, 0x9c, 0x2b, 0xed, 0x47,
 | |
| 	0x7b, 0x6f, 0xf0, 0xf8, 0x25, 0xe7, 0x2a, 0xab, 0x4b, 0x41, 0x5b, 0xc2, 0x16, 0xc9, 0x59, 0x71,
 | |
| 	0x2d, 0xca, 0xd2, 0x6d, 0xc9, 0x98, 0x76, 0x61, 0xfc, 0x0e, 0x4e, 0x3a, 0x18, 0x9f, 0xc3, 0xb1,
 | |
| 	0xc5, 0x7d, 0xa7, 0x88, 0xfa, 0x08, 0x3f, 0x85, 0x33, 0xbb, 0x24, 0x7c, 0x65, 0x49, 0xca, 0x0b,
 | |
| 	0xa1, 0x56, 0x7e, 0x03, 0xf7, 0xf4, 0xd7, 0xd1, 0xb7, 0xed, 0x14, 0xfd, 0xd8, 0x4e, 0xd1, 0xcf,
 | |
| 	0xed, 0x14, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xb2, 0xf8, 0xc4, 0x6e, 0xd2, 0x03, 0x00, 0x00,
 | |
| }
 | |
| 
 | |
| func (m *RPC) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *RPC) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *RPC) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		i -= len(m.XXX_unrecognized)
 | |
| 		copy(dAtA[i:], m.XXX_unrecognized)
 | |
| 	}
 | |
| 	if m.Control != nil {
 | |
| 		{
 | |
| 			size, err := m.Control.MarshalToSizedBuffer(dAtA[:i])
 | |
| 			if err != nil {
 | |
| 				return 0, err
 | |
| 			}
 | |
| 			i -= size
 | |
| 			i = encodeVarintRpc(dAtA, i, uint64(size))
 | |
| 		}
 | |
| 		i--
 | |
| 		dAtA[i] = 0x1a
 | |
| 	}
 | |
| 	if len(m.Publish) > 0 {
 | |
| 		for iNdEx := len(m.Publish) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			{
 | |
| 				size, err := m.Publish[iNdEx].MarshalToSizedBuffer(dAtA[:i])
 | |
| 				if err != nil {
 | |
| 					return 0, err
 | |
| 				}
 | |
| 				i -= size
 | |
| 				i = encodeVarintRpc(dAtA, i, uint64(size))
 | |
| 			}
 | |
| 			i--
 | |
| 			dAtA[i] = 0x12
 | |
| 		}
 | |
| 	}
 | |
| 	if len(m.Subscriptions) > 0 {
 | |
| 		for iNdEx := len(m.Subscriptions) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			{
 | |
| 				size, err := m.Subscriptions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
 | |
| 				if err != nil {
 | |
| 					return 0, err
 | |
| 				}
 | |
| 				i -= size
 | |
| 				i = encodeVarintRpc(dAtA, i, uint64(size))
 | |
| 			}
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *RPC_SubOpts) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *RPC_SubOpts) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *RPC_SubOpts) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		i -= len(m.XXX_unrecognized)
 | |
| 		copy(dAtA[i:], m.XXX_unrecognized)
 | |
| 	}
 | |
| 	if m.Topicid != nil {
 | |
| 		i -= len(*m.Topicid)
 | |
| 		copy(dAtA[i:], *m.Topicid)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(*m.Topicid)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x12
 | |
| 	}
 | |
| 	if m.Subscribe != nil {
 | |
| 		i--
 | |
| 		if *m.Subscribe {
 | |
| 			dAtA[i] = 1
 | |
| 		} else {
 | |
| 			dAtA[i] = 0
 | |
| 		}
 | |
| 		i--
 | |
| 		dAtA[i] = 0x8
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *Message) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *Message) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		i -= len(m.XXX_unrecognized)
 | |
| 		copy(dAtA[i:], m.XXX_unrecognized)
 | |
| 	}
 | |
| 	if m.Key != nil {
 | |
| 		i -= len(m.Key)
 | |
| 		copy(dAtA[i:], m.Key)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x32
 | |
| 	}
 | |
| 	if m.Signature != nil {
 | |
| 		i -= len(m.Signature)
 | |
| 		copy(dAtA[i:], m.Signature)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(m.Signature)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x2a
 | |
| 	}
 | |
| 	if m.Topic != nil {
 | |
| 		i -= len(*m.Topic)
 | |
| 		copy(dAtA[i:], *m.Topic)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(*m.Topic)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x22
 | |
| 	}
 | |
| 	if m.Seqno != nil {
 | |
| 		i -= len(m.Seqno)
 | |
| 		copy(dAtA[i:], m.Seqno)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(m.Seqno)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x1a
 | |
| 	}
 | |
| 	if m.Data != nil {
 | |
| 		i -= len(m.Data)
 | |
| 		copy(dAtA[i:], m.Data)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(m.Data)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x12
 | |
| 	}
 | |
| 	if m.From != nil {
 | |
| 		i -= len(m.From)
 | |
| 		copy(dAtA[i:], m.From)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(m.From)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *ControlMessage) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ControlMessage) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *ControlMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		i -= len(m.XXX_unrecognized)
 | |
| 		copy(dAtA[i:], m.XXX_unrecognized)
 | |
| 	}
 | |
| 	if len(m.Prune) > 0 {
 | |
| 		for iNdEx := len(m.Prune) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			{
 | |
| 				size, err := m.Prune[iNdEx].MarshalToSizedBuffer(dAtA[:i])
 | |
| 				if err != nil {
 | |
| 					return 0, err
 | |
| 				}
 | |
| 				i -= size
 | |
| 				i = encodeVarintRpc(dAtA, i, uint64(size))
 | |
| 			}
 | |
| 			i--
 | |
| 			dAtA[i] = 0x22
 | |
| 		}
 | |
| 	}
 | |
| 	if len(m.Graft) > 0 {
 | |
| 		for iNdEx := len(m.Graft) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			{
 | |
| 				size, err := m.Graft[iNdEx].MarshalToSizedBuffer(dAtA[:i])
 | |
| 				if err != nil {
 | |
| 					return 0, err
 | |
| 				}
 | |
| 				i -= size
 | |
| 				i = encodeVarintRpc(dAtA, i, uint64(size))
 | |
| 			}
 | |
| 			i--
 | |
| 			dAtA[i] = 0x1a
 | |
| 		}
 | |
| 	}
 | |
| 	if len(m.Iwant) > 0 {
 | |
| 		for iNdEx := len(m.Iwant) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			{
 | |
| 				size, err := m.Iwant[iNdEx].MarshalToSizedBuffer(dAtA[:i])
 | |
| 				if err != nil {
 | |
| 					return 0, err
 | |
| 				}
 | |
| 				i -= size
 | |
| 				i = encodeVarintRpc(dAtA, i, uint64(size))
 | |
| 			}
 | |
| 			i--
 | |
| 			dAtA[i] = 0x12
 | |
| 		}
 | |
| 	}
 | |
| 	if len(m.Ihave) > 0 {
 | |
| 		for iNdEx := len(m.Ihave) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			{
 | |
| 				size, err := m.Ihave[iNdEx].MarshalToSizedBuffer(dAtA[:i])
 | |
| 				if err != nil {
 | |
| 					return 0, err
 | |
| 				}
 | |
| 				i -= size
 | |
| 				i = encodeVarintRpc(dAtA, i, uint64(size))
 | |
| 			}
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *ControlIHave) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ControlIHave) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *ControlIHave) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		i -= len(m.XXX_unrecognized)
 | |
| 		copy(dAtA[i:], m.XXX_unrecognized)
 | |
| 	}
 | |
| 	if len(m.MessageIDs) > 0 {
 | |
| 		for iNdEx := len(m.MessageIDs) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			i -= len(m.MessageIDs[iNdEx])
 | |
| 			copy(dAtA[i:], m.MessageIDs[iNdEx])
 | |
| 			i = encodeVarintRpc(dAtA, i, uint64(len(m.MessageIDs[iNdEx])))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x12
 | |
| 		}
 | |
| 	}
 | |
| 	if m.TopicID != nil {
 | |
| 		i -= len(*m.TopicID)
 | |
| 		copy(dAtA[i:], *m.TopicID)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(*m.TopicID)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *ControlIWant) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ControlIWant) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *ControlIWant) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		i -= len(m.XXX_unrecognized)
 | |
| 		copy(dAtA[i:], m.XXX_unrecognized)
 | |
| 	}
 | |
| 	if len(m.MessageIDs) > 0 {
 | |
| 		for iNdEx := len(m.MessageIDs) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			i -= len(m.MessageIDs[iNdEx])
 | |
| 			copy(dAtA[i:], m.MessageIDs[iNdEx])
 | |
| 			i = encodeVarintRpc(dAtA, i, uint64(len(m.MessageIDs[iNdEx])))
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *ControlGraft) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ControlGraft) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *ControlGraft) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		i -= len(m.XXX_unrecognized)
 | |
| 		copy(dAtA[i:], m.XXX_unrecognized)
 | |
| 	}
 | |
| 	if m.TopicID != nil {
 | |
| 		i -= len(*m.TopicID)
 | |
| 		copy(dAtA[i:], *m.TopicID)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(*m.TopicID)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *ControlPrune) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ControlPrune) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *ControlPrune) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		i -= len(m.XXX_unrecognized)
 | |
| 		copy(dAtA[i:], m.XXX_unrecognized)
 | |
| 	}
 | |
| 	if m.Backoff != nil {
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(*m.Backoff))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x18
 | |
| 	}
 | |
| 	if len(m.Peers) > 0 {
 | |
| 		for iNdEx := len(m.Peers) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			{
 | |
| 				size, err := m.Peers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
 | |
| 				if err != nil {
 | |
| 					return 0, err
 | |
| 				}
 | |
| 				i -= size
 | |
| 				i = encodeVarintRpc(dAtA, i, uint64(size))
 | |
| 			}
 | |
| 			i--
 | |
| 			dAtA[i] = 0x12
 | |
| 		}
 | |
| 	}
 | |
| 	if m.TopicID != nil {
 | |
| 		i -= len(*m.TopicID)
 | |
| 		copy(dAtA[i:], *m.TopicID)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(*m.TopicID)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *PeerInfo) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *PeerInfo) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *PeerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		i -= len(m.XXX_unrecognized)
 | |
| 		copy(dAtA[i:], m.XXX_unrecognized)
 | |
| 	}
 | |
| 	if m.SignedPeerRecord != nil {
 | |
| 		i -= len(m.SignedPeerRecord)
 | |
| 		copy(dAtA[i:], m.SignedPeerRecord)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(m.SignedPeerRecord)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x12
 | |
| 	}
 | |
| 	if m.PeerID != nil {
 | |
| 		i -= len(m.PeerID)
 | |
| 		copy(dAtA[i:], m.PeerID)
 | |
| 		i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerID)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func encodeVarintRpc(dAtA []byte, offset int, v uint64) int {
 | |
| 	offset -= sovRpc(v)
 | |
| 	base := offset
 | |
| 	for v >= 1<<7 {
 | |
| 		dAtA[offset] = uint8(v&0x7f | 0x80)
 | |
| 		v >>= 7
 | |
| 		offset++
 | |
| 	}
 | |
| 	dAtA[offset] = uint8(v)
 | |
| 	return base
 | |
| }
 | |
| func (m *RPC) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.Subscriptions) > 0 {
 | |
| 		for _, e := range m.Subscriptions {
 | |
| 			l = e.Size()
 | |
| 			n += 1 + l + sovRpc(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	if len(m.Publish) > 0 {
 | |
| 		for _, e := range m.Publish {
 | |
| 			l = e.Size()
 | |
| 			n += 1 + l + sovRpc(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	if m.Control != nil {
 | |
| 		l = m.Control.Size()
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *RPC_SubOpts) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Subscribe != nil {
 | |
| 		n += 2
 | |
| 	}
 | |
| 	if m.Topicid != nil {
 | |
| 		l = len(*m.Topicid)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *Message) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.From != nil {
 | |
| 		l = len(m.From)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.Data != nil {
 | |
| 		l = len(m.Data)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.Seqno != nil {
 | |
| 		l = len(m.Seqno)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.Topic != nil {
 | |
| 		l = len(*m.Topic)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.Signature != nil {
 | |
| 		l = len(m.Signature)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.Key != nil {
 | |
| 		l = len(m.Key)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ControlMessage) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.Ihave) > 0 {
 | |
| 		for _, e := range m.Ihave {
 | |
| 			l = e.Size()
 | |
| 			n += 1 + l + sovRpc(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	if len(m.Iwant) > 0 {
 | |
| 		for _, e := range m.Iwant {
 | |
| 			l = e.Size()
 | |
| 			n += 1 + l + sovRpc(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	if len(m.Graft) > 0 {
 | |
| 		for _, e := range m.Graft {
 | |
| 			l = e.Size()
 | |
| 			n += 1 + l + sovRpc(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	if len(m.Prune) > 0 {
 | |
| 		for _, e := range m.Prune {
 | |
| 			l = e.Size()
 | |
| 			n += 1 + l + sovRpc(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ControlIHave) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.TopicID != nil {
 | |
| 		l = len(*m.TopicID)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if len(m.MessageIDs) > 0 {
 | |
| 		for _, s := range m.MessageIDs {
 | |
| 			l = len(s)
 | |
| 			n += 1 + l + sovRpc(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ControlIWant) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.MessageIDs) > 0 {
 | |
| 		for _, s := range m.MessageIDs {
 | |
| 			l = len(s)
 | |
| 			n += 1 + l + sovRpc(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ControlGraft) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.TopicID != nil {
 | |
| 		l = len(*m.TopicID)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ControlPrune) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.TopicID != nil {
 | |
| 		l = len(*m.TopicID)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if len(m.Peers) > 0 {
 | |
| 		for _, e := range m.Peers {
 | |
| 			l = e.Size()
 | |
| 			n += 1 + l + sovRpc(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	if m.Backoff != nil {
 | |
| 		n += 1 + sovRpc(uint64(*m.Backoff))
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *PeerInfo) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.PeerID != nil {
 | |
| 		l = len(m.PeerID)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.SignedPeerRecord != nil {
 | |
| 		l = len(m.SignedPeerRecord)
 | |
| 		n += 1 + l + sovRpc(uint64(l))
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func sovRpc(x uint64) (n int) {
 | |
| 	return (math_bits.Len64(x|1) + 6) / 7
 | |
| }
 | |
| func sozRpc(x uint64) (n int) {
 | |
| 	return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
 | |
| }
 | |
| func (m *RPC) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowRpc
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: RPC: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: RPC: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Subscriptions", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Subscriptions = append(m.Subscriptions, &RPC_SubOpts{})
 | |
| 			if err := m.Subscriptions[len(m.Subscriptions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Publish", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Publish = append(m.Publish, &Message{})
 | |
| 			if err := m.Publish[len(m.Publish)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Control == nil {
 | |
| 				m.Control = &ControlMessage{}
 | |
| 			}
 | |
| 			if err := m.Control.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipRpc(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *RPC_SubOpts) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowRpc
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: SubOpts: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: SubOpts: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Subscribe", wireType)
 | |
| 			}
 | |
| 			var v int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				v |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			b := bool(v != 0)
 | |
| 			m.Subscribe = &b
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Topicid", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			s := string(dAtA[iNdEx:postIndex])
 | |
| 			m.Topicid = &s
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipRpc(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *Message) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowRpc
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: Message: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.From = append(m.From[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.From == nil {
 | |
| 				m.From = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Data == nil {
 | |
| 				m.Data = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Seqno", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Seqno = append(m.Seqno[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Seqno == nil {
 | |
| 				m.Seqno = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 4:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			s := string(dAtA[iNdEx:postIndex])
 | |
| 			m.Topic = &s
 | |
| 			iNdEx = postIndex
 | |
| 		case 5:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Signature == nil {
 | |
| 				m.Signature = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 6:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Key == nil {
 | |
| 				m.Key = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipRpc(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ControlMessage) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowRpc
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ControlMessage: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ControlMessage: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Ihave", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Ihave = append(m.Ihave, &ControlIHave{})
 | |
| 			if err := m.Ihave[len(m.Ihave)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Iwant", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Iwant = append(m.Iwant, &ControlIWant{})
 | |
| 			if err := m.Iwant[len(m.Iwant)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Graft", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Graft = append(m.Graft, &ControlGraft{})
 | |
| 			if err := m.Graft[len(m.Graft)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 4:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Prune", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Prune = append(m.Prune, &ControlPrune{})
 | |
| 			if err := m.Prune[len(m.Prune)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipRpc(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ControlIHave) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowRpc
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ControlIHave: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ControlIHave: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field TopicID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			s := string(dAtA[iNdEx:postIndex])
 | |
| 			m.TopicID = &s
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field MessageIDs", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.MessageIDs = append(m.MessageIDs, string(dAtA[iNdEx:postIndex]))
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipRpc(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ControlIWant) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowRpc
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ControlIWant: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ControlIWant: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field MessageIDs", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.MessageIDs = append(m.MessageIDs, string(dAtA[iNdEx:postIndex]))
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipRpc(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ControlGraft) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowRpc
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ControlGraft: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ControlGraft: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field TopicID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			s := string(dAtA[iNdEx:postIndex])
 | |
| 			m.TopicID = &s
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipRpc(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ControlPrune) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowRpc
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ControlPrune: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ControlPrune: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field TopicID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			s := string(dAtA[iNdEx:postIndex])
 | |
| 			m.TopicID = &s
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Peers", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Peers = append(m.Peers, &PeerInfo{})
 | |
| 			if err := m.Peers[len(m.Peers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Backoff", wireType)
 | |
| 			}
 | |
| 			var v uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				v |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			m.Backoff = &v
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipRpc(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *PeerInfo) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowRpc
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: PeerInfo: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: PeerInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.PeerID = append(m.PeerID[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.PeerID == nil {
 | |
| 				m.PeerID = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field SignedPeerRecord", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.SignedPeerRecord = append(m.SignedPeerRecord[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.SignedPeerRecord == nil {
 | |
| 				m.SignedPeerRecord = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipRpc(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func skipRpc(dAtA []byte) (n int, err error) {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	depth := 0
 | |
| 	for iNdEx < l {
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return 0, ErrIntOverflowRpc
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return 0, io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		switch wireType {
 | |
| 		case 0:
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return 0, ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return 0, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				iNdEx++
 | |
| 				if dAtA[iNdEx-1] < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 1:
 | |
| 			iNdEx += 8
 | |
| 		case 2:
 | |
| 			var length int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return 0, ErrIntOverflowRpc
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return 0, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				length |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if length < 0 {
 | |
| 				return 0, ErrInvalidLengthRpc
 | |
| 			}
 | |
| 			iNdEx += length
 | |
| 		case 3:
 | |
| 			depth++
 | |
| 		case 4:
 | |
| 			if depth == 0 {
 | |
| 				return 0, ErrUnexpectedEndOfGroupRpc
 | |
| 			}
 | |
| 			depth--
 | |
| 		case 5:
 | |
| 			iNdEx += 4
 | |
| 		default:
 | |
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 | |
| 		}
 | |
| 		if iNdEx < 0 {
 | |
| 			return 0, ErrInvalidLengthRpc
 | |
| 		}
 | |
| 		if depth == 0 {
 | |
| 			return iNdEx, nil
 | |
| 		}
 | |
| 	}
 | |
| 	return 0, io.ErrUnexpectedEOF
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	ErrInvalidLengthRpc        = fmt.Errorf("proto: negative length found during unmarshaling")
 | |
| 	ErrIntOverflowRpc          = fmt.Errorf("proto: integer overflow")
 | |
| 	ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group")
 | |
| )
 |