Documentation
¶
Index ¶
- Variables
- type BackupElement
- func (*BackupElement) Descriptor() ([]byte, []int)deprecated
- func (x *BackupElement) GetConsent() *ConsentSave
- func (x *BackupElement) GetElement() isBackupElement_Element
- func (x *BackupElement) GetGroup() *GroupSave
- func (x *BackupElement) GetGroupMessage() *GroupMessageSave
- func (x *BackupElement) GetMetadata() *BackupMetadataSave
- func (*BackupElement) ProtoMessage()
- func (x *BackupElement) ProtoReflect() protoreflect.Message
- func (x *BackupElement) Reset()
- func (x *BackupElement) String() string
- type BackupElementSelection
- func (BackupElementSelection) Descriptor() protoreflect.EnumDescriptor
- func (x BackupElementSelection) Enum() *BackupElementSelection
- func (BackupElementSelection) EnumDescriptor() ([]byte, []int)deprecated
- func (x BackupElementSelection) Number() protoreflect.EnumNumber
- func (x BackupElementSelection) String() string
- func (BackupElementSelection) Type() protoreflect.EnumType
- type BackupElement_Consent
- type BackupElement_Group
- type BackupElement_GroupMessage
- type BackupElement_Metadata
- type BackupMetadataSave
- func (*BackupMetadataSave) Descriptor() ([]byte, []int)deprecated
- func (x *BackupMetadataSave) GetElements() []BackupElementSelection
- func (x *BackupMetadataSave) GetEndNs() int64
- func (x *BackupMetadataSave) GetExportedAtNs() int64
- func (x *BackupMetadataSave) GetStartNs() int64
- func (*BackupMetadataSave) ProtoMessage()
- func (x *BackupMetadataSave) ProtoReflect() protoreflect.Message
- func (x *BackupMetadataSave) Reset()
- func (x *BackupMetadataSave) String() string
- type ConsentSave
- func (*ConsentSave) Descriptor() ([]byte, []int)deprecated
- func (x *ConsentSave) GetEntity() string
- func (x *ConsentSave) GetEntityType() ConsentTypeSave
- func (x *ConsentSave) GetState() ConsentStateSave
- func (*ConsentSave) ProtoMessage()
- func (x *ConsentSave) ProtoReflect() protoreflect.Message
- func (x *ConsentSave) Reset()
- func (x *ConsentSave) String() string
- type ConsentStateSave
- func (ConsentStateSave) Descriptor() protoreflect.EnumDescriptor
- func (x ConsentStateSave) Enum() *ConsentStateSave
- func (ConsentStateSave) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConsentStateSave) Number() protoreflect.EnumNumber
- func (x ConsentStateSave) String() string
- func (ConsentStateSave) Type() protoreflect.EnumType
- type ConsentTypeSave
- func (ConsentTypeSave) Descriptor() protoreflect.EnumDescriptor
- func (x ConsentTypeSave) Enum() *ConsentTypeSave
- func (ConsentTypeSave) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConsentTypeSave) Number() protoreflect.EnumNumber
- func (x ConsentTypeSave) String() string
- func (ConsentTypeSave) Type() protoreflect.EnumType
- type ContentTypeSave
- func (ContentTypeSave) Descriptor() protoreflect.EnumDescriptor
- func (x ContentTypeSave) Enum() *ContentTypeSave
- func (ContentTypeSave) EnumDescriptor() ([]byte, []int)deprecated
- func (x ContentTypeSave) Number() protoreflect.EnumNumber
- func (x ContentTypeSave) String() string
- func (ContentTypeSave) Type() protoreflect.EnumType
- type ConversationTypeSave
- func (ConversationTypeSave) Descriptor() protoreflect.EnumDescriptor
- func (x ConversationTypeSave) Enum() *ConversationTypeSave
- func (ConversationTypeSave) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConversationTypeSave) Number() protoreflect.EnumNumber
- func (x ConversationTypeSave) String() string
- func (ConversationTypeSave) Type() protoreflect.EnumType
- type DeliveryStatusSave
- func (DeliveryStatusSave) Descriptor() protoreflect.EnumDescriptor
- func (x DeliveryStatusSave) Enum() *DeliveryStatusSave
- func (DeliveryStatusSave) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeliveryStatusSave) Number() protoreflect.EnumNumber
- func (x DeliveryStatusSave) String() string
- func (DeliveryStatusSave) Type() protoreflect.EnumType
- type GroupMembershipStateSave
- func (GroupMembershipStateSave) Descriptor() protoreflect.EnumDescriptor
- func (x GroupMembershipStateSave) Enum() *GroupMembershipStateSave
- func (GroupMembershipStateSave) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupMembershipStateSave) Number() protoreflect.EnumNumber
- func (x GroupMembershipStateSave) String() string
- func (GroupMembershipStateSave) Type() protoreflect.EnumType
- type GroupMessageKindSave
- func (GroupMessageKindSave) Descriptor() protoreflect.EnumDescriptor
- func (x GroupMessageKindSave) Enum() *GroupMessageKindSave
- func (GroupMessageKindSave) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupMessageKindSave) Number() protoreflect.EnumNumber
- func (x GroupMessageKindSave) String() string
- func (GroupMessageKindSave) Type() protoreflect.EnumType
- type GroupMessageSave
- func (*GroupMessageSave) Descriptor() ([]byte, []int)deprecated
- func (x *GroupMessageSave) GetAuthorityId() string
- func (x *GroupMessageSave) GetContentType() ContentTypeSave
- func (x *GroupMessageSave) GetDecryptedMessageBytes() []byte
- func (x *GroupMessageSave) GetDeliveryStatus() DeliveryStatusSave
- func (x *GroupMessageSave) GetGroupId() []byte
- func (x *GroupMessageSave) GetId() []byte
- func (x *GroupMessageSave) GetKind() GroupMessageKindSave
- func (x *GroupMessageSave) GetReferenceId() []byte
- func (x *GroupMessageSave) GetSenderInboxId() string
- func (x *GroupMessageSave) GetSenderInstallationId() []byte
- func (x *GroupMessageSave) GetSentAtNs() int64
- func (x *GroupMessageSave) GetVersionMajor() int32
- func (x *GroupMessageSave) GetVersionMinor() int32
- func (*GroupMessageSave) ProtoMessage()
- func (x *GroupMessageSave) ProtoReflect() protoreflect.Message
- func (x *GroupMessageSave) Reset()
- func (x *GroupMessageSave) String() string
- type GroupSave
- func (*GroupSave) Descriptor() ([]byte, []int)deprecated
- func (x *GroupSave) GetAddedByInboxId() string
- func (x *GroupSave) GetConversationType() ConversationTypeSave
- func (x *GroupSave) GetCreatedAtNs() int64
- func (x *GroupSave) GetDmId() string
- func (x *GroupSave) GetId() []byte
- func (x *GroupSave) GetInstallationsLastChecked() int64
- func (x *GroupSave) GetLastMessageNs() int64
- func (x *GroupSave) GetMembershipState() GroupMembershipStateSave
- func (x *GroupSave) GetMessageDisappearFromNs() int64
- func (x *GroupSave) GetMessageDisappearInNs() int64
- func (x *GroupSave) GetRotatedAtNs() int64
- func (x *GroupSave) GetWelcomeId() int64
- func (*GroupSave) ProtoMessage()
- func (x *GroupSave) ProtoReflect() protoreflect.Message
- func (x *GroupSave) Reset()
- func (x *GroupSave) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ConsentTypeSave_name = map[int32]string{ 0: "CONSENT_TYPE_SAVE_UNSPECIFIED", 1: "CONSENT_TYPE_SAVE_CONVERSATION_ID", 2: "CONSENT_TYPE_SAVE_INBOX_ID", 3: "CONSENT_TYPE_SAVE_ADDRESS", } ConsentTypeSave_value = map[string]int32{ "CONSENT_TYPE_SAVE_UNSPECIFIED": 0, "CONSENT_TYPE_SAVE_CONVERSATION_ID": 1, "CONSENT_TYPE_SAVE_INBOX_ID": 2, "CONSENT_TYPE_SAVE_ADDRESS": 3, } )
Enum value maps for ConsentTypeSave.
var ( ConsentStateSave_name = map[int32]string{ 0: "CONSENT_STATE_SAVE_UNSPECIFIED", 1: "CONSENT_STATE_SAVE_UNKNOWN", 2: "CONSENT_STATE_SAVE_ALLOWED", 3: "CONSENT_STATE_SAVE_DENIED", } ConsentStateSave_value = map[string]int32{ "CONSENT_STATE_SAVE_UNSPECIFIED": 0, "CONSENT_STATE_SAVE_UNKNOWN": 1, "CONSENT_STATE_SAVE_ALLOWED": 2, "CONSENT_STATE_SAVE_DENIED": 3, } )
Enum value maps for ConsentStateSave.
var ( BackupElementSelection_name = map[int32]string{ 0: "BACKUP_ELEMENT_SELECTION_UNSPECIFIED", 1: "BACKUP_ELEMENT_SELECTION_MESSAGES", 2: "BACKUP_ELEMENT_SELECTION_CONSENT", } BackupElementSelection_value = map[string]int32{ "BACKUP_ELEMENT_SELECTION_UNSPECIFIED": 0, "BACKUP_ELEMENT_SELECTION_MESSAGES": 1, "BACKUP_ELEMENT_SELECTION_CONSENT": 2, } )
Enum value maps for BackupElementSelection.
var ( GroupMembershipStateSave_name = map[int32]string{ 0: "GROUP_MEMBERSHIP_STATE_SAVE_UNSPECIFIED", 1: "GROUP_MEMBERSHIP_STATE_SAVE_ALLOWED", 2: "GROUP_MEMBERSHIP_STATE_SAVE_REJECTED", 3: "GROUP_MEMBERSHIP_STATE_SAVE_PENDING", } GroupMembershipStateSave_value = map[string]int32{ "GROUP_MEMBERSHIP_STATE_SAVE_UNSPECIFIED": 0, "GROUP_MEMBERSHIP_STATE_SAVE_ALLOWED": 1, "GROUP_MEMBERSHIP_STATE_SAVE_REJECTED": 2, "GROUP_MEMBERSHIP_STATE_SAVE_PENDING": 3, } )
Enum value maps for GroupMembershipStateSave.
var ( ConversationTypeSave_name = map[int32]string{ 0: "CONVERSATION_TYPE_SAVE_UNSPECIFIED", 1: "CONVERSATION_TYPE_SAVE_GROUP", 2: "CONVERSATION_TYPE_SAVE_DM", 3: "CONVERSATION_TYPE_SAVE_SYNC", } ConversationTypeSave_value = map[string]int32{ "CONVERSATION_TYPE_SAVE_UNSPECIFIED": 0, "CONVERSATION_TYPE_SAVE_GROUP": 1, "CONVERSATION_TYPE_SAVE_DM": 2, "CONVERSATION_TYPE_SAVE_SYNC": 3, } )
Enum value maps for ConversationTypeSave.
var ( GroupMessageKindSave_name = map[int32]string{ 0: "GROUP_MESSAGE_KIND_SAVE_UNSPECIFIED", 1: "GROUP_MESSAGE_KIND_SAVE_APPLICATION", 2: "GROUP_MESSAGE_KIND_SAVE_MEMBERSHIP_CHANGE", } GroupMessageKindSave_value = map[string]int32{ "GROUP_MESSAGE_KIND_SAVE_UNSPECIFIED": 0, "GROUP_MESSAGE_KIND_SAVE_APPLICATION": 1, "GROUP_MESSAGE_KIND_SAVE_MEMBERSHIP_CHANGE": 2, } )
Enum value maps for GroupMessageKindSave.
var ( DeliveryStatusSave_name = map[int32]string{ 0: "DELIVERY_STATUS_SAVE_UNSPECIFIED", 1: "DELIVERY_STATUS_SAVE_UNPUBLISHED", 2: "DELIVERY_STATUS_SAVE_PUBLISHED", 3: "DELIVERY_STATUS_SAVE_FAILED", } DeliveryStatusSave_value = map[string]int32{ "DELIVERY_STATUS_SAVE_UNSPECIFIED": 0, "DELIVERY_STATUS_SAVE_UNPUBLISHED": 1, "DELIVERY_STATUS_SAVE_PUBLISHED": 2, "DELIVERY_STATUS_SAVE_FAILED": 3, } )
Enum value maps for DeliveryStatusSave.
var ( ContentTypeSave_name = map[int32]string{ 0: "CONTENT_TYPE_SAVE_UNSPECIFIED", 1: "CONTENT_TYPE_SAVE_UNKNOWN", 2: "CONTENT_TYPE_SAVE_TEXT", 3: "CONTENT_TYPE_SAVE_GROUP_MEMBERSHIP_CHANGE", 4: "CONTENT_TYPE_SAVE_GROUP_UPDATED", 5: "CONTENT_TYPE_SAVE_REACTION", 6: "CONTENT_TYPE_SAVE_READ_RECEIPT", 7: "CONTENT_TYPE_SAVE_REPLY", 8: "CONTENT_TYPE_SAVE_ATTACHMENT", 9: "CONTENT_TYPE_SAVE_REMOTE_ATTACHMENT", 10: "CONTENT_TYPE_SAVE_TRANSACTION_REFERENCE", } ContentTypeSave_value = map[string]int32{ "CONTENT_TYPE_SAVE_UNSPECIFIED": 0, "CONTENT_TYPE_SAVE_UNKNOWN": 1, "CONTENT_TYPE_SAVE_TEXT": 2, "CONTENT_TYPE_SAVE_GROUP_MEMBERSHIP_CHANGE": 3, "CONTENT_TYPE_SAVE_GROUP_UPDATED": 4, "CONTENT_TYPE_SAVE_REACTION": 5, "CONTENT_TYPE_SAVE_READ_RECEIPT": 6, "CONTENT_TYPE_SAVE_REPLY": 7, "CONTENT_TYPE_SAVE_ATTACHMENT": 8, "CONTENT_TYPE_SAVE_REMOTE_ATTACHMENT": 9, "CONTENT_TYPE_SAVE_TRANSACTION_REFERENCE": 10, } )
Enum value maps for ContentTypeSave.
var File_device_sync_consent_backup_proto protoreflect.FileDescriptor
var File_device_sync_device_sync_proto protoreflect.FileDescriptor
var File_device_sync_group_backup_proto protoreflect.FileDescriptor
var File_device_sync_message_backup_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BackupElement ¶
type BackupElement struct {
// Types that are valid to be assigned to Element:
//
// *BackupElement_Metadata
// *BackupElement_Group
// *BackupElement_GroupMessage
// *BackupElement_Consent
Element isBackupElement_Element `protobuf_oneof:"element"`
// contains filtered or unexported fields
}
Union type representing everything that can be serialied and saved in a backup archive.
func (*BackupElement) Descriptor
deprecated
func (*BackupElement) Descriptor() ([]byte, []int)
Deprecated: Use BackupElement.ProtoReflect.Descriptor instead.
func (*BackupElement) GetConsent ¶
func (x *BackupElement) GetConsent() *ConsentSave
func (*BackupElement) GetElement ¶
func (x *BackupElement) GetElement() isBackupElement_Element
func (*BackupElement) GetGroup ¶
func (x *BackupElement) GetGroup() *GroupSave
func (*BackupElement) GetGroupMessage ¶
func (x *BackupElement) GetGroupMessage() *GroupMessageSave
func (*BackupElement) GetMetadata ¶
func (x *BackupElement) GetMetadata() *BackupMetadataSave
func (*BackupElement) ProtoMessage ¶
func (*BackupElement) ProtoMessage()
func (*BackupElement) ProtoReflect ¶
func (x *BackupElement) ProtoReflect() protoreflect.Message
func (*BackupElement) Reset ¶
func (x *BackupElement) Reset()
func (*BackupElement) String ¶
func (x *BackupElement) String() string
type BackupElementSelection ¶
type BackupElementSelection int32
Elements selected for backup
const ( BackupElementSelection_BACKUP_ELEMENT_SELECTION_UNSPECIFIED BackupElementSelection = 0 BackupElementSelection_BACKUP_ELEMENT_SELECTION_MESSAGES BackupElementSelection = 1 BackupElementSelection_BACKUP_ELEMENT_SELECTION_CONSENT BackupElementSelection = 2 )
func (BackupElementSelection) Descriptor ¶
func (BackupElementSelection) Descriptor() protoreflect.EnumDescriptor
func (BackupElementSelection) Enum ¶
func (x BackupElementSelection) Enum() *BackupElementSelection
func (BackupElementSelection) EnumDescriptor
deprecated
func (BackupElementSelection) EnumDescriptor() ([]byte, []int)
Deprecated: Use BackupElementSelection.Descriptor instead.
func (BackupElementSelection) Number ¶
func (x BackupElementSelection) Number() protoreflect.EnumNumber
func (BackupElementSelection) String ¶
func (x BackupElementSelection) String() string
func (BackupElementSelection) Type ¶
func (BackupElementSelection) Type() protoreflect.EnumType
type BackupElement_Consent ¶
type BackupElement_Consent struct {
Consent *ConsentSave `protobuf:"bytes,4,opt,name=consent,proto3,oneof"`
}
type BackupElement_Group ¶
type BackupElement_Group struct {
Group *GroupSave `protobuf:"bytes,2,opt,name=group,proto3,oneof"`
}
type BackupElement_GroupMessage ¶
type BackupElement_GroupMessage struct {
GroupMessage *GroupMessageSave `protobuf:"bytes,3,opt,name=group_message,json=groupMessage,proto3,oneof"`
}
type BackupElement_Metadata ¶
type BackupElement_Metadata struct {
Metadata *BackupMetadataSave `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}
type BackupMetadataSave ¶
type BackupMetadataSave struct {
Elements []BackupElementSelection `protobuf:"varint,2,rep,packed,name=elements,proto3,enum=xmtp.device_sync.BackupElementSelection" json:"elements,omitempty"`
ExportedAtNs int64 `protobuf:"varint,3,opt,name=exported_at_ns,json=exportedAtNs,proto3" json:"exported_at_ns,omitempty"`
StartNs *int64 `protobuf:"varint,4,opt,name=start_ns,json=startNs,proto3,oneof" json:"start_ns,omitempty"`
EndNs *int64 `protobuf:"varint,5,opt,name=end_ns,json=endNs,proto3,oneof" json:"end_ns,omitempty"`
// contains filtered or unexported fields
}
Proto representation of backup metadata (Backup version is explicitly missing - it's stored as a header.)
func (*BackupMetadataSave) Descriptor
deprecated
func (*BackupMetadataSave) Descriptor() ([]byte, []int)
Deprecated: Use BackupMetadataSave.ProtoReflect.Descriptor instead.
func (*BackupMetadataSave) GetElements ¶
func (x *BackupMetadataSave) GetElements() []BackupElementSelection
func (*BackupMetadataSave) GetEndNs ¶
func (x *BackupMetadataSave) GetEndNs() int64
func (*BackupMetadataSave) GetExportedAtNs ¶
func (x *BackupMetadataSave) GetExportedAtNs() int64
func (*BackupMetadataSave) GetStartNs ¶
func (x *BackupMetadataSave) GetStartNs() int64
func (*BackupMetadataSave) ProtoMessage ¶
func (*BackupMetadataSave) ProtoMessage()
func (*BackupMetadataSave) ProtoReflect ¶
func (x *BackupMetadataSave) ProtoReflect() protoreflect.Message
func (*BackupMetadataSave) Reset ¶
func (x *BackupMetadataSave) Reset()
func (*BackupMetadataSave) String ¶
func (x *BackupMetadataSave) String() string
type ConsentSave ¶
type ConsentSave struct {
EntityType ConsentTypeSave `` /* 145-byte string literal not displayed */
State ConsentStateSave `protobuf:"varint,2,opt,name=state,proto3,enum=xmtp.device_sync.consent_backup.ConsentStateSave" json:"state,omitempty"`
Entity string `protobuf:"bytes,3,opt,name=entity,proto3" json:"entity,omitempty"`
// contains filtered or unexported fields
}
Proto representation of a consent record save
func (*ConsentSave) Descriptor
deprecated
func (*ConsentSave) Descriptor() ([]byte, []int)
Deprecated: Use ConsentSave.ProtoReflect.Descriptor instead.
func (*ConsentSave) GetEntity ¶
func (x *ConsentSave) GetEntity() string
func (*ConsentSave) GetEntityType ¶
func (x *ConsentSave) GetEntityType() ConsentTypeSave
func (*ConsentSave) GetState ¶
func (x *ConsentSave) GetState() ConsentStateSave
func (*ConsentSave) ProtoMessage ¶
func (*ConsentSave) ProtoMessage()
func (*ConsentSave) ProtoReflect ¶
func (x *ConsentSave) ProtoReflect() protoreflect.Message
func (*ConsentSave) Reset ¶
func (x *ConsentSave) Reset()
func (*ConsentSave) String ¶
func (x *ConsentSave) String() string
type ConsentStateSave ¶
type ConsentStateSave int32
Consent record state
const ( ConsentStateSave_CONSENT_STATE_SAVE_UNSPECIFIED ConsentStateSave = 0 ConsentStateSave_CONSENT_STATE_SAVE_UNKNOWN ConsentStateSave = 1 ConsentStateSave_CONSENT_STATE_SAVE_ALLOWED ConsentStateSave = 2 ConsentStateSave_CONSENT_STATE_SAVE_DENIED ConsentStateSave = 3 )
func (ConsentStateSave) Descriptor ¶
func (ConsentStateSave) Descriptor() protoreflect.EnumDescriptor
func (ConsentStateSave) Enum ¶
func (x ConsentStateSave) Enum() *ConsentStateSave
func (ConsentStateSave) EnumDescriptor
deprecated
func (ConsentStateSave) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConsentStateSave.Descriptor instead.
func (ConsentStateSave) Number ¶
func (x ConsentStateSave) Number() protoreflect.EnumNumber
func (ConsentStateSave) String ¶
func (x ConsentStateSave) String() string
func (ConsentStateSave) Type ¶
func (ConsentStateSave) Type() protoreflect.EnumType
type ConsentTypeSave ¶
type ConsentTypeSave int32
Consent record type
const ( ConsentTypeSave_CONSENT_TYPE_SAVE_UNSPECIFIED ConsentTypeSave = 0 ConsentTypeSave_CONSENT_TYPE_SAVE_CONVERSATION_ID ConsentTypeSave = 1 ConsentTypeSave_CONSENT_TYPE_SAVE_INBOX_ID ConsentTypeSave = 2 ConsentTypeSave_CONSENT_TYPE_SAVE_ADDRESS ConsentTypeSave = 3 )
func (ConsentTypeSave) Descriptor ¶
func (ConsentTypeSave) Descriptor() protoreflect.EnumDescriptor
func (ConsentTypeSave) Enum ¶
func (x ConsentTypeSave) Enum() *ConsentTypeSave
func (ConsentTypeSave) EnumDescriptor
deprecated
func (ConsentTypeSave) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConsentTypeSave.Descriptor instead.
func (ConsentTypeSave) Number ¶
func (x ConsentTypeSave) Number() protoreflect.EnumNumber
func (ConsentTypeSave) String ¶
func (x ConsentTypeSave) String() string
func (ConsentTypeSave) Type ¶
func (ConsentTypeSave) Type() protoreflect.EnumType
type ContentTypeSave ¶
type ContentTypeSave int32
Group message content type
const ( ContentTypeSave_CONTENT_TYPE_SAVE_UNSPECIFIED ContentTypeSave = 0 ContentTypeSave_CONTENT_TYPE_SAVE_UNKNOWN ContentTypeSave = 1 ContentTypeSave_CONTENT_TYPE_SAVE_TEXT ContentTypeSave = 2 ContentTypeSave_CONTENT_TYPE_SAVE_GROUP_MEMBERSHIP_CHANGE ContentTypeSave = 3 ContentTypeSave_CONTENT_TYPE_SAVE_GROUP_UPDATED ContentTypeSave = 4 ContentTypeSave_CONTENT_TYPE_SAVE_REACTION ContentTypeSave = 5 ContentTypeSave_CONTENT_TYPE_SAVE_READ_RECEIPT ContentTypeSave = 6 ContentTypeSave_CONTENT_TYPE_SAVE_REPLY ContentTypeSave = 7 ContentTypeSave_CONTENT_TYPE_SAVE_ATTACHMENT ContentTypeSave = 8 ContentTypeSave_CONTENT_TYPE_SAVE_REMOTE_ATTACHMENT ContentTypeSave = 9 ContentTypeSave_CONTENT_TYPE_SAVE_TRANSACTION_REFERENCE ContentTypeSave = 10 )
func (ContentTypeSave) Descriptor ¶
func (ContentTypeSave) Descriptor() protoreflect.EnumDescriptor
func (ContentTypeSave) Enum ¶
func (x ContentTypeSave) Enum() *ContentTypeSave
func (ContentTypeSave) EnumDescriptor
deprecated
func (ContentTypeSave) EnumDescriptor() ([]byte, []int)
Deprecated: Use ContentTypeSave.Descriptor instead.
func (ContentTypeSave) Number ¶
func (x ContentTypeSave) Number() protoreflect.EnumNumber
func (ContentTypeSave) String ¶
func (x ContentTypeSave) String() string
func (ContentTypeSave) Type ¶
func (ContentTypeSave) Type() protoreflect.EnumType
type ConversationTypeSave ¶
type ConversationTypeSave int32
Conversation type
const ( ConversationTypeSave_CONVERSATION_TYPE_SAVE_UNSPECIFIED ConversationTypeSave = 0 ConversationTypeSave_CONVERSATION_TYPE_SAVE_GROUP ConversationTypeSave = 1 ConversationTypeSave_CONVERSATION_TYPE_SAVE_DM ConversationTypeSave = 2 ConversationTypeSave_CONVERSATION_TYPE_SAVE_SYNC ConversationTypeSave = 3 )
func (ConversationTypeSave) Descriptor ¶
func (ConversationTypeSave) Descriptor() protoreflect.EnumDescriptor
func (ConversationTypeSave) Enum ¶
func (x ConversationTypeSave) Enum() *ConversationTypeSave
func (ConversationTypeSave) EnumDescriptor
deprecated
func (ConversationTypeSave) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConversationTypeSave.Descriptor instead.
func (ConversationTypeSave) Number ¶
func (x ConversationTypeSave) Number() protoreflect.EnumNumber
func (ConversationTypeSave) String ¶
func (x ConversationTypeSave) String() string
func (ConversationTypeSave) Type ¶
func (ConversationTypeSave) Type() protoreflect.EnumType
type DeliveryStatusSave ¶
type DeliveryStatusSave int32
Group message delivery status
const ( DeliveryStatusSave_DELIVERY_STATUS_SAVE_UNSPECIFIED DeliveryStatusSave = 0 DeliveryStatusSave_DELIVERY_STATUS_SAVE_UNPUBLISHED DeliveryStatusSave = 1 DeliveryStatusSave_DELIVERY_STATUS_SAVE_PUBLISHED DeliveryStatusSave = 2 DeliveryStatusSave_DELIVERY_STATUS_SAVE_FAILED DeliveryStatusSave = 3 )
func (DeliveryStatusSave) Descriptor ¶
func (DeliveryStatusSave) Descriptor() protoreflect.EnumDescriptor
func (DeliveryStatusSave) Enum ¶
func (x DeliveryStatusSave) Enum() *DeliveryStatusSave
func (DeliveryStatusSave) EnumDescriptor
deprecated
func (DeliveryStatusSave) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeliveryStatusSave.Descriptor instead.
func (DeliveryStatusSave) Number ¶
func (x DeliveryStatusSave) Number() protoreflect.EnumNumber
func (DeliveryStatusSave) String ¶
func (x DeliveryStatusSave) String() string
func (DeliveryStatusSave) Type ¶
func (DeliveryStatusSave) Type() protoreflect.EnumType
type GroupMembershipStateSave ¶
type GroupMembershipStateSave int32
Group membership state
const ( GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_UNSPECIFIED GroupMembershipStateSave = 0 GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_ALLOWED GroupMembershipStateSave = 1 GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_REJECTED GroupMembershipStateSave = 2 GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_PENDING GroupMembershipStateSave = 3 )
func (GroupMembershipStateSave) Descriptor ¶
func (GroupMembershipStateSave) Descriptor() protoreflect.EnumDescriptor
func (GroupMembershipStateSave) Enum ¶
func (x GroupMembershipStateSave) Enum() *GroupMembershipStateSave
func (GroupMembershipStateSave) EnumDescriptor
deprecated
func (GroupMembershipStateSave) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupMembershipStateSave.Descriptor instead.
func (GroupMembershipStateSave) Number ¶
func (x GroupMembershipStateSave) Number() protoreflect.EnumNumber
func (GroupMembershipStateSave) String ¶
func (x GroupMembershipStateSave) String() string
func (GroupMembershipStateSave) Type ¶
func (GroupMembershipStateSave) Type() protoreflect.EnumType
type GroupMessageKindSave ¶
type GroupMessageKindSave int32
Group message kind
const ( GroupMessageKindSave_GROUP_MESSAGE_KIND_SAVE_UNSPECIFIED GroupMessageKindSave = 0 GroupMessageKindSave_GROUP_MESSAGE_KIND_SAVE_APPLICATION GroupMessageKindSave = 1 GroupMessageKindSave_GROUP_MESSAGE_KIND_SAVE_MEMBERSHIP_CHANGE GroupMessageKindSave = 2 )
func (GroupMessageKindSave) Descriptor ¶
func (GroupMessageKindSave) Descriptor() protoreflect.EnumDescriptor
func (GroupMessageKindSave) Enum ¶
func (x GroupMessageKindSave) Enum() *GroupMessageKindSave
func (GroupMessageKindSave) EnumDescriptor
deprecated
func (GroupMessageKindSave) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupMessageKindSave.Descriptor instead.
func (GroupMessageKindSave) Number ¶
func (x GroupMessageKindSave) Number() protoreflect.EnumNumber
func (GroupMessageKindSave) String ¶
func (x GroupMessageKindSave) String() string
func (GroupMessageKindSave) Type ¶
func (GroupMessageKindSave) Type() protoreflect.EnumType
type GroupMessageSave ¶
type GroupMessageSave struct {
Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
GroupId []byte `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
DecryptedMessageBytes []byte `` /* 126-byte string literal not displayed */
SentAtNs int64 `protobuf:"varint,4,opt,name=sent_at_ns,json=sentAtNs,proto3" json:"sent_at_ns,omitempty"`
Kind GroupMessageKindSave `protobuf:"varint,5,opt,name=kind,proto3,enum=xmtp.device_sync.message_backup.GroupMessageKindSave" json:"kind,omitempty"`
SenderInstallationId []byte `protobuf:"bytes,6,opt,name=sender_installation_id,json=senderInstallationId,proto3" json:"sender_installation_id,omitempty"`
SenderInboxId string `protobuf:"bytes,7,opt,name=sender_inbox_id,json=senderInboxId,proto3" json:"sender_inbox_id,omitempty"`
DeliveryStatus DeliveryStatusSave `` /* 160-byte string literal not displayed */
ContentType ContentTypeSave `` /* 148-byte string literal not displayed */
VersionMajor int32 `protobuf:"varint,10,opt,name=version_major,json=versionMajor,proto3" json:"version_major,omitempty"`
VersionMinor int32 `protobuf:"varint,11,opt,name=version_minor,json=versionMinor,proto3" json:"version_minor,omitempty"`
AuthorityId string `protobuf:"bytes,12,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"`
ReferenceId []byte `protobuf:"bytes,13,opt,name=reference_id,json=referenceId,proto3,oneof" json:"reference_id,omitempty"`
// contains filtered or unexported fields
}
Proto representation of a stored group message
func (*GroupMessageSave) Descriptor
deprecated
func (*GroupMessageSave) Descriptor() ([]byte, []int)
Deprecated: Use GroupMessageSave.ProtoReflect.Descriptor instead.
func (*GroupMessageSave) GetAuthorityId ¶
func (x *GroupMessageSave) GetAuthorityId() string
func (*GroupMessageSave) GetContentType ¶
func (x *GroupMessageSave) GetContentType() ContentTypeSave
func (*GroupMessageSave) GetDecryptedMessageBytes ¶
func (x *GroupMessageSave) GetDecryptedMessageBytes() []byte
func (*GroupMessageSave) GetDeliveryStatus ¶
func (x *GroupMessageSave) GetDeliveryStatus() DeliveryStatusSave
func (*GroupMessageSave) GetGroupId ¶
func (x *GroupMessageSave) GetGroupId() []byte
func (*GroupMessageSave) GetId ¶
func (x *GroupMessageSave) GetId() []byte
func (*GroupMessageSave) GetKind ¶
func (x *GroupMessageSave) GetKind() GroupMessageKindSave
func (*GroupMessageSave) GetReferenceId ¶
func (x *GroupMessageSave) GetReferenceId() []byte
func (*GroupMessageSave) GetSenderInboxId ¶
func (x *GroupMessageSave) GetSenderInboxId() string
func (*GroupMessageSave) GetSenderInstallationId ¶
func (x *GroupMessageSave) GetSenderInstallationId() []byte
func (*GroupMessageSave) GetSentAtNs ¶
func (x *GroupMessageSave) GetSentAtNs() int64
func (*GroupMessageSave) GetVersionMajor ¶
func (x *GroupMessageSave) GetVersionMajor() int32
func (*GroupMessageSave) GetVersionMinor ¶
func (x *GroupMessageSave) GetVersionMinor() int32
func (*GroupMessageSave) ProtoMessage ¶
func (*GroupMessageSave) ProtoMessage()
func (*GroupMessageSave) ProtoReflect ¶
func (x *GroupMessageSave) ProtoReflect() protoreflect.Message
func (*GroupMessageSave) Reset ¶
func (x *GroupMessageSave) Reset()
func (*GroupMessageSave) String ¶
func (x *GroupMessageSave) String() string
type GroupSave ¶
type GroupSave struct {
Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
CreatedAtNs int64 `protobuf:"varint,2,opt,name=created_at_ns,json=createdAtNs,proto3" json:"created_at_ns,omitempty"`
MembershipState GroupMembershipStateSave `` /* 167-byte string literal not displayed */
InstallationsLastChecked int64 `` /* 136-byte string literal not displayed */
AddedByInboxId string `protobuf:"bytes,5,opt,name=added_by_inbox_id,json=addedByInboxId,proto3" json:"added_by_inbox_id,omitempty"`
WelcomeId *int64 `protobuf:"varint,6,opt,name=welcome_id,json=welcomeId,proto3,oneof" json:"welcome_id,omitempty"`
RotatedAtNs int64 `protobuf:"varint,7,opt,name=rotated_at_ns,json=rotatedAtNs,proto3" json:"rotated_at_ns,omitempty"`
ConversationType ConversationTypeSave `` /* 166-byte string literal not displayed */
DmId *string `protobuf:"bytes,9,opt,name=dm_id,json=dmId,proto3,oneof" json:"dm_id,omitempty"`
LastMessageNs *int64 `protobuf:"varint,10,opt,name=last_message_ns,json=lastMessageNs,proto3,oneof" json:"last_message_ns,omitempty"`
MessageDisappearFromNs *int64 `` /* 139-byte string literal not displayed */
MessageDisappearInNs *int64 `` /* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
Proto representation of a stored group
func (*GroupSave) Descriptor
deprecated
func (*GroupSave) GetAddedByInboxId ¶
func (*GroupSave) GetConversationType ¶
func (x *GroupSave) GetConversationType() ConversationTypeSave
func (*GroupSave) GetCreatedAtNs ¶
func (*GroupSave) GetInstallationsLastChecked ¶
func (*GroupSave) GetLastMessageNs ¶
func (*GroupSave) GetMembershipState ¶
func (x *GroupSave) GetMembershipState() GroupMembershipStateSave
func (*GroupSave) GetMessageDisappearFromNs ¶
func (*GroupSave) GetMessageDisappearInNs ¶
func (*GroupSave) GetRotatedAtNs ¶
func (*GroupSave) GetWelcomeId ¶
func (*GroupSave) ProtoMessage ¶
func (*GroupSave) ProtoMessage()
func (*GroupSave) ProtoReflect ¶
func (x *GroupSave) ProtoReflect() protoreflect.Message