device_sync

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_device_sync_consent_backup_proto protoreflect.FileDescriptor
View Source
var File_device_sync_device_sync_proto protoreflect.FileDescriptor
View Source
var File_device_sync_group_backup_proto protoreflect.FileDescriptor
View Source
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) Enum

func (BackupElementSelection) EnumDescriptor deprecated

func (BackupElementSelection) EnumDescriptor() ([]byte, []int)

Deprecated: Use BackupElementSelection.Descriptor instead.

func (BackupElementSelection) Number

func (BackupElementSelection) String

func (x BackupElementSelection) String() string

func (BackupElementSelection) Type

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) Enum

func (ConsentStateSave) EnumDescriptor deprecated

func (ConsentStateSave) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConsentStateSave.Descriptor instead.

func (ConsentStateSave) Number

func (ConsentStateSave) String

func (x ConsentStateSave) String() string

func (ConsentStateSave) Type

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) Enum

func (x ConsentTypeSave) Enum() *ConsentTypeSave

func (ConsentTypeSave) EnumDescriptor deprecated

func (ConsentTypeSave) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConsentTypeSave.Descriptor instead.

func (ConsentTypeSave) Number

func (ConsentTypeSave) String

func (x ConsentTypeSave) String() string

func (ConsentTypeSave) Type

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) Enum

func (x ContentTypeSave) Enum() *ContentTypeSave

func (ContentTypeSave) EnumDescriptor deprecated

func (ContentTypeSave) EnumDescriptor() ([]byte, []int)

Deprecated: Use ContentTypeSave.Descriptor instead.

func (ContentTypeSave) Number

func (ContentTypeSave) String

func (x ContentTypeSave) String() string

func (ContentTypeSave) Type

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) Enum

func (ConversationTypeSave) EnumDescriptor deprecated

func (ConversationTypeSave) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConversationTypeSave.Descriptor instead.

func (ConversationTypeSave) Number

func (ConversationTypeSave) String

func (x ConversationTypeSave) String() string

func (ConversationTypeSave) Type

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) Enum

func (DeliveryStatusSave) EnumDescriptor deprecated

func (DeliveryStatusSave) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeliveryStatusSave.Descriptor instead.

func (DeliveryStatusSave) Number

func (DeliveryStatusSave) String

func (x DeliveryStatusSave) String() string

func (DeliveryStatusSave) Type

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) Enum

func (GroupMembershipStateSave) EnumDescriptor deprecated

func (GroupMembershipStateSave) EnumDescriptor() ([]byte, []int)

Deprecated: Use GroupMembershipStateSave.Descriptor instead.

func (GroupMembershipStateSave) Number

func (GroupMembershipStateSave) String

func (x GroupMembershipStateSave) String() string

func (GroupMembershipStateSave) Type

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) Enum

func (GroupMessageKindSave) EnumDescriptor deprecated

func (GroupMessageKindSave) EnumDescriptor() ([]byte, []int)

Deprecated: Use GroupMessageKindSave.Descriptor instead.

func (GroupMessageKindSave) Number

func (GroupMessageKindSave) String

func (x GroupMessageKindSave) String() string

func (GroupMessageKindSave) Type

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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use GroupSave.ProtoReflect.Descriptor instead.

func (*GroupSave) GetAddedByInboxId

func (x *GroupSave) GetAddedByInboxId() string

func (*GroupSave) GetConversationType

func (x *GroupSave) GetConversationType() ConversationTypeSave

func (*GroupSave) GetCreatedAtNs

func (x *GroupSave) GetCreatedAtNs() int64

func (*GroupSave) GetDmId

func (x *GroupSave) GetDmId() string

func (*GroupSave) GetId

func (x *GroupSave) GetId() []byte

func (*GroupSave) GetInstallationsLastChecked

func (x *GroupSave) GetInstallationsLastChecked() int64

func (*GroupSave) GetLastMessageNs

func (x *GroupSave) GetLastMessageNs() int64

func (*GroupSave) GetMembershipState

func (x *GroupSave) GetMembershipState() GroupMembershipStateSave

func (*GroupSave) GetMessageDisappearFromNs

func (x *GroupSave) GetMessageDisappearFromNs() int64

func (*GroupSave) GetMessageDisappearInNs

func (x *GroupSave) GetMessageDisappearInNs() int64

func (*GroupSave) GetRotatedAtNs

func (x *GroupSave) GetRotatedAtNs() int64

func (*GroupSave) GetWelcomeId

func (x *GroupSave) GetWelcomeId() int64

func (*GroupSave) ProtoMessage

func (*GroupSave) ProtoMessage()

func (*GroupSave) ProtoReflect

func (x *GroupSave) ProtoReflect() protoreflect.Message

func (*GroupSave) Reset

func (x *GroupSave) Reset()

func (*GroupSave) String

func (x *GroupSave) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL