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) GetEvent() *EventSave
- 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_Event
- 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 BackupOptions
- func (*BackupOptions) Descriptor() ([]byte, []int)deprecated
- func (x *BackupOptions) GetElements() []BackupElementSelection
- func (x *BackupOptions) GetEndNs() int64
- func (x *BackupOptions) GetStartNs() int64
- func (*BackupOptions) ProtoMessage()
- func (x *BackupOptions) ProtoReflect() protoreflect.Message
- func (x *BackupOptions) Reset()
- func (x *BackupOptions) String() string
- type ConsentSave
- func (*ConsentSave) Descriptor() ([]byte, []int)deprecated
- func (x *ConsentSave) GetConsentedAtNs() int64
- 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 DeviceSyncAcknowledge
- func (*DeviceSyncAcknowledge) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceSyncAcknowledge) GetRequestId() string
- func (*DeviceSyncAcknowledge) ProtoMessage()
- func (x *DeviceSyncAcknowledge) ProtoReflect() protoreflect.Message
- func (x *DeviceSyncAcknowledge) Reset()
- func (x *DeviceSyncAcknowledge) String() string
- type DeviceSyncContent
- func (*DeviceSyncContent) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceSyncContent) GetAcknowledge() *DeviceSyncAcknowledge
- func (x *DeviceSyncContent) GetContent() isDeviceSyncContent_Content
- func (x *DeviceSyncContent) GetPreferenceUpdates() *PreferenceUpdates
- func (x *DeviceSyncContent) GetReply() *DeviceSyncReply
- func (x *DeviceSyncContent) GetRequest() *DeviceSyncRequest
- func (*DeviceSyncContent) ProtoMessage()
- func (x *DeviceSyncContent) ProtoReflect() protoreflect.Message
- func (x *DeviceSyncContent) Reset()
- func (x *DeviceSyncContent) String() string
- type DeviceSyncContent_Acknowledge
- type DeviceSyncContent_PreferenceUpdates
- type DeviceSyncContent_Reply
- type DeviceSyncContent_Request
- type DeviceSyncKeyType
- func (*DeviceSyncKeyType) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceSyncKeyType) GetAes_256Gcm() []byte
- func (x *DeviceSyncKeyType) GetKey() isDeviceSyncKeyType_Key
- func (*DeviceSyncKeyType) ProtoMessage()
- func (x *DeviceSyncKeyType) ProtoReflect() protoreflect.Message
- func (x *DeviceSyncKeyType) Reset()
- func (x *DeviceSyncKeyType) String() string
- type DeviceSyncKeyType_Aes_256Gcm
- type DeviceSyncReply
- func (*DeviceSyncReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceSyncReply) GetEncryptionKey() *DeviceSyncKeyType
- func (x *DeviceSyncReply) GetKind() BackupElementSelectiondeprecated
- func (x *DeviceSyncReply) GetMetadata() *BackupMetadataSave
- func (x *DeviceSyncReply) GetRequestId() string
- func (x *DeviceSyncReply) GetTimestampNs() uint64deprecated
- func (x *DeviceSyncReply) GetUrl() string
- func (*DeviceSyncReply) ProtoMessage()
- func (x *DeviceSyncReply) ProtoReflect() protoreflect.Message
- func (x *DeviceSyncReply) Reset()
- func (x *DeviceSyncReply) String() string
- type DeviceSyncRequest
- func (*DeviceSyncRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceSyncRequest) GetKind() BackupElementSelectiondeprecated
- func (x *DeviceSyncRequest) GetOptions() *BackupOptions
- func (x *DeviceSyncRequest) GetPinCode() stringdeprecated
- func (x *DeviceSyncRequest) GetRequestId() string
- func (*DeviceSyncRequest) ProtoMessage()
- func (x *DeviceSyncRequest) ProtoReflect() protoreflect.Message
- func (x *DeviceSyncRequest) Reset()
- func (x *DeviceSyncRequest) String() string
- type EventLevelSave
- func (EventLevelSave) Descriptor() protoreflect.EnumDescriptor
- func (x EventLevelSave) Enum() *EventLevelSave
- func (EventLevelSave) EnumDescriptor() ([]byte, []int)deprecated
- func (x EventLevelSave) Number() protoreflect.EnumNumber
- func (x EventLevelSave) String() string
- func (EventLevelSave) Type() protoreflect.EnumType
- type EventSave
- func (*EventSave) Descriptor() ([]byte, []int)deprecated
- func (x *EventSave) GetCreatedAtNs() int64
- func (x *EventSave) GetDetails() []byte
- func (x *EventSave) GetEvent() string
- func (x *EventSave) GetGroupId() []byte
- func (x *EventSave) GetIcon() string
- func (x *EventSave) GetLevel() EventLevelSave
- func (*EventSave) ProtoMessage()
- func (x *EventSave) ProtoReflect() protoreflect.Message
- func (x *EventSave) Reset()
- func (x *EventSave) String() string
- 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) GetOriginatorId() int64
- func (x *GroupMessageSave) GetReferenceId() []byte
- func (x *GroupMessageSave) GetSenderInboxId() string
- func (x *GroupMessageSave) GetSenderInstallationId() []byte
- func (x *GroupMessageSave) GetSentAtNs() int64
- func (x *GroupMessageSave) GetSequenceId() 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) GetMetadata() *ImmutableMetadataSave
- func (x *GroupSave) GetMutableMetadata() *MutableMetadataSave
- func (x *GroupSave) GetPausedForVersion() string
- 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
- type HmacKeyUpdate
- func (*HmacKeyUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *HmacKeyUpdate) GetCycledAtNs() int64
- func (x *HmacKeyUpdate) GetKey() []byte
- func (*HmacKeyUpdate) ProtoMessage()
- func (x *HmacKeyUpdate) ProtoReflect() protoreflect.Message
- func (x *HmacKeyUpdate) Reset()
- func (x *HmacKeyUpdate) String() string
- type ImmutableMetadataSave
- func (*ImmutableMetadataSave) Descriptor() ([]byte, []int)deprecated
- func (x *ImmutableMetadataSave) GetCreatorInboxId() string
- func (*ImmutableMetadataSave) ProtoMessage()
- func (x *ImmutableMetadataSave) ProtoReflect() protoreflect.Message
- func (x *ImmutableMetadataSave) Reset()
- func (x *ImmutableMetadataSave) String() string
- type MutableMetadataSave
- func (*MutableMetadataSave) Descriptor() ([]byte, []int)deprecated
- func (x *MutableMetadataSave) GetAdminList() []string
- func (x *MutableMetadataSave) GetAttributes() map[string]string
- func (x *MutableMetadataSave) GetSuperAdminList() []string
- func (*MutableMetadataSave) ProtoMessage()
- func (x *MutableMetadataSave) ProtoReflect() protoreflect.Message
- func (x *MutableMetadataSave) Reset()
- func (x *MutableMetadataSave) String() string
- type PreferenceUpdate
- func (*PreferenceUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *PreferenceUpdate) GetConsent() *ConsentSave
- func (x *PreferenceUpdate) GetHmac() *HmacKeyUpdate
- func (x *PreferenceUpdate) GetUpdate() isPreferenceUpdate_Update
- func (*PreferenceUpdate) ProtoMessage()
- func (x *PreferenceUpdate) ProtoReflect() protoreflect.Message
- func (x *PreferenceUpdate) Reset()
- func (x *PreferenceUpdate) String() string
- type PreferenceUpdate_Consent
- type PreferenceUpdate_Hmac
- type PreferenceUpdates
- func (*PreferenceUpdates) Descriptor() ([]byte, []int)deprecated
- func (x *PreferenceUpdates) GetUpdates() []*PreferenceUpdate
- func (*PreferenceUpdates) ProtoMessage()
- func (x *PreferenceUpdates) ProtoReflect() protoreflect.Message
- func (x *PreferenceUpdates) Reset()
- func (x *PreferenceUpdates) String() string
- type V1UserPreferenceUpdate
- func (*V1UserPreferenceUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *V1UserPreferenceUpdate) GetContents() [][]byte
- func (*V1UserPreferenceUpdate) ProtoMessage()
- func (x *V1UserPreferenceUpdate) ProtoReflect() protoreflect.Message
- func (x *V1UserPreferenceUpdate) Reset()
- func (x *V1UserPreferenceUpdate) 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", 3: "BACKUP_ELEMENT_SELECTION_EVENT", } BackupElementSelection_value = map[string]int32{ "BACKUP_ELEMENT_SELECTION_UNSPECIFIED": 0, "BACKUP_ELEMENT_SELECTION_MESSAGES": 1, "BACKUP_ELEMENT_SELECTION_CONSENT": 2, "BACKUP_ELEMENT_SELECTION_EVENT": 3, } )
Enum value maps for BackupElementSelection.
var ( EventLevelSave_name = map[int32]string{ 0: "EVENT_LEVEL_SAVE_UNSPECIFIED", 1: "EVENT_LEVEL_SAVE_NONE", 2: "EVENT_LEVEL_SAVE_SUCCESS", 3: "EVENT_LEVEL_SAVE_WARN", 4: "EVENT_LEVEL_SAVE_ERROR", 5: "EVENT_LEVEL_SAVE_FAULT", } EventLevelSave_value = map[string]int32{ "EVENT_LEVEL_SAVE_UNSPECIFIED": 0, "EVENT_LEVEL_SAVE_NONE": 1, "EVENT_LEVEL_SAVE_SUCCESS": 2, "EVENT_LEVEL_SAVE_WARN": 3, "EVENT_LEVEL_SAVE_ERROR": 4, "EVENT_LEVEL_SAVE_FAULT": 5, } )
Enum value maps for EventLevelSave.
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", 4: "GROUP_MEMBERSHIP_STATE_SAVE_RESTORED", 5: "GROUP_MEMBERSHIP_STATE_SAVE_PENDING_REMOVE", } 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, "GROUP_MEMBERSHIP_STATE_SAVE_RESTORED": 4, "GROUP_MEMBERSHIP_STATE_SAVE_PENDING_REMOVE": 5, } )
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_content_proto protoreflect.FileDescriptor
var File_device_sync_device_sync_proto protoreflect.FileDescriptor
var File_device_sync_event_backup_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
// *BackupElement_Event
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) GetEvent ¶ added in v1.0.1
func (x *BackupElement) GetEvent() *EventSave
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 BackupElementSelection_BACKUP_ELEMENT_SELECTION_EVENT BackupElementSelection = 3 )
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_Event ¶ added in v1.0.1
type BackupElement_Event struct {
Event *EventSave `protobuf:"bytes,5,opt,name=event,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 BackupOptions ¶
type BackupOptions struct {
Elements []BackupElementSelection `protobuf:"varint,1,rep,packed,name=elements,proto3,enum=xmtp.device_sync.BackupElementSelection" json:"elements,omitempty"`
StartNs *int64 `protobuf:"varint,2,opt,name=start_ns,json=startNs,proto3,oneof" json:"start_ns,omitempty"`
EndNs *int64 `protobuf:"varint,3,opt,name=end_ns,json=endNs,proto3,oneof" json:"end_ns,omitempty"`
// contains filtered or unexported fields
}
Backup Options
func (*BackupOptions) Descriptor
deprecated
func (*BackupOptions) Descriptor() ([]byte, []int)
Deprecated: Use BackupOptions.ProtoReflect.Descriptor instead.
func (*BackupOptions) GetElements ¶
func (x *BackupOptions) GetElements() []BackupElementSelection
func (*BackupOptions) GetEndNs ¶
func (x *BackupOptions) GetEndNs() int64
func (*BackupOptions) GetStartNs ¶
func (x *BackupOptions) GetStartNs() int64
func (*BackupOptions) ProtoMessage ¶
func (*BackupOptions) ProtoMessage()
func (*BackupOptions) ProtoReflect ¶
func (x *BackupOptions) ProtoReflect() protoreflect.Message
func (*BackupOptions) Reset ¶
func (x *BackupOptions) Reset()
func (*BackupOptions) String ¶
func (x *BackupOptions) 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"`
ConsentedAtNs int64 `protobuf:"varint,4,opt,name=consented_at_ns,json=consentedAtNs,proto3" json:"consented_at_ns,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) GetConsentedAtNs ¶
func (x *ConsentSave) GetConsentedAtNs() int64
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 // Deprecated: Marked as deprecated in device_sync/consent_backup.proto. 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 DeviceSyncAcknowledge ¶
type DeviceSyncAcknowledge struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Acknowledges a request
func (*DeviceSyncAcknowledge) Descriptor
deprecated
func (*DeviceSyncAcknowledge) Descriptor() ([]byte, []int)
Deprecated: Use DeviceSyncAcknowledge.ProtoReflect.Descriptor instead.
func (*DeviceSyncAcknowledge) GetRequestId ¶
func (x *DeviceSyncAcknowledge) GetRequestId() string
func (*DeviceSyncAcknowledge) ProtoMessage ¶
func (*DeviceSyncAcknowledge) ProtoMessage()
func (*DeviceSyncAcknowledge) ProtoReflect ¶
func (x *DeviceSyncAcknowledge) ProtoReflect() protoreflect.Message
func (*DeviceSyncAcknowledge) Reset ¶
func (x *DeviceSyncAcknowledge) Reset()
func (*DeviceSyncAcknowledge) String ¶
func (x *DeviceSyncAcknowledge) String() string
type DeviceSyncContent ¶
type DeviceSyncContent struct {
// Types that are valid to be assigned to Content:
//
// *DeviceSyncContent_Request
// *DeviceSyncContent_Acknowledge
// *DeviceSyncContent_Reply
// *DeviceSyncContent_PreferenceUpdates
Content isDeviceSyncContent_Content `protobuf_oneof:"content"`
// contains filtered or unexported fields
}
All potential device sync group messages
func (*DeviceSyncContent) Descriptor
deprecated
func (*DeviceSyncContent) Descriptor() ([]byte, []int)
Deprecated: Use DeviceSyncContent.ProtoReflect.Descriptor instead.
func (*DeviceSyncContent) GetAcknowledge ¶
func (x *DeviceSyncContent) GetAcknowledge() *DeviceSyncAcknowledge
func (*DeviceSyncContent) GetContent ¶
func (x *DeviceSyncContent) GetContent() isDeviceSyncContent_Content
func (*DeviceSyncContent) GetPreferenceUpdates ¶
func (x *DeviceSyncContent) GetPreferenceUpdates() *PreferenceUpdates
func (*DeviceSyncContent) GetReply ¶
func (x *DeviceSyncContent) GetReply() *DeviceSyncReply
func (*DeviceSyncContent) GetRequest ¶
func (x *DeviceSyncContent) GetRequest() *DeviceSyncRequest
func (*DeviceSyncContent) ProtoMessage ¶
func (*DeviceSyncContent) ProtoMessage()
func (*DeviceSyncContent) ProtoReflect ¶
func (x *DeviceSyncContent) ProtoReflect() protoreflect.Message
func (*DeviceSyncContent) Reset ¶
func (x *DeviceSyncContent) Reset()
func (*DeviceSyncContent) String ¶
func (x *DeviceSyncContent) String() string
type DeviceSyncContent_Acknowledge ¶
type DeviceSyncContent_Acknowledge struct {
Acknowledge *DeviceSyncAcknowledge `protobuf:"bytes,2,opt,name=acknowledge,proto3,oneof"`
}
type DeviceSyncContent_PreferenceUpdates ¶
type DeviceSyncContent_PreferenceUpdates struct {
PreferenceUpdates *PreferenceUpdates `protobuf:"bytes,4,opt,name=preference_updates,json=preferenceUpdates,proto3,oneof"`
}
type DeviceSyncContent_Reply ¶
type DeviceSyncContent_Reply struct {
Reply *DeviceSyncReply `protobuf:"bytes,3,opt,name=reply,proto3,oneof"`
}
type DeviceSyncContent_Request ¶
type DeviceSyncContent_Request struct {
Request *DeviceSyncRequest `protobuf:"bytes,1,opt,name=request,proto3,oneof"`
}
type DeviceSyncKeyType ¶
type DeviceSyncKeyType struct {
// Types that are valid to be assigned to Key:
//
// *DeviceSyncKeyType_Aes_256Gcm
Key isDeviceSyncKeyType_Key `protobuf_oneof:"key"`
// contains filtered or unexported fields
}
Key used to encrypt the message-bundle
func (*DeviceSyncKeyType) Descriptor
deprecated
func (*DeviceSyncKeyType) Descriptor() ([]byte, []int)
Deprecated: Use DeviceSyncKeyType.ProtoReflect.Descriptor instead.
func (*DeviceSyncKeyType) GetAes_256Gcm ¶
func (x *DeviceSyncKeyType) GetAes_256Gcm() []byte
func (*DeviceSyncKeyType) GetKey ¶
func (x *DeviceSyncKeyType) GetKey() isDeviceSyncKeyType_Key
func (*DeviceSyncKeyType) ProtoMessage ¶
func (*DeviceSyncKeyType) ProtoMessage()
func (*DeviceSyncKeyType) ProtoReflect ¶
func (x *DeviceSyncKeyType) ProtoReflect() protoreflect.Message
func (*DeviceSyncKeyType) Reset ¶
func (x *DeviceSyncKeyType) Reset()
func (*DeviceSyncKeyType) String ¶
func (x *DeviceSyncKeyType) String() string
type DeviceSyncKeyType_Aes_256Gcm ¶
type DeviceSyncKeyType_Aes_256Gcm struct {
Aes_256Gcm []byte `protobuf:"bytes,1,opt,name=aes_256_gcm,json=aes256Gcm,proto3,oneof"`
}
type DeviceSyncReply ¶
type DeviceSyncReply struct {
// Must match an existing request_id from a message history request
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Where the messages can be retrieved from
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Encryption key
EncryptionKey *DeviceSyncKeyType `protobuf:"bytes,3,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"`
// ns unix timestamp of when the reply was sent
//
// Deprecated: Marked as deprecated in device_sync/content.proto.
TimestampNs uint64 `protobuf:"varint,4,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
// request kind
//
// Deprecated: Marked as deprecated in device_sync/content.proto.
Kind BackupElementSelection `protobuf:"varint,5,opt,name=kind,proto3,enum=xmtp.device_sync.BackupElementSelection" json:"kind,omitempty"`
// Metadata about the backup
Metadata *BackupMetadataSave `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
Pre-existing installation id capable of supplying a sync payload sends this reply
func (*DeviceSyncReply) Descriptor
deprecated
func (*DeviceSyncReply) Descriptor() ([]byte, []int)
Deprecated: Use DeviceSyncReply.ProtoReflect.Descriptor instead.
func (*DeviceSyncReply) GetEncryptionKey ¶
func (x *DeviceSyncReply) GetEncryptionKey() *DeviceSyncKeyType
func (*DeviceSyncReply) GetKind
deprecated
func (x *DeviceSyncReply) GetKind() BackupElementSelection
Deprecated: Marked as deprecated in device_sync/content.proto.
func (*DeviceSyncReply) GetMetadata ¶
func (x *DeviceSyncReply) GetMetadata() *BackupMetadataSave
func (*DeviceSyncReply) GetRequestId ¶
func (x *DeviceSyncReply) GetRequestId() string
func (*DeviceSyncReply) GetTimestampNs
deprecated
func (x *DeviceSyncReply) GetTimestampNs() uint64
Deprecated: Marked as deprecated in device_sync/content.proto.
func (*DeviceSyncReply) GetUrl ¶
func (x *DeviceSyncReply) GetUrl() string
func (*DeviceSyncReply) ProtoMessage ¶
func (*DeviceSyncReply) ProtoMessage()
func (*DeviceSyncReply) ProtoReflect ¶
func (x *DeviceSyncReply) ProtoReflect() protoreflect.Message
func (*DeviceSyncReply) Reset ¶
func (x *DeviceSyncReply) Reset()
func (*DeviceSyncReply) String ¶
func (x *DeviceSyncReply) String() string
type DeviceSyncRequest ¶
type DeviceSyncRequest struct {
// Unique identifier for each request
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Deprecated: Marked as deprecated in device_sync/content.proto.
PinCode string `protobuf:"bytes,2,opt,name=pin_code,json=pinCode,proto3" json:"pin_code,omitempty"`
// Deprecated: Marked as deprecated in device_sync/content.proto.
Kind BackupElementSelection `protobuf:"varint,3,opt,name=kind,proto3,enum=xmtp.device_sync.BackupElementSelection" json:"kind,omitempty"`
Options *BackupOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
Initiator or new installation id requesting a sync payload send a request
func (*DeviceSyncRequest) Descriptor
deprecated
func (*DeviceSyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeviceSyncRequest.ProtoReflect.Descriptor instead.
func (*DeviceSyncRequest) GetKind
deprecated
func (x *DeviceSyncRequest) GetKind() BackupElementSelection
Deprecated: Marked as deprecated in device_sync/content.proto.
func (*DeviceSyncRequest) GetOptions ¶
func (x *DeviceSyncRequest) GetOptions() *BackupOptions
func (*DeviceSyncRequest) GetPinCode
deprecated
func (x *DeviceSyncRequest) GetPinCode() string
Deprecated: Marked as deprecated in device_sync/content.proto.
func (*DeviceSyncRequest) GetRequestId ¶
func (x *DeviceSyncRequest) GetRequestId() string
func (*DeviceSyncRequest) ProtoMessage ¶
func (*DeviceSyncRequest) ProtoMessage()
func (*DeviceSyncRequest) ProtoReflect ¶
func (x *DeviceSyncRequest) ProtoReflect() protoreflect.Message
func (*DeviceSyncRequest) Reset ¶
func (x *DeviceSyncRequest) Reset()
func (*DeviceSyncRequest) String ¶
func (x *DeviceSyncRequest) String() string
type EventLevelSave ¶ added in v1.0.1
type EventLevelSave int32
const ( EventLevelSave_EVENT_LEVEL_SAVE_UNSPECIFIED EventLevelSave = 0 EventLevelSave_EVENT_LEVEL_SAVE_NONE EventLevelSave = 1 EventLevelSave_EVENT_LEVEL_SAVE_SUCCESS EventLevelSave = 2 EventLevelSave_EVENT_LEVEL_SAVE_WARN EventLevelSave = 3 EventLevelSave_EVENT_LEVEL_SAVE_ERROR EventLevelSave = 4 EventLevelSave_EVENT_LEVEL_SAVE_FAULT EventLevelSave = 5 )
func (EventLevelSave) Descriptor ¶ added in v1.0.1
func (EventLevelSave) Descriptor() protoreflect.EnumDescriptor
func (EventLevelSave) Enum ¶ added in v1.0.1
func (x EventLevelSave) Enum() *EventLevelSave
func (EventLevelSave) EnumDescriptor
deprecated
added in
v1.0.1
func (EventLevelSave) EnumDescriptor() ([]byte, []int)
Deprecated: Use EventLevelSave.Descriptor instead.
func (EventLevelSave) Number ¶ added in v1.0.1
func (x EventLevelSave) Number() protoreflect.EnumNumber
func (EventLevelSave) String ¶ added in v1.0.1
func (x EventLevelSave) String() string
func (EventLevelSave) Type ¶ added in v1.0.1
func (EventLevelSave) Type() protoreflect.EnumType
type EventSave ¶ added in v1.0.1
type EventSave struct {
CreatedAtNs int64 `protobuf:"varint,1,opt,name=created_at_ns,json=createdAtNs,proto3" json:"created_at_ns,omitempty"`
Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
Details []byte `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
GroupId []byte `protobuf:"bytes,4,opt,name=group_id,json=groupId,proto3,oneof" json:"group_id,omitempty"`
Level EventLevelSave `protobuf:"varint,5,opt,name=level,proto3,enum=xmtp.device_sync.event_backup.EventLevelSave" json:"level,omitempty"`
Icon *string `protobuf:"bytes,6,opt,name=icon,proto3,oneof" json:"icon,omitempty"`
// contains filtered or unexported fields
}
Proto representation of a client record save
func (*EventSave) Descriptor
deprecated
added in
v1.0.1
func (*EventSave) GetCreatedAtNs ¶ added in v1.0.1
func (*EventSave) GetDetails ¶ added in v1.0.1
func (*EventSave) GetGroupId ¶ added in v1.0.1
func (*EventSave) GetLevel ¶ added in v1.0.1
func (x *EventSave) GetLevel() EventLevelSave
func (*EventSave) ProtoMessage ¶ added in v1.0.1
func (*EventSave) ProtoMessage()
func (*EventSave) ProtoReflect ¶ added in v1.0.1
func (x *EventSave) ProtoReflect() protoreflect.Message
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 // A group is marked as this state when it is restored // from a backup. This is a non-functional archive state // that can be reactivated when the user is re-added to // the group. GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_RESTORED GroupMembershipStateSave = 4 GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_PENDING_REMOVE GroupMembershipStateSave = 5 )
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"`
SequenceId *int64 `protobuf:"varint,14,opt,name=sequence_id,json=sequenceId,proto3,oneof" json:"sequence_id,omitempty"`
OriginatorId *int64 `protobuf:"varint,15,opt,name=originator_id,json=originatorId,proto3,oneof" json:"originator_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) GetOriginatorId ¶
func (x *GroupMessageSave) GetOriginatorId() int64
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) GetSequenceId ¶
func (x *GroupMessageSave) GetSequenceId() 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 */
// metadata fields
Metadata *ImmutableMetadataSave `protobuf:"bytes,13,opt,name=metadata,proto3" json:"metadata,omitempty"`
MutableMetadata *MutableMetadataSave `protobuf:"bytes,14,opt,name=mutable_metadata,json=mutableMetadata,proto3" json:"mutable_metadata,omitempty"`
PausedForVersion *string `protobuf:"bytes,15,opt,name=paused_for_version,json=pausedForVersion,proto3,oneof" json:"paused_for_version,omitempty"`
// 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) GetMetadata ¶
func (x *GroupSave) GetMetadata() *ImmutableMetadataSave
func (*GroupSave) GetMutableMetadata ¶
func (x *GroupSave) GetMutableMetadata() *MutableMetadataSave
func (*GroupSave) GetPausedForVersion ¶
func (*GroupSave) GetRotatedAtNs ¶
func (*GroupSave) GetWelcomeId ¶
func (*GroupSave) ProtoMessage ¶
func (*GroupSave) ProtoMessage()
func (*GroupSave) ProtoReflect ¶
func (x *GroupSave) ProtoReflect() protoreflect.Message
type HmacKeyUpdate ¶
type HmacKeyUpdate struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
CycledAtNs int64 `protobuf:"varint,2,opt,name=cycled_at_ns,json=cycledAtNs,proto3" json:"cycled_at_ns,omitempty"`
// contains filtered or unexported fields
}
Hmac key update
func (*HmacKeyUpdate) Descriptor
deprecated
func (*HmacKeyUpdate) Descriptor() ([]byte, []int)
Deprecated: Use HmacKeyUpdate.ProtoReflect.Descriptor instead.
func (*HmacKeyUpdate) GetCycledAtNs ¶
func (x *HmacKeyUpdate) GetCycledAtNs() int64
func (*HmacKeyUpdate) GetKey ¶
func (x *HmacKeyUpdate) GetKey() []byte
func (*HmacKeyUpdate) ProtoMessage ¶
func (*HmacKeyUpdate) ProtoMessage()
func (*HmacKeyUpdate) ProtoReflect ¶
func (x *HmacKeyUpdate) ProtoReflect() protoreflect.Message
func (*HmacKeyUpdate) Reset ¶
func (x *HmacKeyUpdate) Reset()
func (*HmacKeyUpdate) String ¶
func (x *HmacKeyUpdate) String() string
type ImmutableMetadataSave ¶
type ImmutableMetadataSave struct {
CreatorInboxId string `protobuf:"bytes,1,opt,name=creator_inbox_id,json=creatorInboxId,proto3" json:"creator_inbox_id,omitempty"`
// contains filtered or unexported fields
}
A Group's immutable metadata
func (*ImmutableMetadataSave) Descriptor
deprecated
func (*ImmutableMetadataSave) Descriptor() ([]byte, []int)
Deprecated: Use ImmutableMetadataSave.ProtoReflect.Descriptor instead.
func (*ImmutableMetadataSave) GetCreatorInboxId ¶
func (x *ImmutableMetadataSave) GetCreatorInboxId() string
func (*ImmutableMetadataSave) ProtoMessage ¶
func (*ImmutableMetadataSave) ProtoMessage()
func (*ImmutableMetadataSave) ProtoReflect ¶
func (x *ImmutableMetadataSave) ProtoReflect() protoreflect.Message
func (*ImmutableMetadataSave) Reset ¶
func (x *ImmutableMetadataSave) Reset()
func (*ImmutableMetadataSave) String ¶
func (x *ImmutableMetadataSave) String() string
type MutableMetadataSave ¶
type MutableMetadataSave struct {
Attributes map[string]string `` /* 147-byte string literal not displayed */
AdminList []string `protobuf:"bytes,2,rep,name=admin_list,json=adminList,proto3" json:"admin_list,omitempty"`
SuperAdminList []string `protobuf:"bytes,3,rep,name=super_admin_list,json=superAdminList,proto3" json:"super_admin_list,omitempty"`
// contains filtered or unexported fields
}
A Groups's mutable metadata
func (*MutableMetadataSave) Descriptor
deprecated
func (*MutableMetadataSave) Descriptor() ([]byte, []int)
Deprecated: Use MutableMetadataSave.ProtoReflect.Descriptor instead.
func (*MutableMetadataSave) GetAdminList ¶
func (x *MutableMetadataSave) GetAdminList() []string
func (*MutableMetadataSave) GetAttributes ¶
func (x *MutableMetadataSave) GetAttributes() map[string]string
func (*MutableMetadataSave) GetSuperAdminList ¶
func (x *MutableMetadataSave) GetSuperAdminList() []string
func (*MutableMetadataSave) ProtoMessage ¶
func (*MutableMetadataSave) ProtoMessage()
func (*MutableMetadataSave) ProtoReflect ¶
func (x *MutableMetadataSave) ProtoReflect() protoreflect.Message
func (*MutableMetadataSave) Reset ¶
func (x *MutableMetadataSave) Reset()
func (*MutableMetadataSave) String ¶
func (x *MutableMetadataSave) String() string
type PreferenceUpdate ¶
type PreferenceUpdate struct {
// Types that are valid to be assigned to Update:
//
// *PreferenceUpdate_Consent
// *PreferenceUpdate_Hmac
Update isPreferenceUpdate_Update `protobuf_oneof:"update"`
// contains filtered or unexported fields
}
Preference update
func (*PreferenceUpdate) Descriptor
deprecated
func (*PreferenceUpdate) Descriptor() ([]byte, []int)
Deprecated: Use PreferenceUpdate.ProtoReflect.Descriptor instead.
func (*PreferenceUpdate) GetConsent ¶
func (x *PreferenceUpdate) GetConsent() *ConsentSave
func (*PreferenceUpdate) GetHmac ¶
func (x *PreferenceUpdate) GetHmac() *HmacKeyUpdate
func (*PreferenceUpdate) GetUpdate ¶
func (x *PreferenceUpdate) GetUpdate() isPreferenceUpdate_Update
func (*PreferenceUpdate) ProtoMessage ¶
func (*PreferenceUpdate) ProtoMessage()
func (*PreferenceUpdate) ProtoReflect ¶
func (x *PreferenceUpdate) ProtoReflect() protoreflect.Message
func (*PreferenceUpdate) Reset ¶
func (x *PreferenceUpdate) Reset()
func (*PreferenceUpdate) String ¶
func (x *PreferenceUpdate) String() string
type PreferenceUpdate_Consent ¶
type PreferenceUpdate_Consent struct {
Consent *ConsentSave `protobuf:"bytes,1,opt,name=consent,proto3,oneof"`
}
type PreferenceUpdate_Hmac ¶
type PreferenceUpdate_Hmac struct {
Hmac *HmacKeyUpdate `protobuf:"bytes,2,opt,name=hmac,proto3,oneof"`
}
type PreferenceUpdates ¶
type PreferenceUpdates struct {
Updates []*PreferenceUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
// contains filtered or unexported fields
}
Preference updates
func (*PreferenceUpdates) Descriptor
deprecated
func (*PreferenceUpdates) Descriptor() ([]byte, []int)
Deprecated: Use PreferenceUpdates.ProtoReflect.Descriptor instead.
func (*PreferenceUpdates) GetUpdates ¶
func (x *PreferenceUpdates) GetUpdates() []*PreferenceUpdate
func (*PreferenceUpdates) ProtoMessage ¶
func (*PreferenceUpdates) ProtoMessage()
func (*PreferenceUpdates) ProtoReflect ¶
func (x *PreferenceUpdates) ProtoReflect() protoreflect.Message
func (*PreferenceUpdates) Reset ¶
func (x *PreferenceUpdates) Reset()
func (*PreferenceUpdates) String ¶
func (x *PreferenceUpdates) String() string
type V1UserPreferenceUpdate ¶
type V1UserPreferenceUpdate struct {
Contents [][]byte `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"`
// contains filtered or unexported fields
}
func (*V1UserPreferenceUpdate) Descriptor
deprecated
func (*V1UserPreferenceUpdate) Descriptor() ([]byte, []int)
Deprecated: Use V1UserPreferenceUpdate.ProtoReflect.Descriptor instead.
func (*V1UserPreferenceUpdate) GetContents ¶
func (x *V1UserPreferenceUpdate) GetContents() [][]byte
func (*V1UserPreferenceUpdate) ProtoMessage ¶
func (*V1UserPreferenceUpdate) ProtoMessage()
func (*V1UserPreferenceUpdate) ProtoReflect ¶
func (x *V1UserPreferenceUpdate) ProtoReflect() protoreflect.Message
func (*V1UserPreferenceUpdate) Reset ¶
func (x *V1UserPreferenceUpdate) Reset()
func (*V1UserPreferenceUpdate) String ¶
func (x *V1UserPreferenceUpdate) String() string