// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: rpc.proto package pubsub_pb import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" import io "io" // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package type TopicDescriptor_AuthOpts_AuthMode int32 const ( TopicDescriptor_AuthOpts_NONE TopicDescriptor_AuthOpts_AuthMode = 0 TopicDescriptor_AuthOpts_KEY TopicDescriptor_AuthOpts_AuthMode = 1 TopicDescriptor_AuthOpts_WOT TopicDescriptor_AuthOpts_AuthMode = 2 ) var TopicDescriptor_AuthOpts_AuthMode_name = map[int32]string{ 0: "NONE", 1: "KEY", 2: "WOT", } var TopicDescriptor_AuthOpts_AuthMode_value = map[string]int32{ "NONE": 0, "KEY": 1, "WOT": 2, } func (x TopicDescriptor_AuthOpts_AuthMode) Enum() *TopicDescriptor_AuthOpts_AuthMode { p := new(TopicDescriptor_AuthOpts_AuthMode) *p = x return p } func (x TopicDescriptor_AuthOpts_AuthMode) String() string { return proto.EnumName(TopicDescriptor_AuthOpts_AuthMode_name, int32(x)) } func (x *TopicDescriptor_AuthOpts_AuthMode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(TopicDescriptor_AuthOpts_AuthMode_value, data, "TopicDescriptor_AuthOpts_AuthMode") if err != nil { return err } *x = TopicDescriptor_AuthOpts_AuthMode(value) return nil } func (TopicDescriptor_AuthOpts_AuthMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_rpc_f0491c6c9ffa591d, []int{7, 0, 0} } type TopicDescriptor_EncOpts_EncMode int32 const ( TopicDescriptor_EncOpts_NONE TopicDescriptor_EncOpts_EncMode = 0 TopicDescriptor_EncOpts_SHAREDKEY TopicDescriptor_EncOpts_EncMode = 1 TopicDescriptor_EncOpts_WOT TopicDescriptor_EncOpts_EncMode = 2 ) var TopicDescriptor_EncOpts_EncMode_name = map[int32]string{ 0: "NONE", 1: "SHAREDKEY", 2: "WOT", } var TopicDescriptor_EncOpts_EncMode_value = map[string]int32{ "NONE": 0, "SHAREDKEY": 1, "WOT": 2, } func (x TopicDescriptor_EncOpts_EncMode) Enum() *TopicDescriptor_EncOpts_EncMode { p := new(TopicDescriptor_EncOpts_EncMode) *p = x return p } func (x TopicDescriptor_EncOpts_EncMode) String() string { return proto.EnumName(TopicDescriptor_EncOpts_EncMode_name, int32(x)) } func (x *TopicDescriptor_EncOpts_EncMode) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(TopicDescriptor_EncOpts_EncMode_value, data, "TopicDescriptor_EncOpts_EncMode") if err != nil { return err } *x = TopicDescriptor_EncOpts_EncMode(value) return nil } func (TopicDescriptor_EncOpts_EncMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_rpc_f0491c6c9ffa591d, []int{7, 1, 0} } 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_rpc_f0491c6c9ffa591d, []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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *RPC) XXX_Merge(src proto.Message) { xxx_messageInfo_RPC.Merge(dst, 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_rpc_f0491c6c9ffa591d, []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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *RPC_SubOpts) XXX_Merge(src proto.Message) { xxx_messageInfo_RPC_SubOpts.Merge(dst, 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"` TopicIDs []string `protobuf:"bytes,4,rep,name=topicIDs" json:"topicIDs,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_rpc_f0491c6c9ffa591d, []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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *Message) XXX_Merge(src proto.Message) { xxx_messageInfo_Message.Merge(dst, 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) GetTopicIDs() []string { if m != nil { return m.TopicIDs } return nil } 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_rpc_f0491c6c9ffa591d, []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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ControlMessage) XXX_Merge(src proto.Message) { xxx_messageInfo_ControlMessage.Merge(dst, 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"` 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_rpc_f0491c6c9ffa591d, []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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ControlIHave) XXX_Merge(src proto.Message) { xxx_messageInfo_ControlIHave.Merge(dst, 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 { 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_rpc_f0491c6c9ffa591d, []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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ControlIWant) XXX_Merge(src proto.Message) { xxx_messageInfo_ControlIWant.Merge(dst, 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_rpc_f0491c6c9ffa591d, []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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ControlGraft) XXX_Merge(src proto.Message) { xxx_messageInfo_ControlGraft.Merge(dst, 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"` 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_rpc_f0491c6c9ffa591d, []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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ControlPrune) XXX_Merge(src proto.Message) { xxx_messageInfo_ControlPrune.Merge(dst, 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 "" } type TopicDescriptor struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Auth *TopicDescriptor_AuthOpts `protobuf:"bytes,2,opt,name=auth" json:"auth,omitempty"` Enc *TopicDescriptor_EncOpts `protobuf:"bytes,3,opt,name=enc" json:"enc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TopicDescriptor) Reset() { *m = TopicDescriptor{} } func (m *TopicDescriptor) String() string { return proto.CompactTextString(m) } func (*TopicDescriptor) ProtoMessage() {} func (*TopicDescriptor) Descriptor() ([]byte, []int) { return fileDescriptor_rpc_f0491c6c9ffa591d, []int{7} } func (m *TopicDescriptor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TopicDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TopicDescriptor.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *TopicDescriptor) XXX_Merge(src proto.Message) { xxx_messageInfo_TopicDescriptor.Merge(dst, src) } func (m *TopicDescriptor) XXX_Size() int { return m.Size() } func (m *TopicDescriptor) XXX_DiscardUnknown() { xxx_messageInfo_TopicDescriptor.DiscardUnknown(m) } var xxx_messageInfo_TopicDescriptor proto.InternalMessageInfo func (m *TopicDescriptor) GetName() string { if m != nil && m.Name != nil { return *m.Name } return "" } func (m *TopicDescriptor) GetAuth() *TopicDescriptor_AuthOpts { if m != nil { return m.Auth } return nil } func (m *TopicDescriptor) GetEnc() *TopicDescriptor_EncOpts { if m != nil { return m.Enc } return nil } type TopicDescriptor_AuthOpts struct { Mode *TopicDescriptor_AuthOpts_AuthMode `protobuf:"varint,1,opt,name=mode,enum=pubsub.pb.TopicDescriptor_AuthOpts_AuthMode" json:"mode,omitempty"` Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TopicDescriptor_AuthOpts) Reset() { *m = TopicDescriptor_AuthOpts{} } func (m *TopicDescriptor_AuthOpts) String() string { return proto.CompactTextString(m) } func (*TopicDescriptor_AuthOpts) ProtoMessage() {} func (*TopicDescriptor_AuthOpts) Descriptor() ([]byte, []int) { return fileDescriptor_rpc_f0491c6c9ffa591d, []int{7, 0} } func (m *TopicDescriptor_AuthOpts) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TopicDescriptor_AuthOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TopicDescriptor_AuthOpts.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *TopicDescriptor_AuthOpts) XXX_Merge(src proto.Message) { xxx_messageInfo_TopicDescriptor_AuthOpts.Merge(dst, src) } func (m *TopicDescriptor_AuthOpts) XXX_Size() int { return m.Size() } func (m *TopicDescriptor_AuthOpts) XXX_DiscardUnknown() { xxx_messageInfo_TopicDescriptor_AuthOpts.DiscardUnknown(m) } var xxx_messageInfo_TopicDescriptor_AuthOpts proto.InternalMessageInfo func (m *TopicDescriptor_AuthOpts) GetMode() TopicDescriptor_AuthOpts_AuthMode { if m != nil && m.Mode != nil { return *m.Mode } return TopicDescriptor_AuthOpts_NONE } func (m *TopicDescriptor_AuthOpts) GetKeys() [][]byte { if m != nil { return m.Keys } return nil } type TopicDescriptor_EncOpts struct { Mode *TopicDescriptor_EncOpts_EncMode `protobuf:"varint,1,opt,name=mode,enum=pubsub.pb.TopicDescriptor_EncOpts_EncMode" json:"mode,omitempty"` KeyHashes [][]byte `protobuf:"bytes,2,rep,name=keyHashes" json:"keyHashes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TopicDescriptor_EncOpts) Reset() { *m = TopicDescriptor_EncOpts{} } func (m *TopicDescriptor_EncOpts) String() string { return proto.CompactTextString(m) } func (*TopicDescriptor_EncOpts) ProtoMessage() {} func (*TopicDescriptor_EncOpts) Descriptor() ([]byte, []int) { return fileDescriptor_rpc_f0491c6c9ffa591d, []int{7, 1} } func (m *TopicDescriptor_EncOpts) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TopicDescriptor_EncOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TopicDescriptor_EncOpts.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *TopicDescriptor_EncOpts) XXX_Merge(src proto.Message) { xxx_messageInfo_TopicDescriptor_EncOpts.Merge(dst, src) } func (m *TopicDescriptor_EncOpts) XXX_Size() int { return m.Size() } func (m *TopicDescriptor_EncOpts) XXX_DiscardUnknown() { xxx_messageInfo_TopicDescriptor_EncOpts.DiscardUnknown(m) } var xxx_messageInfo_TopicDescriptor_EncOpts proto.InternalMessageInfo func (m *TopicDescriptor_EncOpts) GetMode() TopicDescriptor_EncOpts_EncMode { if m != nil && m.Mode != nil { return *m.Mode } return TopicDescriptor_EncOpts_NONE } func (m *TopicDescriptor_EncOpts) GetKeyHashes() [][]byte { if m != nil { return m.KeyHashes } 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((*TopicDescriptor)(nil), "pubsub.pb.TopicDescriptor") proto.RegisterType((*TopicDescriptor_AuthOpts)(nil), "pubsub.pb.TopicDescriptor.AuthOpts") proto.RegisterType((*TopicDescriptor_EncOpts)(nil), "pubsub.pb.TopicDescriptor.EncOpts") proto.RegisterEnum("pubsub.pb.TopicDescriptor_AuthOpts_AuthMode", TopicDescriptor_AuthOpts_AuthMode_name, TopicDescriptor_AuthOpts_AuthMode_value) proto.RegisterEnum("pubsub.pb.TopicDescriptor_EncOpts_EncMode", TopicDescriptor_EncOpts_EncMode_name, TopicDescriptor_EncOpts_EncMode_value) } func (m *RPC) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *RPC) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Subscriptions) > 0 { for _, msg := range m.Subscriptions { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } if len(m.Publish) > 0 { for _, msg := range m.Publish { dAtA[i] = 0x12 i++ i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } if m.Control != nil { dAtA[i] = 0x1a i++ i = encodeVarintRpc(dAtA, i, uint64(m.Control.Size())) n1, err := m.Control.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *RPC_SubOpts) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *RPC_SubOpts) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Subscribe != nil { dAtA[i] = 0x8 i++ if *m.Subscribe { dAtA[i] = 1 } else { dAtA[i] = 0 } i++ } if m.Topicid != nil { dAtA[i] = 0x12 i++ i = encodeVarintRpc(dAtA, i, uint64(len(*m.Topicid))) i += copy(dAtA[i:], *m.Topicid) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *Message) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Message) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.From != nil { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(len(m.From))) i += copy(dAtA[i:], m.From) } if m.Data != nil { dAtA[i] = 0x12 i++ i = encodeVarintRpc(dAtA, i, uint64(len(m.Data))) i += copy(dAtA[i:], m.Data) } if m.Seqno != nil { dAtA[i] = 0x1a i++ i = encodeVarintRpc(dAtA, i, uint64(len(m.Seqno))) i += copy(dAtA[i:], m.Seqno) } if len(m.TopicIDs) > 0 { for _, s := range m.TopicIDs { dAtA[i] = 0x22 i++ l = len(s) for l >= 1<<7 { dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } dAtA[i] = uint8(l) i++ i += copy(dAtA[i:], s) } } if m.Signature != nil { dAtA[i] = 0x2a i++ i = encodeVarintRpc(dAtA, i, uint64(len(m.Signature))) i += copy(dAtA[i:], m.Signature) } if m.Key != nil { dAtA[i] = 0x32 i++ i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) i += copy(dAtA[i:], m.Key) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ControlMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ControlMessage) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Ihave) > 0 { for _, msg := range m.Ihave { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } if len(m.Iwant) > 0 { for _, msg := range m.Iwant { dAtA[i] = 0x12 i++ i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } if len(m.Graft) > 0 { for _, msg := range m.Graft { dAtA[i] = 0x1a i++ i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } if len(m.Prune) > 0 { for _, msg := range m.Prune { dAtA[i] = 0x22 i++ i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ControlIHave) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ControlIHave) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.TopicID != nil { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(len(*m.TopicID))) i += copy(dAtA[i:], *m.TopicID) } if len(m.MessageIDs) > 0 { for _, s := range m.MessageIDs { dAtA[i] = 0x12 i++ l = len(s) for l >= 1<<7 { dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } dAtA[i] = uint8(l) i++ i += copy(dAtA[i:], s) } } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ControlIWant) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ControlIWant) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.MessageIDs) > 0 { for _, s := range m.MessageIDs { dAtA[i] = 0xa i++ l = len(s) for l >= 1<<7 { dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } dAtA[i] = uint8(l) i++ i += copy(dAtA[i:], s) } } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ControlGraft) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ControlGraft) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.TopicID != nil { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(len(*m.TopicID))) i += copy(dAtA[i:], *m.TopicID) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ControlPrune) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ControlPrune) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.TopicID != nil { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(len(*m.TopicID))) i += copy(dAtA[i:], *m.TopicID) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *TopicDescriptor) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *TopicDescriptor) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Name != nil { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(len(*m.Name))) i += copy(dAtA[i:], *m.Name) } if m.Auth != nil { dAtA[i] = 0x12 i++ i = encodeVarintRpc(dAtA, i, uint64(m.Auth.Size())) n2, err := m.Auth.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 } if m.Enc != nil { dAtA[i] = 0x1a i++ i = encodeVarintRpc(dAtA, i, uint64(m.Enc.Size())) n3, err := m.Enc.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *TopicDescriptor_AuthOpts) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *TopicDescriptor_AuthOpts) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Mode != nil { dAtA[i] = 0x8 i++ i = encodeVarintRpc(dAtA, i, uint64(*m.Mode)) } if len(m.Keys) > 0 { for _, b := range m.Keys { dAtA[i] = 0x12 i++ i = encodeVarintRpc(dAtA, i, uint64(len(b))) i += copy(dAtA[i:], b) } } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *TopicDescriptor_EncOpts) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *TopicDescriptor_EncOpts) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Mode != nil { dAtA[i] = 0x8 i++ i = encodeVarintRpc(dAtA, i, uint64(*m.Mode)) } if len(m.KeyHashes) > 0 { for _, b := range m.KeyHashes { dAtA[i] = 0x12 i++ i = encodeVarintRpc(dAtA, i, uint64(len(b))) i += copy(dAtA[i:], b) } } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func encodeVarintRpc(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return offset + 1 } func (m *RPC) Size() (n int) { 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) { 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) { 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 len(m.TopicIDs) > 0 { for _, s := range m.TopicIDs { l = len(s) 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) { 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) { 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) { 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) { 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) { 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 *TopicDescriptor) Size() (n int) { var l int _ = l if m.Name != nil { l = len(*m.Name) n += 1 + l + sovRpc(uint64(l)) } if m.Auth != nil { l = m.Auth.Size() n += 1 + l + sovRpc(uint64(l)) } if m.Enc != nil { l = m.Enc.Size() n += 1 + l + sovRpc(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *TopicDescriptor_AuthOpts) Size() (n int) { var l int _ = l if m.Mode != nil { n += 1 + sovRpc(uint64(*m.Mode)) } if len(m.Keys) > 0 { for _, b := range m.Keys { l = len(b) n += 1 + l + sovRpc(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *TopicDescriptor_EncOpts) Size() (n int) { var l int _ = l if m.Mode != nil { n += 1 + sovRpc(uint64(*m.Mode)) } if len(m.KeyHashes) > 0 { for _, b := range m.KeyHashes { l = len(b) n += 1 + l + sovRpc(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func sovRpc(x uint64) (n int) { for { n++ x >>= 7 if x == 0 { break } } return n } 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 > 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 > 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 > 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 { 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 > 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 { 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 > 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 > 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 > 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 TopicIDs", 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 > l { return io.ErrUnexpectedEOF } m.TopicIDs = append(m.TopicIDs, string(dAtA[iNdEx:postIndex])) 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 > 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 > 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 { 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 > 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 > 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 > 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 > 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 { 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 > 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 > 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 { 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 > 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 { 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 > 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 { 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 > 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 { 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 *TopicDescriptor) 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: TopicDescriptor: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TopicDescriptor: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", 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 > l { return io.ErrUnexpectedEOF } s := string(dAtA[iNdEx:postIndex]) m.Name = &s iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Auth", 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 > l { return io.ErrUnexpectedEOF } if m.Auth == nil { m.Auth = &TopicDescriptor_AuthOpts{} } if err := m.Auth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Enc", 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 > l { return io.ErrUnexpectedEOF } if m.Enc == nil { m.Enc = &TopicDescriptor_EncOpts{} } if err := m.Enc.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 { 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 *TopicDescriptor_AuthOpts) 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: AuthOpts: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AuthOpts: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) } var v TopicDescriptor_AuthOpts_AuthMode for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= (TopicDescriptor_AuthOpts_AuthMode(b) & 0x7F) << shift if b < 0x80 { break } } m.Mode = &v case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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 > l { return io.ErrUnexpectedEOF } m.Keys = append(m.Keys, make([]byte, postIndex-iNdEx)) copy(m.Keys[len(m.Keys)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if 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 *TopicDescriptor_EncOpts) 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: EncOpts: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: EncOpts: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) } var v TopicDescriptor_EncOpts_EncMode for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= (TopicDescriptor_EncOpts_EncMode(b) & 0x7F) << shift if b < 0x80 { break } } m.Mode = &v case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field KeyHashes", 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 > l { return io.ErrUnexpectedEOF } m.KeyHashes = append(m.KeyHashes, make([]byte, postIndex-iNdEx)) copy(m.KeyHashes[len(m.KeyHashes)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if 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 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 } } return iNdEx, nil case 1: iNdEx += 8 return iNdEx, nil 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 } } iNdEx += length if length < 0 { return 0, ErrInvalidLengthRpc } return iNdEx, nil case 3: for { var innerWire uint64 var start int = iNdEx for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowRpc } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } innerWireType := int(innerWire & 0x7) if innerWireType == 4 { break } next, err := skipRpc(dAtA[start:]) if err != nil { return 0, err } iNdEx = start + next } return iNdEx, nil case 4: return iNdEx, nil case 5: iNdEx += 4 return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } } panic("unreachable") } var ( ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") ) func init() { proto.RegisterFile("rpc.proto", fileDescriptor_rpc_f0491c6c9ffa591d) } var fileDescriptor_rpc_f0491c6c9ffa591d = []byte{ // 599 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcd, 0x6e, 0xd3, 0x40, 0x10, 0xc7, 0xd9, 0x38, 0xc5, 0xf1, 0xd4, 0x2d, 0xd1, 0x0a, 0x81, 0x89, 0xaa, 0x28, 0x32, 0x12, 0xb2, 0xa0, 0xf8, 0x10, 0x90, 0xb8, 0x20, 0x44, 0x69, 0x22, 0x12, 0xa1, 0x7e, 0x68, 0x5b, 0xa9, 0xe2, 0xb8, 0x76, 0xb6, 0x89, 0x95, 0xc6, 0x36, 0xf6, 0xba, 0x28, 0x6f, 0xc0, 0x1d, 0x9e, 0x85, 0x67, 0xe0, 0xc0, 0x81, 0x47, 0x40, 0xb9, 0xf1, 0x16, 0x68, 0xc7, 0x4e, 0xe2, 0xa4, 0x1f, 0x70, 0xf2, 0xec, 0xec, 0xef, 0xbf, 0xf3, 0x9f, 0xd9, 0x35, 0x18, 0x49, 0xec, 0xbb, 0x71, 0x12, 0xc9, 0x88, 0x1a, 0x71, 0xe6, 0xa5, 0x99, 0xe7, 0xc6, 0x9e, 0xfd, 0x87, 0x80, 0xc6, 0x8e, 0xf7, 0xe9, 0x6b, 0xd8, 0x4a, 0x33, 0x2f, 0xf5, 0x93, 0x20, 0x96, 0x41, 0x14, 0xa6, 0x16, 0x69, 0x69, 0xce, 0x66, 0xfb, 0x81, 0xbb, 0x40, 0x5d, 0x76, 0xbc, 0xef, 0x9e, 0x64, 0xde, 0x51, 0x2c, 0x53, 0xb6, 0x0a, 0xd3, 0x5d, 0xd0, 0xe3, 0xcc, 0xbb, 0x08, 0xd2, 0x91, 0x55, 0x41, 0x1d, 0x2d, 0xe9, 0x0e, 0x44, 0x9a, 0xf2, 0xa1, 0x60, 0x73, 0x84, 0xbe, 0x00, 0xdd, 0x8f, 0x42, 0x99, 0x44, 0x17, 0x96, 0xd6, 0x22, 0xce, 0x66, 0xfb, 0x51, 0x89, 0xde, 0xcf, 0x77, 0x16, 0xa2, 0x82, 0x6c, 0xec, 0x81, 0x5e, 0x14, 0xa7, 0x3b, 0x60, 0x14, 0xe5, 0x3d, 0x61, 0x91, 0x16, 0x71, 0x6a, 0x6c, 0x99, 0xa0, 0x16, 0xe8, 0x32, 0x8a, 0x03, 0x3f, 0x18, 0x58, 0x95, 0x16, 0x71, 0x0c, 0x36, 0x5f, 0xda, 0x5f, 0x09, 0xe8, 0xc5, 0xb9, 0x94, 0x42, 0xf5, 0x3c, 0x89, 0x26, 0x28, 0x37, 0x19, 0xc6, 0x2a, 0x37, 0xe0, 0x92, 0xa3, 0xcc, 0x64, 0x18, 0xd3, 0xfb, 0xb0, 0x91, 0x8a, 0x4f, 0x61, 0x84, 0x4e, 0x4d, 0x96, 0x2f, 0x68, 0x03, 0x6a, 0x78, 0x68, 0xbf, 0x93, 0x5a, 0xd5, 0x96, 0xe6, 0x18, 0x6c, 0xb1, 0x46, 0x77, 0xc1, 0x30, 0xe4, 0x32, 0x4b, 0x84, 0xb5, 0x81, 0xaa, 0x65, 0x82, 0xd6, 0x41, 0x1b, 0x8b, 0xa9, 0x75, 0x17, 0xf3, 0x2a, 0xb4, 0x7f, 0x12, 0xd8, 0x5e, 0x6d, 0x9a, 0x3e, 0x87, 0x8d, 0x60, 0xc4, 0x2f, 0x45, 0x71, 0x09, 0x0f, 0xaf, 0x8e, 0xa7, 0xdf, 0xe3, 0x97, 0x82, 0xe5, 0x14, 0xe2, 0x9f, 0x79, 0x28, 0x8b, 0xd9, 0x5f, 0x87, 0x9f, 0xf1, 0x50, 0xb2, 0x9c, 0x52, 0xf8, 0x30, 0xe1, 0xe7, 0xd2, 0xd2, 0x6e, 0xc2, 0xdf, 0xab, 0x6d, 0x96, 0x53, 0x0a, 0x8f, 0x93, 0x2c, 0x14, 0xd8, 0xe8, 0xb5, 0xf8, 0xb1, 0xda, 0x66, 0x39, 0x65, 0xf7, 0xc0, 0x2c, 0x7b, 0x5c, 0x5c, 0x47, 0xbf, 0x83, 0xb3, 0x9e, 0x5f, 0x47, 0xbf, 0x43, 0x9b, 0x00, 0x93, 0xbc, 0x61, 0x35, 0xc6, 0x0a, 0x8e, 0xb1, 0x94, 0xb1, 0xdd, 0xe5, 0x49, 0xca, 0xfe, 0x1a, 0x4f, 0xae, 0xf0, 0xce, 0x82, 0x47, 0xff, 0x37, 0x57, 0x2e, 0x91, 0x68, 0xfd, 0x16, 0xf2, 0xbb, 0x06, 0xf7, 0x4e, 0x55, 0xdc, 0x11, 0xf9, 0x73, 0x8f, 0x12, 0xf5, 0x4c, 0x42, 0x3e, 0x11, 0x05, 0x8a, 0x31, 0x7d, 0x05, 0x55, 0x9e, 0xc9, 0x11, 0x3e, 0x9d, 0xcd, 0xf6, 0xe3, 0xd2, 0x8c, 0xd6, 0xd4, 0xee, 0x5e, 0x26, 0x47, 0xf8, 0x0b, 0xa1, 0x80, 0xbe, 0x04, 0x4d, 0x84, 0x7e, 0xf1, 0x1f, 0xd8, 0xb7, 0xe8, 0xba, 0xa1, 0x8f, 0x32, 0x85, 0x37, 0xbe, 0x10, 0xa8, 0xcd, 0x0f, 0xa2, 0x6f, 0xa1, 0x3a, 0x89, 0x06, 0xb9, 0x9f, 0xed, 0xf6, 0xee, 0x7f, 0xd4, 0xc6, 0xe0, 0x20, 0x1a, 0x08, 0x86, 0x4a, 0xd5, 0xd1, 0x58, 0x4c, 0xf3, 0x3b, 0x30, 0x19, 0xc6, 0xf6, 0x93, 0xbc, 0x82, 0xa2, 0x68, 0x0d, 0xaa, 0x87, 0x47, 0x87, 0xdd, 0xfa, 0x1d, 0xaa, 0x83, 0xf6, 0xa1, 0xfb, 0xb1, 0x4e, 0x54, 0x70, 0x76, 0x74, 0x5a, 0xaf, 0x34, 0xbe, 0x11, 0xd0, 0x0b, 0x6f, 0xf4, 0xcd, 0x8a, 0x93, 0xa7, 0xff, 0xee, 0x46, 0x7d, 0x4b, 0x3e, 0x76, 0xc0, 0x18, 0x8b, 0x69, 0x8f, 0xa7, 0x23, 0x31, 0x37, 0xb3, 0x4c, 0xd8, 0xcf, 0xb0, 0xd0, 0x9a, 0xa1, 0x2d, 0x30, 0x4e, 0x7a, 0x7b, 0xac, 0xdb, 0x59, 0xb5, 0xf5, 0xce, 0xfc, 0x31, 0x6b, 0x92, 0x5f, 0xb3, 0x26, 0xf9, 0x3d, 0x6b, 0x92, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf8, 0xb0, 0xae, 0x4e, 0xfc, 0x04, 0x00, 0x00, }