From 9680040ea1dbcd569f8b2b595c832020bdb5108b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 18 Jul 2023 02:57:20 +0300 Subject: [PATCH] Reorganize protobuf schemas --- libgm/client.go | 12 +- libgm/conversation_builder.go | 6 +- libgm/conversations.go | 32 +- libgm/events/ready.go | 2 +- libgm/gmproto/authentication.pb.go | 1355 ++++++- libgm/gmproto/authentication.pb.raw | Bin 1363 -> 3461 bytes libgm/gmproto/authentication.proto | 117 +- libgm/gmproto/client.pb.go | 3708 +++++++++++++++++-- libgm/gmproto/client.pb.raw | Bin 1149 -> 6022 bytes libgm/gmproto/client.proto | 327 +- libgm/gmproto/conversations.pb.go | 2591 +++---------- libgm/gmproto/conversations.pb.raw | Bin 11004 -> 8490 bytes libgm/gmproto/conversations.proto | 200 +- libgm/gmproto/events.pb.go | 154 +- libgm/gmproto/events.pb.raw | Bin 1951 -> 1631 bytes libgm/gmproto/events.proto | 20 - libgm/gmproto/media.pb.go | 296 -- libgm/gmproto/media.pb.raw | 13 - libgm/gmproto/media.proto | 22 - libgm/gmproto/messages.pb.go | 1975 ---------- libgm/gmproto/messages.pb.raw | Bin 4628 -> 0 bytes libgm/gmproto/reactions.pb.go | 618 ---- libgm/gmproto/reactions.pb.raw | Bin 856 -> 0 bytes libgm/gmproto/reactions.proto | 56 - libgm/gmproto/responses.pb.go | 1679 --------- libgm/gmproto/responses.pb.raw | Bin 2390 -> 0 bytes libgm/gmproto/responses.proto | 134 - libgm/gmproto/rpc.pb.go | 1183 ++++++ libgm/gmproto/rpc.pb.raw | Bin 0 -> 3291 bytes libgm/gmproto/{messages.proto => rpc.proto} | 149 +- libgm/gmproto/util.pb.go | 129 + libgm/gmproto/util.pb.raw | 6 + libgm/gmproto/util.proto | 8 + libgm/messages.go | 6 +- libgm/pair.go | 2 +- libgm/payload/sendMessage.go | 16 +- libgm/routes/conversations.go | 4 +- libgm/session.go | 2 +- libgm/session_handler.go | 6 +- libgm/updates_handler.go | 2 +- libgm/upload.go | 4 +- libgm/util/config.go | 2 +- main.go | 4 +- portal.go | 16 +- provisioning.go | 2 +- 45 files changed, 7086 insertions(+), 7772 deletions(-) delete mode 100644 libgm/gmproto/media.pb.go delete mode 100644 libgm/gmproto/media.pb.raw delete mode 100644 libgm/gmproto/media.proto delete mode 100644 libgm/gmproto/messages.pb.go delete mode 100644 libgm/gmproto/messages.pb.raw delete mode 100644 libgm/gmproto/reactions.pb.go delete mode 100644 libgm/gmproto/reactions.pb.raw delete mode 100644 libgm/gmproto/reactions.proto delete mode 100644 libgm/gmproto/responses.pb.go delete mode 100644 libgm/gmproto/responses.pb.raw delete mode 100644 libgm/gmproto/responses.proto create mode 100644 libgm/gmproto/rpc.pb.go create mode 100644 libgm/gmproto/rpc.pb.raw rename libgm/gmproto/{messages.proto => rpc.proto} (55%) create mode 100644 libgm/gmproto/util.pb.go create mode 100644 libgm/gmproto/util.pb.raw create mode 100644 libgm/gmproto/util.proto diff --git a/libgm/client.go b/libgm/client.go index 36890a8..98d6c68 100644 --- a/libgm/client.go +++ b/libgm/client.go @@ -193,10 +193,10 @@ func (c *Client) triggerEvent(evt interface{}) { } func (c *Client) DownloadMedia(mediaID string, key []byte) ([]byte, error) { - downloadMetadata := &gmproto.UploadImagePayload{ - MetaData: &gmproto.ImageMetaData{ - ImageID: mediaID, - Encrypted: true, + downloadMetadata := &gmproto.DownloadAttachmentRequest{ + Info: &gmproto.AttachmentInfo{ + AttachmentID: mediaID, + Encrypted: true, }, AuthData: &gmproto.AuthMessage{ RequestID: uuid.NewString(), @@ -304,7 +304,7 @@ func (c *Client) refreshAuthToken() error { return err } - payload, err := pblite.Marshal(&gmproto.RegisterRefreshPayload{ + payload, err := pblite.Marshal(&gmproto.RegisterRefreshRequest{ MessageAuth: &gmproto.AuthMessage{ RequestID: requestID, TachyonAuthToken: c.AuthData.TachyonAuthToken, @@ -313,7 +313,7 @@ func (c *Client) refreshAuthToken() error { CurrBrowserDevice: c.AuthData.Browser, UnixTimestamp: timestamp, Signature: sig, - EmptyRefreshArr: &gmproto.EmptyRefreshArr{EmptyArr: &gmproto.EmptyArr{}}, + EmptyRefreshArr: &gmproto.RegisterRefreshRequest_NestedEmptyArr{EmptyArr: &gmproto.EmptyArr{}}, MessageType: 2, // hmm }) if err != nil { diff --git a/libgm/conversation_builder.go b/libgm/conversation_builder.go index da74c52..7ca1298 100644 --- a/libgm/conversation_builder.go +++ b/libgm/conversation_builder.go @@ -52,7 +52,7 @@ func (cb *ConversationBuilder) Build(protoMessage proto.Message) (proto.Message, } switch protoMessage.(type) { - case *gmproto.UpdateConversationPayload: + case *gmproto.UpdateConversationRequest: payload, failedBuild := cb.buildUpdateConversationPayload() if failedBuild != nil { return nil, failedBuild @@ -64,12 +64,12 @@ func (cb *ConversationBuilder) Build(protoMessage proto.Message) (proto.Message, return nil, &ConversationBuilderError{errMsg: "failed to build for unknown reasons"} } -func (cb *ConversationBuilder) buildUpdateConversationPayload() (*gmproto.UpdateConversationPayload, error) { +func (cb *ConversationBuilder) buildUpdateConversationPayload() (*gmproto.UpdateConversationRequest, error) { if cb.actionStatus == 0 && cb.status == 0 && cb.muteStatus == nil { return nil, &ConversationBuilderError{errMsg: "actionStatus, status & muteStatus can not be empty when updating conversation, set atleast 1"} } - payload := &gmproto.UpdateConversationPayload{} + payload := &gmproto.UpdateConversationRequest{} if cb.actionStatus != 0 { payload.Action = cb.actionStatus diff --git a/libgm/conversations.go b/libgm/conversations.go index 60a751d..5e520ca 100644 --- a/libgm/conversations.go +++ b/libgm/conversations.go @@ -4,8 +4,8 @@ import ( "go.mau.fi/mautrix-gmessages/libgm/gmproto" ) -func (c *Client) ListConversations(count int64, folder gmproto.ListConversationsPayload_Folder) (*gmproto.Conversations, error) { - payload := &gmproto.ListConversationsPayload{Count: count, Folder: folder} +func (c *Client) ListConversations(count int64, folder gmproto.ListConversationsRequest_Folder) (*gmproto.ListConversationsResponse, error) { + payload := &gmproto.ListConversationsRequest{Count: count, Folder: folder} //var actionType gmproto.ActionType //if !c.synced { // actionType = gmproto.ActionType_LIST_CONVERSATIONS_SYNC @@ -13,11 +13,11 @@ func (c *Client) ListConversations(count int64, folder gmproto.ListConversations //} else { actionType := gmproto.ActionType_LIST_CONVERSATIONS - return typedResponse[*gmproto.Conversations](c.sessionHandler.sendMessage(actionType, payload)) + return typedResponse[*gmproto.ListConversationsResponse](c.sessionHandler.sendMessage(actionType, payload)) } func (c *Client) ListContacts() (*gmproto.ListContactsResponse, error) { - payload := &gmproto.ListContactsPayload{ + payload := &gmproto.ListContactsRequest{ I1: 1, I2: 350, I3: 50, @@ -27,26 +27,26 @@ func (c *Client) ListContacts() (*gmproto.ListContactsResponse, error) { } func (c *Client) ListTopContacts() (*gmproto.ListTopContactsResponse, error) { - payload := &gmproto.ListTopContactsPayload{ + payload := &gmproto.ListTopContactsRequest{ Count: 8, } actionType := gmproto.ActionType_LIST_TOP_CONTACTS return typedResponse[*gmproto.ListTopContactsResponse](c.sessionHandler.sendMessage(actionType, payload)) } -func (c *Client) GetOrCreateConversation(req *gmproto.GetOrCreateConversationPayload) (*gmproto.GetOrCreateConversationResponse, error) { +func (c *Client) GetOrCreateConversation(req *gmproto.GetOrCreateConversationRequest) (*gmproto.GetOrCreateConversationResponse, error) { actionType := gmproto.ActionType_GET_OR_CREATE_CONVERSATION return typedResponse[*gmproto.GetOrCreateConversationResponse](c.sessionHandler.sendMessage(actionType, req)) } func (c *Client) GetConversationType(conversationID string) (*gmproto.GetConversationTypeResponse, error) { - payload := &gmproto.ConversationTypePayload{ConversationID: conversationID} + payload := &gmproto.ConversationTypeRequest{ConversationID: conversationID} actionType := gmproto.ActionType_GET_CONVERSATION_TYPE return typedResponse[*gmproto.GetConversationTypeResponse](c.sessionHandler.sendMessage(actionType, payload)) } func (c *Client) GetConversation(conversationID string) (*gmproto.Conversation, error) { - payload := &gmproto.GetConversationPayload{ConversationID: conversationID} + payload := &gmproto.GetConversationRequest{ConversationID: conversationID} actionType := gmproto.ActionType_GET_CONVERSATION resp, err := typedResponse[*gmproto.GetConversationResponse](c.sessionHandler.sendMessage(actionType, payload)) if err != nil { @@ -56,7 +56,7 @@ func (c *Client) GetConversation(conversationID string) (*gmproto.Conversation, } func (c *Client) FetchMessages(conversationID string, count int64, cursor *gmproto.Cursor) (*gmproto.FetchMessagesResponse, error) { - payload := &gmproto.FetchConversationMessagesPayload{ConversationID: conversationID, Count: count} + payload := &gmproto.FetchMessagesRequest{ConversationID: conversationID, Count: count} if cursor != nil { payload.Cursor = cursor } @@ -64,19 +64,19 @@ func (c *Client) FetchMessages(conversationID string, count int64, cursor *gmpro return typedResponse[*gmproto.FetchMessagesResponse](c.sessionHandler.sendMessage(actionType, payload)) } -func (c *Client) SendMessage(payload *gmproto.SendMessagePayload) (*gmproto.SendMessageResponse, error) { +func (c *Client) SendMessage(payload *gmproto.SendMessageRequest) (*gmproto.SendMessageResponse, error) { actionType := gmproto.ActionType_SEND_MESSAGE return typedResponse[*gmproto.SendMessageResponse](c.sessionHandler.sendMessage(actionType, payload)) } -func (c *Client) GetParticipantThumbnail(convID string) (*gmproto.ParticipantThumbnail, error) { - payload := &gmproto.GetParticipantThumbnailPayload{ConversationID: convID} +func (c *Client) GetParticipantThumbnail(convID string) (*gmproto.GetParticipantThumbnailResponse, error) { + payload := &gmproto.GetParticipantThumbnailRequest{ConversationID: convID} actionType := gmproto.ActionType_GET_PARTICIPANTS_THUMBNAIL - return typedResponse[*gmproto.ParticipantThumbnail](c.sessionHandler.sendMessage(actionType, payload)) + return typedResponse[*gmproto.GetParticipantThumbnailResponse](c.sessionHandler.sendMessage(actionType, payload)) } func (c *Client) UpdateConversation(convBuilder *ConversationBuilder) (*gmproto.UpdateConversationResponse, error) { - data := &gmproto.UpdateConversationPayload{} + data := &gmproto.UpdateConversationRequest{} payload, buildErr := convBuilder.Build(data) if buildErr != nil { @@ -89,7 +89,9 @@ func (c *Client) UpdateConversation(convBuilder *ConversationBuilder) (*gmproto. } func (c *Client) SetTyping(convID string) error { - payload := &gmproto.TypingUpdatePayload{Data: &gmproto.SetTypingIn{ConversationID: convID, Typing: true}} + payload := &gmproto.TypingUpdateRequest{ + Data: &gmproto.TypingUpdateRequest_Data{ConversationID: convID, Typing: true}, + } actionType := gmproto.ActionType_TYPING_UPDATES _, err := c.sessionHandler.sendMessage(actionType, payload) diff --git a/libgm/events/ready.go b/libgm/events/ready.go index d651388..c9e20ec 100644 --- a/libgm/events/ready.go +++ b/libgm/events/ready.go @@ -12,7 +12,7 @@ type ClientReady struct { Conversations []*gmproto.Conversation } -func NewClientReady(sessionID string, conversationList *gmproto.Conversations) *ClientReady { +func NewClientReady(sessionID string, conversationList *gmproto.ListConversationsResponse) *ClientReady { return &ClientReady{ SessionID: sessionID, Conversations: conversationList.Conversations, diff --git a/libgm/gmproto/authentication.pb.go b/libgm/gmproto/authentication.pb.go index f748869..d32c940 100644 --- a/libgm/gmproto/authentication.pb.go +++ b/libgm/gmproto/authentication.pb.go @@ -22,15 +22,79 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type BrowserType int32 + +const ( + BrowserType_UNKNOWN_BROWSER_TYPE BrowserType = 0 + BrowserType_OTHER BrowserType = 1 + BrowserType_CHROME BrowserType = 2 + BrowserType_FIREFOX BrowserType = 3 + BrowserType_SAFARI BrowserType = 4 + BrowserType_OPERA BrowserType = 5 + BrowserType_IE BrowserType = 6 + BrowserType_EDGE BrowserType = 7 +) + +// Enum value maps for BrowserType. +var ( + BrowserType_name = map[int32]string{ + 0: "UNKNOWN_BROWSER_TYPE", + 1: "OTHER", + 2: "CHROME", + 3: "FIREFOX", + 4: "SAFARI", + 5: "OPERA", + 6: "IE", + 7: "EDGE", + } + BrowserType_value = map[string]int32{ + "UNKNOWN_BROWSER_TYPE": 0, + "OTHER": 1, + "CHROME": 2, + "FIREFOX": 3, + "SAFARI": 4, + "OPERA": 5, + "IE": 6, + "EDGE": 7, + } +) + +func (x BrowserType) Enum() *BrowserType { + p := new(BrowserType) + *p = x + return p +} + +func (x BrowserType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BrowserType) Descriptor() protoreflect.EnumDescriptor { + return file_authentication_proto_enumTypes[0].Descriptor() +} + +func (BrowserType) Type() protoreflect.EnumType { + return &file_authentication_proto_enumTypes[0] +} + +func (x BrowserType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BrowserType.Descriptor instead. +func (BrowserType) EnumDescriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{0} +} + type BrowserDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserAgent string `protobuf:"bytes,1,opt,name=userAgent,proto3" json:"userAgent,omitempty"` - BrowserType BrowserTypes `protobuf:"varint,2,opt,name=browserType,proto3,enum=client.BrowserTypes" json:"browserType,omitempty"` - OS string `protobuf:"bytes,3,opt,name=OS,proto3" json:"OS,omitempty"` - SomeBool bool `protobuf:"varint,6,opt,name=someBool,proto3" json:"someBool,omitempty"` + UserAgent string `protobuf:"bytes,1,opt,name=userAgent,proto3" json:"userAgent,omitempty"` + BrowserType BrowserType `protobuf:"varint,2,opt,name=browserType,proto3,enum=authentication.BrowserType" json:"browserType,omitempty"` + OS string `protobuf:"bytes,3,opt,name=OS,proto3" json:"OS,omitempty"` + SomeBool bool `protobuf:"varint,6,opt,name=someBool,proto3" json:"someBool,omitempty"` } func (x *BrowserDetails) Reset() { @@ -72,11 +136,11 @@ func (x *BrowserDetails) GetUserAgent() string { return "" } -func (x *BrowserDetails) GetBrowserType() BrowserTypes { +func (x *BrowserDetails) GetBrowserType() BrowserType { if x != nil { return x.BrowserType } - return BrowserTypes_UNKNOWN_BROWSER_TYPE + return BrowserType_UNKNOWN_BROWSER_TYPE } func (x *BrowserDetails) GetOS() string { @@ -93,6 +157,148 @@ func (x *BrowserDetails) GetSomeBool() bool { return false } +type Device struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` + SourceID string `protobuf:"bytes,2,opt,name=sourceID,proto3" json:"sourceID,omitempty"` + Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"` +} + +func (x *Device) Reset() { + *x = Device{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Device) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Device) ProtoMessage() {} + +func (x *Device) ProtoReflect() protoreflect.Message { + mi := &file_authentication_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 Device.ProtoReflect.Descriptor instead. +func (*Device) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{1} +} + +func (x *Device) GetUserID() int64 { + if x != nil { + return x.UserID + } + return 0 +} + +func (x *Device) GetSourceID() string { + if x != nil { + return x.SourceID + } + return "" +} + +func (x *Device) GetNetwork() string { + if x != nil { + return x.Network + } + return "" +} + +type ConfigVersion struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Year int32 `protobuf:"varint,3,opt,name=Year,proto3" json:"Year,omitempty"` + Month int32 `protobuf:"varint,4,opt,name=Month,proto3" json:"Month,omitempty"` + Day int32 `protobuf:"varint,5,opt,name=Day,proto3" json:"Day,omitempty"` + V1 int32 `protobuf:"varint,7,opt,name=V1,proto3" json:"V1,omitempty"` + V2 int32 `protobuf:"varint,9,opt,name=V2,proto3" json:"V2,omitempty"` +} + +func (x *ConfigVersion) Reset() { + *x = ConfigVersion{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConfigVersion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfigVersion) ProtoMessage() {} + +func (x *ConfigVersion) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConfigVersion.ProtoReflect.Descriptor instead. +func (*ConfigVersion) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{2} +} + +func (x *ConfigVersion) GetYear() int32 { + if x != nil { + return x.Year + } + return 0 +} + +func (x *ConfigVersion) GetMonth() int32 { + if x != nil { + return x.Month + } + return 0 +} + +func (x *ConfigVersion) GetDay() int32 { + if x != nil { + return x.Day + } + return 0 +} + +func (x *ConfigVersion) GetV1() int32 { + if x != nil { + return x.V1 + } + return 0 +} + +func (x *ConfigVersion) GetV2() int32 { + if x != nil { + return x.V2 + } + return 0 +} + type AuthenticationContainer struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -110,7 +316,7 @@ type AuthenticationContainer struct { func (x *AuthenticationContainer) Reset() { *x = AuthenticationContainer{} if protoimpl.UnsafeEnabled { - mi := &file_authentication_proto_msgTypes[1] + mi := &file_authentication_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -123,7 +329,7 @@ func (x *AuthenticationContainer) String() string { func (*AuthenticationContainer) ProtoMessage() {} func (x *AuthenticationContainer) ProtoReflect() protoreflect.Message { - mi := &file_authentication_proto_msgTypes[1] + mi := &file_authentication_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -136,7 +342,7 @@ func (x *AuthenticationContainer) ProtoReflect() protoreflect.Message { // Deprecated: Use AuthenticationContainer.ProtoReflect.Descriptor instead. func (*AuthenticationContainer) Descriptor() ([]byte, []int) { - return file_authentication_proto_rawDescGZIP(), []int{1} + return file_authentication_proto_rawDescGZIP(), []int{3} } func (x *AuthenticationContainer) GetAuthMessage() *AuthMessage { @@ -190,6 +396,556 @@ func (*AuthenticationContainer_KeyData) isAuthenticationContainer_Data() {} func (*AuthenticationContainer_DeviceData) isAuthenticationContainer_Data() {} +type AuthMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` + Network *string `protobuf:"bytes,3,opt,name=network,proto3,oneof" json:"network,omitempty"` + TachyonAuthToken []byte `protobuf:"bytes,6,opt,name=tachyonAuthToken,proto3,oneof" json:"tachyonAuthToken,omitempty"` + ConfigVersion *ConfigVersion `protobuf:"bytes,7,opt,name=configVersion,proto3" json:"configVersion,omitempty"` +} + +func (x *AuthMessage) Reset() { + *x = AuthMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AuthMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthMessage) ProtoMessage() {} + +func (x *AuthMessage) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AuthMessage.ProtoReflect.Descriptor instead. +func (*AuthMessage) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{4} +} + +func (x *AuthMessage) GetRequestID() string { + if x != nil { + return x.RequestID + } + return "" +} + +func (x *AuthMessage) GetNetwork() string { + if x != nil && x.Network != nil { + return *x.Network + } + return "" +} + +func (x *AuthMessage) GetTachyonAuthToken() []byte { + if x != nil { + return x.TachyonAuthToken + } + return nil +} + +func (x *AuthMessage) GetConfigVersion() *ConfigVersion { + if x != nil { + return x.ConfigVersion + } + return nil +} + +type RevokeRelayPairingRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AuthMessage *AuthMessage `protobuf:"bytes,1,opt,name=authMessage,proto3" json:"authMessage,omitempty"` + Browser *Device `protobuf:"bytes,2,opt,name=browser,proto3" json:"browser,omitempty"` +} + +func (x *RevokeRelayPairingRequest) Reset() { + *x = RevokeRelayPairingRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RevokeRelayPairingRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RevokeRelayPairingRequest) ProtoMessage() {} + +func (x *RevokeRelayPairingRequest) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RevokeRelayPairingRequest.ProtoReflect.Descriptor instead. +func (*RevokeRelayPairingRequest) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{5} +} + +func (x *RevokeRelayPairingRequest) GetAuthMessage() *AuthMessage { + if x != nil { + return x.AuthMessage + } + return nil +} + +func (x *RevokeRelayPairingRequest) GetBrowser() *Device { + if x != nil { + return x.Browser + } + return nil +} + +type RevokeRelayPairingResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RevokeRelayPairingResponse) Reset() { + *x = RevokeRelayPairingResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RevokeRelayPairingResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RevokeRelayPairingResponse) ProtoMessage() {} + +func (x *RevokeRelayPairingResponse) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RevokeRelayPairingResponse.ProtoReflect.Descriptor instead. +func (*RevokeRelayPairingResponse) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{6} +} + +type RegisterRefreshRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MessageAuth *AuthMessage `protobuf:"bytes,1,opt,name=messageAuth,proto3" json:"messageAuth,omitempty"` + CurrBrowserDevice *Device `protobuf:"bytes,2,opt,name=currBrowserDevice,proto3" json:"currBrowserDevice,omitempty"` + UnixTimestamp int64 `protobuf:"varint,3,opt,name=unixTimestamp,proto3" json:"unixTimestamp,omitempty"` + Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` + EmptyRefreshArr *RegisterRefreshRequest_NestedEmptyArr `protobuf:"bytes,13,opt,name=emptyRefreshArr,proto3" json:"emptyRefreshArr,omitempty"` + MessageType int32 `protobuf:"varint,16,opt,name=messageType,proto3" json:"messageType,omitempty"` +} + +func (x *RegisterRefreshRequest) Reset() { + *x = RegisterRefreshRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegisterRefreshRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterRefreshRequest) ProtoMessage() {} + +func (x *RegisterRefreshRequest) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RegisterRefreshRequest.ProtoReflect.Descriptor instead. +func (*RegisterRefreshRequest) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{7} +} + +func (x *RegisterRefreshRequest) GetMessageAuth() *AuthMessage { + if x != nil { + return x.MessageAuth + } + return nil +} + +func (x *RegisterRefreshRequest) GetCurrBrowserDevice() *Device { + if x != nil { + return x.CurrBrowserDevice + } + return nil +} + +func (x *RegisterRefreshRequest) GetUnixTimestamp() int64 { + if x != nil { + return x.UnixTimestamp + } + return 0 +} + +func (x *RegisterRefreshRequest) GetSignature() []byte { + if x != nil { + return x.Signature + } + return nil +} + +func (x *RegisterRefreshRequest) GetEmptyRefreshArr() *RegisterRefreshRequest_NestedEmptyArr { + if x != nil { + return x.EmptyRefreshArr + } + return nil +} + +func (x *RegisterRefreshRequest) GetMessageType() int32 { + if x != nil { + return x.MessageType + } + return 0 +} + +type RegisterRefreshResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TokenData *RegisterRefreshResponse_AuthKeyData `protobuf:"bytes,2,opt,name=tokenData,proto3" json:"tokenData,omitempty"` +} + +func (x *RegisterRefreshResponse) Reset() { + *x = RegisterRefreshResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegisterRefreshResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterRefreshResponse) ProtoMessage() {} + +func (x *RegisterRefreshResponse) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RegisterRefreshResponse.ProtoReflect.Descriptor instead. +func (*RegisterRefreshResponse) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{8} +} + +func (x *RegisterRefreshResponse) GetTokenData() *RegisterRefreshResponse_AuthKeyData { + if x != nil { + return x.TokenData + } + return nil +} + +type RegisterPhoneRelayResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Coordinates *CoordinateMessage `protobuf:"bytes,1,opt,name=coordinates,proto3" json:"coordinates,omitempty"` + Browser *Device `protobuf:"bytes,2,opt,name=browser,proto3" json:"browser,omitempty"` + PairingKey []byte `protobuf:"bytes,3,opt,name=pairingKey,proto3" json:"pairingKey,omitempty"` + ValidFor int64 `protobuf:"varint,4,opt,name=validFor,proto3" json:"validFor,omitempty"` + AuthKeyData *RegisterPhoneRelayResponse_AuthKeyData `protobuf:"bytes,5,opt,name=authKeyData,proto3" json:"authKeyData,omitempty"` + ResponseID string `protobuf:"bytes,6,opt,name=responseID,proto3" json:"responseID,omitempty"` +} + +func (x *RegisterPhoneRelayResponse) Reset() { + *x = RegisterPhoneRelayResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegisterPhoneRelayResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterPhoneRelayResponse) ProtoMessage() {} + +func (x *RegisterPhoneRelayResponse) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RegisterPhoneRelayResponse.ProtoReflect.Descriptor instead. +func (*RegisterPhoneRelayResponse) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{9} +} + +func (x *RegisterPhoneRelayResponse) GetCoordinates() *CoordinateMessage { + if x != nil { + return x.Coordinates + } + return nil +} + +func (x *RegisterPhoneRelayResponse) GetBrowser() *Device { + if x != nil { + return x.Browser + } + return nil +} + +func (x *RegisterPhoneRelayResponse) GetPairingKey() []byte { + if x != nil { + return x.PairingKey + } + return nil +} + +func (x *RegisterPhoneRelayResponse) GetValidFor() int64 { + if x != nil { + return x.ValidFor + } + return 0 +} + +func (x *RegisterPhoneRelayResponse) GetAuthKeyData() *RegisterPhoneRelayResponse_AuthKeyData { + if x != nil { + return x.AuthKeyData + } + return nil +} + +func (x *RegisterPhoneRelayResponse) GetResponseID() string { + if x != nil { + return x.ResponseID + } + return "" +} + +type CoordinateMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Coord1 int64 `protobuf:"varint,2,opt,name=coord1,proto3" json:"coord1,omitempty"` +} + +func (x *CoordinateMessage) Reset() { + *x = CoordinateMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CoordinateMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CoordinateMessage) ProtoMessage() {} + +func (x *CoordinateMessage) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CoordinateMessage.ProtoReflect.Descriptor instead. +func (*CoordinateMessage) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{10} +} + +func (x *CoordinateMessage) GetCoord1() int64 { + if x != nil { + return x.Coord1 + } + return 0 +} + +type RefreshPhoneRelayResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Coordinates *CoordinateMessage `protobuf:"bytes,1,opt,name=coordinates,proto3" json:"coordinates,omitempty"` + PairKey []byte `protobuf:"bytes,2,opt,name=pairKey,proto3" json:"pairKey,omitempty"` + ValidFor int64 `protobuf:"varint,3,opt,name=validFor,proto3" json:"validFor,omitempty"` +} + +func (x *RefreshPhoneRelayResponse) Reset() { + *x = RefreshPhoneRelayResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RefreshPhoneRelayResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RefreshPhoneRelayResponse) ProtoMessage() {} + +func (x *RefreshPhoneRelayResponse) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RefreshPhoneRelayResponse.ProtoReflect.Descriptor instead. +func (*RefreshPhoneRelayResponse) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{11} +} + +func (x *RefreshPhoneRelayResponse) GetCoordinates() *CoordinateMessage { + if x != nil { + return x.Coordinates + } + return nil +} + +func (x *RefreshPhoneRelayResponse) GetPairKey() []byte { + if x != nil { + return x.PairKey + } + return nil +} + +func (x *RefreshPhoneRelayResponse) GetValidFor() int64 { + if x != nil { + return x.ValidFor + } + return 0 +} + +type WebEncryptionKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Coordinates *CoordinateMessage `protobuf:"bytes,1,opt,name=coordinates,proto3" json:"coordinates,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` +} + +func (x *WebEncryptionKeyResponse) Reset() { + *x = WebEncryptionKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WebEncryptionKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WebEncryptionKeyResponse) ProtoMessage() {} + +func (x *WebEncryptionKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WebEncryptionKeyResponse.ProtoReflect.Descriptor instead. +func (*WebEncryptionKeyResponse) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{12} +} + +func (x *WebEncryptionKeyResponse) GetCoordinates() *CoordinateMessage { + if x != nil { + return x.Coordinates + } + return nil +} + +func (x *WebEncryptionKeyResponse) GetKey() []byte { + if x != nil { + return x.Key + } + return nil +} + type ECDSAKeys struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -202,7 +958,7 @@ type ECDSAKeys struct { func (x *ECDSAKeys) Reset() { *x = ECDSAKeys{} if protoimpl.UnsafeEnabled { - mi := &file_authentication_proto_msgTypes[2] + mi := &file_authentication_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -215,7 +971,7 @@ func (x *ECDSAKeys) String() string { func (*ECDSAKeys) ProtoMessage() {} func (x *ECDSAKeys) ProtoReflect() protoreflect.Message { - mi := &file_authentication_proto_msgTypes[2] + mi := &file_authentication_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -228,7 +984,7 @@ func (x *ECDSAKeys) ProtoReflect() protoreflect.Message { // Deprecated: Use ECDSAKeys.ProtoReflect.Descriptor instead. func (*ECDSAKeys) Descriptor() ([]byte, []int) { - return file_authentication_proto_rawDescGZIP(), []int{2} + return file_authentication_proto_rawDescGZIP(), []int{13} } func (x *ECDSAKeys) GetField1() int64 { @@ -245,6 +1001,53 @@ func (x *ECDSAKeys) GetEncryptedKeys() []byte { return nil } +type CurrentDeviceData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Browser *Device `protobuf:"bytes,1,opt,name=browser,proto3" json:"browser,omitempty"` +} + +func (x *CurrentDeviceData) Reset() { + *x = CurrentDeviceData{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CurrentDeviceData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CurrentDeviceData) ProtoMessage() {} + +func (x *CurrentDeviceData) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[14] + 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 CurrentDeviceData.ProtoReflect.Descriptor instead. +func (*CurrentDeviceData) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{14} +} + +func (x *CurrentDeviceData) GetBrowser() *Device { + if x != nil { + return x.Browser + } + return nil +} + type KeyData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -259,7 +1062,7 @@ type KeyData struct { func (x *KeyData) Reset() { *x = KeyData{} if protoimpl.UnsafeEnabled { - mi := &file_authentication_proto_msgTypes[3] + mi := &file_authentication_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -272,7 +1075,7 @@ func (x *KeyData) String() string { func (*KeyData) ProtoMessage() {} func (x *KeyData) ProtoReflect() protoreflect.Message { - mi := &file_authentication_proto_msgTypes[3] + mi := &file_authentication_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -285,7 +1088,7 @@ func (x *KeyData) ProtoReflect() protoreflect.Message { // Deprecated: Use KeyData.ProtoReflect.Descriptor instead. func (*KeyData) Descriptor() ([]byte, []int) { - return file_authentication_proto_rawDescGZIP(), []int{3} + return file_authentication_proto_rawDescGZIP(), []int{15} } func (x *KeyData) GetMobile() *Device { @@ -328,7 +1131,7 @@ type WebAuthKey struct { func (x *WebAuthKey) Reset() { *x = WebAuthKey{} if protoimpl.UnsafeEnabled { - mi := &file_authentication_proto_msgTypes[4] + mi := &file_authentication_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -341,7 +1144,7 @@ func (x *WebAuthKey) String() string { func (*WebAuthKey) ProtoMessage() {} func (x *WebAuthKey) ProtoReflect() protoreflect.Message { - mi := &file_authentication_proto_msgTypes[4] + mi := &file_authentication_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -354,7 +1157,7 @@ func (x *WebAuthKey) ProtoReflect() protoreflect.Message { // Deprecated: Use WebAuthKey.ProtoReflect.Descriptor instead. func (*WebAuthKey) Descriptor() ([]byte, []int) { - return file_authentication_proto_rawDescGZIP(), []int{4} + return file_authentication_proto_rawDescGZIP(), []int{16} } func (x *WebAuthKey) GetWebAuthKey() []byte { @@ -371,53 +1174,6 @@ func (x *WebAuthKey) GetValidFor() int64 { return 0 } -type CurrentDeviceData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Browser *Device `protobuf:"bytes,1,opt,name=browser,proto3" json:"browser,omitempty"` -} - -func (x *CurrentDeviceData) Reset() { - *x = CurrentDeviceData{} - if protoimpl.UnsafeEnabled { - mi := &file_authentication_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CurrentDeviceData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CurrentDeviceData) ProtoMessage() {} - -func (x *CurrentDeviceData) ProtoReflect() protoreflect.Message { - mi := &file_authentication_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CurrentDeviceData.ProtoReflect.Descriptor instead. -func (*CurrentDeviceData) Descriptor() ([]byte, []int) { - return file_authentication_proto_rawDescGZIP(), []int{5} -} - -func (x *CurrentDeviceData) GetBrowser() *Device { - if x != nil { - return x.Browser - } - return nil -} - type URLData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -431,7 +1187,7 @@ type URLData struct { func (x *URLData) Reset() { *x = URLData{} if protoimpl.UnsafeEnabled { - mi := &file_authentication_proto_msgTypes[6] + mi := &file_authentication_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -444,7 +1200,7 @@ func (x *URLData) String() string { func (*URLData) ProtoMessage() {} func (x *URLData) ProtoReflect() protoreflect.Message { - mi := &file_authentication_proto_msgTypes[6] + mi := &file_authentication_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -457,7 +1213,7 @@ func (x *URLData) ProtoReflect() protoreflect.Message { // Deprecated: Use URLData.ProtoReflect.Descriptor instead. func (*URLData) Descriptor() ([]byte, []int) { - return file_authentication_proto_rawDescGZIP(), []int{6} + return file_authentication_proto_rawDescGZIP(), []int{17} } func (x *URLData) GetPairingKey() []byte { @@ -493,7 +1249,7 @@ type TokenData struct { func (x *TokenData) Reset() { *x = TokenData{} if protoimpl.UnsafeEnabled { - mi := &file_authentication_proto_msgTypes[7] + mi := &file_authentication_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -506,7 +1262,7 @@ func (x *TokenData) String() string { func (*TokenData) ProtoMessage() {} func (x *TokenData) ProtoReflect() protoreflect.Message { - mi := &file_authentication_proto_msgTypes[7] + mi := &file_authentication_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -519,7 +1275,7 @@ func (x *TokenData) ProtoReflect() protoreflect.Message { // Deprecated: Use TokenData.ProtoReflect.Descriptor instead. func (*TokenData) Descriptor() ([]byte, []int) { - return file_authentication_proto_rawDescGZIP(), []int{7} + return file_authentication_proto_rawDescGZIP(), []int{18} } func (x *TokenData) GetTachyonAuthToken() []byte { @@ -549,7 +1305,7 @@ type PairedData struct { func (x *PairedData) Reset() { *x = PairedData{} if protoimpl.UnsafeEnabled { - mi := &file_authentication_proto_msgTypes[8] + mi := &file_authentication_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -562,7 +1318,7 @@ func (x *PairedData) String() string { func (*PairedData) ProtoMessage() {} func (x *PairedData) ProtoReflect() protoreflect.Message { - mi := &file_authentication_proto_msgTypes[8] + mi := &file_authentication_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -575,7 +1331,7 @@ func (x *PairedData) ProtoReflect() protoreflect.Message { // Deprecated: Use PairedData.ProtoReflect.Descriptor instead. func (*PairedData) Descriptor() ([]byte, []int) { - return file_authentication_proto_rawDescGZIP(), []int{8} + return file_authentication_proto_rawDescGZIP(), []int{19} } func (x *PairedData) GetMobile() *Device { @@ -610,7 +1366,7 @@ type RevokePairData struct { func (x *RevokePairData) Reset() { *x = RevokePairData{} if protoimpl.UnsafeEnabled { - mi := &file_authentication_proto_msgTypes[9] + mi := &file_authentication_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -623,7 +1379,7 @@ func (x *RevokePairData) String() string { func (*RevokePairData) ProtoMessage() {} func (x *RevokePairData) ProtoReflect() protoreflect.Message { - mi := &file_authentication_proto_msgTypes[9] + mi := &file_authentication_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -636,7 +1392,7 @@ func (x *RevokePairData) ProtoReflect() protoreflect.Message { // Deprecated: Use RevokePairData.ProtoReflect.Descriptor instead. func (*RevokePairData) Descriptor() ([]byte, []int) { - return file_authentication_proto_rawDescGZIP(), []int{9} + return file_authentication_proto_rawDescGZIP(), []int{20} } func (x *RevokePairData) GetRevokedDevice() *Device { @@ -646,6 +1402,163 @@ func (x *RevokePairData) GetRevokedDevice() *Device { return nil } +type RegisterRefreshRequest_NestedEmptyArr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EmptyArr *EmptyArr `protobuf:"bytes,9,opt,name=emptyArr,proto3" json:"emptyArr,omitempty"` +} + +func (x *RegisterRefreshRequest_NestedEmptyArr) Reset() { + *x = RegisterRefreshRequest_NestedEmptyArr{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegisterRefreshRequest_NestedEmptyArr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterRefreshRequest_NestedEmptyArr) ProtoMessage() {} + +func (x *RegisterRefreshRequest_NestedEmptyArr) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[21] + 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 RegisterRefreshRequest_NestedEmptyArr.ProtoReflect.Descriptor instead. +func (*RegisterRefreshRequest_NestedEmptyArr) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{7, 0} +} + +func (x *RegisterRefreshRequest_NestedEmptyArr) GetEmptyArr() *EmptyArr { + if x != nil { + return x.EmptyArr + } + return nil +} + +type RegisterRefreshResponse_AuthKeyData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TachyonAuthToken []byte `protobuf:"bytes,1,opt,name=tachyonAuthToken,proto3" json:"tachyonAuthToken,omitempty"` + ValidFor string `protobuf:"bytes,2,opt,name=validFor,proto3" json:"validFor,omitempty"` +} + +func (x *RegisterRefreshResponse_AuthKeyData) Reset() { + *x = RegisterRefreshResponse_AuthKeyData{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegisterRefreshResponse_AuthKeyData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterRefreshResponse_AuthKeyData) ProtoMessage() {} + +func (x *RegisterRefreshResponse_AuthKeyData) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[22] + 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 RegisterRefreshResponse_AuthKeyData.ProtoReflect.Descriptor instead. +func (*RegisterRefreshResponse_AuthKeyData) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{8, 0} +} + +func (x *RegisterRefreshResponse_AuthKeyData) GetTachyonAuthToken() []byte { + if x != nil { + return x.TachyonAuthToken + } + return nil +} + +func (x *RegisterRefreshResponse_AuthKeyData) GetValidFor() string { + if x != nil { + return x.ValidFor + } + return "" +} + +type RegisterPhoneRelayResponse_AuthKeyData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TachyonAuthToken []byte `protobuf:"bytes,1,opt,name=tachyonAuthToken,proto3" json:"tachyonAuthToken,omitempty"` + ValidFor int64 `protobuf:"varint,2,opt,name=validFor,proto3" json:"validFor,omitempty"` +} + +func (x *RegisterPhoneRelayResponse_AuthKeyData) Reset() { + *x = RegisterPhoneRelayResponse_AuthKeyData{} + if protoimpl.UnsafeEnabled { + mi := &file_authentication_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegisterPhoneRelayResponse_AuthKeyData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterPhoneRelayResponse_AuthKeyData) ProtoMessage() {} + +func (x *RegisterPhoneRelayResponse_AuthKeyData) ProtoReflect() protoreflect.Message { + mi := &file_authentication_proto_msgTypes[23] + 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 RegisterPhoneRelayResponse_AuthKeyData.ProtoReflect.Descriptor instead. +func (*RegisterPhoneRelayResponse_AuthKeyData) Descriptor() ([]byte, []int) { + return file_authentication_proto_rawDescGZIP(), []int{9, 0} +} + +func (x *RegisterPhoneRelayResponse_AuthKeyData) GetTachyonAuthToken() []byte { + if x != nil { + return x.TachyonAuthToken + } + return nil +} + +func (x *RegisterPhoneRelayResponse_AuthKeyData) GetValidFor() int64 { + if x != nil { + return x.ValidFor + } + return 0 +} + var File_authentication_proto protoreflect.FileDescriptor //go:embed authentication.pb.raw @@ -663,42 +1576,69 @@ func file_authentication_proto_rawDescGZIP() []byte { return file_authentication_proto_rawDescData } -var file_authentication_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_authentication_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_authentication_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_authentication_proto_goTypes = []interface{}{ - (*BrowserDetails)(nil), // 0: authentication.BrowserDetails - (*AuthenticationContainer)(nil), // 1: authentication.AuthenticationContainer - (*ECDSAKeys)(nil), // 2: authentication.ECDSAKeys - (*KeyData)(nil), // 3: authentication.KeyData - (*WebAuthKey)(nil), // 4: authentication.WebAuthKey - (*CurrentDeviceData)(nil), // 5: authentication.CurrentDeviceData - (*URLData)(nil), // 6: authentication.URLData - (*TokenData)(nil), // 7: authentication.TokenData - (*PairedData)(nil), // 8: authentication.PairedData - (*RevokePairData)(nil), // 9: authentication.RevokePairData - (BrowserTypes)(0), // 10: client.BrowserTypes - (*AuthMessage)(nil), // 11: messages.AuthMessage - (*Device)(nil), // 12: messages.Device + (BrowserType)(0), // 0: authentication.BrowserType + (*BrowserDetails)(nil), // 1: authentication.BrowserDetails + (*Device)(nil), // 2: authentication.Device + (*ConfigVersion)(nil), // 3: authentication.ConfigVersion + (*AuthenticationContainer)(nil), // 4: authentication.AuthenticationContainer + (*AuthMessage)(nil), // 5: authentication.AuthMessage + (*RevokeRelayPairingRequest)(nil), // 6: authentication.RevokeRelayPairingRequest + (*RevokeRelayPairingResponse)(nil), // 7: authentication.RevokeRelayPairingResponse + (*RegisterRefreshRequest)(nil), // 8: authentication.RegisterRefreshRequest + (*RegisterRefreshResponse)(nil), // 9: authentication.RegisterRefreshResponse + (*RegisterPhoneRelayResponse)(nil), // 10: authentication.RegisterPhoneRelayResponse + (*CoordinateMessage)(nil), // 11: authentication.CoordinateMessage + (*RefreshPhoneRelayResponse)(nil), // 12: authentication.RefreshPhoneRelayResponse + (*WebEncryptionKeyResponse)(nil), // 13: authentication.WebEncryptionKeyResponse + (*ECDSAKeys)(nil), // 14: authentication.ECDSAKeys + (*CurrentDeviceData)(nil), // 15: authentication.CurrentDeviceData + (*KeyData)(nil), // 16: authentication.KeyData + (*WebAuthKey)(nil), // 17: authentication.WebAuthKey + (*URLData)(nil), // 18: authentication.URLData + (*TokenData)(nil), // 19: authentication.TokenData + (*PairedData)(nil), // 20: authentication.PairedData + (*RevokePairData)(nil), // 21: authentication.RevokePairData + (*RegisterRefreshRequest_NestedEmptyArr)(nil), // 22: authentication.RegisterRefreshRequest.NestedEmptyArr + (*RegisterRefreshResponse_AuthKeyData)(nil), // 23: authentication.RegisterRefreshResponse.AuthKeyData + (*RegisterPhoneRelayResponse_AuthKeyData)(nil), // 24: authentication.RegisterPhoneRelayResponse.AuthKeyData + (*EmptyArr)(nil), // 25: util.EmptyArr } var file_authentication_proto_depIdxs = []int32{ - 10, // 0: authentication.BrowserDetails.browserType:type_name -> client.BrowserTypes - 11, // 1: authentication.AuthenticationContainer.authMessage:type_name -> messages.AuthMessage - 0, // 2: authentication.AuthenticationContainer.browserDetails:type_name -> authentication.BrowserDetails - 3, // 3: authentication.AuthenticationContainer.keyData:type_name -> authentication.KeyData - 5, // 4: authentication.AuthenticationContainer.deviceData:type_name -> authentication.CurrentDeviceData - 12, // 5: authentication.KeyData.mobile:type_name -> messages.Device - 2, // 6: authentication.KeyData.ecdsaKeys:type_name -> authentication.ECDSAKeys - 4, // 7: authentication.KeyData.webAuthKeyData:type_name -> authentication.WebAuthKey - 12, // 8: authentication.KeyData.browser:type_name -> messages.Device - 12, // 9: authentication.CurrentDeviceData.browser:type_name -> messages.Device - 12, // 10: authentication.PairedData.mobile:type_name -> messages.Device - 7, // 11: authentication.PairedData.tokenData:type_name -> authentication.TokenData - 12, // 12: authentication.PairedData.browser:type_name -> messages.Device - 12, // 13: authentication.RevokePairData.revokedDevice:type_name -> messages.Device - 14, // [14:14] is the sub-list for method output_type - 14, // [14:14] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name + 0, // 0: authentication.BrowserDetails.browserType:type_name -> authentication.BrowserType + 5, // 1: authentication.AuthenticationContainer.authMessage:type_name -> authentication.AuthMessage + 1, // 2: authentication.AuthenticationContainer.browserDetails:type_name -> authentication.BrowserDetails + 16, // 3: authentication.AuthenticationContainer.keyData:type_name -> authentication.KeyData + 15, // 4: authentication.AuthenticationContainer.deviceData:type_name -> authentication.CurrentDeviceData + 3, // 5: authentication.AuthMessage.configVersion:type_name -> authentication.ConfigVersion + 5, // 6: authentication.RevokeRelayPairingRequest.authMessage:type_name -> authentication.AuthMessage + 2, // 7: authentication.RevokeRelayPairingRequest.browser:type_name -> authentication.Device + 5, // 8: authentication.RegisterRefreshRequest.messageAuth:type_name -> authentication.AuthMessage + 2, // 9: authentication.RegisterRefreshRequest.currBrowserDevice:type_name -> authentication.Device + 22, // 10: authentication.RegisterRefreshRequest.emptyRefreshArr:type_name -> authentication.RegisterRefreshRequest.NestedEmptyArr + 23, // 11: authentication.RegisterRefreshResponse.tokenData:type_name -> authentication.RegisterRefreshResponse.AuthKeyData + 11, // 12: authentication.RegisterPhoneRelayResponse.coordinates:type_name -> authentication.CoordinateMessage + 2, // 13: authentication.RegisterPhoneRelayResponse.browser:type_name -> authentication.Device + 24, // 14: authentication.RegisterPhoneRelayResponse.authKeyData:type_name -> authentication.RegisterPhoneRelayResponse.AuthKeyData + 11, // 15: authentication.RefreshPhoneRelayResponse.coordinates:type_name -> authentication.CoordinateMessage + 11, // 16: authentication.WebEncryptionKeyResponse.coordinates:type_name -> authentication.CoordinateMessage + 2, // 17: authentication.CurrentDeviceData.browser:type_name -> authentication.Device + 2, // 18: authentication.KeyData.mobile:type_name -> authentication.Device + 14, // 19: authentication.KeyData.ecdsaKeys:type_name -> authentication.ECDSAKeys + 17, // 20: authentication.KeyData.webAuthKeyData:type_name -> authentication.WebAuthKey + 2, // 21: authentication.KeyData.browser:type_name -> authentication.Device + 2, // 22: authentication.PairedData.mobile:type_name -> authentication.Device + 19, // 23: authentication.PairedData.tokenData:type_name -> authentication.TokenData + 2, // 24: authentication.PairedData.browser:type_name -> authentication.Device + 2, // 25: authentication.RevokePairData.revokedDevice:type_name -> authentication.Device + 25, // 26: authentication.RegisterRefreshRequest.NestedEmptyArr.emptyArr:type_name -> util.EmptyArr + 27, // [27:27] is the sub-list for method output_type + 27, // [27:27] is the sub-list for method input_type + 27, // [27:27] is the sub-list for extension type_name + 27, // [27:27] is the sub-list for extension extendee + 0, // [0:27] is the sub-list for field type_name } func init() { file_authentication_proto_init() } @@ -706,8 +1646,7 @@ func file_authentication_proto_init() { if File_authentication_proto != nil { return } - file_messages_proto_init() - file_client_proto_init() + file_util_proto_init() if !protoimpl.UnsafeEnabled { file_authentication_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BrowserDetails); i { @@ -722,7 +1661,7 @@ func file_authentication_proto_init() { } } file_authentication_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthenticationContainer); i { + switch v := v.(*Device); i { case 0: return &v.state case 1: @@ -734,7 +1673,7 @@ func file_authentication_proto_init() { } } file_authentication_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ECDSAKeys); i { + switch v := v.(*ConfigVersion); i { case 0: return &v.state case 1: @@ -746,7 +1685,7 @@ func file_authentication_proto_init() { } } file_authentication_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyData); i { + switch v := v.(*AuthenticationContainer); i { case 0: return &v.state case 1: @@ -758,7 +1697,7 @@ func file_authentication_proto_init() { } } file_authentication_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WebAuthKey); i { + switch v := v.(*AuthMessage); i { case 0: return &v.state case 1: @@ -770,7 +1709,7 @@ func file_authentication_proto_init() { } } file_authentication_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CurrentDeviceData); i { + switch v := v.(*RevokeRelayPairingRequest); i { case 0: return &v.state case 1: @@ -782,7 +1721,7 @@ func file_authentication_proto_init() { } } file_authentication_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*URLData); i { + switch v := v.(*RevokeRelayPairingResponse); i { case 0: return &v.state case 1: @@ -794,7 +1733,7 @@ func file_authentication_proto_init() { } } file_authentication_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenData); i { + switch v := v.(*RegisterRefreshRequest); i { case 0: return &v.state case 1: @@ -806,7 +1745,7 @@ func file_authentication_proto_init() { } } file_authentication_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PairedData); i { + switch v := v.(*RegisterRefreshResponse); i { case 0: return &v.state case 1: @@ -818,6 +1757,138 @@ func file_authentication_proto_init() { } } file_authentication_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterPhoneRelayResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CoordinateMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshPhoneRelayResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WebEncryptionKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ECDSAKeys); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CurrentDeviceData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KeyData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WebAuthKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*URLData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokenData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PairedData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RevokePairData); i { case 0: return &v.state @@ -829,23 +1900,61 @@ func file_authentication_proto_init() { return nil } } + file_authentication_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterRefreshRequest_NestedEmptyArr); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterRefreshResponse_AuthKeyData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_authentication_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterPhoneRelayResponse_AuthKeyData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - file_authentication_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_authentication_proto_msgTypes[3].OneofWrappers = []interface{}{ (*AuthenticationContainer_KeyData)(nil), (*AuthenticationContainer_DeviceData)(nil), } + file_authentication_proto_msgTypes[4].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_authentication_proto_rawDesc, - NumEnums: 0, - NumMessages: 10, + NumEnums: 1, + NumMessages: 24, NumExtensions: 0, NumServices: 0, }, GoTypes: file_authentication_proto_goTypes, DependencyIndexes: file_authentication_proto_depIdxs, + EnumInfos: file_authentication_proto_enumTypes, MessageInfos: file_authentication_proto_msgTypes, }.Build() File_authentication_proto = out.File diff --git a/libgm/gmproto/authentication.pb.raw b/libgm/gmproto/authentication.pb.raw index ab5f458f4ef49e5d1f0583e7a0a585e126dce371..8a7d6b5ce468a9b8b2dd3a06a57aeffe8195c989 100644 GIT binary patch literal 3461 zcmb_f%~Bgj5cVP@p5Os{e9Cjf^~ZmUNARwdUoh|Zf)#) zp+`z_Z51Y=Gn8w_?;4aEzIPokzr{k^83yD56ee7(4|t%8_E`I}Ko<(~J?LlBzB?VW z$`W5MnV;3-ThvrYG@(&@Qi7$fJw`Sl zhbis0L_Qg+BAJmP&z?A=9#_m8{U=Cl++PRmlql{}QrUDJa=A-Y&srJ%$S3 zn>X5JKK2s(w#S0N9xzdxp6(@jD-#;ECp%D5P$=j`0lN9<1~ilvO?Z)Q$X~K)%MNW( ztZr^513Z_@?R#`)NtytC0gmv)hUn(!Nx$aA_c@CsifG6qMBExVSnhMJ@wWzgq)eos z&)!T}5Gu$y1?LL#Fo7(lrJ(*r)5udOhj#B`>bV%Q>s>NeP^;M1Xlex=ny}i7@VWV+4RrS?< zzp^T5{7tfV@9soxpYP537RKPtG#QON23=JyMrB#dgs7_e3`+4Ji2 zQ5;b|81cR=(1_+^LKG>;_zKpV$p+({EP&Y(i1IsGO2%(u&WVwcE{)IHC@^<~lV9x! z4kClpF4CD8g9RTM(JJ0R<%FGCZqJ{N@pZ)AKQ7DoZxj*!Lxw7+Tetf{?31DRY5b`H;JbqL?}~5o&Pd@qPc?Eg+yR??D9P6crYn+t z2CKe!9re|l;J*nSH+~X=9{J0`yS;w2|9ro5vVYp3os&b0o_1d!Smk@90NGBrZPBtu z0CLSX?d)0QC89%qXO~(#omb@yE*#c(>U6ifEbI>~S}$iw4wiPUa*nLPveo**D(4%; SAE8!zIv9z+S!X%%v;8mUAum|~ delta 465 zcmZpbzRWd2U7jyDwYWGjJ+)Y`peVm2Uy3I=Co?s#1j19AG||LB%Z!UVsVKj^IJGFG zvLIE0Nr6#=&qzcMs?Z4`RXlO3mFyfQE^)`wk_@0BnaPPInfZCn`FSOYnR%&2Lgte< zGKz4C>cQ-s{D4_%@_WWplP7X|tKDJbV)st1bV)2p6w=^g%gs;9%t@7C1lq=JB!JN3 z&($lf#l;SFkpwfk{9mqUdwVWH=hC7gpc7nD%QBNw!Db?9LN`f|u)RhqLI zxwrxnGmBDF2)Rg~$Fm;EaC8@;8D6C1!NnJpT9%)k3NjvSxEU935m+Pz;t&j9!^}Wc T=EM`lrKhK#o?9@vl9vYnuQHTA diff --git a/libgm/gmproto/authentication.proto b/libgm/gmproto/authentication.proto index bb86bfa..710c413 100644 --- a/libgm/gmproto/authentication.proto +++ b/libgm/gmproto/authentication.proto @@ -3,18 +3,42 @@ package authentication; option go_package = "../gmproto"; -import "messages.proto"; -import "client.proto"; +import "util.proto"; + +enum BrowserType { + UNKNOWN_BROWSER_TYPE = 0; + OTHER = 1; + CHROME = 2; + FIREFOX = 3; + SAFARI = 4; + OPERA = 5; + IE = 6; + EDGE = 7; +} message BrowserDetails { string userAgent = 1; - client.BrowserTypes browserType = 2; + BrowserType browserType = 2; string OS = 3; bool someBool = 6; } +message Device { + int64 userID = 1; + string sourceID = 2; + string network = 3; +} + +message ConfigVersion { + int32 Year = 3; + int32 Month = 4; + int32 Day = 5; + int32 V1 = 7; + int32 V2 = 9; +} + message AuthenticationContainer { - messages.AuthMessage authMessage = 1; + AuthMessage authMessage = 1; BrowserDetails browserDetails = 3; oneof data { @@ -23,16 +47,87 @@ message AuthenticationContainer { } } +message AuthMessage { + string requestID = 1; + optional string network = 3; + optional bytes tachyonAuthToken = 6; + ConfigVersion configVersion = 7; +} + +message RevokeRelayPairingRequest { + AuthMessage authMessage = 1; + Device browser = 2; +} + +message RevokeRelayPairingResponse { + // field 1 is an object with an unknown int64 in field 2 +} + +message RegisterRefreshRequest { + message NestedEmptyArr { + util.EmptyArr emptyArr = 9; + } + + AuthMessage messageAuth = 1; + Device currBrowserDevice = 2; + int64 unixTimestamp = 3; + bytes signature = 4; + NestedEmptyArr emptyRefreshArr = 13; + int32 messageType = 16; +} + +message RegisterRefreshResponse { + message AuthKeyData { + bytes tachyonAuthToken = 1; + string validFor = 2; + } + + AuthKeyData tokenData = 2; +} + +message RegisterPhoneRelayResponse { + message AuthKeyData { + bytes tachyonAuthToken = 1; + int64 validFor = 2; + } + + CoordinateMessage coordinates = 1; + Device browser = 2; + bytes pairingKey = 3; + int64 validFor = 4; + AuthKeyData authKeyData = 5; + string responseID = 6; +} + +message CoordinateMessage { + int64 coord1 = 2; +} + +message RefreshPhoneRelayResponse { + CoordinateMessage coordinates = 1; + bytes pairKey = 2; + int64 validFor = 3; +} + +message WebEncryptionKeyResponse { + CoordinateMessage coordinates = 1; + bytes key = 2; +} + message ECDSAKeys { int64 field1 = 1; // idk? bytes encryptedKeys = 2; } +message CurrentDeviceData { + authentication.Device browser = 1; +} + message KeyData { - messages.Device mobile = 1; + Device mobile = 1; ECDSAKeys ecdsaKeys = 6; WebAuthKey webAuthKeyData = 2; - messages.Device browser = 3; + Device browser = 3; } message WebAuthKey { @@ -40,10 +135,6 @@ message WebAuthKey { int64 validFor = 2; } -message CurrentDeviceData { - messages.Device browser = 1; -} - message URLData { bytes pairingKey = 1; bytes AESKey = 2; @@ -56,11 +147,11 @@ message TokenData { } message PairedData { - messages.Device mobile = 1; + Device mobile = 1; TokenData tokenData = 2; - messages.Device browser = 3; + Device browser = 3; } message RevokePairData { - messages.Device revokedDevice = 1; + Device revokedDevice = 1; } diff --git a/libgm/gmproto/client.pb.go b/libgm/gmproto/client.pb.go index 05b50ee..7d07714 100644 --- a/libgm/gmproto/client.pb.go +++ b/libgm/gmproto/client.pb.go @@ -22,156 +22,310 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type BugleMessageType int32 +type ConversationStatus int32 const ( - BugleMessageType_UNKNOWN_BUGLE_MESSAGE_TYPE BugleMessageType = 0 - BugleMessageType_SMS BugleMessageType = 1 - BugleMessageType_MMS BugleMessageType = 2 - BugleMessageType_RCS BugleMessageType = 3 - BugleMessageType_CLOUD_SYNC BugleMessageType = 4 - BugleMessageType_IMDN_DELIVERED BugleMessageType = 5 - BugleMessageType_IMDN_DISPLAYED BugleMessageType = 6 - BugleMessageType_IMDN_FALLBACK BugleMessageType = 7 - BugleMessageType_RCS_GENERIC BugleMessageType = 8 - BugleMessageType_FTD BugleMessageType = 9 - BugleMessageType_FT_E2EE_LEGACY BugleMessageType = 10 - BugleMessageType_FT_E2EE_XML BugleMessageType = 11 - BugleMessageType_LIGHTER_MESSAGE BugleMessageType = 12 - BugleMessageType_RBM_SPAM_REPORT BugleMessageType = 13 - BugleMessageType_SATELLITE BugleMessageType = 14 + ConversationStatus_UNKNOWN_STATUS ConversationStatus = 0 + ConversationStatus_UNARCHIVE ConversationStatus = 1 + ConversationStatus_ARCHIVE ConversationStatus = 2 + ConversationStatus_DELETE ConversationStatus = 3 ) -// Enum value maps for BugleMessageType. +// Enum value maps for ConversationStatus. var ( - BugleMessageType_name = map[int32]string{ - 0: "UNKNOWN_BUGLE_MESSAGE_TYPE", - 1: "SMS", - 2: "MMS", - 3: "RCS", - 4: "CLOUD_SYNC", - 5: "IMDN_DELIVERED", - 6: "IMDN_DISPLAYED", - 7: "IMDN_FALLBACK", - 8: "RCS_GENERIC", - 9: "FTD", - 10: "FT_E2EE_LEGACY", - 11: "FT_E2EE_XML", - 12: "LIGHTER_MESSAGE", - 13: "RBM_SPAM_REPORT", - 14: "SATELLITE", + ConversationStatus_name = map[int32]string{ + 0: "UNKNOWN_STATUS", + 1: "UNARCHIVE", + 2: "ARCHIVE", + 3: "DELETE", } - BugleMessageType_value = map[string]int32{ - "UNKNOWN_BUGLE_MESSAGE_TYPE": 0, - "SMS": 1, - "MMS": 2, - "RCS": 3, - "CLOUD_SYNC": 4, - "IMDN_DELIVERED": 5, - "IMDN_DISPLAYED": 6, - "IMDN_FALLBACK": 7, - "RCS_GENERIC": 8, - "FTD": 9, - "FT_E2EE_LEGACY": 10, - "FT_E2EE_XML": 11, - "LIGHTER_MESSAGE": 12, - "RBM_SPAM_REPORT": 13, - "SATELLITE": 14, + ConversationStatus_value = map[string]int32{ + "UNKNOWN_STATUS": 0, + "UNARCHIVE": 1, + "ARCHIVE": 2, + "DELETE": 3, } ) -func (x BugleMessageType) Enum() *BugleMessageType { - p := new(BugleMessageType) +func (x ConversationStatus) Enum() *ConversationStatus { + p := new(ConversationStatus) *p = x return p } -func (x BugleMessageType) String() string { +func (x ConversationStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (BugleMessageType) Descriptor() protoreflect.EnumDescriptor { +func (ConversationStatus) Descriptor() protoreflect.EnumDescriptor { return file_client_proto_enumTypes[0].Descriptor() } -func (BugleMessageType) Type() protoreflect.EnumType { +func (ConversationStatus) Type() protoreflect.EnumType { return &file_client_proto_enumTypes[0] } -func (x BugleMessageType) Number() protoreflect.EnumNumber { +func (x ConversationStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use BugleMessageType.Descriptor instead. -func (BugleMessageType) EnumDescriptor() ([]byte, []int) { +// Deprecated: Use ConversationStatus.Descriptor instead. +func (ConversationStatus) EnumDescriptor() ([]byte, []int) { return file_client_proto_rawDescGZIP(), []int{0} } -type BrowserTypes int32 +type ConversationActionStatus int32 const ( - BrowserTypes_UNKNOWN_BROWSER_TYPE BrowserTypes = 0 - BrowserTypes_OTHER BrowserTypes = 1 - BrowserTypes_CHROME BrowserTypes = 2 - BrowserTypes_FIREFOX BrowserTypes = 3 - BrowserTypes_SAFARI BrowserTypes = 4 - BrowserTypes_OPERA BrowserTypes = 5 - BrowserTypes_IE BrowserTypes = 6 - BrowserTypes_EDGE BrowserTypes = 7 + ConversationActionStatus_UNKNOWN_ACTION_STATUS ConversationActionStatus = 0 + ConversationActionStatus_UNBLOCK ConversationActionStatus = 2 + ConversationActionStatus_BLOCK ConversationActionStatus = 7 + ConversationActionStatus_BLOCK_AND_REPORT ConversationActionStatus = 8 ) -// Enum value maps for BrowserTypes. +// Enum value maps for ConversationActionStatus. var ( - BrowserTypes_name = map[int32]string{ - 0: "UNKNOWN_BROWSER_TYPE", - 1: "OTHER", - 2: "CHROME", - 3: "FIREFOX", - 4: "SAFARI", - 5: "OPERA", - 6: "IE", - 7: "EDGE", + ConversationActionStatus_name = map[int32]string{ + 0: "UNKNOWN_ACTION_STATUS", + 2: "UNBLOCK", + 7: "BLOCK", + 8: "BLOCK_AND_REPORT", } - BrowserTypes_value = map[string]int32{ - "UNKNOWN_BROWSER_TYPE": 0, - "OTHER": 1, - "CHROME": 2, - "FIREFOX": 3, - "SAFARI": 4, - "OPERA": 5, - "IE": 6, - "EDGE": 7, + ConversationActionStatus_value = map[string]int32{ + "UNKNOWN_ACTION_STATUS": 0, + "UNBLOCK": 2, + "BLOCK": 7, + "BLOCK_AND_REPORT": 8, } ) -func (x BrowserTypes) Enum() *BrowserTypes { - p := new(BrowserTypes) +func (x ConversationActionStatus) Enum() *ConversationActionStatus { + p := new(ConversationActionStatus) *p = x return p } -func (x BrowserTypes) String() string { +func (x ConversationActionStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (BrowserTypes) Descriptor() protoreflect.EnumDescriptor { +func (ConversationActionStatus) Descriptor() protoreflect.EnumDescriptor { return file_client_proto_enumTypes[1].Descriptor() } -func (BrowserTypes) Type() protoreflect.EnumType { +func (ConversationActionStatus) Type() protoreflect.EnumType { return &file_client_proto_enumTypes[1] } -func (x BrowserTypes) Number() protoreflect.EnumNumber { +func (x ConversationActionStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use BrowserTypes.Descriptor instead. -func (BrowserTypes) EnumDescriptor() ([]byte, []int) { +// Deprecated: Use ConversationActionStatus.Descriptor instead. +func (ConversationActionStatus) EnumDescriptor() ([]byte, []int) { return file_client_proto_rawDescGZIP(), []int{1} } -type NotifyDittoActivityPayload struct { +type ConversationMuteStatus int32 + +const ( + ConversationMuteStatus_UNMUTE ConversationMuteStatus = 0 + ConversationMuteStatus_MUTE ConversationMuteStatus = 1 +) + +// Enum value maps for ConversationMuteStatus. +var ( + ConversationMuteStatus_name = map[int32]string{ + 0: "UNMUTE", + 1: "MUTE", + } + ConversationMuteStatus_value = map[string]int32{ + "UNMUTE": 0, + "MUTE": 1, + } +) + +func (x ConversationMuteStatus) Enum() *ConversationMuteStatus { + p := new(ConversationMuteStatus) + *p = x + return p +} + +func (x ConversationMuteStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConversationMuteStatus) Descriptor() protoreflect.EnumDescriptor { + return file_client_proto_enumTypes[2].Descriptor() +} + +func (ConversationMuteStatus) Type() protoreflect.EnumType { + return &file_client_proto_enumTypes[2] +} + +func (x ConversationMuteStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ConversationMuteStatus.Descriptor instead. +func (ConversationMuteStatus) EnumDescriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{2} +} + +type ListConversationsRequest_Folder int32 + +const ( + ListConversationsRequest_UNKNOWN ListConversationsRequest_Folder = 0 + ListConversationsRequest_INBOX ListConversationsRequest_Folder = 1 + ListConversationsRequest_ARCHIVE ListConversationsRequest_Folder = 2 + ListConversationsRequest_SPAM_BLOCKED ListConversationsRequest_Folder = 5 +) + +// Enum value maps for ListConversationsRequest_Folder. +var ( + ListConversationsRequest_Folder_name = map[int32]string{ + 0: "UNKNOWN", + 1: "INBOX", + 2: "ARCHIVE", + 5: "SPAM_BLOCKED", + } + ListConversationsRequest_Folder_value = map[string]int32{ + "UNKNOWN": 0, + "INBOX": 1, + "ARCHIVE": 2, + "SPAM_BLOCKED": 5, + } +) + +func (x ListConversationsRequest_Folder) Enum() *ListConversationsRequest_Folder { + p := new(ListConversationsRequest_Folder) + *p = x + return p +} + +func (x ListConversationsRequest_Folder) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ListConversationsRequest_Folder) Descriptor() protoreflect.EnumDescriptor { + return file_client_proto_enumTypes[3].Descriptor() +} + +func (ListConversationsRequest_Folder) Type() protoreflect.EnumType { + return &file_client_proto_enumTypes[3] +} + +func (x ListConversationsRequest_Folder) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ListConversationsRequest_Folder.Descriptor instead. +func (ListConversationsRequest_Folder) EnumDescriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{22, 0} +} + +type GetOrCreateConversationResponse_Status int32 + +const ( + GetOrCreateConversationResponse_UNKNOWN GetOrCreateConversationResponse_Status = 0 + GetOrCreateConversationResponse_SUCCESS GetOrCreateConversationResponse_Status = 1 + GetOrCreateConversationResponse_CREATE_RCS GetOrCreateConversationResponse_Status = 3 +) + +// Enum value maps for GetOrCreateConversationResponse_Status. +var ( + GetOrCreateConversationResponse_Status_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SUCCESS", + 3: "CREATE_RCS", + } + GetOrCreateConversationResponse_Status_value = map[string]int32{ + "UNKNOWN": 0, + "SUCCESS": 1, + "CREATE_RCS": 3, + } +) + +func (x GetOrCreateConversationResponse_Status) Enum() *GetOrCreateConversationResponse_Status { + p := new(GetOrCreateConversationResponse_Status) + *p = x + return p +} + +func (x GetOrCreateConversationResponse_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GetOrCreateConversationResponse_Status) Descriptor() protoreflect.EnumDescriptor { + return file_client_proto_enumTypes[4].Descriptor() +} + +func (GetOrCreateConversationResponse_Status) Type() protoreflect.EnumType { + return &file_client_proto_enumTypes[4] +} + +func (x GetOrCreateConversationResponse_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GetOrCreateConversationResponse_Status.Descriptor instead. +func (GetOrCreateConversationResponse_Status) EnumDescriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{25, 0} +} + +type SendReactionRequest_Action int32 + +const ( + SendReactionRequest_UNSPECIFIED SendReactionRequest_Action = 0 + SendReactionRequest_ADD SendReactionRequest_Action = 1 + SendReactionRequest_REMOVE SendReactionRequest_Action = 2 + SendReactionRequest_SWITCH SendReactionRequest_Action = 3 +) + +// Enum value maps for SendReactionRequest_Action. +var ( + SendReactionRequest_Action_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "ADD", + 2: "REMOVE", + 3: "SWITCH", + } + SendReactionRequest_Action_value = map[string]int32{ + "UNSPECIFIED": 0, + "ADD": 1, + "REMOVE": 2, + "SWITCH": 3, + } +) + +func (x SendReactionRequest_Action) Enum() *SendReactionRequest_Action { + p := new(SendReactionRequest_Action) + *p = x + return p +} + +func (x SendReactionRequest_Action) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SendReactionRequest_Action) Descriptor() protoreflect.EnumDescriptor { + return file_client_proto_enumTypes[5].Descriptor() +} + +func (SendReactionRequest_Action) Type() protoreflect.EnumType { + return &file_client_proto_enumTypes[5] +} + +func (x SendReactionRequest_Action) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SendReactionRequest_Action.Descriptor instead. +func (SendReactionRequest_Action) EnumDescriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{44, 0} +} + +type NotifyDittoActivityRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -180,8 +334,8 @@ type NotifyDittoActivityPayload struct { Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` } -func (x *NotifyDittoActivityPayload) Reset() { - *x = NotifyDittoActivityPayload{} +func (x *NotifyDittoActivityRequest) Reset() { + *x = NotifyDittoActivityRequest{} if protoimpl.UnsafeEnabled { mi := &file_client_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -189,13 +343,13 @@ func (x *NotifyDittoActivityPayload) Reset() { } } -func (x *NotifyDittoActivityPayload) String() string { +func (x *NotifyDittoActivityRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*NotifyDittoActivityPayload) ProtoMessage() {} +func (*NotifyDittoActivityRequest) ProtoMessage() {} -func (x *NotifyDittoActivityPayload) ProtoReflect() protoreflect.Message { +func (x *NotifyDittoActivityRequest) ProtoReflect() protoreflect.Message { mi := &file_client_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -207,29 +361,26 @@ func (x *NotifyDittoActivityPayload) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NotifyDittoActivityPayload.ProtoReflect.Descriptor instead. -func (*NotifyDittoActivityPayload) Descriptor() ([]byte, []int) { +// Deprecated: Use NotifyDittoActivityRequest.ProtoReflect.Descriptor instead. +func (*NotifyDittoActivityRequest) Descriptor() ([]byte, []int) { return file_client_proto_rawDescGZIP(), []int{0} } -func (x *NotifyDittoActivityPayload) GetSuccess() bool { +func (x *NotifyDittoActivityRequest) GetSuccess() bool { if x != nil { return x.Success } return false } -type MessageReadPayload struct { +type NotifyDittoActivityResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"` - MessageID string `protobuf:"bytes,3,opt,name=messageID,proto3" json:"messageID,omitempty"` } -func (x *MessageReadPayload) Reset() { - *x = MessageReadPayload{} +func (x *NotifyDittoActivityResponse) Reset() { + *x = NotifyDittoActivityResponse{} if protoimpl.UnsafeEnabled { mi := &file_client_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -237,13 +388,13 @@ func (x *MessageReadPayload) Reset() { } } -func (x *MessageReadPayload) String() string { +func (x *NotifyDittoActivityResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MessageReadPayload) ProtoMessage() {} +func (*NotifyDittoActivityResponse) ProtoMessage() {} -func (x *MessageReadPayload) ProtoReflect() protoreflect.Message { +func (x *NotifyDittoActivityResponse) ProtoReflect() protoreflect.Message { mi := &file_client_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -255,37 +406,22 @@ func (x *MessageReadPayload) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MessageReadPayload.ProtoReflect.Descriptor instead. -func (*MessageReadPayload) Descriptor() ([]byte, []int) { +// Deprecated: Use NotifyDittoActivityResponse.ProtoReflect.Descriptor instead. +func (*NotifyDittoActivityResponse) Descriptor() ([]byte, []int) { return file_client_proto_rawDescGZIP(), []int{1} } -func (x *MessageReadPayload) GetConversationID() string { - if x != nil { - return x.ConversationID - } - return "" -} - -func (x *MessageReadPayload) GetMessageID() string { - if x != nil { - return x.MessageID - } - return "" -} - -type AckMessagePayload struct { +type ReceiveMessagesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AuthData *AuthMessage `protobuf:"bytes,1,opt,name=authData,proto3" json:"authData,omitempty"` - EmptyArr *EmptyArr `protobuf:"bytes,2,opt,name=emptyArr,proto3" json:"emptyArr,omitempty"` - Acks []*AckMessageData `protobuf:"bytes,4,rep,name=acks,proto3" json:"acks,omitempty"` + Auth *AuthMessage `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` + Unknown *ReceiveMessagesRequest_UnknownEmptyObject2 `protobuf:"bytes,4,opt,name=unknown,proto3,oneof" json:"unknown,omitempty"` } -func (x *AckMessagePayload) Reset() { - *x = AckMessagePayload{} +func (x *ReceiveMessagesRequest) Reset() { + *x = ReceiveMessagesRequest{} if protoimpl.UnsafeEnabled { mi := &file_client_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -293,13 +429,13 @@ func (x *AckMessagePayload) Reset() { } } -func (x *AckMessagePayload) String() string { +func (x *ReceiveMessagesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AckMessagePayload) ProtoMessage() {} +func (*ReceiveMessagesRequest) ProtoMessage() {} -func (x *AckMessagePayload) ProtoReflect() protoreflect.Message { +func (x *ReceiveMessagesRequest) ProtoReflect() protoreflect.Message { mi := &file_client_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -311,43 +447,36 @@ func (x *AckMessagePayload) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AckMessagePayload.ProtoReflect.Descriptor instead. -func (*AckMessagePayload) Descriptor() ([]byte, []int) { +// Deprecated: Use ReceiveMessagesRequest.ProtoReflect.Descriptor instead. +func (*ReceiveMessagesRequest) Descriptor() ([]byte, []int) { return file_client_proto_rawDescGZIP(), []int{2} } -func (x *AckMessagePayload) GetAuthData() *AuthMessage { +func (x *ReceiveMessagesRequest) GetAuth() *AuthMessage { if x != nil { - return x.AuthData + return x.Auth } return nil } -func (x *AckMessagePayload) GetEmptyArr() *EmptyArr { +func (x *ReceiveMessagesRequest) GetUnknown() *ReceiveMessagesRequest_UnknownEmptyObject2 { if x != nil { - return x.EmptyArr + return x.Unknown } return nil } -func (x *AckMessagePayload) GetAcks() []*AckMessageData { - if x != nil { - return x.Acks - } - return nil -} - -type AckMessageData struct { +type MessageReadRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` - Device *Device `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` + ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"` + MessageID string `protobuf:"bytes,3,opt,name=messageID,proto3" json:"messageID,omitempty"` } -func (x *AckMessageData) Reset() { - *x = AckMessageData{} +func (x *MessageReadRequest) Reset() { + *x = MessageReadRequest{} if protoimpl.UnsafeEnabled { mi := &file_client_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -355,13 +484,13 @@ func (x *AckMessageData) Reset() { } } -func (x *AckMessageData) String() string { +func (x *MessageReadRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AckMessageData) ProtoMessage() {} +func (*MessageReadRequest) ProtoMessage() {} -func (x *AckMessageData) ProtoReflect() protoreflect.Message { +func (x *MessageReadRequest) ProtoReflect() protoreflect.Message { mi := &file_client_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -373,36 +502,37 @@ func (x *AckMessageData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AckMessageData.ProtoReflect.Descriptor instead. -func (*AckMessageData) Descriptor() ([]byte, []int) { +// Deprecated: Use MessageReadRequest.ProtoReflect.Descriptor instead. +func (*MessageReadRequest) Descriptor() ([]byte, []int) { return file_client_proto_rawDescGZIP(), []int{3} } -func (x *AckMessageData) GetRequestID() string { +func (x *MessageReadRequest) GetConversationID() string { if x != nil { - return x.RequestID + return x.ConversationID } return "" } -func (x *AckMessageData) GetDevice() *Device { +func (x *MessageReadRequest) GetMessageID() string { if x != nil { - return x.Device + return x.MessageID } - return nil + return "" } -type ImageMetaData struct { +type AckMessageRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ImageID string `protobuf:"bytes,1,opt,name=imageID,proto3" json:"imageID,omitempty"` - Encrypted bool `protobuf:"varint,2,opt,name=encrypted,proto3" json:"encrypted,omitempty"` + AuthData *AuthMessage `protobuf:"bytes,1,opt,name=authData,proto3" json:"authData,omitempty"` + EmptyArr *EmptyArr `protobuf:"bytes,2,opt,name=emptyArr,proto3" json:"emptyArr,omitempty"` + Acks []*AckMessageRequest_Message `protobuf:"bytes,4,rep,name=acks,proto3" json:"acks,omitempty"` } -func (x *ImageMetaData) Reset() { - *x = ImageMetaData{} +func (x *AckMessageRequest) Reset() { + *x = AckMessageRequest{} if protoimpl.UnsafeEnabled { mi := &file_client_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -410,13 +540,13 @@ func (x *ImageMetaData) Reset() { } } -func (x *ImageMetaData) String() string { +func (x *AckMessageRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ImageMetaData) ProtoMessage() {} +func (*AckMessageRequest) ProtoMessage() {} -func (x *ImageMetaData) ProtoReflect() protoreflect.Message { +func (x *AckMessageRequest) ProtoReflect() protoreflect.Message { mi := &file_client_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -428,36 +558,43 @@ func (x *ImageMetaData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ImageMetaData.ProtoReflect.Descriptor instead. -func (*ImageMetaData) Descriptor() ([]byte, []int) { +// Deprecated: Use AckMessageRequest.ProtoReflect.Descriptor instead. +func (*AckMessageRequest) Descriptor() ([]byte, []int) { return file_client_proto_rawDescGZIP(), []int{4} } -func (x *ImageMetaData) GetImageID() string { +func (x *AckMessageRequest) GetAuthData() *AuthMessage { if x != nil { - return x.ImageID + return x.AuthData } - return "" + return nil } -func (x *ImageMetaData) GetEncrypted() bool { +func (x *AckMessageRequest) GetEmptyArr() *EmptyArr { if x != nil { - return x.Encrypted + return x.EmptyArr } - return false + return nil } -type UploadImagePayload struct { +func (x *AckMessageRequest) GetAcks() []*AckMessageRequest_Message { + if x != nil { + return x.Acks + } + return nil +} + +type DownloadAttachmentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MetaData *ImageMetaData `protobuf:"bytes,1,opt,name=metaData,proto3" json:"metaData,omitempty"` - AuthData *AuthMessage `protobuf:"bytes,2,opt,name=authData,proto3" json:"authData,omitempty"` + Info *AttachmentInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` + AuthData *AuthMessage `protobuf:"bytes,2,opt,name=authData,proto3" json:"authData,omitempty"` } -func (x *UploadImagePayload) Reset() { - *x = UploadImagePayload{} +func (x *DownloadAttachmentRequest) Reset() { + *x = DownloadAttachmentRequest{} if protoimpl.UnsafeEnabled { mi := &file_client_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -465,13 +602,13 @@ func (x *UploadImagePayload) Reset() { } } -func (x *UploadImagePayload) String() string { +func (x *DownloadAttachmentRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UploadImagePayload) ProtoMessage() {} +func (*DownloadAttachmentRequest) ProtoMessage() {} -func (x *UploadImagePayload) ProtoReflect() protoreflect.Message { +func (x *DownloadAttachmentRequest) ProtoReflect() protoreflect.Message { mi := &file_client_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -483,35 +620,36 @@ func (x *UploadImagePayload) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UploadImagePayload.ProtoReflect.Descriptor instead. -func (*UploadImagePayload) Descriptor() ([]byte, []int) { +// Deprecated: Use DownloadAttachmentRequest.ProtoReflect.Descriptor instead. +func (*DownloadAttachmentRequest) Descriptor() ([]byte, []int) { return file_client_proto_rawDescGZIP(), []int{5} } -func (x *UploadImagePayload) GetMetaData() *ImageMetaData { +func (x *DownloadAttachmentRequest) GetInfo() *AttachmentInfo { if x != nil { - return x.MetaData + return x.Info } return nil } -func (x *UploadImagePayload) GetAuthData() *AuthMessage { +func (x *DownloadAttachmentRequest) GetAuthData() *AuthMessage { if x != nil { return x.AuthData } return nil } -type BugleBackendService struct { +type AttachmentInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Data *BugleCode `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` + AttachmentID string `protobuf:"bytes,1,opt,name=attachmentID,proto3" json:"attachmentID,omitempty"` + Encrypted bool `protobuf:"varint,2,opt,name=encrypted,proto3" json:"encrypted,omitempty"` } -func (x *BugleBackendService) Reset() { - *x = BugleBackendService{} +func (x *AttachmentInfo) Reset() { + *x = AttachmentInfo{} if protoimpl.UnsafeEnabled { mi := &file_client_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -519,13 +657,13 @@ func (x *BugleBackendService) Reset() { } } -func (x *BugleBackendService) String() string { +func (x *AttachmentInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BugleBackendService) ProtoMessage() {} +func (*AttachmentInfo) ProtoMessage() {} -func (x *BugleBackendService) ProtoReflect() protoreflect.Message { +func (x *AttachmentInfo) ProtoReflect() protoreflect.Message { mi := &file_client_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -537,28 +675,37 @@ func (x *BugleBackendService) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BugleBackendService.ProtoReflect.Descriptor instead. -func (*BugleBackendService) Descriptor() ([]byte, []int) { +// Deprecated: Use AttachmentInfo.ProtoReflect.Descriptor instead. +func (*AttachmentInfo) Descriptor() ([]byte, []int) { return file_client_proto_rawDescGZIP(), []int{6} } -func (x *BugleBackendService) GetData() *BugleCode { +func (x *AttachmentInfo) GetAttachmentID() string { if x != nil { - return x.Data + return x.AttachmentID } - return nil + return "" } -type BugleCode struct { +func (x *AttachmentInfo) GetEncrypted() bool { + if x != nil { + return x.Encrypted + } + return false +} + +type StartMediaUploadRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type int64 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` + AttachmentType int64 `protobuf:"varint,1,opt,name=attachmentType,proto3" json:"attachmentType,omitempty"` + AuthData *AuthMessage `protobuf:"bytes,2,opt,name=authData,proto3" json:"authData,omitempty"` + Mobile *Device `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` } -func (x *BugleCode) Reset() { - *x = BugleCode{} +func (x *StartMediaUploadRequest) Reset() { + *x = StartMediaUploadRequest{} if protoimpl.UnsafeEnabled { mi := &file_client_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -566,13 +713,13 @@ func (x *BugleCode) Reset() { } } -func (x *BugleCode) String() string { +func (x *StartMediaUploadRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BugleCode) ProtoMessage() {} +func (*StartMediaUploadRequest) ProtoMessage() {} -func (x *BugleCode) ProtoReflect() protoreflect.Message { +func (x *StartMediaUploadRequest) ProtoReflect() protoreflect.Message { mi := &file_client_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -584,18 +731,2445 @@ func (x *BugleCode) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BugleCode.ProtoReflect.Descriptor instead. -func (*BugleCode) Descriptor() ([]byte, []int) { +// Deprecated: Use StartMediaUploadRequest.ProtoReflect.Descriptor instead. +func (*StartMediaUploadRequest) Descriptor() ([]byte, []int) { return file_client_proto_rawDescGZIP(), []int{7} } -func (x *BugleCode) GetType() int64 { +func (x *StartMediaUploadRequest) GetAttachmentType() int64 { + if x != nil { + return x.AttachmentType + } + return 0 +} + +func (x *StartMediaUploadRequest) GetAuthData() *AuthMessage { + if x != nil { + return x.AuthData + } + return nil +} + +func (x *StartMediaUploadRequest) GetMobile() *Device { + if x != nil { + return x.Mobile + } + return nil +} + +type UploadMediaResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Media *UploadedMedia `protobuf:"bytes,1,opt,name=media,proto3" json:"media,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *UploadMediaResponse) Reset() { + *x = UploadMediaResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UploadMediaResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UploadMediaResponse) ProtoMessage() {} + +func (x *UploadMediaResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UploadMediaResponse.ProtoReflect.Descriptor instead. +func (*UploadMediaResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{8} +} + +func (x *UploadMediaResponse) GetMedia() *UploadedMedia { + if x != nil { + return x.Media + } + return nil +} + +func (x *UploadMediaResponse) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +type UploadedMedia struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MediaID string `protobuf:"bytes,1,opt,name=mediaID,proto3" json:"mediaID,omitempty"` + MediaNumber int64 `protobuf:"varint,2,opt,name=mediaNumber,proto3" json:"mediaNumber,omitempty"` +} + +func (x *UploadedMedia) Reset() { + *x = UploadedMedia{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UploadedMedia) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UploadedMedia) ProtoMessage() {} + +func (x *UploadedMedia) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UploadedMedia.ProtoReflect.Descriptor instead. +func (*UploadedMedia) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{9} +} + +func (x *UploadedMedia) GetMediaID() string { + if x != nil { + return x.MediaID + } + return "" +} + +func (x *UploadedMedia) GetMediaNumber() int64 { + if x != nil { + return x.MediaNumber + } + return 0 +} + +type GetParticipantThumbnailRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationID string `protobuf:"bytes,1,opt,name=conversationID,proto3" json:"conversationID,omitempty"` +} + +func (x *GetParticipantThumbnailRequest) Reset() { + *x = GetParticipantThumbnailRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetParticipantThumbnailRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetParticipantThumbnailRequest) ProtoMessage() {} + +func (x *GetParticipantThumbnailRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetParticipantThumbnailRequest.ProtoReflect.Descriptor instead. +func (*GetParticipantThumbnailRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{10} +} + +func (x *GetParticipantThumbnailRequest) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +type GetParticipantThumbnailResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Thumbnail []*ParticipantThumbnail `protobuf:"bytes,1,rep,name=thumbnail,proto3" json:"thumbnail,omitempty"` +} + +func (x *GetParticipantThumbnailResponse) Reset() { + *x = GetParticipantThumbnailResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetParticipantThumbnailResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetParticipantThumbnailResponse) ProtoMessage() {} + +func (x *GetParticipantThumbnailResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetParticipantThumbnailResponse.ProtoReflect.Descriptor instead. +func (*GetParticipantThumbnailResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{11} +} + +func (x *GetParticipantThumbnailResponse) GetThumbnail() []*ParticipantThumbnail { + if x != nil { + return x.Thumbnail + } + return nil +} + +type ParticipantThumbnail struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ParticipantID string `protobuf:"bytes,1,opt,name=participantID,proto3" json:"participantID,omitempty"` + Data *ThumbnailData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *ParticipantThumbnail) Reset() { + *x = ParticipantThumbnail{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParticipantThumbnail) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParticipantThumbnail) ProtoMessage() {} + +func (x *ParticipantThumbnail) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParticipantThumbnail.ProtoReflect.Descriptor instead. +func (*ParticipantThumbnail) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{12} +} + +func (x *ParticipantThumbnail) GetParticipantID() string { + if x != nil { + return x.ParticipantID + } + return "" +} + +func (x *ParticipantThumbnail) GetData() *ThumbnailData { + if x != nil { + return x.Data + } + return nil +} + +type GetContactsThumbnailRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AvatarIDs []string `protobuf:"bytes,1,rep,name=avatarIDs,proto3" json:"avatarIDs,omitempty"` +} + +func (x *GetContactsThumbnailRequest) Reset() { + *x = GetContactsThumbnailRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetContactsThumbnailRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetContactsThumbnailRequest) ProtoMessage() {} + +func (x *GetContactsThumbnailRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[13] + 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 GetContactsThumbnailRequest.ProtoReflect.Descriptor instead. +func (*GetContactsThumbnailRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{13} +} + +func (x *GetContactsThumbnailRequest) GetAvatarIDs() []string { + if x != nil { + return x.AvatarIDs + } + return nil +} + +type ThumbnailData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ImageBuffer []byte `protobuf:"bytes,3,opt,name=imageBuffer,proto3" json:"imageBuffer,omitempty"` + SomeInt int32 `protobuf:"varint,4,opt,name=someInt,proto3" json:"someInt,omitempty"` + Dimensions *Dimensions `protobuf:"bytes,5,opt,name=dimensions,proto3" json:"dimensions,omitempty"` +} + +func (x *ThumbnailData) Reset() { + *x = ThumbnailData{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ThumbnailData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ThumbnailData) ProtoMessage() {} + +func (x *ThumbnailData) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[14] + 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 ThumbnailData.ProtoReflect.Descriptor instead. +func (*ThumbnailData) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{14} +} + +func (x *ThumbnailData) GetImageBuffer() []byte { + if x != nil { + return x.ImageBuffer + } + return nil +} + +func (x *ThumbnailData) GetSomeInt() int32 { + if x != nil { + return x.SomeInt + } + return 0 +} + +func (x *ThumbnailData) GetDimensions() *Dimensions { + if x != nil { + return x.Dimensions + } + return nil +} + +type Cursor struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LastItemID string `protobuf:"bytes,1,opt,name=lastItemID,proto3" json:"lastItemID,omitempty"` + LastItemTimestamp int64 `protobuf:"varint,2,opt,name=lastItemTimestamp,proto3" json:"lastItemTimestamp,omitempty"` +} + +func (x *Cursor) Reset() { + *x = Cursor{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Cursor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Cursor) ProtoMessage() {} + +func (x *Cursor) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[15] + 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 Cursor.ProtoReflect.Descriptor instead. +func (*Cursor) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{15} +} + +func (x *Cursor) GetLastItemID() string { + if x != nil { + return x.LastItemID + } + return "" +} + +func (x *Cursor) GetLastItemTimestamp() int64 { + if x != nil { + return x.LastItemTimestamp + } + return 0 +} + +type FetchMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"` + Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` + Cursor *Cursor `protobuf:"bytes,5,opt,name=cursor,proto3" json:"cursor,omitempty"` +} + +func (x *FetchMessagesRequest) Reset() { + *x = FetchMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FetchMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchMessagesRequest) ProtoMessage() {} + +func (x *FetchMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[16] + 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 FetchMessagesRequest.ProtoReflect.Descriptor instead. +func (*FetchMessagesRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{16} +} + +func (x *FetchMessagesRequest) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +func (x *FetchMessagesRequest) GetCount() int64 { + if x != nil { + return x.Count + } + return 0 +} + +func (x *FetchMessagesRequest) GetCursor() *Cursor { + if x != nil { + return x.Cursor + } + return nil +} + +type FetchMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` + SomeBytes []byte `protobuf:"bytes,3,opt,name=someBytes,proto3" json:"someBytes,omitempty"` + TotalMessages int64 `protobuf:"varint,4,opt,name=totalMessages,proto3" json:"totalMessages,omitempty"` + Cursor *Cursor `protobuf:"bytes,5,opt,name=cursor,proto3" json:"cursor,omitempty"` +} + +func (x *FetchMessagesResponse) Reset() { + *x = FetchMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FetchMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchMessagesResponse) ProtoMessage() {} + +func (x *FetchMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[17] + 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 FetchMessagesResponse.ProtoReflect.Descriptor instead. +func (*FetchMessagesResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{17} +} + +func (x *FetchMessagesResponse) GetMessages() []*Message { + if x != nil { + return x.Messages + } + return nil +} + +func (x *FetchMessagesResponse) GetSomeBytes() []byte { + if x != nil { + return x.SomeBytes + } + return nil +} + +func (x *FetchMessagesResponse) GetTotalMessages() int64 { + if x != nil { + return x.TotalMessages + } + return 0 +} + +func (x *FetchMessagesResponse) GetCursor() *Cursor { + if x != nil { + return x.Cursor + } + return nil +} + +type ListContactsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + I1 int32 `protobuf:"varint,5,opt,name=i1,proto3" json:"i1,omitempty"` // = 1 + I2 int32 `protobuf:"varint,6,opt,name=i2,proto3" json:"i2,omitempty"` // = 350 + I3 int32 `protobuf:"varint,7,opt,name=i3,proto3" json:"i3,omitempty"` // = 50 +} + +func (x *ListContactsRequest) Reset() { + *x = ListContactsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListContactsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListContactsRequest) ProtoMessage() {} + +func (x *ListContactsRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[18] + 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 ListContactsRequest.ProtoReflect.Descriptor instead. +func (*ListContactsRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{18} +} + +func (x *ListContactsRequest) GetI1() int32 { + if x != nil { + return x.I1 + } + return 0 +} + +func (x *ListContactsRequest) GetI2() int32 { + if x != nil { + return x.I2 + } + return 0 +} + +func (x *ListContactsRequest) GetI3() int32 { + if x != nil { + return x.I3 + } + return 0 +} + +type ListTopContactsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` +} + +func (x *ListTopContactsRequest) Reset() { + *x = ListTopContactsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListTopContactsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListTopContactsRequest) ProtoMessage() {} + +func (x *ListTopContactsRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[19] + 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 ListTopContactsRequest.ProtoReflect.Descriptor instead. +func (*ListTopContactsRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{19} +} + +func (x *ListTopContactsRequest) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +type ListContactsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Contacts []*Contact `protobuf:"bytes,2,rep,name=contacts,proto3" json:"contacts,omitempty"` +} + +func (x *ListContactsResponse) Reset() { + *x = ListContactsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListContactsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListContactsResponse) ProtoMessage() {} + +func (x *ListContactsResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[20] + 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 ListContactsResponse.ProtoReflect.Descriptor instead. +func (*ListContactsResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{20} +} + +func (x *ListContactsResponse) GetContacts() []*Contact { + if x != nil { + return x.Contacts + } + return nil +} + +type ListTopContactsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Contacts []*Contact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"` +} + +func (x *ListTopContactsResponse) Reset() { + *x = ListTopContactsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListTopContactsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListTopContactsResponse) ProtoMessage() {} + +func (x *ListTopContactsResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[21] + 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 ListTopContactsResponse.ProtoReflect.Descriptor instead. +func (*ListTopContactsResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{21} +} + +func (x *ListTopContactsResponse) GetContacts() []*Contact { + if x != nil { + return x.Contacts + } + return nil +} + +type ListConversationsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + Folder ListConversationsRequest_Folder `protobuf:"varint,4,opt,name=folder,proto3,enum=client.ListConversationsRequest_Folder" json:"folder,omitempty"` + Cursor *Cursor `protobuf:"bytes,5,opt,name=cursor,proto3,oneof" json:"cursor,omitempty"` +} + +func (x *ListConversationsRequest) Reset() { + *x = ListConversationsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListConversationsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListConversationsRequest) ProtoMessage() {} + +func (x *ListConversationsRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[22] + 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 ListConversationsRequest.ProtoReflect.Descriptor instead. +func (*ListConversationsRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{22} +} + +func (x *ListConversationsRequest) GetCount() int64 { + if x != nil { + return x.Count + } + return 0 +} + +func (x *ListConversationsRequest) GetFolder() ListConversationsRequest_Folder { + if x != nil { + return x.Folder + } + return ListConversationsRequest_UNKNOWN +} + +func (x *ListConversationsRequest) GetCursor() *Cursor { + if x != nil { + return x.Cursor + } + return nil +} + +type ListConversationsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Conversations []*Conversation `protobuf:"bytes,2,rep,name=conversations,proto3" json:"conversations,omitempty"` + CursorBytes []byte `protobuf:"bytes,3,opt,name=cursorBytes,proto3,oneof" json:"cursorBytes,omitempty"` + Cursor *Cursor `protobuf:"bytes,5,opt,name=cursor,proto3,oneof" json:"cursor,omitempty"` +} + +func (x *ListConversationsResponse) Reset() { + *x = ListConversationsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListConversationsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListConversationsResponse) ProtoMessage() {} + +func (x *ListConversationsResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[23] + 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 ListConversationsResponse.ProtoReflect.Descriptor instead. +func (*ListConversationsResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{23} +} + +func (x *ListConversationsResponse) GetConversations() []*Conversation { + if x != nil { + return x.Conversations + } + return nil +} + +func (x *ListConversationsResponse) GetCursorBytes() []byte { + if x != nil { + return x.CursorBytes + } + return nil +} + +func (x *ListConversationsResponse) GetCursor() *Cursor { + if x != nil { + return x.Cursor + } + return nil +} + +type GetOrCreateConversationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Numbers []*ContactNumber `protobuf:"bytes,2,rep,name=numbers,proto3" json:"numbers,omitempty"` + RCSGroupName *string `protobuf:"bytes,3,opt,name=RCSGroupName,proto3,oneof" json:"RCSGroupName,omitempty"` + CreateRCSGroup *bool `protobuf:"varint,4,opt,name=createRCSGroup,proto3,oneof" json:"createRCSGroup,omitempty"` +} + +func (x *GetOrCreateConversationRequest) Reset() { + *x = GetOrCreateConversationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetOrCreateConversationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrCreateConversationRequest) ProtoMessage() {} + +func (x *GetOrCreateConversationRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[24] + 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 GetOrCreateConversationRequest.ProtoReflect.Descriptor instead. +func (*GetOrCreateConversationRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{24} +} + +func (x *GetOrCreateConversationRequest) GetNumbers() []*ContactNumber { + if x != nil { + return x.Numbers + } + return nil +} + +func (x *GetOrCreateConversationRequest) GetRCSGroupName() string { + if x != nil && x.RCSGroupName != nil { + return *x.RCSGroupName + } + return "" +} + +func (x *GetOrCreateConversationRequest) GetCreateRCSGroup() bool { + if x != nil && x.CreateRCSGroup != nil { + return *x.CreateRCSGroup + } + return false +} + +type GetOrCreateConversationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Conversation *Conversation `protobuf:"bytes,2,opt,name=conversation,proto3" json:"conversation,omitempty"` + Status GetOrCreateConversationResponse_Status `protobuf:"varint,3,opt,name=status,proto3,enum=client.GetOrCreateConversationResponse_Status" json:"status,omitempty"` +} + +func (x *GetOrCreateConversationResponse) Reset() { + *x = GetOrCreateConversationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetOrCreateConversationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrCreateConversationResponse) ProtoMessage() {} + +func (x *GetOrCreateConversationResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[25] + 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 GetOrCreateConversationResponse.ProtoReflect.Descriptor instead. +func (*GetOrCreateConversationResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{25} +} + +func (x *GetOrCreateConversationResponse) GetConversation() *Conversation { + if x != nil { + return x.Conversation + } + return nil +} + +func (x *GetOrCreateConversationResponse) GetStatus() GetOrCreateConversationResponse_Status { + if x != nil { + return x.Status + } + return GetOrCreateConversationResponse_UNKNOWN +} + +type DeleteMessageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MessageID string `protobuf:"bytes,2,opt,name=messageID,proto3" json:"messageID,omitempty"` +} + +func (x *DeleteMessageRequest) Reset() { + *x = DeleteMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteMessageRequest) ProtoMessage() {} + +func (x *DeleteMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[26] + 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 DeleteMessageRequest.ProtoReflect.Descriptor instead. +func (*DeleteMessageRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{26} +} + +func (x *DeleteMessageRequest) GetMessageID() string { + if x != nil { + return x.MessageID + } + return "" +} + +type DeleteMessageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` +} + +func (x *DeleteMessageResponse) Reset() { + *x = DeleteMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteMessageResponse) ProtoMessage() {} + +func (x *DeleteMessageResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[27] + 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 DeleteMessageResponse.ProtoReflect.Descriptor instead. +func (*DeleteMessageResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{27} +} + +func (x *DeleteMessageResponse) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +type UpdateConversationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data *UpdateConversationData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Action ConversationActionStatus `protobuf:"varint,2,opt,name=action,proto3,enum=client.ConversationActionStatus" json:"action,omitempty"` + ConversationID string `protobuf:"bytes,3,opt,name=conversationID,proto3" json:"conversationID,omitempty"` + Action5 *ConversationAction5 `protobuf:"bytes,5,opt,name=action5,proto3" json:"action5,omitempty"` +} + +func (x *UpdateConversationRequest) Reset() { + *x = UpdateConversationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateConversationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateConversationRequest) ProtoMessage() {} + +func (x *UpdateConversationRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[28] + 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 UpdateConversationRequest.ProtoReflect.Descriptor instead. +func (*UpdateConversationRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{28} +} + +func (x *UpdateConversationRequest) GetData() *UpdateConversationData { + if x != nil { + return x.Data + } + return nil +} + +func (x *UpdateConversationRequest) GetAction() ConversationActionStatus { + if x != nil { + return x.Action + } + return ConversationActionStatus_UNKNOWN_ACTION_STATUS +} + +func (x *UpdateConversationRequest) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +func (x *UpdateConversationRequest) GetAction5() *ConversationAction5 { + if x != nil { + return x.Action5 + } + return nil +} + +type ConversationAction5 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Field2 bool `protobuf:"varint,2,opt,name=field2,proto3" json:"field2,omitempty"` +} + +func (x *ConversationAction5) Reset() { + *x = ConversationAction5{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConversationAction5) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConversationAction5) ProtoMessage() {} + +func (x *ConversationAction5) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[29] + 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 ConversationAction5.ProtoReflect.Descriptor instead. +func (*ConversationAction5) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{29} +} + +func (x *ConversationAction5) GetField2() bool { + if x != nil { + return x.Field2 + } + return false +} + +type UpdateConversationData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationID string `protobuf:"bytes,1,opt,name=conversationID,proto3" json:"conversationID,omitempty"` + // Types that are assignable to Data: + // + // *UpdateConversationData_Status + // *UpdateConversationData_Mute + Data isUpdateConversationData_Data `protobuf_oneof:"data"` +} + +func (x *UpdateConversationData) Reset() { + *x = UpdateConversationData{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateConversationData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateConversationData) ProtoMessage() {} + +func (x *UpdateConversationData) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[30] + 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 UpdateConversationData.ProtoReflect.Descriptor instead. +func (*UpdateConversationData) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{30} +} + +func (x *UpdateConversationData) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +func (m *UpdateConversationData) GetData() isUpdateConversationData_Data { + if m != nil { + return m.Data + } + return nil +} + +func (x *UpdateConversationData) GetStatus() ConversationStatus { + if x, ok := x.GetData().(*UpdateConversationData_Status); ok { + return x.Status + } + return ConversationStatus_UNKNOWN_STATUS +} + +func (x *UpdateConversationData) GetMute() ConversationMuteStatus { + if x, ok := x.GetData().(*UpdateConversationData_Mute); ok { + return x.Mute + } + return ConversationMuteStatus_UNMUTE +} + +type isUpdateConversationData_Data interface { + isUpdateConversationData_Data() +} + +type UpdateConversationData_Status struct { + Status ConversationStatus `protobuf:"varint,12,opt,name=status,proto3,enum=client.ConversationStatus,oneof"` +} + +type UpdateConversationData_Mute struct { + Mute ConversationMuteStatus `protobuf:"varint,7,opt,name=mute,proto3,enum=client.ConversationMuteStatus,oneof"` +} + +func (*UpdateConversationData_Status) isUpdateConversationData_Data() {} + +func (*UpdateConversationData_Mute) isUpdateConversationData_Data() {} + +type UpdateConversationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` +} + +func (x *UpdateConversationResponse) Reset() { + *x = UpdateConversationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateConversationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateConversationResponse) ProtoMessage() {} + +func (x *UpdateConversationResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[31] + 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 UpdateConversationResponse.ProtoReflect.Descriptor instead. +func (*UpdateConversationResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{31} +} + +func (x *UpdateConversationResponse) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +type ConversationTypeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"` +} + +func (x *ConversationTypeRequest) Reset() { + *x = ConversationTypeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConversationTypeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConversationTypeRequest) ProtoMessage() {} + +func (x *ConversationTypeRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[32] + 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 ConversationTypeRequest.ProtoReflect.Descriptor instead. +func (*ConversationTypeRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{32} +} + +func (x *ConversationTypeRequest) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +type GetConversationTypeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"` + Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` + Bool1 bool `protobuf:"varint,5,opt,name=bool1,proto3" json:"bool1,omitempty"` + Number2 int32 `protobuf:"varint,6,opt,name=number2,proto3" json:"number2,omitempty"` +} + +func (x *GetConversationTypeResponse) Reset() { + *x = GetConversationTypeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetConversationTypeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetConversationTypeResponse) ProtoMessage() {} + +func (x *GetConversationTypeResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[33] + 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 GetConversationTypeResponse.ProtoReflect.Descriptor instead. +func (*GetConversationTypeResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{33} +} + +func (x *GetConversationTypeResponse) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +func (x *GetConversationTypeResponse) GetType() int32 { if x != nil { return x.Type } return 0 } +func (x *GetConversationTypeResponse) GetBool1() bool { + if x != nil { + return x.Bool1 + } + return false +} + +func (x *GetConversationTypeResponse) GetNumber2() int32 { + if x != nil { + return x.Number2 + } + return 0 +} + +type GetConversationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationID string `protobuf:"bytes,1,opt,name=conversationID,proto3" json:"conversationID,omitempty"` +} + +func (x *GetConversationRequest) Reset() { + *x = GetConversationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetConversationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetConversationRequest) ProtoMessage() {} + +func (x *GetConversationRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[34] + 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 GetConversationRequest.ProtoReflect.Descriptor instead. +func (*GetConversationRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{34} +} + +func (x *GetConversationRequest) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +type GetConversationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Conversation *Conversation `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"` +} + +func (x *GetConversationResponse) Reset() { + *x = GetConversationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetConversationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetConversationResponse) ProtoMessage() {} + +func (x *GetConversationResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[35] + 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 GetConversationResponse.ProtoReflect.Descriptor instead. +func (*GetConversationResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{35} +} + +func (x *GetConversationResponse) GetConversation() *Conversation { + if x != nil { + return x.Conversation + } + return nil +} + +type OpenConversationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"` +} + +func (x *OpenConversationRequest) Reset() { + *x = OpenConversationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenConversationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenConversationRequest) ProtoMessage() {} + +func (x *OpenConversationRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[36] + 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 OpenConversationRequest.ProtoReflect.Descriptor instead. +func (*OpenConversationRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{36} +} + +func (x *OpenConversationRequest) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +type PrepareOpenConversationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Field2 int64 `protobuf:"varint,2,opt,name=field2,proto3" json:"field2,omitempty"` // only seen value 1 +} + +func (x *PrepareOpenConversationRequest) Reset() { + *x = PrepareOpenConversationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PrepareOpenConversationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PrepareOpenConversationRequest) ProtoMessage() {} + +func (x *PrepareOpenConversationRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[37] + 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 PrepareOpenConversationRequest.ProtoReflect.Descriptor instead. +func (*PrepareOpenConversationRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{37} +} + +func (x *PrepareOpenConversationRequest) GetField2() int64 { + if x != nil { + return x.Field2 + } + return 0 +} + +type IsBugleDefaultResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` +} + +func (x *IsBugleDefaultResponse) Reset() { + *x = IsBugleDefaultResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IsBugleDefaultResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IsBugleDefaultResponse) ProtoMessage() {} + +func (x *IsBugleDefaultResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[38] + 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 IsBugleDefaultResponse.ProtoReflect.Descriptor instead. +func (*IsBugleDefaultResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{38} +} + +func (x *IsBugleDefaultResponse) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +type SendMessageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"` + MessagePayload *MessagePayload `protobuf:"bytes,3,opt,name=messagePayload,proto3" json:"messagePayload,omitempty"` + TmpID string `protobuf:"bytes,5,opt,name=tmpID,proto3" json:"tmpID,omitempty"` + IsReply bool `protobuf:"varint,6,opt,name=isReply,proto3" json:"isReply,omitempty"` // not sure + Reply *ReplyPayload `protobuf:"bytes,8,opt,name=reply,proto3" json:"reply,omitempty"` +} + +func (x *SendMessageRequest) Reset() { + *x = SendMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendMessageRequest) ProtoMessage() {} + +func (x *SendMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[39] + 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 SendMessageRequest.ProtoReflect.Descriptor instead. +func (*SendMessageRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{39} +} + +func (x *SendMessageRequest) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +func (x *SendMessageRequest) GetMessagePayload() *MessagePayload { + if x != nil { + return x.MessagePayload + } + return nil +} + +func (x *SendMessageRequest) GetTmpID() string { + if x != nil { + return x.TmpID + } + return "" +} + +func (x *SendMessageRequest) GetIsReply() bool { + if x != nil { + return x.IsReply + } + return false +} + +func (x *SendMessageRequest) GetReply() *ReplyPayload { + if x != nil { + return x.Reply + } + return nil +} + +type ReplyPayload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MessageID string `protobuf:"bytes,1,opt,name=messageID,proto3" json:"messageID,omitempty"` +} + +func (x *ReplyPayload) Reset() { + *x = ReplyPayload{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReplyPayload) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReplyPayload) ProtoMessage() {} + +func (x *ReplyPayload) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[40] + 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 ReplyPayload.ProtoReflect.Descriptor instead. +func (*ReplyPayload) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{40} +} + +func (x *ReplyPayload) GetMessageID() string { + if x != nil { + return x.MessageID + } + return "" +} + +type MessagePayload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TmpID string `protobuf:"bytes,1,opt,name=tmpID,proto3" json:"tmpID,omitempty"` + MessagePayloadContent *MessagePayloadContent `protobuf:"bytes,6,opt,name=messagePayloadContent,proto3" json:"messagePayloadContent,omitempty"` + ConversationID string `protobuf:"bytes,7,opt,name=conversationID,proto3" json:"conversationID,omitempty"` + SelfParticipantID string `protobuf:"bytes,9,opt,name=selfParticipantID,proto3" json:"selfParticipantID,omitempty"` // might be participantID + MessageInfo []*MessageInfo `protobuf:"bytes,10,rep,name=messageInfo,proto3" json:"messageInfo,omitempty"` + TmpID2 string `protobuf:"bytes,12,opt,name=tmpID2,proto3" json:"tmpID2,omitempty"` +} + +func (x *MessagePayload) Reset() { + *x = MessagePayload{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MessagePayload) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessagePayload) ProtoMessage() {} + +func (x *MessagePayload) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[41] + 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 MessagePayload.ProtoReflect.Descriptor instead. +func (*MessagePayload) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{41} +} + +func (x *MessagePayload) GetTmpID() string { + if x != nil { + return x.TmpID + } + return "" +} + +func (x *MessagePayload) GetMessagePayloadContent() *MessagePayloadContent { + if x != nil { + return x.MessagePayloadContent + } + return nil +} + +func (x *MessagePayload) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +func (x *MessagePayload) GetSelfParticipantID() string { + if x != nil { + return x.SelfParticipantID + } + return "" +} + +func (x *MessagePayload) GetMessageInfo() []*MessageInfo { + if x != nil { + return x.MessageInfo + } + return nil +} + +func (x *MessagePayload) GetTmpID2() string { + if x != nil { + return x.TmpID2 + } + return "" +} + +type MessagePayloadContent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MessageContent *MessageContent `protobuf:"bytes,1,opt,name=messageContent,proto3" json:"messageContent,omitempty"` +} + +func (x *MessagePayloadContent) Reset() { + *x = MessagePayloadContent{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MessagePayloadContent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessagePayloadContent) ProtoMessage() {} + +func (x *MessagePayloadContent) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[42] + 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 MessagePayloadContent.ProtoReflect.Descriptor instead. +func (*MessagePayloadContent) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{42} +} + +func (x *MessagePayloadContent) GetMessageContent() *MessageContent { + if x != nil { + return x.MessageContent + } + return nil +} + +type SendMessageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *SendMessageResponse) Reset() { + *x = SendMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendMessageResponse) ProtoMessage() {} + +func (x *SendMessageResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[43] + 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 SendMessageResponse.ProtoReflect.Descriptor instead. +func (*SendMessageResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{43} +} + +func (x *SendMessageResponse) GetType() int64 { + if x != nil { + return x.Type + } + return 0 +} + +type SendReactionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MessageID string `protobuf:"bytes,1,opt,name=messageID,proto3" json:"messageID,omitempty"` + ReactionData *ReactionData `protobuf:"bytes,2,opt,name=reactionData,proto3" json:"reactionData,omitempty"` + Action SendReactionRequest_Action `protobuf:"varint,3,opt,name=action,proto3,enum=client.SendReactionRequest_Action" json:"action,omitempty"` +} + +func (x *SendReactionRequest) Reset() { + *x = SendReactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendReactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendReactionRequest) ProtoMessage() {} + +func (x *SendReactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[44] + 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 SendReactionRequest.ProtoReflect.Descriptor instead. +func (*SendReactionRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{44} +} + +func (x *SendReactionRequest) GetMessageID() string { + if x != nil { + return x.MessageID + } + return "" +} + +func (x *SendReactionRequest) GetReactionData() *ReactionData { + if x != nil { + return x.ReactionData + } + return nil +} + +func (x *SendReactionRequest) GetAction() SendReactionRequest_Action { + if x != nil { + return x.Action + } + return SendReactionRequest_UNSPECIFIED +} + +type SendReactionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` +} + +func (x *SendReactionResponse) Reset() { + *x = SendReactionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendReactionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendReactionResponse) ProtoMessage() {} + +func (x *SendReactionResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[45] + 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 SendReactionResponse.ProtoReflect.Descriptor instead. +func (*SendReactionResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{45} +} + +func (x *SendReactionResponse) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +type ResendMessageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MessageID string `protobuf:"bytes,2,opt,name=messageID,proto3" json:"messageID,omitempty"` +} + +func (x *ResendMessageRequest) Reset() { + *x = ResendMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResendMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResendMessageRequest) ProtoMessage() {} + +func (x *ResendMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[46] + 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 ResendMessageRequest.ProtoReflect.Descriptor instead. +func (*ResendMessageRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{46} +} + +func (x *ResendMessageRequest) GetMessageID() string { + if x != nil { + return x.MessageID + } + return "" +} + +type TypingUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data *TypingUpdateRequest_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *TypingUpdateRequest) Reset() { + *x = TypingUpdateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TypingUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TypingUpdateRequest) ProtoMessage() {} + +func (x *TypingUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[47] + 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 TypingUpdateRequest.ProtoReflect.Descriptor instead. +func (*TypingUpdateRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{47} +} + +func (x *TypingUpdateRequest) GetData() *TypingUpdateRequest_Data { + if x != nil { + return x.Data + } + return nil +} + +type ReceiveMessagesRequest_UnknownEmptyObject1 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ReceiveMessagesRequest_UnknownEmptyObject1) Reset() { + *x = ReceiveMessagesRequest_UnknownEmptyObject1{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReceiveMessagesRequest_UnknownEmptyObject1) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReceiveMessagesRequest_UnknownEmptyObject1) ProtoMessage() {} + +func (x *ReceiveMessagesRequest_UnknownEmptyObject1) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[48] + 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 ReceiveMessagesRequest_UnknownEmptyObject1.ProtoReflect.Descriptor instead. +func (*ReceiveMessagesRequest_UnknownEmptyObject1) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{2, 0} +} + +type ReceiveMessagesRequest_UnknownEmptyObject2 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Unknown *ReceiveMessagesRequest_UnknownEmptyObject1 `protobuf:"bytes,2,opt,name=unknown,proto3" json:"unknown,omitempty"` +} + +func (x *ReceiveMessagesRequest_UnknownEmptyObject2) Reset() { + *x = ReceiveMessagesRequest_UnknownEmptyObject2{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReceiveMessagesRequest_UnknownEmptyObject2) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReceiveMessagesRequest_UnknownEmptyObject2) ProtoMessage() {} + +func (x *ReceiveMessagesRequest_UnknownEmptyObject2) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[49] + 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 ReceiveMessagesRequest_UnknownEmptyObject2.ProtoReflect.Descriptor instead. +func (*ReceiveMessagesRequest_UnknownEmptyObject2) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{2, 1} +} + +func (x *ReceiveMessagesRequest_UnknownEmptyObject2) GetUnknown() *ReceiveMessagesRequest_UnknownEmptyObject1 { + if x != nil { + return x.Unknown + } + return nil +} + +type AckMessageRequest_Message struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` + Device *Device `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` +} + +func (x *AckMessageRequest_Message) Reset() { + *x = AckMessageRequest_Message{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AckMessageRequest_Message) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AckMessageRequest_Message) ProtoMessage() {} + +func (x *AckMessageRequest_Message) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[50] + 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 AckMessageRequest_Message.ProtoReflect.Descriptor instead. +func (*AckMessageRequest_Message) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *AckMessageRequest_Message) GetRequestID() string { + if x != nil { + return x.RequestID + } + return "" +} + +func (x *AckMessageRequest_Message) GetDevice() *Device { + if x != nil { + return x.Device + } + return nil +} + +type TypingUpdateRequest_Data struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationID string `protobuf:"bytes,1,opt,name=conversationID,proto3" json:"conversationID,omitempty"` + Typing bool `protobuf:"varint,3,opt,name=typing,proto3" json:"typing,omitempty"` +} + +func (x *TypingUpdateRequest_Data) Reset() { + *x = TypingUpdateRequest_Data{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TypingUpdateRequest_Data) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TypingUpdateRequest_Data) ProtoMessage() {} + +func (x *TypingUpdateRequest_Data) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[51] + 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 TypingUpdateRequest_Data.ProtoReflect.Descriptor instead. +func (*TypingUpdateRequest_Data) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{47, 0} +} + +func (x *TypingUpdateRequest_Data) GetConversationID() string { + if x != nil { + return x.ConversationID + } + return "" +} + +func (x *TypingUpdateRequest_Data) GetTyping() bool { + if x != nil { + return x.Typing + } + return false +} + var File_client_proto protoreflect.FileDescriptor //go:embed client.pb.raw @@ -613,36 +3187,126 @@ func file_client_proto_rawDescGZIP() []byte { return file_client_proto_rawDescData } -var file_client_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_client_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_client_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_client_proto_msgTypes = make([]protoimpl.MessageInfo, 52) var file_client_proto_goTypes = []interface{}{ - (BugleMessageType)(0), // 0: client.BugleMessageType - (BrowserTypes)(0), // 1: client.BrowserTypes - (*NotifyDittoActivityPayload)(nil), // 2: client.NotifyDittoActivityPayload - (*MessageReadPayload)(nil), // 3: client.MessageReadPayload - (*AckMessagePayload)(nil), // 4: client.AckMessagePayload - (*AckMessageData)(nil), // 5: client.AckMessageData - (*ImageMetaData)(nil), // 6: client.ImageMetaData - (*UploadImagePayload)(nil), // 7: client.UploadImagePayload - (*BugleBackendService)(nil), // 8: client.BugleBackendService - (*BugleCode)(nil), // 9: client.BugleCode - (*AuthMessage)(nil), // 10: messages.AuthMessage - (*EmptyArr)(nil), // 11: messages.EmptyArr - (*Device)(nil), // 12: messages.Device + (ConversationStatus)(0), // 0: client.ConversationStatus + (ConversationActionStatus)(0), // 1: client.ConversationActionStatus + (ConversationMuteStatus)(0), // 2: client.ConversationMuteStatus + (ListConversationsRequest_Folder)(0), // 3: client.ListConversationsRequest.Folder + (GetOrCreateConversationResponse_Status)(0), // 4: client.GetOrCreateConversationResponse.Status + (SendReactionRequest_Action)(0), // 5: client.SendReactionRequest.Action + (*NotifyDittoActivityRequest)(nil), // 6: client.NotifyDittoActivityRequest + (*NotifyDittoActivityResponse)(nil), // 7: client.NotifyDittoActivityResponse + (*ReceiveMessagesRequest)(nil), // 8: client.ReceiveMessagesRequest + (*MessageReadRequest)(nil), // 9: client.MessageReadRequest + (*AckMessageRequest)(nil), // 10: client.AckMessageRequest + (*DownloadAttachmentRequest)(nil), // 11: client.DownloadAttachmentRequest + (*AttachmentInfo)(nil), // 12: client.AttachmentInfo + (*StartMediaUploadRequest)(nil), // 13: client.StartMediaUploadRequest + (*UploadMediaResponse)(nil), // 14: client.UploadMediaResponse + (*UploadedMedia)(nil), // 15: client.UploadedMedia + (*GetParticipantThumbnailRequest)(nil), // 16: client.GetParticipantThumbnailRequest + (*GetParticipantThumbnailResponse)(nil), // 17: client.GetParticipantThumbnailResponse + (*ParticipantThumbnail)(nil), // 18: client.ParticipantThumbnail + (*GetContactsThumbnailRequest)(nil), // 19: client.GetContactsThumbnailRequest + (*ThumbnailData)(nil), // 20: client.ThumbnailData + (*Cursor)(nil), // 21: client.Cursor + (*FetchMessagesRequest)(nil), // 22: client.FetchMessagesRequest + (*FetchMessagesResponse)(nil), // 23: client.FetchMessagesResponse + (*ListContactsRequest)(nil), // 24: client.ListContactsRequest + (*ListTopContactsRequest)(nil), // 25: client.ListTopContactsRequest + (*ListContactsResponse)(nil), // 26: client.ListContactsResponse + (*ListTopContactsResponse)(nil), // 27: client.ListTopContactsResponse + (*ListConversationsRequest)(nil), // 28: client.ListConversationsRequest + (*ListConversationsResponse)(nil), // 29: client.ListConversationsResponse + (*GetOrCreateConversationRequest)(nil), // 30: client.GetOrCreateConversationRequest + (*GetOrCreateConversationResponse)(nil), // 31: client.GetOrCreateConversationResponse + (*DeleteMessageRequest)(nil), // 32: client.DeleteMessageRequest + (*DeleteMessageResponse)(nil), // 33: client.DeleteMessageResponse + (*UpdateConversationRequest)(nil), // 34: client.UpdateConversationRequest + (*ConversationAction5)(nil), // 35: client.ConversationAction5 + (*UpdateConversationData)(nil), // 36: client.UpdateConversationData + (*UpdateConversationResponse)(nil), // 37: client.UpdateConversationResponse + (*ConversationTypeRequest)(nil), // 38: client.ConversationTypeRequest + (*GetConversationTypeResponse)(nil), // 39: client.GetConversationTypeResponse + (*GetConversationRequest)(nil), // 40: client.GetConversationRequest + (*GetConversationResponse)(nil), // 41: client.GetConversationResponse + (*OpenConversationRequest)(nil), // 42: client.OpenConversationRequest + (*PrepareOpenConversationRequest)(nil), // 43: client.PrepareOpenConversationRequest + (*IsBugleDefaultResponse)(nil), // 44: client.IsBugleDefaultResponse + (*SendMessageRequest)(nil), // 45: client.SendMessageRequest + (*ReplyPayload)(nil), // 46: client.ReplyPayload + (*MessagePayload)(nil), // 47: client.MessagePayload + (*MessagePayloadContent)(nil), // 48: client.MessagePayloadContent + (*SendMessageResponse)(nil), // 49: client.SendMessageResponse + (*SendReactionRequest)(nil), // 50: client.SendReactionRequest + (*SendReactionResponse)(nil), // 51: client.SendReactionResponse + (*ResendMessageRequest)(nil), // 52: client.ResendMessageRequest + (*TypingUpdateRequest)(nil), // 53: client.TypingUpdateRequest + (*ReceiveMessagesRequest_UnknownEmptyObject1)(nil), // 54: client.ReceiveMessagesRequest.UnknownEmptyObject1 + (*ReceiveMessagesRequest_UnknownEmptyObject2)(nil), // 55: client.ReceiveMessagesRequest.UnknownEmptyObject2 + (*AckMessageRequest_Message)(nil), // 56: client.AckMessageRequest.Message + (*TypingUpdateRequest_Data)(nil), // 57: client.TypingUpdateRequest.Data + (*AuthMessage)(nil), // 58: authentication.AuthMessage + (*EmptyArr)(nil), // 59: util.EmptyArr + (*Device)(nil), // 60: authentication.Device + (*Dimensions)(nil), // 61: conversations.Dimensions + (*Message)(nil), // 62: conversations.Message + (*Contact)(nil), // 63: conversations.Contact + (*Conversation)(nil), // 64: conversations.Conversation + (*ContactNumber)(nil), // 65: conversations.ContactNumber + (*MessageInfo)(nil), // 66: conversations.MessageInfo + (*MessageContent)(nil), // 67: conversations.MessageContent + (*ReactionData)(nil), // 68: conversations.ReactionData } var file_client_proto_depIdxs = []int32{ - 10, // 0: client.AckMessagePayload.authData:type_name -> messages.AuthMessage - 11, // 1: client.AckMessagePayload.emptyArr:type_name -> messages.EmptyArr - 5, // 2: client.AckMessagePayload.acks:type_name -> client.AckMessageData - 12, // 3: client.AckMessageData.device:type_name -> messages.Device - 6, // 4: client.UploadImagePayload.metaData:type_name -> client.ImageMetaData - 10, // 5: client.UploadImagePayload.authData:type_name -> messages.AuthMessage - 9, // 6: client.BugleBackendService.data:type_name -> client.BugleCode - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name + 58, // 0: client.ReceiveMessagesRequest.auth:type_name -> authentication.AuthMessage + 55, // 1: client.ReceiveMessagesRequest.unknown:type_name -> client.ReceiveMessagesRequest.UnknownEmptyObject2 + 58, // 2: client.AckMessageRequest.authData:type_name -> authentication.AuthMessage + 59, // 3: client.AckMessageRequest.emptyArr:type_name -> util.EmptyArr + 56, // 4: client.AckMessageRequest.acks:type_name -> client.AckMessageRequest.Message + 12, // 5: client.DownloadAttachmentRequest.info:type_name -> client.AttachmentInfo + 58, // 6: client.DownloadAttachmentRequest.authData:type_name -> authentication.AuthMessage + 58, // 7: client.StartMediaUploadRequest.authData:type_name -> authentication.AuthMessage + 60, // 8: client.StartMediaUploadRequest.mobile:type_name -> authentication.Device + 15, // 9: client.UploadMediaResponse.media:type_name -> client.UploadedMedia + 18, // 10: client.GetParticipantThumbnailResponse.thumbnail:type_name -> client.ParticipantThumbnail + 20, // 11: client.ParticipantThumbnail.data:type_name -> client.ThumbnailData + 61, // 12: client.ThumbnailData.dimensions:type_name -> conversations.Dimensions + 21, // 13: client.FetchMessagesRequest.cursor:type_name -> client.Cursor + 62, // 14: client.FetchMessagesResponse.messages:type_name -> conversations.Message + 21, // 15: client.FetchMessagesResponse.cursor:type_name -> client.Cursor + 63, // 16: client.ListContactsResponse.contacts:type_name -> conversations.Contact + 63, // 17: client.ListTopContactsResponse.contacts:type_name -> conversations.Contact + 3, // 18: client.ListConversationsRequest.folder:type_name -> client.ListConversationsRequest.Folder + 21, // 19: client.ListConversationsRequest.cursor:type_name -> client.Cursor + 64, // 20: client.ListConversationsResponse.conversations:type_name -> conversations.Conversation + 21, // 21: client.ListConversationsResponse.cursor:type_name -> client.Cursor + 65, // 22: client.GetOrCreateConversationRequest.numbers:type_name -> conversations.ContactNumber + 64, // 23: client.GetOrCreateConversationResponse.conversation:type_name -> conversations.Conversation + 4, // 24: client.GetOrCreateConversationResponse.status:type_name -> client.GetOrCreateConversationResponse.Status + 36, // 25: client.UpdateConversationRequest.data:type_name -> client.UpdateConversationData + 1, // 26: client.UpdateConversationRequest.action:type_name -> client.ConversationActionStatus + 35, // 27: client.UpdateConversationRequest.action5:type_name -> client.ConversationAction5 + 0, // 28: client.UpdateConversationData.status:type_name -> client.ConversationStatus + 2, // 29: client.UpdateConversationData.mute:type_name -> client.ConversationMuteStatus + 64, // 30: client.GetConversationResponse.conversation:type_name -> conversations.Conversation + 47, // 31: client.SendMessageRequest.messagePayload:type_name -> client.MessagePayload + 46, // 32: client.SendMessageRequest.reply:type_name -> client.ReplyPayload + 48, // 33: client.MessagePayload.messagePayloadContent:type_name -> client.MessagePayloadContent + 66, // 34: client.MessagePayload.messageInfo:type_name -> conversations.MessageInfo + 67, // 35: client.MessagePayloadContent.messageContent:type_name -> conversations.MessageContent + 68, // 36: client.SendReactionRequest.reactionData:type_name -> conversations.ReactionData + 5, // 37: client.SendReactionRequest.action:type_name -> client.SendReactionRequest.Action + 57, // 38: client.TypingUpdateRequest.data:type_name -> client.TypingUpdateRequest.Data + 54, // 39: client.ReceiveMessagesRequest.UnknownEmptyObject2.unknown:type_name -> client.ReceiveMessagesRequest.UnknownEmptyObject1 + 60, // 40: client.AckMessageRequest.Message.device:type_name -> authentication.Device + 41, // [41:41] is the sub-list for method output_type + 41, // [41:41] is the sub-list for method input_type + 41, // [41:41] is the sub-list for extension type_name + 41, // [41:41] is the sub-list for extension extendee + 0, // [0:41] is the sub-list for field type_name } func init() { file_client_proto_init() } @@ -650,10 +3314,12 @@ func file_client_proto_init() { if File_client_proto != nil { return } - file_messages_proto_init() + file_conversations_proto_init() + file_authentication_proto_init() + file_util_proto_init() if !protoimpl.UnsafeEnabled { file_client_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NotifyDittoActivityPayload); i { + switch v := v.(*NotifyDittoActivityRequest); i { case 0: return &v.state case 1: @@ -665,7 +3331,7 @@ func file_client_proto_init() { } } file_client_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MessageReadPayload); i { + switch v := v.(*NotifyDittoActivityResponse); i { case 0: return &v.state case 1: @@ -677,7 +3343,7 @@ func file_client_proto_init() { } } file_client_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AckMessagePayload); i { + switch v := v.(*ReceiveMessagesRequest); i { case 0: return &v.state case 1: @@ -689,7 +3355,7 @@ func file_client_proto_init() { } } file_client_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AckMessageData); i { + switch v := v.(*MessageReadRequest); i { case 0: return &v.state case 1: @@ -701,7 +3367,7 @@ func file_client_proto_init() { } } file_client_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImageMetaData); i { + switch v := v.(*AckMessageRequest); i { case 0: return &v.state case 1: @@ -713,7 +3379,7 @@ func file_client_proto_init() { } } file_client_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UploadImagePayload); i { + switch v := v.(*DownloadAttachmentRequest); i { case 0: return &v.state case 1: @@ -725,7 +3391,7 @@ func file_client_proto_init() { } } file_client_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BugleBackendService); i { + switch v := v.(*AttachmentInfo); i { case 0: return &v.state case 1: @@ -737,7 +3403,535 @@ func file_client_proto_init() { } } file_client_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BugleCode); i { + switch v := v.(*StartMediaUploadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UploadMediaResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UploadedMedia); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetParticipantThumbnailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetParticipantThumbnailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParticipantThumbnail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetContactsThumbnailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ThumbnailData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Cursor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListContactsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListTopContactsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListContactsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListTopContactsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListConversationsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListConversationsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetOrCreateConversationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetOrCreateConversationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateConversationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConversationAction5); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateConversationData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateConversationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConversationTypeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConversationTypeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConversationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConversationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenConversationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PrepareOpenConversationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IsBugleDefaultResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplyPayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MessagePayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MessagePayloadContent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendReactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendReactionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResendMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TypingUpdateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReceiveMessagesRequest_UnknownEmptyObject1); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReceiveMessagesRequest_UnknownEmptyObject2); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AckMessageRequest_Message); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TypingUpdateRequest_Data); i { case 0: return &v.state case 1: @@ -749,13 +3943,21 @@ func file_client_proto_init() { } } } + file_client_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_client_proto_msgTypes[22].OneofWrappers = []interface{}{} + file_client_proto_msgTypes[23].OneofWrappers = []interface{}{} + file_client_proto_msgTypes[24].OneofWrappers = []interface{}{} + file_client_proto_msgTypes[30].OneofWrappers = []interface{}{ + (*UpdateConversationData_Status)(nil), + (*UpdateConversationData_Mute)(nil), + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_client_proto_rawDesc, - NumEnums: 2, - NumMessages: 8, + NumEnums: 6, + NumMessages: 52, NumExtensions: 0, NumServices: 0, }, diff --git a/libgm/gmproto/client.pb.raw b/libgm/gmproto/client.pb.raw index e304e70ae2b7f44d927d60f00db7404a4a78e34e..264677403bf1702ded27647f59f888efe2d51d84 100644 GIT binary patch literal 6022 zcmbVQOLH5?5f%vI)gU2i_z*!8mZVvK+@r#ledvA`zqqfR%D3VJ#O!Y9j!P zU>8iWDu&N+V}RjJB3RrwXUk zsKkTWX-V))Y+;tX2BonA7e%sYS&2mx^z${iQ+Hm5`c*`K3`GHW%MR?DL?9F<2Tu_z!-Xe)wa+PT*`lk%sYaxF|o;|Dwf$h8)c65aCGBGD$;1g$dJq`F!-@s^s{v!i-dx1R* zj``5F2UFpmaSAyUY42Z8xpXhf7H0o%heQm<-nl#Cl6hroWek)Q{Wab#X`wWhag`{@ z4x;YX*c= z6C!bX2|H;b$H671K!qfg8n%Jo8cCrRD{4CV@+txFD@_yB6V%B_>?R>-k5hLfz0_iEIevR zegZIb@%s9r%vEzTAK$CRqv6+Dp#X~s(@!DaoX>o3Mjil+Y(MA(d>o<^n<4MO9kbp? zU4CGXrxK?uTV9}lgq=ekI4^Ya3M<`B^Y{+r9B+=U3Lvsf4aggicciu2$%aD;M2xL!93dT{P@^dXR@}~< z2A2L3c9O?Na3MO9;VaM6X4Kwg7d4`>nUdP6X;%RC-DMMkDT;i2=~4z=pP8DvkT|pNy;@MumSgd|A{TJyzm}13EWrn4Tv3eCfFaRuX zh^jLA0P@Hctb@|NiuKU!LKcNkizl5oF+eGK%+Qs1aL_~bd{~&pM!ukSJkdo6gQ^~% z%SSw6Mwb2%wo}&09;PankA{}Cw}=@?j_5x#u$S&=ilM2E7I`mZ(1y%{`)PJ65JW=r zC2w%o`gk62SxYKb2zuQ1V_XmSN$Eyjg-Se~m#q#P+ZYjq$+4$%9qz_Y5Y4$E-Ev$M z^A_Sl|B^8cSr})fMzipSdI*8_K)ek^^m9yp6D*qNo;OkzxX9E%G-N7snM!Pi^cS$F zdc)9^)!w8A4`0D|mo%(ME$VvQJhe~+`((-|allubmk#y^@ZfaDv7zRxG$o0h4T){R zUdM0DFGsw^FYNgUpPb8SVu2lBWPtSe1Rp-~ZB<##VNI>f&m> zdX+6mi|7aADJBHbS(lg^i0Hf6)=o#)vJXQt>mmLvkV9;6zKHT=YscI>DQpf=BJ>@s zVnS9=C;z`t)QEB}{rehJlEy~HDPe6~4|bC-W3U5!-%C@=*6YTkq%tkU()Xq$9?@_v z{|AFF1)q;DV$U$dt|Ud57s$`V+f&9>`~^@2*_30hisfs+rtOsfI>g0A{*$vJ!fvW>q#csMK%(vsLXvi(fy8h^kLla6onWNqa6EZrRq~);XOt}Cs%{wiCaURT zs0lU@*qq2hCCb~12Eyo+6)>@Zd>B?jk;y6+H8B@%q8|oly?(tv=pm4sP#Sd2vtZ$kfOxjr&)WU=R`$SwYFwj=i`IJ& zc8%V8v)?)CM(X8TM7}Zb&4F(b^;y7tu_Zsx>fP2EYoDI5{#Nk--;41>q6#m^ip7^1_p6&zwCob7p1ehW8O$^1&*Jd5jy|({XRX(loeb=@wT$!Lc3l=-Wn* zIFHqkM-LI-OoGjQ9L#Yan&~k14#+*GwAId@qi zXUA`$K9>t@WGaV+!x>eJ=Zt1)%&=H#cnAn6G8fwWRBTq+dDKPSU za!!bElCi4I5J+}`U0WvV;3GINjq!y?Xwg3EN{|jM-<_zIPszlg9@@wI&~{ain5N+o z)H_>4cbLRKQ conversations.ContactNumber - 14, // 1: conversations.GetOrCreateConversationPayload.numbers:type_name -> conversations.ContactNumber - 20, // 2: conversations.TypingUpdatePayload.data:type_name -> conversations.SetTypingIn - 23, // 3: conversations.UpdateConversationPayload.data:type_name -> conversations.UpdateConversationData - 4, // 4: conversations.UpdateConversationPayload.action:type_name -> conversations.ConversationActionStatus - 22, // 5: conversations.UpdateConversationPayload.action5:type_name -> conversations.ConversationAction5 - 3, // 6: conversations.UpdateConversationData.status:type_name -> conversations.ConversationStatus - 5, // 7: conversations.UpdateConversationData.mute:type_name -> conversations.ConversationMuteStatus - 27, // 8: conversations.SendMessagePayload.messagePayload:type_name -> conversations.MessagePayload - 26, // 9: conversations.SendMessagePayload.reply:type_name -> conversations.ReplyPayload - 28, // 10: conversations.MessagePayload.messagePayloadContent:type_name -> conversations.MessagePayloadContent - 37, // 11: conversations.MessagePayload.messageInfo:type_name -> conversations.MessageInfo - 40, // 12: conversations.MessagePayloadContent.messageContent:type_name -> conversations.MessageContent - 33, // 13: conversations.FetchConversationMessagesPayload.cursor:type_name -> conversations.Cursor - 8, // 14: conversations.ListConversationsPayload.folder:type_name -> conversations.ListConversationsPayload.Folder - 33, // 15: conversations.ListConversationsPayload.cursor:type_name -> conversations.Cursor - 41, // 16: conversations.Message.msgType:type_name -> conversations.MsgType - 42, // 17: conversations.Message.messageStatus:type_name -> conversations.MessageStatus - 37, // 18: conversations.Message.messageInfo:type_name -> conversations.MessageInfo - 50, // 19: conversations.Message.reactions:type_name -> reactions.ReactionResponse - 35, // 20: conversations.Message.replyMessage:type_name -> conversations.ReplyMessage - 36, // 21: conversations.ReplyMessage.replyMessageData:type_name -> conversations.ReplyMessageData - 40, // 22: conversations.MessageInfo.messageContent:type_name -> conversations.MessageContent - 38, // 23: conversations.MessageInfo.mediaContent:type_name -> conversations.MediaContent - 7, // 24: conversations.MediaContent.format:type_name -> conversations.MediaFormats - 39, // 25: conversations.MediaContent.pixels:type_name -> conversations.Pixels - 2, // 26: conversations.MessageStatus.status:type_name -> conversations.MessageStatusType - 44, // 27: conversations.Conversations.conversations:type_name -> conversations.Conversation - 33, // 28: conversations.Conversations.cursor:type_name -> conversations.Cursor - 47, // 29: conversations.Conversation.latestMessage:type_name -> conversations.LatestMessage - 6, // 30: conversations.Conversation.status:type_name -> conversations.ConvUpdateTypes - 45, // 31: conversations.Conversation.participants:type_name -> conversations.Participant - 1, // 32: conversations.Conversation.type:type_name -> conversations.ConversationType - 46, // 33: conversations.Participant.ID:type_name -> conversations.SmallInfo - 49, // 34: conversations.Participant.muted:type_name -> conversations.Muted - 0, // 35: conversations.SmallInfo.type:type_name -> conversations.IdentifierType - 48, // 36: conversations.LatestMessage.latestMessageStatus:type_name -> conversations.LatestMessageStatus - 2, // 37: conversations.LatestMessageStatus.status:type_name -> conversations.MessageStatusType - 38, // [38:38] is the sub-list for method output_type - 38, // [38:38] is the sub-list for method input_type - 38, // [38:38] is the sub-list for extension type_name - 38, // [38:38] is the sub-list for extension extendee - 0, // [0:38] is the sub-list for field type_name + 7, // 0: conversations.Contact.number:type_name -> conversations.ContactNumber + 19, // 1: conversations.Message.msgType:type_name -> conversations.MsgType + 20, // 2: conversations.Message.messageStatus:type_name -> conversations.MessageStatus + 15, // 3: conversations.Message.messageInfo:type_name -> conversations.MessageInfo + 9, // 4: conversations.Message.reactions:type_name -> conversations.ReactionEntry + 13, // 5: conversations.Message.replyMessage:type_name -> conversations.ReplyMessage + 10, // 6: conversations.ReactionEntry.data:type_name -> conversations.ReactionData + 0, // 7: conversations.ReactionData.type:type_name -> conversations.EmojiType + 12, // 8: conversations.EmojiMeta.emojiMetaData:type_name -> conversations.EmojiMetaData + 14, // 9: conversations.ReplyMessage.replyMessageData:type_name -> conversations.ReplyMessageData + 18, // 10: conversations.MessageInfo.messageContent:type_name -> conversations.MessageContent + 16, // 11: conversations.MessageInfo.mediaContent:type_name -> conversations.MediaContent + 5, // 12: conversations.MediaContent.format:type_name -> conversations.MediaFormats + 17, // 13: conversations.MediaContent.dimensions:type_name -> conversations.Dimensions + 3, // 14: conversations.MessageStatus.status:type_name -> conversations.MessageStatusType + 24, // 15: conversations.Conversation.latestMessage:type_name -> conversations.LatestMessage + 4, // 16: conversations.Conversation.status:type_name -> conversations.ConvUpdateTypes + 22, // 17: conversations.Conversation.participants:type_name -> conversations.Participant + 2, // 18: conversations.Conversation.type:type_name -> conversations.ConversationType + 23, // 19: conversations.Participant.ID:type_name -> conversations.SmallInfo + 26, // 20: conversations.Participant.muted:type_name -> conversations.Muted + 1, // 21: conversations.SmallInfo.type:type_name -> conversations.IdentifierType + 25, // 22: conversations.LatestMessage.latestMessageStatus:type_name -> conversations.LatestMessageStatus + 3, // 23: conversations.LatestMessageStatus.status:type_name -> conversations.MessageStatusType + 24, // [24:24] is the sub-list for method output_type + 24, // [24:24] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name } func init() { file_conversations_proto_init() } @@ -3684,57 +2373,8 @@ func file_conversations_proto_init() { if File_conversations_proto != nil { return } - file_reactions_proto_init() if !protoimpl.UnsafeEnabled { file_conversations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetParticipantThumbnailPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListContactsPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTopContactsPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetContactsThumbnailPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Contact); i { case 0: return &v.state @@ -3746,7 +2386,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ContactNumber); i { case 0: return &v.state @@ -3758,235 +2398,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOrCreateConversationPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResendMessagePayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConversationPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConversationTypePayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TypingUpdatePayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetTypingIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateConversationPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConversationAction5); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateConversationData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteMessagePayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendMessagePayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReplyPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MessagePayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MessagePayloadContent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenConversationPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareOpenConversationPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchConversationMessagesPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListConversationsPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Cursor); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Message); i { case 0: return &v.state @@ -3998,7 +2410,55 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReactionEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_conversations_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReactionData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_conversations_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmojiMeta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_conversations_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmojiMetaData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_conversations_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReplyMessage); i { case 0: return &v.state @@ -4010,7 +2470,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReplyMessageData); i { case 0: return &v.state @@ -4022,7 +2482,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MessageInfo); i { case 0: return &v.state @@ -4034,7 +2494,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MediaContent); i { case 0: return &v.state @@ -4046,8 +2506,8 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Pixels); i { + file_conversations_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Dimensions); i { case 0: return &v.state case 1: @@ -4058,7 +2518,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MessageContent); i { case 0: return &v.state @@ -4070,7 +2530,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgType); i { case 0: return &v.state @@ -4082,7 +2542,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MessageStatus); i { case 0: return &v.state @@ -4094,19 +2554,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Conversations); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conversations_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Conversation); i { case 0: return &v.state @@ -4118,7 +2566,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Participant); i { case 0: return &v.state @@ -4130,7 +2578,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SmallInfo); i { case 0: return &v.state @@ -4142,7 +2590,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LatestMessage); i { case 0: return &v.state @@ -4154,7 +2602,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LatestMessageStatus); i { case 0: return &v.state @@ -4166,7 +2614,7 @@ func file_conversations_proto_init() { return nil } } - file_conversations_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_conversations_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Muted); i { case 0: return &v.state @@ -4179,26 +2627,19 @@ func file_conversations_proto_init() { } } } - file_conversations_proto_msgTypes[5].OneofWrappers = []interface{}{} - file_conversations_proto_msgTypes[6].OneofWrappers = []interface{}{} - file_conversations_proto_msgTypes[14].OneofWrappers = []interface{}{ - (*UpdateConversationData_Status)(nil), - (*UpdateConversationData_Mute)(nil), - } - file_conversations_proto_msgTypes[23].OneofWrappers = []interface{}{} - file_conversations_proto_msgTypes[25].OneofWrappers = []interface{}{} - file_conversations_proto_msgTypes[28].OneofWrappers = []interface{}{ + file_conversations_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_conversations_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_conversations_proto_msgTypes[9].OneofWrappers = []interface{}{ (*MessageInfo_MessageContent)(nil), (*MessageInfo_MediaContent)(nil), } - file_conversations_proto_msgTypes[34].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_conversations_proto_rawDesc, - NumEnums: 9, - NumMessages: 41, + NumEnums: 6, + NumMessages: 21, NumExtensions: 0, NumServices: 0, }, diff --git a/libgm/gmproto/conversations.pb.raw b/libgm/gmproto/conversations.pb.raw index 4f425fd47b0c4d9de9026e3879d6f8325e8d05af..56a8d1bacbe150602dd38b77190dfd28f58342e2 100644 GIT binary patch delta 762 zcmaJ;y>8P`809v<{%j|g8w3s#QWPO50)o^Is2u>uzD=w)ae8f6%77v(F<_+FAvQ>5 z>57;DBk>N1%@c0`D;qOB1_QR!1SJF8J?A^;`#JZI^|}4-dc2EXBlJBk3ttf42X5}z zsV4WoQAV0A~TS6ZySI!oGHNh-n$qlH??0M*p z-I?u$ni@!3jodcJHrVC~2+LWin@CW4>A7Qn;z+2062lUbJCF}gXHL=wZC7@r*4X!6 zIrG3y7vBw9bm~8M%|yU5SyKltqk2x#wGE<^)>DvKg;9Xa^cq@dZ+b{E>D@G0I;03B_B4gTj$)b-Fl5MBogI z4VY#m>O3hy&X84HNF{Q=!-lv>cqplwku@n1fa0NI8K&ODWl{zH*rG-{TI+W(ml6sa mChyUKtWXRDgD}u7bH(uKKt|P3m&(k^V*xb3=kdXarLNAq7_qj}}ou{el>XZH;Y;s8nm}T)>haqnQb6 zL?yRUD^=Z4G~HI+wpE2xWy21siwdc`{(vs~8@gzvp8FVQGJwj;K976Och3FJx${%; zpY}J$&K{a|sMYm)qoJF(osl=v*J1e@^%|Dr^}0RV8hWk!TZ4~>R z=#I9AUQXf8LeMY45~3@elWC*a$YIc|2bO0!)v}8x7f0aQ z`aUzP9n-HAg}eosE>9o$=cdp%wXT>EJvtX>VWt!KvAD(kFx%OCTt5c~OzP6%<_2|L z>mChC!FCLUrdq~gl-1+dkBLTq9~M|QL&b&ecu6n7!LY5hZ3ltA z#9jtT^Du>?#q*_&Ly_h+sV5FqhbH&aHz2*M^uN&7#tWc&JTUKJ%9N7+uL6rAR~T22 z_oB?p2$MEeB6(jtS4NNm0=WXJm;w$uo-t1NKc<(m1wI)~&+@ih6FvOTwS!9B|12>N z??F2r|$^w^JZYsPs3aor?eBS?rx9vHw~T)s}qv`s{#uzM~NeMa{nbz zU5+F-jRj_mqYUB^0S;LvjpPzc4YoYWXDnl^FsFMPsF*l%b5Rw|V$3PiKK1DTF=r2P z{!)N6U!WVZ;^bllGLm5OUiclRjW_(l?1CwEX2gf!w0i>^Ny=7-W(tAiAlY+GYWKJK z3Q3uPNX|gQ;rf*SNS*heB@)X)XkpM#;WRQ2srGA$KmKn)zuLF33`@GjifGg;=l-XF);Khfk(`PG20j*Z_A)PEQs`Ii$ events.ConversationEvent - 6, // 1: events.UpdateEvents.messageEvent:type_name -> events.MessageEvent - 5, // 2: events.UpdateEvents.typingEvent:type_name -> events.TypingEvent - 11, // 3: events.UpdateEvents.settingsEvent:type_name -> settings.Settings - 7, // 4: events.UpdateEvents.userAlertEvent:type_name -> events.UserAlertEvent - 12, // 5: events.ConversationEvent.data:type_name -> conversations.Conversation - 8, // 6: events.TypingEvent.data:type_name -> events.TypingData - 13, // 7: events.MessageEvent.data:type_name -> conversations.Message + 3, // 0: events.UpdateEvents.conversationEvent:type_name -> events.ConversationEvent + 5, // 1: events.UpdateEvents.messageEvent:type_name -> events.MessageEvent + 4, // 2: events.UpdateEvents.typingEvent:type_name -> events.TypingEvent + 10, // 3: events.UpdateEvents.settingsEvent:type_name -> settings.Settings + 6, // 4: events.UpdateEvents.userAlertEvent:type_name -> events.UserAlertEvent + 11, // 5: events.ConversationEvent.data:type_name -> conversations.Conversation + 7, // 6: events.TypingEvent.data:type_name -> events.TypingData + 12, // 7: events.MessageEvent.data:type_name -> conversations.Message 0, // 8: events.UserAlertEvent.alertType:type_name -> events.AlertType - 9, // 9: events.TypingData.user:type_name -> events.User - 2, // 10: events.TypingData.type:type_name -> events.TypingTypes - 14, // 11: events.RPCPairData.paired:type_name -> authentication.PairedData - 15, // 12: events.RPCPairData.revoked:type_name -> authentication.RevokePairData + 8, // 9: events.TypingData.user:type_name -> events.User + 1, // 10: events.TypingData.type:type_name -> events.TypingTypes + 13, // 11: events.RPCPairData.paired:type_name -> authentication.PairedData + 14, // 12: events.RPCPairData.revoked:type_name -> authentication.RevokePairData 13, // [13:13] is the sub-list for method output_type 13, // [13:13] is the sub-list for method input_type 13, // [13:13] is the sub-list for extension type_name @@ -943,7 +851,7 @@ func file_events_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_events_proto_rawDesc, - NumEnums: 3, + NumEnums: 2, NumMessages: 8, NumExtensions: 0, NumServices: 0, diff --git a/libgm/gmproto/events.pb.raw b/libgm/gmproto/events.pb.raw index 5ce13e79a7f88e1f9da5b9171701c3c07d964c7c..d4b837ced27496c16d88aebcaeef454066d8c3ed 100644 GIT binary patch delta 11 ScmbQwf1hWAFx%u{b{_y3tOJ|? delta 333 zcmWlTTT%is5JeSqfM#Gq<6}L|q=6Kf&Qu<#Un$ohezOP{;1=9~YjG+b~M;Kx2(-Y=gY*ucb{)D5m+(UbISEo*g)OPD1&iF*+>!3R)A&SZ_wP~ z0`weQ@_j8HDTP?>b9{#Fo=h2*N6) messages.AuthMessage - 4, // 1: media.StartMediaUploadPayload.mobile:type_name -> messages.Device - 2, // 2: media.UploadMediaResponse.media:type_name -> media.Media - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_media_proto_init() } -func file_media_proto_init() { - if File_media_proto != nil { - return - } - file_messages_proto_init() - if !protoimpl.UnsafeEnabled { - file_media_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartMediaUploadPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_media_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UploadMediaResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_media_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Media); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_media_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_media_proto_goTypes, - DependencyIndexes: file_media_proto_depIdxs, - MessageInfos: file_media_proto_msgTypes, - }.Build() - File_media_proto = out.File - file_media_proto_rawDesc = nil - file_media_proto_goTypes = nil - file_media_proto_depIdxs = nil -} diff --git a/libgm/gmproto/media.pb.raw b/libgm/gmproto/media.pb.raw deleted file mode 100644 index 455b5f8..0000000 --- a/libgm/gmproto/media.pb.raw +++ /dev/null @@ -1,13 +0,0 @@ - - media.protomediamessages.proto"” -StartMediaUploadPayload - imageType (R imageType1 -authData ( 2.messages.AuthMessageRauthData( -mobile ( 2.messages.DeviceRmobile"S -UploadMediaResponse" -media ( 2 .media.MediaRmedia -message ( Rmessage"C -Media -mediaID ( RmediaID - mediaNumber (R mediaNumberB Z -../gmprotobproto3 \ No newline at end of file diff --git a/libgm/gmproto/media.proto b/libgm/gmproto/media.proto deleted file mode 100644 index 5cc54af..0000000 --- a/libgm/gmproto/media.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; -package media; - -option go_package = "../gmproto"; - -import "messages.proto"; - -message StartMediaUploadPayload { - int64 imageType = 1; - messages.AuthMessage authData = 2; - messages.Device mobile = 3; -} - -message UploadMediaResponse { - Media media = 1; - string message = 2; -} - -message Media { - string mediaID = 1; - int64 mediaNumber = 2; -} diff --git a/libgm/gmproto/messages.pb.go b/libgm/gmproto/messages.pb.go deleted file mode 100644 index 1d9ca6d..0000000 --- a/libgm/gmproto/messages.pb.go +++ /dev/null @@ -1,1975 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.12 -// source: messages.proto - -package gmproto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -import _ "embed" - -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) -) - -type BugleRoute int32 - -const ( - BugleRoute_UNKNOWN_BUGLE_ROUTE BugleRoute = 0 - BugleRoute_DataEvent BugleRoute = 19 - BugleRoute_PairEvent BugleRoute = 14 -) - -// Enum value maps for BugleRoute. -var ( - BugleRoute_name = map[int32]string{ - 0: "UNKNOWN_BUGLE_ROUTE", - 19: "DataEvent", - 14: "PairEvent", - } - BugleRoute_value = map[string]int32{ - "UNKNOWN_BUGLE_ROUTE": 0, - "DataEvent": 19, - "PairEvent": 14, - } -) - -func (x BugleRoute) Enum() *BugleRoute { - p := new(BugleRoute) - *p = x - return p -} - -func (x BugleRoute) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (BugleRoute) Descriptor() protoreflect.EnumDescriptor { - return file_messages_proto_enumTypes[0].Descriptor() -} - -func (BugleRoute) Type() protoreflect.EnumType { - return &file_messages_proto_enumTypes[0] -} - -func (x BugleRoute) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use BugleRoute.Descriptor instead. -func (BugleRoute) EnumDescriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{0} -} - -type ActionType int32 - -const ( - ActionType_UNSPECIFIED ActionType = 0 - ActionType_LIST_CONVERSATIONS ActionType = 1 - ActionType_LIST_CONVERSATIONS_SYNC ActionType = 1111 // fake value - ActionType_LIST_MESSAGES ActionType = 2 - ActionType_SEND_MESSAGE ActionType = 3 - ActionType_MESSAGE_UPDATES ActionType = 4 - ActionType_LIST_CONTACTS ActionType = 6 - ActionType_CONVERSATION_UPDATES ActionType = 7 - ActionType_GET_OR_CREATE_CONVERSATION ActionType = 9 - ActionType_MESSAGE_READ ActionType = 10 - ActionType_BROWSER_PRESENCE_CHECK ActionType = 11 - ActionType_TYPING_UPDATES ActionType = 12 - ActionType_SETTINGS_UPDATE ActionType = 13 - ActionType_USER_ALERT ActionType = 14 - ActionType_UPDATE_CONVERSATION ActionType = 15 - ActionType_GET_UPDATES ActionType = 16 - ActionType_ACK_BROWSER_PRESENCE ActionType = 17 - ActionType_LIST_STICKER_SETS ActionType = 18 - ActionType_LEAVE_RCS_GROUP ActionType = 19 - ActionType_ADD_PARTICIPANT_TO_RCS_GROUP ActionType = 20 - ActionType_GET_CONVERSATION_TYPE ActionType = 21 - ActionType_NOTIFY_DITTO_ACTIVITY ActionType = 22 - ActionType_DELETE_MESSAGE ActionType = 23 - ActionType_INSTALL_STICKER_SET ActionType = 24 - ActionType_RESEND_MESSAGE ActionType = 25 - ActionType_GET_CONTACT_RCS_GROUP_STATUS ActionType = 26 - ActionType_DOWNLOAD_MESSAGE ActionType = 27 - ActionType_LIST_TOP_CONTACTS ActionType = 28 - ActionType_GET_CONTACTS_THUMBNAIL ActionType = 29 - ActionType_CHANGE_PARTICIPANT_COLOR ActionType = 30 - ActionType_IS_BUGLE_DEFAULT ActionType = 31 - ActionType_STICKER_USER_CONTEXT ActionType = 32 - ActionType_FAVORITE_STICKER_PACKS ActionType = 33 - ActionType_RECENT_STICKERS ActionType = 34 - ActionType_UPDATE_RECENT_STICKERS ActionType = 35 - ActionType_GET_FULL_SIZE_IMAGE ActionType = 36 - ActionType_GET_PARTICIPANTS_THUMBNAIL ActionType = 37 - ActionType_SEND_REACTION ActionType = 38 - ActionType_SEND_REPLY ActionType = 39 - ActionType_GET_BLOB_FOR_ATTACHMENT ActionType = 40 - ActionType_GET_DEVICES_AVAILABLE_FOR_GAIA_PAIRING ActionType = 41 - ActionType_CREATE_GAIA_PAIRING ActionType = 42 - ActionType_GET_CONVERSATION ActionType = 43 - ActionType_CREATE_GAIA_PAIRING_CLIENT_INIT ActionType = 44 - ActionType_CREATE_GAIA_PAIRING_CLIENT_FINISHED ActionType = 45 - ActionType_UNPAIR_GAIA_PAIRING ActionType = 46 -) - -// Enum value maps for ActionType. -var ( - ActionType_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "LIST_CONVERSATIONS", - 1111: "LIST_CONVERSATIONS_SYNC", - 2: "LIST_MESSAGES", - 3: "SEND_MESSAGE", - 4: "MESSAGE_UPDATES", - 6: "LIST_CONTACTS", - 7: "CONVERSATION_UPDATES", - 9: "GET_OR_CREATE_CONVERSATION", - 10: "MESSAGE_READ", - 11: "BROWSER_PRESENCE_CHECK", - 12: "TYPING_UPDATES", - 13: "SETTINGS_UPDATE", - 14: "USER_ALERT", - 15: "UPDATE_CONVERSATION", - 16: "GET_UPDATES", - 17: "ACK_BROWSER_PRESENCE", - 18: "LIST_STICKER_SETS", - 19: "LEAVE_RCS_GROUP", - 20: "ADD_PARTICIPANT_TO_RCS_GROUP", - 21: "GET_CONVERSATION_TYPE", - 22: "NOTIFY_DITTO_ACTIVITY", - 23: "DELETE_MESSAGE", - 24: "INSTALL_STICKER_SET", - 25: "RESEND_MESSAGE", - 26: "GET_CONTACT_RCS_GROUP_STATUS", - 27: "DOWNLOAD_MESSAGE", - 28: "LIST_TOP_CONTACTS", - 29: "GET_CONTACTS_THUMBNAIL", - 30: "CHANGE_PARTICIPANT_COLOR", - 31: "IS_BUGLE_DEFAULT", - 32: "STICKER_USER_CONTEXT", - 33: "FAVORITE_STICKER_PACKS", - 34: "RECENT_STICKERS", - 35: "UPDATE_RECENT_STICKERS", - 36: "GET_FULL_SIZE_IMAGE", - 37: "GET_PARTICIPANTS_THUMBNAIL", - 38: "SEND_REACTION", - 39: "SEND_REPLY", - 40: "GET_BLOB_FOR_ATTACHMENT", - 41: "GET_DEVICES_AVAILABLE_FOR_GAIA_PAIRING", - 42: "CREATE_GAIA_PAIRING", - 43: "GET_CONVERSATION", - 44: "CREATE_GAIA_PAIRING_CLIENT_INIT", - 45: "CREATE_GAIA_PAIRING_CLIENT_FINISHED", - 46: "UNPAIR_GAIA_PAIRING", - } - ActionType_value = map[string]int32{ - "UNSPECIFIED": 0, - "LIST_CONVERSATIONS": 1, - "LIST_CONVERSATIONS_SYNC": 1111, - "LIST_MESSAGES": 2, - "SEND_MESSAGE": 3, - "MESSAGE_UPDATES": 4, - "LIST_CONTACTS": 6, - "CONVERSATION_UPDATES": 7, - "GET_OR_CREATE_CONVERSATION": 9, - "MESSAGE_READ": 10, - "BROWSER_PRESENCE_CHECK": 11, - "TYPING_UPDATES": 12, - "SETTINGS_UPDATE": 13, - "USER_ALERT": 14, - "UPDATE_CONVERSATION": 15, - "GET_UPDATES": 16, - "ACK_BROWSER_PRESENCE": 17, - "LIST_STICKER_SETS": 18, - "LEAVE_RCS_GROUP": 19, - "ADD_PARTICIPANT_TO_RCS_GROUP": 20, - "GET_CONVERSATION_TYPE": 21, - "NOTIFY_DITTO_ACTIVITY": 22, - "DELETE_MESSAGE": 23, - "INSTALL_STICKER_SET": 24, - "RESEND_MESSAGE": 25, - "GET_CONTACT_RCS_GROUP_STATUS": 26, - "DOWNLOAD_MESSAGE": 27, - "LIST_TOP_CONTACTS": 28, - "GET_CONTACTS_THUMBNAIL": 29, - "CHANGE_PARTICIPANT_COLOR": 30, - "IS_BUGLE_DEFAULT": 31, - "STICKER_USER_CONTEXT": 32, - "FAVORITE_STICKER_PACKS": 33, - "RECENT_STICKERS": 34, - "UPDATE_RECENT_STICKERS": 35, - "GET_FULL_SIZE_IMAGE": 36, - "GET_PARTICIPANTS_THUMBNAIL": 37, - "SEND_REACTION": 38, - "SEND_REPLY": 39, - "GET_BLOB_FOR_ATTACHMENT": 40, - "GET_DEVICES_AVAILABLE_FOR_GAIA_PAIRING": 41, - "CREATE_GAIA_PAIRING": 42, - "GET_CONVERSATION": 43, - "CREATE_GAIA_PAIRING_CLIENT_INIT": 44, - "CREATE_GAIA_PAIRING_CLIENT_FINISHED": 45, - "UNPAIR_GAIA_PAIRING": 46, - } -) - -func (x ActionType) Enum() *ActionType { - p := new(ActionType) - *p = x - return p -} - -func (x ActionType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ActionType) Descriptor() protoreflect.EnumDescriptor { - return file_messages_proto_enumTypes[1].Descriptor() -} - -func (ActionType) Type() protoreflect.EnumType { - return &file_messages_proto_enumTypes[1] -} - -func (x ActionType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ActionType.Descriptor instead. -func (ActionType) EnumDescriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{1} -} - -type MessageType int32 - -const ( - MessageType_UNKNOWN_MESSAGE_TYPE MessageType = 0 - MessageType_BUGLE_MESSAGE MessageType = 2 - MessageType_BUGLE_ANNOTATION MessageType = 16 -) - -// Enum value maps for MessageType. -var ( - MessageType_name = map[int32]string{ - 0: "UNKNOWN_MESSAGE_TYPE", - 2: "BUGLE_MESSAGE", - 16: "BUGLE_ANNOTATION", - } - MessageType_value = map[string]int32{ - "UNKNOWN_MESSAGE_TYPE": 0, - "BUGLE_MESSAGE": 2, - "BUGLE_ANNOTATION": 16, - } -) - -func (x MessageType) Enum() *MessageType { - p := new(MessageType) - *p = x - return p -} - -func (x MessageType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MessageType) Descriptor() protoreflect.EnumDescriptor { - return file_messages_proto_enumTypes[2].Descriptor() -} - -func (MessageType) Type() protoreflect.EnumType { - return &file_messages_proto_enumTypes[2] -} - -func (x MessageType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MessageType.Descriptor instead. -func (MessageType) EnumDescriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{2} -} - -type RegisterRefreshPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MessageAuth *AuthMessage `protobuf:"bytes,1,opt,name=messageAuth,proto3" json:"messageAuth,omitempty"` - CurrBrowserDevice *Device `protobuf:"bytes,2,opt,name=currBrowserDevice,proto3" json:"currBrowserDevice,omitempty"` - UnixTimestamp int64 `protobuf:"varint,3,opt,name=unixTimestamp,proto3" json:"unixTimestamp,omitempty"` - Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` - EmptyRefreshArr *EmptyRefreshArr `protobuf:"bytes,13,opt,name=emptyRefreshArr,proto3" json:"emptyRefreshArr,omitempty"` - MessageType int32 `protobuf:"varint,16,opt,name=messageType,proto3" json:"messageType,omitempty"` -} - -func (x *RegisterRefreshPayload) Reset() { - *x = RegisterRefreshPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RegisterRefreshPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RegisterRefreshPayload) ProtoMessage() {} - -func (x *RegisterRefreshPayload) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RegisterRefreshPayload.ProtoReflect.Descriptor instead. -func (*RegisterRefreshPayload) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{0} -} - -func (x *RegisterRefreshPayload) GetMessageAuth() *AuthMessage { - if x != nil { - return x.MessageAuth - } - return nil -} - -func (x *RegisterRefreshPayload) GetCurrBrowserDevice() *Device { - if x != nil { - return x.CurrBrowserDevice - } - return nil -} - -func (x *RegisterRefreshPayload) GetUnixTimestamp() int64 { - if x != nil { - return x.UnixTimestamp - } - return 0 -} - -func (x *RegisterRefreshPayload) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -func (x *RegisterRefreshPayload) GetEmptyRefreshArr() *EmptyRefreshArr { - if x != nil { - return x.EmptyRefreshArr - } - return nil -} - -func (x *RegisterRefreshPayload) GetMessageType() int32 { - if x != nil { - return x.MessageType - } - return 0 -} - -type EmptyRefreshArr struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EmptyArr *EmptyArr `protobuf:"bytes,9,opt,name=emptyArr,proto3" json:"emptyArr,omitempty"` -} - -func (x *EmptyRefreshArr) Reset() { - *x = EmptyRefreshArr{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EmptyRefreshArr) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EmptyRefreshArr) ProtoMessage() {} - -func (x *EmptyRefreshArr) ProtoReflect() protoreflect.Message { - mi := &file_messages_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 EmptyRefreshArr.ProtoReflect.Descriptor instead. -func (*EmptyRefreshArr) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{1} -} - -func (x *EmptyRefreshArr) GetEmptyArr() *EmptyArr { - if x != nil { - return x.EmptyArr - } - return nil -} - -type StartAckMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Count *int32 `protobuf:"varint,1,opt,name=count,proto3,oneof" json:"count,omitempty"` -} - -func (x *StartAckMessage) Reset() { - *x = StartAckMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartAckMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartAckMessage) ProtoMessage() {} - -func (x *StartAckMessage) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartAckMessage.ProtoReflect.Descriptor instead. -func (*StartAckMessage) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{2} -} - -func (x *StartAckMessage) GetCount() int32 { - if x != nil && x.Count != nil { - return *x.Count - } - return 0 -} - -type LongPollingPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *IncomingRPCMessage `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` - Heartbeat *EmptyArr `protobuf:"bytes,3,opt,name=heartbeat,proto3,oneof" json:"heartbeat,omitempty"` - Ack *StartAckMessage `protobuf:"bytes,4,opt,name=ack,proto3,oneof" json:"ack,omitempty"` - StartRead *EmptyArr `protobuf:"bytes,5,opt,name=startRead,proto3,oneof" json:"startRead,omitempty"` -} - -func (x *LongPollingPayload) Reset() { - *x = LongPollingPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LongPollingPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LongPollingPayload) ProtoMessage() {} - -func (x *LongPollingPayload) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LongPollingPayload.ProtoReflect.Descriptor instead. -func (*LongPollingPayload) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{3} -} - -func (x *LongPollingPayload) GetData() *IncomingRPCMessage { - if x != nil { - return x.Data - } - return nil -} - -func (x *LongPollingPayload) GetHeartbeat() *EmptyArr { - if x != nil { - return x.Heartbeat - } - return nil -} - -func (x *LongPollingPayload) GetAck() *StartAckMessage { - if x != nil { - return x.Ack - } - return nil -} - -func (x *LongPollingPayload) GetStartRead() *EmptyArr { - if x != nil { - return x.StartRead - } - return nil -} - -type IncomingRPCMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ResponseID string `protobuf:"bytes,1,opt,name=responseID,proto3" json:"responseID,omitempty"` - BugleRoute BugleRoute `protobuf:"varint,2,opt,name=bugleRoute,proto3,enum=messages.BugleRoute" json:"bugleRoute,omitempty"` - StartExecute string `protobuf:"bytes,3,opt,name=startExecute,proto3" json:"startExecute,omitempty"` - MessageType MessageType `protobuf:"varint,5,opt,name=messageType,proto3,enum=messages.MessageType" json:"messageType,omitempty"` - FinishExecute string `protobuf:"bytes,6,opt,name=finishExecute,proto3" json:"finishExecute,omitempty"` - MillisecondsTaken string `protobuf:"bytes,7,opt,name=millisecondsTaken,proto3" json:"millisecondsTaken,omitempty"` - Mobile *Device `protobuf:"bytes,8,opt,name=mobile,proto3" json:"mobile,omitempty"` - Browser *Device `protobuf:"bytes,9,opt,name=browser,proto3" json:"browser,omitempty"` - // Either a RPCMessageData or a RPCPairData encoded as bytes - MessageData []byte `protobuf:"bytes,12,opt,name=messageData,proto3" json:"messageData,omitempty"` - SignatureID string `protobuf:"bytes,17,opt,name=signatureID,proto3" json:"signatureID,omitempty"` - Timestamp string `protobuf:"bytes,21,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (x *IncomingRPCMessage) Reset() { - *x = IncomingRPCMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IncomingRPCMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IncomingRPCMessage) ProtoMessage() {} - -func (x *IncomingRPCMessage) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IncomingRPCMessage.ProtoReflect.Descriptor instead. -func (*IncomingRPCMessage) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{4} -} - -func (x *IncomingRPCMessage) GetResponseID() string { - if x != nil { - return x.ResponseID - } - return "" -} - -func (x *IncomingRPCMessage) GetBugleRoute() BugleRoute { - if x != nil { - return x.BugleRoute - } - return BugleRoute_UNKNOWN_BUGLE_ROUTE -} - -func (x *IncomingRPCMessage) GetStartExecute() string { - if x != nil { - return x.StartExecute - } - return "" -} - -func (x *IncomingRPCMessage) GetMessageType() MessageType { - if x != nil { - return x.MessageType - } - return MessageType_UNKNOWN_MESSAGE_TYPE -} - -func (x *IncomingRPCMessage) GetFinishExecute() string { - if x != nil { - return x.FinishExecute - } - return "" -} - -func (x *IncomingRPCMessage) GetMillisecondsTaken() string { - if x != nil { - return x.MillisecondsTaken - } - return "" -} - -func (x *IncomingRPCMessage) GetMobile() *Device { - if x != nil { - return x.Mobile - } - return nil -} - -func (x *IncomingRPCMessage) GetBrowser() *Device { - if x != nil { - return x.Browser - } - return nil -} - -func (x *IncomingRPCMessage) GetMessageData() []byte { - if x != nil { - return x.MessageData - } - return nil -} - -func (x *IncomingRPCMessage) GetSignatureID() string { - if x != nil { - return x.SignatureID - } - return "" -} - -func (x *IncomingRPCMessage) GetTimestamp() string { - if x != nil { - return x.Timestamp - } - return "" -} - -type RPCMessageData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SessionID string `protobuf:"bytes,1,opt,name=sessionID,proto3" json:"sessionID,omitempty"` - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Action ActionType `protobuf:"varint,4,opt,name=action,proto3,enum=messages.ActionType" json:"action,omitempty"` - Bool1 bool `protobuf:"varint,6,opt,name=bool1,proto3" json:"bool1,omitempty"` - Bool2 bool `protobuf:"varint,7,opt,name=bool2,proto3" json:"bool2,omitempty"` - EncryptedData []byte `protobuf:"bytes,8,opt,name=encryptedData,proto3" json:"encryptedData,omitempty"` - Bool3 bool `protobuf:"varint,9,opt,name=bool3,proto3" json:"bool3,omitempty"` -} - -func (x *RPCMessageData) Reset() { - *x = RPCMessageData{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RPCMessageData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RPCMessageData) ProtoMessage() {} - -func (x *RPCMessageData) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RPCMessageData.ProtoReflect.Descriptor instead. -func (*RPCMessageData) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{5} -} - -func (x *RPCMessageData) GetSessionID() string { - if x != nil { - return x.SessionID - } - return "" -} - -func (x *RPCMessageData) GetTimestamp() int64 { - if x != nil { - return x.Timestamp - } - return 0 -} - -func (x *RPCMessageData) GetAction() ActionType { - if x != nil { - return x.Action - } - return ActionType_UNSPECIFIED -} - -func (x *RPCMessageData) GetBool1() bool { - if x != nil { - return x.Bool1 - } - return false -} - -func (x *RPCMessageData) GetBool2() bool { - if x != nil { - return x.Bool2 - } - return false -} - -func (x *RPCMessageData) GetEncryptedData() []byte { - if x != nil { - return x.EncryptedData - } - return nil -} - -func (x *RPCMessageData) GetBool3() bool { - if x != nil { - return x.Bool3 - } - return false -} - -type RevokeRelayPairing struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AuthMessage *AuthMessage `protobuf:"bytes,1,opt,name=authMessage,proto3" json:"authMessage,omitempty"` - Browser *Device `protobuf:"bytes,2,opt,name=browser,proto3" json:"browser,omitempty"` -} - -func (x *RevokeRelayPairing) Reset() { - *x = RevokeRelayPairing{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RevokeRelayPairing) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RevokeRelayPairing) ProtoMessage() {} - -func (x *RevokeRelayPairing) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RevokeRelayPairing.ProtoReflect.Descriptor instead. -func (*RevokeRelayPairing) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{6} -} - -func (x *RevokeRelayPairing) GetAuthMessage() *AuthMessage { - if x != nil { - return x.AuthMessage - } - return nil -} - -func (x *RevokeRelayPairing) GetBrowser() *Device { - if x != nil { - return x.Browser - } - return nil -} - -type SendMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Mobile *Device `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` - MessageData *SendMessageData `protobuf:"bytes,2,opt,name=messageData,proto3" json:"messageData,omitempty"` - MessageAuth *SendMessageAuth `protobuf:"bytes,3,opt,name=messageAuth,proto3" json:"messageAuth,omitempty"` - TTL int64 `protobuf:"varint,5,opt,name=TTL,proto3" json:"TTL,omitempty"` // might be something related to config - EmptyArr *EmptyArr `protobuf:"bytes,9,opt,name=emptyArr,proto3" json:"emptyArr,omitempty"` -} - -func (x *SendMessage) Reset() { - *x = SendMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendMessage) ProtoMessage() {} - -func (x *SendMessage) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendMessage.ProtoReflect.Descriptor instead. -func (*SendMessage) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{7} -} - -func (x *SendMessage) GetMobile() *Device { - if x != nil { - return x.Mobile - } - return nil -} - -func (x *SendMessage) GetMessageData() *SendMessageData { - if x != nil { - return x.MessageData - } - return nil -} - -func (x *SendMessage) GetMessageAuth() *SendMessageAuth { - if x != nil { - return x.MessageAuth - } - return nil -} - -func (x *SendMessage) GetTTL() int64 { - if x != nil { - return x.TTL - } - return 0 -} - -func (x *SendMessage) GetEmptyArr() *EmptyArr { - if x != nil { - return x.EmptyArr - } - return nil -} - -type SendMessageAuth struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` - TachyonAuthToken []byte `protobuf:"bytes,6,opt,name=tachyonAuthToken,proto3" json:"tachyonAuthToken,omitempty"` - ConfigVersion *ConfigVersion `protobuf:"bytes,7,opt,name=configVersion,proto3" json:"configVersion,omitempty"` -} - -func (x *SendMessageAuth) Reset() { - *x = SendMessageAuth{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendMessageAuth) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendMessageAuth) ProtoMessage() {} - -func (x *SendMessageAuth) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendMessageAuth.ProtoReflect.Descriptor instead. -func (*SendMessageAuth) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{8} -} - -func (x *SendMessageAuth) GetRequestID() string { - if x != nil { - return x.RequestID - } - return "" -} - -func (x *SendMessageAuth) GetTachyonAuthToken() []byte { - if x != nil { - return x.TachyonAuthToken - } - return nil -} - -func (x *SendMessageAuth) GetConfigVersion() *ConfigVersion { - if x != nil { - return x.ConfigVersion - } - return nil -} - -type SendMessageInternal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` - Action ActionType `protobuf:"varint,2,opt,name=action,proto3,enum=messages.ActionType" json:"action,omitempty"` - EncryptedProtoData []byte `protobuf:"bytes,5,opt,name=encryptedProtoData,proto3" json:"encryptedProtoData,omitempty"` - SessionID string `protobuf:"bytes,6,opt,name=sessionID,proto3" json:"sessionID,omitempty"` -} - -func (x *SendMessageInternal) Reset() { - *x = SendMessageInternal{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendMessageInternal) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendMessageInternal) ProtoMessage() {} - -func (x *SendMessageInternal) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendMessageInternal.ProtoReflect.Descriptor instead. -func (*SendMessageInternal) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{9} -} - -func (x *SendMessageInternal) GetRequestID() string { - if x != nil { - return x.RequestID - } - return "" -} - -func (x *SendMessageInternal) GetAction() ActionType { - if x != nil { - return x.Action - } - return ActionType_UNSPECIFIED -} - -func (x *SendMessageInternal) GetEncryptedProtoData() []byte { - if x != nil { - return x.EncryptedProtoData - } - return nil -} - -func (x *SendMessageInternal) GetSessionID() string { - if x != nil { - return x.SessionID - } - return "" -} - -// requestID = 1 -// -// encodedData = { -// requestID = 1 ^same -// -// sessionID = 6 -// } -type SendMessageData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` - BugleRoute BugleRoute `protobuf:"varint,2,opt,name=bugleRoute,proto3,enum=messages.BugleRoute" json:"bugleRoute,omitempty"` - ProtobufData []byte `protobuf:"bytes,12,opt,name=protobufData,proto3" json:"protobufData,omitempty"` - MessageTypeData *MessageTypeData `protobuf:"bytes,23,opt,name=messageTypeData,proto3" json:"messageTypeData,omitempty"` -} - -func (x *SendMessageData) Reset() { - *x = SendMessageData{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendMessageData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendMessageData) ProtoMessage() {} - -func (x *SendMessageData) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendMessageData.ProtoReflect.Descriptor instead. -func (*SendMessageData) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{10} -} - -func (x *SendMessageData) GetRequestID() string { - if x != nil { - return x.RequestID - } - return "" -} - -func (x *SendMessageData) GetBugleRoute() BugleRoute { - if x != nil { - return x.BugleRoute - } - return BugleRoute_UNKNOWN_BUGLE_ROUTE -} - -func (x *SendMessageData) GetProtobufData() []byte { - if x != nil { - return x.ProtobufData - } - return nil -} - -func (x *SendMessageData) GetMessageTypeData() *MessageTypeData { - if x != nil { - return x.MessageTypeData - } - return nil -} - -type MessageTypeData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EmptyArr *EmptyArr `protobuf:"bytes,1,opt,name=emptyArr,proto3" json:"emptyArr,omitempty"` - MessageType MessageType `protobuf:"varint,2,opt,name=messageType,proto3,enum=messages.MessageType" json:"messageType,omitempty"` -} - -func (x *MessageTypeData) Reset() { - *x = MessageTypeData{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MessageTypeData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MessageTypeData) ProtoMessage() {} - -func (x *MessageTypeData) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MessageTypeData.ProtoReflect.Descriptor instead. -func (*MessageTypeData) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{11} -} - -func (x *MessageTypeData) GetEmptyArr() *EmptyArr { - if x != nil { - return x.EmptyArr - } - return nil -} - -func (x *MessageTypeData) GetMessageType() MessageType { - if x != nil { - return x.MessageType - } - return MessageType_UNKNOWN_MESSAGE_TYPE -} - -type EmptyArr struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *EmptyArr) Reset() { - *x = EmptyArr{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EmptyArr) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EmptyArr) ProtoMessage() {} - -func (x *EmptyArr) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EmptyArr.ProtoReflect.Descriptor instead. -func (*EmptyArr) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{12} -} - -type AuthMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` - Network *string `protobuf:"bytes,3,opt,name=network,proto3,oneof" json:"network,omitempty"` - TachyonAuthToken []byte `protobuf:"bytes,6,opt,name=tachyonAuthToken,proto3,oneof" json:"tachyonAuthToken,omitempty"` - ConfigVersion *ConfigVersion `protobuf:"bytes,7,opt,name=configVersion,proto3" json:"configVersion,omitempty"` -} - -func (x *AuthMessage) Reset() { - *x = AuthMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthMessage) ProtoMessage() {} - -func (x *AuthMessage) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[13] - 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 AuthMessage.ProtoReflect.Descriptor instead. -func (*AuthMessage) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{13} -} - -func (x *AuthMessage) GetRequestID() string { - if x != nil { - return x.RequestID - } - return "" -} - -func (x *AuthMessage) GetNetwork() string { - if x != nil && x.Network != nil { - return *x.Network - } - return "" -} - -func (x *AuthMessage) GetTachyonAuthToken() []byte { - if x != nil { - return x.TachyonAuthToken - } - return nil -} - -func (x *AuthMessage) GetConfigVersion() *ConfigVersion { - if x != nil { - return x.ConfigVersion - } - return nil -} - -type ReceiveMessagesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Auth *AuthMessage `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` - Unknown *ReceiveMessagesRequest_UnknownEmptyObject2 `protobuf:"bytes,4,opt,name=unknown,proto3,oneof" json:"unknown,omitempty"` -} - -func (x *ReceiveMessagesRequest) Reset() { - *x = ReceiveMessagesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReceiveMessagesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReceiveMessagesRequest) ProtoMessage() {} - -func (x *ReceiveMessagesRequest) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[14] - 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 ReceiveMessagesRequest.ProtoReflect.Descriptor instead. -func (*ReceiveMessagesRequest) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{14} -} - -func (x *ReceiveMessagesRequest) GetAuth() *AuthMessage { - if x != nil { - return x.Auth - } - return nil -} - -func (x *ReceiveMessagesRequest) GetUnknown() *ReceiveMessagesRequest_UnknownEmptyObject2 { - if x != nil { - return x.Unknown - } - return nil -} - -type BaseData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TTL int64 `protobuf:"varint,2,opt,name=TTL,proto3" json:"TTL,omitempty"` - EmptyArr *EmptyArr `protobuf:"bytes,6,opt,name=emptyArr,proto3" json:"emptyArr,omitempty"` -} - -func (x *BaseData) Reset() { - *x = BaseData{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BaseData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BaseData) ProtoMessage() {} - -func (x *BaseData) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[15] - 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 BaseData.ProtoReflect.Descriptor instead. -func (*BaseData) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{15} -} - -func (x *BaseData) GetTTL() int64 { - if x != nil { - return x.TTL - } - return 0 -} - -func (x *BaseData) GetEmptyArr() *EmptyArr { - if x != nil { - return x.EmptyArr - } - return nil -} - -type Device struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` - SourceID string `protobuf:"bytes,2,opt,name=sourceID,proto3" json:"sourceID,omitempty"` - Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"` -} - -func (x *Device) Reset() { - *x = Device{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Device) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Device) ProtoMessage() {} - -func (x *Device) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[16] - 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 Device.ProtoReflect.Descriptor instead. -func (*Device) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{16} -} - -func (x *Device) GetUserID() int64 { - if x != nil { - return x.UserID - } - return 0 -} - -func (x *Device) GetSourceID() string { - if x != nil { - return x.SourceID - } - return "" -} - -func (x *Device) GetNetwork() string { - if x != nil { - return x.Network - } - return "" -} - -type ConfigVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Year int32 `protobuf:"varint,3,opt,name=Year,proto3" json:"Year,omitempty"` - Month int32 `protobuf:"varint,4,opt,name=Month,proto3" json:"Month,omitempty"` - Day int32 `protobuf:"varint,5,opt,name=Day,proto3" json:"Day,omitempty"` - V1 int32 `protobuf:"varint,7,opt,name=V1,proto3" json:"V1,omitempty"` - V2 int32 `protobuf:"varint,9,opt,name=V2,proto3" json:"V2,omitempty"` -} - -func (x *ConfigVersion) Reset() { - *x = ConfigVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ConfigVersion) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ConfigVersion) ProtoMessage() {} - -func (x *ConfigVersion) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[17] - 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 ConfigVersion.ProtoReflect.Descriptor instead. -func (*ConfigVersion) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{17} -} - -func (x *ConfigVersion) GetYear() int32 { - if x != nil { - return x.Year - } - return 0 -} - -func (x *ConfigVersion) GetMonth() int32 { - if x != nil { - return x.Month - } - return 0 -} - -func (x *ConfigVersion) GetDay() int32 { - if x != nil { - return x.Day - } - return 0 -} - -func (x *ConfigVersion) GetV1() int32 { - if x != nil { - return x.V1 - } - return 0 -} - -func (x *ConfigVersion) GetV2() int32 { - if x != nil { - return x.V2 - } - return 0 -} - -type ReceiveMessagesRequest_UnknownEmptyObject1 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ReceiveMessagesRequest_UnknownEmptyObject1) Reset() { - *x = ReceiveMessagesRequest_UnknownEmptyObject1{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReceiveMessagesRequest_UnknownEmptyObject1) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReceiveMessagesRequest_UnknownEmptyObject1) ProtoMessage() {} - -func (x *ReceiveMessagesRequest_UnknownEmptyObject1) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[18] - 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 ReceiveMessagesRequest_UnknownEmptyObject1.ProtoReflect.Descriptor instead. -func (*ReceiveMessagesRequest_UnknownEmptyObject1) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{14, 0} -} - -type ReceiveMessagesRequest_UnknownEmptyObject2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Unknown *ReceiveMessagesRequest_UnknownEmptyObject1 `protobuf:"bytes,2,opt,name=unknown,proto3" json:"unknown,omitempty"` -} - -func (x *ReceiveMessagesRequest_UnknownEmptyObject2) Reset() { - *x = ReceiveMessagesRequest_UnknownEmptyObject2{} - if protoimpl.UnsafeEnabled { - mi := &file_messages_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReceiveMessagesRequest_UnknownEmptyObject2) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReceiveMessagesRequest_UnknownEmptyObject2) ProtoMessage() {} - -func (x *ReceiveMessagesRequest_UnknownEmptyObject2) ProtoReflect() protoreflect.Message { - mi := &file_messages_proto_msgTypes[19] - 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 ReceiveMessagesRequest_UnknownEmptyObject2.ProtoReflect.Descriptor instead. -func (*ReceiveMessagesRequest_UnknownEmptyObject2) Descriptor() ([]byte, []int) { - return file_messages_proto_rawDescGZIP(), []int{14, 1} -} - -func (x *ReceiveMessagesRequest_UnknownEmptyObject2) GetUnknown() *ReceiveMessagesRequest_UnknownEmptyObject1 { - if x != nil { - return x.Unknown - } - return nil -} - -var File_messages_proto protoreflect.FileDescriptor - -//go:embed messages.pb.raw -var file_messages_proto_rawDesc []byte - -var ( - file_messages_proto_rawDescOnce sync.Once - file_messages_proto_rawDescData = file_messages_proto_rawDesc -) - -func file_messages_proto_rawDescGZIP() []byte { - file_messages_proto_rawDescOnce.Do(func() { - file_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_messages_proto_rawDescData) - }) - return file_messages_proto_rawDescData -} - -var file_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 20) -var file_messages_proto_goTypes = []interface{}{ - (BugleRoute)(0), // 0: messages.BugleRoute - (ActionType)(0), // 1: messages.ActionType - (MessageType)(0), // 2: messages.MessageType - (*RegisterRefreshPayload)(nil), // 3: messages.RegisterRefreshPayload - (*EmptyRefreshArr)(nil), // 4: messages.EmptyRefreshArr - (*StartAckMessage)(nil), // 5: messages.StartAckMessage - (*LongPollingPayload)(nil), // 6: messages.LongPollingPayload - (*IncomingRPCMessage)(nil), // 7: messages.IncomingRPCMessage - (*RPCMessageData)(nil), // 8: messages.RPCMessageData - (*RevokeRelayPairing)(nil), // 9: messages.RevokeRelayPairing - (*SendMessage)(nil), // 10: messages.SendMessage - (*SendMessageAuth)(nil), // 11: messages.SendMessageAuth - (*SendMessageInternal)(nil), // 12: messages.SendMessageInternal - (*SendMessageData)(nil), // 13: messages.SendMessageData - (*MessageTypeData)(nil), // 14: messages.MessageTypeData - (*EmptyArr)(nil), // 15: messages.EmptyArr - (*AuthMessage)(nil), // 16: messages.AuthMessage - (*ReceiveMessagesRequest)(nil), // 17: messages.ReceiveMessagesRequest - (*BaseData)(nil), // 18: messages.BaseData - (*Device)(nil), // 19: messages.Device - (*ConfigVersion)(nil), // 20: messages.ConfigVersion - (*ReceiveMessagesRequest_UnknownEmptyObject1)(nil), // 21: messages.ReceiveMessagesRequest.UnknownEmptyObject1 - (*ReceiveMessagesRequest_UnknownEmptyObject2)(nil), // 22: messages.ReceiveMessagesRequest.UnknownEmptyObject2 -} -var file_messages_proto_depIdxs = []int32{ - 16, // 0: messages.RegisterRefreshPayload.messageAuth:type_name -> messages.AuthMessage - 19, // 1: messages.RegisterRefreshPayload.currBrowserDevice:type_name -> messages.Device - 4, // 2: messages.RegisterRefreshPayload.emptyRefreshArr:type_name -> messages.EmptyRefreshArr - 15, // 3: messages.EmptyRefreshArr.emptyArr:type_name -> messages.EmptyArr - 7, // 4: messages.LongPollingPayload.data:type_name -> messages.IncomingRPCMessage - 15, // 5: messages.LongPollingPayload.heartbeat:type_name -> messages.EmptyArr - 5, // 6: messages.LongPollingPayload.ack:type_name -> messages.StartAckMessage - 15, // 7: messages.LongPollingPayload.startRead:type_name -> messages.EmptyArr - 0, // 8: messages.IncomingRPCMessage.bugleRoute:type_name -> messages.BugleRoute - 2, // 9: messages.IncomingRPCMessage.messageType:type_name -> messages.MessageType - 19, // 10: messages.IncomingRPCMessage.mobile:type_name -> messages.Device - 19, // 11: messages.IncomingRPCMessage.browser:type_name -> messages.Device - 1, // 12: messages.RPCMessageData.action:type_name -> messages.ActionType - 16, // 13: messages.RevokeRelayPairing.authMessage:type_name -> messages.AuthMessage - 19, // 14: messages.RevokeRelayPairing.browser:type_name -> messages.Device - 19, // 15: messages.SendMessage.mobile:type_name -> messages.Device - 13, // 16: messages.SendMessage.messageData:type_name -> messages.SendMessageData - 11, // 17: messages.SendMessage.messageAuth:type_name -> messages.SendMessageAuth - 15, // 18: messages.SendMessage.emptyArr:type_name -> messages.EmptyArr - 20, // 19: messages.SendMessageAuth.configVersion:type_name -> messages.ConfigVersion - 1, // 20: messages.SendMessageInternal.action:type_name -> messages.ActionType - 0, // 21: messages.SendMessageData.bugleRoute:type_name -> messages.BugleRoute - 14, // 22: messages.SendMessageData.messageTypeData:type_name -> messages.MessageTypeData - 15, // 23: messages.MessageTypeData.emptyArr:type_name -> messages.EmptyArr - 2, // 24: messages.MessageTypeData.messageType:type_name -> messages.MessageType - 20, // 25: messages.AuthMessage.configVersion:type_name -> messages.ConfigVersion - 16, // 26: messages.ReceiveMessagesRequest.auth:type_name -> messages.AuthMessage - 22, // 27: messages.ReceiveMessagesRequest.unknown:type_name -> messages.ReceiveMessagesRequest.UnknownEmptyObject2 - 15, // 28: messages.BaseData.emptyArr:type_name -> messages.EmptyArr - 21, // 29: messages.ReceiveMessagesRequest.UnknownEmptyObject2.unknown:type_name -> messages.ReceiveMessagesRequest.UnknownEmptyObject1 - 30, // [30:30] is the sub-list for method output_type - 30, // [30:30] is the sub-list for method input_type - 30, // [30:30] is the sub-list for extension type_name - 30, // [30:30] is the sub-list for extension extendee - 0, // [0:30] is the sub-list for field type_name -} - -func init() { file_messages_proto_init() } -func file_messages_proto_init() { - if File_messages_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegisterRefreshPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmptyRefreshArr); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartAckMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LongPollingPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IncomingRPCMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RPCMessageData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RevokeRelayPairing); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendMessageAuth); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendMessageInternal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendMessageData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MessageTypeData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmptyArr); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReceiveMessagesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Device); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReceiveMessagesRequest_UnknownEmptyObject1); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_messages_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReceiveMessagesRequest_UnknownEmptyObject2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_messages_proto_msgTypes[2].OneofWrappers = []interface{}{} - file_messages_proto_msgTypes[3].OneofWrappers = []interface{}{} - file_messages_proto_msgTypes[13].OneofWrappers = []interface{}{} - file_messages_proto_msgTypes[14].OneofWrappers = []interface{}{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_messages_proto_rawDesc, - NumEnums: 3, - NumMessages: 20, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_messages_proto_goTypes, - DependencyIndexes: file_messages_proto_depIdxs, - EnumInfos: file_messages_proto_enumTypes, - MessageInfos: file_messages_proto_msgTypes, - }.Build() - File_messages_proto = out.File - file_messages_proto_rawDesc = nil - file_messages_proto_goTypes = nil - file_messages_proto_depIdxs = nil -} diff --git a/libgm/gmproto/messages.pb.raw b/libgm/gmproto/messages.pb.raw deleted file mode 100644 index bf961e225fd07aac24c6c19614fec61ac038c227..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4628 zcmbtXO>*PL6&{MBL^dg@)f!10d2CNGjy+Z!I>WJ(MJlNRK}bXm1+p3-9eIO-s2+)t z1SlXlW90;?$^}wc<^s7u&X7$OS!9-t|a{Rb`IKwih3&?_2NL#)F9--J#SXthfl8z z%}ms=?sZaeu&z#n5GT#Fvqn}Oa4e;%zVeSUVaw&Rj|c&N-}>H67+r~NjpronD?-lZ z7uSOO^DrXpX8UmlU?)A}IX$M3hK#I#CnjizWUcXnEH_G$NLcn}ew5;d;9-GZI0|p3 z-gI`Ecwdv=i$eAV*}jCd*?ITy%Jt?U1}~Luoqh0y3jL+F2 zSwD-0IA-#)YNC*vl`hh+0j?WqEhs{bbYKDhZJA$Qgd-iML%%D}GlBB&64}hiD_!Ca zfDJVDy|kg3py)2zA(=Y>ZOxs8U@F;L=(H;3vKz4udrT^4zJL9)i4Cao=p&J~CD^gF zjZG8YB)Gc`#km9nac=OUFtL3lp^a@{DR+c%@z%c*TwJ?%Lw6d$$RdB-Y}-DtigTLz z4!&;zCmmG&QzCUsc<0F$%6Jm3{^jN;Jo#n1CuO-&r2IC>yrM#p7MZcUX0T7iRgxK_ zLTZd3jFPf#_vIcbbNu-~uirnHVE-0FAaMfmyE)uG8Ld(QU`j)Ga(U-_n1T(x@+2!7 zd`ZrJMK)k0-%KyYB0!o-qSV{_*;di=$GoVm{Ix`Oa>*GU+|r(V{Xl{lv#}EoF}p=r z%GM#i4rC8;MK$<6Cm1`Mxo90_0_E>TIMLSw+5X_IE1xoF^EWczXx}vQGJFHvMDG(E zWvRBm$gbSxMFqZSq5Pg~E$9>|7LCR|S7mm?FK+*+DY=JK&VR~o%vd3$Dqk1yU{L-A z(}{eGl^+20L$dCP@SPuAMfVY0^@#v4;V<7uVYuLzNQ?&mACEgwh!f}2*&*A`;`}Io zk0 z-UnR9N@Yyeq9-`pBWrVbsK>jm%;PV1K&mr;9!&7Hgn?>2{btPtf~E9QuE<7Vr!huW zPvL1PiCE$CH(q`xz6V{!hkJ!bA6Qh^y_4I#!tp2DBrD^Wa%omL{F2{od1K;t`%oh! zdzP_%=!yB-9DHLsozZb$clcmr>+})ZAT^wB{jKmqx`Us1vqqnrhkvXQl3n?1i_}M^ zHPkiZ$k4lBy$26%!?GQ1V2*WeskSjNEn0#R++UVE)~Tt{e^%Kx*^s9vx@D=yx)@b} zC9Pr1Bm$gwDS@``b@<>LOXtpz>yVHJMm=47P3zFBP5X3cn8#^^2Igq#whclnmeLJq z1R0?RwXbuVZc6B70mb-Rh$iNjR7bHCReS9$ra-sZF4>ldS+=3Q2Hz0Xq738rb#)Bg z)GX&1S~`RlJ|j=nZr2&A9F&crYTAxH$Z0%=f1-9VZ~-=`O{cqfWDacO=+x;NHkbj( z#@Mh==^g^m)%!Z&m^5i0YcovCR{MP?ml|!NvIH>e=o3sV4vW3ZG6GZ89$EANxKF!4 z(f&Zq>^?|~w+BPaIcoe reactions.ReactionData - 0, // 1: reactions.SendReactionPayload.action:type_name -> reactions.Reaction - 1, // 2: reactions.ReactionData.type:type_name -> reactions.EmojiType - 4, // 3: reactions.ReactionResponse.data:type_name -> reactions.ReactionData - 7, // 4: reactions.EmojiMeta.emojiMetaData:type_name -> reactions.EmojiMetaData - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_reactions_proto_init() } -func file_reactions_proto_init() { - if File_reactions_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_reactions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendReactionPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reactions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendReactionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reactions_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reactions_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReactionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reactions_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmojiMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reactions_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmojiMetaData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_reactions_proto_rawDesc, - NumEnums: 2, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_reactions_proto_goTypes, - DependencyIndexes: file_reactions_proto_depIdxs, - EnumInfos: file_reactions_proto_enumTypes, - MessageInfos: file_reactions_proto_msgTypes, - }.Build() - File_reactions_proto = out.File - file_reactions_proto_rawDesc = nil - file_reactions_proto_goTypes = nil - file_reactions_proto_depIdxs = nil -} diff --git a/libgm/gmproto/reactions.pb.raw b/libgm/gmproto/reactions.pb.raw deleted file mode 100644 index 8e77980414dfdffdff62dc79955e73ec80f439f8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 856 zcmaJ=U5}GM6qW5K7uuc7HW3p|3=d|ro1m$W8V$m1ce2|S2hen1nvs$QV}TU*VSkMO z$Did4h1zb+K5;+JJ?Gpz0Zz9ukIE!V3oGAdWro##!ThbjnIESsRzp1g@GIjh{1Vhn zToimAQ`b;lE9WZvSHK@YZzx<|a^pk*wDEJRDHc}4C)?}@j4z?PvtzWx*l>LIpD|WL z%y%$4w8!Ei7kk9mfL?JQMZ#j`uFsm(WS}34OXPi;MA<5?_h?dl4(;+Gk1O}X@#w$? z*u186TyWCp!y;681;pATWb5Zi#k|9?Ae4ZP#0^^bE#jE^rR0b z^n>{n^`-N#A@QX$olTG`3l3X|czI responses.Thumbnail - 3, // 1: responses.Thumbnail.data:type_name -> responses.ThumbnailData - 24, // 2: responses.ThumbnailData.pixels:type_name -> conversations.Pixels - 6, // 3: responses.RegisterRefreshResponse.tokenData:type_name -> responses.RefreshAuthData - 25, // 4: responses.FetchMessagesResponse.messages:type_name -> conversations.Message - 26, // 5: responses.FetchMessagesResponse.cursor:type_name -> conversations.Cursor - 27, // 6: responses.ListContactsResponse.contacts:type_name -> conversations.Contact - 27, // 7: responses.ListTopContactsResponse.contacts:type_name -> conversations.Contact - 28, // 8: responses.GetOrCreateConversationResponse.conversation:type_name -> conversations.Conversation - 0, // 9: responses.GetOrCreateConversationResponse.status:type_name -> responses.GetOrCreateConversationResponse.Status - 28, // 10: responses.GetConversationResponse.conversation:type_name -> conversations.Conversation - 29, // 11: responses.GetUpdatesResponse.data:type_name -> events.UserAlertEvent - 22, // 12: responses.RefreshPhoneRelayResponse.coordinates:type_name -> responses.CoordinateMessage - 22, // 13: responses.WebEncryptionKeyResponse.coordinates:type_name -> responses.CoordinateMessage - 22, // 14: responses.RegisterPhoneRelayResponse.coordinates:type_name -> responses.CoordinateMessage - 30, // 15: responses.RegisterPhoneRelayResponse.browser:type_name -> messages.Device - 23, // 16: responses.RegisterPhoneRelayResponse.authKeyData:type_name -> responses.AuthKeyData - 17, // [17:17] is the sub-list for method output_type - 17, // [17:17] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name -} - -func init() { file_responses_proto_init() } -func file_responses_proto_init() { - if File_responses_proto != nil { - return - } - file_events_proto_init() - file_messages_proto_init() - file_conversations_proto_init() - if !protoimpl.UnsafeEnabled { - file_responses_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParticipantThumbnail); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Thumbnail); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ThumbnailData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegisterRefreshResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RevokeRelayPairingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RefreshAuthData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchMessagesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListContactsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTopContactsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOrCreateConversationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteMessageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateConversationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConversationTypeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConversationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NotifyDittoActivityResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsBugleDefaultResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUpdatesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendMessageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RefreshPhoneRelayResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WebEncryptionKeyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegisterPhoneRelayResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CoordinateMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_responses_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthKeyData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_responses_proto_rawDesc, - NumEnums: 1, - NumMessages: 23, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_responses_proto_goTypes, - DependencyIndexes: file_responses_proto_depIdxs, - EnumInfos: file_responses_proto_enumTypes, - MessageInfos: file_responses_proto_msgTypes, - }.Build() - File_responses_proto = out.File - file_responses_proto_rawDesc = nil - file_responses_proto_goTypes = nil - file_responses_proto_depIdxs = nil -} diff --git a/libgm/gmproto/responses.pb.raw b/libgm/gmproto/responses.pb.raw deleted file mode 100644 index 34b80ba95976c9b2b0ea4e9bfa508636e60b6463..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2390 zcmcIm-HzKt6ei7XHaSkW>2!Zgc7e)5s9k8PO(nz?u$!bPlx|m(L>0ZM9A}bPbv%|m zNeOSjB`?6E@GiUwXU1b^;%xy5xQgfepYQwy?!+vKc$l!H6~$a|Qp*X=I$N<&Xhw5? z!IH$CWrEFn9uHS6PF&%meyZ(!4+qz7EPT(8+)xbX%f&c!{eZNgCbEZJx?g@^wGUdk zr&caVH)76fsO5C>Dcp`WhWisVQhHFM+eGpO>`YwY+P9Etwe5F#=pvsgDd%UnojZ_Z zavv;zfhk@tr&AW&WwcVKCW+Xvm+%Gahr-@L?k>%q zat3fr+00J_iz%BT5_75xLB2w)_!}0=kaQ+ZBNHutu@rNa%SPBag(hVy)TJzN*VnEe z`{69J>--3J3cBPB8p8GFYaU8-L+MokTcAQgge#UQ-uvxyqv8I>d265)sW#xW zp^{RF1$(2bXIC#?UNt_DkHM(Z=?w;r64?jn(B8$c_nLMFjk0qNhg}vh!Lnw^W zfgOQ*sy}zB`X&dkJLWt%S3Osy=|k>}5ceR9+jb@08T#qGg5yFcc^Jit$}Ft*Kd-3s z5u99c;ZN6HUkHBT34i5_b!H!{bkt8Sm$QI%+0K% z%G~61>!UGBSbPz%SoGu((Hr+6+#9fPQmnFxWjV#t`LzTe>UDKJ=V7|i@*uwk%i}zr z_#t*cqIQ>BD01_^|CK9pq zE*g|A(Bxe-K*Mupxp-VqQ602&9UmE`lBY*=sVOSG#(FGq3}t`Ss6lZ)hr2h*Opb8z o%i5o-tjf6I)yo-yWjOj*m(R%Vvi=HMt;e&4`tvldsGlc)0wt0BAOHXW diff --git a/libgm/gmproto/responses.proto b/libgm/gmproto/responses.proto deleted file mode 100644 index fa851ab..0000000 --- a/libgm/gmproto/responses.proto +++ /dev/null @@ -1,134 +0,0 @@ -syntax = "proto3"; -package responses; - -option go_package = "../gmproto"; - -import "events.proto"; -import "messages.proto"; -import "conversations.proto"; - -message ParticipantThumbnail { - repeated Thumbnail thumbnail = 1; -} - -message Thumbnail { - string participantId = 1; - ThumbnailData data = 2; -} - -message ThumbnailData { - bytes imageBuffer = 3; - int32 someInt = 4; - conversations.Pixels pixels = 5; -} - -message RegisterRefreshResponse { - RefreshAuthData tokenData = 2; -} - -message RevokeRelayPairingResponse { - // field 1 is an object with an unknown int64 in field 2 -} - -message RefreshAuthData { - bytes tachyonAuthToken = 1; - string validFor = 2; -} - -message FetchMessagesResponse { - repeated conversations.Message messages = 2; - bytes someBytes = 3; - int64 totalMessages = 4; - conversations.Cursor cursor = 5; -} - -message ListContactsResponse { - repeated conversations.Contact contacts = 2; -} - -message ListTopContactsResponse { - repeated conversations.Contact contacts = 1; -} - -message GetOrCreateConversationResponse { - enum Status { - UNKNOWN = 0; - SUCCESS = 1; - CREATE_RCS = 3; - } - conversations.Conversation conversation = 2; - Status status = 3; -} - -message DeleteMessageResponse { - bool success = 2; -} - -message UpdateConversationResponse { - bool success = 1; - /* - 3 { - 1 { - 1 { - 3: "11" - } - 13: 2 - } - 3: 1 - } - */ -} - -message GetConversationTypeResponse { - string conversationID = 2; - int32 type = 3; - bool bool1 = 5; - int32 number2 = 6; -} - -message GetConversationResponse { - conversations.Conversation conversation = 1; -} - -message NotifyDittoActivityResponse {} - -message IsBugleDefaultResponse { - bool success = 1; -} - -message GetUpdatesResponse { - events.UserAlertEvent data = 6; -} - -message SendMessageResponse { - int64 type = 3; -} - -message RefreshPhoneRelayResponse { - CoordinateMessage coordinates = 1; - bytes pairKey = 2; - int64 validFor = 3; -} - -message WebEncryptionKeyResponse { - CoordinateMessage coordinates = 1; - bytes key = 2; -} - -message RegisterPhoneRelayResponse { - CoordinateMessage coordinates = 1; - messages.Device browser = 2; - bytes pairingKey = 3; - int64 validFor = 4; - AuthKeyData authKeyData = 5; - string responseID = 6; -} - -message CoordinateMessage { - int64 coord1 = 2; -} - -message AuthKeyData { - bytes tachyonAuthToken = 1; - int64 validFor = 2; -} diff --git a/libgm/gmproto/rpc.pb.go b/libgm/gmproto/rpc.pb.go new file mode 100644 index 0000000..f14ff80 --- /dev/null +++ b/libgm/gmproto/rpc.pb.go @@ -0,0 +1,1183 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc v3.21.12 +// source: rpc.proto + +package gmproto + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +import _ "embed" + +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) +) + +type BugleRoute int32 + +const ( + BugleRoute_UNKNOWN_BUGLE_ROUTE BugleRoute = 0 + BugleRoute_DataEvent BugleRoute = 19 + BugleRoute_PairEvent BugleRoute = 14 +) + +// Enum value maps for BugleRoute. +var ( + BugleRoute_name = map[int32]string{ + 0: "UNKNOWN_BUGLE_ROUTE", + 19: "DataEvent", + 14: "PairEvent", + } + BugleRoute_value = map[string]int32{ + "UNKNOWN_BUGLE_ROUTE": 0, + "DataEvent": 19, + "PairEvent": 14, + } +) + +func (x BugleRoute) Enum() *BugleRoute { + p := new(BugleRoute) + *p = x + return p +} + +func (x BugleRoute) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BugleRoute) Descriptor() protoreflect.EnumDescriptor { + return file_rpc_proto_enumTypes[0].Descriptor() +} + +func (BugleRoute) Type() protoreflect.EnumType { + return &file_rpc_proto_enumTypes[0] +} + +func (x BugleRoute) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BugleRoute.Descriptor instead. +func (BugleRoute) EnumDescriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{0} +} + +type ActionType int32 + +const ( + ActionType_UNSPECIFIED ActionType = 0 + ActionType_LIST_CONVERSATIONS ActionType = 1 + ActionType_LIST_CONVERSATIONS_SYNC ActionType = 1111 // fake value + ActionType_LIST_MESSAGES ActionType = 2 + ActionType_SEND_MESSAGE ActionType = 3 + ActionType_MESSAGE_UPDATES ActionType = 4 + ActionType_LIST_CONTACTS ActionType = 6 + ActionType_CONVERSATION_UPDATES ActionType = 7 + ActionType_GET_OR_CREATE_CONVERSATION ActionType = 9 + ActionType_MESSAGE_READ ActionType = 10 + ActionType_BROWSER_PRESENCE_CHECK ActionType = 11 + ActionType_TYPING_UPDATES ActionType = 12 + ActionType_SETTINGS_UPDATE ActionType = 13 + ActionType_USER_ALERT ActionType = 14 + ActionType_UPDATE_CONVERSATION ActionType = 15 + ActionType_GET_UPDATES ActionType = 16 + ActionType_ACK_BROWSER_PRESENCE ActionType = 17 + ActionType_LIST_STICKER_SETS ActionType = 18 + ActionType_LEAVE_RCS_GROUP ActionType = 19 + ActionType_ADD_PARTICIPANT_TO_RCS_GROUP ActionType = 20 + ActionType_GET_CONVERSATION_TYPE ActionType = 21 + ActionType_NOTIFY_DITTO_ACTIVITY ActionType = 22 + ActionType_DELETE_MESSAGE ActionType = 23 + ActionType_INSTALL_STICKER_SET ActionType = 24 + ActionType_RESEND_MESSAGE ActionType = 25 + ActionType_GET_CONTACT_RCS_GROUP_STATUS ActionType = 26 + ActionType_DOWNLOAD_MESSAGE ActionType = 27 + ActionType_LIST_TOP_CONTACTS ActionType = 28 + ActionType_GET_CONTACTS_THUMBNAIL ActionType = 29 + ActionType_CHANGE_PARTICIPANT_COLOR ActionType = 30 + ActionType_IS_BUGLE_DEFAULT ActionType = 31 + ActionType_STICKER_USER_CONTEXT ActionType = 32 + ActionType_FAVORITE_STICKER_PACKS ActionType = 33 + ActionType_RECENT_STICKERS ActionType = 34 + ActionType_UPDATE_RECENT_STICKERS ActionType = 35 + ActionType_GET_FULL_SIZE_IMAGE ActionType = 36 + ActionType_GET_PARTICIPANTS_THUMBNAIL ActionType = 37 + ActionType_SEND_REACTION ActionType = 38 + ActionType_SEND_REPLY ActionType = 39 + ActionType_GET_BLOB_FOR_ATTACHMENT ActionType = 40 + ActionType_GET_DEVICES_AVAILABLE_FOR_GAIA_PAIRING ActionType = 41 + ActionType_CREATE_GAIA_PAIRING ActionType = 42 + ActionType_GET_CONVERSATION ActionType = 43 + ActionType_CREATE_GAIA_PAIRING_CLIENT_INIT ActionType = 44 + ActionType_CREATE_GAIA_PAIRING_CLIENT_FINISHED ActionType = 45 + ActionType_UNPAIR_GAIA_PAIRING ActionType = 46 +) + +// Enum value maps for ActionType. +var ( + ActionType_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "LIST_CONVERSATIONS", + 1111: "LIST_CONVERSATIONS_SYNC", + 2: "LIST_MESSAGES", + 3: "SEND_MESSAGE", + 4: "MESSAGE_UPDATES", + 6: "LIST_CONTACTS", + 7: "CONVERSATION_UPDATES", + 9: "GET_OR_CREATE_CONVERSATION", + 10: "MESSAGE_READ", + 11: "BROWSER_PRESENCE_CHECK", + 12: "TYPING_UPDATES", + 13: "SETTINGS_UPDATE", + 14: "USER_ALERT", + 15: "UPDATE_CONVERSATION", + 16: "GET_UPDATES", + 17: "ACK_BROWSER_PRESENCE", + 18: "LIST_STICKER_SETS", + 19: "LEAVE_RCS_GROUP", + 20: "ADD_PARTICIPANT_TO_RCS_GROUP", + 21: "GET_CONVERSATION_TYPE", + 22: "NOTIFY_DITTO_ACTIVITY", + 23: "DELETE_MESSAGE", + 24: "INSTALL_STICKER_SET", + 25: "RESEND_MESSAGE", + 26: "GET_CONTACT_RCS_GROUP_STATUS", + 27: "DOWNLOAD_MESSAGE", + 28: "LIST_TOP_CONTACTS", + 29: "GET_CONTACTS_THUMBNAIL", + 30: "CHANGE_PARTICIPANT_COLOR", + 31: "IS_BUGLE_DEFAULT", + 32: "STICKER_USER_CONTEXT", + 33: "FAVORITE_STICKER_PACKS", + 34: "RECENT_STICKERS", + 35: "UPDATE_RECENT_STICKERS", + 36: "GET_FULL_SIZE_IMAGE", + 37: "GET_PARTICIPANTS_THUMBNAIL", + 38: "SEND_REACTION", + 39: "SEND_REPLY", + 40: "GET_BLOB_FOR_ATTACHMENT", + 41: "GET_DEVICES_AVAILABLE_FOR_GAIA_PAIRING", + 42: "CREATE_GAIA_PAIRING", + 43: "GET_CONVERSATION", + 44: "CREATE_GAIA_PAIRING_CLIENT_INIT", + 45: "CREATE_GAIA_PAIRING_CLIENT_FINISHED", + 46: "UNPAIR_GAIA_PAIRING", + } + ActionType_value = map[string]int32{ + "UNSPECIFIED": 0, + "LIST_CONVERSATIONS": 1, + "LIST_CONVERSATIONS_SYNC": 1111, + "LIST_MESSAGES": 2, + "SEND_MESSAGE": 3, + "MESSAGE_UPDATES": 4, + "LIST_CONTACTS": 6, + "CONVERSATION_UPDATES": 7, + "GET_OR_CREATE_CONVERSATION": 9, + "MESSAGE_READ": 10, + "BROWSER_PRESENCE_CHECK": 11, + "TYPING_UPDATES": 12, + "SETTINGS_UPDATE": 13, + "USER_ALERT": 14, + "UPDATE_CONVERSATION": 15, + "GET_UPDATES": 16, + "ACK_BROWSER_PRESENCE": 17, + "LIST_STICKER_SETS": 18, + "LEAVE_RCS_GROUP": 19, + "ADD_PARTICIPANT_TO_RCS_GROUP": 20, + "GET_CONVERSATION_TYPE": 21, + "NOTIFY_DITTO_ACTIVITY": 22, + "DELETE_MESSAGE": 23, + "INSTALL_STICKER_SET": 24, + "RESEND_MESSAGE": 25, + "GET_CONTACT_RCS_GROUP_STATUS": 26, + "DOWNLOAD_MESSAGE": 27, + "LIST_TOP_CONTACTS": 28, + "GET_CONTACTS_THUMBNAIL": 29, + "CHANGE_PARTICIPANT_COLOR": 30, + "IS_BUGLE_DEFAULT": 31, + "STICKER_USER_CONTEXT": 32, + "FAVORITE_STICKER_PACKS": 33, + "RECENT_STICKERS": 34, + "UPDATE_RECENT_STICKERS": 35, + "GET_FULL_SIZE_IMAGE": 36, + "GET_PARTICIPANTS_THUMBNAIL": 37, + "SEND_REACTION": 38, + "SEND_REPLY": 39, + "GET_BLOB_FOR_ATTACHMENT": 40, + "GET_DEVICES_AVAILABLE_FOR_GAIA_PAIRING": 41, + "CREATE_GAIA_PAIRING": 42, + "GET_CONVERSATION": 43, + "CREATE_GAIA_PAIRING_CLIENT_INIT": 44, + "CREATE_GAIA_PAIRING_CLIENT_FINISHED": 45, + "UNPAIR_GAIA_PAIRING": 46, + } +) + +func (x ActionType) Enum() *ActionType { + p := new(ActionType) + *p = x + return p +} + +func (x ActionType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ActionType) Descriptor() protoreflect.EnumDescriptor { + return file_rpc_proto_enumTypes[1].Descriptor() +} + +func (ActionType) Type() protoreflect.EnumType { + return &file_rpc_proto_enumTypes[1] +} + +func (x ActionType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ActionType.Descriptor instead. +func (ActionType) EnumDescriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{1} +} + +type MessageType int32 + +const ( + MessageType_UNKNOWN_MESSAGE_TYPE MessageType = 0 + MessageType_BUGLE_MESSAGE MessageType = 2 + MessageType_BUGLE_ANNOTATION MessageType = 16 +) + +// Enum value maps for MessageType. +var ( + MessageType_name = map[int32]string{ + 0: "UNKNOWN_MESSAGE_TYPE", + 2: "BUGLE_MESSAGE", + 16: "BUGLE_ANNOTATION", + } + MessageType_value = map[string]int32{ + "UNKNOWN_MESSAGE_TYPE": 0, + "BUGLE_MESSAGE": 2, + "BUGLE_ANNOTATION": 16, + } +) + +func (x MessageType) Enum() *MessageType { + p := new(MessageType) + *p = x + return p +} + +func (x MessageType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MessageType) Descriptor() protoreflect.EnumDescriptor { + return file_rpc_proto_enumTypes[2].Descriptor() +} + +func (MessageType) Type() protoreflect.EnumType { + return &file_rpc_proto_enumTypes[2] +} + +func (x MessageType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MessageType.Descriptor instead. +func (MessageType) EnumDescriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{2} +} + +type StartAckMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Count *int32 `protobuf:"varint,1,opt,name=count,proto3,oneof" json:"count,omitempty"` +} + +func (x *StartAckMessage) Reset() { + *x = StartAckMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartAckMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartAckMessage) ProtoMessage() {} + +func (x *StartAckMessage) ProtoReflect() protoreflect.Message { + mi := &file_rpc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StartAckMessage.ProtoReflect.Descriptor instead. +func (*StartAckMessage) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{0} +} + +func (x *StartAckMessage) GetCount() int32 { + if x != nil && x.Count != nil { + return *x.Count + } + return 0 +} + +type LongPollingPayload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data *IncomingRPCMessage `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` + Heartbeat *EmptyArr `protobuf:"bytes,3,opt,name=heartbeat,proto3,oneof" json:"heartbeat,omitempty"` + Ack *StartAckMessage `protobuf:"bytes,4,opt,name=ack,proto3,oneof" json:"ack,omitempty"` + StartRead *EmptyArr `protobuf:"bytes,5,opt,name=startRead,proto3,oneof" json:"startRead,omitempty"` +} + +func (x *LongPollingPayload) Reset() { + *x = LongPollingPayload{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LongPollingPayload) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LongPollingPayload) ProtoMessage() {} + +func (x *LongPollingPayload) ProtoReflect() protoreflect.Message { + mi := &file_rpc_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 LongPollingPayload.ProtoReflect.Descriptor instead. +func (*LongPollingPayload) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{1} +} + +func (x *LongPollingPayload) GetData() *IncomingRPCMessage { + if x != nil { + return x.Data + } + return nil +} + +func (x *LongPollingPayload) GetHeartbeat() *EmptyArr { + if x != nil { + return x.Heartbeat + } + return nil +} + +func (x *LongPollingPayload) GetAck() *StartAckMessage { + if x != nil { + return x.Ack + } + return nil +} + +func (x *LongPollingPayload) GetStartRead() *EmptyArr { + if x != nil { + return x.StartRead + } + return nil +} + +type IncomingRPCMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResponseID string `protobuf:"bytes,1,opt,name=responseID,proto3" json:"responseID,omitempty"` + BugleRoute BugleRoute `protobuf:"varint,2,opt,name=bugleRoute,proto3,enum=rpc.BugleRoute" json:"bugleRoute,omitempty"` + StartExecute string `protobuf:"bytes,3,opt,name=startExecute,proto3" json:"startExecute,omitempty"` + MessageType MessageType `protobuf:"varint,5,opt,name=messageType,proto3,enum=rpc.MessageType" json:"messageType,omitempty"` + FinishExecute string `protobuf:"bytes,6,opt,name=finishExecute,proto3" json:"finishExecute,omitempty"` + MillisecondsTaken string `protobuf:"bytes,7,opt,name=millisecondsTaken,proto3" json:"millisecondsTaken,omitempty"` + Mobile *Device `protobuf:"bytes,8,opt,name=mobile,proto3" json:"mobile,omitempty"` + Browser *Device `protobuf:"bytes,9,opt,name=browser,proto3" json:"browser,omitempty"` + // Either a RPCMessageData or a RPCPairData encoded as bytes + MessageData []byte `protobuf:"bytes,12,opt,name=messageData,proto3" json:"messageData,omitempty"` + SignatureID string `protobuf:"bytes,17,opt,name=signatureID,proto3" json:"signatureID,omitempty"` + Timestamp string `protobuf:"bytes,21,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *IncomingRPCMessage) Reset() { + *x = IncomingRPCMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IncomingRPCMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IncomingRPCMessage) ProtoMessage() {} + +func (x *IncomingRPCMessage) ProtoReflect() protoreflect.Message { + mi := &file_rpc_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IncomingRPCMessage.ProtoReflect.Descriptor instead. +func (*IncomingRPCMessage) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{2} +} + +func (x *IncomingRPCMessage) GetResponseID() string { + if x != nil { + return x.ResponseID + } + return "" +} + +func (x *IncomingRPCMessage) GetBugleRoute() BugleRoute { + if x != nil { + return x.BugleRoute + } + return BugleRoute_UNKNOWN_BUGLE_ROUTE +} + +func (x *IncomingRPCMessage) GetStartExecute() string { + if x != nil { + return x.StartExecute + } + return "" +} + +func (x *IncomingRPCMessage) GetMessageType() MessageType { + if x != nil { + return x.MessageType + } + return MessageType_UNKNOWN_MESSAGE_TYPE +} + +func (x *IncomingRPCMessage) GetFinishExecute() string { + if x != nil { + return x.FinishExecute + } + return "" +} + +func (x *IncomingRPCMessage) GetMillisecondsTaken() string { + if x != nil { + return x.MillisecondsTaken + } + return "" +} + +func (x *IncomingRPCMessage) GetMobile() *Device { + if x != nil { + return x.Mobile + } + return nil +} + +func (x *IncomingRPCMessage) GetBrowser() *Device { + if x != nil { + return x.Browser + } + return nil +} + +func (x *IncomingRPCMessage) GetMessageData() []byte { + if x != nil { + return x.MessageData + } + return nil +} + +func (x *IncomingRPCMessage) GetSignatureID() string { + if x != nil { + return x.SignatureID + } + return "" +} + +func (x *IncomingRPCMessage) GetTimestamp() string { + if x != nil { + return x.Timestamp + } + return "" +} + +type RPCMessageData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SessionID string `protobuf:"bytes,1,opt,name=sessionID,proto3" json:"sessionID,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Action ActionType `protobuf:"varint,4,opt,name=action,proto3,enum=rpc.ActionType" json:"action,omitempty"` + Bool1 bool `protobuf:"varint,6,opt,name=bool1,proto3" json:"bool1,omitempty"` + Bool2 bool `protobuf:"varint,7,opt,name=bool2,proto3" json:"bool2,omitempty"` + EncryptedData []byte `protobuf:"bytes,8,opt,name=encryptedData,proto3" json:"encryptedData,omitempty"` + Bool3 bool `protobuf:"varint,9,opt,name=bool3,proto3" json:"bool3,omitempty"` +} + +func (x *RPCMessageData) Reset() { + *x = RPCMessageData{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RPCMessageData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RPCMessageData) ProtoMessage() {} + +func (x *RPCMessageData) ProtoReflect() protoreflect.Message { + mi := &file_rpc_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RPCMessageData.ProtoReflect.Descriptor instead. +func (*RPCMessageData) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{3} +} + +func (x *RPCMessageData) GetSessionID() string { + if x != nil { + return x.SessionID + } + return "" +} + +func (x *RPCMessageData) GetTimestamp() int64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +func (x *RPCMessageData) GetAction() ActionType { + if x != nil { + return x.Action + } + return ActionType_UNSPECIFIED +} + +func (x *RPCMessageData) GetBool1() bool { + if x != nil { + return x.Bool1 + } + return false +} + +func (x *RPCMessageData) GetBool2() bool { + if x != nil { + return x.Bool2 + } + return false +} + +func (x *RPCMessageData) GetEncryptedData() []byte { + if x != nil { + return x.EncryptedData + } + return nil +} + +func (x *RPCMessageData) GetBool3() bool { + if x != nil { + return x.Bool3 + } + return false +} + +type OutgoingRPCMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Mobile *Device `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` + MessageData *OutgoingRPCMessage_Data `protobuf:"bytes,2,opt,name=messageData,proto3" json:"messageData,omitempty"` + MessageAuth *OutgoingRPCMessage_Auth `protobuf:"bytes,3,opt,name=messageAuth,proto3" json:"messageAuth,omitempty"` + TTL int64 `protobuf:"varint,5,opt,name=TTL,proto3" json:"TTL,omitempty"` + EmptyArr *EmptyArr `protobuf:"bytes,9,opt,name=emptyArr,proto3" json:"emptyArr,omitempty"` +} + +func (x *OutgoingRPCMessage) Reset() { + *x = OutgoingRPCMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OutgoingRPCMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OutgoingRPCMessage) ProtoMessage() {} + +func (x *OutgoingRPCMessage) ProtoReflect() protoreflect.Message { + mi := &file_rpc_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OutgoingRPCMessage.ProtoReflect.Descriptor instead. +func (*OutgoingRPCMessage) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{4} +} + +func (x *OutgoingRPCMessage) GetMobile() *Device { + if x != nil { + return x.Mobile + } + return nil +} + +func (x *OutgoingRPCMessage) GetMessageData() *OutgoingRPCMessage_Data { + if x != nil { + return x.MessageData + } + return nil +} + +func (x *OutgoingRPCMessage) GetMessageAuth() *OutgoingRPCMessage_Auth { + if x != nil { + return x.MessageAuth + } + return nil +} + +func (x *OutgoingRPCMessage) GetTTL() int64 { + if x != nil { + return x.TTL + } + return 0 +} + +func (x *OutgoingRPCMessage) GetEmptyArr() *EmptyArr { + if x != nil { + return x.EmptyArr + } + return nil +} + +type OutgoingRPCData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` + Action ActionType `protobuf:"varint,2,opt,name=action,proto3,enum=rpc.ActionType" json:"action,omitempty"` + EncryptedProtoData []byte `protobuf:"bytes,5,opt,name=encryptedProtoData,proto3" json:"encryptedProtoData,omitempty"` + SessionID string `protobuf:"bytes,6,opt,name=sessionID,proto3" json:"sessionID,omitempty"` +} + +func (x *OutgoingRPCData) Reset() { + *x = OutgoingRPCData{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OutgoingRPCData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OutgoingRPCData) ProtoMessage() {} + +func (x *OutgoingRPCData) ProtoReflect() protoreflect.Message { + mi := &file_rpc_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OutgoingRPCData.ProtoReflect.Descriptor instead. +func (*OutgoingRPCData) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{5} +} + +func (x *OutgoingRPCData) GetRequestID() string { + if x != nil { + return x.RequestID + } + return "" +} + +func (x *OutgoingRPCData) GetAction() ActionType { + if x != nil { + return x.Action + } + return ActionType_UNSPECIFIED +} + +func (x *OutgoingRPCData) GetEncryptedProtoData() []byte { + if x != nil { + return x.EncryptedProtoData + } + return nil +} + +func (x *OutgoingRPCData) GetSessionID() string { + if x != nil { + return x.SessionID + } + return "" +} + +type OutgoingRPCMessage_Auth struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` + TachyonAuthToken []byte `protobuf:"bytes,6,opt,name=tachyonAuthToken,proto3" json:"tachyonAuthToken,omitempty"` + ConfigVersion *ConfigVersion `protobuf:"bytes,7,opt,name=configVersion,proto3" json:"configVersion,omitempty"` +} + +func (x *OutgoingRPCMessage_Auth) Reset() { + *x = OutgoingRPCMessage_Auth{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OutgoingRPCMessage_Auth) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OutgoingRPCMessage_Auth) ProtoMessage() {} + +func (x *OutgoingRPCMessage_Auth) ProtoReflect() protoreflect.Message { + mi := &file_rpc_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OutgoingRPCMessage_Auth.ProtoReflect.Descriptor instead. +func (*OutgoingRPCMessage_Auth) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *OutgoingRPCMessage_Auth) GetRequestID() string { + if x != nil { + return x.RequestID + } + return "" +} + +func (x *OutgoingRPCMessage_Auth) GetTachyonAuthToken() []byte { + if x != nil { + return x.TachyonAuthToken + } + return nil +} + +func (x *OutgoingRPCMessage_Auth) GetConfigVersion() *ConfigVersion { + if x != nil { + return x.ConfigVersion + } + return nil +} + +type OutgoingRPCMessage_Data struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` + BugleRoute BugleRoute `protobuf:"varint,2,opt,name=bugleRoute,proto3,enum=rpc.BugleRoute" json:"bugleRoute,omitempty"` + // OutgoingRPCData encoded as bytes + MessageData []byte `protobuf:"bytes,12,opt,name=messageData,proto3" json:"messageData,omitempty"` + MessageTypeData *OutgoingRPCMessage_Data_Type `protobuf:"bytes,23,opt,name=messageTypeData,proto3" json:"messageTypeData,omitempty"` +} + +func (x *OutgoingRPCMessage_Data) Reset() { + *x = OutgoingRPCMessage_Data{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OutgoingRPCMessage_Data) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OutgoingRPCMessage_Data) ProtoMessage() {} + +func (x *OutgoingRPCMessage_Data) ProtoReflect() protoreflect.Message { + mi := &file_rpc_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OutgoingRPCMessage_Data.ProtoReflect.Descriptor instead. +func (*OutgoingRPCMessage_Data) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{4, 1} +} + +func (x *OutgoingRPCMessage_Data) GetRequestID() string { + if x != nil { + return x.RequestID + } + return "" +} + +func (x *OutgoingRPCMessage_Data) GetBugleRoute() BugleRoute { + if x != nil { + return x.BugleRoute + } + return BugleRoute_UNKNOWN_BUGLE_ROUTE +} + +func (x *OutgoingRPCMessage_Data) GetMessageData() []byte { + if x != nil { + return x.MessageData + } + return nil +} + +func (x *OutgoingRPCMessage_Data) GetMessageTypeData() *OutgoingRPCMessage_Data_Type { + if x != nil { + return x.MessageTypeData + } + return nil +} + +type OutgoingRPCMessage_Data_Type struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EmptyArr *EmptyArr `protobuf:"bytes,1,opt,name=emptyArr,proto3" json:"emptyArr,omitempty"` + MessageType MessageType `protobuf:"varint,2,opt,name=messageType,proto3,enum=rpc.MessageType" json:"messageType,omitempty"` +} + +func (x *OutgoingRPCMessage_Data_Type) Reset() { + *x = OutgoingRPCMessage_Data_Type{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OutgoingRPCMessage_Data_Type) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OutgoingRPCMessage_Data_Type) ProtoMessage() {} + +func (x *OutgoingRPCMessage_Data_Type) ProtoReflect() protoreflect.Message { + mi := &file_rpc_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OutgoingRPCMessage_Data_Type.ProtoReflect.Descriptor instead. +func (*OutgoingRPCMessage_Data_Type) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{4, 1, 0} +} + +func (x *OutgoingRPCMessage_Data_Type) GetEmptyArr() *EmptyArr { + if x != nil { + return x.EmptyArr + } + return nil +} + +func (x *OutgoingRPCMessage_Data_Type) GetMessageType() MessageType { + if x != nil { + return x.MessageType + } + return MessageType_UNKNOWN_MESSAGE_TYPE +} + +var File_rpc_proto protoreflect.FileDescriptor + +//go:embed rpc.pb.raw +var file_rpc_proto_rawDesc []byte + +var ( + file_rpc_proto_rawDescOnce sync.Once + file_rpc_proto_rawDescData = file_rpc_proto_rawDesc +) + +func file_rpc_proto_rawDescGZIP() []byte { + file_rpc_proto_rawDescOnce.Do(func() { + file_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_proto_rawDescData) + }) + return file_rpc_proto_rawDescData +} + +var file_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_rpc_proto_goTypes = []interface{}{ + (BugleRoute)(0), // 0: rpc.BugleRoute + (ActionType)(0), // 1: rpc.ActionType + (MessageType)(0), // 2: rpc.MessageType + (*StartAckMessage)(nil), // 3: rpc.StartAckMessage + (*LongPollingPayload)(nil), // 4: rpc.LongPollingPayload + (*IncomingRPCMessage)(nil), // 5: rpc.IncomingRPCMessage + (*RPCMessageData)(nil), // 6: rpc.RPCMessageData + (*OutgoingRPCMessage)(nil), // 7: rpc.OutgoingRPCMessage + (*OutgoingRPCData)(nil), // 8: rpc.OutgoingRPCData + (*OutgoingRPCMessage_Auth)(nil), // 9: rpc.OutgoingRPCMessage.Auth + (*OutgoingRPCMessage_Data)(nil), // 10: rpc.OutgoingRPCMessage.Data + (*OutgoingRPCMessage_Data_Type)(nil), // 11: rpc.OutgoingRPCMessage.Data.Type + (*EmptyArr)(nil), // 12: util.EmptyArr + (*Device)(nil), // 13: authentication.Device + (*ConfigVersion)(nil), // 14: authentication.ConfigVersion +} +var file_rpc_proto_depIdxs = []int32{ + 5, // 0: rpc.LongPollingPayload.data:type_name -> rpc.IncomingRPCMessage + 12, // 1: rpc.LongPollingPayload.heartbeat:type_name -> util.EmptyArr + 3, // 2: rpc.LongPollingPayload.ack:type_name -> rpc.StartAckMessage + 12, // 3: rpc.LongPollingPayload.startRead:type_name -> util.EmptyArr + 0, // 4: rpc.IncomingRPCMessage.bugleRoute:type_name -> rpc.BugleRoute + 2, // 5: rpc.IncomingRPCMessage.messageType:type_name -> rpc.MessageType + 13, // 6: rpc.IncomingRPCMessage.mobile:type_name -> authentication.Device + 13, // 7: rpc.IncomingRPCMessage.browser:type_name -> authentication.Device + 1, // 8: rpc.RPCMessageData.action:type_name -> rpc.ActionType + 13, // 9: rpc.OutgoingRPCMessage.mobile:type_name -> authentication.Device + 10, // 10: rpc.OutgoingRPCMessage.messageData:type_name -> rpc.OutgoingRPCMessage.Data + 9, // 11: rpc.OutgoingRPCMessage.messageAuth:type_name -> rpc.OutgoingRPCMessage.Auth + 12, // 12: rpc.OutgoingRPCMessage.emptyArr:type_name -> util.EmptyArr + 1, // 13: rpc.OutgoingRPCData.action:type_name -> rpc.ActionType + 14, // 14: rpc.OutgoingRPCMessage.Auth.configVersion:type_name -> authentication.ConfigVersion + 0, // 15: rpc.OutgoingRPCMessage.Data.bugleRoute:type_name -> rpc.BugleRoute + 11, // 16: rpc.OutgoingRPCMessage.Data.messageTypeData:type_name -> rpc.OutgoingRPCMessage.Data.Type + 12, // 17: rpc.OutgoingRPCMessage.Data.Type.emptyArr:type_name -> util.EmptyArr + 2, // 18: rpc.OutgoingRPCMessage.Data.Type.messageType:type_name -> rpc.MessageType + 19, // [19:19] is the sub-list for method output_type + 19, // [19:19] is the sub-list for method input_type + 19, // [19:19] is the sub-list for extension type_name + 19, // [19:19] is the sub-list for extension extendee + 0, // [0:19] is the sub-list for field type_name +} + +func init() { file_rpc_proto_init() } +func file_rpc_proto_init() { + if File_rpc_proto != nil { + return + } + file_authentication_proto_init() + file_util_proto_init() + if !protoimpl.UnsafeEnabled { + file_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartAckMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LongPollingPayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IncomingRPCMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RPCMessageData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutgoingRPCMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutgoingRPCData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutgoingRPCMessage_Auth); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutgoingRPCMessage_Data); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutgoingRPCMessage_Data_Type); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_rpc_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_rpc_proto_msgTypes[1].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_rpc_proto_rawDesc, + NumEnums: 3, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_rpc_proto_goTypes, + DependencyIndexes: file_rpc_proto_depIdxs, + EnumInfos: file_rpc_proto_enumTypes, + MessageInfos: file_rpc_proto_msgTypes, + }.Build() + File_rpc_proto = out.File + file_rpc_proto_rawDesc = nil + file_rpc_proto_goTypes = nil + file_rpc_proto_depIdxs = nil +} diff --git a/libgm/gmproto/rpc.pb.raw b/libgm/gmproto/rpc.pb.raw new file mode 100644 index 0000000000000000000000000000000000000000..5c6344838eeb7ada7eea6bacb5fe2effe50664d1 GIT binary patch literal 3291 zcmb7H+j81g6b;5Vjxjzy@r4j4aY&k^PD&aw)5p#Tacne}CC!m=>bz)Vtk_I!4s-w&sn)Gk*~F zdtTTN29c^p#$o?F`d#YoX9u zB=fG+)qj~GOb-U9R&ajahY#=SJn&A~w`BIj3%%+LxGps}8(5Dv=mi&GBP=ye0WqZ+ zgk-Ns>CA@$j(snz7NuLIAq(Uem*JH%9CivKH9?o>r0DhDS7)X1n#?iPLuW>yNgRKK z4GP~osm|RPzbHzH33jvzX<}dhyGYpe4%vM|hW_X>7>s=+jxci^o(8$i%ut8hztsF3b>HWSi1vO7Nzrk1IqF4$U)c^>^yAABPt(*r5sAL`dx6Z#FhK3l|8We%kW!ln zAS4aF-q}?!Kw~Gs;YWJP;+mYPWEocEUH|mZAL6J;#+I7*rdL4C8i~A5?avu9I~lp8 zjQEPAh5r8|^7*ydCo7o~B8O^I4#LAvaoUh0JndO~M`lrxqa+%uk5V#y!*HNJcf;y` z6v#?u+P(m}bRDAv(doTm9UFutD`w$~RYHRAk+Qf!gI6HE5z#441v@Gs>3L_Hkp&H%Fb^kLefgv3R&tJw#8L#SL1E) z-hel=W;?EG8i!oiildo^O$$)k=5@Ji9~mnBXOXRvWvM;jwyo@Oo6f*)m2Gac-B?76 z>^516AKb3hRva*!O*|o=qo|He=UJ7kWwR&73-Dg7?QzF7g{uk<0diH+66Ty_0DYSh zRwElNVZO1sa4o^1AQhZCT-~QjjFF0SWNF4;lA(+>+T3wKXvb2z%qoO*F@mCV;n0eN zUN(@=zk+CDeUt7ewxX!}?sN%sm93LiiJ0wZ>ORDVtTttsU+2mpu&LVa9#Colh1+CH zX}4WV5n!xYis879nXy=dUtQ~%I0qZ_#_2k$4AaqekKDHAfE$3U9cs=I-9P}^T<3t} zgrrUEO*3pq(RDXd8m*$S1Tbav4i*-tMefpyz*TX&Hm$+ygSKHrbyG?G?k3GUriC>} z#BU*4nQ*r2bh-yEL(z1459Y6`b`)ce=U`Ax-4ygbrqS$p588ZJ>FN%Bfap(pko;jP z{)0oeG1IPcXbKH_pO{#{luaKZ1%j&_K#nywt)oN4synTFgpgs`yIsUgd&^zz0Cs>r zo{VdTw`@;e;q1#5fmsDoOoKkbQHw>Eeng+LyJQn%w{)}R?!w$F4uI7;fa>ToxQtIw z+2)6u%57IU1gMl2oC37mQ#1vz(ge&h{ThpmcP6LULFi)8lYOVp*(37c26I={H3UX8 zG>5)`pCykzVYCZYb_b5iH*#SNtR-JnW5*&(nctR3*yN^7_E=8wErcq%a+67&!NMbv bV!(jQLq%z;{FXEtFHbMz|Cr->`SJQc7RsHt literal 0 HcmV?d00001 diff --git a/libgm/gmproto/messages.proto b/libgm/gmproto/rpc.proto similarity index 55% rename from libgm/gmproto/messages.proto rename to libgm/gmproto/rpc.proto index 5b79be1..69f0226 100644 --- a/libgm/gmproto/messages.proto +++ b/libgm/gmproto/rpc.proto @@ -1,20 +1,10 @@ syntax = "proto3"; -package messages; +package rpc; option go_package = "../gmproto"; -message RegisterRefreshPayload { - AuthMessage messageAuth = 1; - Device currBrowserDevice = 2; - int64 unixTimestamp = 3; - bytes signature = 4; - EmptyRefreshArr emptyRefreshArr = 13; - int32 messageType = 16; -} - -message EmptyRefreshArr { - EmptyArr emptyArr = 9; -} +import "authentication.proto"; +import "util.proto"; message StartAckMessage { optional int32 count = 1; @@ -22,9 +12,9 @@ message StartAckMessage { message LongPollingPayload { optional IncomingRPCMessage data = 2; - optional EmptyArr heartbeat = 3; + optional util.EmptyArr heartbeat = 3; optional StartAckMessage ack = 4; - optional EmptyArr startRead = 5; + optional util.EmptyArr startRead = 5; } message IncomingRPCMessage { @@ -35,8 +25,8 @@ message IncomingRPCMessage { MessageType messageType = 5; string finishExecute = 6; string millisecondsTaken = 7; - Device mobile = 8; - Device browser = 9; + authentication.Device mobile = 8; + authentication.Device browser = 9; // Either a RPCMessageData or a RPCPairData encoded as bytes bytes messageData = 12; @@ -56,113 +46,50 @@ message RPCMessageData { bool bool3 = 9; } -message RevokeRelayPairing { - AuthMessage authMessage = 1; - Device browser = 2; +message OutgoingRPCMessage { + message Auth { + string requestID = 1; + + bytes tachyonAuthToken = 6; + authentication.ConfigVersion configVersion = 7; + } + + message Data { + string requestID = 1; + BugleRoute bugleRoute = 2; + + // OutgoingRPCData encoded as bytes + bytes messageData = 12; + + message Type { + util.EmptyArr emptyArr = 1; + MessageType messageType = 2; + } + + Type messageTypeData = 23; + } + + authentication.Device mobile = 1; + Data messageData = 2; + Auth messageAuth = 3; + + int64 TTL = 5; + + util.EmptyArr emptyArr = 9; } -message SendMessage { - Device mobile = 1; - SendMessageData messageData = 2; - SendMessageAuth messageAuth = 3; - - int64 TTL = 5; // might be something related to config - - EmptyArr emptyArr = 9; -} - -message SendMessageAuth { - string requestID = 1; - - bytes tachyonAuthToken = 6; - ConfigVersion configVersion = 7; -} - -message SendMessageInternal { +message OutgoingRPCData { string requestID = 1; ActionType action = 2; bytes encryptedProtoData = 5; string sessionID = 6; } -/* -requestID = 1 - -encodedData = { - requestID = 1 ^same - - sessionID = 6 -} -*/ -message SendMessageData { - string requestID = 1; - BugleRoute bugleRoute = 2; - - bytes protobufData = 12; - - MessageTypeData messageTypeData = 23; -} - -message MessageTypeData { - EmptyArr emptyArr = 1; - MessageType messageType = 2; -} - -message EmptyArr { - -} - -message AuthMessage { - string requestID = 1; - optional string network = 3; - optional bytes tachyonAuthToken = 6; - ConfigVersion configVersion = 7; -} - -message ReceiveMessagesRequest { - AuthMessage auth = 1; - - message UnknownEmptyObject1 {} - message UnknownEmptyObject2 { - UnknownEmptyObject1 unknown = 2; - } - optional UnknownEmptyObject2 unknown = 4; -} - -message BaseData { - int64 TTL = 2; - EmptyArr emptyArr = 6; -} - -message Device { - int64 userID = 1; - string sourceID = 2; - string network = 3; -} enum BugleRoute { UNKNOWN_BUGLE_ROUTE = 0; DataEvent = 19; PairEvent = 14; } -/* -enum EventType { - UNKNOWN_EVENT_TYPE = 0; - ONE = 1; - TWO = 2; - THREE = 3; - FOUR = 4; - FIVE = 5; - SIXTEEN = 16; -} -*/ - -message ConfigVersion { - int32 Year = 3; - int32 Month = 4; - int32 Day = 5; - int32 V1 = 7; - int32 V2 = 9; -} enum ActionType { UNSPECIFIED = 0; diff --git a/libgm/gmproto/util.pb.go b/libgm/gmproto/util.pb.go new file mode 100644 index 0000000..d368a45 --- /dev/null +++ b/libgm/gmproto/util.pb.go @@ -0,0 +1,129 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc v3.21.12 +// source: util.proto + +package gmproto + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +import _ "embed" + +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) +) + +type EmptyArr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *EmptyArr) Reset() { + *x = EmptyArr{} + if protoimpl.UnsafeEnabled { + mi := &file_util_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EmptyArr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EmptyArr) ProtoMessage() {} + +func (x *EmptyArr) ProtoReflect() protoreflect.Message { + mi := &file_util_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EmptyArr.ProtoReflect.Descriptor instead. +func (*EmptyArr) Descriptor() ([]byte, []int) { + return file_util_proto_rawDescGZIP(), []int{0} +} + +var File_util_proto protoreflect.FileDescriptor + +//go:embed util.pb.raw +var file_util_proto_rawDesc []byte + +var ( + file_util_proto_rawDescOnce sync.Once + file_util_proto_rawDescData = file_util_proto_rawDesc +) + +func file_util_proto_rawDescGZIP() []byte { + file_util_proto_rawDescOnce.Do(func() { + file_util_proto_rawDescData = protoimpl.X.CompressGZIP(file_util_proto_rawDescData) + }) + return file_util_proto_rawDescData +} + +var file_util_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_util_proto_goTypes = []interface{}{ + (*EmptyArr)(nil), // 0: util.EmptyArr +} +var file_util_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_util_proto_init() } +func file_util_proto_init() { + if File_util_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_util_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmptyArr); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_util_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_util_proto_goTypes, + DependencyIndexes: file_util_proto_depIdxs, + MessageInfos: file_util_proto_msgTypes, + }.Build() + File_util_proto = out.File + file_util_proto_rawDesc = nil + file_util_proto_goTypes = nil + file_util_proto_depIdxs = nil +} diff --git a/libgm/gmproto/util.pb.raw b/libgm/gmproto/util.pb.raw new file mode 100644 index 0000000..6dcd25e --- /dev/null +++ b/libgm/gmproto/util.pb.raw @@ -0,0 +1,6 @@ + + +util.protoutil" + +EmptyArrB Z +../gmprotobproto3 \ No newline at end of file diff --git a/libgm/gmproto/util.proto b/libgm/gmproto/util.proto new file mode 100644 index 0000000..9d51431 --- /dev/null +++ b/libgm/gmproto/util.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; +package util; + +option go_package = "../gmproto"; + +message EmptyArr { + +} diff --git a/libgm/messages.go b/libgm/messages.go index 719bc9a..eb55eff 100644 --- a/libgm/messages.go +++ b/libgm/messages.go @@ -4,20 +4,20 @@ import ( "go.mau.fi/mautrix-gmessages/libgm/gmproto" ) -func (c *Client) SendReaction(payload *gmproto.SendReactionPayload) (*gmproto.SendReactionResponse, error) { +func (c *Client) SendReaction(payload *gmproto.SendReactionRequest) (*gmproto.SendReactionResponse, error) { actionType := gmproto.ActionType_SEND_REACTION return typedResponse[*gmproto.SendReactionResponse](c.sessionHandler.sendMessage(actionType, payload)) } func (c *Client) DeleteMessage(messageID string) (*gmproto.DeleteMessageResponse, error) { - payload := &gmproto.DeleteMessagePayload{MessageID: messageID} + payload := &gmproto.DeleteMessageRequest{MessageID: messageID} actionType := gmproto.ActionType_DELETE_MESSAGE return typedResponse[*gmproto.DeleteMessageResponse](c.sessionHandler.sendMessage(actionType, payload)) } func (c *Client) MarkRead(conversationID, messageID string) error { - payload := &gmproto.MessageReadPayload{ConversationID: conversationID, MessageID: messageID} + payload := &gmproto.MessageReadRequest{ConversationID: conversationID, MessageID: messageID} actionType := gmproto.ActionType_MESSAGE_READ _, err := c.sessionHandler.sendMessage(actionType, payload) diff --git a/libgm/pair.go b/libgm/pair.go index b2024c9..6630c5c 100644 --- a/libgm/pair.go +++ b/libgm/pair.go @@ -118,7 +118,7 @@ func (c *Client) Unpair() (*gmproto.RevokeRelayPairingResponse, error) { if c.AuthData.TachyonAuthToken == nil || c.AuthData.Browser == nil { return nil, nil } - payload, err := proto.Marshal(&gmproto.RevokeRelayPairing{ + payload, err := proto.Marshal(&gmproto.RevokeRelayPairingRequest{ AuthMessage: &gmproto.AuthMessage{ RequestID: uuid.NewString(), TachyonAuthToken: c.AuthData.TachyonAuthToken, diff --git a/libgm/payload/sendMessage.go b/libgm/payload/sendMessage.go index 6934fdf..59a37ee 100644 --- a/libgm/payload/sendMessage.go +++ b/libgm/payload/sendMessage.go @@ -13,8 +13,8 @@ import ( ) type SendMessageBuilder struct { - message *gmproto.SendMessage - b64Message *gmproto.SendMessageInternal + message *gmproto.OutgoingRPCMessage + b64Message *gmproto.OutgoingRPCData err error } @@ -25,19 +25,19 @@ func (sm *SendMessageBuilder) Err() error { func NewSendMessageBuilder(tachyonAuthToken []byte, pairedDevice *gmproto.Device, requestId string, sessionId string) *SendMessageBuilder { return &SendMessageBuilder{ - message: &gmproto.SendMessage{ + message: &gmproto.OutgoingRPCMessage{ Mobile: pairedDevice, - MessageData: &gmproto.SendMessageData{ + MessageData: &gmproto.OutgoingRPCMessage_Data{ RequestID: requestId, }, - MessageAuth: &gmproto.SendMessageAuth{ + MessageAuth: &gmproto.OutgoingRPCMessage_Auth{ RequestID: requestId, TachyonAuthToken: tachyonAuthToken, ConfigVersion: util.ConfigMessage, }, EmptyArr: &gmproto.EmptyArr{}, }, - b64Message: &gmproto.SendMessageInternal{ + b64Message: &gmproto.OutgoingRPCData{ RequestID: requestId, SessionID: sessionId, }, @@ -80,7 +80,7 @@ func (sm *SendMessageBuilder) SetRoute(actionType gmproto.ActionType) *SendMessa } func (sm *SendMessageBuilder) setMessageType(eventType gmproto.MessageType) *SendMessageBuilder { - sm.message.MessageData.MessageTypeData = &gmproto.MessageTypeData{ + sm.message.MessageData.MessageTypeData = &gmproto.OutgoingRPCMessage_Data_Type{ EmptyArr: &gmproto.EmptyArr{}, MessageType: eventType, } @@ -117,7 +117,7 @@ func (sm *SendMessageBuilder) Build() ([]byte, error) { if err != nil { return nil, err } - sm.message.MessageData.ProtobufData = encodedMessage + sm.message.MessageData.MessageData = encodedMessage protoJSONBytes, serializeErr := pblite.Marshal(sm.message) if serializeErr != nil { diff --git a/libgm/routes/conversations.go b/libgm/routes/conversations.go index 5d4e6ba..a898539 100644 --- a/libgm/routes/conversations.go +++ b/libgm/routes/conversations.go @@ -6,7 +6,7 @@ var LIST_CONVERSATIONS_WITH_UPDATES = Route{ Action: gmproto.ActionType_LIST_CONVERSATIONS, MessageType: gmproto.MessageType_BUGLE_ANNOTATION, BugleRoute: gmproto.BugleRoute_DataEvent, - ResponseStruct: &gmproto.Conversations{}, + ResponseStruct: &gmproto.ListConversationsResponse{}, UseSessionID: false, UseTTL: true, } @@ -15,7 +15,7 @@ var LIST_CONVERSATIONS = Route{ Action: gmproto.ActionType_LIST_CONVERSATIONS, MessageType: gmproto.MessageType_BUGLE_MESSAGE, BugleRoute: gmproto.BugleRoute_DataEvent, - ResponseStruct: &gmproto.Conversations{}, + ResponseStruct: &gmproto.ListConversationsResponse{}, UseSessionID: false, UseTTL: true, } diff --git a/libgm/session.go b/libgm/session.go index 5ae9d3e..731a33c 100644 --- a/libgm/session.go +++ b/libgm/session.go @@ -17,7 +17,7 @@ func (c *Client) IsBugleDefault() (*gmproto.IsBugleDefaultResponse, error) { } func (c *Client) NotifyDittoActivity() error { - payload := &gmproto.NotifyDittoActivityPayload{Success: true} + payload := &gmproto.NotifyDittoActivityRequest{Success: true} actionType := gmproto.ActionType_NOTIFY_DITTO_ACTIVITY _, err := c.sessionHandler.sendMessage(actionType, payload) diff --git a/libgm/session_handler.go b/libgm/session_handler.go index 28d7c4f..be7d297 100644 --- a/libgm/session_handler.go +++ b/libgm/session_handler.go @@ -151,14 +151,14 @@ func (s *SessionHandler) sendAckRequest() { if len(dataToAck) == 0 { return } - ackMessages := make([]*gmproto.AckMessageData, len(dataToAck)) + ackMessages := make([]*gmproto.AckMessageRequest_Message, len(dataToAck)) for i, reqID := range dataToAck { - ackMessages[i] = &gmproto.AckMessageData{ + ackMessages[i] = &gmproto.AckMessageRequest_Message{ RequestID: reqID, Device: s.client.AuthData.Browser, } } - ackMessagePayload := &gmproto.AckMessagePayload{ + ackMessagePayload := &gmproto.AckMessageRequest{ AuthData: &gmproto.AuthMessage{ RequestID: uuid.NewString(), TachyonAuthToken: s.client.AuthData.TachyonAuthToken, diff --git a/libgm/updates_handler.go b/libgm/updates_handler.go index eed5753..c372a9d 100644 --- a/libgm/updates_handler.go +++ b/libgm/updates_handler.go @@ -48,7 +48,7 @@ func (c *Client) handleUpdatesEvent(msg *IncomingRPCMessage) { } func (c *Client) handleClientReady(newSessionId string) { - conversations, convErr := c.ListConversations(25, gmproto.ListConversationsPayload_INBOX) + conversations, convErr := c.ListConversations(25, gmproto.ListConversationsRequest_INBOX) if convErr != nil { panic(convErr) } diff --git a/libgm/upload.go b/libgm/upload.go index 11bc5ca..01efd07 100644 --- a/libgm/upload.go +++ b/libgm/upload.go @@ -229,8 +229,8 @@ func (c *Client) StartUploadMedia(encryptedImageBytes []byte, mime string) (*Sta } func (c *Client) buildStartUploadPayload() (string, error) { - protoData := &gmproto.StartMediaUploadPayload{ - ImageType: 1, + protoData := &gmproto.StartMediaUploadRequest{ + AttachmentType: 1, AuthData: &gmproto.AuthMessage{ RequestID: uuid.NewString(), TachyonAuthToken: c.AuthData.TachyonAuthToken, diff --git a/libgm/util/config.go b/libgm/util/config.go index 1d3942f..2deef7d 100644 --- a/libgm/util/config.go +++ b/libgm/util/config.go @@ -14,7 +14,7 @@ var ConfigMessage = &gmproto.ConfigVersion{ var Network = "Bugle" var BrowserDetailsMessage = &gmproto.BrowserDetails{ UserAgent: UserAgent, - BrowserType: gmproto.BrowserTypes_OTHER, + BrowserType: gmproto.BrowserType_OTHER, OS: "libgm", SomeBool: true, } diff --git a/main.go b/main.go index a17a443..6bca5d5 100644 --- a/main.go +++ b/main.go @@ -68,11 +68,11 @@ func (br *GMBridge) Init() { br.RegisterCommands() util.BrowserDetailsMessage.OS = br.Config.GoogleMessages.OS - browserVal, ok := gmproto.BrowserTypes_value[br.Config.GoogleMessages.Browser] + browserVal, ok := gmproto.BrowserType_value[br.Config.GoogleMessages.Browser] if !ok { br.ZLog.Error().Str("browser_value", br.Config.GoogleMessages.Browser).Msg("Invalid browser value") } else { - util.BrowserDetailsMessage.BrowserType = gmproto.BrowserTypes(browserVal) + util.BrowserDetailsMessage.BrowserType = gmproto.BrowserType(browserVal) } Segment.log = br.ZLog.With().Str("component", "segment").Logger() diff --git a/portal.go b/portal.go index 9d61a6b..6ff1f0d 100644 --- a/portal.go +++ b/portal.go @@ -435,7 +435,7 @@ func (portal *Portal) handleGoogleDeletion(ctx context.Context, messageID string } } -func (portal *Portal) syncReactions(ctx context.Context, source *User, message *database.Message, reactions []*gmproto.ReactionResponse) { +func (portal *Portal) syncReactions(ctx context.Context, source *User, message *database.Message, reactions []*gmproto.ReactionEntry) { log := zerolog.Ctx(ctx) existing, err := portal.bridge.DB.Reaction.GetAllByMessage(ctx, portal.Key, message.ID) if err != nil { @@ -1172,9 +1172,9 @@ func (portal *Portal) uploadMedia(intent *appservice.IntentAPI, data []byte, con return nil } -func (portal *Portal) convertMatrixMessage(ctx context.Context, sender *User, content *event.MessageEventContent, txnID string) (*gmproto.SendMessagePayload, error) { +func (portal *Portal) convertMatrixMessage(ctx context.Context, sender *User, content *event.MessageEventContent, txnID string) (*gmproto.SendMessageRequest, error) { log := zerolog.Ctx(ctx) - req := &gmproto.SendMessagePayload{ + req := &gmproto.SendMessageRequest{ ConversationID: portal.ID, TmpID: txnID, MessagePayload: &gmproto.MessagePayload{ @@ -1349,11 +1349,11 @@ func (portal *Portal) handleMatrixReaction(sender *User, evt *event.Event) error } emoji := variationselector.Remove(content.RelatesTo.Key) - action := gmproto.Reaction_ADD + action := gmproto.SendReactionRequest_ADD if existingReaction != nil { - action = gmproto.Reaction_SWITCH + action = gmproto.SendReactionRequest_SWITCH } - resp, err := sender.Client.SendReaction(&gmproto.SendReactionPayload{ + resp, err := sender.Client.SendReaction(&gmproto.SendReactionRequest{ MessageID: msg.ID, ReactionData: gmproto.MakeReactionData(emoji), Action: action, @@ -1425,10 +1425,10 @@ func (portal *Portal) handleMatrixReactionRedaction(ctx context.Context, sender return errTargetNotFound } - resp, err := sender.Client.SendReaction(&gmproto.SendReactionPayload{ + resp, err := sender.Client.SendReaction(&gmproto.SendReactionRequest{ MessageID: existingReaction.MessageID, ReactionData: gmproto.MakeReactionData(existingReaction.Reaction), - Action: gmproto.Reaction_REMOVE, + Action: gmproto.SendReactionRequest_REMOVE, }) if err != nil { return fmt.Errorf("failed to send reaction removal: %w", err) diff --git a/provisioning.go b/provisioning.go index 99ee6d8..17613d7 100644 --- a/provisioning.go +++ b/provisioning.go @@ -195,7 +195,7 @@ func (prov *ProvisioningAPI) StartChat(w http.ResponseWriter, r *http.Request) { ErrCode: "bad json", }) } - var reqData gmproto.GetOrCreateConversationPayload + var reqData gmproto.GetOrCreateConversationRequest reqData.Numbers = make([]*gmproto.ContactNumber, 0, len(req.Numbers)) for _, number := range req.Numbers { reqData.Numbers = append(reqData.Numbers, &gmproto.ContactNumber{