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 ab5f458..8a7d6b5 100644 Binary files a/libgm/gmproto/authentication.pb.raw and b/libgm/gmproto/authentication.pb.raw differ 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 e304e70..2646774 100644 Binary files a/libgm/gmproto/client.pb.raw and b/libgm/gmproto/client.pb.raw differ diff --git a/libgm/gmproto/client.proto b/libgm/gmproto/client.proto index d25e51e..2929e47 100644 --- a/libgm/gmproto/client.proto +++ b/libgm/gmproto/client.proto @@ -3,72 +3,311 @@ package client; option go_package = "../gmproto"; -import "messages.proto"; +import "conversations.proto"; +import "authentication.proto"; +import "util.proto"; -message NotifyDittoActivityPayload { +message NotifyDittoActivityRequest { // This is not actually a boolean: after logging out, field 2 has value 2, and field 3 has value 1. bool success = 2; } -message MessageReadPayload { +message NotifyDittoActivityResponse {} + +message ReceiveMessagesRequest { + authentication.AuthMessage auth = 1; + + message UnknownEmptyObject1 {} + message UnknownEmptyObject2 { + UnknownEmptyObject1 unknown = 2; + } + optional UnknownEmptyObject2 unknown = 4; +} + +message MessageReadRequest { string conversationID = 2; string messageID = 3; } -message AckMessagePayload { - messages.AuthMessage authData = 1; - messages.EmptyArr emptyArr = 2; - repeated AckMessageData acks = 4; +message AckMessageRequest { + message Message { + string requestID = 1; + authentication.Device device = 2; + } + + authentication.AuthMessage authData = 1; + util.EmptyArr emptyArr = 2; + repeated Message acks = 4; } -message AckMessageData { - string requestID = 1; - messages.Device device = 2; +message DownloadAttachmentRequest { + AttachmentInfo info = 1; + authentication.AuthMessage authData = 2; } -message ImageMetaData { - string imageID = 1; +message AttachmentInfo { + string attachmentID = 1; bool encrypted = 2; } -message UploadImagePayload { - ImageMetaData metaData = 1; - messages.AuthMessage authData = 2; +message StartMediaUploadRequest { + int64 attachmentType = 1; + authentication.AuthMessage authData = 2; + authentication.Device mobile = 3; } -message BugleBackendService { - BugleCode data = 6; +message UploadMediaResponse { + UploadedMedia media = 1; + string message = 2; } -message BugleCode { - int64 type = 2; +message UploadedMedia { + string mediaID = 1; + int64 mediaNumber = 2; } -enum BugleMessageType { - 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; +message GetParticipantThumbnailRequest { + string conversationID = 1; } -enum BrowserTypes { - UNKNOWN_BROWSER_TYPE = 0; - OTHER = 1; - CHROME = 2; - FIREFOX = 3; - SAFARI = 4; - OPERA = 5; - IE = 6; - EDGE = 7; +message GetParticipantThumbnailResponse { + repeated ParticipantThumbnail thumbnail = 1; +} + +message ParticipantThumbnail { + string participantID = 1; + ThumbnailData data = 2; +} + +message GetContactsThumbnailRequest { + repeated string avatarIDs = 1; +} + +message ThumbnailData { + bytes imageBuffer = 3; + int32 someInt = 4; + conversations.Dimensions dimensions = 5; +} + +message Cursor { + string lastItemID = 1; + int64 lastItemTimestamp = 2; +} + +message FetchMessagesRequest { + string conversationID = 2; + int64 count = 3; + + Cursor cursor = 5; +} + +message FetchMessagesResponse { + repeated conversations.Message messages = 2; + bytes someBytes = 3; + int64 totalMessages = 4; + Cursor cursor = 5; +} + +message ListContactsRequest { + int32 i1 = 5; // = 1 + int32 i2 = 6; // = 350 + int32 i3 = 7; // = 50 +} + +message ListTopContactsRequest { + int32 count = 1; +} + +message ListContactsResponse { + repeated conversations.Contact contacts = 2; +} + +message ListTopContactsResponse { + repeated conversations.Contact contacts = 1; +} + +message ListConversationsRequest { + enum Folder { + UNKNOWN = 0; + INBOX = 1; + ARCHIVE = 2; + SPAM_BLOCKED = 5; + } + + int64 count = 2; + Folder folder = 4; + optional Cursor cursor = 5; +} + +message ListConversationsResponse { + repeated conversations.Conversation conversations = 2; + optional bytes cursorBytes = 3; + optional Cursor cursor = 5; +} + +message GetOrCreateConversationRequest { + repeated conversations.ContactNumber numbers = 2; + optional string RCSGroupName = 3; + optional bool createRCSGroup = 4; +} + +message GetOrCreateConversationResponse { + enum Status { + UNKNOWN = 0; + SUCCESS = 1; + CREATE_RCS = 3; + } + conversations.Conversation conversation = 2; + Status status = 3; +} + +message DeleteMessageRequest { + string messageID = 2; +} + +message DeleteMessageResponse { + bool success = 2; +} + +message UpdateConversationRequest { + UpdateConversationData data = 1; + ConversationActionStatus action = 2; + string conversationID = 3; + ConversationAction5 action5 = 5; +} + +message ConversationAction5 { + bool field2 = 2; +} + +message UpdateConversationData { + string conversationID = 1; + oneof data { + ConversationStatus status = 12; + ConversationMuteStatus mute = 7; + } +} + +enum ConversationStatus { + UNKNOWN_STATUS = 0; + UNARCHIVE = 1; + ARCHIVE = 2; + DELETE = 3; +} + +enum ConversationActionStatus { + UNKNOWN_ACTION_STATUS = 0; + UNBLOCK = 2; + BLOCK = 7; + BLOCK_AND_REPORT = 8; +} + +enum ConversationMuteStatus { + UNMUTE = 0; + MUTE = 1; +} + +message UpdateConversationResponse { + bool success = 1; + /* + 3 { + 1 { + 1 { + 3: "11" + } + 13: 2 + } + 3: 1 + } + */ +} + +message ConversationTypeRequest { + string conversationID = 2; +} + +message GetConversationTypeResponse { + string conversationID = 2; + int32 type = 3; + bool bool1 = 5; + int32 number2 = 6; +} + +message GetConversationRequest { + string conversationID = 1; +} + +message GetConversationResponse { + conversations.Conversation conversation = 1; +} + +message OpenConversationRequest { + string conversationID = 2; +} + +message PrepareOpenConversationRequest { + int64 field2 = 2; // only seen value 1 +} + +message IsBugleDefaultResponse { + bool success = 1; +} + +message SendMessageRequest { + string conversationID = 2; + MessagePayload messagePayload = 3; + string tmpID = 5; + bool isReply = 6; // not sure + ReplyPayload reply = 8; +} + +message ReplyPayload { + string messageID = 1; +} + +message MessagePayload { + string tmpID = 1; + MessagePayloadContent messagePayloadContent = 6; + string conversationID = 7; + string selfParticipantID = 9; // might be participantID + repeated conversations.MessageInfo messageInfo = 10; + string tmpID2 = 12; +} + +message MessagePayloadContent { + conversations.MessageContent messageContent = 1; +} + +message SendMessageResponse { + int64 type = 3; +} + +message SendReactionRequest { + enum Action { + UNSPECIFIED = 0; + ADD = 1; + REMOVE = 2; + SWITCH = 3; + } + + string messageID = 1; + conversations.ReactionData reactionData = 2; + Action action = 3; +} + +message SendReactionResponse { + bool success = 1; +} + +message ResendMessageRequest { + string messageID = 2; +} + +message TypingUpdateRequest { + message Data { + string conversationID = 1; + bool typing = 3; + } + + Data data = 2; } diff --git a/libgm/gmproto/conversations.pb.go b/libgm/gmproto/conversations.pb.go index 5f78e0e..d5c75cd 100644 --- a/libgm/gmproto/conversations.pb.go +++ b/libgm/gmproto/conversations.pb.go @@ -22,6 +22,85 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type EmojiType int32 + +const ( + EmojiType_REACTION_TYPE_UNSPECIFIED EmojiType = 0 + EmojiType_LIKE EmojiType = 1 + EmojiType_LOVE EmojiType = 2 + EmojiType_LAUGH EmojiType = 3 + EmojiType_SURPRISED EmojiType = 4 + EmojiType_SAD EmojiType = 5 + EmojiType_ANGRY EmojiType = 6 + EmojiType_DISLIKE EmojiType = 7 + EmojiType_CUSTOM EmojiType = 8 + EmojiType_QUESTIONING EmojiType = 9 + EmojiType_CRYING_FACE EmojiType = 10 + EmojiType_POUTING_FACE EmojiType = 11 + EmojiType_RED_HEART EmojiType = 12 +) + +// Enum value maps for EmojiType. +var ( + EmojiType_name = map[int32]string{ + 0: "REACTION_TYPE_UNSPECIFIED", + 1: "LIKE", + 2: "LOVE", + 3: "LAUGH", + 4: "SURPRISED", + 5: "SAD", + 6: "ANGRY", + 7: "DISLIKE", + 8: "CUSTOM", + 9: "QUESTIONING", + 10: "CRYING_FACE", + 11: "POUTING_FACE", + 12: "RED_HEART", + } + EmojiType_value = map[string]int32{ + "REACTION_TYPE_UNSPECIFIED": 0, + "LIKE": 1, + "LOVE": 2, + "LAUGH": 3, + "SURPRISED": 4, + "SAD": 5, + "ANGRY": 6, + "DISLIKE": 7, + "CUSTOM": 8, + "QUESTIONING": 9, + "CRYING_FACE": 10, + "POUTING_FACE": 11, + "RED_HEART": 12, + } +) + +func (x EmojiType) Enum() *EmojiType { + p := new(EmojiType) + *p = x + return p +} + +func (x EmojiType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EmojiType) Descriptor() protoreflect.EnumDescriptor { + return file_conversations_proto_enumTypes[0].Descriptor() +} + +func (EmojiType) Type() protoreflect.EnumType { + return &file_conversations_proto_enumTypes[0] +} + +func (x EmojiType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use EmojiType.Descriptor instead. +func (EmojiType) EnumDescriptor() ([]byte, []int) { + return file_conversations_proto_rawDescGZIP(), []int{0} +} + type IdentifierType int32 const ( @@ -55,11 +134,11 @@ func (x IdentifierType) String() string { } func (IdentifierType) Descriptor() protoreflect.EnumDescriptor { - return file_conversations_proto_enumTypes[0].Descriptor() + return file_conversations_proto_enumTypes[1].Descriptor() } func (IdentifierType) Type() protoreflect.EnumType { - return &file_conversations_proto_enumTypes[0] + return &file_conversations_proto_enumTypes[1] } func (x IdentifierType) Number() protoreflect.EnumNumber { @@ -68,7 +147,7 @@ func (x IdentifierType) Number() protoreflect.EnumNumber { // Deprecated: Use IdentifierType.Descriptor instead. func (IdentifierType) EnumDescriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{0} + return file_conversations_proto_rawDescGZIP(), []int{1} } type ConversationType int32 @@ -104,11 +183,11 @@ func (x ConversationType) String() string { } func (ConversationType) Descriptor() protoreflect.EnumDescriptor { - return file_conversations_proto_enumTypes[1].Descriptor() + return file_conversations_proto_enumTypes[2].Descriptor() } func (ConversationType) Type() protoreflect.EnumType { - return &file_conversations_proto_enumTypes[1] + return &file_conversations_proto_enumTypes[2] } func (x ConversationType) Number() protoreflect.EnumNumber { @@ -117,7 +196,7 @@ func (x ConversationType) Number() protoreflect.EnumNumber { // Deprecated: Use ConversationType.Descriptor instead. func (ConversationType) EnumDescriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{1} + return file_conversations_proto_rawDescGZIP(), []int{2} } type MessageStatusType int32 @@ -381,11 +460,11 @@ func (x MessageStatusType) String() string { } func (MessageStatusType) Descriptor() protoreflect.EnumDescriptor { - return file_conversations_proto_enumTypes[2].Descriptor() + return file_conversations_proto_enumTypes[3].Descriptor() } func (MessageStatusType) Type() protoreflect.EnumType { - return &file_conversations_proto_enumTypes[2] + return &file_conversations_proto_enumTypes[3] } func (x MessageStatusType) Number() protoreflect.EnumNumber { @@ -394,159 +473,9 @@ func (x MessageStatusType) Number() protoreflect.EnumNumber { // Deprecated: Use MessageStatusType.Descriptor instead. func (MessageStatusType) EnumDescriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{2} -} - -type ConversationStatus int32 - -const ( - ConversationStatus_UNKNOWN_STATUS ConversationStatus = 0 - ConversationStatus_UNARCHIVE ConversationStatus = 1 - ConversationStatus_ARCHIVE ConversationStatus = 2 - ConversationStatus_DELETE ConversationStatus = 3 -) - -// Enum value maps for ConversationStatus. -var ( - ConversationStatus_name = map[int32]string{ - 0: "UNKNOWN_STATUS", - 1: "UNARCHIVE", - 2: "ARCHIVE", - 3: "DELETE", - } - ConversationStatus_value = map[string]int32{ - "UNKNOWN_STATUS": 0, - "UNARCHIVE": 1, - "ARCHIVE": 2, - "DELETE": 3, - } -) - -func (x ConversationStatus) Enum() *ConversationStatus { - p := new(ConversationStatus) - *p = x - return p -} - -func (x ConversationStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ConversationStatus) Descriptor() protoreflect.EnumDescriptor { - return file_conversations_proto_enumTypes[3].Descriptor() -} - -func (ConversationStatus) Type() protoreflect.EnumType { - return &file_conversations_proto_enumTypes[3] -} - -func (x ConversationStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ConversationStatus.Descriptor instead. -func (ConversationStatus) EnumDescriptor() ([]byte, []int) { return file_conversations_proto_rawDescGZIP(), []int{3} } -type ConversationActionStatus int32 - -const ( - ConversationActionStatus_UNKNOWN_ACTION_STATUS ConversationActionStatus = 0 - ConversationActionStatus_UNBLOCK ConversationActionStatus = 2 - ConversationActionStatus_BLOCK ConversationActionStatus = 7 - ConversationActionStatus_BLOCK_AND_REPORT ConversationActionStatus = 8 -) - -// Enum value maps for ConversationActionStatus. -var ( - ConversationActionStatus_name = map[int32]string{ - 0: "UNKNOWN_ACTION_STATUS", - 2: "UNBLOCK", - 7: "BLOCK", - 8: "BLOCK_AND_REPORT", - } - ConversationActionStatus_value = map[string]int32{ - "UNKNOWN_ACTION_STATUS": 0, - "UNBLOCK": 2, - "BLOCK": 7, - "BLOCK_AND_REPORT": 8, - } -) - -func (x ConversationActionStatus) Enum() *ConversationActionStatus { - p := new(ConversationActionStatus) - *p = x - return p -} - -func (x ConversationActionStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ConversationActionStatus) Descriptor() protoreflect.EnumDescriptor { - return file_conversations_proto_enumTypes[4].Descriptor() -} - -func (ConversationActionStatus) Type() protoreflect.EnumType { - return &file_conversations_proto_enumTypes[4] -} - -func (x ConversationActionStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ConversationActionStatus.Descriptor instead. -func (ConversationActionStatus) EnumDescriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{4} -} - -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_conversations_proto_enumTypes[5].Descriptor() -} - -func (ConversationMuteStatus) Type() protoreflect.EnumType { - return &file_conversations_proto_enumTypes[5] -} - -func (x ConversationMuteStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ConversationMuteStatus.Descriptor instead. -func (ConversationMuteStatus) EnumDescriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{5} -} - type ConvUpdateTypes int32 const ( @@ -589,11 +518,11 @@ func (x ConvUpdateTypes) String() string { } func (ConvUpdateTypes) Descriptor() protoreflect.EnumDescriptor { - return file_conversations_proto_enumTypes[6].Descriptor() + return file_conversations_proto_enumTypes[4].Descriptor() } func (ConvUpdateTypes) Type() protoreflect.EnumType { - return &file_conversations_proto_enumTypes[6] + return &file_conversations_proto_enumTypes[4] } func (x ConvUpdateTypes) Number() protoreflect.EnumNumber { @@ -602,7 +531,7 @@ func (x ConvUpdateTypes) Number() protoreflect.EnumNumber { // Deprecated: Use ConvUpdateTypes.Descriptor instead. func (ConvUpdateTypes) EnumDescriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{6} + return file_conversations_proto_rawDescGZIP(), []int{4} } type MediaFormats int32 @@ -761,11 +690,11 @@ func (x MediaFormats) String() string { } func (MediaFormats) Descriptor() protoreflect.EnumDescriptor { - return file_conversations_proto_enumTypes[7].Descriptor() + return file_conversations_proto_enumTypes[5].Descriptor() } func (MediaFormats) Type() protoreflect.EnumType { - return &file_conversations_proto_enumTypes[7] + return &file_conversations_proto_enumTypes[5] } func (x MediaFormats) Number() protoreflect.EnumNumber { @@ -774,263 +703,7 @@ func (x MediaFormats) Number() protoreflect.EnumNumber { // Deprecated: Use MediaFormats.Descriptor instead. func (MediaFormats) EnumDescriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{7} -} - -type ListConversationsPayload_Folder int32 - -const ( - ListConversationsPayload_UNKNOWN ListConversationsPayload_Folder = 0 - ListConversationsPayload_INBOX ListConversationsPayload_Folder = 1 - ListConversationsPayload_ARCHIVE ListConversationsPayload_Folder = 2 - ListConversationsPayload_SPAM_BLOCKED ListConversationsPayload_Folder = 5 -) - -// Enum value maps for ListConversationsPayload_Folder. -var ( - ListConversationsPayload_Folder_name = map[int32]string{ - 0: "UNKNOWN", - 1: "INBOX", - 2: "ARCHIVE", - 5: "SPAM_BLOCKED", - } - ListConversationsPayload_Folder_value = map[string]int32{ - "UNKNOWN": 0, - "INBOX": 1, - "ARCHIVE": 2, - "SPAM_BLOCKED": 5, - } -) - -func (x ListConversationsPayload_Folder) Enum() *ListConversationsPayload_Folder { - p := new(ListConversationsPayload_Folder) - *p = x - return p -} - -func (x ListConversationsPayload_Folder) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ListConversationsPayload_Folder) Descriptor() protoreflect.EnumDescriptor { - return file_conversations_proto_enumTypes[8].Descriptor() -} - -func (ListConversationsPayload_Folder) Type() protoreflect.EnumType { - return &file_conversations_proto_enumTypes[8] -} - -func (x ListConversationsPayload_Folder) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ListConversationsPayload_Folder.Descriptor instead. -func (ListConversationsPayload_Folder) EnumDescriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{23, 0} -} - -type GetParticipantThumbnailPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConversationID string `protobuf:"bytes,1,opt,name=conversationID,proto3" json:"conversationID,omitempty"` -} - -func (x *GetParticipantThumbnailPayload) Reset() { - *x = GetParticipantThumbnailPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetParticipantThumbnailPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetParticipantThumbnailPayload) ProtoMessage() {} - -func (x *GetParticipantThumbnailPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 GetParticipantThumbnailPayload.ProtoReflect.Descriptor instead. -func (*GetParticipantThumbnailPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{0} -} - -func (x *GetParticipantThumbnailPayload) GetConversationID() string { - if x != nil { - return x.ConversationID - } - return "" -} - -type ListContactsPayload 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 *ListContactsPayload) Reset() { - *x = ListContactsPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListContactsPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListContactsPayload) ProtoMessage() {} - -func (x *ListContactsPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 ListContactsPayload.ProtoReflect.Descriptor instead. -func (*ListContactsPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{1} -} - -func (x *ListContactsPayload) GetI1() int32 { - if x != nil { - return x.I1 - } - return 0 -} - -func (x *ListContactsPayload) GetI2() int32 { - if x != nil { - return x.I2 - } - return 0 -} - -func (x *ListContactsPayload) GetI3() int32 { - if x != nil { - return x.I3 - } - return 0 -} - -type ListTopContactsPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` -} - -func (x *ListTopContactsPayload) Reset() { - *x = ListTopContactsPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListTopContactsPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListTopContactsPayload) ProtoMessage() {} - -func (x *ListTopContactsPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 ListTopContactsPayload.ProtoReflect.Descriptor instead. -func (*ListTopContactsPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{2} -} - -func (x *ListTopContactsPayload) GetCount() int32 { - if x != nil { - return x.Count - } - return 0 -} - -type GetContactsThumbnailPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AvatarIDs []string `protobuf:"bytes,1,rep,name=avatarIDs,proto3" json:"avatarIDs,omitempty"` -} - -func (x *GetContactsThumbnailPayload) Reset() { - *x = GetContactsThumbnailPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetContactsThumbnailPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetContactsThumbnailPayload) ProtoMessage() {} - -func (x *GetContactsThumbnailPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 GetContactsThumbnailPayload.ProtoReflect.Descriptor instead. -func (*GetContactsThumbnailPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{3} -} - -func (x *GetContactsThumbnailPayload) GetAvatarIDs() []string { - if x != nil { - return x.AvatarIDs - } - return nil + return file_conversations_proto_rawDescGZIP(), []int{5} } type Contact struct { @@ -1049,7 +722,7 @@ type Contact struct { func (x *Contact) Reset() { *x = Contact{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[4] + mi := &file_conversations_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1062,7 +735,7 @@ func (x *Contact) String() string { func (*Contact) ProtoMessage() {} func (x *Contact) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[4] + mi := &file_conversations_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1075,7 +748,7 @@ func (x *Contact) ProtoReflect() protoreflect.Message { // Deprecated: Use Contact.ProtoReflect.Descriptor instead. func (*Contact) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{4} + return file_conversations_proto_rawDescGZIP(), []int{0} } func (x *Contact) GetID() string { @@ -1135,7 +808,7 @@ type ContactNumber struct { func (x *ContactNumber) Reset() { *x = ContactNumber{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[5] + mi := &file_conversations_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1148,7 +821,7 @@ func (x *ContactNumber) String() string { func (*ContactNumber) ProtoMessage() {} func (x *ContactNumber) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[5] + mi := &file_conversations_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1161,7 +834,7 @@ func (x *ContactNumber) ProtoReflect() protoreflect.Message { // Deprecated: Use ContactNumber.ProtoReflect.Descriptor instead. func (*ContactNumber) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{5} + return file_conversations_proto_rawDescGZIP(), []int{1} } func (x *ContactNumber) GetMysteriousInt() int32 { @@ -1192,1125 +865,30 @@ func (x *ContactNumber) GetFormattedNumber() string { return "" } -type GetOrCreateConversationPayload 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 *GetOrCreateConversationPayload) Reset() { - *x = GetOrCreateConversationPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetOrCreateConversationPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetOrCreateConversationPayload) ProtoMessage() {} - -func (x *GetOrCreateConversationPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 GetOrCreateConversationPayload.ProtoReflect.Descriptor instead. -func (*GetOrCreateConversationPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{6} -} - -func (x *GetOrCreateConversationPayload) GetNumbers() []*ContactNumber { - if x != nil { - return x.Numbers - } - return nil -} - -func (x *GetOrCreateConversationPayload) GetRCSGroupName() string { - if x != nil && x.RCSGroupName != nil { - return *x.RCSGroupName - } - return "" -} - -func (x *GetOrCreateConversationPayload) GetCreateRCSGroup() bool { - if x != nil && x.CreateRCSGroup != nil { - return *x.CreateRCSGroup - } - return false -} - -type ResendMessagePayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MessageID string `protobuf:"bytes,2,opt,name=messageID,proto3" json:"messageID,omitempty"` -} - -func (x *ResendMessagePayload) Reset() { - *x = ResendMessagePayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResendMessagePayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResendMessagePayload) ProtoMessage() {} - -func (x *ResendMessagePayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 ResendMessagePayload.ProtoReflect.Descriptor instead. -func (*ResendMessagePayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{7} -} - -func (x *ResendMessagePayload) GetMessageID() string { - if x != nil { - return x.MessageID - } - return "" -} - -type GetConversationPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConversationID string `protobuf:"bytes,1,opt,name=conversationID,proto3" json:"conversationID,omitempty"` -} - -func (x *GetConversationPayload) Reset() { - *x = GetConversationPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetConversationPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetConversationPayload) ProtoMessage() {} - -func (x *GetConversationPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 GetConversationPayload.ProtoReflect.Descriptor instead. -func (*GetConversationPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{8} -} - -func (x *GetConversationPayload) GetConversationID() string { - if x != nil { - return x.ConversationID - } - return "" -} - -type ConversationTypePayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"` -} - -func (x *ConversationTypePayload) Reset() { - *x = ConversationTypePayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ConversationTypePayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ConversationTypePayload) ProtoMessage() {} - -func (x *ConversationTypePayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 ConversationTypePayload.ProtoReflect.Descriptor instead. -func (*ConversationTypePayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{9} -} - -func (x *ConversationTypePayload) GetConversationID() string { - if x != nil { - return x.ConversationID - } - return "" -} - -type TypingUpdatePayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *SetTypingIn `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *TypingUpdatePayload) Reset() { - *x = TypingUpdatePayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TypingUpdatePayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TypingUpdatePayload) ProtoMessage() {} - -func (x *TypingUpdatePayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 TypingUpdatePayload.ProtoReflect.Descriptor instead. -func (*TypingUpdatePayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{10} -} - -func (x *TypingUpdatePayload) GetData() *SetTypingIn { - if x != nil { - return x.Data - } - return nil -} - -type SetTypingIn 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 *SetTypingIn) Reset() { - *x = SetTypingIn{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetTypingIn) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetTypingIn) ProtoMessage() {} - -func (x *SetTypingIn) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 SetTypingIn.ProtoReflect.Descriptor instead. -func (*SetTypingIn) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{11} -} - -func (x *SetTypingIn) GetConversationID() string { - if x != nil { - return x.ConversationID - } - return "" -} - -func (x *SetTypingIn) GetTyping() bool { - if x != nil { - return x.Typing - } - return false -} - -type UpdateConversationPayload 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=conversations.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 *UpdateConversationPayload) Reset() { - *x = UpdateConversationPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateConversationPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateConversationPayload) ProtoMessage() {} - -func (x *UpdateConversationPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 UpdateConversationPayload.ProtoReflect.Descriptor instead. -func (*UpdateConversationPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{12} -} - -func (x *UpdateConversationPayload) GetData() *UpdateConversationData { - if x != nil { - return x.Data - } - return nil -} - -func (x *UpdateConversationPayload) GetAction() ConversationActionStatus { - if x != nil { - return x.Action - } - return ConversationActionStatus_UNKNOWN_ACTION_STATUS -} - -func (x *UpdateConversationPayload) GetConversationID() string { - if x != nil { - return x.ConversationID - } - return "" -} - -func (x *UpdateConversationPayload) 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_conversations_proto_msgTypes[13] - 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_conversations_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 ConversationAction5.ProtoReflect.Descriptor instead. -func (*ConversationAction5) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{13} -} - -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_conversations_proto_msgTypes[14] - 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_conversations_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 UpdateConversationData.ProtoReflect.Descriptor instead. -func (*UpdateConversationData) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{14} -} - -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=conversations.ConversationStatus,oneof"` -} - -type UpdateConversationData_Mute struct { - Mute ConversationMuteStatus `protobuf:"varint,7,opt,name=mute,proto3,enum=conversations.ConversationMuteStatus,oneof"` -} - -func (*UpdateConversationData_Status) isUpdateConversationData_Data() {} - -func (*UpdateConversationData_Mute) isUpdateConversationData_Data() {} - -type DeleteMessagePayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MessageID string `protobuf:"bytes,2,opt,name=messageID,proto3" json:"messageID,omitempty"` -} - -func (x *DeleteMessagePayload) Reset() { - *x = DeleteMessagePayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteMessagePayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteMessagePayload) ProtoMessage() {} - -func (x *DeleteMessagePayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 DeleteMessagePayload.ProtoReflect.Descriptor instead. -func (*DeleteMessagePayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{15} -} - -func (x *DeleteMessagePayload) GetMessageID() string { - if x != nil { - return x.MessageID - } - return "" -} - -type SendMessagePayload 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 *SendMessagePayload) Reset() { - *x = SendMessagePayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendMessagePayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendMessagePayload) ProtoMessage() {} - -func (x *SendMessagePayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 SendMessagePayload.ProtoReflect.Descriptor instead. -func (*SendMessagePayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{16} -} - -func (x *SendMessagePayload) GetConversationID() string { - if x != nil { - return x.ConversationID - } - return "" -} - -func (x *SendMessagePayload) GetMessagePayload() *MessagePayload { - if x != nil { - return x.MessagePayload - } - return nil -} - -func (x *SendMessagePayload) GetTmpID() string { - if x != nil { - return x.TmpID - } - return "" -} - -func (x *SendMessagePayload) GetIsReply() bool { - if x != nil { - return x.IsReply - } - return false -} - -func (x *SendMessagePayload) 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_conversations_proto_msgTypes[17] - 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_conversations_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 ReplyPayload.ProtoReflect.Descriptor instead. -func (*ReplyPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{17} -} - -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_conversations_proto_msgTypes[18] - 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_conversations_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 MessagePayload.ProtoReflect.Descriptor instead. -func (*MessagePayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{18} -} - -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_conversations_proto_msgTypes[19] - 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_conversations_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 MessagePayloadContent.ProtoReflect.Descriptor instead. -func (*MessagePayloadContent) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{19} -} - -func (x *MessagePayloadContent) GetMessageContent() *MessageContent { - if x != nil { - return x.MessageContent - } - return nil -} - -type OpenConversationPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"` -} - -func (x *OpenConversationPayload) Reset() { - *x = OpenConversationPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenConversationPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenConversationPayload) ProtoMessage() {} - -func (x *OpenConversationPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 OpenConversationPayload.ProtoReflect.Descriptor instead. -func (*OpenConversationPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{20} -} - -func (x *OpenConversationPayload) GetConversationID() string { - if x != nil { - return x.ConversationID - } - return "" -} - -type PrepareOpenConversationPayload 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 *PrepareOpenConversationPayload) Reset() { - *x = PrepareOpenConversationPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PrepareOpenConversationPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrepareOpenConversationPayload) ProtoMessage() {} - -func (x *PrepareOpenConversationPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 PrepareOpenConversationPayload.ProtoReflect.Descriptor instead. -func (*PrepareOpenConversationPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{21} -} - -func (x *PrepareOpenConversationPayload) GetField2() int64 { - if x != nil { - return x.Field2 - } - return 0 -} - -type FetchConversationMessagesPayload 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 *FetchConversationMessagesPayload) Reset() { - *x = FetchConversationMessagesPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchConversationMessagesPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchConversationMessagesPayload) ProtoMessage() {} - -func (x *FetchConversationMessagesPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 FetchConversationMessagesPayload.ProtoReflect.Descriptor instead. -func (*FetchConversationMessagesPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{22} -} - -func (x *FetchConversationMessagesPayload) GetConversationID() string { - if x != nil { - return x.ConversationID - } - return "" -} - -func (x *FetchConversationMessagesPayload) GetCount() int64 { - if x != nil { - return x.Count - } - return 0 -} - -func (x *FetchConversationMessagesPayload) GetCursor() *Cursor { - if x != nil { - return x.Cursor - } - return nil -} - -type ListConversationsPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - Folder ListConversationsPayload_Folder `protobuf:"varint,4,opt,name=folder,proto3,enum=conversations.ListConversationsPayload_Folder" json:"folder,omitempty"` - Cursor *Cursor `protobuf:"bytes,5,opt,name=cursor,proto3,oneof" json:"cursor,omitempty"` -} - -func (x *ListConversationsPayload) Reset() { - *x = ListConversationsPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListConversationsPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListConversationsPayload) ProtoMessage() {} - -func (x *ListConversationsPayload) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 ListConversationsPayload.ProtoReflect.Descriptor instead. -func (*ListConversationsPayload) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{23} -} - -func (x *ListConversationsPayload) GetCount() int64 { - if x != nil { - return x.Count - } - return 0 -} - -func (x *ListConversationsPayload) GetFolder() ListConversationsPayload_Folder { - if x != nil { - return x.Folder - } - return ListConversationsPayload_UNKNOWN -} - -func (x *ListConversationsPayload) GetCursor() *Cursor { - if x != nil { - return x.Cursor - } - 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_conversations_proto_msgTypes[24] - 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_conversations_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 Cursor.ProtoReflect.Descriptor instead. -func (*Cursor) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{24} -} - -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 Message struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MessageID string `protobuf:"bytes,1,opt,name=messageID,proto3" json:"messageID,omitempty"` - MsgType *MsgType `protobuf:"bytes,3,opt,name=msgType,proto3" json:"msgType,omitempty"` - MessageStatus *MessageStatus `protobuf:"bytes,4,opt,name=messageStatus,proto3" json:"messageStatus,omitempty"` - Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // check this - ConversationID string `protobuf:"bytes,7,opt,name=conversationID,proto3" json:"conversationID,omitempty"` - ParticipantID string `protobuf:"bytes,9,opt,name=participantID,proto3" json:"participantID,omitempty"` - MessageInfo []*MessageInfo `protobuf:"bytes,10,rep,name=messageInfo,proto3" json:"messageInfo,omitempty"` - Type int64 `protobuf:"varint,11,opt,name=type,proto3" json:"type,omitempty"` - TmpID string `protobuf:"bytes,12,opt,name=tmpID,proto3" json:"tmpID,omitempty"` - Subject *string `protobuf:"bytes,14,opt,name=subject,proto3,oneof" json:"subject,omitempty"` - SomeInt int64 `protobuf:"varint,16,opt,name=someInt,proto3" json:"someInt,omitempty"` - Reactions []*ReactionResponse `protobuf:"bytes,19,rep,name=reactions,proto3" json:"reactions,omitempty"` - ReplyMessage *ReplyMessage `protobuf:"bytes,21,opt,name=replyMessage,proto3,oneof" json:"replyMessage,omitempty"` + MessageID string `protobuf:"bytes,1,opt,name=messageID,proto3" json:"messageID,omitempty"` + MsgType *MsgType `protobuf:"bytes,3,opt,name=msgType,proto3" json:"msgType,omitempty"` + MessageStatus *MessageStatus `protobuf:"bytes,4,opt,name=messageStatus,proto3" json:"messageStatus,omitempty"` + Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // check this + ConversationID string `protobuf:"bytes,7,opt,name=conversationID,proto3" json:"conversationID,omitempty"` + ParticipantID string `protobuf:"bytes,9,opt,name=participantID,proto3" json:"participantID,omitempty"` + MessageInfo []*MessageInfo `protobuf:"bytes,10,rep,name=messageInfo,proto3" json:"messageInfo,omitempty"` + Type int64 `protobuf:"varint,11,opt,name=type,proto3" json:"type,omitempty"` + TmpID string `protobuf:"bytes,12,opt,name=tmpID,proto3" json:"tmpID,omitempty"` + Subject *string `protobuf:"bytes,14,opt,name=subject,proto3,oneof" json:"subject,omitempty"` + SomeInt int64 `protobuf:"varint,16,opt,name=someInt,proto3" json:"someInt,omitempty"` + Reactions []*ReactionEntry `protobuf:"bytes,19,rep,name=reactions,proto3" json:"reactions,omitempty"` + ReplyMessage *ReplyMessage `protobuf:"bytes,21,opt,name=replyMessage,proto3,oneof" json:"replyMessage,omitempty"` } func (x *Message) Reset() { *x = Message{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[25] + mi := &file_conversations_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2323,7 +901,7 @@ func (x *Message) String() string { func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[25] + mi := &file_conversations_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2336,7 +914,7 @@ func (x *Message) ProtoReflect() protoreflect.Message { // Deprecated: Use Message.ProtoReflect.Descriptor instead. func (*Message) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{25} + return file_conversations_proto_rawDescGZIP(), []int{2} } func (x *Message) GetMessageID() string { @@ -2416,7 +994,7 @@ func (x *Message) GetSomeInt() int64 { return 0 } -func (x *Message) GetReactions() []*ReactionResponse { +func (x *Message) GetReactions() []*ReactionEntry { if x != nil { return x.Reactions } @@ -2430,6 +1008,218 @@ func (x *Message) GetReplyMessage() *ReplyMessage { return nil } +type ReactionEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data *ReactionData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + ParticipantIDs []string `protobuf:"bytes,2,rep,name=participantIDs,proto3" json:"participantIDs,omitempty"` +} + +func (x *ReactionEntry) Reset() { + *x = ReactionEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_conversations_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReactionEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReactionEntry) ProtoMessage() {} + +func (x *ReactionEntry) ProtoReflect() protoreflect.Message { + mi := &file_conversations_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 ReactionEntry.ProtoReflect.Descriptor instead. +func (*ReactionEntry) Descriptor() ([]byte, []int) { + return file_conversations_proto_rawDescGZIP(), []int{3} +} + +func (x *ReactionEntry) GetData() *ReactionData { + if x != nil { + return x.Data + } + return nil +} + +func (x *ReactionEntry) GetParticipantIDs() []string { + if x != nil { + return x.ParticipantIDs + } + return nil +} + +type ReactionData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Unicode string `protobuf:"bytes,1,opt,name=unicode,proto3" json:"unicode,omitempty"` + Type EmojiType `protobuf:"varint,2,opt,name=type,proto3,enum=conversations.EmojiType" json:"type,omitempty"` +} + +func (x *ReactionData) Reset() { + *x = ReactionData{} + if protoimpl.UnsafeEnabled { + mi := &file_conversations_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReactionData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReactionData) ProtoMessage() {} + +func (x *ReactionData) ProtoReflect() protoreflect.Message { + mi := &file_conversations_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 ReactionData.ProtoReflect.Descriptor instead. +func (*ReactionData) Descriptor() ([]byte, []int) { + return file_conversations_proto_rawDescGZIP(), []int{4} +} + +func (x *ReactionData) GetUnicode() string { + if x != nil { + return x.Unicode + } + return "" +} + +func (x *ReactionData) GetType() EmojiType { + if x != nil { + return x.Type + } + return EmojiType_REACTION_TYPE_UNSPECIFIED +} + +type EmojiMeta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EmojiMetaData []*EmojiMetaData `protobuf:"bytes,1,rep,name=emojiMetaData,proto3" json:"emojiMetaData,omitempty"` +} + +func (x *EmojiMeta) Reset() { + *x = EmojiMeta{} + if protoimpl.UnsafeEnabled { + mi := &file_conversations_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EmojiMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EmojiMeta) ProtoMessage() {} + +func (x *EmojiMeta) ProtoReflect() protoreflect.Message { + mi := &file_conversations_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 EmojiMeta.ProtoReflect.Descriptor instead. +func (*EmojiMeta) Descriptor() ([]byte, []int) { + return file_conversations_proto_rawDescGZIP(), []int{5} +} + +func (x *EmojiMeta) GetEmojiMetaData() []*EmojiMetaData { + if x != nil { + return x.EmojiMetaData + } + return nil +} + +type EmojiMetaData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Unicode string `protobuf:"bytes,1,opt,name=unicode,proto3" json:"unicode,omitempty"` + Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` +} + +func (x *EmojiMetaData) Reset() { + *x = EmojiMetaData{} + if protoimpl.UnsafeEnabled { + mi := &file_conversations_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EmojiMetaData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EmojiMetaData) ProtoMessage() {} + +func (x *EmojiMetaData) ProtoReflect() protoreflect.Message { + mi := &file_conversations_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 EmojiMetaData.ProtoReflect.Descriptor instead. +func (*EmojiMetaData) Descriptor() ([]byte, []int) { + return file_conversations_proto_rawDescGZIP(), []int{6} +} + +func (x *EmojiMetaData) GetUnicode() string { + if x != nil { + return x.Unicode + } + return "" +} + +func (x *EmojiMetaData) GetNames() []string { + if x != nil { + return x.Names + } + return nil +} + type ReplyMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2443,7 +1233,7 @@ type ReplyMessage struct { func (x *ReplyMessage) Reset() { *x = ReplyMessage{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[26] + mi := &file_conversations_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2456,7 +1246,7 @@ func (x *ReplyMessage) String() string { func (*ReplyMessage) ProtoMessage() {} func (x *ReplyMessage) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[26] + mi := &file_conversations_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2469,7 +1259,7 @@ func (x *ReplyMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use ReplyMessage.ProtoReflect.Descriptor instead. func (*ReplyMessage) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{26} + return file_conversations_proto_rawDescGZIP(), []int{7} } func (x *ReplyMessage) GetMessageID() string { @@ -2502,7 +1292,7 @@ type ReplyMessageData struct { func (x *ReplyMessageData) Reset() { *x = ReplyMessageData{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[27] + mi := &file_conversations_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2515,7 +1305,7 @@ func (x *ReplyMessageData) String() string { func (*ReplyMessageData) ProtoMessage() {} func (x *ReplyMessageData) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[27] + mi := &file_conversations_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2528,7 +1318,7 @@ func (x *ReplyMessageData) ProtoReflect() protoreflect.Message { // Deprecated: Use ReplyMessageData.ProtoReflect.Descriptor instead. func (*ReplyMessageData) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{27} + return file_conversations_proto_rawDescGZIP(), []int{8} } type MessageInfo struct { @@ -2536,7 +1326,7 @@ type MessageInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ActionMessageID string `protobuf:"bytes,1,opt,name=actionMessageID,proto3" json:"actionMessageID,omitempty"` + ActionMessageID *string `protobuf:"bytes,1,opt,name=actionMessageID,proto3,oneof" json:"actionMessageID,omitempty"` // Types that are assignable to Data: // // *MessageInfo_MessageContent @@ -2547,7 +1337,7 @@ type MessageInfo struct { func (x *MessageInfo) Reset() { *x = MessageInfo{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[28] + mi := &file_conversations_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2560,7 +1350,7 @@ func (x *MessageInfo) String() string { func (*MessageInfo) ProtoMessage() {} func (x *MessageInfo) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[28] + mi := &file_conversations_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2573,12 +1363,12 @@ func (x *MessageInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use MessageInfo.ProtoReflect.Descriptor instead. func (*MessageInfo) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{28} + return file_conversations_proto_rawDescGZIP(), []int{9} } func (x *MessageInfo) GetActionMessageID() string { - if x != nil { - return x.ActionMessageID + if x != nil && x.ActionMessageID != nil { + return *x.ActionMessageID } return "" } @@ -2629,17 +1419,17 @@ type MediaContent struct { MediaID string `protobuf:"bytes,2,opt,name=mediaID,proto3" json:"mediaID,omitempty"` MediaName string `protobuf:"bytes,4,opt,name=mediaName,proto3" json:"mediaName,omitempty"` Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` - Pixels *Pixels `protobuf:"bytes,6,opt,name=pixels,proto3" json:"pixels,omitempty"` + Dimensions *Dimensions `protobuf:"bytes,6,opt,name=dimensions,proto3" json:"dimensions,omitempty"` MediaData []byte `protobuf:"bytes,7,opt,name=mediaData,proto3" json:"mediaData,omitempty"` MediaID2 string `protobuf:"bytes,9,opt,name=mediaID2,proto3" json:"mediaID2,omitempty"` DecryptionKey []byte `protobuf:"bytes,11,opt,name=decryptionKey,proto3" json:"decryptionKey,omitempty"` - DecryptionKey2 []byte `protobuf:"bytes,12,opt,name=decryptionKey2,proto3" json:"decryptionKey2,omitempty"` // same value as decryptionkey? + DecryptionKey2 []byte `protobuf:"bytes,12,opt,name=decryptionKey2,proto3" json:"decryptionKey2,omitempty"` } func (x *MediaContent) Reset() { *x = MediaContent{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[29] + mi := &file_conversations_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2652,7 +1442,7 @@ func (x *MediaContent) String() string { func (*MediaContent) ProtoMessage() {} func (x *MediaContent) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[29] + mi := &file_conversations_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2665,7 +1455,7 @@ func (x *MediaContent) ProtoReflect() protoreflect.Message { // Deprecated: Use MediaContent.ProtoReflect.Descriptor instead. func (*MediaContent) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{29} + return file_conversations_proto_rawDescGZIP(), []int{10} } func (x *MediaContent) GetFormat() MediaFormats { @@ -2696,9 +1486,9 @@ func (x *MediaContent) GetSize() int64 { return 0 } -func (x *MediaContent) GetPixels() *Pixels { +func (x *MediaContent) GetDimensions() *Dimensions { if x != nil { - return x.Pixels + return x.Dimensions } return nil } @@ -2731,7 +1521,7 @@ func (x *MediaContent) GetDecryptionKey2() []byte { return nil } -type Pixels struct { +type Dimensions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -2740,23 +1530,23 @@ type Pixels struct { Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } -func (x *Pixels) Reset() { - *x = Pixels{} +func (x *Dimensions) Reset() { + *x = Dimensions{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[30] + mi := &file_conversations_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Pixels) String() string { +func (x *Dimensions) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Pixels) ProtoMessage() {} +func (*Dimensions) ProtoMessage() {} -func (x *Pixels) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[30] +func (x *Dimensions) ProtoReflect() protoreflect.Message { + mi := &file_conversations_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2767,19 +1557,19 @@ func (x *Pixels) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Pixels.ProtoReflect.Descriptor instead. -func (*Pixels) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{30} +// Deprecated: Use Dimensions.ProtoReflect.Descriptor instead. +func (*Dimensions) Descriptor() ([]byte, []int) { + return file_conversations_proto_rawDescGZIP(), []int{11} } -func (x *Pixels) GetWidth() int64 { +func (x *Dimensions) GetWidth() int64 { if x != nil { return x.Width } return 0 } -func (x *Pixels) GetHeight() int64 { +func (x *Dimensions) GetHeight() int64 { if x != nil { return x.Height } @@ -2797,7 +1587,7 @@ type MessageContent struct { func (x *MessageContent) Reset() { *x = MessageContent{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[31] + mi := &file_conversations_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2810,7 +1600,7 @@ func (x *MessageContent) String() string { func (*MessageContent) ProtoMessage() {} func (x *MessageContent) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[31] + mi := &file_conversations_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2823,7 +1613,7 @@ func (x *MessageContent) ProtoReflect() protoreflect.Message { // Deprecated: Use MessageContent.ProtoReflect.Descriptor instead. func (*MessageContent) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{31} + return file_conversations_proto_rawDescGZIP(), []int{12} } func (x *MessageContent) GetContent() string { @@ -2844,7 +1634,7 @@ type MsgType struct { func (x *MsgType) Reset() { *x = MsgType{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[32] + mi := &file_conversations_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2857,7 +1647,7 @@ func (x *MsgType) String() string { func (*MsgType) ProtoMessage() {} func (x *MsgType) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[32] + mi := &file_conversations_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2870,7 +1660,7 @@ func (x *MsgType) ProtoReflect() protoreflect.Message { // Deprecated: Use MsgType.ProtoReflect.Descriptor instead. func (*MsgType) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{32} + return file_conversations_proto_rawDescGZIP(), []int{13} } func (x *MsgType) GetType() int64 { @@ -2895,7 +1685,7 @@ type MessageStatus struct { func (x *MessageStatus) Reset() { *x = MessageStatus{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[33] + mi := &file_conversations_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2908,7 +1698,7 @@ func (x *MessageStatus) String() string { func (*MessageStatus) ProtoMessage() {} func (x *MessageStatus) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[33] + mi := &file_conversations_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2921,7 +1711,7 @@ func (x *MessageStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use MessageStatus.ProtoReflect.Descriptor instead. func (*MessageStatus) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{33} + return file_conversations_proto_rawDescGZIP(), []int{14} } func (x *MessageStatus) GetStatus() MessageStatusType { @@ -2959,69 +1749,6 @@ func (x *MessageStatus) GetThirdCode() int64 { return 0 } -type Conversations 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 *Conversations) Reset() { - *x = Conversations{} - if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Conversations) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Conversations) ProtoMessage() {} - -func (x *Conversations) ProtoReflect() protoreflect.Message { - mi := &file_conversations_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 Conversations.ProtoReflect.Descriptor instead. -func (*Conversations) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{34} -} - -func (x *Conversations) GetConversations() []*Conversation { - if x != nil { - return x.Conversations - } - return nil -} - -func (x *Conversations) GetCursorBytes() []byte { - if x != nil { - return x.CursorBytes - } - return nil -} - -func (x *Conversations) GetCursor() *Cursor { - if x != nil { - return x.Cursor - } - return nil -} - type Conversation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3049,7 +1776,7 @@ type Conversation struct { func (x *Conversation) Reset() { *x = Conversation{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[35] + mi := &file_conversations_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3062,7 +1789,7 @@ func (x *Conversation) String() string { func (*Conversation) ProtoMessage() {} func (x *Conversation) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[35] + mi := &file_conversations_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3075,7 +1802,7 @@ func (x *Conversation) ProtoReflect() protoreflect.Message { // Deprecated: Use Conversation.ProtoReflect.Descriptor instead. func (*Conversation) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{35} + return file_conversations_proto_rawDescGZIP(), []int{15} } func (x *Conversation) GetConversationID() string { @@ -3212,7 +1939,7 @@ type Participant struct { func (x *Participant) Reset() { *x = Participant{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[36] + mi := &file_conversations_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3225,7 +1952,7 @@ func (x *Participant) String() string { func (*Participant) ProtoMessage() {} func (x *Participant) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[36] + mi := &file_conversations_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3238,7 +1965,7 @@ func (x *Participant) ProtoReflect() protoreflect.Message { // Deprecated: Use Participant.ProtoReflect.Descriptor instead. func (*Participant) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{36} + return file_conversations_proto_rawDescGZIP(), []int{16} } func (x *Participant) GetID() *SmallInfo { @@ -3338,7 +2065,7 @@ type SmallInfo struct { func (x *SmallInfo) Reset() { *x = SmallInfo{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[37] + mi := &file_conversations_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3351,7 +2078,7 @@ func (x *SmallInfo) String() string { func (*SmallInfo) ProtoMessage() {} func (x *SmallInfo) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[37] + mi := &file_conversations_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3364,7 +2091,7 @@ func (x *SmallInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use SmallInfo.ProtoReflect.Descriptor instead. func (*SmallInfo) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{37} + return file_conversations_proto_rawDescGZIP(), []int{17} } func (x *SmallInfo) GetType() IdentifierType { @@ -3394,7 +2121,7 @@ type LatestMessage struct { unknownFields protoimpl.UnknownFields DisplayContent string `protobuf:"bytes,1,opt,name=displayContent,proto3" json:"displayContent,omitempty"` - FromMe int64 `protobuf:"varint,2,opt,name=fromMe,proto3" json:"fromMe,omitempty"` // isMe? + FromMe int64 `protobuf:"varint,2,opt,name=fromMe,proto3" json:"fromMe,omitempty"` DisplayName string `protobuf:"bytes,4,opt,name=displayName,proto3" json:"displayName,omitempty"` LatestMessageStatus *LatestMessageStatus `protobuf:"bytes,5,opt,name=latestMessageStatus,proto3" json:"latestMessageStatus,omitempty"` } @@ -3402,7 +2129,7 @@ type LatestMessage struct { func (x *LatestMessage) Reset() { *x = LatestMessage{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[38] + mi := &file_conversations_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3415,7 +2142,7 @@ func (x *LatestMessage) String() string { func (*LatestMessage) ProtoMessage() {} func (x *LatestMessage) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[38] + mi := &file_conversations_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3428,7 +2155,7 @@ func (x *LatestMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use LatestMessage.ProtoReflect.Descriptor instead. func (*LatestMessage) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{38} + return file_conversations_proto_rawDescGZIP(), []int{18} } func (x *LatestMessage) GetDisplayContent() string { @@ -3471,7 +2198,7 @@ type LatestMessageStatus struct { func (x *LatestMessageStatus) Reset() { *x = LatestMessageStatus{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[39] + mi := &file_conversations_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3484,7 +2211,7 @@ func (x *LatestMessageStatus) String() string { func (*LatestMessageStatus) ProtoMessage() {} func (x *LatestMessageStatus) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[39] + mi := &file_conversations_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3497,7 +2224,7 @@ func (x *LatestMessageStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use LatestMessageStatus.ProtoReflect.Descriptor instead. func (*LatestMessageStatus) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{39} + return file_conversations_proto_rawDescGZIP(), []int{19} } func (x *LatestMessageStatus) GetStatus2() int64 { @@ -3525,7 +2252,7 @@ type Muted struct { func (x *Muted) Reset() { *x = Muted{} if protoimpl.UnsafeEnabled { - mi := &file_conversations_proto_msgTypes[40] + mi := &file_conversations_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3538,7 +2265,7 @@ func (x *Muted) String() string { func (*Muted) ProtoMessage() {} func (x *Muted) ProtoReflect() protoreflect.Message { - mi := &file_conversations_proto_msgTypes[40] + mi := &file_conversations_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3551,7 +2278,7 @@ func (x *Muted) ProtoReflect() protoreflect.Message { // Deprecated: Use Muted.ProtoReflect.Descriptor instead. func (*Muted) Descriptor() ([]byte, []int) { - return file_conversations_proto_rawDescGZIP(), []int{40} + return file_conversations_proto_rawDescGZIP(), []int{20} } func (x *Muted) GetIsMuted() int64 { @@ -3578,105 +2305,67 @@ func file_conversations_proto_rawDescGZIP() []byte { return file_conversations_proto_rawDescData } -var file_conversations_proto_enumTypes = make([]protoimpl.EnumInfo, 9) -var file_conversations_proto_msgTypes = make([]protoimpl.MessageInfo, 41) +var file_conversations_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_conversations_proto_msgTypes = make([]protoimpl.MessageInfo, 21) var file_conversations_proto_goTypes = []interface{}{ - (IdentifierType)(0), // 0: conversations.IdentifierType - (ConversationType)(0), // 1: conversations.ConversationType - (MessageStatusType)(0), // 2: conversations.MessageStatusType - (ConversationStatus)(0), // 3: conversations.ConversationStatus - (ConversationActionStatus)(0), // 4: conversations.ConversationActionStatus - (ConversationMuteStatus)(0), // 5: conversations.ConversationMuteStatus - (ConvUpdateTypes)(0), // 6: conversations.ConvUpdateTypes - (MediaFormats)(0), // 7: conversations.MediaFormats - (ListConversationsPayload_Folder)(0), // 8: conversations.ListConversationsPayload.Folder - (*GetParticipantThumbnailPayload)(nil), // 9: conversations.GetParticipantThumbnailPayload - (*ListContactsPayload)(nil), // 10: conversations.ListContactsPayload - (*ListTopContactsPayload)(nil), // 11: conversations.ListTopContactsPayload - (*GetContactsThumbnailPayload)(nil), // 12: conversations.GetContactsThumbnailPayload - (*Contact)(nil), // 13: conversations.Contact - (*ContactNumber)(nil), // 14: conversations.ContactNumber - (*GetOrCreateConversationPayload)(nil), // 15: conversations.GetOrCreateConversationPayload - (*ResendMessagePayload)(nil), // 16: conversations.ResendMessagePayload - (*GetConversationPayload)(nil), // 17: conversations.GetConversationPayload - (*ConversationTypePayload)(nil), // 18: conversations.ConversationTypePayload - (*TypingUpdatePayload)(nil), // 19: conversations.TypingUpdatePayload - (*SetTypingIn)(nil), // 20: conversations.SetTypingIn - (*UpdateConversationPayload)(nil), // 21: conversations.UpdateConversationPayload - (*ConversationAction5)(nil), // 22: conversations.ConversationAction5 - (*UpdateConversationData)(nil), // 23: conversations.UpdateConversationData - (*DeleteMessagePayload)(nil), // 24: conversations.DeleteMessagePayload - (*SendMessagePayload)(nil), // 25: conversations.SendMessagePayload - (*ReplyPayload)(nil), // 26: conversations.ReplyPayload - (*MessagePayload)(nil), // 27: conversations.MessagePayload - (*MessagePayloadContent)(nil), // 28: conversations.MessagePayloadContent - (*OpenConversationPayload)(nil), // 29: conversations.OpenConversationPayload - (*PrepareOpenConversationPayload)(nil), // 30: conversations.PrepareOpenConversationPayload - (*FetchConversationMessagesPayload)(nil), // 31: conversations.FetchConversationMessagesPayload - (*ListConversationsPayload)(nil), // 32: conversations.ListConversationsPayload - (*Cursor)(nil), // 33: conversations.Cursor - (*Message)(nil), // 34: conversations.Message - (*ReplyMessage)(nil), // 35: conversations.ReplyMessage - (*ReplyMessageData)(nil), // 36: conversations.ReplyMessageData - (*MessageInfo)(nil), // 37: conversations.MessageInfo - (*MediaContent)(nil), // 38: conversations.MediaContent - (*Pixels)(nil), // 39: conversations.Pixels - (*MessageContent)(nil), // 40: conversations.MessageContent - (*MsgType)(nil), // 41: conversations.MsgType - (*MessageStatus)(nil), // 42: conversations.MessageStatus - (*Conversations)(nil), // 43: conversations.Conversations - (*Conversation)(nil), // 44: conversations.Conversation - (*Participant)(nil), // 45: conversations.Participant - (*SmallInfo)(nil), // 46: conversations.SmallInfo - (*LatestMessage)(nil), // 47: conversations.LatestMessage - (*LatestMessageStatus)(nil), // 48: conversations.LatestMessageStatus - (*Muted)(nil), // 49: conversations.Muted - (*ReactionResponse)(nil), // 50: reactions.ReactionResponse + (EmojiType)(0), // 0: conversations.EmojiType + (IdentifierType)(0), // 1: conversations.IdentifierType + (ConversationType)(0), // 2: conversations.ConversationType + (MessageStatusType)(0), // 3: conversations.MessageStatusType + (ConvUpdateTypes)(0), // 4: conversations.ConvUpdateTypes + (MediaFormats)(0), // 5: conversations.MediaFormats + (*Contact)(nil), // 6: conversations.Contact + (*ContactNumber)(nil), // 7: conversations.ContactNumber + (*Message)(nil), // 8: conversations.Message + (*ReactionEntry)(nil), // 9: conversations.ReactionEntry + (*ReactionData)(nil), // 10: conversations.ReactionData + (*EmojiMeta)(nil), // 11: conversations.EmojiMeta + (*EmojiMetaData)(nil), // 12: conversations.EmojiMetaData + (*ReplyMessage)(nil), // 13: conversations.ReplyMessage + (*ReplyMessageData)(nil), // 14: conversations.ReplyMessageData + (*MessageInfo)(nil), // 15: conversations.MessageInfo + (*MediaContent)(nil), // 16: conversations.MediaContent + (*Dimensions)(nil), // 17: conversations.Dimensions + (*MessageContent)(nil), // 18: conversations.MessageContent + (*MsgType)(nil), // 19: conversations.MsgType + (*MessageStatus)(nil), // 20: conversations.MessageStatus + (*Conversation)(nil), // 21: conversations.Conversation + (*Participant)(nil), // 22: conversations.Participant + (*SmallInfo)(nil), // 23: conversations.SmallInfo + (*LatestMessage)(nil), // 24: conversations.LatestMessage + (*LatestMessageStatus)(nil), // 25: conversations.LatestMessageStatus + (*Muted)(nil), // 26: conversations.Muted } var file_conversations_proto_depIdxs = []int32{ - 14, // 0: conversations.Contact.number:type_name -> 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 4f425fd..56a8d1b 100644 Binary files a/libgm/gmproto/conversations.pb.raw and b/libgm/gmproto/conversations.pb.raw differ diff --git a/libgm/gmproto/conversations.proto b/libgm/gmproto/conversations.proto index 3f35cc2..f6044b8 100644 --- a/libgm/gmproto/conversations.proto +++ b/libgm/gmproto/conversations.proto @@ -3,26 +3,6 @@ package conversations; option go_package = "../gmproto"; -import "reactions.proto"; - -message GetParticipantThumbnailPayload { - string conversationID = 1; -} - -message ListContactsPayload { - int32 i1 = 5; // = 1 - int32 i2 = 6; // = 350 - int32 i3 = 7; // = 50 -} - -message ListTopContactsPayload { - int32 count = 1; -} - -message GetContactsThumbnailPayload { - repeated string avatarIDs = 1; -} - message Contact { string ID = 1; string name = 2; @@ -40,114 +20,6 @@ message ContactNumber { optional string formattedNumber = 4; } -message GetOrCreateConversationPayload { - repeated ContactNumber numbers = 2; - optional string RCSGroupName = 3; - optional bool createRCSGroup = 4; -} - -message ResendMessagePayload { - string messageID = 2; -} - -message GetConversationPayload { - string conversationID = 1; -} - -message ConversationTypePayload { - string conversationID = 2; -} - -message TypingUpdatePayload { - SetTypingIn data = 2; -} - -message SetTypingIn { - string conversationID = 1; - bool typing = 3; -} - -message UpdateConversationPayload { - UpdateConversationData data = 1; - ConversationActionStatus action = 2; - string conversationID = 3; - ConversationAction5 action5 = 5; -} - -message ConversationAction5 { - bool field2 = 2; -} - -message UpdateConversationData { - string conversationID = 1; - oneof data { - ConversationStatus status = 12; - ConversationMuteStatus mute = 7; - } -} - -message DeleteMessagePayload { - string messageID = 2; -} - -message SendMessagePayload { - string conversationID = 2; - MessagePayload messagePayload = 3; - string tmpID = 5; - bool isReply = 6; // not sure - ReplyPayload reply = 8; -} - -message ReplyPayload { - string messageID = 1; -} - -message MessagePayload { - string tmpID = 1; - MessagePayloadContent messagePayloadContent = 6; - string conversationID = 7; - string selfParticipantID = 9; // might be participantID - repeated MessageInfo messageInfo = 10; - string tmpID2 = 12; -} - -message MessagePayloadContent { - MessageContent messageContent = 1; -} - -message OpenConversationPayload { - string conversationID = 2; -} - -message PrepareOpenConversationPayload { - int64 field2 = 2; // only seen value 1 -} - -message FetchConversationMessagesPayload { - string conversationID = 2; - int64 count = 3; - - Cursor cursor = 5; -} - -message ListConversationsPayload { - enum Folder { - UNKNOWN = 0; - INBOX = 1; - ARCHIVE = 2; - SPAM_BLOCKED = 5; - } - - int64 count = 2; - Folder folder = 4; - optional Cursor cursor = 5; -} - -message Cursor { - string lastItemID = 1; - int64 lastItemTimestamp = 2; -} - message Message { string messageID = 1; MsgType msgType = 3; @@ -160,10 +32,45 @@ message Message { string tmpID = 12; optional string subject = 14; int64 someInt = 16; - repeated reactions.ReactionResponse reactions = 19; + repeated ReactionEntry reactions = 19; optional ReplyMessage replyMessage = 21; } +message ReactionEntry { + ReactionData data = 1; + repeated string participantIDs = 2; +} + +enum EmojiType { + REACTION_TYPE_UNSPECIFIED = 0; + LIKE = 1; + LOVE = 2; + LAUGH = 3; + SURPRISED = 4; + SAD = 5; + ANGRY = 6; + DISLIKE = 7; + CUSTOM = 8; + QUESTIONING = 9; + CRYING_FACE = 10; + POUTING_FACE = 11; + RED_HEART = 12; +} + +message ReactionData { + string unicode = 1; + EmojiType type = 2; +} + +message EmojiMeta { + repeated EmojiMetaData emojiMetaData = 1; +} + +message EmojiMetaData { + string unicode = 1; + repeated string names = 2; +} + message ReplyMessage { string messageID = 1; string conversationID = 2; // might be participantID @@ -175,7 +82,7 @@ message ReplyMessageData { } message MessageInfo { - string actionMessageID = 1; + optional string actionMessageID = 1; oneof data { MessageContent messageContent = 2; MediaContent mediaContent = 3; @@ -187,14 +94,14 @@ message MediaContent { string mediaID = 2; string mediaName = 4; int64 size = 5; - Pixels pixels = 6; + Dimensions dimensions = 6; bytes mediaData = 7; string mediaID2 = 9; bytes decryptionKey = 11; - bytes decryptionKey2 = 12; // same value as decryptionkey? + bytes decryptionKey2 = 12; } -message Pixels { +message Dimensions { int64 width = 1; int64 height = 2; } @@ -215,12 +122,6 @@ message MessageStatus { int64 thirdCode = 6; } -message Conversations { - repeated Conversation conversations = 2; - optional bytes cursorBytes = 3; - optional Cursor cursor = 5; -} - message Conversation { string conversationID = 1; string name = 2; @@ -272,7 +173,7 @@ message SmallInfo { message LatestMessage { string displayContent = 1; - int64 fromMe = 2; // isMe? + int64 fromMe = 2; string displayName = 4; LatestMessageStatus latestMessageStatus = 5; @@ -379,25 +280,6 @@ enum MessageStatusType { MESSAGE_DELETED = 300; } -enum ConversationStatus { - UNKNOWN_STATUS = 0; - UNARCHIVE = 1; - ARCHIVE = 2; - DELETE = 3; -} - -enum ConversationActionStatus { - UNKNOWN_ACTION_STATUS = 0; - UNBLOCK = 2; - BLOCK = 7; - BLOCK_AND_REPORT = 8; -} - -enum ConversationMuteStatus { - UNMUTE = 0; - MUTE = 1; -} - enum ConvUpdateTypes { UNKNOWN_CONVTYPE = 0; UNARCHIVED = 1; diff --git a/libgm/gmproto/events.pb.go b/libgm/gmproto/events.pb.go index d3fb868..7ca3a78 100644 --- a/libgm/gmproto/events.pb.go +++ b/libgm/gmproto/events.pb.go @@ -116,97 +116,6 @@ func (AlertType) EnumDescriptor() ([]byte, []int) { return file_events_proto_rawDescGZIP(), []int{0} } -type GRPCStatus int32 - -const ( - GRPCStatus_OK GRPCStatus = 0 - GRPCStatus_CANCELLED GRPCStatus = 1 - GRPCStatus_UNKNOWN GRPCStatus = 2 - GRPCStatus_INVALID_ARGUMENT GRPCStatus = 3 - GRPCStatus_DEADLINE_EXCEEDED GRPCStatus = 4 - GRPCStatus_NOT_FOUND GRPCStatus = 5 - GRPCStatus_ALREADY_EXISTS GRPCStatus = 6 - GRPCStatus_PERMISSION_DENIED GRPCStatus = 7 - GRPCStatus_RESOURCE_EXHAUSTED GRPCStatus = 8 - GRPCStatus_FAILED_PRECONDITION GRPCStatus = 9 - GRPCStatus_ABORTED GRPCStatus = 10 - GRPCStatus_OUT_OF_RANGE GRPCStatus = 11 - GRPCStatus_UNIMPLEMENTED GRPCStatus = 12 - GRPCStatus_INTERNAL GRPCStatus = 13 - GRPCStatus_UNAVAILABLE GRPCStatus = 14 - GRPCStatus_DATA_LOSS GRPCStatus = 15 - GRPCStatus_UNAUTHENTICATED GRPCStatus = 16 -) - -// Enum value maps for GRPCStatus. -var ( - GRPCStatus_name = map[int32]string{ - 0: "OK", - 1: "CANCELLED", - 2: "UNKNOWN", - 3: "INVALID_ARGUMENT", - 4: "DEADLINE_EXCEEDED", - 5: "NOT_FOUND", - 6: "ALREADY_EXISTS", - 7: "PERMISSION_DENIED", - 8: "RESOURCE_EXHAUSTED", - 9: "FAILED_PRECONDITION", - 10: "ABORTED", - 11: "OUT_OF_RANGE", - 12: "UNIMPLEMENTED", - 13: "INTERNAL", - 14: "UNAVAILABLE", - 15: "DATA_LOSS", - 16: "UNAUTHENTICATED", - } - GRPCStatus_value = map[string]int32{ - "OK": 0, - "CANCELLED": 1, - "UNKNOWN": 2, - "INVALID_ARGUMENT": 3, - "DEADLINE_EXCEEDED": 4, - "NOT_FOUND": 5, - "ALREADY_EXISTS": 6, - "PERMISSION_DENIED": 7, - "RESOURCE_EXHAUSTED": 8, - "FAILED_PRECONDITION": 9, - "ABORTED": 10, - "OUT_OF_RANGE": 11, - "UNIMPLEMENTED": 12, - "INTERNAL": 13, - "UNAVAILABLE": 14, - "DATA_LOSS": 15, - "UNAUTHENTICATED": 16, - } -) - -func (x GRPCStatus) Enum() *GRPCStatus { - p := new(GRPCStatus) - *p = x - return p -} - -func (x GRPCStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (GRPCStatus) Descriptor() protoreflect.EnumDescriptor { - return file_events_proto_enumTypes[1].Descriptor() -} - -func (GRPCStatus) Type() protoreflect.EnumType { - return &file_events_proto_enumTypes[1] -} - -func (x GRPCStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use GRPCStatus.Descriptor instead. -func (GRPCStatus) EnumDescriptor() ([]byte, []int) { - return file_events_proto_rawDescGZIP(), []int{1} -} - type TypingTypes int32 const ( @@ -237,11 +146,11 @@ func (x TypingTypes) String() string { } func (TypingTypes) Descriptor() protoreflect.EnumDescriptor { - return file_events_proto_enumTypes[2].Descriptor() + return file_events_proto_enumTypes[1].Descriptor() } func (TypingTypes) Type() protoreflect.EnumType { - return &file_events_proto_enumTypes[2] + return &file_events_proto_enumTypes[1] } func (x TypingTypes) Number() protoreflect.EnumNumber { @@ -250,7 +159,7 @@ func (x TypingTypes) Number() protoreflect.EnumNumber { // Deprecated: Use TypingTypes.Descriptor instead. func (TypingTypes) EnumDescriptor() ([]byte, []int) { - return file_events_proto_rawDescGZIP(), []int{2} + return file_events_proto_rawDescGZIP(), []int{1} } type UpdateEvents struct { @@ -780,40 +689,39 @@ func file_events_proto_rawDescGZIP() []byte { return file_events_proto_rawDescData } -var file_events_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_events_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_events_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_events_proto_goTypes = []interface{}{ (AlertType)(0), // 0: events.AlertType - (GRPCStatus)(0), // 1: events.GRPCStatus - (TypingTypes)(0), // 2: events.TypingTypes - (*UpdateEvents)(nil), // 3: events.UpdateEvents - (*ConversationEvent)(nil), // 4: events.ConversationEvent - (*TypingEvent)(nil), // 5: events.TypingEvent - (*MessageEvent)(nil), // 6: events.MessageEvent - (*UserAlertEvent)(nil), // 7: events.UserAlertEvent - (*TypingData)(nil), // 8: events.TypingData - (*User)(nil), // 9: events.User - (*RPCPairData)(nil), // 10: events.RPCPairData - (*Settings)(nil), // 11: settings.Settings - (*Conversation)(nil), // 12: conversations.Conversation - (*Message)(nil), // 13: conversations.Message - (*PairedData)(nil), // 14: authentication.PairedData - (*RevokePairData)(nil), // 15: authentication.RevokePairData + (TypingTypes)(0), // 1: events.TypingTypes + (*UpdateEvents)(nil), // 2: events.UpdateEvents + (*ConversationEvent)(nil), // 3: events.ConversationEvent + (*TypingEvent)(nil), // 4: events.TypingEvent + (*MessageEvent)(nil), // 5: events.MessageEvent + (*UserAlertEvent)(nil), // 6: events.UserAlertEvent + (*TypingData)(nil), // 7: events.TypingData + (*User)(nil), // 8: events.User + (*RPCPairData)(nil), // 9: events.RPCPairData + (*Settings)(nil), // 10: settings.Settings + (*Conversation)(nil), // 11: conversations.Conversation + (*Message)(nil), // 12: conversations.Message + (*PairedData)(nil), // 13: authentication.PairedData + (*RevokePairData)(nil), // 14: authentication.RevokePairData } var file_events_proto_depIdxs = []int32{ - 4, // 0: events.UpdateEvents.conversationEvent:type_name -> 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 5ce13e7..d4b837c 100644 Binary files a/libgm/gmproto/events.pb.raw and b/libgm/gmproto/events.pb.raw differ diff --git a/libgm/gmproto/events.proto b/libgm/gmproto/events.proto index 82bd681..911d363 100644 --- a/libgm/gmproto/events.proto +++ b/libgm/gmproto/events.proto @@ -89,26 +89,6 @@ enum AlertType { CONTACTS_REFRESH_COMPLETED = 17; // Emitted whenever the paired device has successfully refreshed contacts } -enum GRPCStatus { - OK = 0; - CANCELLED = 1; - UNKNOWN = 2; - INVALID_ARGUMENT = 3; - DEADLINE_EXCEEDED = 4; - NOT_FOUND = 5; - ALREADY_EXISTS = 6; - PERMISSION_DENIED = 7; - RESOURCE_EXHAUSTED = 8; - FAILED_PRECONDITION = 9; - ABORTED = 10; - OUT_OF_RANGE = 11; - UNIMPLEMENTED = 12; - INTERNAL = 13; - UNAVAILABLE = 14; - DATA_LOSS = 15; - UNAUTHENTICATED = 16; -} - enum TypingTypes { STOPPED_TYPING = 0; STARTED_TYPING = 1; diff --git a/libgm/gmproto/media.pb.go b/libgm/gmproto/media.pb.go deleted file mode 100644 index a13c92e..0000000 --- a/libgm/gmproto/media.pb.go +++ /dev/null @@ -1,296 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.12 -// source: media.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 StartMediaUploadPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ImageType int64 `protobuf:"varint,1,opt,name=imageType,proto3" json:"imageType,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 *StartMediaUploadPayload) Reset() { - *x = StartMediaUploadPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_media_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartMediaUploadPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartMediaUploadPayload) ProtoMessage() {} - -func (x *StartMediaUploadPayload) ProtoReflect() protoreflect.Message { - mi := &file_media_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 StartMediaUploadPayload.ProtoReflect.Descriptor instead. -func (*StartMediaUploadPayload) Descriptor() ([]byte, []int) { - return file_media_proto_rawDescGZIP(), []int{0} -} - -func (x *StartMediaUploadPayload) GetImageType() int64 { - if x != nil { - return x.ImageType - } - return 0 -} - -func (x *StartMediaUploadPayload) GetAuthData() *AuthMessage { - if x != nil { - return x.AuthData - } - return nil -} - -func (x *StartMediaUploadPayload) GetMobile() *Device { - if x != nil { - return x.Mobile - } - return nil -} - -type UploadMediaResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Media *Media `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_media_proto_msgTypes[1] - 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_media_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 UploadMediaResponse.ProtoReflect.Descriptor instead. -func (*UploadMediaResponse) Descriptor() ([]byte, []int) { - return file_media_proto_rawDescGZIP(), []int{1} -} - -func (x *UploadMediaResponse) GetMedia() *Media { - if x != nil { - return x.Media - } - return nil -} - -func (x *UploadMediaResponse) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type Media 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 *Media) Reset() { - *x = Media{} - if protoimpl.UnsafeEnabled { - mi := &file_media_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Media) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Media) ProtoMessage() {} - -func (x *Media) ProtoReflect() protoreflect.Message { - mi := &file_media_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 Media.ProtoReflect.Descriptor instead. -func (*Media) Descriptor() ([]byte, []int) { - return file_media_proto_rawDescGZIP(), []int{2} -} - -func (x *Media) GetMediaID() string { - if x != nil { - return x.MediaID - } - return "" -} - -func (x *Media) GetMediaNumber() int64 { - if x != nil { - return x.MediaNumber - } - return 0 -} - -var File_media_proto protoreflect.FileDescriptor - -//go:embed media.pb.raw -var file_media_proto_rawDesc []byte - -var ( - file_media_proto_rawDescOnce sync.Once - file_media_proto_rawDescData = file_media_proto_rawDesc -) - -func file_media_proto_rawDescGZIP() []byte { - file_media_proto_rawDescOnce.Do(func() { - file_media_proto_rawDescData = protoimpl.X.CompressGZIP(file_media_proto_rawDescData) - }) - return file_media_proto_rawDescData -} - -var file_media_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_media_proto_goTypes = []interface{}{ - (*StartMediaUploadPayload)(nil), // 0: media.StartMediaUploadPayload - (*UploadMediaResponse)(nil), // 1: media.UploadMediaResponse - (*Media)(nil), // 2: media.Media - (*AuthMessage)(nil), // 3: messages.AuthMessage - (*Device)(nil), // 4: messages.Device -} -var file_media_proto_depIdxs = []int32{ - 3, // 0: media.StartMediaUploadPayload.authData:type_name -> 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 bf961e2..0000000 Binary files a/libgm/gmproto/messages.pb.raw and /dev/null differ diff --git a/libgm/gmproto/reactions.pb.go b/libgm/gmproto/reactions.pb.go deleted file mode 100644 index d36983a..0000000 --- a/libgm/gmproto/reactions.pb.go +++ /dev/null @@ -1,618 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.12 -// source: reactions.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 Reaction int32 - -const ( - Reaction_UNSPECIFIED Reaction = 0 - Reaction_ADD Reaction = 1 - Reaction_REMOVE Reaction = 2 - Reaction_SWITCH Reaction = 3 -) - -// Enum value maps for Reaction. -var ( - Reaction_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "ADD", - 2: "REMOVE", - 3: "SWITCH", - } - Reaction_value = map[string]int32{ - "UNSPECIFIED": 0, - "ADD": 1, - "REMOVE": 2, - "SWITCH": 3, - } -) - -func (x Reaction) Enum() *Reaction { - p := new(Reaction) - *p = x - return p -} - -func (x Reaction) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Reaction) Descriptor() protoreflect.EnumDescriptor { - return file_reactions_proto_enumTypes[0].Descriptor() -} - -func (Reaction) Type() protoreflect.EnumType { - return &file_reactions_proto_enumTypes[0] -} - -func (x Reaction) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Reaction.Descriptor instead. -func (Reaction) EnumDescriptor() ([]byte, []int) { - return file_reactions_proto_rawDescGZIP(), []int{0} -} - -type EmojiType int32 - -const ( - EmojiType_REACTION_TYPE_UNSPECIFIED EmojiType = 0 - EmojiType_LIKE EmojiType = 1 - EmojiType_LOVE EmojiType = 2 - EmojiType_LAUGH EmojiType = 3 - EmojiType_SURPRISED EmojiType = 4 - EmojiType_SAD EmojiType = 5 - EmojiType_ANGRY EmojiType = 6 - EmojiType_DISLIKE EmojiType = 7 - EmojiType_CUSTOM EmojiType = 8 - EmojiType_QUESTIONING EmojiType = 9 - EmojiType_CRYING_FACE EmojiType = 10 - EmojiType_POUTING_FACE EmojiType = 11 - EmojiType_RED_HEART EmojiType = 12 -) - -// Enum value maps for EmojiType. -var ( - EmojiType_name = map[int32]string{ - 0: "REACTION_TYPE_UNSPECIFIED", - 1: "LIKE", - 2: "LOVE", - 3: "LAUGH", - 4: "SURPRISED", - 5: "SAD", - 6: "ANGRY", - 7: "DISLIKE", - 8: "CUSTOM", - 9: "QUESTIONING", - 10: "CRYING_FACE", - 11: "POUTING_FACE", - 12: "RED_HEART", - } - EmojiType_value = map[string]int32{ - "REACTION_TYPE_UNSPECIFIED": 0, - "LIKE": 1, - "LOVE": 2, - "LAUGH": 3, - "SURPRISED": 4, - "SAD": 5, - "ANGRY": 6, - "DISLIKE": 7, - "CUSTOM": 8, - "QUESTIONING": 9, - "CRYING_FACE": 10, - "POUTING_FACE": 11, - "RED_HEART": 12, - } -) - -func (x EmojiType) Enum() *EmojiType { - p := new(EmojiType) - *p = x - return p -} - -func (x EmojiType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (EmojiType) Descriptor() protoreflect.EnumDescriptor { - return file_reactions_proto_enumTypes[1].Descriptor() -} - -func (EmojiType) Type() protoreflect.EnumType { - return &file_reactions_proto_enumTypes[1] -} - -func (x EmojiType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use EmojiType.Descriptor instead. -func (EmojiType) EnumDescriptor() ([]byte, []int) { - return file_reactions_proto_rawDescGZIP(), []int{1} -} - -type SendReactionPayload 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 Reaction `protobuf:"varint,3,opt,name=action,proto3,enum=reactions.Reaction" json:"action,omitempty"` -} - -func (x *SendReactionPayload) Reset() { - *x = SendReactionPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_reactions_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendReactionPayload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendReactionPayload) ProtoMessage() {} - -func (x *SendReactionPayload) ProtoReflect() protoreflect.Message { - mi := &file_reactions_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 SendReactionPayload.ProtoReflect.Descriptor instead. -func (*SendReactionPayload) Descriptor() ([]byte, []int) { - return file_reactions_proto_rawDescGZIP(), []int{0} -} - -func (x *SendReactionPayload) GetMessageID() string { - if x != nil { - return x.MessageID - } - return "" -} - -func (x *SendReactionPayload) GetReactionData() *ReactionData { - if x != nil { - return x.ReactionData - } - return nil -} - -func (x *SendReactionPayload) GetAction() Reaction { - if x != nil { - return x.Action - } - return Reaction_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_reactions_proto_msgTypes[1] - 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_reactions_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 SendReactionResponse.ProtoReflect.Descriptor instead. -func (*SendReactionResponse) Descriptor() ([]byte, []int) { - return file_reactions_proto_rawDescGZIP(), []int{1} -} - -func (x *SendReactionResponse) GetSuccess() bool { - if x != nil { - return x.Success - } - return false -} - -type ReactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Unicode string `protobuf:"bytes,1,opt,name=unicode,proto3" json:"unicode,omitempty"` - Type EmojiType `protobuf:"varint,2,opt,name=type,proto3,enum=reactions.EmojiType" json:"type,omitempty"` -} - -func (x *ReactionData) Reset() { - *x = ReactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_reactions_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReactionData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReactionData) ProtoMessage() {} - -func (x *ReactionData) ProtoReflect() protoreflect.Message { - mi := &file_reactions_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 ReactionData.ProtoReflect.Descriptor instead. -func (*ReactionData) Descriptor() ([]byte, []int) { - return file_reactions_proto_rawDescGZIP(), []int{2} -} - -func (x *ReactionData) GetUnicode() string { - if x != nil { - return x.Unicode - } - return "" -} - -func (x *ReactionData) GetType() EmojiType { - if x != nil { - return x.Type - } - return EmojiType_REACTION_TYPE_UNSPECIFIED -} - -type ReactionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *ReactionData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - ParticipantIDs []string `protobuf:"bytes,2,rep,name=participantIDs,proto3" json:"participantIDs,omitempty"` -} - -func (x *ReactionResponse) Reset() { - *x = ReactionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_reactions_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReactionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReactionResponse) ProtoMessage() {} - -func (x *ReactionResponse) ProtoReflect() protoreflect.Message { - mi := &file_reactions_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 ReactionResponse.ProtoReflect.Descriptor instead. -func (*ReactionResponse) Descriptor() ([]byte, []int) { - return file_reactions_proto_rawDescGZIP(), []int{3} -} - -func (x *ReactionResponse) GetData() *ReactionData { - if x != nil { - return x.Data - } - return nil -} - -func (x *ReactionResponse) GetParticipantIDs() []string { - if x != nil { - return x.ParticipantIDs - } - return nil -} - -type EmojiMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EmojiMetaData []*EmojiMetaData `protobuf:"bytes,1,rep,name=emojiMetaData,proto3" json:"emojiMetaData,omitempty"` -} - -func (x *EmojiMeta) Reset() { - *x = EmojiMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_reactions_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EmojiMeta) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EmojiMeta) ProtoMessage() {} - -func (x *EmojiMeta) ProtoReflect() protoreflect.Message { - mi := &file_reactions_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 EmojiMeta.ProtoReflect.Descriptor instead. -func (*EmojiMeta) Descriptor() ([]byte, []int) { - return file_reactions_proto_rawDescGZIP(), []int{4} -} - -func (x *EmojiMeta) GetEmojiMetaData() []*EmojiMetaData { - if x != nil { - return x.EmojiMetaData - } - return nil -} - -type EmojiMetaData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Unicode string `protobuf:"bytes,1,opt,name=unicode,proto3" json:"unicode,omitempty"` - Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` -} - -func (x *EmojiMetaData) Reset() { - *x = EmojiMetaData{} - if protoimpl.UnsafeEnabled { - mi := &file_reactions_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EmojiMetaData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EmojiMetaData) ProtoMessage() {} - -func (x *EmojiMetaData) ProtoReflect() protoreflect.Message { - mi := &file_reactions_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 EmojiMetaData.ProtoReflect.Descriptor instead. -func (*EmojiMetaData) Descriptor() ([]byte, []int) { - return file_reactions_proto_rawDescGZIP(), []int{5} -} - -func (x *EmojiMetaData) GetUnicode() string { - if x != nil { - return x.Unicode - } - return "" -} - -func (x *EmojiMetaData) GetNames() []string { - if x != nil { - return x.Names - } - return nil -} - -var File_reactions_proto protoreflect.FileDescriptor - -//go:embed reactions.pb.raw -var file_reactions_proto_rawDesc []byte - -var ( - file_reactions_proto_rawDescOnce sync.Once - file_reactions_proto_rawDescData = file_reactions_proto_rawDesc -) - -func file_reactions_proto_rawDescGZIP() []byte { - file_reactions_proto_rawDescOnce.Do(func() { - file_reactions_proto_rawDescData = protoimpl.X.CompressGZIP(file_reactions_proto_rawDescData) - }) - return file_reactions_proto_rawDescData -} - -var file_reactions_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_reactions_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_reactions_proto_goTypes = []interface{}{ - (Reaction)(0), // 0: reactions.Reaction - (EmojiType)(0), // 1: reactions.EmojiType - (*SendReactionPayload)(nil), // 2: reactions.SendReactionPayload - (*SendReactionResponse)(nil), // 3: reactions.SendReactionResponse - (*ReactionData)(nil), // 4: reactions.ReactionData - (*ReactionResponse)(nil), // 5: reactions.ReactionResponse - (*EmojiMeta)(nil), // 6: reactions.EmojiMeta - (*EmojiMetaData)(nil), // 7: reactions.EmojiMetaData -} -var file_reactions_proto_depIdxs = []int32{ - 4, // 0: reactions.SendReactionPayload.reactionData:type_name -> 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 8e77980..0000000 Binary files a/libgm/gmproto/reactions.pb.raw and /dev/null differ diff --git a/libgm/gmproto/reactions.proto b/libgm/gmproto/reactions.proto deleted file mode 100644 index ea6c428..0000000 --- a/libgm/gmproto/reactions.proto +++ /dev/null @@ -1,56 +0,0 @@ -syntax = "proto3"; -package reactions; - -option go_package = "../gmproto"; - -enum Reaction { - UNSPECIFIED = 0; - ADD = 1; - REMOVE = 2; - SWITCH = 3; -} - -message SendReactionPayload { - string messageID = 1; - ReactionData reactionData = 2; - Reaction action = 3; -} - -message SendReactionResponse { - bool success = 1; -} - -message ReactionData { - string unicode = 1; - EmojiType type = 2; -} - -message ReactionResponse { - ReactionData data = 1; - repeated string participantIDs = 2; -} - -message EmojiMeta { - repeated EmojiMetaData emojiMetaData = 1; -} - -message EmojiMetaData { - string unicode = 1; - repeated string names = 2; -} - -enum EmojiType { - REACTION_TYPE_UNSPECIFIED = 0; - LIKE = 1; - LOVE = 2; - LAUGH = 3; - SURPRISED = 4; - SAD = 5; - ANGRY = 6; - DISLIKE = 7; - CUSTOM = 8; - QUESTIONING = 9; - CRYING_FACE = 10; - POUTING_FACE = 11; - RED_HEART = 12; -} diff --git a/libgm/gmproto/responses.pb.go b/libgm/gmproto/responses.pb.go deleted file mode 100644 index 79931fa..0000000 --- a/libgm/gmproto/responses.pb.go +++ /dev/null @@ -1,1679 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.12 -// source: responses.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 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_responses_proto_enumTypes[0].Descriptor() -} - -func (GetOrCreateConversationResponse_Status) Type() protoreflect.EnumType { - return &file_responses_proto_enumTypes[0] -} - -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_responses_proto_rawDescGZIP(), []int{9, 0} -} - -type ParticipantThumbnail struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Thumbnail []*Thumbnail `protobuf:"bytes,1,rep,name=thumbnail,proto3" json:"thumbnail,omitempty"` -} - -func (x *ParticipantThumbnail) Reset() { - *x = ParticipantThumbnail{} - if protoimpl.UnsafeEnabled { - mi := &file_responses_proto_msgTypes[0] - 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_responses_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 ParticipantThumbnail.ProtoReflect.Descriptor instead. -func (*ParticipantThumbnail) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{0} -} - -func (x *ParticipantThumbnail) GetThumbnail() []*Thumbnail { - if x != nil { - return x.Thumbnail - } - return nil -} - -type Thumbnail 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 *Thumbnail) Reset() { - *x = Thumbnail{} - if protoimpl.UnsafeEnabled { - mi := &file_responses_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Thumbnail) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Thumbnail) ProtoMessage() {} - -func (x *Thumbnail) ProtoReflect() protoreflect.Message { - mi := &file_responses_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 Thumbnail.ProtoReflect.Descriptor instead. -func (*Thumbnail) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{1} -} - -func (x *Thumbnail) GetParticipantId() string { - if x != nil { - return x.ParticipantId - } - return "" -} - -func (x *Thumbnail) GetData() *ThumbnailData { - if x != nil { - return x.Data - } - 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"` - Pixels *Pixels `protobuf:"bytes,5,opt,name=pixels,proto3" json:"pixels,omitempty"` -} - -func (x *ThumbnailData) Reset() { - *x = ThumbnailData{} - if protoimpl.UnsafeEnabled { - mi := &file_responses_proto_msgTypes[2] - 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_responses_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 ThumbnailData.ProtoReflect.Descriptor instead. -func (*ThumbnailData) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{2} -} - -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) GetPixels() *Pixels { - if x != nil { - return x.Pixels - } - return nil -} - -type RegisterRefreshResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TokenData *RefreshAuthData `protobuf:"bytes,2,opt,name=tokenData,proto3" json:"tokenData,omitempty"` -} - -func (x *RegisterRefreshResponse) Reset() { - *x = RegisterRefreshResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_responses_proto_msgTypes[3] - 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_responses_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 RegisterRefreshResponse.ProtoReflect.Descriptor instead. -func (*RegisterRefreshResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{3} -} - -func (x *RegisterRefreshResponse) GetTokenData() *RefreshAuthData { - if x != nil { - return x.TokenData - } - 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_responses_proto_msgTypes[4] - 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_responses_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 RevokeRelayPairingResponse.ProtoReflect.Descriptor instead. -func (*RevokeRelayPairingResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{4} -} - -type RefreshAuthData 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 *RefreshAuthData) Reset() { - *x = RefreshAuthData{} - if protoimpl.UnsafeEnabled { - mi := &file_responses_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RefreshAuthData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RefreshAuthData) ProtoMessage() {} - -func (x *RefreshAuthData) ProtoReflect() protoreflect.Message { - mi := &file_responses_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 RefreshAuthData.ProtoReflect.Descriptor instead. -func (*RefreshAuthData) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{5} -} - -func (x *RefreshAuthData) GetTachyonAuthToken() []byte { - if x != nil { - return x.TachyonAuthToken - } - return nil -} - -func (x *RefreshAuthData) GetValidFor() string { - if x != nil { - return x.ValidFor - } - return "" -} - -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_responses_proto_msgTypes[6] - 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_responses_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 FetchMessagesResponse.ProtoReflect.Descriptor instead. -func (*FetchMessagesResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{6} -} - -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 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_responses_proto_msgTypes[7] - 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_responses_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 ListContactsResponse.ProtoReflect.Descriptor instead. -func (*ListContactsResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{7} -} - -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_responses_proto_msgTypes[8] - 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_responses_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 ListTopContactsResponse.ProtoReflect.Descriptor instead. -func (*ListTopContactsResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{8} -} - -func (x *ListTopContactsResponse) GetContacts() []*Contact { - if x != nil { - return x.Contacts - } - return nil -} - -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=responses.GetOrCreateConversationResponse_Status" json:"status,omitempty"` -} - -func (x *GetOrCreateConversationResponse) Reset() { - *x = GetOrCreateConversationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_responses_proto_msgTypes[9] - 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_responses_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 GetOrCreateConversationResponse.ProtoReflect.Descriptor instead. -func (*GetOrCreateConversationResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{9} -} - -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 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_responses_proto_msgTypes[10] - 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_responses_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 DeleteMessageResponse.ProtoReflect.Descriptor instead. -func (*DeleteMessageResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{10} -} - -func (x *DeleteMessageResponse) GetSuccess() bool { - if x != nil { - return x.Success - } - return false -} - -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_responses_proto_msgTypes[11] - 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_responses_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 UpdateConversationResponse.ProtoReflect.Descriptor instead. -func (*UpdateConversationResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{11} -} - -func (x *UpdateConversationResponse) GetSuccess() bool { - if x != nil { - return x.Success - } - return false -} - -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_responses_proto_msgTypes[12] - 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_responses_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 GetConversationTypeResponse.ProtoReflect.Descriptor instead. -func (*GetConversationTypeResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{12} -} - -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 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_responses_proto_msgTypes[13] - 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_responses_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 GetConversationResponse.ProtoReflect.Descriptor instead. -func (*GetConversationResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{13} -} - -func (x *GetConversationResponse) GetConversation() *Conversation { - if x != nil { - return x.Conversation - } - return nil -} - -type NotifyDittoActivityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *NotifyDittoActivityResponse) Reset() { - *x = NotifyDittoActivityResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_responses_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NotifyDittoActivityResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NotifyDittoActivityResponse) ProtoMessage() {} - -func (x *NotifyDittoActivityResponse) ProtoReflect() protoreflect.Message { - mi := &file_responses_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 NotifyDittoActivityResponse.ProtoReflect.Descriptor instead. -func (*NotifyDittoActivityResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{14} -} - -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_responses_proto_msgTypes[15] - 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_responses_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 IsBugleDefaultResponse.ProtoReflect.Descriptor instead. -func (*IsBugleDefaultResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{15} -} - -func (x *IsBugleDefaultResponse) GetSuccess() bool { - if x != nil { - return x.Success - } - return false -} - -type GetUpdatesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *UserAlertEvent `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetUpdatesResponse) Reset() { - *x = GetUpdatesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_responses_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUpdatesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUpdatesResponse) ProtoMessage() {} - -func (x *GetUpdatesResponse) ProtoReflect() protoreflect.Message { - mi := &file_responses_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 GetUpdatesResponse.ProtoReflect.Descriptor instead. -func (*GetUpdatesResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{16} -} - -func (x *GetUpdatesResponse) GetData() *UserAlertEvent { - if x != nil { - return x.Data - } - 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_responses_proto_msgTypes[17] - 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_responses_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 SendMessageResponse.ProtoReflect.Descriptor instead. -func (*SendMessageResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{17} -} - -func (x *SendMessageResponse) GetType() int64 { - if x != nil { - return x.Type - } - 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_responses_proto_msgTypes[18] - 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_responses_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 RefreshPhoneRelayResponse.ProtoReflect.Descriptor instead. -func (*RefreshPhoneRelayResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{18} -} - -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_responses_proto_msgTypes[19] - 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_responses_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 WebEncryptionKeyResponse.ProtoReflect.Descriptor instead. -func (*WebEncryptionKeyResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{19} -} - -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 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 *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_responses_proto_msgTypes[20] - 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_responses_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 RegisterPhoneRelayResponse.ProtoReflect.Descriptor instead. -func (*RegisterPhoneRelayResponse) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{20} -} - -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() *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_responses_proto_msgTypes[21] - 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_responses_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 CoordinateMessage.ProtoReflect.Descriptor instead. -func (*CoordinateMessage) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{21} -} - -func (x *CoordinateMessage) GetCoord1() int64 { - if x != nil { - return x.Coord1 - } - return 0 -} - -type 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 *AuthKeyData) Reset() { - *x = AuthKeyData{} - if protoimpl.UnsafeEnabled { - mi := &file_responses_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthKeyData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthKeyData) ProtoMessage() {} - -func (x *AuthKeyData) ProtoReflect() protoreflect.Message { - mi := &file_responses_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 AuthKeyData.ProtoReflect.Descriptor instead. -func (*AuthKeyData) Descriptor() ([]byte, []int) { - return file_responses_proto_rawDescGZIP(), []int{22} -} - -func (x *AuthKeyData) GetTachyonAuthToken() []byte { - if x != nil { - return x.TachyonAuthToken - } - return nil -} - -func (x *AuthKeyData) GetValidFor() int64 { - if x != nil { - return x.ValidFor - } - return 0 -} - -var File_responses_proto protoreflect.FileDescriptor - -//go:embed responses.pb.raw -var file_responses_proto_rawDesc []byte - -var ( - file_responses_proto_rawDescOnce sync.Once - file_responses_proto_rawDescData = file_responses_proto_rawDesc -) - -func file_responses_proto_rawDescGZIP() []byte { - file_responses_proto_rawDescOnce.Do(func() { - file_responses_proto_rawDescData = protoimpl.X.CompressGZIP(file_responses_proto_rawDescData) - }) - return file_responses_proto_rawDescData -} - -var file_responses_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_responses_proto_msgTypes = make([]protoimpl.MessageInfo, 23) -var file_responses_proto_goTypes = []interface{}{ - (GetOrCreateConversationResponse_Status)(0), // 0: responses.GetOrCreateConversationResponse.Status - (*ParticipantThumbnail)(nil), // 1: responses.ParticipantThumbnail - (*Thumbnail)(nil), // 2: responses.Thumbnail - (*ThumbnailData)(nil), // 3: responses.ThumbnailData - (*RegisterRefreshResponse)(nil), // 4: responses.RegisterRefreshResponse - (*RevokeRelayPairingResponse)(nil), // 5: responses.RevokeRelayPairingResponse - (*RefreshAuthData)(nil), // 6: responses.RefreshAuthData - (*FetchMessagesResponse)(nil), // 7: responses.FetchMessagesResponse - (*ListContactsResponse)(nil), // 8: responses.ListContactsResponse - (*ListTopContactsResponse)(nil), // 9: responses.ListTopContactsResponse - (*GetOrCreateConversationResponse)(nil), // 10: responses.GetOrCreateConversationResponse - (*DeleteMessageResponse)(nil), // 11: responses.DeleteMessageResponse - (*UpdateConversationResponse)(nil), // 12: responses.UpdateConversationResponse - (*GetConversationTypeResponse)(nil), // 13: responses.GetConversationTypeResponse - (*GetConversationResponse)(nil), // 14: responses.GetConversationResponse - (*NotifyDittoActivityResponse)(nil), // 15: responses.NotifyDittoActivityResponse - (*IsBugleDefaultResponse)(nil), // 16: responses.IsBugleDefaultResponse - (*GetUpdatesResponse)(nil), // 17: responses.GetUpdatesResponse - (*SendMessageResponse)(nil), // 18: responses.SendMessageResponse - (*RefreshPhoneRelayResponse)(nil), // 19: responses.RefreshPhoneRelayResponse - (*WebEncryptionKeyResponse)(nil), // 20: responses.WebEncryptionKeyResponse - (*RegisterPhoneRelayResponse)(nil), // 21: responses.RegisterPhoneRelayResponse - (*CoordinateMessage)(nil), // 22: responses.CoordinateMessage - (*AuthKeyData)(nil), // 23: responses.AuthKeyData - (*Pixels)(nil), // 24: conversations.Pixels - (*Message)(nil), // 25: conversations.Message - (*Cursor)(nil), // 26: conversations.Cursor - (*Contact)(nil), // 27: conversations.Contact - (*Conversation)(nil), // 28: conversations.Conversation - (*UserAlertEvent)(nil), // 29: events.UserAlertEvent - (*Device)(nil), // 30: messages.Device -} -var file_responses_proto_depIdxs = []int32{ - 2, // 0: responses.ParticipantThumbnail.thumbnail:type_name -> 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 34b80ba..0000000 Binary files a/libgm/gmproto/responses.pb.raw and /dev/null differ 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 0000000..5c63448 Binary files /dev/null and b/libgm/gmproto/rpc.pb.raw differ 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{