ceremonyclient/protobufs/channel.pb.go
Cassandra Heart dbd95bd9e9
v2.1.0 (#439)
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete

* 2.1.0 main node rollup
2025-09-30 02:48:15 -05:00

1268 lines
45 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v5.29.3
// source: channel.proto
package protobufs
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)
)
// Describes a general channel envelope for a message.
type P2PChannelEnvelope struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A general protocol identifier as a uint32 this is expected to rarely
// iterate, and should be uniquely identifying both protocol and version.
// Pragmatically speaking, this implies that the least significant byte
// specifies version (which should iterate most minimally), and the three most
// significant bytes should specify protocol. Recipients SHOULD ignore
// messages with incompatible protocol identifiers, but also SHOULD warn on
// identifiers with versions higher than the supported protocol. A large
// number of unsupported protocol messages may indicate spam/some other
// attack, whereas a large number of unsupported protocol versions may
// indicate an out of date client, respective to which side is the maximum of
// the version number.
ProtocolIdentifier uint32 `protobuf:"varint,1,opt,name=protocol_identifier,json=protocolIdentifier,proto3" json:"protocol_identifier,omitempty"`
// The encrypted message header. Message header encryption is mandatory
// P2P channels in some cases pre-empt the mixnet and leaky information from
// unencrypted message headers could de-anonymize the recipient. It is thus
// also mandatory at the protocol implementation level that header sizes are
// consistent within a protocol so as to not leak metadata. An example of this
// is in Double and Triple-Ratchet, where the sequence identifiers MUST be
// encoded as fixed-length integers, as variable encoding can indicate a
// message being in the first 256, 65,536, etc. if an exchange is highly
// asymmetrical in sends/receives. This is especially critical in long
// running protocols with a need for fixed length messages (see message_body
// notes).
MessageHeader *MessageCiphertext `protobuf:"bytes,2,opt,name=message_header,json=messageHeader,proto3" json:"message_header,omitempty"`
// The encrypted message body. Message bodies are variable length ciphertext
// could range widely, however if this metadata is pertinent to determining
// protocol state, such as knowing what round an encapsulated protocol is in,
// or potentially what might be transferred over the protocol, protocol
// implementers SHOULD utilize chunking and send fixed length messages.
// Additionally, if rounds themselves are highly asymmetric or have
// long-standing processing times that could dangerously leak information of
// round state, implementers SHOULD defer protocol use to leverage the mixnet.
// If this is not feasible, the implementation details are left up to the
// exercise of the protocol author.
MessageBody *MessageCiphertext `protobuf:"bytes,3,opt,name=message_body,json=messageBody,proto3" json:"message_body,omitempty"`
}
func (x *P2PChannelEnvelope) Reset() {
*x = P2PChannelEnvelope{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *P2PChannelEnvelope) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*P2PChannelEnvelope) ProtoMessage() {}
func (x *P2PChannelEnvelope) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 P2PChannelEnvelope.ProtoReflect.Descriptor instead.
func (*P2PChannelEnvelope) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{0}
}
func (x *P2PChannelEnvelope) GetProtocolIdentifier() uint32 {
if x != nil {
return x.ProtocolIdentifier
}
return 0
}
func (x *P2PChannelEnvelope) GetMessageHeader() *MessageCiphertext {
if x != nil {
return x.MessageHeader
}
return nil
}
func (x *P2PChannelEnvelope) GetMessageBody() *MessageCiphertext {
if x != nil {
return x.MessageBody
}
return nil
}
// Describes a general ciphertext payload.
type MessageCiphertext struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The intialization vector used for encryption. While cipher specific,
// typically this should be a unique value for every ciphertext. If this is
// not the case for a protocol where it should be, this SHOULD be considered
// an invalid message and warned, as it could either indicate compromise,
// or a faulty cryptographic implementation such as a faulty PKCS#11
// implementation that has a code path to handle HSM vendors which mandate
// zeroed IVs before passing into encryption methods, as they will update the
// IV within the HSM through hardware-supplied entropy.
InitializationVector []byte `protobuf:"bytes,1,opt,name=initialization_vector,json=initializationVector,proto3" json:"initialization_vector,omitempty"`
// The raw ciphertext byte string. This will be cipher specific, however some
// general attributes are expected to be followed. If there is a common
// layout expected, such as AES-GCM having the GCM tag appended to the
// ciphertext, please follow the common layout.
Ciphertext []byte `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
// The associated data byte string, if available. This will be highly protocol
// specific, but SHOULD NOT leak metadata.
AssociatedData []byte `protobuf:"bytes,3,opt,name=associated_data,json=associatedData,proto3" json:"associated_data,omitempty"`
}
func (x *MessageCiphertext) Reset() {
*x = MessageCiphertext{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MessageCiphertext) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MessageCiphertext) ProtoMessage() {}
func (x *MessageCiphertext) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 MessageCiphertext.ProtoReflect.Descriptor instead.
func (*MessageCiphertext) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{1}
}
func (x *MessageCiphertext) GetInitializationVector() []byte {
if x != nil {
return x.InitializationVector
}
return nil
}
func (x *MessageCiphertext) GetCiphertext() []byte {
if x != nil {
return x.Ciphertext
}
return nil
}
func (x *MessageCiphertext) GetAssociatedData() []byte {
if x != nil {
return x.AssociatedData
}
return nil
}
// InboxMessage represents a message stored in an inbox
type InboxMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The address of the inbox
Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Unix timestamp in milliseconds
Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// The ephemeral public key used for the message
EphemeralPublicKey []byte `protobuf:"bytes,3,opt,name=ephemeral_public_key,json=ephemeralPublicKey,proto3" json:"ephemeral_public_key,omitempty"`
// The actual message content (encrypted)
Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
}
func (x *InboxMessage) Reset() {
*x = InboxMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InboxMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InboxMessage) ProtoMessage() {}
func (x *InboxMessage) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 InboxMessage.ProtoReflect.Descriptor instead.
func (*InboxMessage) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{2}
}
func (x *InboxMessage) GetAddress() []byte {
if x != nil {
return x.Address
}
return nil
}
func (x *InboxMessage) GetTimestamp() uint64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *InboxMessage) GetEphemeralPublicKey() []byte {
if x != nil {
return x.EphemeralPublicKey
}
return nil
}
func (x *InboxMessage) GetMessage() []byte {
if x != nil {
return x.Message
}
return nil
}
type HubAddInboxMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The address of the hub
Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// The inbox public key to associate
InboxPublicKey []byte `protobuf:"bytes,2,opt,name=inbox_public_key,json=inboxPublicKey,proto3" json:"inbox_public_key,omitempty"`
// The hub public key to associate
HubPublicKey []byte `protobuf:"bytes,3,opt,name=hub_public_key,json=hubPublicKey,proto3" json:"hub_public_key,omitempty"`
// The signature of the hub public key over the message
// `domain("add") || inbox_public_key`
HubSignature []byte `protobuf:"bytes,4,opt,name=hub_signature,json=hubSignature,proto3" json:"hub_signature,omitempty"`
// The signature of the inbox public key over the message
// `domain("add") || hub_public_key`
InboxSignature []byte `protobuf:"bytes,5,opt,name=inbox_signature,json=inboxSignature,proto3" json:"inbox_signature,omitempty"`
}
func (x *HubAddInboxMessage) Reset() {
*x = HubAddInboxMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HubAddInboxMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HubAddInboxMessage) ProtoMessage() {}
func (x *HubAddInboxMessage) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 HubAddInboxMessage.ProtoReflect.Descriptor instead.
func (*HubAddInboxMessage) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{3}
}
func (x *HubAddInboxMessage) GetAddress() []byte {
if x != nil {
return x.Address
}
return nil
}
func (x *HubAddInboxMessage) GetInboxPublicKey() []byte {
if x != nil {
return x.InboxPublicKey
}
return nil
}
func (x *HubAddInboxMessage) GetHubPublicKey() []byte {
if x != nil {
return x.HubPublicKey
}
return nil
}
func (x *HubAddInboxMessage) GetHubSignature() []byte {
if x != nil {
return x.HubSignature
}
return nil
}
func (x *HubAddInboxMessage) GetInboxSignature() []byte {
if x != nil {
return x.InboxSignature
}
return nil
}
type HubDeleteInboxMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The address of the hub
Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// The inbox public key to associate
InboxPublicKey []byte `protobuf:"bytes,2,opt,name=inbox_public_key,json=inboxPublicKey,proto3" json:"inbox_public_key,omitempty"`
// The hub public key to associate
HubPublicKey []byte `protobuf:"bytes,3,opt,name=hub_public_key,json=hubPublicKey,proto3" json:"hub_public_key,omitempty"`
// The signature of the hub public key over the message
// `domain("delete") || inbox_public_key`
HubSignature []byte `protobuf:"bytes,4,opt,name=hub_signature,json=hubSignature,proto3" json:"hub_signature,omitempty"`
// The signature of the inbox public key over the message
// `domain("delete") || hub_public_key`
InboxSignature []byte `protobuf:"bytes,5,opt,name=inbox_signature,json=inboxSignature,proto3" json:"inbox_signature,omitempty"`
}
func (x *HubDeleteInboxMessage) Reset() {
*x = HubDeleteInboxMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HubDeleteInboxMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HubDeleteInboxMessage) ProtoMessage() {}
func (x *HubDeleteInboxMessage) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 HubDeleteInboxMessage.ProtoReflect.Descriptor instead.
func (*HubDeleteInboxMessage) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{4}
}
func (x *HubDeleteInboxMessage) GetAddress() []byte {
if x != nil {
return x.Address
}
return nil
}
func (x *HubDeleteInboxMessage) GetInboxPublicKey() []byte {
if x != nil {
return x.InboxPublicKey
}
return nil
}
func (x *HubDeleteInboxMessage) GetHubPublicKey() []byte {
if x != nil {
return x.HubPublicKey
}
return nil
}
func (x *HubDeleteInboxMessage) GetHubSignature() []byte {
if x != nil {
return x.HubSignature
}
return nil
}
func (x *HubDeleteInboxMessage) GetInboxSignature() []byte {
if x != nil {
return x.InboxSignature
}
return nil
}
// InboxMessageRequest is used to request specific messages
type InboxMessageRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The 3-byte filter for message routing
Filter []byte `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional: specific message ID to retrieve
MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
// Optional: address to filter messages by
Address []byte `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
// Optional: retrieve messages after this timestamp
FromTimestamp uint64 `protobuf:"varint,4,opt,name=from_timestamp,json=fromTimestamp,proto3" json:"from_timestamp,omitempty"`
// Optional: retrieve messages before this timestamp
ToTimestamp uint64 `protobuf:"varint,5,opt,name=to_timestamp,json=toTimestamp,proto3" json:"to_timestamp,omitempty"`
}
func (x *InboxMessageRequest) Reset() {
*x = InboxMessageRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InboxMessageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InboxMessageRequest) ProtoMessage() {}
func (x *InboxMessageRequest) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 InboxMessageRequest.ProtoReflect.Descriptor instead.
func (*InboxMessageRequest) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{5}
}
func (x *InboxMessageRequest) GetFilter() []byte {
if x != nil {
return x.Filter
}
return nil
}
func (x *InboxMessageRequest) GetMessageId() []byte {
if x != nil {
return x.MessageId
}
return nil
}
func (x *InboxMessageRequest) GetAddress() []byte {
if x != nil {
return x.Address
}
return nil
}
func (x *InboxMessageRequest) GetFromTimestamp() uint64 {
if x != nil {
return x.FromTimestamp
}
return 0
}
func (x *InboxMessageRequest) GetToTimestamp() uint64 {
if x != nil {
return x.ToTimestamp
}
return 0
}
// InboxMessageResponse contains requested messages
type InboxMessageResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of messages matching the request criteria
Messages []*InboxMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
}
func (x *InboxMessageResponse) Reset() {
*x = InboxMessageResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InboxMessageResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InboxMessageResponse) ProtoMessage() {}
func (x *InboxMessageResponse) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 InboxMessageResponse.ProtoReflect.Descriptor instead.
func (*InboxMessageResponse) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{6}
}
func (x *InboxMessageResponse) GetMessages() []*InboxMessage {
if x != nil {
return x.Messages
}
return nil
}
// InboxMessagePut is used to store a new message
type InboxMessagePut struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The message to store
Message *InboxMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func (x *InboxMessagePut) Reset() {
*x = InboxMessagePut{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InboxMessagePut) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InboxMessagePut) ProtoMessage() {}
func (x *InboxMessagePut) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 InboxMessagePut.ProtoReflect.Descriptor instead.
func (*InboxMessagePut) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{7}
}
func (x *InboxMessagePut) GetMessage() *InboxMessage {
if x != nil {
return x.Message
}
return nil
}
// HubRequest is used to retrieve hub information
type HubRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The 3-byte filter for the hub
Filter []byte `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// The hub address to retrieve
HubAddress []byte `protobuf:"bytes,2,opt,name=hub_address,json=hubAddress,proto3" json:"hub_address,omitempty"`
}
func (x *HubRequest) Reset() {
*x = HubRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HubRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HubRequest) ProtoMessage() {}
func (x *HubRequest) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 HubRequest.ProtoReflect.Descriptor instead.
func (*HubRequest) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{8}
}
func (x *HubRequest) GetFilter() []byte {
if x != nil {
return x.Filter
}
return nil
}
func (x *HubRequest) GetHubAddress() []byte {
if x != nil {
return x.HubAddress
}
return nil
}
// HubResponse is used to return hub information
type HubResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The inbox addresses associated with a hub
Adds []*HubAddInboxMessage `protobuf:"bytes,1,rep,name=adds,proto3" json:"adds,omitempty"`
// The inbox addresses no longer associated with a hub
Deletes []*HubDeleteInboxMessage `protobuf:"bytes,2,rep,name=deletes,proto3" json:"deletes,omitempty"`
}
func (x *HubResponse) Reset() {
*x = HubResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HubResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HubResponse) ProtoMessage() {}
func (x *HubResponse) ProtoReflect() protoreflect.Message {
mi := &file_channel_proto_msgTypes[9]
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 HubResponse.ProtoReflect.Descriptor instead.
func (*HubResponse) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{9}
}
func (x *HubResponse) GetAdds() []*HubAddInboxMessage {
if x != nil {
return x.Adds
}
return nil
}
func (x *HubResponse) GetDeletes() []*HubDeleteInboxMessage {
if x != nil {
return x.Deletes
}
return nil
}
// HubPut is used to create or update a hub
type HubPut struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The addition of an inbox address association
Add *HubAddInboxMessage `protobuf:"bytes,1,opt,name=add,proto3" json:"add,omitempty"`
// The deletion of an inbox address association
Delete *HubDeleteInboxMessage `protobuf:"bytes,2,opt,name=delete,proto3" json:"delete,omitempty"`
}
func (x *HubPut) Reset() {
*x = HubPut{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HubPut) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HubPut) ProtoMessage() {}
func (x *HubPut) ProtoReflect() protoreflect.Message {
mi := &file_channel_proto_msgTypes[10]
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 HubPut.ProtoReflect.Descriptor instead.
func (*HubPut) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{10}
}
func (x *HubPut) GetAdd() *HubAddInboxMessage {
if x != nil {
return x.Add
}
return nil
}
func (x *HubPut) GetDelete() *HubDeleteInboxMessage {
if x != nil {
return x.Delete
}
return nil
}
// DispatchSyncRequest is used to request synchronization of dispatch data
type DispatchSyncRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The filters this peer is interested in (3 bytes each)
Filters [][]byte `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"`
}
func (x *DispatchSyncRequest) Reset() {
*x = DispatchSyncRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DispatchSyncRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DispatchSyncRequest) ProtoMessage() {}
func (x *DispatchSyncRequest) ProtoReflect() protoreflect.Message {
mi := &file_channel_proto_msgTypes[11]
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 DispatchSyncRequest.ProtoReflect.Descriptor instead.
func (*DispatchSyncRequest) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{11}
}
func (x *DispatchSyncRequest) GetFilters() [][]byte {
if x != nil {
return x.Filters
}
return nil
}
// DispatchSyncResponse contains synchronized data
type DispatchSyncResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Messages matching the requested filters
Messages []*InboxMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
// Hub information for the requested filters
Hubs []*HubResponse `protobuf:"bytes,2,rep,name=hubs,proto3" json:"hubs,omitempty"`
}
func (x *DispatchSyncResponse) Reset() {
*x = DispatchSyncResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DispatchSyncResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DispatchSyncResponse) ProtoMessage() {}
func (x *DispatchSyncResponse) ProtoReflect() protoreflect.Message {
mi := &file_channel_proto_msgTypes[12]
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 DispatchSyncResponse.ProtoReflect.Descriptor instead.
func (*DispatchSyncResponse) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{12}
}
func (x *DispatchSyncResponse) GetMessages() []*InboxMessage {
if x != nil {
return x.Messages
}
return nil
}
func (x *DispatchSyncResponse) GetHubs() []*HubResponse {
if x != nil {
return x.Hubs
}
return nil
}
var File_channel_proto protoreflect.FileDescriptor
var file_channel_proto_rawDesc = []byte{
0x0a, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x1a, 0x71, 0x75, 0x69, 0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x6e, 0x6f, 0x64, 0x65,
0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x22, 0xed, 0x01, 0x0a, 0x12,
0x50, 0x32, 0x50, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f,
0x70, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x69,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66,
0x69, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x68,
0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x71, 0x75,
0x69, 0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x63, 0x68,
0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0d, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x0c, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x2d, 0x2e, 0x71, 0x75, 0x69, 0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x6e, 0x6f, 0x64,
0x65, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0b,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x22, 0x91, 0x01, 0x0a, 0x11,
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78,
0x74, 0x12, 0x33, 0x0a, 0x15, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
0x52, 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72,
0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x69, 0x70, 0x68,
0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69,
0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
0x0e, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x22,
0x92, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x70, 0x68, 0x65,
0x6d, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61,
0x6c, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x22, 0xcc, 0x01, 0x0a, 0x12, 0x48, 0x75, 0x62, 0x41, 0x64, 0x64, 0x49,
0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x70,
0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52,
0x0e, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12,
0x24, 0x0a, 0x0e, 0x68, 0x75, 0x62, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65,
0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x68, 0x75, 0x62, 0x50, 0x75, 0x62, 0x6c,
0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x75, 0x62, 0x5f, 0x73, 0x69, 0x67,
0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x68, 0x75,
0x62, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e,
0x62, 0x6f, 0x78, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x05, 0x20,
0x01, 0x28, 0x0c, 0x52, 0x0e, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74,
0x75, 0x72, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x15, 0x48, 0x75, 0x62, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a,
0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07,
0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x6e, 0x62, 0x6f, 0x78,
0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0c, 0x52, 0x0e, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65,
0x79, 0x12, 0x24, 0x0a, 0x0e, 0x68, 0x75, 0x62, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f,
0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x68, 0x75, 0x62, 0x50, 0x75,
0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x75, 0x62, 0x5f, 0x73,
0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c,
0x68, 0x75, 0x62, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x27, 0x0a, 0x0f,
0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18,
0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x53, 0x69, 0x67, 0x6e,
0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x13, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a,
0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x66,
0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x25,
0x0a, 0x0e, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x5f, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x54,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x5c, 0x0a, 0x14, 0x49, 0x6e, 0x62, 0x6f,
0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x44, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x28, 0x2e, 0x71, 0x75, 0x69, 0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e,
0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x2e,
0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x55, 0x0a, 0x0f, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x07, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x71, 0x75, 0x69,
0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x63, 0x68, 0x61,
0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x45, 0x0a,
0x0a, 0x48, 0x75, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66,
0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x66, 0x69, 0x6c,
0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x75, 0x62, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65,
0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x68, 0x75, 0x62, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x0b, 0x48, 0x75, 0x62, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x71, 0x75, 0x69, 0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e,
0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x2e,
0x48, 0x75, 0x62, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x52, 0x04, 0x61, 0x64, 0x64, 0x73, 0x12, 0x4b, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x71, 0x75, 0x69, 0x6c,
0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x63, 0x68, 0x61, 0x6e,
0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x75, 0x62, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x64, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0x95, 0x01, 0x0a, 0x06, 0x48, 0x75, 0x62, 0x50, 0x75, 0x74,
0x12, 0x40, 0x0a, 0x03, 0x61, 0x64, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e,
0x71, 0x75, 0x69, 0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e,
0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x75, 0x62, 0x41, 0x64,
0x64, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x61,
0x64, 0x64, 0x12, 0x49, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x31, 0x2e, 0x71, 0x75, 0x69, 0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e,
0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x2e,
0x48, 0x75, 0x62, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x22, 0x2f, 0x0a,
0x13, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x22, 0x99,
0x01, 0x0a, 0x14, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x53, 0x79, 0x6e, 0x63, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x71, 0x75, 0x69, 0x6c,
0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x63, 0x68, 0x61, 0x6e,
0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x3b, 0x0a,
0x04, 0x68, 0x75, 0x62, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x71, 0x75,
0x69, 0x6c, 0x69, 0x62, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x63, 0x68,
0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x75, 0x62, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x52, 0x04, 0x68, 0x75, 0x62, 0x73, 0x42, 0x3a, 0x5a, 0x38, 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, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_channel_proto_rawDescOnce sync.Once
file_channel_proto_rawDescData = file_channel_proto_rawDesc
)
func file_channel_proto_rawDescGZIP() []byte {
file_channel_proto_rawDescOnce.Do(func() {
file_channel_proto_rawDescData = protoimpl.X.CompressGZIP(file_channel_proto_rawDescData)
})
return file_channel_proto_rawDescData
}
var file_channel_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_channel_proto_goTypes = []interface{}{
(*P2PChannelEnvelope)(nil), // 0: quilibrium.node.channel.pb.P2PChannelEnvelope
(*MessageCiphertext)(nil), // 1: quilibrium.node.channel.pb.MessageCiphertext
(*InboxMessage)(nil), // 2: quilibrium.node.channel.pb.InboxMessage
(*HubAddInboxMessage)(nil), // 3: quilibrium.node.channel.pb.HubAddInboxMessage
(*HubDeleteInboxMessage)(nil), // 4: quilibrium.node.channel.pb.HubDeleteInboxMessage
(*InboxMessageRequest)(nil), // 5: quilibrium.node.channel.pb.InboxMessageRequest
(*InboxMessageResponse)(nil), // 6: quilibrium.node.channel.pb.InboxMessageResponse
(*InboxMessagePut)(nil), // 7: quilibrium.node.channel.pb.InboxMessagePut
(*HubRequest)(nil), // 8: quilibrium.node.channel.pb.HubRequest
(*HubResponse)(nil), // 9: quilibrium.node.channel.pb.HubResponse
(*HubPut)(nil), // 10: quilibrium.node.channel.pb.HubPut
(*DispatchSyncRequest)(nil), // 11: quilibrium.node.channel.pb.DispatchSyncRequest
(*DispatchSyncResponse)(nil), // 12: quilibrium.node.channel.pb.DispatchSyncResponse
}
var file_channel_proto_depIdxs = []int32{
1, // 0: quilibrium.node.channel.pb.P2PChannelEnvelope.message_header:type_name -> quilibrium.node.channel.pb.MessageCiphertext
1, // 1: quilibrium.node.channel.pb.P2PChannelEnvelope.message_body:type_name -> quilibrium.node.channel.pb.MessageCiphertext
2, // 2: quilibrium.node.channel.pb.InboxMessageResponse.messages:type_name -> quilibrium.node.channel.pb.InboxMessage
2, // 3: quilibrium.node.channel.pb.InboxMessagePut.message:type_name -> quilibrium.node.channel.pb.InboxMessage
3, // 4: quilibrium.node.channel.pb.HubResponse.adds:type_name -> quilibrium.node.channel.pb.HubAddInboxMessage
4, // 5: quilibrium.node.channel.pb.HubResponse.deletes:type_name -> quilibrium.node.channel.pb.HubDeleteInboxMessage
3, // 6: quilibrium.node.channel.pb.HubPut.add:type_name -> quilibrium.node.channel.pb.HubAddInboxMessage
4, // 7: quilibrium.node.channel.pb.HubPut.delete:type_name -> quilibrium.node.channel.pb.HubDeleteInboxMessage
2, // 8: quilibrium.node.channel.pb.DispatchSyncResponse.messages:type_name -> quilibrium.node.channel.pb.InboxMessage
9, // 9: quilibrium.node.channel.pb.DispatchSyncResponse.hubs:type_name -> quilibrium.node.channel.pb.HubResponse
10, // [10:10] is the sub-list for method output_type
10, // [10:10] is the sub-list for method input_type
10, // [10:10] is the sub-list for extension type_name
10, // [10:10] is the sub-list for extension extendee
0, // [0:10] is the sub-list for field type_name
}
func init() { file_channel_proto_init() }
func file_channel_proto_init() {
if File_channel_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_channel_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*P2PChannelEnvelope); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MessageCiphertext); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InboxMessage); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HubAddInboxMessage); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HubDeleteInboxMessage); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InboxMessageRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InboxMessageResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InboxMessagePut); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HubRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HubResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HubPut); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DispatchSyncRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DispatchSyncResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_channel_proto_rawDesc,
NumEnums: 0,
NumMessages: 13,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_channel_proto_goTypes,
DependencyIndexes: file_channel_proto_depIdxs,
MessageInfos: file_channel_proto_msgTypes,
}.Build()
File_channel_proto = out.File
file_channel_proto_rawDesc = nil
file_channel_proto_goTypes = nil
file_channel_proto_depIdxs = nil
}