mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-14 12:15:18 +00:00
819 lines
25 KiB
Go
819 lines
25 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.30.0
|
||
|
// protoc v3.21.12
|
||
|
// source: rpc.proto
|
||
|
|
||
|
package pb
|
||
|
|
||
|
import (
|
||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
reflect "reflect"
|
||
|
sync "sync"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
// Verify that this generated code is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
|
)
|
||
|
|
||
|
type RPC struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Subscriptions []*RPC_SubOpts `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
|
||
|
Publish []*Message `protobuf:"bytes,2,rep,name=publish,proto3" json:"publish,omitempty"`
|
||
|
Control *ControlMessage `protobuf:"bytes,3,opt,name=control,proto3" json:"control,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *RPC) Reset() {
|
||
|
*x = RPC{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_rpc_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *RPC) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*RPC) ProtoMessage() {}
|
||
|
|
||
|
func (x *RPC) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_rpc_proto_msgTypes[0]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use RPC.ProtoReflect.Descriptor instead.
|
||
|
func (*RPC) Descriptor() ([]byte, []int) {
|
||
|
return file_rpc_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *RPC) GetSubscriptions() []*RPC_SubOpts {
|
||
|
if x != nil {
|
||
|
return x.Subscriptions
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *RPC) GetPublish() []*Message {
|
||
|
if x != nil {
|
||
|
return x.Publish
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *RPC) GetControl() *ControlMessage {
|
||
|
if x != nil {
|
||
|
return x.Control
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type Message struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
From []byte `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
|
||
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||
|
Seqno []byte `protobuf:"bytes,3,opt,name=seqno,proto3" json:"seqno,omitempty"`
|
||
|
Bitmask []byte `protobuf:"bytes,4,opt,name=bitmask,proto3" json:"bitmask,omitempty"`
|
||
|
Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
|
||
|
Key []byte `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *Message) Reset() {
|
||
|
*x = Message{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_rpc_proto_msgTypes[1]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *Message) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*Message) ProtoMessage() {}
|
||
|
|
||
|
func (x *Message) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_rpc_proto_msgTypes[1]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use Message.ProtoReflect.Descriptor instead.
|
||
|
func (*Message) Descriptor() ([]byte, []int) {
|
||
|
return file_rpc_proto_rawDescGZIP(), []int{1}
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetFrom() []byte {
|
||
|
if x != nil {
|
||
|
return x.From
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetData() []byte {
|
||
|
if x != nil {
|
||
|
return x.Data
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetSeqno() []byte {
|
||
|
if x != nil {
|
||
|
return x.Seqno
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetBitmask() []byte {
|
||
|
if x != nil {
|
||
|
return x.Bitmask
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetSignature() []byte {
|
||
|
if x != nil {
|
||
|
return x.Signature
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetKey() []byte {
|
||
|
if x != nil {
|
||
|
return x.Key
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type ControlMessage struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Ihave []*ControlIHave `protobuf:"bytes,1,rep,name=ihave,proto3" json:"ihave,omitempty"`
|
||
|
Iwant []*ControlIWant `protobuf:"bytes,2,rep,name=iwant,proto3" json:"iwant,omitempty"`
|
||
|
Graft []*ControlGraft `protobuf:"bytes,3,rep,name=graft,proto3" json:"graft,omitempty"`
|
||
|
Prune []*ControlPrune `protobuf:"bytes,4,rep,name=prune,proto3" json:"prune,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *ControlMessage) Reset() {
|
||
|
*x = ControlMessage{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_rpc_proto_msgTypes[2]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *ControlMessage) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*ControlMessage) ProtoMessage() {}
|
||
|
|
||
|
func (x *ControlMessage) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_rpc_proto_msgTypes[2]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use ControlMessage.ProtoReflect.Descriptor instead.
|
||
|
func (*ControlMessage) Descriptor() ([]byte, []int) {
|
||
|
return file_rpc_proto_rawDescGZIP(), []int{2}
|
||
|
}
|
||
|
|
||
|
func (x *ControlMessage) GetIhave() []*ControlIHave {
|
||
|
if x != nil {
|
||
|
return x.Ihave
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *ControlMessage) GetIwant() []*ControlIWant {
|
||
|
if x != nil {
|
||
|
return x.Iwant
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *ControlMessage) GetGraft() []*ControlGraft {
|
||
|
if x != nil {
|
||
|
return x.Graft
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *ControlMessage) GetPrune() []*ControlPrune {
|
||
|
if x != nil {
|
||
|
return x.Prune
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type ControlIHave struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Bitmask []byte `protobuf:"bytes,1,opt,name=bitmask,proto3" json:"bitmask,omitempty"`
|
||
|
// implementors from other languages should use bytes here - go protobuf emits invalid utf8 strings
|
||
|
MessageIDs []string `protobuf:"bytes,2,rep,name=messageIDs,proto3" json:"messageIDs,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *ControlIHave) Reset() {
|
||
|
*x = ControlIHave{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_rpc_proto_msgTypes[3]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *ControlIHave) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*ControlIHave) ProtoMessage() {}
|
||
|
|
||
|
func (x *ControlIHave) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_rpc_proto_msgTypes[3]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use ControlIHave.ProtoReflect.Descriptor instead.
|
||
|
func (*ControlIHave) Descriptor() ([]byte, []int) {
|
||
|
return file_rpc_proto_rawDescGZIP(), []int{3}
|
||
|
}
|
||
|
|
||
|
func (x *ControlIHave) GetBitmask() []byte {
|
||
|
if x != nil {
|
||
|
return x.Bitmask
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *ControlIHave) GetMessageIDs() []string {
|
||
|
if x != nil {
|
||
|
return x.MessageIDs
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type ControlIWant struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// implementors from other languages should use bytes here - go protobuf emits invalid utf8 strings
|
||
|
MessageIDs []string `protobuf:"bytes,1,rep,name=messageIDs,proto3" json:"messageIDs,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *ControlIWant) Reset() {
|
||
|
*x = ControlIWant{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_rpc_proto_msgTypes[4]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *ControlIWant) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*ControlIWant) ProtoMessage() {}
|
||
|
|
||
|
func (x *ControlIWant) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_rpc_proto_msgTypes[4]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use ControlIWant.ProtoReflect.Descriptor instead.
|
||
|
func (*ControlIWant) Descriptor() ([]byte, []int) {
|
||
|
return file_rpc_proto_rawDescGZIP(), []int{4}
|
||
|
}
|
||
|
|
||
|
func (x *ControlIWant) GetMessageIDs() []string {
|
||
|
if x != nil {
|
||
|
return x.MessageIDs
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type ControlGraft struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Bitmask []byte `protobuf:"bytes,1,opt,name=bitmask,proto3" json:"bitmask,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *ControlGraft) Reset() {
|
||
|
*x = ControlGraft{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_rpc_proto_msgTypes[5]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *ControlGraft) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*ControlGraft) ProtoMessage() {}
|
||
|
|
||
|
func (x *ControlGraft) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_rpc_proto_msgTypes[5]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use ControlGraft.ProtoReflect.Descriptor instead.
|
||
|
func (*ControlGraft) Descriptor() ([]byte, []int) {
|
||
|
return file_rpc_proto_rawDescGZIP(), []int{5}
|
||
|
}
|
||
|
|
||
|
func (x *ControlGraft) GetBitmask() []byte {
|
||
|
if x != nil {
|
||
|
return x.Bitmask
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type ControlPrune struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Bitmask []byte `protobuf:"bytes,1,opt,name=bitmask,proto3" json:"bitmask,omitempty"`
|
||
|
Peers []*PeerInfo `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"`
|
||
|
Backoff uint64 `protobuf:"varint,3,opt,name=backoff,proto3" json:"backoff,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *ControlPrune) Reset() {
|
||
|
*x = ControlPrune{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_rpc_proto_msgTypes[6]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *ControlPrune) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*ControlPrune) ProtoMessage() {}
|
||
|
|
||
|
func (x *ControlPrune) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_rpc_proto_msgTypes[6]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use ControlPrune.ProtoReflect.Descriptor instead.
|
||
|
func (*ControlPrune) Descriptor() ([]byte, []int) {
|
||
|
return file_rpc_proto_rawDescGZIP(), []int{6}
|
||
|
}
|
||
|
|
||
|
func (x *ControlPrune) GetBitmask() []byte {
|
||
|
if x != nil {
|
||
|
return x.Bitmask
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *ControlPrune) GetPeers() []*PeerInfo {
|
||
|
if x != nil {
|
||
|
return x.Peers
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *ControlPrune) GetBackoff() uint64 {
|
||
|
if x != nil {
|
||
|
return x.Backoff
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
type PeerInfo struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
PeerID []byte `protobuf:"bytes,1,opt,name=peerID,proto3,oneof" json:"peerID,omitempty"`
|
||
|
SignedPeerRecord []byte `protobuf:"bytes,2,opt,name=signedPeerRecord,proto3,oneof" json:"signedPeerRecord,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *PeerInfo) Reset() {
|
||
|
*x = PeerInfo{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_rpc_proto_msgTypes[7]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *PeerInfo) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*PeerInfo) ProtoMessage() {}
|
||
|
|
||
|
func (x *PeerInfo) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_rpc_proto_msgTypes[7]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use PeerInfo.ProtoReflect.Descriptor instead.
|
||
|
func (*PeerInfo) Descriptor() ([]byte, []int) {
|
||
|
return file_rpc_proto_rawDescGZIP(), []int{7}
|
||
|
}
|
||
|
|
||
|
func (x *PeerInfo) GetPeerID() []byte {
|
||
|
if x != nil {
|
||
|
return x.PeerID
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *PeerInfo) GetSignedPeerRecord() []byte {
|
||
|
if x != nil {
|
||
|
return x.SignedPeerRecord
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type RPC_SubOpts struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Subscribe bool `protobuf:"varint,1,opt,name=subscribe,proto3" json:"subscribe,omitempty"` // subscribe or unsubcribe
|
||
|
Bitmask []byte `protobuf:"bytes,2,opt,name=bitmask,proto3" json:"bitmask,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *RPC_SubOpts) Reset() {
|
||
|
*x = RPC_SubOpts{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_rpc_proto_msgTypes[8]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *RPC_SubOpts) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*RPC_SubOpts) ProtoMessage() {}
|
||
|
|
||
|
func (x *RPC_SubOpts) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_rpc_proto_msgTypes[8]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use RPC_SubOpts.ProtoReflect.Descriptor instead.
|
||
|
func (*RPC_SubOpts) Descriptor() ([]byte, []int) {
|
||
|
return file_rpc_proto_rawDescGZIP(), []int{0, 0}
|
||
|
}
|
||
|
|
||
|
func (x *RPC_SubOpts) GetSubscribe() bool {
|
||
|
if x != nil {
|
||
|
return x.Subscribe
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (x *RPC_SubOpts) GetBitmask() []byte {
|
||
|
if x != nil {
|
||
|
return x.Bitmask
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
var File_rpc_proto protoreflect.FileDescriptor
|
||
|
|
||
|
var file_rpc_proto_rawDesc = []byte{
|
||
|
0x0a, 0x09, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x62, 0x6c, 0x6f,
|
||
|
0x73, 0x73, 0x6f, 0x6d, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x62, 0x22, 0xf5, 0x01, 0x0a, 0x03, 0x52,
|
||
|
0x50, 0x43, 0x12, 0x40, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
|
||
|
0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x6c, 0x6f, 0x73,
|
||
|
0x73, 0x6f, 0x6d, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x2e, 0x53, 0x75,
|
||
|
0x62, 0x4f, 0x70, 0x74, 0x73, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
||
|
0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x18,
|
||
|
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x6c, 0x6f, 0x73, 0x73, 0x6f, 0x6d, 0x73,
|
||
|
0x75, 0x62, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x70,
|
||
|
0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x37, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
|
||
|
0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x6c, 0x6f, 0x73, 0x73, 0x6f,
|
||
|
0x6d, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x4d,
|
||
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x1a,
|
||
|
0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x75,
|
||
|
0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73,
|
||
|
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x69, 0x74, 0x6d,
|
||
|
0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x62, 0x69, 0x74, 0x6d, 0x61,
|
||
|
0x73, 0x6b, 0x22, 0x91, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12,
|
||
|
0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x66, 0x72,
|
||
|
0x6f, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
|
||
|
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x71, 0x6e, 0x6f, 0x18,
|
||
|
0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x65, 0x71, 0x6e, 0x6f, 0x12, 0x18, 0x0a, 0x07,
|
||
|
0x62, 0x69, 0x74, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x62,
|
||
|
0x69, 0x74, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74,
|
||
|
0x75, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61,
|
||
|
0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,
|
||
|
0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0xdc, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x72,
|
||
|
0x6f, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x69, 0x68, 0x61,
|
||
|
0x76, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x6c, 0x6f, 0x73, 0x73,
|
||
|
0x6f, 0x6d, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
|
||
|
0x49, 0x48, 0x61, 0x76, 0x65, 0x52, 0x05, 0x69, 0x68, 0x61, 0x76, 0x65, 0x12, 0x31, 0x0a, 0x05,
|
||
|
0x69, 0x77, 0x61, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x6c,
|
||
|
0x6f, 0x73, 0x73, 0x6f, 0x6d, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74,
|
||
|
0x72, 0x6f, 0x6c, 0x49, 0x57, 0x61, 0x6e, 0x74, 0x52, 0x05, 0x69, 0x77, 0x61, 0x6e, 0x74, 0x12,
|
||
|
0x31, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x66, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b,
|
||
|
0x2e, 0x62, 0x6c, 0x6f, 0x73, 0x73, 0x6f, 0x6d, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x62, 0x2e, 0x43,
|
||
|
0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x47, 0x72, 0x61, 0x66, 0x74, 0x52, 0x05, 0x67, 0x72, 0x61,
|
||
|
0x66, 0x74, 0x12, 0x31, 0x0a, 0x05, 0x70, 0x72, 0x75, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28,
|
||
|
0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x6c, 0x6f, 0x73, 0x73, 0x6f, 0x6d, 0x73, 0x75, 0x62, 0x2e, 0x70,
|
||
|
0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x75, 0x6e, 0x65, 0x52, 0x05,
|
||
|
0x70, 0x72, 0x75, 0x6e, 0x65, 0x22, 0x48, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
|
||
|
0x49, 0x48, 0x61, 0x76, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x69, 0x74, 0x6d, 0x61, 0x73, 0x6b,
|
||
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x62, 0x69, 0x74, 0x6d, 0x61, 0x73, 0x6b, 0x12,
|
||
|
0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x44, 0x73, 0x18, 0x02, 0x20,
|
||
|
0x03, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x44, 0x73, 0x22,
|
||
|
0x2e, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x49, 0x57, 0x61, 0x6e, 0x74, 0x12,
|
||
|
0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x44, 0x73, 0x18, 0x01, 0x20,
|
||
|
0x03, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x44, 0x73, 0x22,
|
||
|
0x28, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x47, 0x72, 0x61, 0x66, 0x74, 0x12,
|
||
|
0x18, 0x0a, 0x07, 0x62, 0x69, 0x74, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
|
||
|
0x52, 0x07, 0x62, 0x69, 0x74, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0x71, 0x0a, 0x0c, 0x43, 0x6f, 0x6e,
|
||
|
0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x75, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x69, 0x74,
|
||
|
0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x62, 0x69, 0x74, 0x6d,
|
||
|
0x61, 0x73, 0x6b, 0x12, 0x2d, 0x0a, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03,
|
||
|
0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x6c, 0x6f, 0x73, 0x73, 0x6f, 0x6d, 0x73, 0x75, 0x62, 0x2e,
|
||
|
0x70, 0x62, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x70, 0x65, 0x65,
|
||
|
0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x03, 0x20,
|
||
|
0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x22, 0x78, 0x0a, 0x08,
|
||
|
0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x65, 0x65, 0x72,
|
||
|
0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x06, 0x70, 0x65, 0x65, 0x72,
|
||
|
0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50,
|
||
|
0x65, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48,
|
||
|
0x01, 0x52, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x63,
|
||
|
0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x49,
|
||
|
0x44, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x65, 0x65, 0x72,
|
||
|
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x43, 0x5a, 0x41, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
||
|
0x2e, 0x71, 0x75, 0x69, 0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||
|
0x71, 0x75, 0x69, 0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2f, 0x6d, 0x6f, 0x6e, 0x6f, 0x72,
|
||
|
0x65, 0x70, 0x6f, 0x2f, 0x67, 0x6f, 0x2d, 0x6c, 0x69, 0x62, 0x70, 0x32, 0x70, 0x2d, 0x62, 0x6c,
|
||
|
0x6f, 0x73, 0x73, 0x6f, 0x6d, 0x73, 0x75, 0x62, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||
|
0x74, 0x6f, 0x33,
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
file_rpc_proto_rawDescOnce sync.Once
|
||
|
file_rpc_proto_rawDescData = file_rpc_proto_rawDesc
|
||
|
)
|
||
|
|
||
|
func file_rpc_proto_rawDescGZIP() []byte {
|
||
|
file_rpc_proto_rawDescOnce.Do(func() {
|
||
|
file_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_proto_rawDescData)
|
||
|
})
|
||
|
return file_rpc_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||
|
var file_rpc_proto_goTypes = []interface{}{
|
||
|
(*RPC)(nil), // 0: blossomsub.pb.RPC
|
||
|
(*Message)(nil), // 1: blossomsub.pb.Message
|
||
|
(*ControlMessage)(nil), // 2: blossomsub.pb.ControlMessage
|
||
|
(*ControlIHave)(nil), // 3: blossomsub.pb.ControlIHave
|
||
|
(*ControlIWant)(nil), // 4: blossomsub.pb.ControlIWant
|
||
|
(*ControlGraft)(nil), // 5: blossomsub.pb.ControlGraft
|
||
|
(*ControlPrune)(nil), // 6: blossomsub.pb.ControlPrune
|
||
|
(*PeerInfo)(nil), // 7: blossomsub.pb.PeerInfo
|
||
|
(*RPC_SubOpts)(nil), // 8: blossomsub.pb.RPC.SubOpts
|
||
|
}
|
||
|
var file_rpc_proto_depIdxs = []int32{
|
||
|
8, // 0: blossomsub.pb.RPC.subscriptions:type_name -> blossomsub.pb.RPC.SubOpts
|
||
|
1, // 1: blossomsub.pb.RPC.publish:type_name -> blossomsub.pb.Message
|
||
|
2, // 2: blossomsub.pb.RPC.control:type_name -> blossomsub.pb.ControlMessage
|
||
|
3, // 3: blossomsub.pb.ControlMessage.ihave:type_name -> blossomsub.pb.ControlIHave
|
||
|
4, // 4: blossomsub.pb.ControlMessage.iwant:type_name -> blossomsub.pb.ControlIWant
|
||
|
5, // 5: blossomsub.pb.ControlMessage.graft:type_name -> blossomsub.pb.ControlGraft
|
||
|
6, // 6: blossomsub.pb.ControlMessage.prune:type_name -> blossomsub.pb.ControlPrune
|
||
|
7, // 7: blossomsub.pb.ControlPrune.peers:type_name -> blossomsub.pb.PeerInfo
|
||
|
8, // [8:8] is the sub-list for method output_type
|
||
|
8, // [8:8] is the sub-list for method input_type
|
||
|
8, // [8:8] is the sub-list for extension type_name
|
||
|
8, // [8:8] is the sub-list for extension extendee
|
||
|
0, // [0:8] is the sub-list for field type_name
|
||
|
}
|
||
|
|
||
|
func init() { file_rpc_proto_init() }
|
||
|
func file_rpc_proto_init() {
|
||
|
if File_rpc_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
if !protoimpl.UnsafeEnabled {
|
||
|
file_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*RPC); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*Message); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*ControlMessage); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*ControlIHave); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_rpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*ControlIWant); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_rpc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*ControlGraft); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_rpc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*ControlPrune); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_rpc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*PeerInfo); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_rpc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*RPC_SubOpts); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
file_rpc_proto_msgTypes[7].OneofWrappers = []interface{}{}
|
||
|
type x struct{}
|
||
|
out := protoimpl.TypeBuilder{
|
||
|
File: protoimpl.DescBuilder{
|
||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
RawDescriptor: file_rpc_proto_rawDesc,
|
||
|
NumEnums: 0,
|
||
|
NumMessages: 9,
|
||
|
NumExtensions: 0,
|
||
|
NumServices: 0,
|
||
|
},
|
||
|
GoTypes: file_rpc_proto_goTypes,
|
||
|
DependencyIndexes: file_rpc_proto_depIdxs,
|
||
|
MessageInfos: file_rpc_proto_msgTypes,
|
||
|
}.Build()
|
||
|
File_rpc_proto = out.File
|
||
|
file_rpc_proto_rawDesc = nil
|
||
|
file_rpc_proto_goTypes = nil
|
||
|
file_rpc_proto_depIdxs = nil
|
||
|
}
|