2023-06-30 09:54:08 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
2023-09-16 14:39:51 +00:00
|
|
|
// protoc-gen-go v1.31.0
|
2023-06-30 09:54:08 +00:00
|
|
|
// protoc v3.21.12
|
|
|
|
// source: events.proto
|
|
|
|
|
2023-07-17 13:51:31 +00:00
|
|
|
package gmproto
|
2023-06-30 09:54:08 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
|
|
|
)
|
|
|
|
|
2023-07-16 23:06:35 +00:00
|
|
|
import _ "embed"
|
|
|
|
|
2023-06-30 09:54:08 +00:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
type AlertType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
AlertType_ALERT_TYPE_UNKNOWN AlertType = 0
|
|
|
|
AlertType_BROWSER_INACTIVE AlertType = 1 // Emitted whenever browser connection becomes inactive
|
|
|
|
AlertType_BROWSER_ACTIVE AlertType = 2 // Emitted whenever a new browser session is created
|
|
|
|
AlertType_MOBILE_DATA_CONNECTION AlertType = 3 // Emitted when the paired device connects to data
|
|
|
|
AlertType_MOBILE_WIFI_CONNECTION AlertType = 4 // Emitted when the paired device connects to wifi
|
|
|
|
AlertType_MOBILE_BATTERY_LOW AlertType = 5 // Emitted if the paired device reaches low battery
|
|
|
|
AlertType_MOBILE_BATTERY_RESTORED AlertType = 6 // Emitted if the paired device has restored battery enough to not be considered low
|
|
|
|
AlertType_BROWSER_INACTIVE_FROM_TIMEOUT AlertType = 7 // Emitted whenever browser connection becomes inactive due to timeout
|
|
|
|
AlertType_BROWSER_INACTIVE_FROM_INACTIVITY AlertType = 8 // Emitted whenever browser connection becomes inactive due to inactivity
|
|
|
|
AlertType_RCS_CONNECTION AlertType = 9 // Emitted whenever RCS connection has been established successfully
|
|
|
|
AlertType_OBSERVER_REGISTERED AlertType = 10 // Unknown
|
|
|
|
AlertType_MOBILE_DATABASE_SYNCING AlertType = 11 // Emitted whenever the paired device is attempting to sync db
|
|
|
|
AlertType_MOBILE_DATABASE_SYNC_COMPLETE AlertType = 12 // Emitted whenever the paired device has completed the db sync
|
|
|
|
AlertType_MOBILE_DATABASE_SYNC_STARTED AlertType = 13 // Emitted whenever the paired device has begun syncing the db
|
|
|
|
AlertType_MOBILE_DATABASE_PARTIAL_SYNC_COMPLETED AlertType = 14 // Emitted whenever the paired device has successfully synced a chunk of the db
|
|
|
|
AlertType_MOBILE_DATABASE_PARTIAL_SYNC_STARTED AlertType = 15 // Emitted whenever the paired device has begun syncing a chunk of the db
|
|
|
|
AlertType_CONTACTS_REFRESH_STARTED AlertType = 16 // Emitted whenever the paired device has begun refreshing contacts
|
|
|
|
AlertType_CONTACTS_REFRESH_COMPLETED AlertType = 17 // Emitted whenever the paired device has successfully refreshed contacts
|
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for AlertType.
|
|
|
|
var (
|
|
|
|
AlertType_name = map[int32]string{
|
|
|
|
0: "ALERT_TYPE_UNKNOWN",
|
|
|
|
1: "BROWSER_INACTIVE",
|
|
|
|
2: "BROWSER_ACTIVE",
|
|
|
|
3: "MOBILE_DATA_CONNECTION",
|
|
|
|
4: "MOBILE_WIFI_CONNECTION",
|
|
|
|
5: "MOBILE_BATTERY_LOW",
|
|
|
|
6: "MOBILE_BATTERY_RESTORED",
|
|
|
|
7: "BROWSER_INACTIVE_FROM_TIMEOUT",
|
|
|
|
8: "BROWSER_INACTIVE_FROM_INACTIVITY",
|
|
|
|
9: "RCS_CONNECTION",
|
|
|
|
10: "OBSERVER_REGISTERED",
|
|
|
|
11: "MOBILE_DATABASE_SYNCING",
|
|
|
|
12: "MOBILE_DATABASE_SYNC_COMPLETE",
|
|
|
|
13: "MOBILE_DATABASE_SYNC_STARTED",
|
|
|
|
14: "MOBILE_DATABASE_PARTIAL_SYNC_COMPLETED",
|
|
|
|
15: "MOBILE_DATABASE_PARTIAL_SYNC_STARTED",
|
|
|
|
16: "CONTACTS_REFRESH_STARTED",
|
|
|
|
17: "CONTACTS_REFRESH_COMPLETED",
|
|
|
|
}
|
|
|
|
AlertType_value = map[string]int32{
|
|
|
|
"ALERT_TYPE_UNKNOWN": 0,
|
|
|
|
"BROWSER_INACTIVE": 1,
|
|
|
|
"BROWSER_ACTIVE": 2,
|
|
|
|
"MOBILE_DATA_CONNECTION": 3,
|
|
|
|
"MOBILE_WIFI_CONNECTION": 4,
|
|
|
|
"MOBILE_BATTERY_LOW": 5,
|
|
|
|
"MOBILE_BATTERY_RESTORED": 6,
|
|
|
|
"BROWSER_INACTIVE_FROM_TIMEOUT": 7,
|
|
|
|
"BROWSER_INACTIVE_FROM_INACTIVITY": 8,
|
|
|
|
"RCS_CONNECTION": 9,
|
|
|
|
"OBSERVER_REGISTERED": 10,
|
|
|
|
"MOBILE_DATABASE_SYNCING": 11,
|
|
|
|
"MOBILE_DATABASE_SYNC_COMPLETE": 12,
|
|
|
|
"MOBILE_DATABASE_SYNC_STARTED": 13,
|
|
|
|
"MOBILE_DATABASE_PARTIAL_SYNC_COMPLETED": 14,
|
|
|
|
"MOBILE_DATABASE_PARTIAL_SYNC_STARTED": 15,
|
|
|
|
"CONTACTS_REFRESH_STARTED": 16,
|
|
|
|
"CONTACTS_REFRESH_COMPLETED": 17,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x AlertType) Enum() *AlertType {
|
|
|
|
p := new(AlertType)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x AlertType) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (AlertType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_events_proto_enumTypes[0].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (AlertType) Type() protoreflect.EnumType {
|
|
|
|
return &file_events_proto_enumTypes[0]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x AlertType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use AlertType.Descriptor instead.
|
|
|
|
func (AlertType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_events_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
type TypingTypes int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
TypingTypes_STOPPED_TYPING TypingTypes = 0
|
|
|
|
TypingTypes_STARTED_TYPING TypingTypes = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for TypingTypes.
|
|
|
|
var (
|
|
|
|
TypingTypes_name = map[int32]string{
|
|
|
|
0: "STOPPED_TYPING",
|
|
|
|
1: "STARTED_TYPING",
|
|
|
|
}
|
|
|
|
TypingTypes_value = map[string]int32{
|
|
|
|
"STOPPED_TYPING": 0,
|
|
|
|
"STARTED_TYPING": 1,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x TypingTypes) Enum() *TypingTypes {
|
|
|
|
p := new(TypingTypes)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x TypingTypes) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (TypingTypes) Descriptor() protoreflect.EnumDescriptor {
|
2023-07-17 23:57:20 +00:00
|
|
|
return file_events_proto_enumTypes[1].Descriptor()
|
2023-07-09 11:16:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (TypingTypes) Type() protoreflect.EnumType {
|
2023-07-17 23:57:20 +00:00
|
|
|
return &file_events_proto_enumTypes[1]
|
2023-07-09 11:16:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x TypingTypes) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use TypingTypes.Descriptor instead.
|
|
|
|
func (TypingTypes) EnumDescriptor() ([]byte, []int) {
|
2023-07-17 23:57:20 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{1}
|
2023-07-09 11:16:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateEvents struct {
|
2023-06-30 09:54:08 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// Types that are assignable to Event:
|
|
|
|
//
|
2023-07-09 11:16:52 +00:00
|
|
|
// *UpdateEvents_ConversationEvent
|
|
|
|
// *UpdateEvents_MessageEvent
|
|
|
|
// *UpdateEvents_TypingEvent
|
|
|
|
// *UpdateEvents_SettingsEvent
|
|
|
|
// *UpdateEvents_UserAlertEvent
|
2023-08-27 09:35:47 +00:00
|
|
|
// *UpdateEvents_BrowserPresenceCheckEvent
|
2023-12-13 23:18:08 +00:00
|
|
|
// *UpdateEvents_AccountChange
|
2023-07-09 11:16:52 +00:00
|
|
|
Event isUpdateEvents_Event `protobuf_oneof:"event"`
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *UpdateEvents) Reset() {
|
|
|
|
*x = UpdateEvents{}
|
2023-06-30 09:54:08 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_events_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *UpdateEvents) String() string {
|
2023-06-30 09:54:08 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (*UpdateEvents) ProtoMessage() {}
|
2023-06-30 09:54:08 +00:00
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *UpdateEvents) ProtoReflect() protoreflect.Message {
|
2023-06-30 09:54:08 +00:00
|
|
|
mi := &file_events_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
// Deprecated: Use UpdateEvents.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateEvents) Descriptor() ([]byte, []int) {
|
2023-06-30 09:54:08 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (m *UpdateEvents) GetEvent() isUpdateEvents_Event {
|
2023-06-30 09:54:08 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Event
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *UpdateEvents) GetConversationEvent() *ConversationEvent {
|
|
|
|
if x, ok := x.GetEvent().(*UpdateEvents_ConversationEvent); ok {
|
2023-06-30 09:54:08 +00:00
|
|
|
return x.ConversationEvent
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *UpdateEvents) GetMessageEvent() *MessageEvent {
|
|
|
|
if x, ok := x.GetEvent().(*UpdateEvents_MessageEvent); ok {
|
2023-06-30 09:54:08 +00:00
|
|
|
return x.MessageEvent
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *UpdateEvents) GetTypingEvent() *TypingEvent {
|
|
|
|
if x, ok := x.GetEvent().(*UpdateEvents_TypingEvent); ok {
|
|
|
|
return x.TypingEvent
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateEvents) GetSettingsEvent() *Settings {
|
|
|
|
if x, ok := x.GetEvent().(*UpdateEvents_SettingsEvent); ok {
|
|
|
|
return x.SettingsEvent
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateEvents) GetUserAlertEvent() *UserAlertEvent {
|
|
|
|
if x, ok := x.GetEvent().(*UpdateEvents_UserAlertEvent); ok {
|
2023-06-30 09:54:08 +00:00
|
|
|
return x.UserAlertEvent
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-08-27 09:35:47 +00:00
|
|
|
func (x *UpdateEvents) GetBrowserPresenceCheckEvent() *BrowserPresenceCheckEvent {
|
|
|
|
if x, ok := x.GetEvent().(*UpdateEvents_BrowserPresenceCheckEvent); ok {
|
|
|
|
return x.BrowserPresenceCheckEvent
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-12-13 23:18:08 +00:00
|
|
|
func (x *UpdateEvents) GetAccountChange() *AccountChangeOrSomethingEvent {
|
|
|
|
if x, ok := x.GetEvent().(*UpdateEvents_AccountChange); ok {
|
|
|
|
return x.AccountChange
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
type isUpdateEvents_Event interface {
|
|
|
|
isUpdateEvents_Event()
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
type UpdateEvents_ConversationEvent struct {
|
2023-06-30 09:54:08 +00:00
|
|
|
ConversationEvent *ConversationEvent `protobuf:"bytes,2,opt,name=conversationEvent,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
type UpdateEvents_MessageEvent struct {
|
2023-06-30 09:54:08 +00:00
|
|
|
MessageEvent *MessageEvent `protobuf:"bytes,3,opt,name=messageEvent,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
type UpdateEvents_TypingEvent struct {
|
|
|
|
TypingEvent *TypingEvent `protobuf:"bytes,4,opt,name=typingEvent,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateEvents_SettingsEvent struct {
|
|
|
|
SettingsEvent *Settings `protobuf:"bytes,5,opt,name=settingsEvent,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateEvents_UserAlertEvent struct {
|
2023-06-30 09:54:08 +00:00
|
|
|
UserAlertEvent *UserAlertEvent `protobuf:"bytes,6,opt,name=userAlertEvent,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
2023-08-27 09:35:47 +00:00
|
|
|
type UpdateEvents_BrowserPresenceCheckEvent struct {
|
|
|
|
BrowserPresenceCheckEvent *BrowserPresenceCheckEvent `protobuf:"bytes,7,opt,name=browserPresenceCheckEvent,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
2023-12-13 23:18:08 +00:00
|
|
|
type UpdateEvents_AccountChange struct {
|
|
|
|
// ParticipantsEvent participantsEvent = 8;
|
|
|
|
// ConversationTypeEvent conversationTypeEvent = 9;
|
|
|
|
// FavoriteStickersEvent favoriteStickersEvent = 10;
|
|
|
|
// RecentStickerEvent recentStickerEvent = 11;
|
|
|
|
// CloudStoreInfoEvent cloudStoreInfoEvent = 12;
|
|
|
|
// BlobForAttachmentProgressUpdate blobForAttachmentProgressUpdate = 13;
|
|
|
|
AccountChange *AccountChangeOrSomethingEvent `protobuf:"bytes,15,opt,name=accountChange,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (*UpdateEvents_ConversationEvent) isUpdateEvents_Event() {}
|
|
|
|
|
|
|
|
func (*UpdateEvents_MessageEvent) isUpdateEvents_Event() {}
|
2023-06-30 09:54:08 +00:00
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (*UpdateEvents_TypingEvent) isUpdateEvents_Event() {}
|
2023-06-30 09:54:08 +00:00
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (*UpdateEvents_SettingsEvent) isUpdateEvents_Event() {}
|
|
|
|
|
|
|
|
func (*UpdateEvents_UserAlertEvent) isUpdateEvents_Event() {}
|
2023-06-30 09:54:08 +00:00
|
|
|
|
2023-08-27 09:35:47 +00:00
|
|
|
func (*UpdateEvents_BrowserPresenceCheckEvent) isUpdateEvents_Event() {}
|
|
|
|
|
2023-12-13 23:18:08 +00:00
|
|
|
func (*UpdateEvents_AccountChange) isUpdateEvents_Event() {}
|
|
|
|
|
2023-12-13 23:32:36 +00:00
|
|
|
type EncryptedData2Container struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
AccountChange *AccountChangeOrSomethingEvent `protobuf:"bytes,2,opt,name=accountChange,proto3" json:"accountChange,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *EncryptedData2Container) Reset() {
|
|
|
|
*x = EncryptedData2Container{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_events_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *EncryptedData2Container) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*EncryptedData2Container) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EncryptedData2Container) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_events_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use EncryptedData2Container.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EncryptedData2Container) Descriptor() ([]byte, []int) {
|
|
|
|
return file_events_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *EncryptedData2Container) GetAccountChange() *AccountChangeOrSomethingEvent {
|
|
|
|
if x != nil {
|
|
|
|
return x.AccountChange
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-12-13 23:18:08 +00:00
|
|
|
type AccountChangeOrSomethingEvent struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
|
|
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AccountChangeOrSomethingEvent) Reset() {
|
|
|
|
*x = AccountChangeOrSomethingEvent{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[2]
|
2023-12-13 23:18:08 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AccountChangeOrSomethingEvent) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*AccountChangeOrSomethingEvent) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *AccountChangeOrSomethingEvent) ProtoReflect() protoreflect.Message {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[2]
|
2023-12-13 23:18:08 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use AccountChangeOrSomethingEvent.ProtoReflect.Descriptor instead.
|
|
|
|
func (*AccountChangeOrSomethingEvent) Descriptor() ([]byte, []int) {
|
2023-12-13 23:32:36 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{2}
|
2023-12-13 23:18:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AccountChangeOrSomethingEvent) GetAccount() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Account
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AccountChangeOrSomethingEvent) GetEnabled() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Enabled
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2023-06-30 09:54:08 +00:00
|
|
|
type ConversationEvent struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-08-25 15:29:27 +00:00
|
|
|
Data []*Conversation `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ConversationEvent) Reset() {
|
|
|
|
*x = ConversationEvent{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[3]
|
2023-06-30 09:54:08 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ConversationEvent) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ConversationEvent) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ConversationEvent) ProtoReflect() protoreflect.Message {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[3]
|
2023-06-30 09:54:08 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ConversationEvent.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ConversationEvent) Descriptor() ([]byte, []int) {
|
2023-12-13 23:32:36 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{3}
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-08-25 15:29:27 +00:00
|
|
|
func (x *ConversationEvent) GetData() []*Conversation {
|
2023-06-30 09:54:08 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.Data
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
type TypingEvent struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Data *TypingData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *TypingEvent) Reset() {
|
|
|
|
*x = TypingEvent{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[4]
|
2023-07-09 11:16:52 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *TypingEvent) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*TypingEvent) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *TypingEvent) ProtoReflect() protoreflect.Message {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[4]
|
2023-07-09 11:16:52 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use TypingEvent.ProtoReflect.Descriptor instead.
|
|
|
|
func (*TypingEvent) Descriptor() ([]byte, []int) {
|
2023-12-13 23:32:36 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{4}
|
2023-07-09 11:16:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *TypingEvent) GetData() *TypingData {
|
|
|
|
if x != nil {
|
|
|
|
return x.Data
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-06-30 09:54:08 +00:00
|
|
|
type MessageEvent struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-08-25 15:29:27 +00:00
|
|
|
Data []*Message `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *MessageEvent) Reset() {
|
|
|
|
*x = MessageEvent{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[5]
|
2023-06-30 09:54:08 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *MessageEvent) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*MessageEvent) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *MessageEvent) ProtoReflect() protoreflect.Message {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[5]
|
2023-06-30 09:54:08 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use MessageEvent.ProtoReflect.Descriptor instead.
|
|
|
|
func (*MessageEvent) Descriptor() ([]byte, []int) {
|
2023-12-13 23:32:36 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{5}
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-08-25 15:29:27 +00:00
|
|
|
func (x *MessageEvent) GetData() []*Message {
|
2023-06-30 09:54:08 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.Data
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserAlertEvent struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
AlertType AlertType `protobuf:"varint,2,opt,name=alertType,proto3,enum=events.AlertType" json:"alertType,omitempty"`
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserAlertEvent) Reset() {
|
|
|
|
*x = UserAlertEvent{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[6]
|
2023-06-30 09:54:08 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UserAlertEvent) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UserAlertEvent) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UserAlertEvent) ProtoReflect() protoreflect.Message {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[6]
|
2023-06-30 09:54:08 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use UserAlertEvent.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UserAlertEvent) Descriptor() ([]byte, []int) {
|
2023-12-13 23:32:36 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{6}
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *UserAlertEvent) GetAlertType() AlertType {
|
2023-06-30 09:54:08 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.AlertType
|
|
|
|
}
|
2023-07-09 11:16:52 +00:00
|
|
|
return AlertType_ALERT_TYPE_UNKNOWN
|
|
|
|
}
|
|
|
|
|
2023-08-27 09:35:47 +00:00
|
|
|
type BrowserPresenceCheckEvent struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BrowserPresenceCheckEvent) Reset() {
|
|
|
|
*x = BrowserPresenceCheckEvent{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[7]
|
2023-08-27 09:35:47 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BrowserPresenceCheckEvent) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*BrowserPresenceCheckEvent) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *BrowserPresenceCheckEvent) ProtoReflect() protoreflect.Message {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[7]
|
2023-08-27 09:35:47 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use BrowserPresenceCheckEvent.ProtoReflect.Descriptor instead.
|
|
|
|
func (*BrowserPresenceCheckEvent) Descriptor() ([]byte, []int) {
|
2023-12-13 23:32:36 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{7}
|
2023-08-27 09:35:47 +00:00
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
type TypingData struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
ConversationID string `protobuf:"bytes,1,opt,name=conversationID,proto3" json:"conversationID,omitempty"`
|
|
|
|
User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
Type TypingTypes `protobuf:"varint,3,opt,name=type,proto3,enum=events.TypingTypes" json:"type,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *TypingData) Reset() {
|
|
|
|
*x = TypingData{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[8]
|
2023-07-09 11:16:52 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *TypingData) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*TypingData) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *TypingData) ProtoReflect() protoreflect.Message {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[8]
|
2023-07-09 11:16:52 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use TypingData.ProtoReflect.Descriptor instead.
|
|
|
|
func (*TypingData) Descriptor() ([]byte, []int) {
|
2023-12-13 23:32:36 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{8}
|
2023-07-09 11:16:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *TypingData) GetConversationID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ConversationID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *TypingData) GetUser() *User {
|
|
|
|
if x != nil {
|
|
|
|
return x.User
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *TypingData) GetType() TypingTypes {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
|
|
|
}
|
|
|
|
return TypingTypes_STOPPED_TYPING
|
|
|
|
}
|
|
|
|
|
|
|
|
type User struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Field1 int64 `protobuf:"varint,1,opt,name=field1,proto3" json:"field1,omitempty"`
|
|
|
|
Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *User) Reset() {
|
|
|
|
*x = User{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[9]
|
2023-07-09 11:16:52 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *User) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*User) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *User) ProtoReflect() protoreflect.Message {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[9]
|
2023-07-09 11:16:52 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use User.ProtoReflect.Descriptor instead.
|
|
|
|
func (*User) Descriptor() ([]byte, []int) {
|
2023-12-13 23:32:36 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{9}
|
2023-07-09 11:16:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *User) GetField1() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Field1
|
|
|
|
}
|
2023-06-30 09:54:08 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *User) GetNumber() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Number
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
type RPCPairData struct {
|
2023-07-09 11:16:52 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// Types that are assignable to Event:
|
|
|
|
//
|
2023-07-17 23:01:06 +00:00
|
|
|
// *RPCPairData_Paired
|
|
|
|
// *RPCPairData_Revoked
|
|
|
|
Event isRPCPairData_Event `protobuf_oneof:"event"`
|
2023-07-09 11:16:52 +00:00
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
func (x *RPCPairData) Reset() {
|
|
|
|
*x = RPCPairData{}
|
2023-07-09 11:16:52 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[10]
|
2023-07-09 11:16:52 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
func (x *RPCPairData) String() string {
|
2023-07-09 11:16:52 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
func (*RPCPairData) ProtoMessage() {}
|
2023-07-09 11:16:52 +00:00
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
func (x *RPCPairData) ProtoReflect() protoreflect.Message {
|
2023-12-13 23:32:36 +00:00
|
|
|
mi := &file_events_proto_msgTypes[10]
|
2023-07-09 11:16:52 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
// Deprecated: Use RPCPairData.ProtoReflect.Descriptor instead.
|
|
|
|
func (*RPCPairData) Descriptor() ([]byte, []int) {
|
2023-12-13 23:32:36 +00:00
|
|
|
return file_events_proto_rawDescGZIP(), []int{10}
|
2023-07-09 11:16:52 +00:00
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
func (m *RPCPairData) GetEvent() isRPCPairData_Event {
|
2023-07-09 11:16:52 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Event
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
func (x *RPCPairData) GetPaired() *PairedData {
|
|
|
|
if x, ok := x.GetEvent().(*RPCPairData_Paired); ok {
|
2023-07-09 11:16:52 +00:00
|
|
|
return x.Paired
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
func (x *RPCPairData) GetRevoked() *RevokePairData {
|
|
|
|
if x, ok := x.GetEvent().(*RPCPairData_Revoked); ok {
|
2023-07-09 11:16:52 +00:00
|
|
|
return x.Revoked
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
type isRPCPairData_Event interface {
|
|
|
|
isRPCPairData_Event()
|
2023-07-09 11:16:52 +00:00
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
type RPCPairData_Paired struct {
|
2023-07-09 11:16:52 +00:00
|
|
|
Paired *PairedData `protobuf:"bytes,4,opt,name=paired,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
type RPCPairData_Revoked struct {
|
2023-07-09 11:16:52 +00:00
|
|
|
Revoked *RevokePairData `protobuf:"bytes,5,opt,name=revoked,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
func (*RPCPairData_Paired) isRPCPairData_Event() {}
|
2023-07-09 11:16:52 +00:00
|
|
|
|
2023-07-17 23:01:06 +00:00
|
|
|
func (*RPCPairData_Revoked) isRPCPairData_Event() {}
|
2023-07-09 11:16:52 +00:00
|
|
|
|
2023-06-30 09:54:08 +00:00
|
|
|
var File_events_proto protoreflect.FileDescriptor
|
|
|
|
|
2023-07-16 23:06:35 +00:00
|
|
|
//go:embed events.pb.raw
|
|
|
|
var file_events_proto_rawDesc []byte
|
2023-06-30 09:54:08 +00:00
|
|
|
|
|
|
|
var (
|
|
|
|
file_events_proto_rawDescOnce sync.Once
|
|
|
|
file_events_proto_rawDescData = file_events_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_events_proto_rawDescGZIP() []byte {
|
|
|
|
file_events_proto_rawDescOnce.Do(func() {
|
|
|
|
file_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_events_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_events_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2023-07-17 23:57:20 +00:00
|
|
|
var file_events_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
2023-12-13 23:32:36 +00:00
|
|
|
var file_events_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
2023-06-30 09:54:08 +00:00
|
|
|
var file_events_proto_goTypes = []interface{}{
|
2023-12-13 23:18:08 +00:00
|
|
|
(AlertType)(0), // 0: events.AlertType
|
|
|
|
(TypingTypes)(0), // 1: events.TypingTypes
|
|
|
|
(*UpdateEvents)(nil), // 2: events.UpdateEvents
|
2023-12-13 23:32:36 +00:00
|
|
|
(*EncryptedData2Container)(nil), // 3: events.EncryptedData2Container
|
|
|
|
(*AccountChangeOrSomethingEvent)(nil), // 4: events.AccountChangeOrSomethingEvent
|
|
|
|
(*ConversationEvent)(nil), // 5: events.ConversationEvent
|
|
|
|
(*TypingEvent)(nil), // 6: events.TypingEvent
|
|
|
|
(*MessageEvent)(nil), // 7: events.MessageEvent
|
|
|
|
(*UserAlertEvent)(nil), // 8: events.UserAlertEvent
|
|
|
|
(*BrowserPresenceCheckEvent)(nil), // 9: events.BrowserPresenceCheckEvent
|
|
|
|
(*TypingData)(nil), // 10: events.TypingData
|
|
|
|
(*User)(nil), // 11: events.User
|
|
|
|
(*RPCPairData)(nil), // 12: events.RPCPairData
|
|
|
|
(*Settings)(nil), // 13: settings.Settings
|
|
|
|
(*Conversation)(nil), // 14: conversations.Conversation
|
|
|
|
(*Message)(nil), // 15: conversations.Message
|
|
|
|
(*PairedData)(nil), // 16: authentication.PairedData
|
|
|
|
(*RevokePairData)(nil), // 17: authentication.RevokePairData
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
var file_events_proto_depIdxs = []int32{
|
2023-12-13 23:32:36 +00:00
|
|
|
5, // 0: events.UpdateEvents.conversationEvent:type_name -> events.ConversationEvent
|
|
|
|
7, // 1: events.UpdateEvents.messageEvent:type_name -> events.MessageEvent
|
|
|
|
6, // 2: events.UpdateEvents.typingEvent:type_name -> events.TypingEvent
|
|
|
|
13, // 3: events.UpdateEvents.settingsEvent:type_name -> settings.Settings
|
|
|
|
8, // 4: events.UpdateEvents.userAlertEvent:type_name -> events.UserAlertEvent
|
|
|
|
9, // 5: events.UpdateEvents.browserPresenceCheckEvent:type_name -> events.BrowserPresenceCheckEvent
|
|
|
|
4, // 6: events.UpdateEvents.accountChange:type_name -> events.AccountChangeOrSomethingEvent
|
|
|
|
4, // 7: events.EncryptedData2Container.accountChange:type_name -> events.AccountChangeOrSomethingEvent
|
|
|
|
14, // 8: events.ConversationEvent.data:type_name -> conversations.Conversation
|
|
|
|
10, // 9: events.TypingEvent.data:type_name -> events.TypingData
|
|
|
|
15, // 10: events.MessageEvent.data:type_name -> conversations.Message
|
|
|
|
0, // 11: events.UserAlertEvent.alertType:type_name -> events.AlertType
|
|
|
|
11, // 12: events.TypingData.user:type_name -> events.User
|
|
|
|
1, // 13: events.TypingData.type:type_name -> events.TypingTypes
|
|
|
|
16, // 14: events.RPCPairData.paired:type_name -> authentication.PairedData
|
|
|
|
17, // 15: events.RPCPairData.revoked:type_name -> authentication.RevokePairData
|
|
|
|
16, // [16:16] is the sub-list for method output_type
|
|
|
|
16, // [16:16] is the sub-list for method input_type
|
|
|
|
16, // [16:16] is the sub-list for extension type_name
|
|
|
|
16, // [16:16] is the sub-list for extension extendee
|
|
|
|
0, // [0:16] is the sub-list for field type_name
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_events_proto_init() }
|
|
|
|
func file_events_proto_init() {
|
|
|
|
if File_events_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
file_conversations_proto_init()
|
2023-07-09 11:16:52 +00:00
|
|
|
file_authentication_proto_init()
|
|
|
|
file_settings_proto_init()
|
2023-06-30 09:54:08 +00:00
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2023-07-09 11:16:52 +00:00
|
|
|
switch v := v.(*UpdateEvents); i {
|
2023-06-30 09:54:08 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-13 23:32:36 +00:00
|
|
|
switch v := v.(*EncryptedData2Container); i {
|
2023-06-30 09:54:08 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-13 23:32:36 +00:00
|
|
|
switch v := v.(*AccountChangeOrSomethingEvent); i {
|
2023-06-30 09:54:08 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-13 23:32:36 +00:00
|
|
|
switch v := v.(*ConversationEvent); i {
|
2023-07-09 11:16:52 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-13 23:32:36 +00:00
|
|
|
switch v := v.(*TypingEvent); i {
|
2023-06-30 09:54:08 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-07-09 11:16:52 +00:00
|
|
|
file_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-13 23:32:36 +00:00
|
|
|
switch v := v.(*MessageEvent); i {
|
2023-07-09 11:16:52 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-13 23:32:36 +00:00
|
|
|
switch v := v.(*UserAlertEvent); i {
|
2023-07-09 11:16:52 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_events_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-13 23:32:36 +00:00
|
|
|
switch v := v.(*BrowserPresenceCheckEvent); i {
|
2023-08-27 09:35:47 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_events_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-13 23:32:36 +00:00
|
|
|
switch v := v.(*TypingData); i {
|
2023-12-13 23:18:08 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_events_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-13 23:32:36 +00:00
|
|
|
switch v := v.(*User); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_events_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
2023-07-17 23:01:06 +00:00
|
|
|
switch v := v.(*RPCPairData); i {
|
2023-07-09 11:16:52 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
file_events_proto_msgTypes[0].OneofWrappers = []interface{}{
|
2023-07-09 11:16:52 +00:00
|
|
|
(*UpdateEvents_ConversationEvent)(nil),
|
|
|
|
(*UpdateEvents_MessageEvent)(nil),
|
|
|
|
(*UpdateEvents_TypingEvent)(nil),
|
|
|
|
(*UpdateEvents_SettingsEvent)(nil),
|
|
|
|
(*UpdateEvents_UserAlertEvent)(nil),
|
2023-08-27 09:35:47 +00:00
|
|
|
(*UpdateEvents_BrowserPresenceCheckEvent)(nil),
|
2023-12-13 23:18:08 +00:00
|
|
|
(*UpdateEvents_AccountChange)(nil),
|
2023-07-09 11:16:52 +00:00
|
|
|
}
|
2023-12-13 23:32:36 +00:00
|
|
|
file_events_proto_msgTypes[10].OneofWrappers = []interface{}{
|
2023-07-17 23:01:06 +00:00
|
|
|
(*RPCPairData_Paired)(nil),
|
|
|
|
(*RPCPairData_Revoked)(nil),
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_events_proto_rawDesc,
|
2023-07-17 23:57:20 +00:00
|
|
|
NumEnums: 2,
|
2023-12-13 23:32:36 +00:00
|
|
|
NumMessages: 11,
|
2023-06-30 09:54:08 +00:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
|
|
|
GoTypes: file_events_proto_goTypes,
|
|
|
|
DependencyIndexes: file_events_proto_depIdxs,
|
2023-07-09 11:16:52 +00:00
|
|
|
EnumInfos: file_events_proto_enumTypes,
|
2023-06-30 09:54:08 +00:00
|
|
|
MessageInfos: file_events_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_events_proto = out.File
|
|
|
|
file_events_proto_rawDesc = nil
|
|
|
|
file_events_proto_goTypes = nil
|
|
|
|
file_events_proto_depIdxs = nil
|
|
|
|
}
|