diff options
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow')
30 files changed, 12488 insertions, 10615 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/README.md b/vendor/go.mau.fi/whatsmeow/README.md index 2ddf7d44..bcd65fa2 100644 --- a/vendor/go.mau.fi/whatsmeow/README.md +++ b/vendor/go.mau.fi/whatsmeow/README.md @@ -1,21 +1,13 @@ # whatsmeow -[![godocs.io](https://godocs.io/go.mau.fi/whatsmeow?status.svg)](https://godocs.io/go.mau.fi/whatsmeow) +[![Go Reference](https://pkg.go.dev/badge/go.mau.fi/whatsmeow.svg)](https://pkg.go.dev/go.mau.fi/whatsmeow) whatsmeow is a Go library for the WhatsApp web multidevice API. -This was initially forked from [go-whatsapp] (MIT license), but large parts of -the code have been rewritten for multidevice support. Parts of the code are -ported from [WhatsappWeb4j] and [Baileys] (also MIT license). - -[go-whatsapp]: https://github.com/Rhymen/go-whatsapp -[WhatsappWeb4j]: https://github.com/Auties00/WhatsappWeb4j -[Baileys]: https://github.com/adiwajshing/Baileys - ## Discussion Matrix room: [#whatsmeow:maunium.net](https://matrix.to/#/#whatsmeow:maunium.net) ## Usage -The [godoc](https://godocs.io/go.mau.fi/whatsmeow) includes docs for all methods and event types. +The [godoc](https://pkg.go.dev/go.mau.fi/whatsmeow) includes docs for all methods and event types. There's also a [simple example](https://godocs.io/go.mau.fi/whatsmeow#example-package) at the top. Also see [mdtest](./mdtest) for a CLI tool you can easily try out whatsmeow with. diff --git a/vendor/go.mau.fi/whatsmeow/appstate.go b/vendor/go.mau.fi/whatsmeow/appstate.go index 9a4c6c00..b9b99f26 100644 --- a/vendor/go.mau.fi/whatsmeow/appstate.go +++ b/vendor/go.mau.fi/whatsmeow/appstate.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Tulir Asokan +// Copyright (c) 2022 Tulir Asokan // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -13,6 +13,7 @@ import ( "go.mau.fi/whatsmeow/appstate" waBinary "go.mau.fi/whatsmeow/binary" waProto "go.mau.fi/whatsmeow/binary/proto" + "go.mau.fi/whatsmeow/store" "go.mau.fi/whatsmeow/types" "go.mau.fi/whatsmeow/types/events" ) @@ -54,7 +55,18 @@ func (cli *Client) FetchAppState(name appstate.WAPatchName, fullSync, onlyIfNotS if err != nil { return fmt.Errorf("failed to decode app state %s patches: %w", name, err) } + wasFullSync := state.Version == 0 && patches.Snapshot != nil state = newState + if name == appstate.WAPatchCriticalUnblockLow && wasFullSync && !cli.EmitAppStateEventsOnFullSync { + var contacts []store.ContactEntry + mutations, contacts = cli.filterContacts(mutations) + cli.Log.Debugf("Mass inserting app state snapshot with %d contacts into the store", len(contacts)) + err = cli.Store.Contacts.PutAllContactNames(contacts) + if err != nil { + // This is a fairly serious failure, so just abort the whole thing + return fmt.Errorf("failed to update contact store with data from snapshot: %v", err) + } + } for _, mutation := range mutations { cli.dispatchAppState(mutation, !fullSync || cli.EmitAppStateEventsOnFullSync) } @@ -68,6 +80,25 @@ func (cli *Client) FetchAppState(name appstate.WAPatchName, fullSync, onlyIfNotS return nil } +func (cli *Client) filterContacts(mutations []appstate.Mutation) ([]appstate.Mutation, []store.ContactEntry) { + filteredMutations := mutations[:0] + contacts := make([]store.ContactEntry, 0, len(mutations)) + for _, mutation := range mutations { + if mutation.Index[0] == "contact" && len(mutation.Index) > 1 { + jid, _ := types.ParseJID(mutation.Index[1]) + act := mutation.Action.GetContactAction() + contacts = append(contacts, store.ContactEntry{ + JID: jid, + FirstName: act.GetFirstName(), + FullName: act.GetFullName(), + }) + } else { + filteredMutations = append(filteredMutations, mutation) + } + } + return filteredMutations, contacts +} + func (cli *Client) dispatchAppState(mutation appstate.Mutation, dispatchEvts bool) { if mutation.Operation != waProto.SyncdMutation_SET { return @@ -144,6 +175,12 @@ func (cli *Client) dispatchAppState(mutation appstate.Mutation, dispatchEvts boo evt.SenderJID, _ = types.ParseJID(mutation.Index[4]) } eventToDispatch = &evt + case "markChatAsRead": + eventToDispatch = &events.MarkChatAsRead{ + JID: jid, + Timestamp: ts, + Action: mutation.Action.GetMarkChatAsReadAction(), + } case "setting_pushName": eventToDispatch = &events.PushNameSetting{Timestamp: ts, Action: mutation.Action.GetPushNameSetting()} cli.Store.PushName = mutation.Action.GetPushNameSetting().GetName() diff --git a/vendor/go.mau.fi/whatsmeow/binary/proto/def.pb.go b/vendor/go.mau.fi/whatsmeow/binary/proto/def.pb.go index a60ad611..d476f7d0 100644 --- a/vendor/go.mau.fi/whatsmeow/binary/proto/def.pb.go +++ b/vendor/go.mau.fi/whatsmeow/binary/proto/def.pb.go @@ -81,3003 +81,2662 @@ func (MediaVisibility) EnumDescriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{0} } -type UserAgent_UserAgentPlatform int32 +type CompanionProps_CompanionPropsPlatformType int32 const ( - UserAgent_ANDROID UserAgent_UserAgentPlatform = 0 - UserAgent_IOS UserAgent_UserAgentPlatform = 1 - UserAgent_WINDOWS_PHONE UserAgent_UserAgentPlatform = 2 - UserAgent_BLACKBERRY UserAgent_UserAgentPlatform = 3 - UserAgent_BLACKBERRYX UserAgent_UserAgentPlatform = 4 - UserAgent_S40 UserAgent_UserAgentPlatform = 5 - UserAgent_S60 UserAgent_UserAgentPlatform = 6 - UserAgent_PYTHON_CLIENT UserAgent_UserAgentPlatform = 7 - UserAgent_TIZEN UserAgent_UserAgentPlatform = 8 - UserAgent_ENTERPRISE UserAgent_UserAgentPlatform = 9 - UserAgent_SMB_ANDROID UserAgent_UserAgentPlatform = 10 - UserAgent_KAIOS UserAgent_UserAgentPlatform = 11 - UserAgent_SMB_IOS UserAgent_UserAgentPlatform = 12 - UserAgent_WINDOWS UserAgent_UserAgentPlatform = 13 - UserAgent_WEB UserAgent_UserAgentPlatform = 14 - UserAgent_PORTAL UserAgent_UserAgentPlatform = 15 - UserAgent_GREEN_ANDROID UserAgent_UserAgentPlatform = 16 - UserAgent_GREEN_IPHONE UserAgent_UserAgentPlatform = 17 - UserAgent_BLUE_ANDROID UserAgent_UserAgentPlatform = 18 - UserAgent_BLUE_IPHONE UserAgent_UserAgentPlatform = 19 - UserAgent_FBLITE_ANDROID UserAgent_UserAgentPlatform = 20 - UserAgent_MLITE_ANDROID UserAgent_UserAgentPlatform = 21 - UserAgent_IGLITE_ANDROID UserAgent_UserAgentPlatform = 22 - UserAgent_PAGE UserAgent_UserAgentPlatform = 23 - UserAgent_MACOS UserAgent_UserAgentPlatform = 24 - UserAgent_OCULUS_MSG UserAgent_UserAgentPlatform = 25 - UserAgent_OCULUS_CALL UserAgent_UserAgentPlatform = 26 - UserAgent_MILAN UserAgent_UserAgentPlatform = 27 - UserAgent_CAPI UserAgent_UserAgentPlatform = 28 + CompanionProps_UNKNOWN CompanionProps_CompanionPropsPlatformType = 0 + CompanionProps_CHROME CompanionProps_CompanionPropsPlatformType = 1 + CompanionProps_FIREFOX CompanionProps_CompanionPropsPlatformType = 2 + CompanionProps_IE CompanionProps_CompanionPropsPlatformType = 3 + CompanionProps_OPERA CompanionProps_CompanionPropsPlatformType = 4 + CompanionProps_SAFARI CompanionProps_CompanionPropsPlatformType = 5 + CompanionProps_EDGE CompanionProps_CompanionPropsPlatformType = 6 + CompanionProps_DESKTOP CompanionProps_CompanionPropsPlatformType = 7 + CompanionProps_IPAD CompanionProps_CompanionPropsPlatformType = 8 + CompanionProps_ANDROID_TABLET CompanionProps_CompanionPropsPlatformType = 9 + CompanionProps_OHANA CompanionProps_CompanionPropsPlatformType = 10 + CompanionProps_ALOHA CompanionProps_CompanionPropsPlatformType = 11 + CompanionProps_CATALINA CompanionProps_CompanionPropsPlatformType = 12 ) -// Enum value maps for UserAgent_UserAgentPlatform. +// Enum value maps for CompanionProps_CompanionPropsPlatformType. var ( - UserAgent_UserAgentPlatform_name = map[int32]string{ - 0: "ANDROID", - 1: "IOS", - 2: "WINDOWS_PHONE", - 3: "BLACKBERRY", - 4: "BLACKBERRYX", - 5: "S40", - 6: "S60", - 7: "PYTHON_CLIENT", - 8: "TIZEN", - 9: "ENTERPRISE", - 10: "SMB_ANDROID", - 11: "KAIOS", - 12: "SMB_IOS", - 13: "WINDOWS", - 14: "WEB", - 15: "PORTAL", - 16: "GREEN_ANDROID", - 17: "GREEN_IPHONE", - 18: "BLUE_ANDROID", - 19: "BLUE_IPHONE", - 20: "FBLITE_ANDROID", - 21: "MLITE_ANDROID", - 22: "IGLITE_ANDROID", - 23: "PAGE", - 24: "MACOS", - 25: "OCULUS_MSG", - 26: "OCULUS_CALL", - 27: "MILAN", - 28: "CAPI", + CompanionProps_CompanionPropsPlatformType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CHROME", + 2: "FIREFOX", + 3: "IE", + 4: "OPERA", + 5: "SAFARI", + 6: "EDGE", + 7: "DESKTOP", + 8: "IPAD", + 9: "ANDROID_TABLET", + 10: "OHANA", + 11: "ALOHA", + 12: "CATALINA", } - UserAgent_UserAgentPlatform_value = map[string]int32{ - "ANDROID": 0, - "IOS": 1, - "WINDOWS_PHONE": 2, - "BLACKBERRY": 3, - "BLACKBERRYX": 4, - "S40": 5, - "S60": 6, - "PYTHON_CLIENT": 7, - "TIZEN": 8, - "ENTERPRISE": 9, - "SMB_ANDROID": 10, - "KAIOS": 11, - "SMB_IOS": 12, - "WINDOWS": 13, - "WEB": 14, - "PORTAL": 15, - "GREEN_ANDROID": 16, - "GREEN_IPHONE": 17, - "BLUE_ANDROID": 18, - "BLUE_IPHONE": 19, - "FBLITE_ANDROID": 20, - "MLITE_ANDROID": 21, - "IGLITE_ANDROID": 22, - "PAGE": 23, - "MACOS": 24, - "OCULUS_MSG": 25, - "OCULUS_CALL": 26, - "MILAN": 27, - "CAPI": 28, + CompanionProps_CompanionPropsPlatformType_value = map[string]int32{ + "UNKNOWN": 0, + "CHROME": 1, + "FIREFOX": 2, + "IE": 3, + "OPERA": 4, + "SAFARI": 5, + "EDGE": 6, + "DESKTOP": 7, + "IPAD": 8, + "ANDROID_TABLET": 9, + "OHANA": 10, + "ALOHA": 11, + "CATALINA": 12, } ) -func (x UserAgent_UserAgentPlatform) Enum() *UserAgent_UserAgentPlatform { - p := new(UserAgent_UserAgentPlatform) +func (x CompanionProps_CompanionPropsPlatformType) Enum() *CompanionProps_CompanionPropsPlatformType { + p := new(CompanionProps_CompanionPropsPlatformType) *p = x return p } -func (x UserAgent_UserAgentPlatform) String() string { +func (x CompanionProps_CompanionPropsPlatformType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (UserAgent_UserAgentPlatform) Descriptor() protoreflect.EnumDescriptor { +func (CompanionProps_CompanionPropsPlatformType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[1].Descriptor() } -func (UserAgent_UserAgentPlatform) Type() protoreflect.EnumType { +func (CompanionProps_CompanionPropsPlatformType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[1] } -func (x UserAgent_UserAgentPlatform) Number() protoreflect.EnumNumber { +func (x CompanionProps_CompanionPropsPlatformType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *UserAgent_UserAgentPlatform) UnmarshalJSON(b []byte) error { +func (x *CompanionProps_CompanionPropsPlatformType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = UserAgent_UserAgentPlatform(num) + *x = CompanionProps_CompanionPropsPlatformType(num) return nil } -// Deprecated: Use UserAgent_UserAgentPlatform.Descriptor instead. -func (UserAgent_UserAgentPlatform) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{1, 0} +// Deprecated: Use CompanionProps_CompanionPropsPlatformType.Descriptor instead. +func (CompanionProps_CompanionPropsPlatformType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{5, 0} } -type UserAgent_UserAgentReleaseChannel int32 +type ProtocolMessage_ProtocolMessageType int32 const ( - UserAgent_RELEASE UserAgent_UserAgentReleaseChannel = 0 - UserAgent_BETA UserAgent_UserAgentReleaseChannel = 1 - UserAgent_ALPHA UserAgent_UserAgentReleaseChannel = 2 - UserAgent_DEBUG UserAgent_UserAgentReleaseChannel = 3 + ProtocolMessage_REVOKE ProtocolMessage_ProtocolMessageType = 0 + ProtocolMessage_EPHEMERAL_SETTING ProtocolMessage_ProtocolMessageType = 3 + ProtocolMessage_EPHEMERAL_SYNC_RESPONSE ProtocolMessage_ProtocolMessageType = 4 + ProtocolMessage_HISTORY_SYNC_NOTIFICATION ProtocolMessage_ProtocolMessageType = 5 + ProtocolMessage_APP_STATE_SYNC_KEY_SHARE ProtocolMessage_ProtocolMessageType = 6 + ProtocolMessage_APP_STATE_SYNC_KEY_REQUEST ProtocolMessage_ProtocolMessageType = 7 + ProtocolMessage_MSG_FANOUT_BACKFILL_REQUEST ProtocolMessage_ProtocolMessageType = 8 + ProtocolMessage_INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC ProtocolMessage_ProtocolMessageType = 9 + ProtocolMessage_APP_STATE_FATAL_EXCEPTION_NOTIFICATION ProtocolMessage_ProtocolMessageType = 10 ) -// Enum value maps for UserAgent_UserAgentReleaseChannel. +// Enum value maps for ProtocolMessage_ProtocolMessageType. var ( - UserAgent_UserAgentReleaseChannel_name = map[int32]string{ - 0: "RELEASE", - 1: "BETA", - 2: "ALPHA", - 3: "DEBUG", + ProtocolMessage_ProtocolMessageType_name = map[int32]string{ + 0: "REVOKE", + 3: "EPHEMERAL_SETTING", + 4: "EPHEMERAL_SYNC_RESPONSE", + 5: "HISTORY_SYNC_NOTIFICATION", + 6: "APP_STATE_SYNC_KEY_SHARE", + 7: "APP_STATE_SYNC_KEY_REQUEST", + 8: "MSG_FANOUT_BACKFILL_REQUEST", + 9: "INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC", + 10: "APP_STATE_FATAL_EXCEPTION_NOTIFICATION", } - UserAgent_UserAgentReleaseChannel_value = map[string]int32{ - "RELEASE": 0, - "BETA": 1, - "ALPHA": 2, - "DEBUG": 3, + ProtocolMessage_ProtocolMessageType_value = map[string]int32{ + "REVOKE": 0, + "EPHEMERAL_SETTING": 3, + "EPHEMERAL_SYNC_RESPONSE": 4, + "HISTORY_SYNC_NOTIFICATION": 5, + "APP_STATE_SYNC_KEY_SHARE": 6, + "APP_STATE_SYNC_KEY_REQUEST": 7, + "MSG_FANOUT_BACKFILL_REQUEST": 8, + "INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC": 9, + "APP_STATE_FATAL_EXCEPTION_NOTIFICATION": 10, } ) -func (x UserAgent_UserAgentReleaseChannel) Enum() *UserAgent_UserAgentReleaseChannel { - p := new(UserAgent_UserAgentReleaseChannel) +func (x ProtocolMessage_ProtocolMessageType) Enum() *ProtocolMessage_ProtocolMessageType { + p := new(ProtocolMessage_ProtocolMessageType) *p = x return p } -func (x UserAgent_UserAgentReleaseChannel) String() string { +func (x ProtocolMessage_ProtocolMessageType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (UserAgent_UserAgentReleaseChannel) Descriptor() protoreflect.EnumDescriptor { +func (ProtocolMessage_ProtocolMessageType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[2].Descriptor() } -func (UserAgent_UserAgentReleaseChannel) Type() protoreflect.EnumType { +func (ProtocolMessage_ProtocolMessageType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[2] } -func (x UserAgent_UserAgentReleaseChannel) Number() protoreflect.EnumNumber { +func (x ProtocolMessage_ProtocolMessageType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *UserAgent_UserAgentReleaseChannel) UnmarshalJSON(b []byte) error { +func (x *ProtocolMessage_ProtocolMessageType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = UserAgent_UserAgentReleaseChannel(num) + *x = ProtocolMessage_ProtocolMessageType(num) return nil } -// Deprecated: Use UserAgent_UserAgentReleaseChannel.Descriptor instead. -func (UserAgent_UserAgentReleaseChannel) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{1, 1} +// Deprecated: Use ProtocolMessage_ProtocolMessageType.Descriptor instead. +func (ProtocolMessage_ProtocolMessageType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{12, 0} } -type WebInfo_WebInfoWebSubPlatform int32 +type PaymentInviteMessage_PaymentInviteMessageServiceType int32 const ( - WebInfo_WEB_BROWSER WebInfo_WebInfoWebSubPlatform = 0 - WebInfo_APP_STORE WebInfo_WebInfoWebSubPlatform = 1 - WebInfo_WIN_STORE WebInfo_WebInfoWebSubPlatform = 2 - WebInfo_DARWIN WebInfo_WebInfoWebSubPlatform = 3 - WebInfo_WIN32 WebInfo_WebInfoWebSubPlatform = 4 + PaymentInviteMessage_UNKNOWN PaymentInviteMessage_PaymentInviteMessageServiceType = 0 + PaymentInviteMessage_FBPAY PaymentInviteMessage_PaymentInviteMessageServiceType = 1 + PaymentInviteMessage_NOVI PaymentInviteMessage_PaymentInviteMessageServiceType = 2 + PaymentInviteMessage_UPI PaymentInviteMessage_PaymentInviteMessageServiceType = 3 ) -// Enum value maps for WebInfo_WebInfoWebSubPlatform. +// Enum value maps for PaymentInviteMessage_PaymentInviteMessageServiceType. var ( - WebInfo_WebInfoWebSubPlatform_name = map[int32]string{ - 0: "WEB_BROWSER", - 1: "APP_STORE", - 2: "WIN_STORE", - 3: "DARWIN", - 4: "WIN32", + PaymentInviteMessage_PaymentInviteMessageServiceType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "FBPAY", + 2: "NOVI", + 3: "UPI", } - WebInfo_WebInfoWebSubPlatform_value = map[string]int32{ - "WEB_BROWSER": 0, - "APP_STORE": 1, - "WIN_STORE": 2, - "DARWIN": 3, - "WIN32": 4, + PaymentInviteMessage_PaymentInviteMessageServiceType_value = map[string]int32{ + "UNKNOWN": 0, + "FBPAY": 1, + "NOVI": 2, + "UPI": 3, } ) -func (x WebInfo_WebInfoWebSubPlatform) Enum() *WebInfo_WebInfoWebSubPlatform { - p := new(WebInfo_WebInfoWebSubPlatform) +func (x PaymentInviteMessage_PaymentInviteMessageServiceType) Enum() *PaymentInviteMessage_PaymentInviteMessageServiceType { + p := new(PaymentInviteMessage_PaymentInviteMessageServiceType) *p = x return p } -func (x WebInfo_WebInfoWebSubPlatform) String() string { +func (x PaymentInviteMessage_PaymentInviteMessageServiceType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (WebInfo_WebInfoWebSubPlatform) Descriptor() protoreflect.EnumDescriptor { +func (PaymentInviteMessage_PaymentInviteMessageServiceType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[3].Descriptor() } -func (WebInfo_WebInfoWebSubPlatform) Type() protoreflect.EnumType { +func (PaymentInviteMessage_PaymentInviteMessageServiceType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[3] } -func (x WebInfo_WebInfoWebSubPlatform) Number() protoreflect.EnumNumber { +func (x PaymentInviteMessage_PaymentInviteMessageServiceType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *WebInfo_WebInfoWebSubPlatform) UnmarshalJSON(b []byte) error { +func (x *PaymentInviteMessage_PaymentInviteMessageServiceType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = WebInfo_WebInfoWebSubPlatform(num) + *x = PaymentInviteMessage_PaymentInviteMessageServiceType(num) return nil } -// Deprecated: Use WebInfo_WebInfoWebSubPlatform.Descriptor instead. -func (WebInfo_WebInfoWebSubPlatform) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{3, 0} +// Deprecated: Use PaymentInviteMessage_PaymentInviteMessageServiceType.Descriptor instead. +func (PaymentInviteMessage_PaymentInviteMessageServiceType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{16, 0} } -type DNSSource_DNSSourceDNSResolutionMethod int32 +type OrderMessage_OrderMessageOrderStatus int32 const ( - DNSSource_SYSTEM DNSSource_DNSSourceDNSResolutionMethod = 0 - DNSSource_GOOGLE DNSSource_DNSSourceDNSResolutionMethod = 1 - DNSSource_HARDCODED DNSSource_DNSSourceDNSResolutionMethod = 2 - DNSSource_OVERRIDE DNSSource_DNSSourceDNSResolutionMethod = 3 - DNSSource_FALLBACK DNSSource_DNSSourceDNSResolutionMethod = 4 + OrderMessage_INQUIRY OrderMessage_OrderMessageOrderStatus = 1 ) -// Enum value maps for DNSSource_DNSSourceDNSResolutionMethod. +// Enum value maps for OrderMessage_OrderMessageOrderStatus. var ( - DNSSource_DNSSourceDNSResolutionMethod_name = map[int32]string{ - 0: "SYSTEM", - 1: "GOOGLE", - 2: "HARDCODED", - 3: "OVERRIDE", - 4: "FALLBACK", + OrderMessage_OrderMessageOrderStatus_name = map[int32]string{ + 1: "INQUIRY", } - DNSSource_DNSSourceDNSResolutionMethod_value = map[string]int32{ - "SYSTEM": 0, - "GOOGLE": 1, - "HARDCODED": 2, - "OVERRIDE": 3, - "FALLBACK": 4, + OrderMessage_OrderMessageOrderStatus_value = map[string]int32{ + "INQUIRY": 1, } ) -func (x DNSSource_DNSSourceDNSResolutionMethod) Enum() *DNSSource_DNSSourceDNSResolutionMethod { - p := new(DNSSource_DNSSourceDNSResolutionMethod) +func (x OrderMessage_OrderMessageOrderStatus) Enum() *OrderMessage_OrderMessageOrderStatus { + p := new(OrderMessage_OrderMessageOrderStatus) *p = x return p } -func (x DNSSource_DNSSourceDNSResolutionMethod) String() string { +func (x OrderMessage_OrderMessageOrderStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (DNSSource_DNSSourceDNSResolutionMethod) Descriptor() protoreflect.EnumDescriptor { +func (OrderMessage_OrderMessageOrderStatus) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[4].Descriptor() } -func (DNSSource_DNSSourceDNSResolutionMethod) Type() protoreflect.EnumType { +func (OrderMessage_OrderMessageOrderStatus) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[4] } -func (x DNSSource_DNSSourceDNSResolutionMethod) Number() protoreflect.EnumNumber { +func (x OrderMessage_OrderMessageOrderStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *DNSSource_DNSSourceDNSResolutionMethod) UnmarshalJSON(b []byte) error { +func (x *OrderMessage_OrderMessageOrderStatus) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = DNSSource_DNSSourceDNSResolutionMethod(num) + *x = OrderMessage_OrderMessageOrderStatus(num) return nil } -// Deprecated: Use DNSSource_DNSSourceDNSResolutionMethod.Descriptor instead. -func (DNSSource_DNSSourceDNSResolutionMethod) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{4, 0} +// Deprecated: Use OrderMessage_OrderMessageOrderStatus.Descriptor instead. +func (OrderMessage_OrderMessageOrderStatus) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{17, 0} } -type ClientPayload_ClientPayloadConnectType int32 +type OrderMessage_OrderMessageOrderSurface int32 const ( - ClientPayload_CELLULAR_UNKNOWN ClientPayload_ClientPayloadConnectType = 0 - ClientPayload_WIFI_UNKNOWN ClientPayload_ClientPayloadConnectType = 1 - ClientPayload_CELLULAR_EDGE ClientPayload_ClientPayloadConnectType = 100 - ClientPayload_CELLULAR_IDEN ClientPayload_ClientPayloadConnectType = 101 - ClientPayload_CELLULAR_UMTS ClientPayload_ClientPayloadConnectType = 102 - ClientPayload_CELLULAR_EVDO ClientPayload_ClientPayloadConnectType = 103 - ClientPayload_CELLULAR_GPRS ClientPayload_ClientPayloadConnectType = 104 - ClientPayload_CELLULAR_HSDPA ClientPayload_ClientPayloadConnectType = 105 - ClientPayload_CELLULAR_HSUPA ClientPayload_ClientPayloadConnectType = 106 - ClientPayload_CELLULAR_HSPA ClientPayload_ClientPayloadConnectType = 107 - ClientPayload_CELLULAR_CDMA ClientPayload_ClientPayloadConnectType = 108 - ClientPayload_CELLULAR_1XRTT ClientPayload_ClientPayloadConnectType = 109 - ClientPayload_CELLULAR_EHRPD ClientPayload_ClientPayloadConnectType = 110 - ClientPayload_CELLULAR_LTE ClientPayload_ClientPayloadConnectType = 111 - ClientPayload_CELLULAR_HSPAP ClientPayload_ClientPayloadConnectType = 112 + OrderMessage_CATALOG OrderMessage_OrderMessageOrderSurface = 1 ) -// Enum value maps for ClientPayload_ClientPayloadConnectType. +// Enum value maps for OrderMessage_OrderMessageOrderSurface. var ( - ClientPayload_ClientPayloadConnectType_name = map[int32]string{ - 0: "CELLULAR_UNKNOWN", - 1: "WIFI_UNKNOWN", - 100: "CELLULAR_EDGE", - 101: "CELLULAR_IDEN", - 102: "CELLULAR_UMTS", - 103: "CELLULAR_EVDO", - 104: "CELLULAR_GPRS", - 105: "CELLULAR_HSDPA", - 106: "CELLULAR_HSUPA", - 107: "CELLULAR_HSPA", - 108: "CELLULAR_CDMA", - 109: "CELLULAR_1XRTT", - 110: "CELLULAR_EHRPD", - 111: "CELLULAR_LTE", - 112: "CELLULAR_HSPAP", + OrderMessage_OrderMessageOrderSurface_name = map[int32]string{ + 1: "CATALOG", } - ClientPayload_ClientPayloadConnectType_value = map[string]int32{ - "CELLULAR_UNKNOWN": 0, - "WIFI_UNKNOWN": 1, - "CELLULAR_EDGE": 100, - "CELLULAR_IDEN": 101, - "CELLULAR_UMTS": 102, - "CELLULAR_EVDO": 103, - "CELLULAR_GPRS": 104, - "CELLULAR_HSDPA": 105, - "CELLULAR_HSUPA": 106, - "CELLULAR_HSPA": 107, - "CELLULAR_CDMA": 108, - "CELLULAR_1XRTT": 109, - "CELLULAR_EHRPD": 110, - "CELLULAR_LTE": 111, - "CELLULAR_HSPAP": 112, + OrderMessage_OrderMessageOrderSurface_value = map[string]int32{ + "CATALOG": 1, } ) -func (x ClientPayload_ClientPayloadConnectType) Enum() *ClientPayload_ClientPayloadConnectType { - p := new(ClientPayload_ClientPayloadConnectType) +func (x OrderMessage_OrderMessageOrderSurface) Enum() *OrderMessage_OrderMessageOrderSurface { + p := new(OrderMessage_OrderMessageOrderSurface) *p = x return p } -func (x ClientPayload_ClientPayloadConnectType) String() string { +func (x OrderMessage_OrderMessageOrderSurface) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ClientPayload_ClientPayloadConnectType) Descriptor() protoreflect.EnumDescriptor { +func (OrderMessage_OrderMessageOrderSurface) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[5].Descriptor() } -func (ClientPayload_ClientPayloadConnectType) Type() protoreflect.EnumType { +func (OrderMessage_OrderMessageOrderSurface) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[5] } -func (x ClientPayload_ClientPayloadConnectType) Number() protoreflect.EnumNumber { +func (x OrderMessage_OrderMessageOrderSurface) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ClientPayload_ClientPayloadConnectType) UnmarshalJSON(b []byte) error { +func (x *OrderMessage_OrderMessageOrderSurface) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ClientPayload_ClientPayloadConnectType(num) + *x = OrderMessage_OrderMessageOrderSurface(num) return nil } -// Deprecated: Use ClientPayload_ClientPayloadConnectType.Descriptor instead. -func (ClientPayload_ClientPayloadConnectType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{6, 0} +// Deprecated: Use OrderMessage_OrderMessageOrderSurface.Descriptor instead. +func (OrderMessage_OrderMessageOrderSurface) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{17, 1} } -type ClientPayload_ClientPayloadConnectReason int32 +type ListResponseMessage_ListResponseMessageListType int32 const ( - ClientPayload_PUSH ClientPayload_ClientPayloadConnectReason = 0 - ClientPayload_USER_ACTIVATED ClientPayload_ClientPayloadConnectReason = 1 - ClientPayload_SCHEDULED ClientPayload_ClientPayloadConnectReason = 2 - ClientPayload_ERROR_RECONNECT ClientPayload_ClientPayloadConnectReason = 3 - ClientPayload_NETWORK_SWITCH ClientPayload_ClientPayloadConnectReason = 4 - ClientPayload_PING_RECONNECT ClientPayload_ClientPayloadConnectReason = 5 + ListResponseMessage_UNKNOWN ListResponseMessage_ListResponseMessageListType = 0 + ListResponseMessage_SINGLE_SELECT ListResponseMessage_ListResponseMessageListType = 1 ) -// Enum value maps for ClientPayload_ClientPayloadConnectReason. +// Enum value maps for ListResponseMessage_ListResponseMessageListType. var ( - ClientPayload_ClientPayloadConnectReason_name = map[int32]string{ - 0: "PUSH", - 1: "USER_ACTIVATED", - 2: "SCHEDULED", - 3: "ERROR_RECONNECT", - 4: "NETWORK_SWITCH", - 5: "PING_RECONNECT", + ListResponseMessage_ListResponseMessageListType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SINGLE_SELECT", } - ClientPayload_ClientPayloadConnectReason_value = map[string]int32{ - "PUSH": 0, - "USER_ACTIVATED": 1, - "SCHEDULED": 2, - "ERROR_RECONNECT": 3, - "NETWORK_SWITCH": 4, - "PING_RECONNECT": 5, + ListResponseMessage_ListResponseMessageListType_value = map[string]int32{ + "UNKNOWN": 0, + "SINGLE_SELECT": 1, } ) -func (x ClientPayload_ClientPayloadConnectReason) Enum() *ClientPayload_ClientPayloadConnectReason { - p := new(ClientPayload_ClientPayloadConnectReason) +func (x ListResponseMessage_ListResponseMessageListType) Enum() *ListResponseMessage_ListResponseMessageListType { + p := new(ListResponseMessage_ListResponseMessageListType) *p = x return p } -func (x ClientPayload_ClientPayloadConnectReason) String() string { +func (x ListResponseMessage_ListResponseMessageListType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ClientPayload_ClientPayloadConnectReason) Descriptor() protoreflect.EnumDescriptor { +func (ListResponseMessage_ListResponseMessageListType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[6].Descriptor() } -func (ClientPayload_ClientPayloadConnectReason) Type() protoreflect.EnumType { +func (ListResponseMessage_ListResponseMessageListType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[6] } -func (x ClientPayload_ClientPayloadConnectReason) Number() protoreflect.EnumNumber { +func (x ListResponseMessage_ListResponseMessageListType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ClientPayload_ClientPayloadConnectReason) UnmarshalJSON(b []byte) error { +func (x *ListResponseMessage_ListResponseMessageListType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ClientPayload_ClientPayloadConnectReason(num) + *x = ListResponseMessage_ListResponseMessageListType(num) return nil } -// Deprecated: Use ClientPayload_ClientPayloadConnectReason.Descriptor instead. -func (ClientPayload_ClientPayloadConnectReason) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{6, 1} +// Deprecated: Use ListResponseMessage_ListResponseMessageListType.Descriptor instead. +func (ListResponseMessage_ListResponseMessageListType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{20, 0} } -type ClientPayload_ClientPayloadProduct int32 +type ListMessage_ListMessageListType int32 const ( - ClientPayload_WHATSAPP ClientPayload_ClientPayloadProduct = 0 - ClientPayload_MESSENGER ClientPayload_ClientPayloadProduct = 1 + ListMessage_UNKNOWN ListMessage_ListMessageListType = 0 + ListMessage_SINGLE_SELECT ListMessage_ListMessageListType = 1 + ListMessage_PRODUCT_LIST ListMessage_ListMessageListType = 2 ) -// Enum value maps for ClientPayload_ClientPayloadProduct. +// Enum value maps for ListMessage_ListMessageListType. var ( - ClientPayload_ClientPayloadProduct_name = map[int32]string{ - 0: "WHATSAPP", - 1: "MESSENGER", + ListMessage_ListMessageListType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SINGLE_SELECT", + 2: "PRODUCT_LIST", } - ClientPayload_ClientPayloadProduct_value = map[string]int32{ - "WHATSAPP": 0, - "MESSENGER": 1, + ListMessage_ListMessageListType_value = map[string]int32{ + "UNKNOWN": 0, + "SINGLE_SELECT": 1, + "PRODUCT_LIST": 2, } ) -func (x ClientPayload_ClientPayloadProduct) Enum() *ClientPayload_ClientPayloadProduct { - p := new(ClientPayload_ClientPayloadProduct) +func (x ListMessage_ListMessageListType) Enum() *ListMessage_ListMessageListType { + p := new(ListMessage_ListMessageListType) *p = x return p } -func (x ClientPayload_ClientPayloadProduct) String() string { +func (x ListMessage_ListMessageListType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ClientPayload_ClientPayloadProduct) Descriptor() protoreflect.EnumDescriptor { +func (ListMessage_ListMessageListType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[7].Descriptor() } -func (ClientPayload_ClientPayloadProduct) Type() protoreflect.EnumType { +func (ListMessage_ListMessageListType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[7] } -func (x ClientPayload_ClientPayloadProduct) Number() protoreflect.EnumNumber { +func (x ListMessage_ListMessageListType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ClientPayload_ClientPayloadProduct) UnmarshalJSON(b []byte) error { +func (x *ListMessage_ListMessageListType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ClientPayload_ClientPayloadProduct(num) + *x = ListMessage_ListMessageListType(num) return nil } -// Deprecated: Use ClientPayload_ClientPayloadProduct.Descriptor instead. -func (ClientPayload_ClientPayloadProduct) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{6, 2} +// Deprecated: Use ListMessage_ListMessageListType.Descriptor instead. +func (ListMessage_ListMessageListType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{22, 0} } -type ClientPayload_ClientPayloadIOSAppExtension int32 +type InvoiceMessage_InvoiceMessageAttachmentType int32 const ( - ClientPayload_SHARE_EXTENSION ClientPayload_ClientPayloadIOSAppExtension = 0 - ClientPayload_SERVICE_EXTENSION ClientPayload_ClientPayloadIOSAppExtension = 1 - ClientPayload_INTENTS_EXTENSION ClientPayload_ClientPayloadIOSAppExtension = 2 + InvoiceMessage_IMAGE InvoiceMessage_InvoiceMessageAttachmentType = 0 + InvoiceMessage_PDF InvoiceMessage_InvoiceMessageAttachmentType = 1 ) -// Enum value maps for ClientPayload_ClientPayloadIOSAppExtension. +// Enum value maps for InvoiceMessage_InvoiceMessageAttachmentType. var ( - ClientPayload_ClientPayloadIOSAppExtension_name = map[int32]string{ - 0: "SHARE_EXTENSION", - 1: "SERVICE_EXTENSION", - 2: "INTENTS_EXTENSION", + InvoiceMessage_InvoiceMessageAttachmentType_name = map[int32]string{ + 0: "IMAGE", + 1: "PDF", } - ClientPayload_ClientPayloadIOSAppExtension_value = map[string]int32{ - "SHARE_EXTENSION": 0, - "SERVICE_EXTENSION": 1, - "INTENTS_EXTENSION": 2, + InvoiceMessage_InvoiceMessageAttachmentType_value = map[string]int32{ + "IMAGE": 0, + "PDF": 1, } ) -func (x ClientPayload_ClientPayloadIOSAppExtension) Enum() *ClientPayload_ClientPayloadIOSAppExtension { - p := new(ClientPayload_ClientPayloadIOSAppExtension) +func (x InvoiceMessage_InvoiceMessageAttachmentType) Enum() *InvoiceMessage_InvoiceMessageAttachmentType { + p := new(InvoiceMessage_InvoiceMessageAttachmentType) *p = x return p } -func (x ClientPayload_ClientPayloadIOSAppExtension) String() string { +func (x InvoiceMessage_InvoiceMessageAttachmentType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ClientPayload_ClientPayloadIOSAppExtension) Descriptor() protoreflect.EnumDescriptor { +func (InvoiceMessage_InvoiceMessageAttachmentType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[8].Descriptor() } -func (ClientPayload_ClientPayloadIOSAppExtension) Type() protoreflect.EnumType { +func (InvoiceMessage_InvoiceMessageAttachmentType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[8] } -func (x ClientPayload_ClientPayloadIOSAppExtension) Number() protoreflect.EnumNumber { +func (x InvoiceMessage_InvoiceMessageAttachmentType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ClientPayload_ClientPayloadIOSAppExtension) UnmarshalJSON(b []byte) error { +func (x *InvoiceMessage_InvoiceMessageAttachmentType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ClientPayload_ClientPayloadIOSAppExtension(num) + *x = InvoiceMessage_InvoiceMessageAttachmentType(num) return nil } -// Deprecated: Use ClientPayload_ClientPayloadIOSAppExtension.Descriptor instead. -func (ClientPayload_ClientPayloadIOSAppExtension) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{6, 3} +// Deprecated: Use InvoiceMessage_InvoiceMessageAttachmentType.Descriptor instead. +func (InvoiceMessage_InvoiceMessageAttachmentType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{29, 0} } -type BizIdentityInfo_BizIdentityInfoVerifiedLevelValue int32 +type ShopMessage_ShopMessageSurface int32 const ( - BizIdentityInfo_UNKNOWN BizIdentityInfo_BizIdentityInfoVerifiedLevelValue = 0 - BizIdentityInfo_LOW BizIdentityInfo_BizIdentityInfoVerifiedLevelValue = 1 - BizIdentityInfo_HIGH BizIdentityInfo_BizIdentityInfoVerifiedLevelValue = 2 + ShopMessage_UNKNOWN_SURFACE ShopMessage_ShopMessageSurface = 0 + ShopMessage_FB ShopMessage_ShopMessageSurface = 1 + ShopMessage_IG ShopMessage_ShopMessageSurface = 2 + ShopMessage_WA ShopMessage_ShopMessageSurface = 3 ) -// Enum value maps for BizIdentityInfo_BizIdentityInfoVerifiedLevelValue. +// Enum value maps for ShopMessage_ShopMessageSurface. var ( - BizIdentityInfo_BizIdentityInfoVerifiedLevelValue_name = map[int32]string{ - 0: "UNKNOWN", - 1: "LOW", - 2: "HIGH", + ShopMessage_ShopMessageSurface_name = map[int32]string{ + 0: "UNKNOWN_SURFACE", + 1: "FB", + 2: "IG", + 3: "WA", } - BizIdentityInfo_BizIdentityInfoVerifiedLevelValue_value = map[string]int32{ - "UNKNOWN": 0, - "LOW": 1, - "HIGH": 2, + ShopMessage_ShopMessageSurface_value = map[string]int32{ + "UNKNOWN_SURFACE": 0, + "FB": 1, + "IG": 2, + "WA": 3, } ) -func (x BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) Enum() *BizIdentityInfo_BizIdentityInfoVerifiedLevelValue { - p := new(BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) +func (x ShopMessage_ShopMessageSurface) Enum() *ShopMessage_ShopMessageSurface { + p := new(ShopMessage_ShopMessageSurface) *p = x return p } -func (x BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) String() string { +func (x ShopMessage_ShopMessageSurface) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) Descriptor() protoreflect.EnumDescriptor { +func (ShopMessage_ShopMessageSurface) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[9].Descriptor() } -func (BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) Type() protoreflect.EnumType { +func (ShopMessage_ShopMessageSurface) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[9] } -func (x BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) Number() protoreflect.EnumNumber { +func (x ShopMessage_ShopMessageSurface) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) UnmarshalJSON(b []byte) error { +func (x *ShopMessage_ShopMessageSurface) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = BizIdentityInfo_BizIdentityInfoVerifiedLevelValue(num) + *x = ShopMessage_ShopMessageSurface(num) return nil } -// Deprecated: Use BizIdentityInfo_BizIdentityInfoVerifiedLevelValue.Descriptor instead. -func (BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{13, 0} +// Deprecated: Use ShopMessage_ShopMessageSurface.Descriptor instead. +func (ShopMessage_ShopMessageSurface) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{34, 0} } -type BizIdentityInfo_BizIdentityInfoHostStorageType int32 +type HistorySyncNotification_HistorySyncNotificationHistorySyncType int32 const ( - BizIdentityInfo_ON_PREMISE BizIdentityInfo_BizIdentityInfoHostStorageType = 0 - BizIdentityInfo_FACEBOOK BizIdentityInfo_BizIdentityInfoHostStorageType = 1 + HistorySyncNotification_INITIAL_BOOTSTRAP HistorySyncNotification_HistorySyncNotificationHistorySyncType = 0 + HistorySyncNotification_INITIAL_STATUS_V3 HistorySyncNotification_HistorySyncNotificationHistorySyncType = 1 + HistorySyncNotification_FULL HistorySyncNotification_HistorySyncNotificationHistorySyncType = 2 + HistorySyncNotification_RECENT HistorySyncNotification_HistorySyncNotificationHistorySyncType = 3 + HistorySyncNotification_PUSH_NAME HistorySyncNotification_HistorySyncNotificationHistorySyncType = 4 ) -// Enum value maps for BizIdentityInfo_BizIdentityInfoHostStorageType. +// Enum value maps for HistorySyncNotification_HistorySyncNotificationHistorySyncType. var ( - BizIdentityInfo_BizIdentityInfoHostStorageType_name = map[int32]string{ - 0: "ON_PREMISE", - 1: "FACEBOOK", + HistorySyncNotification_HistorySyncNotificationHistorySyncType_name = map[int32]string{ + 0: "INITIAL_BOOTSTRAP", + 1: "INITIAL_STATUS_V3", + 2: "FULL", + 3: "RECENT", + 4: "PUSH_NAME", } - BizIdentityInfo_BizIdentityInfoHostStorageType_value = map[string]int32{ - "ON_PREMISE": 0, - "FACEBOOK": 1, + HistorySyncNotification_HistorySyncNotificationHistorySyncType_value = map[string]int32{ + "INITIAL_BOOTSTRAP": 0, + "INITIAL_STATUS_V3": 1, + "FULL": 2, + "RECENT": 3, + "PUSH_NAME": 4, } ) -func (x BizIdentityInfo_BizIdentityInfoHostStorageType) Enum() *BizIdentityInfo_BizIdentityInfoHostStorageType { - p := new(BizIdentityInfo_BizIdentityInfoHostStorageType) +func (x HistorySyncNotification_HistorySyncNotificationHistorySyncType) Enum() *HistorySyncNotification_HistorySyncNotificationHistorySyncType { + p := new(HistorySyncNotification_HistorySyncNotificationHistorySyncType) *p = x return p } -func (x BizIdentityInfo_BizIdentityInfoHostStorageType) String() string { +func (x HistorySyncNotification_HistorySyncNotificationHistorySyncType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (BizIdentityInfo_BizIdentityInfoHostStorageType) Descriptor() protoreflect.EnumDescriptor { +func (HistorySyncNotification_HistorySyncNotificationHistorySyncType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[10].Descriptor() } -func (BizIdentityInfo_BizIdentityInfoHostStorageType) Type() protoreflect.EnumType { +func (HistorySyncNotification_HistorySyncNotificationHistorySyncType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[10] } -func (x BizIdentityInfo_BizIdentityInfoHostStorageType) Number() protoreflect.EnumNumber { +func (x HistorySyncNotification_HistorySyncNotificationHistorySyncType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *BizIdentityInfo_BizIdentityInfoHostStorageType) UnmarshalJSON(b []byte) error { +func (x *HistorySyncNotification_HistorySyncNotificationHistorySyncType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = BizIdentityInfo_BizIdentityInfoHostStorageType(num) + *x = HistorySyncNotification_HistorySyncNotificationHistorySyncType(num) return nil } -// Deprecated: Use BizIdentityInfo_BizIdentityInfoHostStorageType.Descriptor instead. -func (BizIdentityInfo_BizIdentityInfoHostStorageType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{13, 1} +// Deprecated: Use HistorySyncNotification_HistorySyncNotificationHistorySyncType.Descriptor instead. +func (HistorySyncNotification_HistorySyncNotificationHistorySyncType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{43, 0} } -type BizIdentityInfo_BizIdentityInfoActualActorsType int32 +type HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType int32 const ( - BizIdentityInfo_SELF BizIdentityInfo_BizIdentityInfoActualActorsType = 0 - BizIdentityInfo_BSP BizIdentityInfo_BizIdentityInfoActualActorsType = 1 + HSMDateTimeComponent_MONDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 1 + HSMDateTimeComponent_TUESDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 2 + HSMDateTimeComponent_WEDNESDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 3 + HSMDateTimeComponent_THURSDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 4 + HSMDateTimeComponent_FRIDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 5 + HSMDateTimeComponent_SATURDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 6 + HSMDateTimeComponent_SUNDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 7 ) -// Enum value maps for BizIdentityInfo_BizIdentityInfoActualActorsType. +// Enum value maps for HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType. var ( - BizIdentityInfo_BizIdentityInfoActualActorsType_name = map[int32]string{ - 0: "SELF", - 1: "BSP", + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_name = map[int32]string{ + 1: "MONDAY", + 2: "TUESDAY", + 3: "WEDNESDAY", + 4: "THURSDAY", + 5: "FRIDAY", + 6: "SATURDAY", + 7: "SUNDAY", } - BizIdentityInfo_BizIdentityInfoActualActorsType_value = map[string]int32{ - "SELF": 0, - "BSP": 1, + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_value = map[string]int32{ + "MONDAY": 1, + "TUESDAY": 2, + "WEDNESDAY": 3, + "THURSDAY": 4, + "FRIDAY": 5, + "SATURDAY": 6, + "SUNDAY": 7, } ) -func (x BizIdentityInfo_BizIdentityInfoActualActorsType) Enum() *BizIdentityInfo_BizIdentityInfoActualActorsType { - p := new(BizIdentityInfo_BizIdentityInfoActualActorsType) +func (x HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) Enum() *HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType { + p := new(HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) *p = x return p } -func (x BizIdentityInfo_BizIdentityInfoActualActorsType) String() string { +func (x HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (BizIdentityInfo_BizIdentityInfoActualActorsType) Descriptor() protoreflect.EnumDescriptor { +func (HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[11].Descriptor() } -func (BizIdentityInfo_BizIdentityInfoActualActorsType) Type() protoreflect.EnumType { +func (HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[11] } -func (x BizIdentityInfo_BizIdentityInfoActualActorsType) Number() protoreflect.EnumNumber { +func (x HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *BizIdentityInfo_BizIdentityInfoActualActorsType) UnmarshalJSON(b []byte) error { +func (x *HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = BizIdentityInfo_BizIdentityInfoActualActorsType(num) + *x = HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType(num) return nil } -// Deprecated: Use BizIdentityInfo_BizIdentityInfoActualActorsType.Descriptor instead. -func (BizIdentityInfo_BizIdentityInfoActualActorsType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{13, 2} +// Deprecated: Use HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType.Descriptor instead. +func (HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{48, 0} } -type BizAccountLinkInfo_BizAccountLinkInfoHostStorageType int32 +type HSMDateTimeComponent_HSMDateTimeComponentCalendarType int32 const ( - BizAccountLinkInfo_ON_PREMISE BizAccountLinkInfo_BizAccountLinkInfoHostStorageType = 0 - BizAccountLinkInfo_FACEBOOK BizAccountLinkInfo_BizAccountLinkInfoHostStorageType = 1 + HSMDateTimeComponent_GREGORIAN HSMDateTimeComponent_HSMDateTimeComponentCalendarType = 1 + HSMDateTimeComponent_SOLAR_HIJRI HSMDateTimeComponent_HSMDateTimeComponentCalendarType = 2 ) -// Enum value maps for BizAccountLinkInfo_BizAccountLinkInfoHostStorageType. +// Enum value maps for HSMDateTimeComponent_HSMDateTimeComponentCalendarType. var ( - BizAccountLinkInfo_BizAccountLinkInfoHostStorageType_name = map[int32]string{ - 0: "ON_PREMISE", - 1: "FACEBOOK", + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_name = map[int32]string{ + 1: "GREGORIAN", + 2: "SOLAR_HIJRI", } - BizAccountLinkInfo_BizAccountLinkInfoHostStorageType_value = map[string]int32{ - "ON_PREMISE": 0, - "FACEBOOK": 1, + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_value = map[string]int32{ + "GREGORIAN": 1, + "SOLAR_HIJRI": 2, } ) -func (x BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) Enum() *BizAccountLinkInfo_BizAccountLinkInfoHostStorageType { - p := new(BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) +func (x HSMDateTimeComponent_HSMDateTimeComponentCalendarType) Enum() *HSMDateTimeComponent_HSMDateTimeComponentCalendarType { + p := new(HSMDateTimeComponent_HSMDateTimeComponentCalendarType) *p = x return p } -func (x BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) String() string { +func (x HSMDateTimeComponent_HSMDateTimeComponentCalendarType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) Descriptor() protoreflect.EnumDescriptor { +func (HSMDateTimeComponent_HSMDateTimeComponentCalendarType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[12].Descriptor() } -func (BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) Type() protoreflect.EnumType { +func (HSMDateTimeComponent_HSMDateTimeComponentCalendarType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[12] } -func (x BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) Number() protoreflect.EnumNumber { +func (x HSMDateTimeComponent_HSMDateTimeComponentCalendarType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) UnmarshalJSON(b []byte) error { +func (x *HSMDateTimeComponent_HSMDateTimeComponentCalendarType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = BizAccountLinkInfo_BizAccountLinkInfoHostStorageType(num) + *x = HSMDateTimeComponent_HSMDateTimeComponentCalendarType(num) return nil } -// Deprecated: Use BizAccountLinkInfo_BizAccountLinkInfoHostStorageType.Descriptor instead. -func (BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{14, 0} +// Deprecated: Use HSMDateTimeComponent_HSMDateTimeComponentCalendarType.Descriptor instead. +func (HSMDateTimeComponent_HSMDateTimeComponentCalendarType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{48, 1} } -type BizAccountLinkInfo_BizAccountLinkInfoAccountType int32 +type GroupInviteMessage_GroupInviteMessageGroupType int32 const ( - BizAccountLinkInfo_ENTERPRISE BizAccountLinkInfo_BizAccountLinkInfoAccountType = 0 + GroupInviteMessage_DEFAULT GroupInviteMessage_GroupInviteMessageGroupType = 0 + GroupInviteMessage_PARENT GroupInviteMessage_GroupInviteMessageGroupType = 1 ) -// Enum value maps for BizAccountLinkInfo_BizAccountLinkInfoAccountType. +// Enum value maps for GroupInviteMessage_GroupInviteMessageGroupType. var ( - BizAccountLinkInfo_BizAccountLinkInfoAccountType_name = map[int32]string{ - 0: "ENTERPRISE", + GroupInviteMessage_GroupInviteMessageGroupType_name = map[int32]string{ + 0: "DEFAULT", + 1: "PARENT", } - BizAccountLinkInfo_BizAccountLinkInfoAccountType_value = map[string]int32{ - "ENTERPRISE": 0, + GroupInviteMessage_GroupInviteMessageGroupType_value = map[string]int32{ + "DEFAULT": 0, + "PARENT": 1, } ) -func (x BizAccountLinkInfo_BizAccountLinkInfoAccountType) Enum() *BizAccountLinkInfo_BizAccountLinkInfoAccountType { - p := new(BizAccountLinkInfo_BizAccountLinkInfoAccountType) +func (x GroupInviteMessage_GroupInviteMessageGroupType) Enum() *GroupInviteMessage_GroupInviteMessageGroupType { + p := new(GroupInviteMessage_GroupInviteMessageGroupType) *p = x return p } -func (x BizAccountLinkInfo_BizAccountLinkInfoAccountType) String() string { +func (x GroupInviteMessage_GroupInviteMessageGroupType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (BizAccountLinkInfo_BizAccountLinkInfoAccountType) Descriptor() protoreflect.EnumDescriptor { +func (GroupInviteMessage_GroupInviteMessageGroupType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[13].Descriptor() } -func (BizAccountLinkInfo_BizAccountLinkInfoAccountType) Type() protoreflect.EnumType { +func (GroupInviteMessage_GroupInviteMessageGroupType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[13] } -func (x BizAccountLinkInfo_BizAccountLinkInfoAccountType) Number() protoreflect.EnumNumber { +func (x GroupInviteMessage_GroupInviteMessageGroupType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *BizAccountLinkInfo_BizAccountLinkInfoAccountType) UnmarshalJSON(b []byte) error { +func (x *GroupInviteMessage_GroupInviteMessageGroupType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = BizAccountLinkInfo_BizAccountLinkInfoAccountType(num) + *x = GroupInviteMessage_GroupInviteMessageGroupType(num) return nil } -// Deprecated: Use BizAccountLinkInfo_BizAccountLinkInfoAccountType.Descriptor instead. -func (BizAccountLinkInfo_BizAccountLinkInfoAccountType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{14, 1} +// Deprecated: Use GroupInviteMessage_GroupInviteMessageGroupType.Descriptor instead. +func (GroupInviteMessage_GroupInviteMessageGroupType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{50, 0} } -type SyncdMutation_SyncdMutationSyncdOperation int32 +type ExtendedTextMessage_ExtendedTextMessageFontType int32 const ( - SyncdMutation_SET SyncdMutation_SyncdMutationSyncdOperation = 0 - SyncdMutation_REMOVE SyncdMutation_SyncdMutationSyncdOperation = 1 + ExtendedTextMessage_SANS_SERIF ExtendedTextMessage_ExtendedTextMessageFontType = 0 + ExtendedTextMessage_SERIF ExtendedTextMessage_ExtendedTextMessageFontType = 1 + ExtendedTextMessage_NORICAN_REGULAR ExtendedTextMessage_ExtendedTextMessageFontType = 2 + ExtendedTextMessage_BRYNDAN_WRITE ExtendedTextMessage_ExtendedTextMessageFontType = 3 + ExtendedTextMessage_BEBASNEUE_REGULAR ExtendedTextMessage_ExtendedTextMessageFontType = 4 + ExtendedTextMessage_OSWALD_HEAVY ExtendedTextMessage_ExtendedTextMessageFontType = 5 ) -// Enum value maps for SyncdMutation_SyncdMutationSyncdOperation. +// Enum value maps for ExtendedTextMessage_ExtendedTextMessageFontType. var ( - SyncdMutation_SyncdMutationSyncdOperation_name = map[int32]string{ - 0: "SET", - 1: "REMOVE", + ExtendedTextMessage_ExtendedTextMessageFontType_name = map[int32]string{ + 0: "SANS_SERIF", + 1: "SERIF", + 2: "NORICAN_REGULAR", + 3: "BRYNDAN_WRITE", + 4: "BEBASNEUE_REGULAR", + 5: "OSWALD_HEAVY", } - SyncdMutation_SyncdMutationSyncdOperation_value = map[string]int32{ - "SET": 0, - "REMOVE": 1, + ExtendedTextMessage_ExtendedTextMessageFontType_value = map[string]int32{ + "SANS_SERIF": 0, + "SERIF": 1, + "NORICAN_REGULAR": 2, + "BRYNDAN_WRITE": 3, + "BEBASNEUE_REGULAR": 4, + "OSWALD_HEAVY": 5, } ) -func (x SyncdMutation_SyncdMutationSyncdOperation) Enum() *SyncdMutation_SyncdMutationSyncdOperation { - p := new(SyncdMutation_SyncdMutationSyncdOperation) +func (x ExtendedTextMessage_ExtendedTextMessageFontType) Enum() *ExtendedTextMessage_ExtendedTextMessageFontType { + p := new(ExtendedTextMessage_ExtendedTextMessageFontType) *p = x return p } -func (x SyncdMutation_SyncdMutationSyncdOperation) String() string { +func (x ExtendedTextMessage_ExtendedTextMessageFontType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (SyncdMutation_SyncdMutationSyncdOperation) Descriptor() protoreflect.EnumDescriptor { +func (ExtendedTextMessage_ExtendedTextMessageFontType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[14].Descriptor() } -func (SyncdMutation_SyncdMutationSyncdOperation) Type() protoreflect.EnumType { +func (ExtendedTextMessage_ExtendedTextMessageFontType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[14] } -func (x SyncdMutation_SyncdMutationSyncdOperation) Number() protoreflect.EnumNumber { +func (x ExtendedTextMessage_ExtendedTextMessageFontType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *SyncdMutation_SyncdMutationSyncdOperation) UnmarshalJSON(b []byte) error { +func (x *ExtendedTextMessage_ExtendedTextMessageFontType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = SyncdMutation_SyncdMutationSyncdOperation(num) + *x = ExtendedTextMessage_ExtendedTextMessageFontType(num) return nil } -// Deprecated: Use SyncdMutation_SyncdMutationSyncdOperation.Descriptor instead. -func (SyncdMutation_SyncdMutationSyncdOperation) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{49, 0} +// Deprecated: Use ExtendedTextMessage_ExtendedTextMessageFontType.Descriptor instead. +func (ExtendedTextMessage_ExtendedTextMessageFontType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{52, 0} } -type MediaRetryNotification_MediaRetryNotificationResultType int32 +type ExtendedTextMessage_ExtendedTextMessagePreviewType int32 const ( - MediaRetryNotification_GENERAL_ERROR MediaRetryNotification_MediaRetryNotificationResultType = 0 - MediaRetryNotification_SUCCESS MediaRetryNotification_MediaRetryNotificationResultType = 1 - MediaRetryNotification_NOT_FOUND MediaRetryNotification_MediaRetryNotificationResultType = 2 - MediaRetryNotification_DECRYPTION_ERROR MediaRetryNotification_MediaRetryNotificationResultType = 3 + ExtendedTextMessage_NONE ExtendedTextMessage_ExtendedTextMessagePreviewType = 0 + ExtendedTextMessage_VIDEO ExtendedTextMessage_ExtendedTextMessagePreviewType = 1 ) -// Enum value maps for MediaRetryNotification_MediaRetryNotificationResultType. +// Enum value maps for ExtendedTextMessage_ExtendedTextMessagePreviewType. var ( - MediaRetryNotification_MediaRetryNotificationResultType_name = map[int32]string{ - 0: "GENERAL_ERROR", - 1: "SUCCESS", - 2: "NOT_FOUND", - 3: "DECRYPTION_ERROR", + ExtendedTextMessage_ExtendedTextMessagePreviewType_name = map[int32]string{ + 0: "NONE", + 1: "VIDEO", } - MediaRetryNotification_MediaRetryNotificationResultType_value = map[string]int32{ - "GENERAL_ERROR": 0, - "SUCCESS": 1, - "NOT_FOUND": 2, - "DECRYPTION_ERROR": 3, + ExtendedTextMessage_ExtendedTextMessagePreviewType_value = map[string]int32{ + "NONE": 0, + "VIDEO": 1, } ) -func (x MediaRetryNotification_MediaRetryNotificationResultType) Enum() *MediaRetryNotification_MediaRetryNotificationResultType { - p := new(MediaRetryNotification_MediaRetryNotificationResultType) +func (x ExtendedTextMessage_ExtendedTextMessagePreviewType) Enum() *ExtendedTextMessage_ExtendedTextMessagePreviewType { + p := new(ExtendedTextMessage_ExtendedTextMessagePreviewType) *p = x return p } -func (x MediaRetryNotification_MediaRetryNotificationResultType) String() string { +func (x ExtendedTextMessage_ExtendedTextMessagePreviewType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (MediaRetryNotification_MediaRetryNotificationResultType) Descriptor() protoreflect.EnumDescriptor { +func (ExtendedTextMessage_ExtendedTextMessagePreviewType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[15].Descriptor() } -func (MediaRetryNotification_MediaRetryNotificationResultType) Type() protoreflect.EnumType { +func (ExtendedTextMessage_ExtendedTextMessagePreviewType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[15] } -func (x MediaRetryNotification_MediaRetryNotificationResultType) Number() protoreflect.EnumNumber { +func (x ExtendedTextMessage_ExtendedTextMessagePreviewType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *MediaRetryNotification_MediaRetryNotificationResultType) UnmarshalJSON(b []byte) error { +func (x *ExtendedTextMessage_ExtendedTextMessagePreviewType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = MediaRetryNotification_MediaRetryNotificationResultType(num) + *x = ExtendedTextMessage_ExtendedTextMessagePreviewType(num) return nil } -// Deprecated: Use MediaRetryNotification_MediaRetryNotificationResultType.Descriptor instead. -func (MediaRetryNotification_MediaRetryNotificationResultType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{60, 0} +// Deprecated: Use ExtendedTextMessage_ExtendedTextMessagePreviewType.Descriptor instead. +func (ExtendedTextMessage_ExtendedTextMessagePreviewType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{52, 1} } -type GroupParticipant_GroupParticipantRank int32 +type ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType int32 const ( - GroupParticipant_REGULAR GroupParticipant_GroupParticipantRank = 0 - GroupParticipant_ADMIN GroupParticipant_GroupParticipantRank = 1 - GroupParticipant_SUPERADMIN GroupParticipant_GroupParticipantRank = 2 + ExtendedTextMessage_DEFAULT ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType = 0 + ExtendedTextMessage_PARENT ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType = 1 ) -// Enum value maps for GroupParticipant_GroupParticipantRank. +// Enum value maps for ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType. var ( - GroupParticipant_GroupParticipantRank_name = map[int32]string{ - 0: "REGULAR", - 1: "ADMIN", - 2: "SUPERADMIN", + ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType_name = map[int32]string{ + 0: "DEFAULT", + 1: "PARENT", } - GroupParticipant_GroupParticipantRank_value = map[string]int32{ - "REGULAR": 0, - "ADMIN": 1, - "SUPERADMIN": 2, + ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType_value = map[string]int32{ + "DEFAULT": 0, + "PARENT": 1, } ) -func (x GroupParticipant_GroupParticipantRank) Enum() *GroupParticipant_GroupParticipantRank { - p := new(GroupParticipant_GroupParticipantRank) +func (x ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) Enum() *ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType { + p := new(ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) *p = x return p } -func (x GroupParticipant_GroupParticipantRank) String() string { +func (x ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (GroupParticipant_GroupParticipantRank) Descriptor() protoreflect.EnumDescriptor { +func (ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[16].Descriptor() } -func (GroupParticipant_GroupParticipantRank) Type() protoreflect.EnumType { +func (ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[16] } -func (x GroupParticipant_GroupParticipantRank) Number() protoreflect.EnumNumber { +func (x ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *GroupParticipant_GroupParticipantRank) UnmarshalJSON(b []byte) error { +func (x *ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = GroupParticipant_GroupParticipantRank(num) + *x = ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType(num) return nil } -// Deprecated: Use GroupParticipant_GroupParticipantRank.Descriptor instead. -func (GroupParticipant_GroupParticipantRank) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{65, 0} +// Deprecated: Use ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType.Descriptor instead. +func (ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{52, 2} } -type Conversation_ConversationEndOfHistoryTransferType int32 +type ButtonsResponseMessage_ButtonsResponseMessageType int32 const ( - Conversation_COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY Conversation_ConversationEndOfHistoryTransferType = 0 - Conversation_COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY Conversation_ConversationEndOfHistoryTransferType = 1 + ButtonsResponseMessage_UNKNOWN ButtonsResponseMessage_ButtonsResponseMessageType = 0 + ButtonsResponseMessage_DISPLAY_TEXT ButtonsResponseMessage_ButtonsResponseMessageType = 1 ) -// Enum value maps for Conversation_ConversationEndOfHistoryTransferType. +// Enum value maps for ButtonsResponseMessage_ButtonsResponseMessageType. var ( - Conversation_ConversationEndOfHistoryTransferType_name = map[int32]string{ - 0: "COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY", - 1: "COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY", + ButtonsResponseMessage_ButtonsResponseMessageType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "DISPLAY_TEXT", } - Conversation_ConversationEndOfHistoryTransferType_value = map[string]int32{ - "COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY": 0, - "COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY": 1, + ButtonsResponseMessage_ButtonsResponseMessageType_value = map[string]int32{ + "UNKNOWN": 0, + "DISPLAY_TEXT": 1, } ) -func (x Conversation_ConversationEndOfHistoryTransferType) Enum() *Conversation_ConversationEndOfHistoryTransferType { - p := new(Conversation_ConversationEndOfHistoryTransferType) +func (x ButtonsResponseMessage_ButtonsResponseMessageType) Enum() *ButtonsResponseMessage_ButtonsResponseMessageType { + p := new(ButtonsResponseMessage_ButtonsResponseMessageType) *p = x return p } -func (x Conversation_ConversationEndOfHistoryTransferType) String() string { +func (x ButtonsResponseMessage_ButtonsResponseMessageType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (Conversation_ConversationEndOfHistoryTransferType) Descriptor() protoreflect.EnumDescriptor { +func (ButtonsResponseMessage_ButtonsResponseMessageType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[17].Descriptor() } -func (Conversation_ConversationEndOfHistoryTransferType) Type() protoreflect.EnumType { +func (ButtonsResponseMessage_ButtonsResponseMessageType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[17] } -func (x Conversation_ConversationEndOfHistoryTransferType) Number() protoreflect.EnumNumber { +func (x ButtonsResponseMessage_ButtonsResponseMessageType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *Conversation_ConversationEndOfHistoryTransferType) UnmarshalJSON(b []byte) error { +func (x *ButtonsResponseMessage_ButtonsResponseMessageType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = Conversation_ConversationEndOfHistoryTransferType(num) + *x = ButtonsResponseMessage_ButtonsResponseMessageType(num) return nil } -// Deprecated: Use Conversation_ConversationEndOfHistoryTransferType.Descriptor instead. -func (Conversation_ConversationEndOfHistoryTransferType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{68, 0} +// Deprecated: Use ButtonsResponseMessage_ButtonsResponseMessageType.Descriptor instead. +func (ButtonsResponseMessage_ButtonsResponseMessageType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{61, 0} } -type HistorySync_HistorySyncHistorySyncType int32 +type ButtonsMessage_ButtonsMessageHeaderType int32 const ( - HistorySync_INITIAL_BOOTSTRAP HistorySync_HistorySyncHistorySyncType = 0 - HistorySync_INITIAL_STATUS_V3 HistorySync_HistorySyncHistorySyncType = 1 - HistorySync_FULL HistorySync_HistorySyncHistorySyncType = 2 - HistorySync_RECENT HistorySync_HistorySyncHistorySyncType = 3 - HistorySync_PUSH_NAME HistorySync_HistorySyncHistorySyncType = 4 + ButtonsMessage_UNKNOWN ButtonsMessage_ButtonsMessageHeaderType = 0 + ButtonsMessage_EMPTY ButtonsMessage_ButtonsMessageHeaderType = 1 + ButtonsMessage_TEXT ButtonsMessage_ButtonsMessageHeaderType = 2 + ButtonsMessage_DOCUMENT ButtonsMessage_ButtonsMessageHeaderType = 3 + ButtonsMessage_IMAGE ButtonsMessage_ButtonsMessageHeaderType = 4 + ButtonsMessage_VIDEO ButtonsMessage_ButtonsMessageHeaderType = 5 + ButtonsMessage_LOCATION ButtonsMessage_ButtonsMessageHeaderType = 6 ) -// Enum value maps for HistorySync_HistorySyncHistorySyncType. +// Enum value maps for ButtonsMessage_ButtonsMessageHeaderType. var ( - HistorySync_HistorySyncHistorySyncType_name = map[int32]string{ - 0: "INITIAL_BOOTSTRAP", - 1: "INITIAL_STATUS_V3", - 2: "FULL", - 3: "RECENT", - 4: "PUSH_NAME", + ButtonsMessage_ButtonsMessageHeaderType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "EMPTY", + 2: "TEXT", + 3: "DOCUMENT", + 4: "IMAGE", + 5: "VIDEO", + 6: "LOCATION", } - HistorySync_HistorySyncHistorySyncType_value = map[string]int32{ - "INITIAL_BOOTSTRAP": 0, - "INITIAL_STATUS_V3": 1, - "FULL": 2, - "RECENT": 3, - "PUSH_NAME": 4, + ButtonsMessage_ButtonsMessageHeaderType_value = map[string]int32{ + "UNKNOWN": 0, + "EMPTY": 1, + "TEXT": 2, + "DOCUMENT": 3, + "IMAGE": 4, + "VIDEO": 5, + "LOCATION": 6, } ) -func (x HistorySync_HistorySyncHistorySyncType) Enum() *HistorySync_HistorySyncHistorySyncType { - p := new(HistorySync_HistorySyncHistorySyncType) +func (x ButtonsMessage_ButtonsMessageHeaderType) Enum() *ButtonsMessage_ButtonsMessageHeaderType { + p := new(ButtonsMessage_ButtonsMessageHeaderType) *p = x return p } -func (x HistorySync_HistorySyncHistorySyncType) String() string { +func (x ButtonsMessage_ButtonsMessageHeaderType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (HistorySync_HistorySyncHistorySyncType) Descriptor() protoreflect.EnumDescriptor { +func (ButtonsMessage_ButtonsMessageHeaderType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[18].Descriptor() } -func (HistorySync_HistorySyncHistorySyncType) Type() protoreflect.EnumType { +func (ButtonsMessage_ButtonsMessageHeaderType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[18] } -func (x HistorySync_HistorySyncHistorySyncType) Number() protoreflect.EnumNumber { +func (x ButtonsMessage_ButtonsMessageHeaderType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *HistorySync_HistorySyncHistorySyncType) UnmarshalJSON(b []byte) error { +func (x *ButtonsMessage_ButtonsMessageHeaderType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = HistorySync_HistorySyncHistorySyncType(num) + *x = ButtonsMessage_ButtonsMessageHeaderType(num) return nil } -// Deprecated: Use HistorySync_HistorySyncHistorySyncType.Descriptor instead. -func (HistorySync_HistorySyncHistorySyncType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{69, 0} +// Deprecated: Use ButtonsMessage_ButtonsMessageHeaderType.Descriptor instead. +func (ButtonsMessage_ButtonsMessageHeaderType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{62, 0} } -type AdReplyInfo_AdReplyInfoMediaType int32 +type Button_ButtonType int32 const ( - AdReplyInfo_NONE AdReplyInfo_AdReplyInfoMediaType = 0 - AdReplyInfo_IMAGE AdReplyInfo_AdReplyInfoMediaType = 1 - AdReplyInfo_VIDEO AdReplyInfo_AdReplyInfoMediaType = 2 + Button_UNKNOWN Button_ButtonType = 0 + Button_RESPONSE Button_ButtonType = 1 + Button_NATIVE_FLOW Button_ButtonType = 2 ) -// Enum value maps for AdReplyInfo_AdReplyInfoMediaType. +// Enum value maps for Button_ButtonType. var ( - AdReplyInfo_AdReplyInfoMediaType_name = map[int32]string{ - 0: "NONE", - 1: "IMAGE", - 2: "VIDEO", + Button_ButtonType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RESPONSE", + 2: "NATIVE_FLOW", } - AdReplyInfo_AdReplyInfoMediaType_value = map[string]int32{ - "NONE": 0, - "IMAGE": 1, - "VIDEO": 2, + Button_ButtonType_value = map[string]int32{ + "UNKNOWN": 0, + "RESPONSE": 1, + "NATIVE_FLOW": 2, } ) -func (x AdReplyInfo_AdReplyInfoMediaType) Enum() *AdReplyInfo_AdReplyInfoMediaType { - p := new(AdReplyInfo_AdReplyInfoMediaType) +func (x Button_ButtonType) Enum() *Button_ButtonType { + p := new(Button_ButtonType) *p = x return p } -func (x AdReplyInfo_AdReplyInfoMediaType) String() string { +func (x Button_ButtonType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (AdReplyInfo_AdReplyInfoMediaType) Descriptor() protoreflect.EnumDescriptor { +func (Button_ButtonType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[19].Descriptor() } -func (AdReplyInfo_AdReplyInfoMediaType) Type() protoreflect.EnumType { +func (Button_ButtonType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[19] } -func (x AdReplyInfo_AdReplyInfoMediaType) Number() protoreflect.EnumNumber { +func (x Button_ButtonType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *AdReplyInfo_AdReplyInfoMediaType) UnmarshalJSON(b []byte) error { +func (x *Button_ButtonType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = AdReplyInfo_AdReplyInfoMediaType(num) + *x = Button_ButtonType(num) return nil } -// Deprecated: Use AdReplyInfo_AdReplyInfoMediaType.Descriptor instead. -func (AdReplyInfo_AdReplyInfoMediaType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{74, 0} +// Deprecated: Use Button_ButtonType.Descriptor instead. +func (Button_ButtonType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{63, 0} } -type ExternalAdReplyInfo_ExternalAdReplyInfoMediaType int32 +type DisappearingMode_DisappearingModeInitiator int32 const ( - ExternalAdReplyInfo_NONE ExternalAdReplyInfo_ExternalAdReplyInfoMediaType = 0 - ExternalAdReplyInfo_IMAGE ExternalAdReplyInfo_ExternalAdReplyInfoMediaType = 1 - ExternalAdReplyInfo_VIDEO ExternalAdReplyInfo_ExternalAdReplyInfoMediaType = 2 + DisappearingMode_CHANGED_IN_CHAT DisappearingMode_DisappearingModeInitiator = 0 + DisappearingMode_INITIATED_BY_ME DisappearingMode_DisappearingModeInitiator = 1 + DisappearingMode_INITIATED_BY_OTHER DisappearingMode_DisappearingModeInitiator = 2 ) -// Enum value maps for ExternalAdReplyInfo_ExternalAdReplyInfoMediaType. +// Enum value maps for DisappearingMode_DisappearingModeInitiator. var ( - ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_name = map[int32]string{ - 0: "NONE", - 1: "IMAGE", - 2: "VIDEO", + DisappearingMode_DisappearingModeInitiator_name = map[int32]string{ + 0: "CHANGED_IN_CHAT", + 1: "INITIATED_BY_ME", + 2: "INITIATED_BY_OTHER", } - ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_value = map[string]int32{ - "NONE": 0, - "IMAGE": 1, - "VIDEO": 2, + DisappearingMode_DisappearingModeInitiator_value = map[string]int32{ + "CHANGED_IN_CHAT": 0, + "INITIATED_BY_ME": 1, + "INITIATED_BY_OTHER": 2, } ) -func (x ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) Enum() *ExternalAdReplyInfo_ExternalAdReplyInfoMediaType { - p := new(ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) +func (x DisappearingMode_DisappearingModeInitiator) Enum() *DisappearingMode_DisappearingModeInitiator { + p := new(DisappearingMode_DisappearingModeInitiator) *p = x return p } -func (x ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) String() string { +func (x DisappearingMode_DisappearingModeInitiator) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) Descriptor() protoreflect.EnumDescriptor { +func (DisappearingMode_DisappearingModeInitiator) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[20].Descriptor() } -func (ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) Type() protoreflect.EnumType { +func (DisappearingMode_DisappearingModeInitiator) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[20] } -func (x ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) Number() protoreflect.EnumNumber { +func (x DisappearingMode_DisappearingModeInitiator) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) UnmarshalJSON(b []byte) error { +func (x *DisappearingMode_DisappearingModeInitiator) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ExternalAdReplyInfo_ExternalAdReplyInfoMediaType(num) + *x = DisappearingMode_DisappearingModeInitiator(num) return nil } -// Deprecated: Use ExternalAdReplyInfo_ExternalAdReplyInfoMediaType.Descriptor instead. -func (ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{75, 0} +// Deprecated: Use DisappearingMode_DisappearingModeInitiator.Descriptor instead. +func (DisappearingMode_DisappearingModeInitiator) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{80, 0} } -type InvoiceMessage_InvoiceMessageAttachmentType int32 +type ExternalAdReplyInfo_ExternalAdReplyInfoMediaType int32 const ( - InvoiceMessage_IMAGE InvoiceMessage_InvoiceMessageAttachmentType = 0 - InvoiceMessage_PDF InvoiceMessage_InvoiceMessageAttachmentType = 1 + ExternalAdReplyInfo_NONE ExternalAdReplyInfo_ExternalAdReplyInfoMediaType = 0 + ExternalAdReplyInfo_IMAGE ExternalAdReplyInfo_ExternalAdReplyInfoMediaType = 1 + ExternalAdReplyInfo_VIDEO ExternalAdReplyInfo_ExternalAdReplyInfoMediaType = 2 ) -// Enum value maps for InvoiceMessage_InvoiceMessageAttachmentType. +// Enum value maps for ExternalAdReplyInfo_ExternalAdReplyInfoMediaType. var ( - InvoiceMessage_InvoiceMessageAttachmentType_name = map[int32]string{ - 0: "IMAGE", - 1: "PDF", + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_name = map[int32]string{ + 0: "NONE", + 1: "IMAGE", + 2: "VIDEO", } - InvoiceMessage_InvoiceMessageAttachmentType_value = map[string]int32{ - "IMAGE": 0, - "PDF": 1, + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_value = map[string]int32{ + "NONE": 0, + "IMAGE": 1, + "VIDEO": 2, } ) -func (x InvoiceMessage_InvoiceMessageAttachmentType) Enum() *InvoiceMessage_InvoiceMessageAttachmentType { - p := new(InvoiceMessage_InvoiceMessageAttachmentType) +func (x ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) Enum() *ExternalAdReplyInfo_ExternalAdReplyInfoMediaType { + p := new(ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) *p = x return p } -func (x InvoiceMessage_InvoiceMessageAttachmentType) String() string { +func (x ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (InvoiceMessage_InvoiceMessageAttachmentType) Descriptor() protoreflect.EnumDescriptor { +func (ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[21].Descriptor() } -func (InvoiceMessage_InvoiceMessageAttachmentType) Type() protoreflect.EnumType { +func (ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[21] } -func (x InvoiceMessage_InvoiceMessageAttachmentType) Number() protoreflect.EnumNumber { +func (x ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *InvoiceMessage_InvoiceMessageAttachmentType) UnmarshalJSON(b []byte) error { +func (x *ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = InvoiceMessage_InvoiceMessageAttachmentType(num) + *x = ExternalAdReplyInfo_ExternalAdReplyInfoMediaType(num) return nil } -// Deprecated: Use InvoiceMessage_InvoiceMessageAttachmentType.Descriptor instead. -func (InvoiceMessage_InvoiceMessageAttachmentType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{79, 0} +// Deprecated: Use ExternalAdReplyInfo_ExternalAdReplyInfoMediaType.Descriptor instead. +func (ExternalAdReplyInfo_ExternalAdReplyInfoMediaType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{83, 0} } -type ExtendedTextMessage_ExtendedTextMessageFontType int32 +type AdReplyInfo_AdReplyInfoMediaType int32 const ( - ExtendedTextMessage_SANS_SERIF ExtendedTextMessage_ExtendedTextMessageFontType = 0 - ExtendedTextMessage_SERIF ExtendedTextMessage_ExtendedTextMessageFontType = 1 - ExtendedTextMessage_NORICAN_REGULAR ExtendedTextMessage_ExtendedTextMessageFontType = 2 - ExtendedTextMessage_BRYNDAN_WRITE ExtendedTextMessage_ExtendedTextMessageFontType = 3 - ExtendedTextMessage_BEBASNEUE_REGULAR ExtendedTextMessage_ExtendedTextMessageFontType = 4 - ExtendedTextMessage_OSWALD_HEAVY ExtendedTextMessage_ExtendedTextMessageFontType = 5 + AdReplyInfo_NONE AdReplyInfo_AdReplyInfoMediaType = 0 + AdReplyInfo_IMAGE AdReplyInfo_AdReplyInfoMediaType = 1 + AdReplyInfo_VIDEO AdReplyInfo_AdReplyInfoMediaType = 2 ) -// Enum value maps for ExtendedTextMessage_ExtendedTextMessageFontType. +// Enum value maps for AdReplyInfo_AdReplyInfoMediaType. var ( - ExtendedTextMessage_ExtendedTextMessageFontType_name = map[int32]string{ - 0: "SANS_SERIF", - 1: "SERIF", - 2: "NORICAN_REGULAR", - 3: "BRYNDAN_WRITE", - 4: "BEBASNEUE_REGULAR", - 5: "OSWALD_HEAVY", + AdReplyInfo_AdReplyInfoMediaType_name = map[int32]string{ + 0: "NONE", + 1: "IMAGE", + 2: "VIDEO", } - ExtendedTextMessage_ExtendedTextMessageFontType_value = map[string]int32{ - "SANS_SERIF": 0, - "SERIF": 1, - "NORICAN_REGULAR": 2, - "BRYNDAN_WRITE": 3, - "BEBASNEUE_REGULAR": 4, - "OSWALD_HEAVY": 5, + AdReplyInfo_AdReplyInfoMediaType_value = map[string]int32{ + "NONE": 0, + "IMAGE": 1, + "VIDEO": 2, } ) -func (x ExtendedTextMessage_ExtendedTextMessageFontType) Enum() *ExtendedTextMessage_ExtendedTextMessageFontType { - p := new(ExtendedTextMessage_ExtendedTextMessageFontType) +func (x AdReplyInfo_AdReplyInfoMediaType) Enum() *AdReplyInfo_AdReplyInfoMediaType { + p := new(AdReplyInfo_AdReplyInfoMediaType) *p = x return p } -func (x ExtendedTextMessage_ExtendedTextMessageFontType) String() string { +func (x AdReplyInfo_AdReplyInfoMediaType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ExtendedTextMessage_ExtendedTextMessageFontType) Descriptor() protoreflect.EnumDescriptor { +func (AdReplyInfo_AdReplyInfoMediaType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[22].Descriptor() } -func (ExtendedTextMessage_ExtendedTextMessageFontType) Type() protoreflect.EnumType { +func (AdReplyInfo_AdReplyInfoMediaType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[22] } -func (x ExtendedTextMessage_ExtendedTextMessageFontType) Number() protoreflect.EnumNumber { +func (x AdReplyInfo_AdReplyInfoMediaType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ExtendedTextMessage_ExtendedTextMessageFontType) UnmarshalJSON(b []byte) error { +func (x *AdReplyInfo_AdReplyInfoMediaType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ExtendedTextMessage_ExtendedTextMessageFontType(num) + *x = AdReplyInfo_AdReplyInfoMediaType(num) return nil } -// Deprecated: Use ExtendedTextMessage_ExtendedTextMessageFontType.Descriptor instead. -func (ExtendedTextMessage_ExtendedTextMessageFontType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{82, 0} +// Deprecated: Use AdReplyInfo_AdReplyInfoMediaType.Descriptor instead. +func (AdReplyInfo_AdReplyInfoMediaType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{84, 0} } -type ExtendedTextMessage_ExtendedTextMessagePreviewType int32 +type PaymentBackground_PaymentBackgroundType int32 const ( - ExtendedTextMessage_NONE ExtendedTextMessage_ExtendedTextMessagePreviewType = 0 - ExtendedTextMessage_VIDEO ExtendedTextMessage_ExtendedTextMessagePreviewType = 1 + PaymentBackground_UNKNOWN PaymentBackground_PaymentBackgroundType = 0 + PaymentBackground_DEFAULT PaymentBackground_PaymentBackgroundType = 1 ) -// Enum value maps for ExtendedTextMessage_ExtendedTextMessagePreviewType. +// Enum value maps for PaymentBackground_PaymentBackgroundType. var ( - ExtendedTextMessage_ExtendedTextMessagePreviewType_name = map[int32]string{ - 0: "NONE", - 1: "VIDEO", + PaymentBackground_PaymentBackgroundType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "DEFAULT", } - ExtendedTextMessage_ExtendedTextMessagePreviewType_value = map[string]int32{ - "NONE": 0, - "VIDEO": 1, + PaymentBackground_PaymentBackgroundType_value = map[string]int32{ + "UNKNOWN": 0, + "DEFAULT": 1, } ) -func (x ExtendedTextMessage_ExtendedTextMessagePreviewType) Enum() *ExtendedTextMessage_ExtendedTextMessagePreviewType { - p := new(ExtendedTextMessage_ExtendedTextMessagePreviewType) +func (x PaymentBackground_PaymentBackgroundType) Enum() *PaymentBackground_PaymentBackgroundType { + p := new(PaymentBackground_PaymentBackgroundType) *p = x return p } -func (x ExtendedTextMessage_ExtendedTextMessagePreviewType) String() string { +func (x PaymentBackground_PaymentBackgroundType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ExtendedTextMessage_ExtendedTextMessagePreviewType) Descriptor() protoreflect.EnumDescriptor { +func (PaymentBackground_PaymentBackgroundType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[23].Descriptor() } -func (ExtendedTextMessage_ExtendedTextMessagePreviewType) Type() protoreflect.EnumType { +func (PaymentBackground_PaymentBackgroundType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[23] } -func (x ExtendedTextMessage_ExtendedTextMessagePreviewType) Number() protoreflect.EnumNumber { +func (x PaymentBackground_PaymentBackgroundType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ExtendedTextMessage_ExtendedTextMessagePreviewType) UnmarshalJSON(b []byte) error { +func (x *PaymentBackground_PaymentBackgroundType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ExtendedTextMessage_ExtendedTextMessagePreviewType(num) + *x = PaymentBackground_PaymentBackgroundType(num) return nil } -// Deprecated: Use ExtendedTextMessage_ExtendedTextMessagePreviewType.Descriptor instead. -func (ExtendedTextMessage_ExtendedTextMessagePreviewType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{82, 1} +// Deprecated: Use PaymentBackground_PaymentBackgroundType.Descriptor instead. +func (PaymentBackground_PaymentBackgroundType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{96, 0} } -type ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType int32 +type VideoMessage_VideoMessageAttribution int32 const ( - ExtendedTextMessage_DEFAULT ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType = 0 - ExtendedTextMessage_PARENT ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType = 1 + VideoMessage_NONE VideoMessage_VideoMessageAttribution = 0 + VideoMessage_GIPHY VideoMessage_VideoMessageAttribution = 1 + VideoMessage_TENOR VideoMessage_VideoMessageAttribution = 2 ) -// Enum value maps for ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType. +// Enum value maps for VideoMessage_VideoMessageAttribution. var ( - ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType_name = map[int32]string{ - 0: "DEFAULT", - 1: "PARENT", + VideoMessage_VideoMessageAttribution_name = map[int32]string{ + 0: "NONE", + 1: "GIPHY", + 2: "TENOR", } - ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType_value = map[string]int32{ - "DEFAULT": 0, - "PARENT": 1, + VideoMessage_VideoMessageAttribution_value = map[string]int32{ + "NONE": 0, + "GIPHY": 1, + "TENOR": 2, } ) -func (x ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) Enum() *ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType { - p := new(ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) +func (x VideoMessage_VideoMessageAttribution) Enum() *VideoMessage_VideoMessageAttribution { + p := new(VideoMessage_VideoMessageAttribution) *p = x return p } -func (x ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) String() string { +func (x VideoMessage_VideoMessageAttribution) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) Descriptor() protoreflect.EnumDescriptor { +func (VideoMessage_VideoMessageAttribution) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[24].Descriptor() } -func (ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) Type() protoreflect.EnumType { +func (VideoMessage_VideoMessageAttribution) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[24] } -func (x ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) Number() protoreflect.EnumNumber { +func (x VideoMessage_VideoMessageAttribution) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) UnmarshalJSON(b []byte) error { +func (x *VideoMessage_VideoMessageAttribution) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType(num) + *x = VideoMessage_VideoMessageAttribution(num) return nil } -// Deprecated: Use ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType.Descriptor instead. -func (ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{82, 2} +// Deprecated: Use VideoMessage_VideoMessageAttribution.Descriptor instead. +func (VideoMessage_VideoMessageAttribution) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{101, 0} } -type VideoMessage_VideoMessageAttribution int32 +type HistorySync_HistorySyncHistorySyncType int32 const ( - VideoMessage_NONE VideoMessage_VideoMessageAttribution = 0 - VideoMessage_GIPHY VideoMessage_VideoMessageAttribution = 1 - VideoMessage_TENOR VideoMessage_VideoMessageAttribution = 2 + HistorySync_INITIAL_BOOTSTRAP HistorySync_HistorySyncHistorySyncType = 0 + HistorySync_INITIAL_STATUS_V3 HistorySync_HistorySyncHistorySyncType = 1 + HistorySync_FULL HistorySync_HistorySyncHistorySyncType = 2 + HistorySync_RECENT HistorySync_HistorySyncHistorySyncType = 3 + HistorySync_PUSH_NAME HistorySync_HistorySyncHistorySyncType = 4 ) -// Enum value maps for VideoMessage_VideoMessageAttribution. +// Enum value maps for HistorySync_HistorySyncHistorySyncType. var ( - VideoMessage_VideoMessageAttribution_name = map[int32]string{ - 0: "NONE", - 1: "GIPHY", - 2: "TENOR", + HistorySync_HistorySyncHistorySyncType_name = map[int32]string{ + 0: "INITIAL_BOOTSTRAP", + 1: "INITIAL_STATUS_V3", + 2: "FULL", + 3: "RECENT", + 4: "PUSH_NAME", } - VideoMessage_VideoMessageAttribution_value = map[string]int32{ - "NONE": 0, - "GIPHY": 1, - "TENOR": 2, + HistorySync_HistorySyncHistorySyncType_value = map[string]int32{ + "INITIAL_BOOTSTRAP": 0, + "INITIAL_STATUS_V3": 1, + "FULL": 2, + "RECENT": 3, + "PUSH_NAME": 4, } ) -func (x VideoMessage_VideoMessageAttribution) Enum() *VideoMessage_VideoMessageAttribution { - p := new(VideoMessage_VideoMessageAttribution) +func (x HistorySync_HistorySyncHistorySyncType) Enum() *HistorySync_HistorySyncHistorySyncType { + p := new(HistorySync_HistorySyncHistorySyncType) *p = x return p } -func (x VideoMessage_VideoMessageAttribution) String() string { +func (x HistorySync_HistorySyncHistorySyncType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (VideoMessage_VideoMessageAttribution) Descriptor() protoreflect.EnumDescriptor { +func (HistorySync_HistorySyncHistorySyncType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[25].Descriptor() } -func (VideoMessage_VideoMessageAttribution) Type() protoreflect.EnumType { +func (HistorySync_HistorySyncHistorySyncType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[25] } -func (x VideoMessage_VideoMessageAttribution) Number() protoreflect.EnumNumber { +func (x HistorySync_HistorySyncHistorySyncType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *VideoMessage_VideoMessageAttribution) UnmarshalJSON(b []byte) error { +func (x *HistorySync_HistorySyncHistorySyncType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = VideoMessage_VideoMessageAttribution(num) + *x = HistorySync_HistorySyncHistorySyncType(num) return nil } -// Deprecated: Use VideoMessage_VideoMessageAttribution.Descriptor instead. -func (VideoMessage_VideoMessageAttribution) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{85, 0} +// Deprecated: Use HistorySync_HistorySyncHistorySyncType.Descriptor instead. +func (HistorySync_HistorySyncHistorySyncType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{110, 0} } -type ProtocolMessage_ProtocolMessageType int32 +type GroupParticipant_GroupParticipantRank int32 const ( - ProtocolMessage_REVOKE ProtocolMessage_ProtocolMessageType = 0 - ProtocolMessage_EPHEMERAL_SETTING ProtocolMessage_ProtocolMessageType = 3 - ProtocolMessage_EPHEMERAL_SYNC_RESPONSE ProtocolMessage_ProtocolMessageType = 4 - ProtocolMessage_HISTORY_SYNC_NOTIFICATION ProtocolMessage_ProtocolMessageType = 5 - ProtocolMessage_APP_STATE_SYNC_KEY_SHARE ProtocolMessage_ProtocolMessageType = 6 - ProtocolMessage_APP_STATE_SYNC_KEY_REQUEST ProtocolMessage_ProtocolMessageType = 7 - ProtocolMessage_MSG_FANOUT_BACKFILL_REQUEST ProtocolMessage_ProtocolMessageType = 8 - ProtocolMessage_INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC ProtocolMessage_ProtocolMessageType = 9 - ProtocolMessage_APP_STATE_FATAL_EXCEPTION_NOTIFICATION ProtocolMessage_ProtocolMessageType = 10 + GroupParticipant_REGULAR GroupParticipant_GroupParticipantRank = 0 + GroupParticipant_ADMIN GroupParticipant_GroupParticipantRank = 1 + GroupParticipant_SUPERADMIN GroupParticipant_GroupParticipantRank = 2 ) -// Enum value maps for ProtocolMessage_ProtocolMessageType. +// Enum value maps for GroupParticipant_GroupParticipantRank. var ( - ProtocolMessage_ProtocolMessageType_name = map[int32]string{ - 0: "REVOKE", - 3: "EPHEMERAL_SETTING", - 4: "EPHEMERAL_SYNC_RESPONSE", - 5: "HISTORY_SYNC_NOTIFICATION", - 6: "APP_STATE_SYNC_KEY_SHARE", - 7: "APP_STATE_SYNC_KEY_REQUEST", - 8: "MSG_FANOUT_BACKFILL_REQUEST", - 9: "INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC", - 10: "APP_STATE_FATAL_EXCEPTION_NOTIFICATION", + GroupParticipant_GroupParticipantRank_name = map[int32]string{ + 0: "REGULAR", + 1: "ADMIN", + 2: "SUPERADMIN", } - ProtocolMessage_ProtocolMessageType_value = map[string]int32{ - "REVOKE": 0, - "EPHEMERAL_SETTING": 3, - "EPHEMERAL_SYNC_RESPONSE": 4, - "HISTORY_SYNC_NOTIFICATION": 5, - "APP_STATE_SYNC_KEY_SHARE": 6, - "APP_STATE_SYNC_KEY_REQUEST": 7, - "MSG_FANOUT_BACKFILL_REQUEST": 8, - "INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC": 9, - "APP_STATE_FATAL_EXCEPTION_NOTIFICATION": 10, + GroupParticipant_GroupParticipantRank_value = map[string]int32{ + "REGULAR": 0, + "ADMIN": 1, + "SUPERADMIN": 2, } ) -func (x ProtocolMessage_ProtocolMessageType) Enum() *ProtocolMessage_ProtocolMessageType { - p := new(ProtocolMessage_ProtocolMessageType) +func (x GroupParticipant_GroupParticipantRank) Enum() *GroupParticipant_GroupParticipantRank { + p := new(GroupParticipant_GroupParticipantRank) *p = x return p } -func (x ProtocolMessage_ProtocolMessageType) String() string { +func (x GroupParticipant_GroupParticipantRank) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ProtocolMessage_ProtocolMessageType) Descriptor() protoreflect.EnumDescriptor { +func (GroupParticipant_GroupParticipantRank) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[26].Descriptor() } -func (ProtocolMessage_ProtocolMessageType) Type() protoreflect.EnumType { +func (GroupParticipant_GroupParticipantRank) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[26] } -func (x ProtocolMessage_ProtocolMessageType) Number() protoreflect.EnumNumber { +func (x GroupParticipant_GroupParticipantRank) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ProtocolMessage_ProtocolMessageType) UnmarshalJSON(b []byte) error { +func (x *GroupParticipant_GroupParticipantRank) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ProtocolMessage_ProtocolMessageType(num) + *x = GroupParticipant_GroupParticipantRank(num) return nil } -// Deprecated: Use ProtocolMessage_ProtocolMessageType.Descriptor instead. -func (ProtocolMessage_ProtocolMessageType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{88, 0} +// Deprecated: Use GroupParticipant_GroupParticipantRank.Descriptor instead. +func (GroupParticipant_GroupParticipantRank) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{112, 0} } -type HistorySyncNotification_HistorySyncNotificationHistorySyncType int32 +type Conversation_ConversationEndOfHistoryTransferType int32 const ( - HistorySyncNotification_INITIAL_BOOTSTRAP HistorySyncNotification_HistorySyncNotificationHistorySyncType = 0 - HistorySyncNotification_INITIAL_STATUS_V3 HistorySyncNotification_HistorySyncNotificationHistorySyncType = 1 - HistorySyncNotification_FULL HistorySyncNotification_HistorySyncNotificationHistorySyncType = 2 - HistorySyncNotification_RECENT HistorySyncNotification_HistorySyncNotificationHistorySyncType = 3 - HistorySyncNotification_PUSH_NAME HistorySyncNotification_HistorySyncNotificationHistorySyncType = 4 + Conversation_COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY Conversation_ConversationEndOfHistoryTransferType = 0 + Conversation_COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY Conversation_ConversationEndOfHistoryTransferType = 1 ) -// Enum value maps for HistorySyncNotification_HistorySyncNotificationHistorySyncType. +// Enum value maps for Conversation_ConversationEndOfHistoryTransferType. var ( - HistorySyncNotification_HistorySyncNotificationHistorySyncType_name = map[int32]string{ - 0: "INITIAL_BOOTSTRAP", - 1: "INITIAL_STATUS_V3", - 2: "FULL", - 3: "RECENT", - 4: "PUSH_NAME", + Conversation_ConversationEndOfHistoryTransferType_name = map[int32]string{ + 0: "COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY", + 1: "COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY", } - HistorySyncNotification_HistorySyncNotificationHistorySyncType_value = map[string]int32{ - "INITIAL_BOOTSTRAP": 0, - "INITIAL_STATUS_V3": 1, - "FULL": 2, - "RECENT": 3, - "PUSH_NAME": 4, + Conversation_ConversationEndOfHistoryTransferType_value = map[string]int32{ + "COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY": 0, + "COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY": 1, } ) -func (x HistorySyncNotification_HistorySyncNotificationHistorySyncType) Enum() *HistorySyncNotification_HistorySyncNotificationHistorySyncType { - p := new(HistorySyncNotification_HistorySyncNotificationHistorySyncType) +func (x Conversation_ConversationEndOfHistoryTransferType) Enum() *Conversation_ConversationEndOfHistoryTransferType { + p := new(Conversation_ConversationEndOfHistoryTransferType) *p = x return p } -func (x HistorySyncNotification_HistorySyncNotificationHistorySyncType) String() string { +func (x Conversation_ConversationEndOfHistoryTransferType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (HistorySyncNotification_HistorySyncNotificationHistorySyncType) Descriptor() protoreflect.EnumDescriptor { +func (Conversation_ConversationEndOfHistoryTransferType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[27].Descriptor() } -func (HistorySyncNotification_HistorySyncNotificationHistorySyncType) Type() protoreflect.EnumType { +func (Conversation_ConversationEndOfHistoryTransferType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[27] } -func (x HistorySyncNotification_HistorySyncNotificationHistorySyncType) Number() protoreflect.EnumNumber { +func (x Conversation_ConversationEndOfHistoryTransferType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *HistorySyncNotification_HistorySyncNotificationHistorySyncType) UnmarshalJSON(b []byte) error { +func (x *Conversation_ConversationEndOfHistoryTransferType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = HistorySyncNotification_HistorySyncNotificationHistorySyncType(num) + *x = Conversation_ConversationEndOfHistoryTransferType(num) return nil } -// Deprecated: Use HistorySyncNotification_HistorySyncNotificationHistorySyncType.Descriptor instead. -func (HistorySyncNotification_HistorySyncNotificationHistorySyncType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{89, 0} +// Deprecated: Use Conversation_ConversationEndOfHistoryTransferType.Descriptor instead. +func (Conversation_ConversationEndOfHistoryTransferType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{114, 0} } -type HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType int32 +type MediaRetryNotification_MediaRetryNotificationResultType int32 const ( - HSMDateTimeComponent_MONDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 1 - HSMDateTimeComponent_TUESDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 2 - HSMDateTimeComponent_WEDNESDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 3 - HSMDateTimeComponent_THURSDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 4 - HSMDateTimeComponent_FRIDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 5 - HSMDateTimeComponent_SATURDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 6 - HSMDateTimeComponent_SUNDAY HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType = 7 + MediaRetryNotification_GENERAL_ERROR MediaRetryNotification_MediaRetryNotificationResultType = 0 + MediaRetryNotification_SUCCESS MediaRetryNotification_MediaRetryNotificationResultType = 1 + MediaRetryNotification_NOT_FOUND MediaRetryNotification_MediaRetryNotificationResultType = 2 + MediaRetryNotification_DECRYPTION_ERROR MediaRetryNotification_MediaRetryNotificationResultType = 3 ) -// Enum value maps for HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType. +// Enum value maps for MediaRetryNotification_MediaRetryNotificationResultType. var ( - HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_name = map[int32]string{ - 1: "MONDAY", - 2: "TUESDAY", - 3: "WEDNESDAY", - 4: "THURSDAY", - 5: "FRIDAY", - 6: "SATURDAY", - 7: "SUNDAY", + MediaRetryNotification_MediaRetryNotificationResultType_name = map[int32]string{ + 0: "GENERAL_ERROR", + 1: "SUCCESS", + 2: "NOT_FOUND", + 3: "DECRYPTION_ERROR", } - HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_value = map[string]int32{ - "MONDAY": 1, - "TUESDAY": 2, - "WEDNESDAY": 3, - "THURSDAY": 4, - "FRIDAY": 5, - "SATURDAY": 6, - "SUNDAY": 7, + MediaRetryNotification_MediaRetryNotificationResultType_value = map[string]int32{ + "GENERAL_ERROR": 0, + "SUCCESS": 1, + "NOT_FOUND": 2, + "DECRYPTION_ERROR": 3, } ) -func (x HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) Enum() *HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType { - p := new(HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) +func (x MediaRetryNotification_MediaRetryNotificationResultType) Enum() *MediaRetryNotification_MediaRetryNotificationResultType { + p := new(MediaRetryNotification_MediaRetryNotificationResultType) *p = x return p } -func (x HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) String() string { +func (x MediaRetryNotification_MediaRetryNotificationResultType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) Descriptor() protoreflect.EnumDescriptor { +func (MediaRetryNotification_MediaRetryNotificationResultType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[28].Descriptor() } -func (HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) Type() protoreflect.EnumType { +func (MediaRetryNotification_MediaRetryNotificationResultType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[28] } -func (x HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) Number() protoreflect.EnumNumber { +func (x MediaRetryNotification_MediaRetryNotificationResultType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) UnmarshalJSON(b []byte) error { +func (x *MediaRetryNotification_MediaRetryNotificationResultType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType(num) + *x = MediaRetryNotification_MediaRetryNotificationResultType(num) return nil } -// Deprecated: Use HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType.Descriptor instead. -func (HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{100, 0} +// Deprecated: Use MediaRetryNotification_MediaRetryNotificationResultType.Descriptor instead. +func (MediaRetryNotification_MediaRetryNotificationResultType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{119, 0} } -type HSMDateTimeComponent_HSMDateTimeComponentCalendarType int32 +type SyncdMutation_SyncdMutationSyncdOperation int32 const ( - HSMDateTimeComponent_GREGORIAN HSMDateTimeComponent_HSMDateTimeComponentCalendarType = 1 - HSMDateTimeComponent_SOLAR_HIJRI HSMDateTimeComponent_HSMDateTimeComponentCalendarType = 2 + SyncdMutation_SET SyncdMutation_SyncdMutationSyncdOperation = 0 + SyncdMutation_REMOVE SyncdMutation_SyncdMutationSyncdOperation = 1 ) -// Enum value maps for HSMDateTimeComponent_HSMDateTimeComponentCalendarType. +// Enum value maps for SyncdMutation_SyncdMutationSyncdOperation. var ( - HSMDateTimeComponent_HSMDateTimeComponentCalendarType_name = map[int32]string{ - 1: "GREGORIAN", - 2: "SOLAR_HIJRI", + SyncdMutation_SyncdMutationSyncdOperation_name = map[int32]string{ + 0: "SET", + 1: "REMOVE", } - HSMDateTimeComponent_HSMDateTimeComponentCalendarType_value = map[string]int32{ - "GREGORIAN": 1, - "SOLAR_HIJRI": 2, + SyncdMutation_SyncdMutationSyncdOperation_value = map[string]int32{ + "SET": 0, + "REMOVE": 1, } ) -func (x HSMDateTimeComponent_HSMDateTimeComponentCalendarType) Enum() *HSMDateTimeComponent_HSMDateTimeComponentCalendarType { - p := new(HSMDateTimeComponent_HSMDateTimeComponentCalendarType) +func (x SyncdMutation_SyncdMutationSyncdOperation) Enum() *SyncdMutation_SyncdMutationSyncdOperation { + p := new(SyncdMutation_SyncdMutationSyncdOperation) *p = x return p } -func (x HSMDateTimeComponent_HSMDateTimeComponentCalendarType) String() string { +func (x SyncdMutation_SyncdMutationSyncdOperation) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (HSMDateTimeComponent_HSMDateTimeComponentCalendarType) Descriptor() protoreflect.EnumDescriptor { +func (SyncdMutation_SyncdMutationSyncdOperation) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[29].Descriptor() } -func (HSMDateTimeComponent_HSMDateTimeComponentCalendarType) Type() protoreflect.EnumType { +func (SyncdMutation_SyncdMutationSyncdOperation) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[29] } -func (x HSMDateTimeComponent_HSMDateTimeComponentCalendarType) Number() protoreflect.EnumNumber { +func (x SyncdMutation_SyncdMutationSyncdOperation) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *HSMDateTimeComponent_HSMDateTimeComponentCalendarType) UnmarshalJSON(b []byte) error { +func (x *SyncdMutation_SyncdMutationSyncdOperation) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = HSMDateTimeComponent_HSMDateTimeComponentCalendarType(num) + *x = SyncdMutation_SyncdMutationSyncdOperation(num) return nil } -// Deprecated: Use HSMDateTimeComponent_HSMDateTimeComponentCalendarType.Descriptor instead. -func (HSMDateTimeComponent_HSMDateTimeComponentCalendarType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{100, 1} +// Deprecated: Use SyncdMutation_SyncdMutationSyncdOperation.Descriptor instead. +func (SyncdMutation_SyncdMutationSyncdOperation) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{127, 0} } -type PaymentInviteMessage_PaymentInviteMessageServiceType int32 +type BizIdentityInfo_BizIdentityInfoVerifiedLevelValue int32 const ( - PaymentInviteMessage_UNKNOWN PaymentInviteMessage_PaymentInviteMessageServiceType = 0 - PaymentInviteMessage_FBPAY PaymentInviteMessage_PaymentInviteMessageServiceType = 1 - PaymentInviteMessage_NOVI PaymentInviteMessage_PaymentInviteMessageServiceType = 2 - PaymentInviteMessage_UPI PaymentInviteMessage_PaymentInviteMessageServiceType = 3 + BizIdentityInfo_UNKNOWN BizIdentityInfo_BizIdentityInfoVerifiedLevelValue = 0 + BizIdentityInfo_LOW BizIdentityInfo_BizIdentityInfoVerifiedLevelValue = 1 + BizIdentityInfo_HIGH BizIdentityInfo_BizIdentityInfoVerifiedLevelValue = 2 ) -// Enum value maps for PaymentInviteMessage_PaymentInviteMessageServiceType. +// Enum value maps for BizIdentityInfo_BizIdentityInfoVerifiedLevelValue. var ( - PaymentInviteMessage_PaymentInviteMessageServiceType_name = map[int32]string{ + BizIdentityInfo_BizIdentityInfoVerifiedLevelValue_name = map[int32]string{ 0: "UNKNOWN", - 1: "FBPAY", - 2: "NOVI", - 3: "UPI", + 1: "LOW", + 2: "HIGH", } - PaymentInviteMessage_PaymentInviteMessageServiceType_value = map[string]int32{ + BizIdentityInfo_BizIdentityInfoVerifiedLevelValue_value = map[string]int32{ "UNKNOWN": 0, - "FBPAY": 1, - "NOVI": 2, - "UPI": 3, + "LOW": 1, + "HIGH": 2, } ) -func (x PaymentInviteMessage_PaymentInviteMessageServiceType) Enum() *PaymentInviteMessage_PaymentInviteMessageServiceType { - p := new(PaymentInviteMessage_PaymentInviteMessageServiceType) +func (x BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) Enum() *BizIdentityInfo_BizIdentityInfoVerifiedLevelValue { + p := new(BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) *p = x return p } -func (x PaymentInviteMessage_PaymentInviteMessageServiceType) String() string { +func (x BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (PaymentInviteMessage_PaymentInviteMessageServiceType) Descriptor() protoreflect.EnumDescriptor { +func (BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[30].Descriptor() } -func (PaymentInviteMessage_PaymentInviteMessageServiceType) Type() protoreflect.EnumType { +func (BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[30] } -func (x PaymentInviteMessage_PaymentInviteMessageServiceType) Number() protoreflect.EnumNumber { +func (x BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *PaymentInviteMessage_PaymentInviteMessageServiceType) UnmarshalJSON(b []byte) error { +func (x *BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = PaymentInviteMessage_PaymentInviteMessageServiceType(num) + *x = BizIdentityInfo_BizIdentityInfoVerifiedLevelValue(num) return nil } -// Deprecated: Use PaymentInviteMessage_PaymentInviteMessageServiceType.Descriptor instead. -func (PaymentInviteMessage_PaymentInviteMessageServiceType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{109, 0} +// Deprecated: Use BizIdentityInfo_BizIdentityInfoVerifiedLevelValue.Descriptor instead. +func (BizIdentityInfo_BizIdentityInfoVerifiedLevelValue) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{164, 0} } -type OrderMessage_OrderMessageOrderStatus int32 +type BizIdentityInfo_BizIdentityInfoHostStorageType int32 const ( - OrderMessage_INQUIRY OrderMessage_OrderMessageOrderStatus = 1 + BizIdentityInfo_ON_PREMISE BizIdentityInfo_BizIdentityInfoHostStorageType = 0 + BizIdentityInfo_FACEBOOK BizIdentityInfo_BizIdentityInfoHostStorageType = 1 ) -// Enum value maps for OrderMessage_OrderMessageOrderStatus. +// Enum value maps for BizIdentityInfo_BizIdentityInfoHostStorageType. var ( - OrderMessage_OrderMessageOrderStatus_name = map[int32]string{ - 1: "INQUIRY", + BizIdentityInfo_BizIdentityInfoHostStorageType_name = map[int32]string{ + 0: "ON_PREMISE", + 1: "FACEBOOK", } - OrderMessage_OrderMessageOrderStatus_value = map[string]int32{ - "INQUIRY": 1, + BizIdentityInfo_BizIdentityInfoHostStorageType_value = map[string]int32{ + "ON_PREMISE": 0, + "FACEBOOK": 1, } ) -func (x OrderMessage_OrderMessageOrderStatus) Enum() *OrderMessage_OrderMessageOrderStatus { - p := new(OrderMessage_OrderMessageOrderStatus) +func (x BizIdentityInfo_BizIdentityInfoHostStorageType) Enum() *BizIdentityInfo_BizIdentityInfoHostStorageType { + p := new(BizIdentityInfo_BizIdentityInfoHostStorageType) *p = x return p } -func (x OrderMessage_OrderMessageOrderStatus) String() string { +func (x BizIdentityInfo_BizIdentityInfoHostStorageType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (OrderMessage_OrderMessageOrderStatus) Descriptor() protoreflect.EnumDescriptor { +func (BizIdentityInfo_BizIdentityInfoHostStorageType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[31].Descriptor() } -func (OrderMessage_OrderMessageOrderStatus) Type() protoreflect.EnumType { +func (BizIdentityInfo_BizIdentityInfoHostStorageType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[31] } -func (x OrderMessage_OrderMessageOrderStatus) Number() protoreflect.EnumNumber { +func (x BizIdentityInfo_BizIdentityInfoHostStorageType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *OrderMessage_OrderMessageOrderStatus) UnmarshalJSON(b []byte) error { +func (x *BizIdentityInfo_BizIdentityInfoHostStorageType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = OrderMessage_OrderMessageOrderStatus(num) + *x = BizIdentityInfo_BizIdentityInfoHostStorageType(num) return nil } -// Deprecated: Use OrderMessage_OrderMessageOrderStatus.Descriptor instead. -func (OrderMessage_OrderMessageOrderStatus) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{119, 0} +// Deprecated: Use BizIdentityInfo_BizIdentityInfoHostStorageType.Descriptor instead. +func (BizIdentityInfo_BizIdentityInfoHostStorageType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{164, 1} } -type OrderMessage_OrderMessageOrderSurface int32 +type BizIdentityInfo_BizIdentityInfoActualActorsType int32 const ( - OrderMessage_CATALOG OrderMessage_OrderMessageOrderSurface = 1 + BizIdentityInfo_SELF BizIdentityInfo_BizIdentityInfoActualActorsType = 0 + BizIdentityInfo_BSP BizIdentityInfo_BizIdentityInfoActualActorsType = 1 ) -// Enum value maps for OrderMessage_OrderMessageOrderSurface. +// Enum value maps for BizIdentityInfo_BizIdentityInfoActualActorsType. var ( - OrderMessage_OrderMessageOrderSurface_name = map[int32]string{ - 1: "CATALOG", + BizIdentityInfo_BizIdentityInfoActualActorsType_name = map[int32]string{ + 0: "SELF", + 1: "BSP", } - OrderMessage_OrderMessageOrderSurface_value = map[string]int32{ - "CATALOG": 1, + BizIdentityInfo_BizIdentityInfoActualActorsType_value = map[string]int32{ + "SELF": 0, + "BSP": 1, } ) -func (x OrderMessage_OrderMessageOrderSurface) Enum() *OrderMessage_OrderMessageOrderSurface { - p := new(OrderMessage_OrderMessageOrderSurface) +func (x BizIdentityInfo_BizIdentityInfoActualActorsType) Enum() *BizIdentityInfo_BizIdentityInfoActualActorsType { + p := new(BizIdentityInfo_BizIdentityInfoActualActorsType) *p = x return p } -func (x OrderMessage_OrderMessageOrderSurface) String() string { +func (x BizIdentityInfo_BizIdentityInfoActualActorsType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (OrderMessage_OrderMessageOrderSurface) Descriptor() protoreflect.EnumDescriptor { +func (BizIdentityInfo_BizIdentityInfoActualActorsType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[32].Descriptor() } -func (OrderMessage_OrderMessageOrderSurface) Type() protoreflect.EnumType { +func (BizIdentityInfo_BizIdentityInfoActualActorsType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[32] } -func (x OrderMessage_OrderMessageOrderSurface) Number() protoreflect.EnumNumber { +func (x BizIdentityInfo_BizIdentityInfoActualActorsType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *OrderMessage_OrderMessageOrderSurface) UnmarshalJSON(b []byte) error { +func (x *BizIdentityInfo_BizIdentityInfoActualActorsType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = OrderMessage_OrderMessageOrderSurface(num) + *x = BizIdentityInfo_BizIdentityInfoActualActorsType(num) return nil } -// Deprecated: Use OrderMessage_OrderMessageOrderSurface.Descriptor instead. -func (OrderMessage_OrderMessageOrderSurface) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{119, 1} +// Deprecated: Use BizIdentityInfo_BizIdentityInfoActualActorsType.Descriptor instead. +func (BizIdentityInfo_BizIdentityInfoActualActorsType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{164, 2} } -type ListMessage_ListMessageListType int32 +type BizAccountLinkInfo_BizAccountLinkInfoHostStorageType int32 const ( - ListMessage_UNKNOWN ListMessage_ListMessageListType = 0 - ListMessage_SINGLE_SELECT ListMessage_ListMessageListType = 1 - ListMessage_PRODUCT_LIST ListMessage_ListMessageListType = 2 + BizAccountLinkInfo_ON_PREMISE BizAccountLinkInfo_BizAccountLinkInfoHostStorageType = 0 + BizAccountLinkInfo_FACEBOOK BizAccountLinkInfo_BizAccountLinkInfoHostStorageType = 1 ) -// Enum value maps for ListMessage_ListMessageListType. +// Enum value maps for BizAccountLinkInfo_BizAccountLinkInfoHostStorageType. var ( - ListMessage_ListMessageListType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "SINGLE_SELECT", - 2: "PRODUCT_LIST", + BizAccountLinkInfo_BizAccountLinkInfoHostStorageType_name = map[int32]string{ + 0: "ON_PREMISE", + 1: "FACEBOOK", } - ListMessage_ListMessageListType_value = map[string]int32{ - "UNKNOWN": 0, - "SINGLE_SELECT": 1, - "PRODUCT_LIST": 2, + BizAccountLinkInfo_BizAccountLinkInfoHostStorageType_value = map[string]int32{ + "ON_PREMISE": 0, + "FACEBOOK": 1, } ) -func (x ListMessage_ListMessageListType) Enum() *ListMessage_ListMessageListType { - p := new(ListMessage_ListMessageListType) +func (x BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) Enum() *BizAccountLinkInfo_BizAccountLinkInfoHostStorageType { + p := new(BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) *p = x return p } -func (x ListMessage_ListMessageListType) String() string { +func (x BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ListMessage_ListMessageListType) Descriptor() protoreflect.EnumDescriptor { +func (BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[33].Descriptor() } -func (ListMessage_ListMessageListType) Type() protoreflect.EnumType { +func (BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[33] } -func (x ListMessage_ListMessageListType) Number() protoreflect.EnumNumber { +func (x BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ListMessage_ListMessageListType) UnmarshalJSON(b []byte) error { +func (x *BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ListMessage_ListMessageListType(num) + *x = BizAccountLinkInfo_BizAccountLinkInfoHostStorageType(num) return nil } -// Deprecated: Use ListMessage_ListMessageListType.Descriptor instead. -func (ListMessage_ListMessageListType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{126, 0} +// Deprecated: Use BizAccountLinkInfo_BizAccountLinkInfoHostStorageType.Descriptor instead. +func (BizAccountLinkInfo_BizAccountLinkInfoHostStorageType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{166, 0} } -type ListResponseMessage_ListResponseMessageListType int32 +type BizAccountLinkInfo_BizAccountLinkInfoAccountType int32 const ( - ListResponseMessage_UNKNOWN ListResponseMessage_ListResponseMessageListType = 0 - ListResponseMessage_SINGLE_SELECT ListResponseMessage_ListResponseMessageListType = 1 + BizAccountLinkInfo_ENTERPRISE BizAccountLinkInfo_BizAccountLinkInfoAccountType = 0 ) -// Enum value maps for ListResponseMessage_ListResponseMessageListType. +// Enum value maps for BizAccountLinkInfo_BizAccountLinkInfoAccountType. var ( - ListResponseMessage_ListResponseMessageListType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "SINGLE_SELECT", + BizAccountLinkInfo_BizAccountLinkInfoAccountType_name = map[int32]string{ + 0: "ENTERPRISE", } - ListResponseMessage_ListResponseMessageListType_value = map[string]int32{ - "UNKNOWN": 0, - "SINGLE_SELECT": 1, + BizAccountLinkInfo_BizAccountLinkInfoAccountType_value = map[string]int32{ + "ENTERPRISE": 0, } ) -func (x ListResponseMessage_ListResponseMessageListType) Enum() *ListResponseMessage_ListResponseMessageListType { - p := new(ListResponseMessage_ListResponseMessageListType) +func (x BizAccountLinkInfo_BizAccountLinkInfoAccountType) Enum() *BizAccountLinkInfo_BizAccountLinkInfoAccountType { + p := new(BizAccountLinkInfo_BizAccountLinkInfoAccountType) *p = x return p } -func (x ListResponseMessage_ListResponseMessageListType) String() string { +func (x BizAccountLinkInfo_BizAccountLinkInfoAccountType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ListResponseMessage_ListResponseMessageListType) Descriptor() protoreflect.EnumDescriptor { +func (BizAccountLinkInfo_BizAccountLinkInfoAccountType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[34].Descriptor() } -func (ListResponseMessage_ListResponseMessageListType) Type() protoreflect.EnumType { +func (BizAccountLinkInfo_BizAccountLinkInfoAccountType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[34] } -func (x ListResponseMessage_ListResponseMessageListType) Number() protoreflect.EnumNumber { +func (x BizAccountLinkInfo_BizAccountLinkInfoAccountType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ListResponseMessage_ListResponseMessageListType) UnmarshalJSON(b []byte) error { +func (x *BizAccountLinkInfo_BizAccountLinkInfoAccountType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ListResponseMessage_ListResponseMessageListType(num) + *x = BizAccountLinkInfo_BizAccountLinkInfoAccountType(num) return nil } -// Deprecated: Use ListResponseMessage_ListResponseMessageListType.Descriptor instead. -func (ListResponseMessage_ListResponseMessageListType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{128, 0} +// Deprecated: Use BizAccountLinkInfo_BizAccountLinkInfoAccountType.Descriptor instead. +func (BizAccountLinkInfo_BizAccountLinkInfoAccountType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{166, 1} } -type ShopMessage_ShopMessageSurface int32 +type ClientPayload_ClientPayloadConnectType int32 const ( - ShopMessage_UNKNOWN_SURFACE ShopMessage_ShopMessageSurface = 0 - ShopMessage_FB ShopMessage_ShopMessageSurface = 1 - ShopMessage_IG ShopMessage_ShopMessageSurface = 2 - ShopMessage_WA ShopMessage_ShopMessageSurface = 3 + ClientPayload_CELLULAR_UNKNOWN ClientPayload_ClientPayloadConnectType = 0 + ClientPayload_WIFI_UNKNOWN ClientPayload_ClientPayloadConnectType = 1 + ClientPayload_CELLULAR_EDGE ClientPayload_ClientPayloadConnectType = 100 + ClientPayload_CELLULAR_IDEN ClientPayload_ClientPayloadConnectType = 101 + ClientPayload_CELLULAR_UMTS ClientPayload_ClientPayloadConnectType = 102 + ClientPayload_CELLULAR_EVDO ClientPayload_ClientPayloadConnectType = 103 + ClientPayload_CELLULAR_GPRS ClientPayload_ClientPayloadConnectType = 104 + ClientPayload_CELLULAR_HSDPA ClientPayload_ClientPayloadConnectType = 105 + ClientPayload_CELLULAR_HSUPA ClientPayload_ClientPayloadConnectType = 106 + ClientPayload_CELLULAR_HSPA ClientPayload_ClientPayloadConnectType = 107 + ClientPayload_CELLULAR_CDMA ClientPayload_ClientPayloadConnectType = 108 + ClientPayload_CELLULAR_1XRTT ClientPayload_ClientPayloadConnectType = 109 + ClientPayload_CELLULAR_EHRPD ClientPayload_ClientPayloadConnectType = 110 + ClientPayload_CELLULAR_LTE ClientPayload_ClientPayloadConnectType = 111 + ClientPayload_CELLULAR_HSPAP ClientPayload_ClientPayloadConnectType = 112 ) -// Enum value maps for ShopMessage_ShopMessageSurface. +// Enum value maps for ClientPayload_ClientPayloadConnectType. var ( - ShopMessage_ShopMessageSurface_name = map[int32]string{ - 0: "UNKNOWN_SURFACE", - 1: "FB", - 2: "IG", - 3: "WA", + ClientPayload_ClientPayloadConnectType_name = map[int32]string{ + 0: "CELLULAR_UNKNOWN", + 1: "WIFI_UNKNOWN", + 100: "CELLULAR_EDGE", + 101: "CELLULAR_IDEN", + 102: "CELLULAR_UMTS", + 103: "CELLULAR_EVDO", + 104: "CELLULAR_GPRS", + 105: "CELLULAR_HSDPA", + 106: "CELLULAR_HSUPA", + 107: "CELLULAR_HSPA", + 108: "CELLULAR_CDMA", + 109: "CELLULAR_1XRTT", + 110: "CELLULAR_EHRPD", + 111: "CELLULAR_LTE", + 112: "CELLULAR_HSPAP", } - ShopMessage_ShopMessageSurface_value = map[string]int32{ - "UNKNOWN_SURFACE": 0, - "FB": 1, - "IG": 2, - "WA": 3, + ClientPayload_ClientPayloadConnectType_value = map[string]int32{ + "CELLULAR_UNKNOWN": 0, + "WIFI_UNKNOWN": 1, + "CELLULAR_EDGE": 100, + "CELLULAR_IDEN": 101, + "CELLULAR_UMTS": 102, + "CELLULAR_EVDO": 103, + "CELLULAR_GPRS": 104, + "CELLULAR_HSDPA": 105, + "CELLULAR_HSUPA": 106, + "CELLULAR_HSPA": 107, + "CELLULAR_CDMA": 108, + "CELLULAR_1XRTT": 109, + "CELLULAR_EHRPD": 110, + "CELLULAR_LTE": 111, + "CELLULAR_HSPAP": 112, } ) -func (x ShopMessage_ShopMessageSurface) Enum() *ShopMessage_ShopMessageSurface { - p := new(ShopMessage_ShopMessageSurface) +func (x ClientPayload_ClientPayloadConnectType) Enum() *ClientPayload_ClientPayloadConnectType { + p := new(ClientPayload_ClientPayloadConnectType) *p = x return p } -func (x ShopMessage_ShopMessageSurface) String() string { +func (x ClientPayload_ClientPayloadConnectType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ShopMessage_ShopMessageSurface) Descriptor() protoreflect.EnumDescriptor { +func (ClientPayload_ClientPayloadConnectType) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[35].Descriptor() } -func (ShopMessage_ShopMessageSurface) Type() protoreflect.EnumType { +func (ClientPayload_ClientPayloadConnectType) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[35] } -func (x ShopMessage_ShopMessageSurface) Number() protoreflect.EnumNumber { +func (x ClientPayload_ClientPayloadConnectType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ShopMessage_ShopMessageSurface) UnmarshalJSON(b []byte) error { +func (x *ClientPayload_ClientPayloadConnectType) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ShopMessage_ShopMessageSurface(num) + *x = ClientPayload_ClientPayloadConnectType(num) return nil } -// Deprecated: Use ShopMessage_ShopMessageSurface.Descriptor instead. -func (ShopMessage_ShopMessageSurface) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{132, 0} +// Deprecated: Use ClientPayload_ClientPayloadConnectType.Descriptor instead. +func (ClientPayload_ClientPayloadConnectType) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{173, 0} } -type GroupInviteMessage_GroupInviteMessageGroupType int32 +type ClientPayload_ClientPayloadConnectReason int32 const ( - GroupInviteMessage_DEFAULT GroupInviteMessage_GroupInviteMessageGroupType = 0 - GroupInviteMessage_PARENT GroupInviteMessage_GroupInviteMessageGroupType = 1 + ClientPayload_PUSH ClientPayload_ClientPayloadConnectReason = 0 + ClientPayload_USER_ACTIVATED ClientPayload_ClientPayloadConnectReason = 1 + ClientPayload_SCHEDULED ClientPayload_ClientPayloadConnectReason = 2 + ClientPayload_ERROR_RECONNECT ClientPayload_ClientPayloadConnectReason = 3 + ClientPayload_NETWORK_SWITCH ClientPayload_ClientPayloadConnectReason = 4 + ClientPayload_PING_RECONNECT ClientPayload_ClientPayloadConnectReason = 5 ) -// Enum value maps for GroupInviteMessage_GroupInviteMessageGroupType. +// Enum value maps for ClientPayload_ClientPayloadConnectReason. var ( - GroupInviteMessage_GroupInviteMessageGroupType_name = map[int32]string{ - 0: "DEFAULT", - 1: "PARENT", + ClientPayload_ClientPayloadConnectReason_name = map[int32]string{ + 0: "PUSH", + 1: "USER_ACTIVATED", + 2: "SCHEDULED", + 3: "ERROR_RECONNECT", + 4: "NETWORK_SWITCH", + 5: "PING_RECONNECT", } - GroupInviteMessage_GroupInviteMessageGroupType_value = map[string]int32{ - "DEFAULT": 0, - "PARENT": 1, + ClientPayload_ClientPayloadConnectReason_value = map[string]int32{ + "PUSH": 0, + "USER_ACTIVATED": 1, + "SCHEDULED": 2, + "ERROR_RECONNECT": 3, + "NETWORK_SWITCH": 4, + "PING_RECONNECT": 5, } ) -func (x GroupInviteMessage_GroupInviteMessageGroupType) Enum() *GroupInviteMessage_GroupInviteMessageGroupType { - p := new(GroupInviteMessage_GroupInviteMessageGroupType) +func (x ClientPayload_ClientPayloadConnectReason) Enum() *ClientPayload_ClientPayloadConnectReason { + p := new(ClientPayload_ClientPayloadConnectReason) *p = x return p } -func (x GroupInviteMessage_GroupInviteMessageGroupType) String() string { +func (x ClientPayload_ClientPayloadConnectReason) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (GroupInviteMessage_GroupInviteMessageGroupType) Descriptor() protoreflect.EnumDescriptor { +func (ClientPayload_ClientPayloadConnectReason) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[36].Descriptor() } -func (GroupInviteMessage_GroupInviteMessageGroupType) Type() protoreflect.EnumType { +func (ClientPayload_ClientPayloadConnectReason) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[36] } -func (x GroupInviteMessage_GroupInviteMessageGroupType) Number() protoreflect.EnumNumber { +func (x ClientPayload_ClientPayloadConnectReason) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *GroupInviteMessage_GroupInviteMessageGroupType) UnmarshalJSON(b []byte) error { +func (x *ClientPayload_ClientPayloadConnectReason) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = GroupInviteMessage_GroupInviteMessageGroupType(num) + *x = ClientPayload_ClientPayloadConnectReason(num) return nil } -// Deprecated: Use GroupInviteMessage_GroupInviteMessageGroupType.Descriptor instead. -func (GroupInviteMessage_GroupInviteMessageGroupType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{137, 0} +// Deprecated: Use ClientPayload_ClientPayloadConnectReason.Descriptor instead. +func (ClientPayload_ClientPayloadConnectReason) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{173, 1} } -type Button_ButtonType int32 +type ClientPayload_ClientPayloadProduct int32 const ( - Button_UNKNOWN Button_ButtonType = 0 - Button_RESPONSE Button_ButtonType = 1 - Button_NATIVE_FLOW Button_ButtonType = 2 + ClientPayload_WHATSAPP ClientPayload_ClientPayloadProduct = 0 + ClientPayload_MESSENGER ClientPayload_ClientPayloadProduct = 1 ) -// Enum value maps for Button_ButtonType. +// Enum value maps for ClientPayload_ClientPayloadProduct. var ( - Button_ButtonType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RESPONSE", - 2: "NATIVE_FLOW", + ClientPayload_ClientPayloadProduct_name = map[int32]string{ + 0: "WHATSAPP", + 1: "MESSENGER", } - Button_ButtonType_value = map[string]int32{ - "UNKNOWN": 0, - "RESPONSE": 1, - "NATIVE_FLOW": 2, + ClientPayload_ClientPayloadProduct_value = map[string]int32{ + "WHATSAPP": 0, + "MESSENGER": 1, } ) -func (x Button_ButtonType) Enum() *Button_ButtonType { - p := new(Button_ButtonType) +func (x ClientPayload_ClientPayloadProduct) Enum() *ClientPayload_ClientPayloadProduct { + p := new(ClientPayload_ClientPayloadProduct) *p = x return p } -func (x Button_ButtonType) String() string { +func (x ClientPayload_ClientPayloadProduct) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (Button_ButtonType) Descriptor() protoreflect.EnumDescriptor { +func (ClientPayload_ClientPayloadProduct) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[37].Descriptor() } -func (Button_ButtonType) Type() protoreflect.EnumType { +func (ClientPayload_ClientPayloadProduct) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[37] } -func (x Button_ButtonType) Number() protoreflect.EnumNumber { +func (x ClientPayload_ClientPayloadProduct) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *Button_ButtonType) UnmarshalJSON(b []byte) error { +func (x *ClientPayload_ClientPayloadProduct) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = Button_ButtonType(num) + *x = ClientPayload_ClientPayloadProduct(num) return nil } -// Deprecated: Use Button_ButtonType.Descriptor instead. -func (Button_ButtonType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{142, 0} +// Deprecated: Use ClientPayload_ClientPayloadProduct.Descriptor instead. +func (ClientPayload_ClientPayloadProduct) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{173, 2} } -type ButtonsMessage_ButtonsMessageHeaderType int32 +type ClientPayload_ClientPayloadIOSAppExtension int32 const ( - ButtonsMessage_UNKNOWN ButtonsMessage_ButtonsMessageHeaderType = 0 - ButtonsMessage_EMPTY ButtonsMessage_ButtonsMessageHeaderType = 1 - ButtonsMessage_TEXT ButtonsMessage_ButtonsMessageHeaderType = 2 - ButtonsMessage_DOCUMENT ButtonsMessage_ButtonsMessageHeaderType = 3 - ButtonsMessage_IMAGE ButtonsMessage_ButtonsMessageHeaderType = 4 - ButtonsMessage_VIDEO ButtonsMessage_ButtonsMessageHeaderType = 5 - ButtonsMessage_LOCATION ButtonsMessage_ButtonsMessageHeaderType = 6 + ClientPayload_SHARE_EXTENSION ClientPayload_ClientPayloadIOSAppExtension = 0 + ClientPayload_SERVICE_EXTENSION ClientPayload_ClientPayloadIOSAppExtension = 1 + ClientPayload_INTENTS_EXTENSION ClientPayload_ClientPayloadIOSAppExtension = 2 ) -// Enum value maps for ButtonsMessage_ButtonsMessageHeaderType. +// Enum value maps for ClientPayload_ClientPayloadIOSAppExtension. var ( - ButtonsMessage_ButtonsMessageHeaderType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "EMPTY", - 2: "TEXT", - 3: "DOCUMENT", - 4: "IMAGE", - 5: "VIDEO", - 6: "LOCATION", + ClientPayload_ClientPayloadIOSAppExtension_name = map[int32]string{ + 0: "SHARE_EXTENSION", + 1: "SERVICE_EXTENSION", + 2: "INTENTS_EXTENSION", } - ButtonsMessage_ButtonsMessageHeaderType_value = map[string]int32{ - "UNKNOWN": 0, - "EMPTY": 1, - "TEXT": 2, - "DOCUMENT": 3, - "IMAGE": 4, - "VIDEO": 5, - "LOCATION": 6, + ClientPayload_ClientPayloadIOSAppExtension_value = map[string]int32{ + "SHARE_EXTENSION": 0, + "SERVICE_EXTENSION": 1, + "INTENTS_EXTENSION": 2, } ) -func (x ButtonsMessage_ButtonsMessageHeaderType) Enum() *ButtonsMessage_ButtonsMessageHeaderType { - p := new(ButtonsMessage_ButtonsMessageHeaderType) +func (x ClientPayload_ClientPayloadIOSAppExtension) Enum() *ClientPayload_ClientPayloadIOSAppExtension { + p := new(ClientPayload_ClientPayloadIOSAppExtension) *p = x return p } -func (x ButtonsMessage_ButtonsMessageHeaderType) String() string { +func (x ClientPayload_ClientPayloadIOSAppExtension) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ButtonsMessage_ButtonsMessageHeaderType) Descriptor() protoreflect.EnumDescriptor { +func (ClientPayload_ClientPayloadIOSAppExtension) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[38].Descriptor() } -func (ButtonsMessage_ButtonsMessageHeaderType) Type() protoreflect.EnumType { +func (ClientPayload_ClientPayloadIOSAppExtension) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[38] } -func (x ButtonsMessage_ButtonsMessageHeaderType) Number() protoreflect.EnumNumber { +func (x ClientPayload_ClientPayloadIOSAppExtension) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ButtonsMessage_ButtonsMessageHeaderType) UnmarshalJSON(b []byte) error { +func (x *ClientPayload_ClientPayloadIOSAppExtension) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ButtonsMessage_ButtonsMessageHeaderType(num) + *x = ClientPayload_ClientPayloadIOSAppExtension(num) return nil } -// Deprecated: Use ButtonsMessage_ButtonsMessageHeaderType.Descriptor instead. -func (ButtonsMessage_ButtonsMessageHeaderType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{143, 0} +// Deprecated: Use ClientPayload_ClientPayloadIOSAppExtension.Descriptor instead. +func (ClientPayload_ClientPayloadIOSAppExtension) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{173, 3} } -type ButtonsResponseMessage_ButtonsResponseMessageType int32 +type WebInfo_WebInfoWebSubPlatform int32 const ( - ButtonsResponseMessage_UNKNOWN ButtonsResponseMessage_ButtonsResponseMessageType = 0 - ButtonsResponseMessage_DISPLAY_TEXT ButtonsResponseMessage_ButtonsResponseMessageType = 1 + WebInfo_WEB_BROWSER WebInfo_WebInfoWebSubPlatform = 0 + WebInfo_APP_STORE WebInfo_WebInfoWebSubPlatform = 1 + WebInfo_WIN_STORE WebInfo_WebInfoWebSubPlatform = 2 + WebInfo_DARWIN WebInfo_WebInfoWebSubPlatform = 3 + WebInfo_WIN32 WebInfo_WebInfoWebSubPlatform = 4 ) -// Enum value maps for ButtonsResponseMessage_ButtonsResponseMessageType. +// Enum value maps for WebInfo_WebInfoWebSubPlatform. var ( - ButtonsResponseMessage_ButtonsResponseMessageType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "DISPLAY_TEXT", + WebInfo_WebInfoWebSubPlatform_name = map[int32]string{ + 0: "WEB_BROWSER", + 1: "APP_STORE", + 2: "WIN_STORE", + 3: "DARWIN", + 4: "WIN32", } - ButtonsResponseMessage_ButtonsResponseMessageType_value = map[string]int32{ - "UNKNOWN": 0, - "DISPLAY_TEXT": 1, + WebInfo_WebInfoWebSubPlatform_value = map[string]int32{ + "WEB_BROWSER": 0, + "APP_STORE": 1, + "WIN_STORE": 2, + "DARWIN": 3, + "WIN32": 4, } ) -func (x ButtonsResponseMessage_ButtonsResponseMessageType) Enum() *ButtonsResponseMessage_ButtonsResponseMessageType { - p := new(ButtonsResponseMessage_ButtonsResponseMessageType) +func (x WebInfo_WebInfoWebSubPlatform) Enum() *WebInfo_WebInfoWebSubPlatform { + p := new(WebInfo_WebInfoWebSubPlatform) *p = x return p } -func (x ButtonsResponseMessage_ButtonsResponseMessageType) String() string { +func (x WebInfo_WebInfoWebSubPlatform) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ButtonsResponseMessage_ButtonsResponseMessageType) Descriptor() protoreflect.EnumDescriptor { +func (WebInfo_WebInfoWebSubPlatform) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[39].Descriptor() } -func (ButtonsResponseMessage_ButtonsResponseMessageType) Type() protoreflect.EnumType { +func (WebInfo_WebInfoWebSubPlatform) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[39] } -func (x ButtonsResponseMessage_ButtonsResponseMessageType) Number() protoreflect.EnumNumber { +func (x WebInfo_WebInfoWebSubPlatform) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *ButtonsResponseMessage_ButtonsResponseMessageType) UnmarshalJSON(b []byte) error { +func (x *WebInfo_WebInfoWebSubPlatform) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = ButtonsResponseMessage_ButtonsResponseMessageType(num) + *x = WebInfo_WebInfoWebSubPlatform(num) return nil } -// Deprecated: Use ButtonsResponseMessage_ButtonsResponseMessageType.Descriptor instead. -func (ButtonsResponseMessage_ButtonsResponseMessageType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{144, 0} +// Deprecated: Use WebInfo_WebInfoWebSubPlatform.Descriptor instead. +func (WebInfo_WebInfoWebSubPlatform) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{174, 0} } -type DisappearingMode_DisappearingModeInitiator int32 +type UserAgent_UserAgentPlatform int32 const ( - DisappearingMode_CHANGED_IN_CHAT DisappearingMode_DisappearingModeInitiator = 0 - DisappearingMode_INITIATED_BY_ME DisappearingMode_DisappearingModeInitiator = 1 - DisappearingMode_INITIATED_BY_OTHER DisappearingMode_DisappearingModeInitiator = 2 + UserAgent_ANDROID UserAgent_UserAgentPlatform = 0 + UserAgent_IOS UserAgent_UserAgentPlatform = 1 + UserAgent_WINDOWS_PHONE UserAgent_UserAgentPlatform = 2 + UserAgent_BLACKBERRY UserAgent_UserAgentPlatform = 3 + UserAgent_BLACKBERRYX UserAgent_UserAgentPlatform = 4 + UserAgent_S40 UserAgent_UserAgentPlatform = 5 + UserAgent_S60 UserAgent_UserAgentPlatform = 6 + UserAgent_PYTHON_CLIENT UserAgent_UserAgentPlatform = 7 + UserAgent_TIZEN UserAgent_UserAgentPlatform = 8 + UserAgent_ENTERPRISE UserAgent_UserAgentPlatform = 9 + UserAgent_SMB_ANDROID UserAgent_UserAgentPlatform = 10 + UserAgent_KAIOS UserAgent_UserAgentPlatform = 11 + UserAgent_SMB_IOS UserAgent_UserAgentPlatform = 12 + UserAgent_WINDOWS UserAgent_UserAgentPlatform = 13 + UserAgent_WEB UserAgent_UserAgentPlatform = 14 + UserAgent_PORTAL UserAgent_UserAgentPlatform = 15 + UserAgent_GREEN_ANDROID UserAgent_UserAgentPlatform = 16 + UserAgent_GREEN_IPHONE UserAgent_UserAgentPlatform = 17 + UserAgent_BLUE_ANDROID UserAgent_UserAgentPlatform = 18 + UserAgent_BLUE_IPHONE UserAgent_UserAgentPlatform = 19 + UserAgent_FBLITE_ANDROID UserAgent_UserAgentPlatform = 20 + UserAgent_MLITE_ANDROID UserAgent_UserAgentPlatform = 21 + UserAgent_IGLITE_ANDROID UserAgent_UserAgentPlatform = 22 + UserAgent_PAGE UserAgent_UserAgentPlatform = 23 + UserAgent_MACOS UserAgent_UserAgentPlatform = 24 + UserAgent_OCULUS_MSG UserAgent_UserAgentPlatform = 25 + UserAgent_OCULUS_CALL UserAgent_UserAgentPlatform = 26 + UserAgent_MILAN UserAgent_UserAgentPlatform = 27 + UserAgent_CAPI UserAgent_UserAgentPlatform = 28 ) -// Enum value maps for DisappearingMode_DisappearingModeInitiator. +// Enum value maps for UserAgent_UserAgentPlatform. var ( - DisappearingMode_DisappearingModeInitiator_name = map[int32]string{ - 0: "CHANGED_IN_CHAT", - 1: "INITIATED_BY_ME", - 2: "INITIATED_BY_OTHER", + UserAgent_UserAgentPlatform_name = map[int32]string{ + 0: "ANDROID", + 1: "IOS", + 2: "WINDOWS_PHONE", + 3: "BLACKBERRY", + 4: "BLACKBERRYX", + 5: "S40", + 6: "S60", + 7: "PYTHON_CLIENT", + 8: "TIZEN", + 9: "ENTERPRISE", + 10: "SMB_ANDROID", + 11: "KAIOS", + 12: "SMB_IOS", + 13: "WINDOWS", + 14: "WEB", + 15: "PORTAL", + 16: "GREEN_ANDROID", + 17: "GREEN_IPHONE", + 18: "BLUE_ANDROID", + 19: "BLUE_IPHONE", + 20: "FBLITE_ANDROID", + 21: "MLITE_ANDROID", + 22: "IGLITE_ANDROID", + 23: "PAGE", + 24: "MACOS", + 25: "OCULUS_MSG", + 26: "OCULUS_CALL", + 27: "MILAN", + 28: "CAPI", } - DisappearingMode_DisappearingModeInitiator_value = map[string]int32{ - "CHANGED_IN_CHAT": 0, - "INITIATED_BY_ME": 1, - "INITIATED_BY_OTHER": 2, + UserAgent_UserAgentPlatform_value = map[string]int32{ + "ANDROID": 0, + "IOS": 1, + "WINDOWS_PHONE": 2, + "BLACKBERRY": 3, + "BLACKBERRYX": 4, + "S40": 5, + "S60": 6, + "PYTHON_CLIENT": 7, + "TIZEN": 8, + "ENTERPRISE": 9, + "SMB_ANDROID": 10, + "KAIOS": 11, + "SMB_IOS": 12, + "WINDOWS": 13, + "WEB": 14, + "PORTAL": 15, + "GREEN_ANDROID": 16, + "GREEN_IPHONE": 17, + "BLUE_ANDROID": 18, + "BLUE_IPHONE": 19, + "FBLITE_ANDROID": 20, + "MLITE_ANDROID": 21, + "IGLITE_ANDROID": 22, + "PAGE": 23, + "MACOS": 24, + "OCULUS_MSG": 25, + "OCULUS_CALL": 26, + "MILAN": 27, + "CAPI": 28, } ) -func (x DisappearingMode_DisappearingModeInitiator) Enum() *DisappearingMode_DisappearingModeInitiator { - p := new(DisappearingMode_DisappearingModeInitiator) +func (x UserAgent_UserAgentPlatform) Enum() *UserAgent_UserAgentPlatform { + p := new(UserAgent_UserAgentPlatform) *p = x return p } -func (x DisappearingMode_DisappearingModeInitiator) String() string { +func (x UserAgent_UserAgentPlatform) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (DisappearingMode_DisappearingModeInitiator) Descriptor() protoreflect.EnumDescriptor { +func (UserAgent_UserAgentPlatform) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[40].Descriptor() } -func (DisappearingMode_DisappearingModeInitiator) Type() protoreflect.EnumType { +func (UserAgent_UserAgentPlatform) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[40] } -func (x DisappearingMode_DisappearingModeInitiator) Number() protoreflect.EnumNumber { +func (x UserAgent_UserAgentPlatform) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *DisappearingMode_DisappearingModeInitiator) UnmarshalJSON(b []byte) error { +func (x *UserAgent_UserAgentPlatform) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = DisappearingMode_DisappearingModeInitiator(num) + *x = UserAgent_UserAgentPlatform(num) return nil } -// Deprecated: Use DisappearingMode_DisappearingModeInitiator.Descriptor instead. -func (DisappearingMode_DisappearingModeInitiator) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{149, 0} +// Deprecated: Use UserAgent_UserAgentPlatform.Descriptor instead. +func (UserAgent_UserAgentPlatform) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{176, 0} } -type PaymentBackground_PaymentBackgroundType int32 +type UserAgent_UserAgentReleaseChannel int32 const ( - PaymentBackground_UNKNOWN PaymentBackground_PaymentBackgroundType = 0 - PaymentBackground_DEFAULT PaymentBackground_PaymentBackgroundType = 1 + UserAgent_RELEASE UserAgent_UserAgentReleaseChannel = 0 + UserAgent_BETA UserAgent_UserAgentReleaseChannel = 1 + UserAgent_ALPHA UserAgent_UserAgentReleaseChannel = 2 + UserAgent_DEBUG UserAgent_UserAgentReleaseChannel = 3 ) -// Enum value maps for PaymentBackground_PaymentBackgroundType. +// Enum value maps for UserAgent_UserAgentReleaseChannel. var ( - PaymentBackground_PaymentBackgroundType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "DEFAULT", + UserAgent_UserAgentReleaseChannel_name = map[int32]string{ + 0: "RELEASE", + 1: "BETA", + 2: "ALPHA", + 3: "DEBUG", } - PaymentBackground_PaymentBackgroundType_value = map[string]int32{ - "UNKNOWN": 0, - "DEFAULT": 1, + UserAgent_UserAgentReleaseChannel_value = map[string]int32{ + "RELEASE": 0, + "BETA": 1, + "ALPHA": 2, + "DEBUG": 3, } ) -func (x PaymentBackground_PaymentBackgroundType) Enum() *PaymentBackground_PaymentBackgroundType { - p := new(PaymentBackground_PaymentBackgroundType) +func (x UserAgent_UserAgentReleaseChannel) Enum() *UserAgent_UserAgentReleaseChannel { + p := new(UserAgent_UserAgentReleaseChannel) *p = x return p } -func (x PaymentBackground_PaymentBackgroundType) String() string { +func (x UserAgent_UserAgentReleaseChannel) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (PaymentBackground_PaymentBackgroundType) Descriptor() protoreflect.EnumDescriptor { +func (UserAgent_UserAgentReleaseChannel) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[41].Descriptor() } -func (PaymentBackground_PaymentBackgroundType) Type() protoreflect.EnumType { +func (UserAgent_UserAgentReleaseChannel) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[41] } -func (x PaymentBackground_PaymentBackgroundType) Number() protoreflect.EnumNumber { +func (x UserAgent_UserAgentReleaseChannel) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *PaymentBackground_PaymentBackgroundType) UnmarshalJSON(b []byte) error { +func (x *UserAgent_UserAgentReleaseChannel) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = PaymentBackground_PaymentBackgroundType(num) + *x = UserAgent_UserAgentReleaseChannel(num) return nil } -// Deprecated: Use PaymentBackground_PaymentBackgroundType.Descriptor instead. -func (PaymentBackground_PaymentBackgroundType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{151, 0} +// Deprecated: Use UserAgent_UserAgentReleaseChannel.Descriptor instead. +func (UserAgent_UserAgentReleaseChannel) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{176, 1} } -type CompanionProps_CompanionPropsPlatformType int32 +type DNSSource_DNSSourceDNSResolutionMethod int32 const ( - CompanionProps_UNKNOWN CompanionProps_CompanionPropsPlatformType = 0 - CompanionProps_CHROME CompanionProps_CompanionPropsPlatformType = 1 - CompanionProps_FIREFOX CompanionProps_CompanionPropsPlatformType = 2 - CompanionProps_IE CompanionProps_CompanionPropsPlatformType = 3 - CompanionProps_OPERA CompanionProps_CompanionPropsPlatformType = 4 - CompanionProps_SAFARI CompanionProps_CompanionPropsPlatformType = 5 - CompanionProps_EDGE CompanionProps_CompanionPropsPlatformType = 6 - CompanionProps_DESKTOP CompanionProps_CompanionPropsPlatformType = 7 - CompanionProps_IPAD CompanionProps_CompanionPropsPlatformType = 8 - CompanionProps_ANDROID_TABLET CompanionProps_CompanionPropsPlatformType = 9 - CompanionProps_OHANA CompanionProps_CompanionPropsPlatformType = 10 - CompanionProps_ALOHA CompanionProps_CompanionPropsPlatformType = 11 - CompanionProps_CATALINA CompanionProps_CompanionPropsPlatformType = 12 + DNSSource_SYSTEM DNSSource_DNSSourceDNSResolutionMethod = 0 + DNSSource_GOOGLE DNSSource_DNSSourceDNSResolutionMethod = 1 + DNSSource_HARDCODED DNSSource_DNSSourceDNSResolutionMethod = 2 + DNSSource_OVERRIDE DNSSource_DNSSourceDNSResolutionMethod = 3 + DNSSource_FALLBACK DNSSource_DNSSourceDNSResolutionMethod = 4 ) -// Enum value maps for CompanionProps_CompanionPropsPlatformType. +// Enum value maps for DNSSource_DNSSourceDNSResolutionMethod. var ( - CompanionProps_CompanionPropsPlatformType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CHROME", - 2: "FIREFOX", - 3: "IE", - 4: "OPERA", - 5: "SAFARI", - 6: "EDGE", - 7: "DESKTOP", - 8: "IPAD", - 9: "ANDROID_TABLET", - 10: "OHANA", - 11: "ALOHA", - 12: "CATALINA", + DNSSource_DNSSourceDNSResolutionMethod_name = map[int32]string{ + 0: "SYSTEM", + 1: "GOOGLE", + 2: "HARDCODED", + 3: "OVERRIDE", + 4: "FALLBACK", } - CompanionProps_CompanionPropsPlatformType_value = map[string]int32{ - "UNKNOWN": 0, - "CHROME": 1, - "FIREFOX": 2, - "IE": 3, - "OPERA": 4, - "SAFARI": 5, - "EDGE": 6, - "DESKTOP": 7, - "IPAD": 8, - "ANDROID_TABLET": 9, - "OHANA": 10, - "ALOHA": 11, - "CATALINA": 12, + DNSSource_DNSSourceDNSResolutionMethod_value = map[string]int32{ + "SYSTEM": 0, + "GOOGLE": 1, + "HARDCODED": 2, + "OVERRIDE": 3, + "FALLBACK": 4, } ) -func (x CompanionProps_CompanionPropsPlatformType) Enum() *CompanionProps_CompanionPropsPlatformType { - p := new(CompanionProps_CompanionPropsPlatformType) +func (x DNSSource_DNSSourceDNSResolutionMethod) Enum() *DNSSource_DNSSourceDNSResolutionMethod { + p := new(DNSSource_DNSSourceDNSResolutionMethod) *p = x return p } -func (x CompanionProps_CompanionPropsPlatformType) String() string { +func (x DNSSource_DNSSourceDNSResolutionMethod) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (CompanionProps_CompanionPropsPlatformType) Descriptor() protoreflect.EnumDescriptor { +func (DNSSource_DNSSourceDNSResolutionMethod) Descriptor() protoreflect.EnumDescriptor { return file_binary_proto_def_proto_enumTypes[42].Descriptor() } -func (CompanionProps_CompanionPropsPlatformType) Type() protoreflect.EnumType { +func (DNSSource_DNSSourceDNSResolutionMethod) Type() protoreflect.EnumType { return &file_binary_proto_def_proto_enumTypes[42] } -func (x CompanionProps_CompanionPropsPlatformType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Do not use. -func (x *CompanionProps_CompanionPropsPlatformType) UnmarshalJSON(b []byte) error { - num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) - if err != nil { - return err - } - *x = CompanionProps_CompanionPropsPlatformType(num) - return nil -} - -// Deprecated: Use CompanionProps_CompanionPropsPlatformType.Descriptor instead. -func (CompanionProps_CompanionPropsPlatformType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{163, 0} -} - -type WebFeatures_WebFeaturesFlag int32 - -const ( - WebFeatures_NOT_STARTED WebFeatures_WebFeaturesFlag = 0 - WebFeatures_FORCE_UPGRADE WebFeatures_WebFeaturesFlag = 1 - WebFeatures_DEVELOPMENT WebFeatures_WebFeaturesFlag = 2 - WebFeatures_PRODUCTION WebFeatures_WebFeaturesFlag = 3 -) - -// Enum value maps for WebFeatures_WebFeaturesFlag. -var ( - WebFeatures_WebFeaturesFlag_name = map[int32]string{ - 0: "NOT_STARTED", - 1: "FORCE_UPGRADE", - 2: "DEVELOPMENT", - 3: "PRODUCTION", - } - WebFeatures_WebFeaturesFlag_value = map[string]int32{ - "NOT_STARTED": 0, - "FORCE_UPGRADE": 1, - "DEVELOPMENT": 2, - "PRODUCTION": 3, - } -) - -func (x WebFeatures_WebFeaturesFlag) Enum() *WebFeatures_WebFeaturesFlag { - p := new(WebFeatures_WebFeaturesFlag) - *p = x - return p -} - -func (x WebFeatures_WebFeaturesFlag) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (WebFeatures_WebFeaturesFlag) Descriptor() protoreflect.EnumDescriptor { - return file_binary_proto_def_proto_enumTypes[43].Descriptor() -} - -func (WebFeatures_WebFeaturesFlag) Type() protoreflect.EnumType { - return &file_binary_proto_def_proto_enumTypes[43] -} - -func (x WebFeatures_WebFeaturesFlag) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Do not use. -func (x *WebFeatures_WebFeaturesFlag) UnmarshalJSON(b []byte) error { - num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) - if err != nil { - return err - } - *x = WebFeatures_WebFeaturesFlag(num) - return nil -} - -// Deprecated: Use WebFeatures_WebFeaturesFlag.Descriptor instead. -func (WebFeatures_WebFeaturesFlag) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{175, 0} -} - -type PaymentInfo_PaymentInfoCurrency int32 - -const ( - PaymentInfo_UNKNOWN_CURRENCY PaymentInfo_PaymentInfoCurrency = 0 - PaymentInfo_INR PaymentInfo_PaymentInfoCurrency = 1 -) - -// Enum value maps for PaymentInfo_PaymentInfoCurrency. -var ( - PaymentInfo_PaymentInfoCurrency_name = map[int32]string{ - 0: "UNKNOWN_CURRENCY", - 1: "INR", - } - PaymentInfo_PaymentInfoCurrency_value = map[string]int32{ - "UNKNOWN_CURRENCY": 0, - "INR": 1, - } -) - -func (x PaymentInfo_PaymentInfoCurrency) Enum() *PaymentInfo_PaymentInfoCurrency { - p := new(PaymentInfo_PaymentInfoCurrency) - *p = x - return p -} - -func (x PaymentInfo_PaymentInfoCurrency) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PaymentInfo_PaymentInfoCurrency) Descriptor() protoreflect.EnumDescriptor { - return file_binary_proto_def_proto_enumTypes[44].Descriptor() -} - -func (PaymentInfo_PaymentInfoCurrency) Type() protoreflect.EnumType { - return &file_binary_proto_def_proto_enumTypes[44] -} - -func (x PaymentInfo_PaymentInfoCurrency) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Do not use. -func (x *PaymentInfo_PaymentInfoCurrency) UnmarshalJSON(b []byte) error { - num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) - if err != nil { - return err - } - *x = PaymentInfo_PaymentInfoCurrency(num) - return nil -} - -// Deprecated: Use PaymentInfo_PaymentInfoCurrency.Descriptor instead. -func (PaymentInfo_PaymentInfoCurrency) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{178, 0} -} - -type PaymentInfo_PaymentInfoStatus int32 - -const ( - PaymentInfo_UNKNOWN_STATUS PaymentInfo_PaymentInfoStatus = 0 - PaymentInfo_PROCESSING PaymentInfo_PaymentInfoStatus = 1 - PaymentInfo_SENT PaymentInfo_PaymentInfoStatus = 2 - PaymentInfo_NEED_TO_ACCEPT PaymentInfo_PaymentInfoStatus = 3 - PaymentInfo_COMPLETE PaymentInfo_PaymentInfoStatus = 4 - PaymentInfo_COULD_NOT_COMPLETE PaymentInfo_PaymentInfoStatus = 5 - PaymentInfo_REFUNDED PaymentInfo_PaymentInfoStatus = 6 - PaymentInfo_EXPIRED PaymentInfo_PaymentInfoStatus = 7 - PaymentInfo_REJECTED PaymentInfo_PaymentInfoStatus = 8 - PaymentInfo_CANCELLED PaymentInfo_PaymentInfoStatus = 9 - PaymentInfo_WAITING_FOR_PAYER PaymentInfo_PaymentInfoStatus = 10 - PaymentInfo_WAITING PaymentInfo_PaymentInfoStatus = 11 -) - -// Enum value maps for PaymentInfo_PaymentInfoStatus. -var ( - PaymentInfo_PaymentInfoStatus_name = map[int32]string{ - 0: "UNKNOWN_STATUS", - 1: "PROCESSING", - 2: "SENT", - 3: "NEED_TO_ACCEPT", - 4: "COMPLETE", - 5: "COULD_NOT_COMPLETE", - 6: "REFUNDED", - 7: "EXPIRED", - 8: "REJECTED", - 9: "CANCELLED", - 10: "WAITING_FOR_PAYER", - 11: "WAITING", - } - PaymentInfo_PaymentInfoStatus_value = map[string]int32{ - "UNKNOWN_STATUS": 0, - "PROCESSING": 1, - "SENT": 2, - "NEED_TO_ACCEPT": 3, - "COMPLETE": 4, - "COULD_NOT_COMPLETE": 5, - "REFUNDED": 6, - "EXPIRED": 7, - "REJECTED": 8, - "CANCELLED": 9, - "WAITING_FOR_PAYER": 10, - "WAITING": 11, - } -) - -func (x PaymentInfo_PaymentInfoStatus) Enum() *PaymentInfo_PaymentInfoStatus { - p := new(PaymentInfo_PaymentInfoStatus) - *p = x - return p -} - -func (x PaymentInfo_PaymentInfoStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PaymentInfo_PaymentInfoStatus) Descriptor() protoreflect.EnumDescriptor { - return file_binary_proto_def_proto_enumTypes[45].Descriptor() -} - -func (PaymentInfo_PaymentInfoStatus) Type() protoreflect.EnumType { - return &file_binary_proto_def_proto_enumTypes[45] -} - -func (x PaymentInfo_PaymentInfoStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Do not use. -func (x *PaymentInfo_PaymentInfoStatus) UnmarshalJSON(b []byte) error { - num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) - if err != nil { - return err - } - *x = PaymentInfo_PaymentInfoStatus(num) - return nil -} - -// Deprecated: Use PaymentInfo_PaymentInfoStatus.Descriptor instead. -func (PaymentInfo_PaymentInfoStatus) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{178, 1} -} - -type PaymentInfo_PaymentInfoTxnStatus int32 - -const ( - PaymentInfo_UNKNOWN PaymentInfo_PaymentInfoTxnStatus = 0 - PaymentInfo_PENDING_SETUP PaymentInfo_PaymentInfoTxnStatus = 1 - PaymentInfo_PENDING_RECEIVER_SETUP PaymentInfo_PaymentInfoTxnStatus = 2 - PaymentInfo_INIT PaymentInfo_PaymentInfoTxnStatus = 3 - PaymentInfo_SUCCESS PaymentInfo_PaymentInfoTxnStatus = 4 - PaymentInfo_COMPLETED PaymentInfo_PaymentInfoTxnStatus = 5 - PaymentInfo_FAILED PaymentInfo_PaymentInfoTxnStatus = 6 - PaymentInfo_FAILED_RISK PaymentInfo_PaymentInfoTxnStatus = 7 - PaymentInfo_FAILED_PROCESSING PaymentInfo_PaymentInfoTxnStatus = 8 - PaymentInfo_FAILED_RECEIVER_PROCESSING PaymentInfo_PaymentInfoTxnStatus = 9 - PaymentInfo_FAILED_DA PaymentInfo_PaymentInfoTxnStatus = 10 - PaymentInfo_FAILED_DA_FINAL PaymentInfo_PaymentInfoTxnStatus = 11 - PaymentInfo_REFUNDED_TXN PaymentInfo_PaymentInfoTxnStatus = 12 - PaymentInfo_REFUND_FAILED PaymentInfo_PaymentInfoTxnStatus = 13 - PaymentInfo_REFUND_FAILED_PROCESSING PaymentInfo_PaymentInfoTxnStatus = 14 - PaymentInfo_REFUND_FAILED_DA PaymentInfo_PaymentInfoTxnStatus = 15 - PaymentInfo_EXPIRED_TXN PaymentInfo_PaymentInfoTxnStatus = 16 - PaymentInfo_AUTH_CANCELED PaymentInfo_PaymentInfoTxnStatus = 17 - PaymentInfo_AUTH_CANCEL_FAILED_PROCESSING PaymentInfo_PaymentInfoTxnStatus = 18 - PaymentInfo_AUTH_CANCEL_FAILED PaymentInfo_PaymentInfoTxnStatus = 19 - PaymentInfo_COLLECT_INIT PaymentInfo_PaymentInfoTxnStatus = 20 - PaymentInfo_COLLECT_SUCCESS PaymentInfo_PaymentInfoTxnStatus = 21 - PaymentInfo_COLLECT_FAILED PaymentInfo_PaymentInfoTxnStatus = 22 - PaymentInfo_COLLECT_FAILED_RISK PaymentInfo_PaymentInfoTxnStatus = 23 - PaymentInfo_COLLECT_REJECTED PaymentInfo_PaymentInfoTxnStatus = 24 - PaymentInfo_COLLECT_EXPIRED PaymentInfo_PaymentInfoTxnStatus = 25 - PaymentInfo_COLLECT_CANCELED PaymentInfo_PaymentInfoTxnStatus = 26 - PaymentInfo_COLLECT_CANCELLING PaymentInfo_PaymentInfoTxnStatus = 27 - PaymentInfo_IN_REVIEW PaymentInfo_PaymentInfoTxnStatus = 28 -) - -// Enum value maps for PaymentInfo_PaymentInfoTxnStatus. -var ( - PaymentInfo_PaymentInfoTxnStatus_name = map[int32]string{ - 0: "UNKNOWN", - 1: "PENDING_SETUP", - 2: "PENDING_RECEIVER_SETUP", - 3: "INIT", - 4: "SUCCESS", - 5: "COMPLETED", - 6: "FAILED", - 7: "FAILED_RISK", - 8: "FAILED_PROCESSING", - 9: "FAILED_RECEIVER_PROCESSING", - 10: "FAILED_DA", - 11: "FAILED_DA_FINAL", - 12: "REFUNDED_TXN", - 13: "REFUND_FAILED", - 14: "REFUND_FAILED_PROCESSING", - 15: "REFUND_FAILED_DA", - 16: "EXPIRED_TXN", - 17: "AUTH_CANCELED", - 18: "AUTH_CANCEL_FAILED_PROCESSING", - 19: "AUTH_CANCEL_FAILED", - 20: "COLLECT_INIT", - 21: "COLLECT_SUCCESS", - 22: "COLLECT_FAILED", - 23: "COLLECT_FAILED_RISK", - 24: "COLLECT_REJECTED", - 25: "COLLECT_EXPIRED", - 26: "COLLECT_CANCELED", - 27: "COLLECT_CANCELLING", - 28: "IN_REVIEW", - } - PaymentInfo_PaymentInfoTxnStatus_value = map[string]int32{ - "UNKNOWN": 0, - "PENDING_SETUP": 1, - "PENDING_RECEIVER_SETUP": 2, - "INIT": 3, - "SUCCESS": 4, - "COMPLETED": 5, - "FAILED": 6, - "FAILED_RISK": 7, - "FAILED_PROCESSING": 8, - "FAILED_RECEIVER_PROCESSING": 9, - "FAILED_DA": 10, - "FAILED_DA_FINAL": 11, - "REFUNDED_TXN": 12, - "REFUND_FAILED": 13, - "REFUND_FAILED_PROCESSING": 14, - "REFUND_FAILED_DA": 15, - "EXPIRED_TXN": 16, - "AUTH_CANCELED": 17, - "AUTH_CANCEL_FAILED_PROCESSING": 18, - "AUTH_CANCEL_FAILED": 19, - "COLLECT_INIT": 20, - "COLLECT_SUCCESS": 21, - "COLLECT_FAILED": 22, - "COLLECT_FAILED_RISK": 23, - "COLLECT_REJECTED": 24, - "COLLECT_EXPIRED": 25, - "COLLECT_CANCELED": 26, - "COLLECT_CANCELLING": 27, - "IN_REVIEW": 28, - } -) - -func (x PaymentInfo_PaymentInfoTxnStatus) Enum() *PaymentInfo_PaymentInfoTxnStatus { - p := new(PaymentInfo_PaymentInfoTxnStatus) - *p = x - return p -} - -func (x PaymentInfo_PaymentInfoTxnStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PaymentInfo_PaymentInfoTxnStatus) Descriptor() protoreflect.EnumDescriptor { - return file_binary_proto_def_proto_enumTypes[46].Descriptor() -} - -func (PaymentInfo_PaymentInfoTxnStatus) Type() protoreflect.EnumType { - return &file_binary_proto_def_proto_enumTypes[46] -} - -func (x PaymentInfo_PaymentInfoTxnStatus) Number() protoreflect.EnumNumber { +func (x DNSSource_DNSSourceDNSResolutionMethod) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. -func (x *PaymentInfo_PaymentInfoTxnStatus) UnmarshalJSON(b []byte) error { +func (x *DNSSource_DNSSourceDNSResolutionMethod) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } - *x = PaymentInfo_PaymentInfoTxnStatus(num) + *x = DNSSource_DNSSourceDNSResolutionMethod(num) return nil } -// Deprecated: Use PaymentInfo_PaymentInfoTxnStatus.Descriptor instead. -func (PaymentInfo_PaymentInfoTxnStatus) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{178, 2} +// Deprecated: Use DNSSource_DNSSourceDNSResolutionMethod.Descriptor instead. +func (DNSSource_DNSSourceDNSResolutionMethod) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{177, 0} } type WebMessageInfo_WebMessageInfoStatus int32 @@ -3122,11 +2781,11 @@ func (x WebMessageInfo_WebMessageInfoStatus) String() string { } func (WebMessageInfo_WebMessageInfoStatus) Descriptor() protoreflect.EnumDescriptor { - return file_binary_proto_def_proto_enumTypes[47].Descriptor() + return file_binary_proto_def_proto_enumTypes[43].Descriptor() } func (WebMessageInfo_WebMessageInfoStatus) Type() protoreflect.EnumType { - return &file_binary_proto_def_proto_enumTypes[47] + return &file_binary_proto_def_proto_enumTypes[43] } func (x WebMessageInfo_WebMessageInfoStatus) Number() protoreflect.EnumNumber { @@ -3145,7 +2804,7 @@ func (x *WebMessageInfo_WebMessageInfoStatus) UnmarshalJSON(b []byte) error { // Deprecated: Use WebMessageInfo_WebMessageInfoStatus.Descriptor instead. func (WebMessageInfo_WebMessageInfoStatus) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{179, 0} + return file_binary_proto_def_proto_rawDescGZIP(), []int{180, 0} } type WebMessageInfo_WebMessageInfoStubType int32 @@ -3285,6 +2944,9 @@ const ( WebMessageInfo_E2E_DEVICE_FETCH_FAILED WebMessageInfo_WebMessageInfoStubType = 131 WebMessageInfo_ADMIN_REVOKE WebMessageInfo_WebMessageInfoStubType = 132 WebMessageInfo_GROUP_INVITE_LINK_GROWTH_LOCKED WebMessageInfo_WebMessageInfoStubType = 133 + WebMessageInfo_COMMUNITY_LINK_PARENT_GROUP WebMessageInfo_WebMessageInfoStubType = 134 + WebMessageInfo_COMMUNITY_LINK_SIBLING_GROUP WebMessageInfo_WebMessageInfoStubType = 135 + WebMessageInfo_COMMUNITY_LINK_SUB_GROUP WebMessageInfo_WebMessageInfoStubType = 136 ) // Enum value maps for WebMessageInfo_WebMessageInfoStubType. @@ -3424,6 +3086,9 @@ var ( 131: "E2E_DEVICE_FETCH_FAILED", 132: "ADMIN_REVOKE", 133: "GROUP_INVITE_LINK_GROWTH_LOCKED", + 134: "COMMUNITY_LINK_PARENT_GROUP", + 135: "COMMUNITY_LINK_SIBLING_GROUP", + 136: "COMMUNITY_LINK_SUB_GROUP", } WebMessageInfo_WebMessageInfoStubType_value = map[string]int32{ "UNKNOWN": 0, @@ -3560,6 +3225,9 @@ var ( "E2E_DEVICE_FETCH_FAILED": 131, "ADMIN_REVOKE": 132, "GROUP_INVITE_LINK_GROWTH_LOCKED": 133, + "COMMUNITY_LINK_PARENT_GROUP": 134, + "COMMUNITY_LINK_SIBLING_GROUP": 135, + "COMMUNITY_LINK_SUB_GROUP": 136, } ) @@ -3574,11 +3242,11 @@ func (x WebMessageInfo_WebMessageInfoStubType) String() string { } func (WebMessageInfo_WebMessageInfoStubType) Descriptor() protoreflect.EnumDescriptor { - return file_binary_proto_def_proto_enumTypes[48].Descriptor() + return file_binary_proto_def_proto_enumTypes[44].Descriptor() } func (WebMessageInfo_WebMessageInfoStubType) Type() protoreflect.EnumType { - return &file_binary_proto_def_proto_enumTypes[48] + return &file_binary_proto_def_proto_enumTypes[44] } func (x WebMessageInfo_WebMessageInfoStubType) Number() protoreflect.EnumNumber { @@ -3597,7 +3265,7 @@ func (x *WebMessageInfo_WebMessageInfoStubType) UnmarshalJSON(b []byte) error { // Deprecated: Use WebMessageInfo_WebMessageInfoStubType.Descriptor instead. func (WebMessageInfo_WebMessageInfoStubType) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{179, 1} + return file_binary_proto_def_proto_rawDescGZIP(), []int{180, 1} } type WebMessageInfo_WebMessageInfoBizPrivacyStatus int32 @@ -3636,11 +3304,11 @@ func (x WebMessageInfo_WebMessageInfoBizPrivacyStatus) String() string { } func (WebMessageInfo_WebMessageInfoBizPrivacyStatus) Descriptor() protoreflect.EnumDescriptor { - return file_binary_proto_def_proto_enumTypes[49].Descriptor() + return file_binary_proto_def_proto_enumTypes[45].Descriptor() } func (WebMessageInfo_WebMessageInfoBizPrivacyStatus) Type() protoreflect.EnumType { - return &file_binary_proto_def_proto_enumTypes[49] + return &file_binary_proto_def_proto_enumTypes[45] } func (x WebMessageInfo_WebMessageInfoBizPrivacyStatus) Number() protoreflect.EnumNumber { @@ -3659,266 +3327,433 @@ func (x *WebMessageInfo_WebMessageInfoBizPrivacyStatus) UnmarshalJSON(b []byte) // Deprecated: Use WebMessageInfo_WebMessageInfoBizPrivacyStatus.Descriptor instead. func (WebMessageInfo_WebMessageInfoBizPrivacyStatus) EnumDescriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{179, 2} + return file_binary_proto_def_proto_rawDescGZIP(), []int{180, 2} } -type AppVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +type WebFeatures_WebFeaturesFlag int32 - Primary *uint32 `protobuf:"varint,1,opt,name=primary" json:"primary,omitempty"` - Secondary *uint32 `protobuf:"varint,2,opt,name=secondary" json:"secondary,omitempty"` - Tertiary *uint32 `protobuf:"varint,3,opt,name=tertiary" json:"tertiary,omitempty"` - Quaternary *uint32 `protobuf:"varint,4,opt,name=quaternary" json:"quaternary,omitempty"` - Quinary *uint32 `protobuf:"varint,5,opt,name=quinary" json:"quinary,omitempty"` -} +const ( + WebFeatures_NOT_STARTED WebFeatures_WebFeaturesFlag = 0 + WebFeatures_FORCE_UPGRADE WebFeatures_WebFeaturesFlag = 1 + WebFeatures_DEVELOPMENT WebFeatures_WebFeaturesFlag = 2 + WebFeatures_PRODUCTION WebFeatures_WebFeaturesFlag = 3 +) -func (x *AppVersion) Reset() { - *x = AppVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +// Enum value maps for WebFeatures_WebFeaturesFlag. +var ( + WebFeatures_WebFeaturesFlag_name = map[int32]string{ + 0: "NOT_STARTED", + 1: "FORCE_UPGRADE", + 2: "DEVELOPMENT", + 3: "PRODUCTION", } + WebFeatures_WebFeaturesFlag_value = map[string]int32{ + "NOT_STARTED": 0, + "FORCE_UPGRADE": 1, + "DEVELOPMENT": 2, + "PRODUCTION": 3, + } +) + +func (x WebFeatures_WebFeaturesFlag) Enum() *WebFeatures_WebFeaturesFlag { + p := new(WebFeatures_WebFeaturesFlag) + *p = x + return p } -func (x *AppVersion) String() string { - return protoimpl.X.MessageStringOf(x) +func (x WebFeatures_WebFeaturesFlag) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (*AppVersion) ProtoMessage() {} +func (WebFeatures_WebFeaturesFlag) Descriptor() protoreflect.EnumDescriptor { + return file_binary_proto_def_proto_enumTypes[46].Descriptor() +} -func (x *AppVersion) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_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) +func (WebFeatures_WebFeaturesFlag) Type() protoreflect.EnumType { + return &file_binary_proto_def_proto_enumTypes[46] } -// Deprecated: Use AppVersion.ProtoReflect.Descriptor instead. -func (*AppVersion) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{0} +func (x WebFeatures_WebFeaturesFlag) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (x *AppVersion) GetPrimary() uint32 { - if x != nil && x.Primary != nil { - return *x.Primary +// Deprecated: Do not use. +func (x *WebFeatures_WebFeaturesFlag) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err } - return 0 + *x = WebFeatures_WebFeaturesFlag(num) + return nil } -func (x *AppVersion) GetSecondary() uint32 { - if x != nil && x.Secondary != nil { - return *x.Secondary - } - return 0 +// Deprecated: Use WebFeatures_WebFeaturesFlag.Descriptor instead. +func (WebFeatures_WebFeaturesFlag) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{181, 0} } -func (x *AppVersion) GetTertiary() uint32 { - if x != nil && x.Tertiary != nil { - return *x.Tertiary +type PaymentInfo_PaymentInfoCurrency int32 + +const ( + PaymentInfo_UNKNOWN_CURRENCY PaymentInfo_PaymentInfoCurrency = 0 + PaymentInfo_INR PaymentInfo_PaymentInfoCurrency = 1 +) + +// Enum value maps for PaymentInfo_PaymentInfoCurrency. +var ( + PaymentInfo_PaymentInfoCurrency_name = map[int32]string{ + 0: "UNKNOWN_CURRENCY", + 1: "INR", } - return 0 + PaymentInfo_PaymentInfoCurrency_value = map[string]int32{ + "UNKNOWN_CURRENCY": 0, + "INR": 1, + } +) + +func (x PaymentInfo_PaymentInfoCurrency) Enum() *PaymentInfo_PaymentInfoCurrency { + p := new(PaymentInfo_PaymentInfoCurrency) + *p = x + return p } -func (x *AppVersion) GetQuaternary() uint32 { - if x != nil && x.Quaternary != nil { - return *x.Quaternary - } - return 0 +func (x PaymentInfo_PaymentInfoCurrency) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (x *AppVersion) GetQuinary() uint32 { - if x != nil && x.Quinary != nil { - return *x.Quinary - } - return 0 +func (PaymentInfo_PaymentInfoCurrency) Descriptor() protoreflect.EnumDescriptor { + return file_binary_proto_def_proto_enumTypes[47].Descriptor() } -type UserAgent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (PaymentInfo_PaymentInfoCurrency) Type() protoreflect.EnumType { + return &file_binary_proto_def_proto_enumTypes[47] +} - Platform *UserAgent_UserAgentPlatform `protobuf:"varint,1,opt,name=platform,enum=proto.UserAgent_UserAgentPlatform" json:"platform,omitempty"` - AppVersion *AppVersion `protobuf:"bytes,2,opt,name=appVersion" json:"appVersion,omitempty"` - Mcc *string `protobuf:"bytes,3,opt,name=mcc" json:"mcc,omitempty"` - Mnc *string `protobuf:"bytes,4,opt,name=mnc" json:"mnc,omitempty"` - OsVersion *string `protobuf:"bytes,5,opt,name=osVersion" json:"osVersion,omitempty"` - Manufacturer *string `protobuf:"bytes,6,opt,name=manufacturer" json:"manufacturer,omitempty"` - Device *string `protobuf:"bytes,7,opt,name=device" json:"device,omitempty"` - OsBuildNumber *string `protobuf:"bytes,8,opt,name=osBuildNumber" json:"osBuildNumber,omitempty"` - PhoneId *string `protobuf:"bytes,9,opt,name=phoneId" json:"phoneId,omitempty"` - ReleaseChannel *UserAgent_UserAgentReleaseChannel `protobuf:"varint,10,opt,name=releaseChannel,enum=proto.UserAgent_UserAgentReleaseChannel" json:"releaseChannel,omitempty"` - LocaleLanguageIso6391 *string `protobuf:"bytes,11,opt,name=localeLanguageIso6391" json:"localeLanguageIso6391,omitempty"` - LocaleCountryIso31661Alpha2 *string `protobuf:"bytes,12,opt,name=localeCountryIso31661Alpha2" json:"localeCountryIso31661Alpha2,omitempty"` - DeviceBoard *string `protobuf:"bytes,13,opt,name=deviceBoard" json:"deviceBoard,omitempty"` +func (x PaymentInfo_PaymentInfoCurrency) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (x *UserAgent) Reset() { - *x = UserAgent{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +// Deprecated: Do not use. +func (x *PaymentInfo_PaymentInfoCurrency) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err } + *x = PaymentInfo_PaymentInfoCurrency(num) + return nil } -func (x *UserAgent) String() string { - return protoimpl.X.MessageStringOf(x) +// Deprecated: Use PaymentInfo_PaymentInfoCurrency.Descriptor instead. +func (PaymentInfo_PaymentInfoCurrency) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{188, 0} } -func (*UserAgent) ProtoMessage() {} +type PaymentInfo_PaymentInfoStatus int32 -func (x *UserAgent) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +const ( + PaymentInfo_UNKNOWN_STATUS PaymentInfo_PaymentInfoStatus = 0 + PaymentInfo_PROCESSING PaymentInfo_PaymentInfoStatus = 1 + PaymentInfo_SENT PaymentInfo_PaymentInfoStatus = 2 + PaymentInfo_NEED_TO_ACCEPT PaymentInfo_PaymentInfoStatus = 3 + PaymentInfo_COMPLETE PaymentInfo_PaymentInfoStatus = 4 + PaymentInfo_COULD_NOT_COMPLETE PaymentInfo_PaymentInfoStatus = 5 + PaymentInfo_REFUNDED PaymentInfo_PaymentInfoStatus = 6 + PaymentInfo_EXPIRED PaymentInfo_PaymentInfoStatus = 7 + PaymentInfo_REJECTED PaymentInfo_PaymentInfoStatus = 8 + PaymentInfo_CANCELLED PaymentInfo_PaymentInfoStatus = 9 + PaymentInfo_WAITING_FOR_PAYER PaymentInfo_PaymentInfoStatus = 10 + PaymentInfo_WAITING PaymentInfo_PaymentInfoStatus = 11 +) + +// Enum value maps for PaymentInfo_PaymentInfoStatus. +var ( + PaymentInfo_PaymentInfoStatus_name = map[int32]string{ + 0: "UNKNOWN_STATUS", + 1: "PROCESSING", + 2: "SENT", + 3: "NEED_TO_ACCEPT", + 4: "COMPLETE", + 5: "COULD_NOT_COMPLETE", + 6: "REFUNDED", + 7: "EXPIRED", + 8: "REJECTED", + 9: "CANCELLED", + 10: "WAITING_FOR_PAYER", + 11: "WAITING", } - return mi.MessageOf(x) + PaymentInfo_PaymentInfoStatus_value = map[string]int32{ + "UNKNOWN_STATUS": 0, + "PROCESSING": 1, + "SENT": 2, + "NEED_TO_ACCEPT": 3, + "COMPLETE": 4, + "COULD_NOT_COMPLETE": 5, + "REFUNDED": 6, + "EXPIRED": 7, + "REJECTED": 8, + "CANCELLED": 9, + "WAITING_FOR_PAYER": 10, + "WAITING": 11, + } +) + +func (x PaymentInfo_PaymentInfoStatus) Enum() *PaymentInfo_PaymentInfoStatus { + p := new(PaymentInfo_PaymentInfoStatus) + *p = x + return p } -// Deprecated: Use UserAgent.ProtoReflect.Descriptor instead. -func (*UserAgent) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{1} +func (x PaymentInfo_PaymentInfoStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (x *UserAgent) GetPlatform() UserAgent_UserAgentPlatform { - if x != nil && x.Platform != nil { - return *x.Platform - } - return UserAgent_ANDROID +func (PaymentInfo_PaymentInfoStatus) Descriptor() protoreflect.EnumDescriptor { + return file_binary_proto_def_proto_enumTypes[48].Descriptor() } -func (x *UserAgent) GetAppVersion() *AppVersion { - if x != nil { - return x.AppVersion +func (PaymentInfo_PaymentInfoStatus) Type() protoreflect.EnumType { + return &file_binary_proto_def_proto_enumTypes[48] +} + +func (x PaymentInfo_PaymentInfoStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *PaymentInfo_PaymentInfoStatus) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err } + *x = PaymentInfo_PaymentInfoStatus(num) return nil } -func (x *UserAgent) GetMcc() string { - if x != nil && x.Mcc != nil { - return *x.Mcc - } - return "" +// Deprecated: Use PaymentInfo_PaymentInfoStatus.Descriptor instead. +func (PaymentInfo_PaymentInfoStatus) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{188, 1} } -func (x *UserAgent) GetMnc() string { - if x != nil && x.Mnc != nil { - return *x.Mnc +type PaymentInfo_PaymentInfoTxnStatus int32 + +const ( + PaymentInfo_UNKNOWN PaymentInfo_PaymentInfoTxnStatus = 0 + PaymentInfo_PENDING_SETUP PaymentInfo_PaymentInfoTxnStatus = 1 + PaymentInfo_PENDING_RECEIVER_SETUP PaymentInfo_PaymentInfoTxnStatus = 2 + PaymentInfo_INIT PaymentInfo_PaymentInfoTxnStatus = 3 + PaymentInfo_SUCCESS PaymentInfo_PaymentInfoTxnStatus = 4 + PaymentInfo_COMPLETED PaymentInfo_PaymentInfoTxnStatus = 5 + PaymentInfo_FAILED PaymentInfo_PaymentInfoTxnStatus = 6 + PaymentInfo_FAILED_RISK PaymentInfo_PaymentInfoTxnStatus = 7 + PaymentInfo_FAILED_PROCESSING PaymentInfo_PaymentInfoTxnStatus = 8 + PaymentInfo_FAILED_RECEIVER_PROCESSING PaymentInfo_PaymentInfoTxnStatus = 9 + PaymentInfo_FAILED_DA PaymentInfo_PaymentInfoTxnStatus = 10 + PaymentInfo_FAILED_DA_FINAL PaymentInfo_PaymentInfoTxnStatus = 11 + PaymentInfo_REFUNDED_TXN PaymentInfo_PaymentInfoTxnStatus = 12 + PaymentInfo_REFUND_FAILED PaymentInfo_PaymentInfoTxnStatus = 13 + PaymentInfo_REFUND_FAILED_PROCESSING PaymentInfo_PaymentInfoTxnStatus = 14 + PaymentInfo_REFUND_FAILED_DA PaymentInfo_PaymentInfoTxnStatus = 15 + PaymentInfo_EXPIRED_TXN PaymentInfo_PaymentInfoTxnStatus = 16 + PaymentInfo_AUTH_CANCELED PaymentInfo_PaymentInfoTxnStatus = 17 + PaymentInfo_AUTH_CANCEL_FAILED_PROCESSING PaymentInfo_PaymentInfoTxnStatus = 18 + PaymentInfo_AUTH_CANCEL_FAILED PaymentInfo_PaymentInfoTxnStatus = 19 + PaymentInfo_COLLECT_INIT PaymentInfo_PaymentInfoTxnStatus = 20 + PaymentInfo_COLLECT_SUCCESS PaymentInfo_PaymentInfoTxnStatus = 21 + PaymentInfo_COLLECT_FAILED PaymentInfo_PaymentInfoTxnStatus = 22 + PaymentInfo_COLLECT_FAILED_RISK PaymentInfo_PaymentInfoTxnStatus = 23 + PaymentInfo_COLLECT_REJECTED PaymentInfo_PaymentInfoTxnStatus = 24 + PaymentInfo_COLLECT_EXPIRED PaymentInfo_PaymentInfoTxnStatus = 25 + PaymentInfo_COLLECT_CANCELED PaymentInfo_PaymentInfoTxnStatus = 26 + PaymentInfo_COLLECT_CANCELLING PaymentInfo_PaymentInfoTxnStatus = 27 + PaymentInfo_IN_REVIEW PaymentInfo_PaymentInfoTxnStatus = 28 +) + +// Enum value maps for PaymentInfo_PaymentInfoTxnStatus. +var ( + PaymentInfo_PaymentInfoTxnStatus_name = map[int32]string{ + 0: "UNKNOWN", + 1: "PENDING_SETUP", + 2: "PENDING_RECEIVER_SETUP", + 3: "INIT", + 4: "SUCCESS", + 5: "COMPLETED", + 6: "FAILED", + 7: "FAILED_RISK", + 8: "FAILED_PROCESSING", + 9: "FAILED_RECEIVER_PROCESSING", + 10: "FAILED_DA", + 11: "FAILED_DA_FINAL", + 12: "REFUNDED_TXN", + 13: "REFUND_FAILED", + 14: "REFUND_FAILED_PROCESSING", + 15: "REFUND_FAILED_DA", + 16: "EXPIRED_TXN", + 17: "AUTH_CANCELED", + 18: "AUTH_CANCEL_FAILED_PROCESSING", + 19: "AUTH_CANCEL_FAILED", + 20: "COLLECT_INIT", + 21: "COLLECT_SUCCESS", + 22: "COLLECT_FAILED", + 23: "COLLECT_FAILED_RISK", + 24: "COLLECT_REJECTED", + 25: "COLLECT_EXPIRED", + 26: "COLLECT_CANCELED", + 27: "COLLECT_CANCELLING", + 28: "IN_REVIEW", } - return "" + PaymentInfo_PaymentInfoTxnStatus_value = map[string]int32{ + "UNKNOWN": 0, + "PENDING_SETUP": 1, + "PENDING_RECEIVER_SETUP": 2, + "INIT": 3, + "SUCCESS": 4, + "COMPLETED": 5, + "FAILED": 6, + "FAILED_RISK": 7, + "FAILED_PROCESSING": 8, + "FAILED_RECEIVER_PROCESSING": 9, + "FAILED_DA": 10, + "FAILED_DA_FINAL": 11, + "REFUNDED_TXN": 12, + "REFUND_FAILED": 13, + "REFUND_FAILED_PROCESSING": 14, + "REFUND_FAILED_DA": 15, + "EXPIRED_TXN": 16, + "AUTH_CANCELED": 17, + "AUTH_CANCEL_FAILED_PROCESSING": 18, + "AUTH_CANCEL_FAILED": 19, + "COLLECT_INIT": 20, + "COLLECT_SUCCESS": 21, + "COLLECT_FAILED": 22, + "COLLECT_FAILED_RISK": 23, + "COLLECT_REJECTED": 24, + "COLLECT_EXPIRED": 25, + "COLLECT_CANCELED": 26, + "COLLECT_CANCELLING": 27, + "IN_REVIEW": 28, + } +) + +func (x PaymentInfo_PaymentInfoTxnStatus) Enum() *PaymentInfo_PaymentInfoTxnStatus { + p := new(PaymentInfo_PaymentInfoTxnStatus) + *p = x + return p } -func (x *UserAgent) GetOsVersion() string { - if x != nil && x.OsVersion != nil { - return *x.OsVersion - } - return "" +func (x PaymentInfo_PaymentInfoTxnStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (x *UserAgent) GetManufacturer() string { - if x != nil && x.Manufacturer != nil { - return *x.Manufacturer - } - return "" +func (PaymentInfo_PaymentInfoTxnStatus) Descriptor() protoreflect.EnumDescriptor { + return file_binary_proto_def_proto_enumTypes[49].Descriptor() } -func (x *UserAgent) GetDevice() string { - if x != nil && x.Device != nil { - return *x.Device - } - return "" +func (PaymentInfo_PaymentInfoTxnStatus) Type() protoreflect.EnumType { + return &file_binary_proto_def_proto_enumTypes[49] } -func (x *UserAgent) GetOsBuildNumber() string { - if x != nil && x.OsBuildNumber != nil { - return *x.OsBuildNumber - } - return "" +func (x PaymentInfo_PaymentInfoTxnStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (x *UserAgent) GetPhoneId() string { - if x != nil && x.PhoneId != nil { - return *x.PhoneId +// Deprecated: Do not use. +func (x *PaymentInfo_PaymentInfoTxnStatus) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err } - return "" + *x = PaymentInfo_PaymentInfoTxnStatus(num) + return nil } -func (x *UserAgent) GetReleaseChannel() UserAgent_UserAgentReleaseChannel { - if x != nil && x.ReleaseChannel != nil { - return *x.ReleaseChannel +// Deprecated: Use PaymentInfo_PaymentInfoTxnStatus.Descriptor instead. +func (PaymentInfo_PaymentInfoTxnStatus) EnumDescriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{188, 2} +} + +type ADVSignedKeyIndexList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"` + AccountSignature []byte `protobuf:"bytes,2,opt,name=accountSignature" json:"accountSignature,omitempty"` +} + +func (x *ADVSignedKeyIndexList) Reset() { + *x = ADVSignedKeyIndexList{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return UserAgent_RELEASE } -func (x *UserAgent) GetLocaleLanguageIso6391() string { - if x != nil && x.LocaleLanguageIso6391 != nil { - return *x.LocaleLanguageIso6391 +func (x *ADVSignedKeyIndexList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ADVSignedKeyIndexList) ProtoMessage() {} + +func (x *ADVSignedKeyIndexList) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_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 "" + return mi.MessageOf(x) } -func (x *UserAgent) GetLocaleCountryIso31661Alpha2() string { - if x != nil && x.LocaleCountryIso31661Alpha2 != nil { - return *x.LocaleCountryIso31661Alpha2 +// Deprecated: Use ADVSignedKeyIndexList.ProtoReflect.Descriptor instead. +func (*ADVSignedKeyIndexList) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{0} +} + +func (x *ADVSignedKeyIndexList) GetDetails() []byte { + if x != nil { + return x.Details } - return "" + return nil } -func (x *UserAgent) GetDeviceBoard() string { - if x != nil && x.DeviceBoard != nil { - return *x.DeviceBoard +func (x *ADVSignedKeyIndexList) GetAccountSignature() []byte { + if x != nil { + return x.AccountSignature } - return "" + return nil } -type WebdPayload struct { +type ADVSignedDeviceIdentity struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UsesParticipantInKey *bool `protobuf:"varint,1,opt,name=usesParticipantInKey" json:"usesParticipantInKey,omitempty"` - SupportsStarredMessages *bool `protobuf:"varint,2,opt,name=supportsStarredMessages" json:"supportsStarredMessages,omitempty"` - SupportsDocumentMessages *bool `protobuf:"varint,3,opt,name=supportsDocumentMessages" json:"supportsDocumentMessages,omitempty"` - SupportsUrlMessages *bool `protobuf:"varint,4,opt,name=supportsUrlMessages" json:"supportsUrlMessages,omitempty"` - SupportsMediaRetry *bool `protobuf:"varint,5,opt,name=supportsMediaRetry" json:"supportsMediaRetry,omitempty"` - SupportsE2EImage *bool `protobuf:"varint,6,opt,name=supportsE2EImage" json:"supportsE2EImage,omitempty"` - SupportsE2EVideo *bool `protobuf:"varint,7,opt,name=supportsE2EVideo" json:"supportsE2EVideo,omitempty"` - SupportsE2EAudio *bool `protobuf:"varint,8,opt,name=supportsE2EAudio" json:"supportsE2EAudio,omitempty"` - SupportsE2EDocument *bool `protobuf:"varint,9,opt,name=supportsE2EDocument" json:"supportsE2EDocument,omitempty"` - DocumentTypes *string `protobuf:"bytes,10,opt,name=documentTypes" json:"documentTypes,omitempty"` - Features []byte `protobuf:"bytes,11,opt,name=features" json:"features,omitempty"` + Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"` + AccountSignatureKey []byte `protobuf:"bytes,2,opt,name=accountSignatureKey" json:"accountSignatureKey,omitempty"` + AccountSignature []byte `protobuf:"bytes,3,opt,name=accountSignature" json:"accountSignature,omitempty"` + DeviceSignature []byte `protobuf:"bytes,4,opt,name=deviceSignature" json:"deviceSignature,omitempty"` } -func (x *WebdPayload) Reset() { - *x = WebdPayload{} +func (x *ADVSignedDeviceIdentity) Reset() { + *x = ADVSignedDeviceIdentity{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[2] + mi := &file_binary_proto_def_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *WebdPayload) String() string { +func (x *ADVSignedDeviceIdentity) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WebdPayload) ProtoMessage() {} +func (*ADVSignedDeviceIdentity) ProtoMessage() {} -func (x *WebdPayload) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[2] +func (x *ADVSignedDeviceIdentity) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3929,101 +3764,107 @@ func (x *WebdPayload) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WebdPayload.ProtoReflect.Descriptor instead. -func (*WebdPayload) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{2} +// Deprecated: Use ADVSignedDeviceIdentity.ProtoReflect.Descriptor instead. +func (*ADVSignedDeviceIdentity) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{1} } -func (x *WebdPayload) GetUsesParticipantInKey() bool { - if x != nil && x.UsesParticipantInKey != nil { - return *x.UsesParticipantInKey +func (x *ADVSignedDeviceIdentity) GetDetails() []byte { + if x != nil { + return x.Details } - return false + return nil } -func (x *WebdPayload) GetSupportsStarredMessages() bool { - if x != nil && x.SupportsStarredMessages != nil { - return *x.SupportsStarredMessages +func (x *ADVSignedDeviceIdentity) GetAccountSignatureKey() []byte { + if x != nil { + return x.AccountSignatureKey } - return false + return nil } -func (x *WebdPayload) GetSupportsDocumentMessages() bool { - if x != nil && x.SupportsDocumentMessages != nil { - return *x.SupportsDocumentMessages +func (x *ADVSignedDeviceIdentity) GetAccountSignature() []byte { + if x != nil { + return x.AccountSignature } - return false + return nil } -func (x *WebdPayload) GetSupportsUrlMessages() bool { - if x != nil && x.SupportsUrlMessages != nil { - return *x.SupportsUrlMessages +func (x *ADVSignedDeviceIdentity) GetDeviceSignature() []byte { + if x != nil { + return x.DeviceSignature } - return false + return nil } -func (x *WebdPayload) GetSupportsMediaRetry() bool { - if x != nil && x.SupportsMediaRetry != nil { - return *x.SupportsMediaRetry - } - return false +type ADVSignedDeviceIdentityHMAC struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"` + Hmac []byte `protobuf:"bytes,2,opt,name=hmac" json:"hmac,omitempty"` } -func (x *WebdPayload) GetSupportsE2EImage() bool { - if x != nil && x.SupportsE2EImage != nil { - return *x.SupportsE2EImage +func (x *ADVSignedDeviceIdentityHMAC) Reset() { + *x = ADVSignedDeviceIdentityHMAC{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return false } -func (x *WebdPayload) GetSupportsE2EVideo() bool { - if x != nil && x.SupportsE2EVideo != nil { - return *x.SupportsE2EVideo - } - return false +func (x *ADVSignedDeviceIdentityHMAC) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *WebdPayload) GetSupportsE2EAudio() bool { - if x != nil && x.SupportsE2EAudio != nil { - return *x.SupportsE2EAudio +func (*ADVSignedDeviceIdentityHMAC) ProtoMessage() {} + +func (x *ADVSignedDeviceIdentityHMAC) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_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 false + return mi.MessageOf(x) } -func (x *WebdPayload) GetSupportsE2EDocument() bool { - if x != nil && x.SupportsE2EDocument != nil { - return *x.SupportsE2EDocument - } - return false +// Deprecated: Use ADVSignedDeviceIdentityHMAC.ProtoReflect.Descriptor instead. +func (*ADVSignedDeviceIdentityHMAC) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{2} } -func (x *WebdPayload) GetDocumentTypes() string { - if x != nil && x.DocumentTypes != nil { - return *x.DocumentTypes +func (x *ADVSignedDeviceIdentityHMAC) GetDetails() []byte { + if x != nil { + return x.Details } - return "" + return nil } -func (x *WebdPayload) GetFeatures() []byte { +func (x *ADVSignedDeviceIdentityHMAC) GetHmac() []byte { if x != nil { - return x.Features + return x.Hmac } return nil } -type WebInfo struct { +type ADVKeyIndexList struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - RefToken *string `protobuf:"bytes,1,opt,name=refToken" json:"refToken,omitempty"` - Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` - WebdPayload *WebdPayload `protobuf:"bytes,3,opt,name=webdPayload" json:"webdPayload,omitempty"` - WebSubPlatform *WebInfo_WebInfoWebSubPlatform `protobuf:"varint,4,opt,name=webSubPlatform,enum=proto.WebInfo_WebInfoWebSubPlatform" json:"webSubPlatform,omitempty"` + RawId *uint32 `protobuf:"varint,1,opt,name=rawId" json:"rawId,omitempty"` + Timestamp *uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` + CurrentIndex *uint32 `protobuf:"varint,3,opt,name=currentIndex" json:"currentIndex,omitempty"` + ValidIndexes []uint32 `protobuf:"varint,4,rep,packed,name=validIndexes" json:"validIndexes,omitempty"` } -func (x *WebInfo) Reset() { - *x = WebInfo{} +func (x *ADVKeyIndexList) Reset() { + *x = ADVKeyIndexList{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4031,13 +3872,13 @@ func (x *WebInfo) Reset() { } } -func (x *WebInfo) String() string { +func (x *ADVKeyIndexList) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WebInfo) ProtoMessage() {} +func (*ADVKeyIndexList) ProtoMessage() {} -func (x *WebInfo) ProtoReflect() protoreflect.Message { +func (x *ADVKeyIndexList) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4049,50 +3890,51 @@ func (x *WebInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WebInfo.ProtoReflect.Descriptor instead. -func (*WebInfo) Descriptor() ([]byte, []int) { +// Deprecated: Use ADVKeyIndexList.ProtoReflect.Descriptor instead. +func (*ADVKeyIndexList) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{3} } -func (x *WebInfo) GetRefToken() string { - if x != nil && x.RefToken != nil { - return *x.RefToken +func (x *ADVKeyIndexList) GetRawId() uint32 { + if x != nil && x.RawId != nil { + return *x.RawId } - return "" + return 0 } -func (x *WebInfo) GetVersion() string { - if x != nil && x.Version != nil { - return *x.Version +func (x *ADVKeyIndexList) GetTimestamp() uint64 { + if x != nil && x.Timestamp != nil { + return *x.Timestamp } - return "" + return 0 } -func (x *WebInfo) GetWebdPayload() *WebdPayload { - if x != nil { - return x.WebdPayload +func (x *ADVKeyIndexList) GetCurrentIndex() uint32 { + if x != nil && x.CurrentIndex != nil { + return *x.CurrentIndex } - return nil + return 0 } -func (x *WebInfo) GetWebSubPlatform() WebInfo_WebInfoWebSubPlatform { - if x != nil && x.WebSubPlatform != nil { - return *x.WebSubPlatform +func (x *ADVKeyIndexList) GetValidIndexes() []uint32 { + if x != nil { + return x.ValidIndexes } - return WebInfo_WEB_BROWSER + return nil } -type DNSSource struct { +type ADVDeviceIdentity struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DnsMethod *DNSSource_DNSSourceDNSResolutionMethod `protobuf:"varint,15,opt,name=dnsMethod,enum=proto.DNSSource_DNSSourceDNSResolutionMethod" json:"dnsMethod,omitempty"` - AppCached *bool `protobuf:"varint,16,opt,name=appCached" json:"appCached,omitempty"` + RawId *uint32 `protobuf:"varint,1,opt,name=rawId" json:"rawId,omitempty"` + Timestamp *uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` + KeyIndex *uint32 `protobuf:"varint,3,opt,name=keyIndex" json:"keyIndex,omitempty"` } -func (x *DNSSource) Reset() { - *x = DNSSource{} +func (x *ADVDeviceIdentity) Reset() { + *x = ADVDeviceIdentity{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4100,13 +3942,13 @@ func (x *DNSSource) Reset() { } } -func (x *DNSSource) String() string { +func (x *ADVDeviceIdentity) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DNSSource) ProtoMessage() {} +func (*ADVDeviceIdentity) ProtoMessage() {} -func (x *DNSSource) ProtoReflect() protoreflect.Message { +func (x *ADVDeviceIdentity) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4118,42 +3960,45 @@ func (x *DNSSource) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DNSSource.ProtoReflect.Descriptor instead. -func (*DNSSource) Descriptor() ([]byte, []int) { +// Deprecated: Use ADVDeviceIdentity.ProtoReflect.Descriptor instead. +func (*ADVDeviceIdentity) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{4} } -func (x *DNSSource) GetDnsMethod() DNSSource_DNSSourceDNSResolutionMethod { - if x != nil && x.DnsMethod != nil { - return *x.DnsMethod +func (x *ADVDeviceIdentity) GetRawId() uint32 { + if x != nil && x.RawId != nil { + return *x.RawId } - return DNSSource_SYSTEM + return 0 } -func (x *DNSSource) GetAppCached() bool { - if x != nil && x.AppCached != nil { - return *x.AppCached +func (x *ADVDeviceIdentity) GetTimestamp() uint64 { + if x != nil && x.Timestamp != nil { + return *x.Timestamp } - return false + return 0 } -type CompanionRegData struct { +func (x *ADVDeviceIdentity) GetKeyIndex() uint32 { + if x != nil && x.KeyIndex != nil { + return *x.KeyIndex + } + return 0 +} + +type CompanionProps struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ERegid []byte `protobuf:"bytes,1,opt,name=eRegid" json:"eRegid,omitempty"` - EKeytype []byte `protobuf:"bytes,2,opt,name=eKeytype" json:"eKeytype,omitempty"` - EIdent []byte `protobuf:"bytes,3,opt,name=eIdent" json:"eIdent,omitempty"` - ESkeyId []byte `protobuf:"bytes,4,opt,name=eSkeyId" json:"eSkeyId,omitempty"` - ESkeyVal []byte `protobuf:"bytes,5,opt,name=eSkeyVal" json:"eSkeyVal,omitempty"` - ESkeySig []byte `protobuf:"bytes,6,opt,name=eSkeySig" json:"eSkeySig,omitempty"` - BuildHash []byte `protobuf:"bytes,7,opt,name=buildHash" json:"buildHash,omitempty"` - CompanionProps []byte `protobuf:"bytes,8,opt,name=companionProps" json:"companionProps,omitempty"` + Os *string `protobuf:"bytes,1,opt,name=os" json:"os,omitempty"` + Version *AppVersion `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` + PlatformType *CompanionProps_CompanionPropsPlatformType `protobuf:"varint,3,opt,name=platformType,enum=proto.CompanionProps_CompanionPropsPlatformType" json:"platformType,omitempty"` + RequireFullSync *bool `protobuf:"varint,4,opt,name=requireFullSync" json:"requireFullSync,omitempty"` } -func (x *CompanionRegData) Reset() { - *x = CompanionRegData{} +func (x *CompanionProps) Reset() { + *x = CompanionProps{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4161,13 +4006,13 @@ func (x *CompanionRegData) Reset() { } } -func (x *CompanionRegData) String() string { +func (x *CompanionProps) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CompanionRegData) ProtoMessage() {} +func (*CompanionProps) ProtoMessage() {} -func (x *CompanionRegData) ProtoReflect() protoreflect.Message { +func (x *CompanionProps) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4179,98 +4024,53 @@ func (x *CompanionRegData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CompanionRegData.ProtoReflect.Descriptor instead. -func (*CompanionRegData) Descriptor() ([]byte, []int) { +// Deprecated: Use CompanionProps.ProtoReflect.Descriptor instead. +func (*CompanionProps) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{5} } -func (x *CompanionRegData) GetERegid() []byte { - if x != nil { - return x.ERegid - } - return nil -} - -func (x *CompanionRegData) GetEKeytype() []byte { - if x != nil { - return x.EKeytype - } - return nil -} - -func (x *CompanionRegData) GetEIdent() []byte { - if x != nil { - return x.EIdent - } - return nil -} - -func (x *CompanionRegData) GetESkeyId() []byte { - if x != nil { - return x.ESkeyId - } - return nil -} - -func (x *CompanionRegData) GetESkeyVal() []byte { - if x != nil { - return x.ESkeyVal +func (x *CompanionProps) GetOs() string { + if x != nil && x.Os != nil { + return *x.Os } - return nil + return "" } -func (x *CompanionRegData) GetESkeySig() []byte { +func (x *CompanionProps) GetVersion() *AppVersion { if x != nil { - return x.ESkeySig + return x.Version } return nil } -func (x *CompanionRegData) GetBuildHash() []byte { - if x != nil { - return x.BuildHash +func (x *CompanionProps) GetPlatformType() CompanionProps_CompanionPropsPlatformType { + if x != nil && x.PlatformType != nil { + return *x.PlatformType } - return nil + return CompanionProps_UNKNOWN } -func (x *CompanionRegData) GetCompanionProps() []byte { - if x != nil { - return x.CompanionProps +func (x *CompanionProps) GetRequireFullSync() bool { + if x != nil && x.RequireFullSync != nil { + return *x.RequireFullSync } - return nil + return false } -type ClientPayload struct { +type AppVersion struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Username *uint64 `protobuf:"varint,1,opt,name=username" json:"username,omitempty"` - Passive *bool `protobuf:"varint,3,opt,name=passive" json:"passive,omitempty"` - UserAgent *UserAgent `protobuf:"bytes,5,opt,name=userAgent" json:"userAgent,omitempty"` - WebInfo *WebInfo `protobuf:"bytes,6,opt,name=webInfo" json:"webInfo,omitempty"` - PushName *string `protobuf:"bytes,7,opt,name=pushName" json:"pushName,omitempty"` - SessionId *int32 `protobuf:"fixed32,9,opt,name=sessionId" json:"sessionId,omitempty"` - ShortConnect *bool `protobuf:"varint,10,opt,name=shortConnect" json:"shortConnect,omitempty"` - ConnectType *ClientPayload_ClientPayloadConnectType `protobuf:"varint,12,opt,name=connectType,enum=proto.ClientPayload_ClientPayloadConnectType" json:"connectType,omitempty"` - ConnectReason *ClientPayload_ClientPayloadConnectReason `protobuf:"varint,13,opt,name=connectReason,enum=proto.ClientPayload_ClientPayloadConnectReason" json:"connectReason,omitempty"` - Shards []int32 `protobuf:"varint,14,rep,name=shards" json:"shards,omitempty"` - DnsSource *DNSSource `protobuf:"bytes,15,opt,name=dnsSource" json:"dnsSource,omitempty"` - ConnectAttemptCount *uint32 `protobuf:"varint,16,opt,name=connectAttemptCount" json:"connectAttemptCount,omitempty"` - Device *uint32 `protobuf:"varint,18,opt,name=device" json:"device,omitempty"` - RegData *CompanionRegData `protobuf:"bytes,19,opt,name=regData" json:"regData,omitempty"` - Product *ClientPayload_ClientPayloadProduct `protobuf:"varint,20,opt,name=product,enum=proto.ClientPayload_ClientPayloadProduct" json:"product,omitempty"` - FbCat []byte `protobuf:"bytes,21,opt,name=fbCat" json:"fbCat,omitempty"` - FbUserAgent []byte `protobuf:"bytes,22,opt,name=fbUserAgent" json:"fbUserAgent,omitempty"` - Oc *bool `protobuf:"varint,23,opt,name=oc" json:"oc,omitempty"` - Lc *int32 `protobuf:"varint,24,opt,name=lc" json:"lc,omitempty"` - IosAppExtension *ClientPayload_ClientPayloadIOSAppExtension `protobuf:"varint,30,opt,name=iosAppExtension,enum=proto.ClientPayload_ClientPayloadIOSAppExtension" json:"iosAppExtension,omitempty"` - FbAppId *uint64 `protobuf:"varint,31,opt,name=fbAppId" json:"fbAppId,omitempty"` - FbDeviceId []byte `protobuf:"bytes,32,opt,name=fbDeviceId" json:"fbDeviceId,omitempty"` + Primary *uint32 `protobuf:"varint,1,opt,name=primary" json:"primary,omitempty"` + Secondary *uint32 `protobuf:"varint,2,opt,name=secondary" json:"secondary,omitempty"` + Tertiary *uint32 `protobuf:"varint,3,opt,name=tertiary" json:"tertiary,omitempty"` + Quaternary *uint32 `protobuf:"varint,4,opt,name=quaternary" json:"quaternary,omitempty"` + Quinary *uint32 `protobuf:"varint,5,opt,name=quinary" json:"quinary,omitempty"` } -func (x *ClientPayload) Reset() { - *x = ClientPayload{} +func (x *AppVersion) Reset() { + *x = AppVersion{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4278,13 +4078,13 @@ func (x *ClientPayload) Reset() { } } -func (x *ClientPayload) String() string { +func (x *AppVersion) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ClientPayload) ProtoMessage() {} +func (*AppVersion) ProtoMessage() {} -func (x *ClientPayload) ProtoReflect() protoreflect.Message { +func (x *AppVersion) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4296,256 +4096,216 @@ func (x *ClientPayload) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ClientPayload.ProtoReflect.Descriptor instead. -func (*ClientPayload) Descriptor() ([]byte, []int) { +// Deprecated: Use AppVersion.ProtoReflect.Descriptor instead. +func (*AppVersion) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{6} } -func (x *ClientPayload) GetUsername() uint64 { - if x != nil && x.Username != nil { - return *x.Username +func (x *AppVersion) GetPrimary() uint32 { + if x != nil && x.Primary != nil { + return *x.Primary } return 0 } -func (x *ClientPayload) GetPassive() bool { - if x != nil && x.Passive != nil { - return *x.Passive - } - return false -} - -func (x *ClientPayload) GetUserAgent() *UserAgent { - if x != nil { - return x.UserAgent +func (x *AppVersion) GetSecondary() uint32 { + if x != nil && x.Secondary != nil { + return *x.Secondary } - return nil + return 0 } -func (x *ClientPayload) GetWebInfo() *WebInfo { - if x != nil { - return x.WebInfo +func (x *AppVersion) GetTertiary() uint32 { + if x != nil && x.Tertiary != nil { + return *x.Tertiary } - return nil + return 0 } -func (x *ClientPayload) GetPushName() string { - if x != nil && x.PushName != nil { - return *x.PushName +func (x *AppVersion) GetQuaternary() uint32 { + if x != nil && x.Quaternary != nil { + return *x.Quaternary } - return "" + return 0 } -func (x *ClientPayload) GetSessionId() int32 { - if x != nil && x.SessionId != nil { - return *x.SessionId +func (x *AppVersion) GetQuinary() uint32 { + if x != nil && x.Quinary != nil { + return *x.Quinary } return 0 } -func (x *ClientPayload) GetShortConnect() bool { - if x != nil && x.ShortConnect != nil { - return *x.ShortConnect - } - return false -} +type StickerMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *ClientPayload) GetConnectType() ClientPayload_ClientPayloadConnectType { - if x != nil && x.ConnectType != nil { - return *x.ConnectType - } - return ClientPayload_CELLULAR_UNKNOWN + Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` + FileSha256 []byte `protobuf:"bytes,2,opt,name=fileSha256" json:"fileSha256,omitempty"` + FileEncSha256 []byte `protobuf:"bytes,3,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` + MediaKey []byte `protobuf:"bytes,4,opt,name=mediaKey" json:"mediaKey,omitempty"` + Mimetype *string `protobuf:"bytes,5,opt,name=mimetype" json:"mimetype,omitempty"` + Height *uint32 `protobuf:"varint,6,opt,name=height" json:"height,omitempty"` + Width *uint32 `protobuf:"varint,7,opt,name=width" json:"width,omitempty"` + DirectPath *string `protobuf:"bytes,8,opt,name=directPath" json:"directPath,omitempty"` + FileLength *uint64 `protobuf:"varint,9,opt,name=fileLength" json:"fileLength,omitempty"` + MediaKeyTimestamp *int64 `protobuf:"varint,10,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` + FirstFrameLength *uint32 `protobuf:"varint,11,opt,name=firstFrameLength" json:"firstFrameLength,omitempty"` + FirstFrameSidecar []byte `protobuf:"bytes,12,opt,name=firstFrameSidecar" json:"firstFrameSidecar,omitempty"` + IsAnimated *bool `protobuf:"varint,13,opt,name=isAnimated" json:"isAnimated,omitempty"` + PngThumbnail []byte `protobuf:"bytes,16,opt,name=pngThumbnail" json:"pngThumbnail,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` } -func (x *ClientPayload) GetConnectReason() ClientPayload_ClientPayloadConnectReason { - if x != nil && x.ConnectReason != nil { - return *x.ConnectReason +func (x *StickerMessage) Reset() { + *x = StickerMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return ClientPayload_PUSH } -func (x *ClientPayload) GetShards() []int32 { - if x != nil { - return x.Shards - } - return nil +func (x *StickerMessage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *ClientPayload) GetDnsSource() *DNSSource { - if x != nil { - return x.DnsSource +func (*StickerMessage) ProtoMessage() {} + +func (x *StickerMessage) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_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 nil + return mi.MessageOf(x) } -func (x *ClientPayload) GetConnectAttemptCount() uint32 { - if x != nil && x.ConnectAttemptCount != nil { - return *x.ConnectAttemptCount - } - return 0 +// Deprecated: Use StickerMessage.ProtoReflect.Descriptor instead. +func (*StickerMessage) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{7} } -func (x *ClientPayload) GetDevice() uint32 { - if x != nil && x.Device != nil { - return *x.Device +func (x *StickerMessage) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url } - return 0 + return "" } -func (x *ClientPayload) GetRegData() *CompanionRegData { +func (x *StickerMessage) GetFileSha256() []byte { if x != nil { - return x.RegData + return x.FileSha256 } return nil } -func (x *ClientPayload) GetProduct() ClientPayload_ClientPayloadProduct { - if x != nil && x.Product != nil { - return *x.Product - } - return ClientPayload_WHATSAPP -} - -func (x *ClientPayload) GetFbCat() []byte { +func (x *StickerMessage) GetFileEncSha256() []byte { if x != nil { - return x.FbCat + return x.FileEncSha256 } return nil } -func (x *ClientPayload) GetFbUserAgent() []byte { +func (x *StickerMessage) GetMediaKey() []byte { if x != nil { - return x.FbUserAgent + return x.MediaKey } return nil } -func (x *ClientPayload) GetOc() bool { - if x != nil && x.Oc != nil { - return *x.Oc +func (x *StickerMessage) GetMimetype() string { + if x != nil && x.Mimetype != nil { + return *x.Mimetype } - return false + return "" } -func (x *ClientPayload) GetLc() int32 { - if x != nil && x.Lc != nil { - return *x.Lc +func (x *StickerMessage) GetHeight() uint32 { + if x != nil && x.Height != nil { + return *x.Height } return 0 } -func (x *ClientPayload) GetIosAppExtension() ClientPayload_ClientPayloadIOSAppExtension { - if x != nil && x.IosAppExtension != nil { - return *x.IosAppExtension - } - return ClientPayload_SHARE_EXTENSION -} - -func (x *ClientPayload) GetFbAppId() uint64 { - if x != nil && x.FbAppId != nil { - return *x.FbAppId +func (x *StickerMessage) GetWidth() uint32 { + if x != nil && x.Width != nil { + return *x.Width } return 0 } -func (x *ClientPayload) GetFbDeviceId() []byte { - if x != nil { - return x.FbDeviceId +func (x *StickerMessage) GetDirectPath() string { + if x != nil && x.DirectPath != nil { + return *x.DirectPath } - return nil -} - -// Renamed from Details -type NoiseCertificateDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Serial *uint32 `protobuf:"varint,1,opt,name=serial" json:"serial,omitempty"` - Issuer *string `protobuf:"bytes,2,opt,name=issuer" json:"issuer,omitempty"` - Expires *uint64 `protobuf:"varint,3,opt,name=expires" json:"expires,omitempty"` - Subject *string `protobuf:"bytes,4,opt,name=subject" json:"subject,omitempty"` - Key []byte `protobuf:"bytes,5,opt,name=key" json:"key,omitempty"` + return "" } -func (x *NoiseCertificateDetails) Reset() { - *x = NoiseCertificateDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *StickerMessage) GetFileLength() uint64 { + if x != nil && x.FileLength != nil { + return *x.FileLength } + return 0 } -func (x *NoiseCertificateDetails) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NoiseCertificateDetails) ProtoMessage() {} - -func (x *NoiseCertificateDetails) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *StickerMessage) GetMediaKeyTimestamp() int64 { + if x != nil && x.MediaKeyTimestamp != nil { + return *x.MediaKeyTimestamp } - return mi.MessageOf(x) -} - -// Deprecated: Use NoiseCertificateDetails.ProtoReflect.Descriptor instead. -func (*NoiseCertificateDetails) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{7} + return 0 } -func (x *NoiseCertificateDetails) GetSerial() uint32 { - if x != nil && x.Serial != nil { - return *x.Serial +func (x *StickerMessage) GetFirstFrameLength() uint32 { + if x != nil && x.FirstFrameLength != nil { + return *x.FirstFrameLength } return 0 } -func (x *NoiseCertificateDetails) GetIssuer() string { - if x != nil && x.Issuer != nil { - return *x.Issuer +func (x *StickerMessage) GetFirstFrameSidecar() []byte { + if x != nil { + return x.FirstFrameSidecar } - return "" + return nil } -func (x *NoiseCertificateDetails) GetExpires() uint64 { - if x != nil && x.Expires != nil { - return *x.Expires +func (x *StickerMessage) GetIsAnimated() bool { + if x != nil && x.IsAnimated != nil { + return *x.IsAnimated } - return 0 + return false } -func (x *NoiseCertificateDetails) GetSubject() string { - if x != nil && x.Subject != nil { - return *x.Subject +func (x *StickerMessage) GetPngThumbnail() []byte { + if x != nil { + return x.PngThumbnail } - return "" + return nil } -func (x *NoiseCertificateDetails) GetKey() []byte { +func (x *StickerMessage) GetContextInfo() *ContextInfo { if x != nil { - return x.Key + return x.ContextInfo } return nil } -type NoiseCertificate struct { +type SenderKeyDistributionMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` + GroupId *string `protobuf:"bytes,1,opt,name=groupId" json:"groupId,omitempty"` + AxolotlSenderKeyDistributionMessage []byte `protobuf:"bytes,2,opt,name=axolotlSenderKeyDistributionMessage" json:"axolotlSenderKeyDistributionMessage,omitempty"` } -func (x *NoiseCertificate) Reset() { - *x = NoiseCertificate{} +func (x *SenderKeyDistributionMessage) Reset() { + *x = SenderKeyDistributionMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4553,13 +4313,13 @@ func (x *NoiseCertificate) Reset() { } } -func (x *NoiseCertificate) String() string { +func (x *SenderKeyDistributionMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*NoiseCertificate) ProtoMessage() {} +func (*SenderKeyDistributionMessage) ProtoMessage() {} -func (x *NoiseCertificate) ProtoReflect() protoreflect.Message { +func (x *SenderKeyDistributionMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4571,37 +4331,37 @@ func (x *NoiseCertificate) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NoiseCertificate.ProtoReflect.Descriptor instead. -func (*NoiseCertificate) Descriptor() ([]byte, []int) { +// Deprecated: Use SenderKeyDistributionMessage.ProtoReflect.Descriptor instead. +func (*SenderKeyDistributionMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{8} } -func (x *NoiseCertificate) GetDetails() []byte { - if x != nil { - return x.Details +func (x *SenderKeyDistributionMessage) GetGroupId() string { + if x != nil && x.GroupId != nil { + return *x.GroupId } - return nil + return "" } -func (x *NoiseCertificate) GetSignature() []byte { +func (x *SenderKeyDistributionMessage) GetAxolotlSenderKeyDistributionMessage() []byte { if x != nil { - return x.Signature + return x.AxolotlSenderKeyDistributionMessage } return nil } -type ClientHello struct { +type SendPaymentMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ephemeral []byte `protobuf:"bytes,1,opt,name=ephemeral" json:"ephemeral,omitempty"` - Static []byte `protobuf:"bytes,2,opt,name=static" json:"static,omitempty"` - Payload []byte `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"` + NoteMessage *Message `protobuf:"bytes,2,opt,name=noteMessage" json:"noteMessage,omitempty"` + RequestMessageKey *MessageKey `protobuf:"bytes,3,opt,name=requestMessageKey" json:"requestMessageKey,omitempty"` + Background *PaymentBackground `protobuf:"bytes,4,opt,name=background" json:"background,omitempty"` } -func (x *ClientHello) Reset() { - *x = ClientHello{} +func (x *SendPaymentMessage) Reset() { + *x = SendPaymentMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4609,13 +4369,13 @@ func (x *ClientHello) Reset() { } } -func (x *ClientHello) String() string { +func (x *SendPaymentMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ClientHello) ProtoMessage() {} +func (*SendPaymentMessage) ProtoMessage() {} -func (x *ClientHello) ProtoReflect() protoreflect.Message { +func (x *SendPaymentMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4627,44 +4387,48 @@ func (x *ClientHello) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ClientHello.ProtoReflect.Descriptor instead. -func (*ClientHello) Descriptor() ([]byte, []int) { +// Deprecated: Use SendPaymentMessage.ProtoReflect.Descriptor instead. +func (*SendPaymentMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{9} } -func (x *ClientHello) GetEphemeral() []byte { +func (x *SendPaymentMessage) GetNoteMessage() *Message { if x != nil { - return x.Ephemeral + return x.NoteMessage } return nil } -func (x *ClientHello) GetStatic() []byte { +func (x *SendPaymentMessage) GetRequestMessageKey() *MessageKey { if x != nil { - return x.Static + return x.RequestMessageKey } return nil } -func (x *ClientHello) GetPayload() []byte { +func (x *SendPaymentMessage) GetBackground() *PaymentBackground { if x != nil { - return x.Payload + return x.Background } return nil } -type ServerHello struct { +type RequestPaymentMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Ephemeral []byte `protobuf:"bytes,1,opt,name=ephemeral" json:"ephemeral,omitempty"` - Static []byte `protobuf:"bytes,2,opt,name=static" json:"static,omitempty"` - Payload []byte `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"` + NoteMessage *Message `protobuf:"bytes,4,opt,name=noteMessage" json:"noteMessage,omitempty"` + CurrencyCodeIso4217 *string `protobuf:"bytes,1,opt,name=currencyCodeIso4217" json:"currencyCodeIso4217,omitempty"` + Amount1000 *uint64 `protobuf:"varint,2,opt,name=amount1000" json:"amount1000,omitempty"` + RequestFrom *string `protobuf:"bytes,3,opt,name=requestFrom" json:"requestFrom,omitempty"` + ExpiryTimestamp *int64 `protobuf:"varint,5,opt,name=expiryTimestamp" json:"expiryTimestamp,omitempty"` + Amount *Money `protobuf:"bytes,6,opt,name=amount" json:"amount,omitempty"` + Background *PaymentBackground `protobuf:"bytes,7,opt,name=background" json:"background,omitempty"` } -func (x *ServerHello) Reset() { - *x = ServerHello{} +func (x *RequestPaymentMessage) Reset() { + *x = RequestPaymentMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4672,13 +4436,13 @@ func (x *ServerHello) Reset() { } } -func (x *ServerHello) String() string { +func (x *RequestPaymentMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ServerHello) ProtoMessage() {} +func (*RequestPaymentMessage) ProtoMessage() {} -func (x *ServerHello) ProtoReflect() protoreflect.Message { +func (x *RequestPaymentMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4690,43 +4454,73 @@ func (x *ServerHello) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ServerHello.ProtoReflect.Descriptor instead. -func (*ServerHello) Descriptor() ([]byte, []int) { +// Deprecated: Use RequestPaymentMessage.ProtoReflect.Descriptor instead. +func (*RequestPaymentMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{10} } -func (x *ServerHello) GetEphemeral() []byte { +func (x *RequestPaymentMessage) GetNoteMessage() *Message { if x != nil { - return x.Ephemeral + return x.NoteMessage } return nil } -func (x *ServerHello) GetStatic() []byte { +func (x *RequestPaymentMessage) GetCurrencyCodeIso4217() string { + if x != nil && x.CurrencyCodeIso4217 != nil { + return *x.CurrencyCodeIso4217 + } + return "" +} + +func (x *RequestPaymentMessage) GetAmount1000() uint64 { + if x != nil && x.Amount1000 != nil { + return *x.Amount1000 + } + return 0 +} + +func (x *RequestPaymentMessage) GetRequestFrom() string { + if x != nil && x.RequestFrom != nil { + return *x.RequestFrom + } + return "" +} + +func (x *RequestPaymentMessage) GetExpiryTimestamp() int64 { + if x != nil && x.ExpiryTimestamp != nil { + return *x.ExpiryTimestamp + } + return 0 +} + +func (x *RequestPaymentMessage) GetAmount() *Money { if x != nil { - return x.Static + return x.Amount } return nil } -func (x *ServerHello) GetPayload() []byte { +func (x *RequestPaymentMessage) GetBackground() *PaymentBackground { if x != nil { - return x.Payload + return x.Background } return nil } -type ClientFinish struct { +type ReactionMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Static []byte `protobuf:"bytes,1,opt,name=static" json:"static,omitempty"` - Payload []byte `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"` + Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` + Text *string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` + GroupingKey *string `protobuf:"bytes,3,opt,name=groupingKey" json:"groupingKey,omitempty"` + SenderTimestampMs *int64 `protobuf:"varint,4,opt,name=senderTimestampMs" json:"senderTimestampMs,omitempty"` } -func (x *ClientFinish) Reset() { - *x = ClientFinish{} +func (x *ReactionMessage) Reset() { + *x = ReactionMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4734,13 +4528,13 @@ func (x *ClientFinish) Reset() { } } -func (x *ClientFinish) String() string { +func (x *ReactionMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ClientFinish) ProtoMessage() {} +func (*ReactionMessage) ProtoMessage() {} -func (x *ClientFinish) ProtoReflect() protoreflect.Message { +func (x *ReactionMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4752,37 +4546,58 @@ func (x *ClientFinish) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ClientFinish.ProtoReflect.Descriptor instead. -func (*ClientFinish) Descriptor() ([]byte, []int) { +// Deprecated: Use ReactionMessage.ProtoReflect.Descriptor instead. +func (*ReactionMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{11} } -func (x *ClientFinish) GetStatic() []byte { +func (x *ReactionMessage) GetKey() *MessageKey { if x != nil { - return x.Static + return x.Key } return nil } -func (x *ClientFinish) GetPayload() []byte { - if x != nil { - return x.Payload +func (x *ReactionMessage) GetText() string { + if x != nil && x.Text != nil { + return *x.Text } - return nil + return "" } -type HandshakeMessage struct { +func (x *ReactionMessage) GetGroupingKey() string { + if x != nil && x.GroupingKey != nil { + return *x.GroupingKey + } + return "" +} + +func (x *ReactionMessage) GetSenderTimestampMs() int64 { + if x != nil && x.SenderTimestampMs != nil { + return *x.SenderTimestampMs + } + return 0 +} + +type ProtocolMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ClientHello *ClientHello `protobuf:"bytes,2,opt,name=clientHello" json:"clientHello,omitempty"` - ServerHello *ServerHello `protobuf:"bytes,3,opt,name=serverHello" json:"serverHello,omitempty"` - ClientFinish *ClientFinish `protobuf:"bytes,4,opt,name=clientFinish" json:"clientFinish,omitempty"` + Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` + Type *ProtocolMessage_ProtocolMessageType `protobuf:"varint,2,opt,name=type,enum=proto.ProtocolMessage_ProtocolMessageType" json:"type,omitempty"` + EphemeralExpiration *uint32 `protobuf:"varint,4,opt,name=ephemeralExpiration" json:"ephemeralExpiration,omitempty"` + EphemeralSettingTimestamp *int64 `protobuf:"varint,5,opt,name=ephemeralSettingTimestamp" json:"ephemeralSettingTimestamp,omitempty"` + HistorySyncNotification *HistorySyncNotification `protobuf:"bytes,6,opt,name=historySyncNotification" json:"historySyncNotification,omitempty"` + AppStateSyncKeyShare *AppStateSyncKeyShare `protobuf:"bytes,7,opt,name=appStateSyncKeyShare" json:"appStateSyncKeyShare,omitempty"` + AppStateSyncKeyRequest *AppStateSyncKeyRequest `protobuf:"bytes,8,opt,name=appStateSyncKeyRequest" json:"appStateSyncKeyRequest,omitempty"` + InitialSecurityNotificationSettingSync *InitialSecurityNotificationSettingSync `protobuf:"bytes,9,opt,name=initialSecurityNotificationSettingSync" json:"initialSecurityNotificationSettingSync,omitempty"` + AppStateFatalExceptionNotification *AppStateFatalExceptionNotification `protobuf:"bytes,10,opt,name=appStateFatalExceptionNotification" json:"appStateFatalExceptionNotification,omitempty"` + DisappearingMode *DisappearingMode `protobuf:"bytes,11,opt,name=disappearingMode" json:"disappearingMode,omitempty"` } -func (x *HandshakeMessage) Reset() { - *x = HandshakeMessage{} +func (x *ProtocolMessage) Reset() { + *x = ProtocolMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4790,13 +4605,13 @@ func (x *HandshakeMessage) Reset() { } } -func (x *HandshakeMessage) String() string { +func (x *ProtocolMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HandshakeMessage) ProtoMessage() {} +func (*ProtocolMessage) ProtoMessage() {} -func (x *HandshakeMessage) ProtoReflect() protoreflect.Message { +func (x *ProtocolMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4808,49 +4623,96 @@ func (x *HandshakeMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HandshakeMessage.ProtoReflect.Descriptor instead. -func (*HandshakeMessage) Descriptor() ([]byte, []int) { +// Deprecated: Use ProtocolMessage.ProtoReflect.Descriptor instead. +func (*ProtocolMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{12} } -func (x *HandshakeMessage) GetClientHello() *ClientHello { +func (x *ProtocolMessage) GetKey() *MessageKey { if x != nil { - return x.ClientHello + return x.Key } return nil } -func (x *HandshakeMessage) GetServerHello() *ServerHello { +func (x *ProtocolMessage) GetType() ProtocolMessage_ProtocolMessageType { + if x != nil && x.Type != nil { + return *x.Type + } + return ProtocolMessage_REVOKE +} + +func (x *ProtocolMessage) GetEphemeralExpiration() uint32 { + if x != nil && x.EphemeralExpiration != nil { + return *x.EphemeralExpiration + } + return 0 +} + +func (x *ProtocolMessage) GetEphemeralSettingTimestamp() int64 { + if x != nil && x.EphemeralSettingTimestamp != nil { + return *x.EphemeralSettingTimestamp + } + return 0 +} + +func (x *ProtocolMessage) GetHistorySyncNotification() *HistorySyncNotification { if x != nil { - return x.ServerHello + return x.HistorySyncNotification } return nil } -func (x *HandshakeMessage) GetClientFinish() *ClientFinish { +func (x *ProtocolMessage) GetAppStateSyncKeyShare() *AppStateSyncKeyShare { if x != nil { - return x.ClientFinish + return x.AppStateSyncKeyShare } return nil } -type BizIdentityInfo struct { +func (x *ProtocolMessage) GetAppStateSyncKeyRequest() *AppStateSyncKeyRequest { + if x != nil { + return x.AppStateSyncKeyRequest + } + return nil +} + +func (x *ProtocolMessage) GetInitialSecurityNotificationSettingSync() *InitialSecurityNotificationSettingSync { + if x != nil { + return x.InitialSecurityNotificationSettingSync + } + return nil +} + +func (x *ProtocolMessage) GetAppStateFatalExceptionNotification() *AppStateFatalExceptionNotification { + if x != nil { + return x.AppStateFatalExceptionNotification + } + return nil +} + +func (x *ProtocolMessage) GetDisappearingMode() *DisappearingMode { + if x != nil { + return x.DisappearingMode + } + return nil +} + +type ProductMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Vlevel *BizIdentityInfo_BizIdentityInfoVerifiedLevelValue `protobuf:"varint,1,opt,name=vlevel,enum=proto.BizIdentityInfo_BizIdentityInfoVerifiedLevelValue" json:"vlevel,omitempty"` - VnameCert *VerifiedNameCertificate `protobuf:"bytes,2,opt,name=vnameCert" json:"vnameCert,omitempty"` - Signed *bool `protobuf:"varint,3,opt,name=signed" json:"signed,omitempty"` - Revoked *bool `protobuf:"varint,4,opt,name=revoked" json:"revoked,omitempty"` - HostStorage *BizIdentityInfo_BizIdentityInfoHostStorageType `protobuf:"varint,5,opt,name=hostStorage,enum=proto.BizIdentityInfo_BizIdentityInfoHostStorageType" json:"hostStorage,omitempty"` - ActualActors *BizIdentityInfo_BizIdentityInfoActualActorsType `protobuf:"varint,6,opt,name=actualActors,enum=proto.BizIdentityInfo_BizIdentityInfoActualActorsType" json:"actualActors,omitempty"` - PrivacyModeTs *uint64 `protobuf:"varint,7,opt,name=privacyModeTs" json:"privacyModeTs,omitempty"` - FeatureControls *uint64 `protobuf:"varint,8,opt,name=featureControls" json:"featureControls,omitempty"` + Product *ProductSnapshot `protobuf:"bytes,1,opt,name=product" json:"product,omitempty"` + BusinessOwnerJid *string `protobuf:"bytes,2,opt,name=businessOwnerJid" json:"businessOwnerJid,omitempty"` + Catalog *CatalogSnapshot `protobuf:"bytes,4,opt,name=catalog" json:"catalog,omitempty"` + Body *string `protobuf:"bytes,5,opt,name=body" json:"body,omitempty"` + Footer *string `protobuf:"bytes,6,opt,name=footer" json:"footer,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` } -func (x *BizIdentityInfo) Reset() { - *x = BizIdentityInfo{} +func (x *ProductMessage) Reset() { + *x = ProductMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4858,13 +4720,13 @@ func (x *BizIdentityInfo) Reset() { } } -func (x *BizIdentityInfo) String() string { +func (x *ProductMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BizIdentityInfo) ProtoMessage() {} +func (*ProductMessage) ProtoMessage() {} -func (x *BizIdentityInfo) ProtoReflect() protoreflect.Message { +func (x *ProductMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4876,81 +4738,73 @@ func (x *BizIdentityInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BizIdentityInfo.ProtoReflect.Descriptor instead. -func (*BizIdentityInfo) Descriptor() ([]byte, []int) { +// Deprecated: Use ProductMessage.ProtoReflect.Descriptor instead. +func (*ProductMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{13} } -func (x *BizIdentityInfo) GetVlevel() BizIdentityInfo_BizIdentityInfoVerifiedLevelValue { - if x != nil && x.Vlevel != nil { - return *x.Vlevel - } - return BizIdentityInfo_UNKNOWN -} - -func (x *BizIdentityInfo) GetVnameCert() *VerifiedNameCertificate { +func (x *ProductMessage) GetProduct() *ProductSnapshot { if x != nil { - return x.VnameCert + return x.Product } return nil } -func (x *BizIdentityInfo) GetSigned() bool { - if x != nil && x.Signed != nil { - return *x.Signed - } - return false -} - -func (x *BizIdentityInfo) GetRevoked() bool { - if x != nil && x.Revoked != nil { - return *x.Revoked +func (x *ProductMessage) GetBusinessOwnerJid() string { + if x != nil && x.BusinessOwnerJid != nil { + return *x.BusinessOwnerJid } - return false + return "" } -func (x *BizIdentityInfo) GetHostStorage() BizIdentityInfo_BizIdentityInfoHostStorageType { - if x != nil && x.HostStorage != nil { - return *x.HostStorage +func (x *ProductMessage) GetCatalog() *CatalogSnapshot { + if x != nil { + return x.Catalog } - return BizIdentityInfo_ON_PREMISE + return nil } -func (x *BizIdentityInfo) GetActualActors() BizIdentityInfo_BizIdentityInfoActualActorsType { - if x != nil && x.ActualActors != nil { - return *x.ActualActors +func (x *ProductMessage) GetBody() string { + if x != nil && x.Body != nil { + return *x.Body } - return BizIdentityInfo_SELF + return "" } -func (x *BizIdentityInfo) GetPrivacyModeTs() uint64 { - if x != nil && x.PrivacyModeTs != nil { - return *x.PrivacyModeTs +func (x *ProductMessage) GetFooter() string { + if x != nil && x.Footer != nil { + return *x.Footer } - return 0 + return "" } -func (x *BizIdentityInfo) GetFeatureControls() uint64 { - if x != nil && x.FeatureControls != nil { - return *x.FeatureControls +func (x *ProductMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo } - return 0 + return nil } -type BizAccountLinkInfo struct { +type ProductSnapshot struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - WhatsappBizAcctFbid *uint64 `protobuf:"varint,1,opt,name=whatsappBizAcctFbid" json:"whatsappBizAcctFbid,omitempty"` - WhatsappAcctNumber *string `protobuf:"bytes,2,opt,name=whatsappAcctNumber" json:"whatsappAcctNumber,omitempty"` - IssueTime *uint64 `protobuf:"varint,3,opt,name=issueTime" json:"issueTime,omitempty"` - HostStorage *BizAccountLinkInfo_BizAccountLinkInfoHostStorageType `protobuf:"varint,4,opt,name=hostStorage,enum=proto.BizAccountLinkInfo_BizAccountLinkInfoHostStorageType" json:"hostStorage,omitempty"` - AccountType *BizAccountLinkInfo_BizAccountLinkInfoAccountType `protobuf:"varint,5,opt,name=accountType,enum=proto.BizAccountLinkInfo_BizAccountLinkInfoAccountType" json:"accountType,omitempty"` + ProductImage *ImageMessage `protobuf:"bytes,1,opt,name=productImage" json:"productImage,omitempty"` + ProductId *string `protobuf:"bytes,2,opt,name=productId" json:"productId,omitempty"` + Title *string `protobuf:"bytes,3,opt,name=title" json:"title,omitempty"` + Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` + CurrencyCode *string `protobuf:"bytes,5,opt,name=currencyCode" json:"currencyCode,omitempty"` + PriceAmount1000 *int64 `protobuf:"varint,6,opt,name=priceAmount1000" json:"priceAmount1000,omitempty"` + RetailerId *string `protobuf:"bytes,7,opt,name=retailerId" json:"retailerId,omitempty"` + Url *string `protobuf:"bytes,8,opt,name=url" json:"url,omitempty"` + ProductImageCount *uint32 `protobuf:"varint,9,opt,name=productImageCount" json:"productImageCount,omitempty"` + FirstImageId *string `protobuf:"bytes,11,opt,name=firstImageId" json:"firstImageId,omitempty"` + SalePriceAmount1000 *int64 `protobuf:"varint,12,opt,name=salePriceAmount1000" json:"salePriceAmount1000,omitempty"` } -func (x *BizAccountLinkInfo) Reset() { - *x = BizAccountLinkInfo{} +func (x *ProductSnapshot) Reset() { + *x = ProductSnapshot{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4958,13 +4812,13 @@ func (x *BizAccountLinkInfo) Reset() { } } -func (x *BizAccountLinkInfo) String() string { +func (x *ProductSnapshot) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BizAccountLinkInfo) ProtoMessage() {} +func (*ProductSnapshot) ProtoMessage() {} -func (x *BizAccountLinkInfo) ProtoReflect() protoreflect.Message { +func (x *ProductSnapshot) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4976,57 +4830,100 @@ func (x *BizAccountLinkInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BizAccountLinkInfo.ProtoReflect.Descriptor instead. -func (*BizAccountLinkInfo) Descriptor() ([]byte, []int) { +// Deprecated: Use ProductSnapshot.ProtoReflect.Descriptor instead. +func (*ProductSnapshot) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{14} } -func (x *BizAccountLinkInfo) GetWhatsappBizAcctFbid() uint64 { - if x != nil && x.WhatsappBizAcctFbid != nil { - return *x.WhatsappBizAcctFbid +func (x *ProductSnapshot) GetProductImage() *ImageMessage { + if x != nil { + return x.ProductImage + } + return nil +} + +func (x *ProductSnapshot) GetProductId() string { + if x != nil && x.ProductId != nil { + return *x.ProductId + } + return "" +} + +func (x *ProductSnapshot) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title + } + return "" +} + +func (x *ProductSnapshot) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +func (x *ProductSnapshot) GetCurrencyCode() string { + if x != nil && x.CurrencyCode != nil { + return *x.CurrencyCode + } + return "" +} + +func (x *ProductSnapshot) GetPriceAmount1000() int64 { + if x != nil && x.PriceAmount1000 != nil { + return *x.PriceAmount1000 } return 0 } -func (x *BizAccountLinkInfo) GetWhatsappAcctNumber() string { - if x != nil && x.WhatsappAcctNumber != nil { - return *x.WhatsappAcctNumber +func (x *ProductSnapshot) GetRetailerId() string { + if x != nil && x.RetailerId != nil { + return *x.RetailerId } return "" } -func (x *BizAccountLinkInfo) GetIssueTime() uint64 { - if x != nil && x.IssueTime != nil { - return *x.IssueTime +func (x *ProductSnapshot) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url + } + return "" +} + +func (x *ProductSnapshot) GetProductImageCount() uint32 { + if x != nil && x.ProductImageCount != nil { + return *x.ProductImageCount } return 0 } -func (x *BizAccountLinkInfo) GetHostStorage() BizAccountLinkInfo_BizAccountLinkInfoHostStorageType { - if x != nil && x.HostStorage != nil { - return *x.HostStorage +func (x *ProductSnapshot) GetFirstImageId() string { + if x != nil && x.FirstImageId != nil { + return *x.FirstImageId } - return BizAccountLinkInfo_ON_PREMISE + return "" } -func (x *BizAccountLinkInfo) GetAccountType() BizAccountLinkInfo_BizAccountLinkInfoAccountType { - if x != nil && x.AccountType != nil { - return *x.AccountType +func (x *ProductSnapshot) GetSalePriceAmount1000() int64 { + if x != nil && x.SalePriceAmount1000 != nil { + return *x.SalePriceAmount1000 } - return BizAccountLinkInfo_ENTERPRISE + return 0 } -type BizAccountPayload struct { +type CatalogSnapshot struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - VnameCert *VerifiedNameCertificate `protobuf:"bytes,1,opt,name=vnameCert" json:"vnameCert,omitempty"` - BizAcctLinkInfo []byte `protobuf:"bytes,2,opt,name=bizAcctLinkInfo" json:"bizAcctLinkInfo,omitempty"` + CatalogImage *ImageMessage `protobuf:"bytes,1,opt,name=catalogImage" json:"catalogImage,omitempty"` + Title *string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` + Description *string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` } -func (x *BizAccountPayload) Reset() { - *x = BizAccountPayload{} +func (x *CatalogSnapshot) Reset() { + *x = CatalogSnapshot{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5034,13 +4931,13 @@ func (x *BizAccountPayload) Reset() { } } -func (x *BizAccountPayload) String() string { +func (x *CatalogSnapshot) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BizAccountPayload) ProtoMessage() {} +func (*CatalogSnapshot) ProtoMessage() {} -func (x *BizAccountPayload) ProtoReflect() protoreflect.Message { +func (x *CatalogSnapshot) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5052,40 +4949,43 @@ func (x *BizAccountPayload) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BizAccountPayload.ProtoReflect.Descriptor instead. -func (*BizAccountPayload) Descriptor() ([]byte, []int) { +// Deprecated: Use CatalogSnapshot.ProtoReflect.Descriptor instead. +func (*CatalogSnapshot) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{15} } -func (x *BizAccountPayload) GetVnameCert() *VerifiedNameCertificate { +func (x *CatalogSnapshot) GetCatalogImage() *ImageMessage { if x != nil { - return x.VnameCert + return x.CatalogImage } return nil } -func (x *BizAccountPayload) GetBizAcctLinkInfo() []byte { - if x != nil { - return x.BizAcctLinkInfo +func (x *CatalogSnapshot) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title } - return nil + return "" } -// Renamed from Details -type VerifiedNameDetails struct { +func (x *CatalogSnapshot) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +type PaymentInviteMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Serial *uint64 `protobuf:"varint,1,opt,name=serial" json:"serial,omitempty"` - Issuer *string `protobuf:"bytes,2,opt,name=issuer" json:"issuer,omitempty"` - VerifiedName *string `protobuf:"bytes,4,opt,name=verifiedName" json:"verifiedName,omitempty"` - LocalizedNames []*LocalizedName `protobuf:"bytes,8,rep,name=localizedNames" json:"localizedNames,omitempty"` - IssueTime *uint64 `protobuf:"varint,10,opt,name=issueTime" json:"issueTime,omitempty"` + ServiceType *PaymentInviteMessage_PaymentInviteMessageServiceType `protobuf:"varint,1,opt,name=serviceType,enum=proto.PaymentInviteMessage_PaymentInviteMessageServiceType" json:"serviceType,omitempty"` + ExpiryTimestamp *int64 `protobuf:"varint,2,opt,name=expiryTimestamp" json:"expiryTimestamp,omitempty"` } -func (x *VerifiedNameDetails) Reset() { - *x = VerifiedNameDetails{} +func (x *PaymentInviteMessage) Reset() { + *x = PaymentInviteMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5093,13 +4993,13 @@ func (x *VerifiedNameDetails) Reset() { } } -func (x *VerifiedNameDetails) String() string { +func (x *PaymentInviteMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VerifiedNameDetails) ProtoMessage() {} +func (*PaymentInviteMessage) ProtoMessage() {} -func (x *VerifiedNameDetails) ProtoReflect() protoreflect.Message { +func (x *PaymentInviteMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5111,58 +5011,46 @@ func (x *VerifiedNameDetails) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VerifiedNameDetails.ProtoReflect.Descriptor instead. -func (*VerifiedNameDetails) Descriptor() ([]byte, []int) { +// Deprecated: Use PaymentInviteMessage.ProtoReflect.Descriptor instead. +func (*PaymentInviteMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{16} } -func (x *VerifiedNameDetails) GetSerial() uint64 { - if x != nil && x.Serial != nil { - return *x.Serial - } - return 0 -} - -func (x *VerifiedNameDetails) GetIssuer() string { - if x != nil && x.Issuer != nil { - return *x.Issuer - } - return "" -} - -func (x *VerifiedNameDetails) GetVerifiedName() string { - if x != nil && x.VerifiedName != nil { - return *x.VerifiedName - } - return "" -} - -func (x *VerifiedNameDetails) GetLocalizedNames() []*LocalizedName { - if x != nil { - return x.LocalizedNames +func (x *PaymentInviteMessage) GetServiceType() PaymentInviteMessage_PaymentInviteMessageServiceType { + if x != nil && x.ServiceType != nil { + return *x.ServiceType } - return nil + return PaymentInviteMessage_UNKNOWN } -func (x *VerifiedNameDetails) GetIssueTime() uint64 { - if x != nil && x.IssueTime != nil { - return *x.IssueTime +func (x *PaymentInviteMessage) GetExpiryTimestamp() int64 { + if x != nil && x.ExpiryTimestamp != nil { + return *x.ExpiryTimestamp } return 0 } -type VerifiedNameCertificate struct { +type OrderMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` - ServerSignature []byte `protobuf:"bytes,3,opt,name=serverSignature" json:"serverSignature,omitempty"` + OrderId *string `protobuf:"bytes,1,opt,name=orderId" json:"orderId,omitempty"` + Thumbnail []byte `protobuf:"bytes,2,opt,name=thumbnail" json:"thumbnail,omitempty"` + ItemCount *int32 `protobuf:"varint,3,opt,name=itemCount" json:"itemCount,omitempty"` + Status *OrderMessage_OrderMessageOrderStatus `protobuf:"varint,4,opt,name=status,enum=proto.OrderMessage_OrderMessageOrderStatus" json:"status,omitempty"` + Surface *OrderMessage_OrderMessageOrderSurface `protobuf:"varint,5,opt,name=surface,enum=proto.OrderMessage_OrderMessageOrderSurface" json:"surface,omitempty"` + Message *string `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"` + OrderTitle *string `protobuf:"bytes,7,opt,name=orderTitle" json:"orderTitle,omitempty"` + SellerJid *string `protobuf:"bytes,8,opt,name=sellerJid" json:"sellerJid,omitempty"` + Token *string `protobuf:"bytes,9,opt,name=token" json:"token,omitempty"` + TotalAmount1000 *int64 `protobuf:"varint,10,opt,name=totalAmount1000" json:"totalAmount1000,omitempty"` + TotalCurrencyCode *string `protobuf:"bytes,11,opt,name=totalCurrencyCode" json:"totalCurrencyCode,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` } -func (x *VerifiedNameCertificate) Reset() { - *x = VerifiedNameCertificate{} +func (x *OrderMessage) Reset() { + *x = OrderMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5170,13 +5058,13 @@ func (x *VerifiedNameCertificate) Reset() { } } -func (x *VerifiedNameCertificate) String() string { +func (x *OrderMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VerifiedNameCertificate) ProtoMessage() {} +func (*OrderMessage) ProtoMessage() {} -func (x *VerifiedNameCertificate) ProtoReflect() protoreflect.Message { +func (x *OrderMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5188,44 +5076,116 @@ func (x *VerifiedNameCertificate) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VerifiedNameCertificate.ProtoReflect.Descriptor instead. -func (*VerifiedNameCertificate) Descriptor() ([]byte, []int) { +// Deprecated: Use OrderMessage.ProtoReflect.Descriptor instead. +func (*OrderMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{17} } -func (x *VerifiedNameCertificate) GetDetails() []byte { - if x != nil { - return x.Details +func (x *OrderMessage) GetOrderId() string { + if x != nil && x.OrderId != nil { + return *x.OrderId } - return nil + return "" } -func (x *VerifiedNameCertificate) GetSignature() []byte { +func (x *OrderMessage) GetThumbnail() []byte { if x != nil { - return x.Signature + return x.Thumbnail } return nil } -func (x *VerifiedNameCertificate) GetServerSignature() []byte { +func (x *OrderMessage) GetItemCount() int32 { + if x != nil && x.ItemCount != nil { + return *x.ItemCount + } + return 0 +} + +func (x *OrderMessage) GetStatus() OrderMessage_OrderMessageOrderStatus { + if x != nil && x.Status != nil { + return *x.Status + } + return OrderMessage_INQUIRY +} + +func (x *OrderMessage) GetSurface() OrderMessage_OrderMessageOrderSurface { + if x != nil && x.Surface != nil { + return *x.Surface + } + return OrderMessage_CATALOG +} + +func (x *OrderMessage) GetMessage() string { + if x != nil && x.Message != nil { + return *x.Message + } + return "" +} + +func (x *OrderMessage) GetOrderTitle() string { + if x != nil && x.OrderTitle != nil { + return *x.OrderTitle + } + return "" +} + +func (x *OrderMessage) GetSellerJid() string { + if x != nil && x.SellerJid != nil { + return *x.SellerJid + } + return "" +} + +func (x *OrderMessage) GetToken() string { + if x != nil && x.Token != nil { + return *x.Token + } + return "" +} + +func (x *OrderMessage) GetTotalAmount1000() int64 { + if x != nil && x.TotalAmount1000 != nil { + return *x.TotalAmount1000 + } + return 0 +} + +func (x *OrderMessage) GetTotalCurrencyCode() string { + if x != nil && x.TotalCurrencyCode != nil { + return *x.TotalCurrencyCode + } + return "" +} + +func (x *OrderMessage) GetContextInfo() *ContextInfo { if x != nil { - return x.ServerSignature + return x.ContextInfo } return nil } -type LocalizedName struct { +type LocationMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Lg *string `protobuf:"bytes,1,opt,name=lg" json:"lg,omitempty"` - Lc *string `protobuf:"bytes,2,opt,name=lc" json:"lc,omitempty"` - VerifiedName *string `protobuf:"bytes,3,opt,name=verifiedName" json:"verifiedName,omitempty"` + DegreesLatitude *float64 `protobuf:"fixed64,1,opt,name=degreesLatitude" json:"degreesLatitude,omitempty"` + DegreesLongitude *float64 `protobuf:"fixed64,2,opt,name=degreesLongitude" json:"degreesLongitude,omitempty"` + Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` + Address *string `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"` + Url *string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"` + IsLive *bool `protobuf:"varint,6,opt,name=isLive" json:"isLive,omitempty"` + AccuracyInMeters *uint32 `protobuf:"varint,7,opt,name=accuracyInMeters" json:"accuracyInMeters,omitempty"` + SpeedInMps *float32 `protobuf:"fixed32,8,opt,name=speedInMps" json:"speedInMps,omitempty"` + DegreesClockwiseFromMagneticNorth *uint32 `protobuf:"varint,9,opt,name=degreesClockwiseFromMagneticNorth" json:"degreesClockwiseFromMagneticNorth,omitempty"` + Comment *string `protobuf:"bytes,11,opt,name=comment" json:"comment,omitempty"` + JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` } -func (x *LocalizedName) Reset() { - *x = LocalizedName{} +func (x *LocationMessage) Reset() { + *x = LocationMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5233,13 +5193,13 @@ func (x *LocalizedName) Reset() { } } -func (x *LocalizedName) String() string { +func (x *LocationMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LocalizedName) ProtoMessage() {} +func (*LocationMessage) ProtoMessage() {} -func (x *LocalizedName) ProtoReflect() protoreflect.Message { +func (x *LocationMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5251,45 +5211,114 @@ func (x *LocalizedName) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LocalizedName.ProtoReflect.Descriptor instead. -func (*LocalizedName) Descriptor() ([]byte, []int) { +// Deprecated: Use LocationMessage.ProtoReflect.Descriptor instead. +func (*LocationMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{18} } -func (x *LocalizedName) GetLg() string { - if x != nil && x.Lg != nil { - return *x.Lg +func (x *LocationMessage) GetDegreesLatitude() float64 { + if x != nil && x.DegreesLatitude != nil { + return *x.DegreesLatitude + } + return 0 +} + +func (x *LocationMessage) GetDegreesLongitude() float64 { + if x != nil && x.DegreesLongitude != nil { + return *x.DegreesLongitude + } + return 0 +} + +func (x *LocationMessage) GetName() string { + if x != nil && x.Name != nil { + return *x.Name } return "" } -func (x *LocalizedName) GetLc() string { - if x != nil && x.Lc != nil { - return *x.Lc +func (x *LocationMessage) GetAddress() string { + if x != nil && x.Address != nil { + return *x.Address } return "" } -func (x *LocalizedName) GetVerifiedName() string { - if x != nil && x.VerifiedName != nil { - return *x.VerifiedName +func (x *LocationMessage) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url } return "" } -type SyncActionData struct { +func (x *LocationMessage) GetIsLive() bool { + if x != nil && x.IsLive != nil { + return *x.IsLive + } + return false +} + +func (x *LocationMessage) GetAccuracyInMeters() uint32 { + if x != nil && x.AccuracyInMeters != nil { + return *x.AccuracyInMeters + } + return 0 +} + +func (x *LocationMessage) GetSpeedInMps() float32 { + if x != nil && x.SpeedInMps != nil { + return *x.SpeedInMps + } + return 0 +} + +func (x *LocationMessage) GetDegreesClockwiseFromMagneticNorth() uint32 { + if x != nil && x.DegreesClockwiseFromMagneticNorth != nil { + return *x.DegreesClockwiseFromMagneticNorth + } + return 0 +} + +func (x *LocationMessage) GetComment() string { + if x != nil && x.Comment != nil { + return *x.Comment + } + return "" +} + +func (x *LocationMessage) GetJpegThumbnail() []byte { + if x != nil { + return x.JpegThumbnail + } + return nil +} + +func (x *LocationMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo + } + return nil +} + +type LiveLocationMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Index []byte `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` - Value *SyncActionValue `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` - Padding []byte `protobuf:"bytes,3,opt,name=padding" json:"padding,omitempty"` - Version *int32 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"` + DegreesLatitude *float64 `protobuf:"fixed64,1,opt,name=degreesLatitude" json:"degreesLatitude,omitempty"` + DegreesLongitude *float64 `protobuf:"fixed64,2,opt,name=degreesLongitude" json:"degreesLongitude,omitempty"` + AccuracyInMeters *uint32 `protobuf:"varint,3,opt,name=accuracyInMeters" json:"accuracyInMeters,omitempty"` + SpeedInMps *float32 `protobuf:"fixed32,4,opt,name=speedInMps" json:"speedInMps,omitempty"` + DegreesClockwiseFromMagneticNorth *uint32 `protobuf:"varint,5,opt,name=degreesClockwiseFromMagneticNorth" json:"degreesClockwiseFromMagneticNorth,omitempty"` + Caption *string `protobuf:"bytes,6,opt,name=caption" json:"caption,omitempty"` + SequenceNumber *int64 `protobuf:"varint,7,opt,name=sequenceNumber" json:"sequenceNumber,omitempty"` + TimeOffset *uint32 `protobuf:"varint,8,opt,name=timeOffset" json:"timeOffset,omitempty"` + JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` } -func (x *SyncActionData) Reset() { - *x = SyncActionData{} +func (x *LiveLocationMessage) Reset() { + *x = LiveLocationMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5297,13 +5326,13 @@ func (x *SyncActionData) Reset() { } } -func (x *SyncActionData) String() string { +func (x *LiveLocationMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncActionData) ProtoMessage() {} +func (*LiveLocationMessage) ProtoMessage() {} -func (x *SyncActionData) ProtoReflect() protoreflect.Message { +func (x *LiveLocationMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5315,49 +5344,95 @@ func (x *SyncActionData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncActionData.ProtoReflect.Descriptor instead. -func (*SyncActionData) Descriptor() ([]byte, []int) { +// Deprecated: Use LiveLocationMessage.ProtoReflect.Descriptor instead. +func (*LiveLocationMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{19} } -func (x *SyncActionData) GetIndex() []byte { - if x != nil { - return x.Index +func (x *LiveLocationMessage) GetDegreesLatitude() float64 { + if x != nil && x.DegreesLatitude != nil { + return *x.DegreesLatitude } - return nil + return 0 } -func (x *SyncActionData) GetValue() *SyncActionValue { - if x != nil { - return x.Value +func (x *LiveLocationMessage) GetDegreesLongitude() float64 { + if x != nil && x.DegreesLongitude != nil { + return *x.DegreesLongitude } - return nil + return 0 } -func (x *SyncActionData) GetPadding() []byte { +func (x *LiveLocationMessage) GetAccuracyInMeters() uint32 { + if x != nil && x.AccuracyInMeters != nil { + return *x.AccuracyInMeters + } + return 0 +} + +func (x *LiveLocationMessage) GetSpeedInMps() float32 { + if x != nil && x.SpeedInMps != nil { + return *x.SpeedInMps + } + return 0 +} + +func (x *LiveLocationMessage) GetDegreesClockwiseFromMagneticNorth() uint32 { + if x != nil && x.DegreesClockwiseFromMagneticNorth != nil { + return *x.DegreesClockwiseFromMagneticNorth + } + return 0 +} + +func (x *LiveLocationMessage) GetCaption() string { + if x != nil && x.Caption != nil { + return *x.Caption + } + return "" +} + +func (x *LiveLocationMessage) GetSequenceNumber() int64 { + if x != nil && x.SequenceNumber != nil { + return *x.SequenceNumber + } + return 0 +} + +func (x *LiveLocationMessage) GetTimeOffset() uint32 { + if x != nil && x.TimeOffset != nil { + return *x.TimeOffset + } + return 0 +} + +func (x *LiveLocationMessage) GetJpegThumbnail() []byte { if x != nil { - return x.Padding + return x.JpegThumbnail } return nil } -func (x *SyncActionData) GetVersion() int32 { - if x != nil && x.Version != nil { - return *x.Version +func (x *LiveLocationMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo } - return 0 + return nil } -type StarAction struct { +type ListResponseMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Starred *bool `protobuf:"varint,1,opt,name=starred" json:"starred,omitempty"` + Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` + ListType *ListResponseMessage_ListResponseMessageListType `protobuf:"varint,2,opt,name=listType,enum=proto.ListResponseMessage_ListResponseMessageListType" json:"listType,omitempty"` + SingleSelectReply *SingleSelectReply `protobuf:"bytes,3,opt,name=singleSelectReply" json:"singleSelectReply,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,4,opt,name=contextInfo" json:"contextInfo,omitempty"` + Description *string `protobuf:"bytes,5,opt,name=description" json:"description,omitempty"` } -func (x *StarAction) Reset() { - *x = StarAction{} +func (x *ListResponseMessage) Reset() { + *x = ListResponseMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5365,13 +5440,13 @@ func (x *StarAction) Reset() { } } -func (x *StarAction) String() string { +func (x *ListResponseMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StarAction) ProtoMessage() {} +func (*ListResponseMessage) ProtoMessage() {} -func (x *StarAction) ProtoReflect() protoreflect.Message { +func (x *ListResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5383,29 +5458,56 @@ func (x *StarAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StarAction.ProtoReflect.Descriptor instead. -func (*StarAction) Descriptor() ([]byte, []int) { +// Deprecated: Use ListResponseMessage.ProtoReflect.Descriptor instead. +func (*ListResponseMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{20} } -func (x *StarAction) GetStarred() bool { - if x != nil && x.Starred != nil { - return *x.Starred +func (x *ListResponseMessage) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title } - return false + return "" } -type ContactAction struct { +func (x *ListResponseMessage) GetListType() ListResponseMessage_ListResponseMessageListType { + if x != nil && x.ListType != nil { + return *x.ListType + } + return ListResponseMessage_UNKNOWN +} + +func (x *ListResponseMessage) GetSingleSelectReply() *SingleSelectReply { + if x != nil { + return x.SingleSelectReply + } + return nil +} + +func (x *ListResponseMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo + } + return nil +} + +func (x *ListResponseMessage) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +type SingleSelectReply struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - FullName *string `protobuf:"bytes,1,opt,name=fullName" json:"fullName,omitempty"` - FirstName *string `protobuf:"bytes,2,opt,name=firstName" json:"firstName,omitempty"` + SelectedRowId *string `protobuf:"bytes,1,opt,name=selectedRowId" json:"selectedRowId,omitempty"` } -func (x *ContactAction) Reset() { - *x = ContactAction{} +func (x *SingleSelectReply) Reset() { + *x = SingleSelectReply{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5413,13 +5515,13 @@ func (x *ContactAction) Reset() { } } -func (x *ContactAction) String() string { +func (x *SingleSelectReply) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ContactAction) ProtoMessage() {} +func (*SingleSelectReply) ProtoMessage() {} -func (x *ContactAction) ProtoReflect() protoreflect.Message { +func (x *SingleSelectReply) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5431,36 +5533,35 @@ func (x *ContactAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ContactAction.ProtoReflect.Descriptor instead. -func (*ContactAction) Descriptor() ([]byte, []int) { +// Deprecated: Use SingleSelectReply.ProtoReflect.Descriptor instead. +func (*SingleSelectReply) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{21} } -func (x *ContactAction) GetFullName() string { - if x != nil && x.FullName != nil { - return *x.FullName - } - return "" -} - -func (x *ContactAction) GetFirstName() string { - if x != nil && x.FirstName != nil { - return *x.FirstName +func (x *SingleSelectReply) GetSelectedRowId() string { + if x != nil && x.SelectedRowId != nil { + return *x.SelectedRowId } return "" } -type MuteAction struct { +type ListMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Muted *bool `protobuf:"varint,1,opt,name=muted" json:"muted,omitempty"` - MuteEndTimestamp *int64 `protobuf:"varint,2,opt,name=muteEndTimestamp" json:"muteEndTimestamp,omitempty"` + Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` + Description *string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` + ButtonText *string `protobuf:"bytes,3,opt,name=buttonText" json:"buttonText,omitempty"` + ListType *ListMessage_ListMessageListType `protobuf:"varint,4,opt,name=listType,enum=proto.ListMessage_ListMessageListType" json:"listType,omitempty"` + Sections []*Section `protobuf:"bytes,5,rep,name=sections" json:"sections,omitempty"` + ProductListInfo *ProductListInfo `protobuf:"bytes,6,opt,name=productListInfo" json:"productListInfo,omitempty"` + FooterText *string `protobuf:"bytes,7,opt,name=footerText" json:"footerText,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,8,opt,name=contextInfo" json:"contextInfo,omitempty"` } -func (x *MuteAction) Reset() { - *x = MuteAction{} +func (x *ListMessage) Reset() { + *x = ListMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5468,13 +5569,13 @@ func (x *MuteAction) Reset() { } } -func (x *MuteAction) String() string { +func (x *ListMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MuteAction) ProtoMessage() {} +func (*ListMessage) ProtoMessage() {} -func (x *MuteAction) ProtoReflect() protoreflect.Message { +func (x *ListMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5486,35 +5587,78 @@ func (x *MuteAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MuteAction.ProtoReflect.Descriptor instead. -func (*MuteAction) Descriptor() ([]byte, []int) { +// Deprecated: Use ListMessage.ProtoReflect.Descriptor instead. +func (*ListMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{22} } -func (x *MuteAction) GetMuted() bool { - if x != nil && x.Muted != nil { - return *x.Muted +func (x *ListMessage) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title } - return false + return "" } -func (x *MuteAction) GetMuteEndTimestamp() int64 { - if x != nil && x.MuteEndTimestamp != nil { - return *x.MuteEndTimestamp +func (x *ListMessage) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description } - return 0 + return "" } -type PinAction struct { +func (x *ListMessage) GetButtonText() string { + if x != nil && x.ButtonText != nil { + return *x.ButtonText + } + return "" +} + +func (x *ListMessage) GetListType() ListMessage_ListMessageListType { + if x != nil && x.ListType != nil { + return *x.ListType + } + return ListMessage_UNKNOWN +} + +func (x *ListMessage) GetSections() []*Section { + if x != nil { + return x.Sections + } + return nil +} + +func (x *ListMessage) GetProductListInfo() *ProductListInfo { + if x != nil { + return x.ProductListInfo + } + return nil +} + +func (x *ListMessage) GetFooterText() string { + if x != nil && x.FooterText != nil { + return *x.FooterText + } + return "" +} + +func (x *ListMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo + } + return nil +} + +type Section struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Pinned *bool `protobuf:"varint,1,opt,name=pinned" json:"pinned,omitempty"` + Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` + Rows []*Row `protobuf:"bytes,2,rep,name=rows" json:"rows,omitempty"` } -func (x *PinAction) Reset() { - *x = PinAction{} +func (x *Section) Reset() { + *x = Section{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5522,13 +5666,13 @@ func (x *PinAction) Reset() { } } -func (x *PinAction) String() string { +func (x *Section) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PinAction) ProtoMessage() {} +func (*Section) ProtoMessage() {} -func (x *PinAction) ProtoReflect() protoreflect.Message { +func (x *Section) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5540,28 +5684,37 @@ func (x *PinAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PinAction.ProtoReflect.Descriptor instead. -func (*PinAction) Descriptor() ([]byte, []int) { +// Deprecated: Use Section.ProtoReflect.Descriptor instead. +func (*Section) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{23} } -func (x *PinAction) GetPinned() bool { - if x != nil && x.Pinned != nil { - return *x.Pinned +func (x *Section) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title } - return false + return "" } -type SecurityNotificationSetting struct { +func (x *Section) GetRows() []*Row { + if x != nil { + return x.Rows + } + return nil +} + +type Row struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ShowNotification *bool `protobuf:"varint,1,opt,name=showNotification" json:"showNotification,omitempty"` + Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` + Description *string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` + RowId *string `protobuf:"bytes,3,opt,name=rowId" json:"rowId,omitempty"` } -func (x *SecurityNotificationSetting) Reset() { - *x = SecurityNotificationSetting{} +func (x *Row) Reset() { + *x = Row{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5569,13 +5722,13 @@ func (x *SecurityNotificationSetting) Reset() { } } -func (x *SecurityNotificationSetting) String() string { +func (x *Row) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SecurityNotificationSetting) ProtoMessage() {} +func (*Row) ProtoMessage() {} -func (x *SecurityNotificationSetting) ProtoReflect() protoreflect.Message { +func (x *Row) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5587,28 +5740,42 @@ func (x *SecurityNotificationSetting) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SecurityNotificationSetting.ProtoReflect.Descriptor instead. -func (*SecurityNotificationSetting) Descriptor() ([]byte, []int) { +// Deprecated: Use Row.ProtoReflect.Descriptor instead. +func (*Row) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{24} } -func (x *SecurityNotificationSetting) GetShowNotification() bool { - if x != nil && x.ShowNotification != nil { - return *x.ShowNotification +func (x *Row) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title } - return false + return "" } -type PushNameSetting struct { +func (x *Row) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +func (x *Row) GetRowId() string { + if x != nil && x.RowId != nil { + return *x.RowId + } + return "" +} + +type Product struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + ProductId *string `protobuf:"bytes,1,opt,name=productId" json:"productId,omitempty"` } -func (x *PushNameSetting) Reset() { - *x = PushNameSetting{} +func (x *Product) Reset() { + *x = Product{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5616,13 +5783,13 @@ func (x *PushNameSetting) Reset() { } } -func (x *PushNameSetting) String() string { +func (x *Product) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PushNameSetting) ProtoMessage() {} +func (*Product) ProtoMessage() {} -func (x *PushNameSetting) ProtoReflect() protoreflect.Message { +func (x *Product) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5634,28 +5801,29 @@ func (x *PushNameSetting) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PushNameSetting.ProtoReflect.Descriptor instead. -func (*PushNameSetting) Descriptor() ([]byte, []int) { +// Deprecated: Use Product.ProtoReflect.Descriptor instead. +func (*Product) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{25} } -func (x *PushNameSetting) GetName() string { - if x != nil && x.Name != nil { - return *x.Name +func (x *Product) GetProductId() string { + if x != nil && x.ProductId != nil { + return *x.ProductId } return "" } -type LocaleSetting struct { +type ProductSection struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Locale *string `protobuf:"bytes,1,opt,name=locale" json:"locale,omitempty"` + Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` + Products []*Product `protobuf:"bytes,2,rep,name=products" json:"products,omitempty"` } -func (x *LocaleSetting) Reset() { - *x = LocaleSetting{} +func (x *ProductSection) Reset() { + *x = ProductSection{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5663,13 +5831,13 @@ func (x *LocaleSetting) Reset() { } } -func (x *LocaleSetting) String() string { +func (x *ProductSection) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LocaleSetting) ProtoMessage() {} +func (*ProductSection) ProtoMessage() {} -func (x *LocaleSetting) ProtoReflect() protoreflect.Message { +func (x *ProductSection) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5681,32 +5849,37 @@ func (x *LocaleSetting) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LocaleSetting.ProtoReflect.Descriptor instead. -func (*LocaleSetting) Descriptor() ([]byte, []int) { +// Deprecated: Use ProductSection.ProtoReflect.Descriptor instead. +func (*ProductSection) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{26} } -func (x *LocaleSetting) GetLocale() string { - if x != nil && x.Locale != nil { - return *x.Locale +func (x *ProductSection) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title } return "" } -type QuickReplyAction struct { +func (x *ProductSection) GetProducts() []*Product { + if x != nil { + return x.Products + } + return nil +} + +type ProductListInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Shortcut *string `protobuf:"bytes,1,opt,name=shortcut" json:"shortcut,omitempty"` - Message *string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` - Keywords []string `protobuf:"bytes,3,rep,name=keywords" json:"keywords,omitempty"` - Count *int32 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` - Deleted *bool `protobuf:"varint,5,opt,name=deleted" json:"deleted,omitempty"` + ProductSections []*ProductSection `protobuf:"bytes,1,rep,name=productSections" json:"productSections,omitempty"` + HeaderImage *ProductListHeaderImage `protobuf:"bytes,2,opt,name=headerImage" json:"headerImage,omitempty"` + BusinessOwnerJid *string `protobuf:"bytes,3,opt,name=businessOwnerJid" json:"businessOwnerJid,omitempty"` } -func (x *QuickReplyAction) Reset() { - *x = QuickReplyAction{} +func (x *ProductListInfo) Reset() { + *x = ProductListInfo{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5714,13 +5887,13 @@ func (x *QuickReplyAction) Reset() { } } -func (x *QuickReplyAction) String() string { +func (x *ProductListInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QuickReplyAction) ProtoMessage() {} +func (*ProductListInfo) ProtoMessage() {} -func (x *QuickReplyAction) ProtoReflect() protoreflect.Message { +func (x *ProductListInfo) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5732,56 +5905,43 @@ func (x *QuickReplyAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use QuickReplyAction.ProtoReflect.Descriptor instead. -func (*QuickReplyAction) Descriptor() ([]byte, []int) { +// Deprecated: Use ProductListInfo.ProtoReflect.Descriptor instead. +func (*ProductListInfo) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{27} } -func (x *QuickReplyAction) GetShortcut() string { - if x != nil && x.Shortcut != nil { - return *x.Shortcut - } - return "" -} - -func (x *QuickReplyAction) GetMessage() string { - if x != nil && x.Message != nil { - return *x.Message - } - return "" -} - -func (x *QuickReplyAction) GetKeywords() []string { +func (x *ProductListInfo) GetProductSections() []*ProductSection { if x != nil { - return x.Keywords + return x.ProductSections } return nil } -func (x *QuickReplyAction) GetCount() int32 { - if x != nil && x.Count != nil { - return *x.Count +func (x *ProductListInfo) GetHeaderImage() *ProductListHeaderImage { + if x != nil { + return x.HeaderImage } - return 0 + return nil } -func (x *QuickReplyAction) GetDeleted() bool { - if x != nil && x.Deleted != nil { - return *x.Deleted +func (x *ProductListInfo) GetBusinessOwnerJid() string { + if x != nil && x.BusinessOwnerJid != nil { + return *x.BusinessOwnerJid } - return false + return "" } -type LabelAssociationAction struct { +type ProductListHeaderImage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Labeled *bool `protobuf:"varint,1,opt,name=labeled" json:"labeled,omitempty"` + ProductId *string `protobuf:"bytes,1,opt,name=productId" json:"productId,omitempty"` + JpegThumbnail []byte `protobuf:"bytes,2,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` } -func (x *LabelAssociationAction) Reset() { - *x = LabelAssociationAction{} +func (x *ProductListHeaderImage) Reset() { + *x = ProductListHeaderImage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5789,13 +5949,13 @@ func (x *LabelAssociationAction) Reset() { } } -func (x *LabelAssociationAction) String() string { +func (x *ProductListHeaderImage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LabelAssociationAction) ProtoMessage() {} +func (*ProductListHeaderImage) ProtoMessage() {} -func (x *LabelAssociationAction) ProtoReflect() protoreflect.Message { +func (x *ProductListHeaderImage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5807,31 +5967,44 @@ func (x *LabelAssociationAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LabelAssociationAction.ProtoReflect.Descriptor instead. -func (*LabelAssociationAction) Descriptor() ([]byte, []int) { +// Deprecated: Use ProductListHeaderImage.ProtoReflect.Descriptor instead. +func (*ProductListHeaderImage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{28} } -func (x *LabelAssociationAction) GetLabeled() bool { - if x != nil && x.Labeled != nil { - return *x.Labeled +func (x *ProductListHeaderImage) GetProductId() string { + if x != nil && x.ProductId != nil { + return *x.ProductId } - return false + return "" } -type LabelEditAction struct { +func (x *ProductListHeaderImage) GetJpegThumbnail() []byte { + if x != nil { + return x.JpegThumbnail + } + return nil +} + +type InvoiceMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Color *int32 `protobuf:"varint,2,opt,name=color" json:"color,omitempty"` - PredefinedId *int32 `protobuf:"varint,3,opt,name=predefinedId" json:"predefinedId,omitempty"` - Deleted *bool `protobuf:"varint,4,opt,name=deleted" json:"deleted,omitempty"` + Note *string `protobuf:"bytes,1,opt,name=note" json:"note,omitempty"` + Token *string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"` + AttachmentType *InvoiceMessage_InvoiceMessageAttachmentType `protobuf:"varint,3,opt,name=attachmentType,enum=proto.InvoiceMessage_InvoiceMessageAttachmentType" json:"attachmentType,omitempty"` + AttachmentMimetype *string `protobuf:"bytes,4,opt,name=attachmentMimetype" json:"attachmentMimetype,omitempty"` + AttachmentMediaKey []byte `protobuf:"bytes,5,opt,name=attachmentMediaKey" json:"attachmentMediaKey,omitempty"` + AttachmentMediaKeyTimestamp *int64 `protobuf:"varint,6,opt,name=attachmentMediaKeyTimestamp" json:"attachmentMediaKeyTimestamp,omitempty"` + AttachmentFileSha256 []byte `protobuf:"bytes,7,opt,name=attachmentFileSha256" json:"attachmentFileSha256,omitempty"` + AttachmentFileEncSha256 []byte `protobuf:"bytes,8,opt,name=attachmentFileEncSha256" json:"attachmentFileEncSha256,omitempty"` + AttachmentDirectPath *string `protobuf:"bytes,9,opt,name=attachmentDirectPath" json:"attachmentDirectPath,omitempty"` + AttachmentJpegThumbnail []byte `protobuf:"bytes,10,opt,name=attachmentJpegThumbnail" json:"attachmentJpegThumbnail,omitempty"` } -func (x *LabelEditAction) Reset() { - *x = LabelEditAction{} +func (x *InvoiceMessage) Reset() { + *x = InvoiceMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5839,13 +6012,13 @@ func (x *LabelEditAction) Reset() { } } -func (x *LabelEditAction) String() string { +func (x *InvoiceMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LabelEditAction) ProtoMessage() {} +func (*InvoiceMessage) ProtoMessage() {} -func (x *LabelEditAction) ProtoReflect() protoreflect.Message { +func (x *InvoiceMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5857,49 +6030,95 @@ func (x *LabelEditAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LabelEditAction.ProtoReflect.Descriptor instead. -func (*LabelEditAction) Descriptor() ([]byte, []int) { +// Deprecated: Use InvoiceMessage.ProtoReflect.Descriptor instead. +func (*InvoiceMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{29} } -func (x *LabelEditAction) GetName() string { - if x != nil && x.Name != nil { - return *x.Name +func (x *InvoiceMessage) GetNote() string { + if x != nil && x.Note != nil { + return *x.Note } return "" } -func (x *LabelEditAction) GetColor() int32 { - if x != nil && x.Color != nil { - return *x.Color +func (x *InvoiceMessage) GetToken() string { + if x != nil && x.Token != nil { + return *x.Token } - return 0 + return "" } -func (x *LabelEditAction) GetPredefinedId() int32 { - if x != nil && x.PredefinedId != nil { - return *x.PredefinedId +func (x *InvoiceMessage) GetAttachmentType() InvoiceMessage_InvoiceMessageAttachmentType { + if x != nil && x.AttachmentType != nil { + return *x.AttachmentType + } + return InvoiceMessage_IMAGE +} + +func (x *InvoiceMessage) GetAttachmentMimetype() string { + if x != nil && x.AttachmentMimetype != nil { + return *x.AttachmentMimetype + } + return "" +} + +func (x *InvoiceMessage) GetAttachmentMediaKey() []byte { + if x != nil { + return x.AttachmentMediaKey + } + return nil +} + +func (x *InvoiceMessage) GetAttachmentMediaKeyTimestamp() int64 { + if x != nil && x.AttachmentMediaKeyTimestamp != nil { + return *x.AttachmentMediaKeyTimestamp } return 0 } -func (x *LabelEditAction) GetDeleted() bool { - if x != nil && x.Deleted != nil { - return *x.Deleted +func (x *InvoiceMessage) GetAttachmentFileSha256() []byte { + if x != nil { + return x.AttachmentFileSha256 } - return false + return nil } -type RecentStickerWeightsAction struct { +func (x *InvoiceMessage) GetAttachmentFileEncSha256() []byte { + if x != nil { + return x.AttachmentFileEncSha256 + } + return nil +} + +func (x *InvoiceMessage) GetAttachmentDirectPath() string { + if x != nil && x.AttachmentDirectPath != nil { + return *x.AttachmentDirectPath + } + return "" +} + +func (x *InvoiceMessage) GetAttachmentJpegThumbnail() []byte { + if x != nil { + return x.AttachmentJpegThumbnail + } + return nil +} + +type InteractiveResponseMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Weights []*RecentStickerWeight `protobuf:"bytes,1,rep,name=weights" json:"weights,omitempty"` + Body *InteractiveResponseMessageBody `protobuf:"bytes,1,opt,name=body" json:"body,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,15,opt,name=contextInfo" json:"contextInfo,omitempty"` + // Types that are assignable to InteractiveResponseMessage: + // *InteractiveResponseMessage_NativeFlowResponseMessage + InteractiveResponseMessage isInteractiveResponseMessage_InteractiveResponseMessage `protobuf_oneof:"interactiveResponseMessage"` } -func (x *RecentStickerWeightsAction) Reset() { - *x = RecentStickerWeightsAction{} +func (x *InteractiveResponseMessage) Reset() { + *x = InteractiveResponseMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5907,13 +6126,13 @@ func (x *RecentStickerWeightsAction) Reset() { } } -func (x *RecentStickerWeightsAction) String() string { +func (x *InteractiveResponseMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RecentStickerWeightsAction) ProtoMessage() {} +func (*InteractiveResponseMessage) ProtoMessage() {} -func (x *RecentStickerWeightsAction) ProtoReflect() protoreflect.Message { +func (x *InteractiveResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5925,34 +6144,62 @@ func (x *RecentStickerWeightsAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecentStickerWeightsAction.ProtoReflect.Descriptor instead. -func (*RecentStickerWeightsAction) Descriptor() ([]byte, []int) { +// Deprecated: Use InteractiveResponseMessage.ProtoReflect.Descriptor instead. +func (*InteractiveResponseMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{30} } -func (x *RecentStickerWeightsAction) GetWeights() []*RecentStickerWeight { +func (x *InteractiveResponseMessage) GetBody() *InteractiveResponseMessageBody { if x != nil { - return x.Weights + return x.Body } return nil } -type RecentStickerMetadata struct { +func (x *InteractiveResponseMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo + } + return nil +} + +func (m *InteractiveResponseMessage) GetInteractiveResponseMessage() isInteractiveResponseMessage_InteractiveResponseMessage { + if m != nil { + return m.InteractiveResponseMessage + } + return nil +} + +func (x *InteractiveResponseMessage) GetNativeFlowResponseMessage() *NativeFlowResponseMessage { + if x, ok := x.GetInteractiveResponseMessage().(*InteractiveResponseMessage_NativeFlowResponseMessage); ok { + return x.NativeFlowResponseMessage + } + return nil +} + +type isInteractiveResponseMessage_InteractiveResponseMessage interface { + isInteractiveResponseMessage_InteractiveResponseMessage() +} + +type InteractiveResponseMessage_NativeFlowResponseMessage struct { + NativeFlowResponseMessage *NativeFlowResponseMessage `protobuf:"bytes,2,opt,name=nativeFlowResponseMessage,oneof"` +} + +func (*InteractiveResponseMessage_NativeFlowResponseMessage) isInteractiveResponseMessage_InteractiveResponseMessage() { +} + +type NativeFlowResponseMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DirectPath *string `protobuf:"bytes,1,opt,name=directPath" json:"directPath,omitempty"` - EncFilehash *string `protobuf:"bytes,2,opt,name=encFilehash" json:"encFilehash,omitempty"` - MediaKey *string `protobuf:"bytes,3,opt,name=mediaKey" json:"mediaKey,omitempty"` - StanzaId *string `protobuf:"bytes,4,opt,name=stanzaId" json:"stanzaId,omitempty"` - ChatJid *string `protobuf:"bytes,5,opt,name=chatJid" json:"chatJid,omitempty"` - Participant *string `protobuf:"bytes,6,opt,name=participant" json:"participant,omitempty"` - IsSentByMe *bool `protobuf:"varint,7,opt,name=isSentByMe" json:"isSentByMe,omitempty"` + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + ParamsJson *string `protobuf:"bytes,2,opt,name=paramsJson" json:"paramsJson,omitempty"` + Version *int32 `protobuf:"varint,3,opt,name=version" json:"version,omitempty"` } -func (x *RecentStickerMetadata) Reset() { - *x = RecentStickerMetadata{} +func (x *NativeFlowResponseMessage) Reset() { + *x = NativeFlowResponseMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5960,13 +6207,13 @@ func (x *RecentStickerMetadata) Reset() { } } -func (x *RecentStickerMetadata) String() string { +func (x *NativeFlowResponseMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RecentStickerMetadata) ProtoMessage() {} +func (*NativeFlowResponseMessage) ProtoMessage() {} -func (x *RecentStickerMetadata) ProtoReflect() protoreflect.Message { +func (x *NativeFlowResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5978,70 +6225,43 @@ func (x *RecentStickerMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecentStickerMetadata.ProtoReflect.Descriptor instead. -func (*RecentStickerMetadata) Descriptor() ([]byte, []int) { +// Deprecated: Use NativeFlowResponseMessage.ProtoReflect.Descriptor instead. +func (*NativeFlowResponseMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{31} } -func (x *RecentStickerMetadata) GetDirectPath() string { - if x != nil && x.DirectPath != nil { - return *x.DirectPath - } - return "" -} - -func (x *RecentStickerMetadata) GetEncFilehash() string { - if x != nil && x.EncFilehash != nil { - return *x.EncFilehash - } - return "" -} - -func (x *RecentStickerMetadata) GetMediaKey() string { - if x != nil && x.MediaKey != nil { - return *x.MediaKey - } - return "" -} - -func (x *RecentStickerMetadata) GetStanzaId() string { - if x != nil && x.StanzaId != nil { - return *x.StanzaId - } - return "" -} - -func (x *RecentStickerMetadata) GetChatJid() string { - if x != nil && x.ChatJid != nil { - return *x.ChatJid +func (x *NativeFlowResponseMessage) GetName() string { + if x != nil && x.Name != nil { + return *x.Name } return "" } -func (x *RecentStickerMetadata) GetParticipant() string { - if x != nil && x.Participant != nil { - return *x.Participant +func (x *NativeFlowResponseMessage) GetParamsJson() string { + if x != nil && x.ParamsJson != nil { + return *x.ParamsJson } return "" } -func (x *RecentStickerMetadata) GetIsSentByMe() bool { - if x != nil && x.IsSentByMe != nil { - return *x.IsSentByMe +func (x *NativeFlowResponseMessage) GetVersion() int32 { + if x != nil && x.Version != nil { + return *x.Version } - return false + return 0 } -type RecentEmojiWeightsAction struct { +// Renamed from Message$InteractiveResponseMessage$Body +type InteractiveResponseMessageBody struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Weights []*RecentEmojiWeight `protobuf:"bytes,1,rep,name=weights" json:"weights,omitempty"` + Text *string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"` } -func (x *RecentEmojiWeightsAction) Reset() { - *x = RecentEmojiWeightsAction{} +func (x *InteractiveResponseMessageBody) Reset() { + *x = InteractiveResponseMessageBody{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6049,13 +6269,13 @@ func (x *RecentEmojiWeightsAction) Reset() { } } -func (x *RecentEmojiWeightsAction) String() string { +func (x *InteractiveResponseMessageBody) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RecentEmojiWeightsAction) ProtoMessage() {} +func (*InteractiveResponseMessageBody) ProtoMessage() {} -func (x *RecentEmojiWeightsAction) ProtoReflect() protoreflect.Message { +func (x *InteractiveResponseMessageBody) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6067,35 +6287,36 @@ func (x *RecentEmojiWeightsAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecentEmojiWeightsAction.ProtoReflect.Descriptor instead. -func (*RecentEmojiWeightsAction) Descriptor() ([]byte, []int) { +// Deprecated: Use InteractiveResponseMessageBody.ProtoReflect.Descriptor instead. +func (*InteractiveResponseMessageBody) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{32} } -func (x *RecentEmojiWeightsAction) GetWeights() []*RecentEmojiWeight { - if x != nil { - return x.Weights +func (x *InteractiveResponseMessageBody) GetText() string { + if x != nil && x.Text != nil { + return *x.Text } - return nil + return "" } -type FavoriteStickerAction struct { +type InteractiveMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DirectPath *string `protobuf:"bytes,1,opt,name=directPath" json:"directPath,omitempty"` - LastUploadTimestamp *string `protobuf:"bytes,2,opt,name=lastUploadTimestamp" json:"lastUploadTimestamp,omitempty"` - Handle *string `protobuf:"bytes,3,opt,name=handle" json:"handle,omitempty"` - EncFilehash *string `protobuf:"bytes,4,opt,name=encFilehash" json:"encFilehash,omitempty"` - StickerHashWithoutMeta *string `protobuf:"bytes,5,opt,name=stickerHashWithoutMeta" json:"stickerHashWithoutMeta,omitempty"` - MediaKey *string `protobuf:"bytes,6,opt,name=mediaKey" json:"mediaKey,omitempty"` - MediaKeyTimestamp *int64 `protobuf:"varint,7,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` - IsFavorite *bool `protobuf:"varint,8,opt,name=isFavorite" json:"isFavorite,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Body *InteractiveMessageBody `protobuf:"bytes,2,opt,name=body" json:"body,omitempty"` + Footer *Footer `protobuf:"bytes,3,opt,name=footer" json:"footer,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,15,opt,name=contextInfo" json:"contextInfo,omitempty"` + // Types that are assignable to InteractiveMessage: + // *InteractiveMessage_ShopStorefrontMessage + // *InteractiveMessage_CollectionMessage + // *InteractiveMessage_NativeFlowMessage + InteractiveMessage isInteractiveMessage_InteractiveMessage `protobuf_oneof:"interactiveMessage"` } -func (x *FavoriteStickerAction) Reset() { - *x = FavoriteStickerAction{} +func (x *InteractiveMessage) Reset() { + *x = InteractiveMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6103,13 +6324,13 @@ func (x *FavoriteStickerAction) Reset() { } } -func (x *FavoriteStickerAction) String() string { +func (x *InteractiveMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FavoriteStickerAction) ProtoMessage() {} +func (*InteractiveMessage) ProtoMessage() {} -func (x *FavoriteStickerAction) ProtoReflect() protoreflect.Message { +func (x *InteractiveMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6121,78 +6342,101 @@ func (x *FavoriteStickerAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FavoriteStickerAction.ProtoReflect.Descriptor instead. -func (*FavoriteStickerAction) Descriptor() ([]byte, []int) { +// Deprecated: Use InteractiveMessage.ProtoReflect.Descriptor instead. +func (*InteractiveMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{33} } -func (x *FavoriteStickerAction) GetDirectPath() string { - if x != nil && x.DirectPath != nil { - return *x.DirectPath +func (x *InteractiveMessage) GetHeader() *Header { + if x != nil { + return x.Header } - return "" + return nil } -func (x *FavoriteStickerAction) GetLastUploadTimestamp() string { - if x != nil && x.LastUploadTimestamp != nil { - return *x.LastUploadTimestamp +func (x *InteractiveMessage) GetBody() *InteractiveMessageBody { + if x != nil { + return x.Body } - return "" + return nil } -func (x *FavoriteStickerAction) GetHandle() string { - if x != nil && x.Handle != nil { - return *x.Handle +func (x *InteractiveMessage) GetFooter() *Footer { + if x != nil { + return x.Footer } - return "" + return nil } -func (x *FavoriteStickerAction) GetEncFilehash() string { - if x != nil && x.EncFilehash != nil { - return *x.EncFilehash +func (x *InteractiveMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo } - return "" + return nil } -func (x *FavoriteStickerAction) GetStickerHashWithoutMeta() string { - if x != nil && x.StickerHashWithoutMeta != nil { - return *x.StickerHashWithoutMeta +func (m *InteractiveMessage) GetInteractiveMessage() isInteractiveMessage_InteractiveMessage { + if m != nil { + return m.InteractiveMessage } - return "" + return nil } -func (x *FavoriteStickerAction) GetMediaKey() string { - if x != nil && x.MediaKey != nil { - return *x.MediaKey +func (x *InteractiveMessage) GetShopStorefrontMessage() *ShopMessage { + if x, ok := x.GetInteractiveMessage().(*InteractiveMessage_ShopStorefrontMessage); ok { + return x.ShopStorefrontMessage } - return "" + return nil } -func (x *FavoriteStickerAction) GetMediaKeyTimestamp() int64 { - if x != nil && x.MediaKeyTimestamp != nil { - return *x.MediaKeyTimestamp +func (x *InteractiveMessage) GetCollectionMessage() *CollectionMessage { + if x, ok := x.GetInteractiveMessage().(*InteractiveMessage_CollectionMessage); ok { + return x.CollectionMessage } - return 0 + return nil } -func (x *FavoriteStickerAction) GetIsFavorite() bool { - if x != nil && x.IsFavorite != nil { - return *x.IsFavorite +func (x *InteractiveMessage) GetNativeFlowMessage() *NativeFlowMessage { + if x, ok := x.GetInteractiveMessage().(*InteractiveMessage_NativeFlowMessage); ok { + return x.NativeFlowMessage } - return false + return nil } -type ArchiveChatAction struct { +type isInteractiveMessage_InteractiveMessage interface { + isInteractiveMessage_InteractiveMessage() +} + +type InteractiveMessage_ShopStorefrontMessage struct { + ShopStorefrontMessage *ShopMessage `protobuf:"bytes,4,opt,name=shopStorefrontMessage,oneof"` +} + +type InteractiveMessage_CollectionMessage struct { + CollectionMessage *CollectionMessage `protobuf:"bytes,5,opt,name=collectionMessage,oneof"` +} + +type InteractiveMessage_NativeFlowMessage struct { + NativeFlowMessage *NativeFlowMessage `protobuf:"bytes,6,opt,name=nativeFlowMessage,oneof"` +} + +func (*InteractiveMessage_ShopStorefrontMessage) isInteractiveMessage_InteractiveMessage() {} + +func (*InteractiveMessage_CollectionMessage) isInteractiveMessage_InteractiveMessage() {} + +func (*InteractiveMessage_NativeFlowMessage) isInteractiveMessage_InteractiveMessage() {} + +type ShopMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Archived *bool `protobuf:"varint,1,opt,name=archived" json:"archived,omitempty"` - MessageRange *SyncActionMessageRange `protobuf:"bytes,2,opt,name=messageRange" json:"messageRange,omitempty"` + Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + Surface *ShopMessage_ShopMessageSurface `protobuf:"varint,2,opt,name=surface,enum=proto.ShopMessage_ShopMessageSurface" json:"surface,omitempty"` + MessageVersion *int32 `protobuf:"varint,3,opt,name=messageVersion" json:"messageVersion,omitempty"` } -func (x *ArchiveChatAction) Reset() { - *x = ArchiveChatAction{} +func (x *ShopMessage) Reset() { + *x = ShopMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6200,13 +6444,13 @@ func (x *ArchiveChatAction) Reset() { } } -func (x *ArchiveChatAction) String() string { +func (x *ShopMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ArchiveChatAction) ProtoMessage() {} +func (*ShopMessage) ProtoMessage() {} -func (x *ArchiveChatAction) ProtoReflect() protoreflect.Message { +func (x *ShopMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6218,36 +6462,44 @@ func (x *ArchiveChatAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ArchiveChatAction.ProtoReflect.Descriptor instead. -func (*ArchiveChatAction) Descriptor() ([]byte, []int) { +// Deprecated: Use ShopMessage.ProtoReflect.Descriptor instead. +func (*ShopMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{34} } -func (x *ArchiveChatAction) GetArchived() bool { - if x != nil && x.Archived != nil { - return *x.Archived +func (x *ShopMessage) GetId() string { + if x != nil && x.Id != nil { + return *x.Id } - return false + return "" } -func (x *ArchiveChatAction) GetMessageRange() *SyncActionMessageRange { - if x != nil { - return x.MessageRange +func (x *ShopMessage) GetSurface() ShopMessage_ShopMessageSurface { + if x != nil && x.Surface != nil { + return *x.Surface } - return nil + return ShopMessage_UNKNOWN_SURFACE } -type DeleteMessageForMeAction struct { +func (x *ShopMessage) GetMessageVersion() int32 { + if x != nil && x.MessageVersion != nil { + return *x.MessageVersion + } + return 0 +} + +type NativeFlowMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DeleteMedia *bool `protobuf:"varint,1,opt,name=deleteMedia" json:"deleteMedia,omitempty"` - MessageTimestamp *int64 `protobuf:"varint,2,opt,name=messageTimestamp" json:"messageTimestamp,omitempty"` + Buttons []*NativeFlowButton `protobuf:"bytes,1,rep,name=buttons" json:"buttons,omitempty"` + MessageParamsJson *string `protobuf:"bytes,2,opt,name=messageParamsJson" json:"messageParamsJson,omitempty"` + MessageVersion *int32 `protobuf:"varint,3,opt,name=messageVersion" json:"messageVersion,omitempty"` } -func (x *DeleteMessageForMeAction) Reset() { - *x = DeleteMessageForMeAction{} +func (x *NativeFlowMessage) Reset() { + *x = NativeFlowMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6255,13 +6507,13 @@ func (x *DeleteMessageForMeAction) Reset() { } } -func (x *DeleteMessageForMeAction) String() string { +func (x *NativeFlowMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteMessageForMeAction) ProtoMessage() {} +func (*NativeFlowMessage) ProtoMessage() {} -func (x *DeleteMessageForMeAction) ProtoReflect() protoreflect.Message { +func (x *NativeFlowMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6273,36 +6525,43 @@ func (x *DeleteMessageForMeAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteMessageForMeAction.ProtoReflect.Descriptor instead. -func (*DeleteMessageForMeAction) Descriptor() ([]byte, []int) { +// Deprecated: Use NativeFlowMessage.ProtoReflect.Descriptor instead. +func (*NativeFlowMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{35} } -func (x *DeleteMessageForMeAction) GetDeleteMedia() bool { - if x != nil && x.DeleteMedia != nil { - return *x.DeleteMedia +func (x *NativeFlowMessage) GetButtons() []*NativeFlowButton { + if x != nil { + return x.Buttons } - return false + return nil } -func (x *DeleteMessageForMeAction) GetMessageTimestamp() int64 { - if x != nil && x.MessageTimestamp != nil { - return *x.MessageTimestamp +func (x *NativeFlowMessage) GetMessageParamsJson() string { + if x != nil && x.MessageParamsJson != nil { + return *x.MessageParamsJson + } + return "" +} + +func (x *NativeFlowMessage) GetMessageVersion() int32 { + if x != nil && x.MessageVersion != nil { + return *x.MessageVersion } return 0 } -type MarkChatAsReadAction struct { +type NativeFlowButton struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Read *bool `protobuf:"varint,1,opt,name=read" json:"read,omitempty"` - MessageRange *SyncActionMessageRange `protobuf:"bytes,2,opt,name=messageRange" json:"messageRange,omitempty"` + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + ButtonParamsJson *string `protobuf:"bytes,2,opt,name=buttonParamsJson" json:"buttonParamsJson,omitempty"` } -func (x *MarkChatAsReadAction) Reset() { - *x = MarkChatAsReadAction{} +func (x *NativeFlowButton) Reset() { + *x = NativeFlowButton{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6310,13 +6569,13 @@ func (x *MarkChatAsReadAction) Reset() { } } -func (x *MarkChatAsReadAction) String() string { +func (x *NativeFlowButton) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MarkChatAsReadAction) ProtoMessage() {} +func (*NativeFlowButton) ProtoMessage() {} -func (x *MarkChatAsReadAction) ProtoReflect() protoreflect.Message { +func (x *NativeFlowButton) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6328,35 +6587,43 @@ func (x *MarkChatAsReadAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MarkChatAsReadAction.ProtoReflect.Descriptor instead. -func (*MarkChatAsReadAction) Descriptor() ([]byte, []int) { +// Deprecated: Use NativeFlowButton.ProtoReflect.Descriptor instead. +func (*NativeFlowButton) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{36} } -func (x *MarkChatAsReadAction) GetRead() bool { - if x != nil && x.Read != nil { - return *x.Read +func (x *NativeFlowButton) GetName() string { + if x != nil && x.Name != nil { + return *x.Name } - return false + return "" } -func (x *MarkChatAsReadAction) GetMessageRange() *SyncActionMessageRange { - if x != nil { - return x.MessageRange +func (x *NativeFlowButton) GetButtonParamsJson() string { + if x != nil && x.ButtonParamsJson != nil { + return *x.ButtonParamsJson } - return nil + return "" } -type ClearChatAction struct { +type Header struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MessageRange *SyncActionMessageRange `protobuf:"bytes,1,opt,name=messageRange" json:"messageRange,omitempty"` + Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` + Subtitle *string `protobuf:"bytes,2,opt,name=subtitle" json:"subtitle,omitempty"` + HasMediaAttachment *bool `protobuf:"varint,5,opt,name=hasMediaAttachment" json:"hasMediaAttachment,omitempty"` + // Types that are assignable to Media: + // *Header_DocumentMessage + // *Header_ImageMessage + // *Header_JpegThumbnail + // *Header_VideoMessage + Media isHeader_Media `protobuf_oneof:"media"` } -func (x *ClearChatAction) Reset() { - *x = ClearChatAction{} +func (x *Header) Reset() { + *x = Header{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6364,13 +6631,13 @@ func (x *ClearChatAction) Reset() { } } -func (x *ClearChatAction) String() string { +func (x *Header) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ClearChatAction) ProtoMessage() {} +func (*Header) ProtoMessage() {} -func (x *ClearChatAction) ProtoReflect() protoreflect.Message { +func (x *Header) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6382,28 +6649,105 @@ func (x *ClearChatAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ClearChatAction.ProtoReflect.Descriptor instead. -func (*ClearChatAction) Descriptor() ([]byte, []int) { +// Deprecated: Use Header.ProtoReflect.Descriptor instead. +func (*Header) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{37} } -func (x *ClearChatAction) GetMessageRange() *SyncActionMessageRange { - if x != nil { - return x.MessageRange +func (x *Header) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title + } + return "" +} + +func (x *Header) GetSubtitle() string { + if x != nil && x.Subtitle != nil { + return *x.Subtitle + } + return "" +} + +func (x *Header) GetHasMediaAttachment() bool { + if x != nil && x.HasMediaAttachment != nil { + return *x.HasMediaAttachment + } + return false +} + +func (m *Header) GetMedia() isHeader_Media { + if m != nil { + return m.Media } return nil } -type DeleteChatAction struct { +func (x *Header) GetDocumentMessage() *DocumentMessage { + if x, ok := x.GetMedia().(*Header_DocumentMessage); ok { + return x.DocumentMessage + } + return nil +} + +func (x *Header) GetImageMessage() *ImageMessage { + if x, ok := x.GetMedia().(*Header_ImageMessage); ok { + return x.ImageMessage + } + return nil +} + +func (x *Header) GetJpegThumbnail() []byte { + if x, ok := x.GetMedia().(*Header_JpegThumbnail); ok { + return x.JpegThumbnail + } + return nil +} + +func (x *Header) GetVideoMessage() *VideoMessage { + if x, ok := x.GetMedia().(*Header_VideoMessage); ok { + return x.VideoMessage + } + return nil +} + +type isHeader_Media interface { + isHeader_Media() +} + +type Header_DocumentMessage struct { + DocumentMessage *DocumentMessage `protobuf:"bytes,3,opt,name=documentMessage,oneof"` +} + +type Header_ImageMessage struct { + ImageMessage *ImageMessage `protobuf:"bytes,4,opt,name=imageMessage,oneof"` +} + +type Header_JpegThumbnail struct { + JpegThumbnail []byte `protobuf:"bytes,6,opt,name=jpegThumbnail,oneof"` +} + +type Header_VideoMessage struct { + VideoMessage *VideoMessage `protobuf:"bytes,7,opt,name=videoMessage,oneof"` +} + +func (*Header_DocumentMessage) isHeader_Media() {} + +func (*Header_ImageMessage) isHeader_Media() {} + +func (*Header_JpegThumbnail) isHeader_Media() {} + +func (*Header_VideoMessage) isHeader_Media() {} + +type Footer struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MessageRange *SyncActionMessageRange `protobuf:"bytes,1,opt,name=messageRange" json:"messageRange,omitempty"` + Text *string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"` } -func (x *DeleteChatAction) Reset() { - *x = DeleteChatAction{} +func (x *Footer) Reset() { + *x = Footer{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6411,13 +6755,13 @@ func (x *DeleteChatAction) Reset() { } } -func (x *DeleteChatAction) String() string { +func (x *Footer) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteChatAction) ProtoMessage() {} +func (*Footer) ProtoMessage() {} -func (x *DeleteChatAction) ProtoReflect() protoreflect.Message { +func (x *Footer) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6429,28 +6773,30 @@ func (x *DeleteChatAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteChatAction.ProtoReflect.Descriptor instead. -func (*DeleteChatAction) Descriptor() ([]byte, []int) { +// Deprecated: Use Footer.ProtoReflect.Descriptor instead. +func (*Footer) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{38} } -func (x *DeleteChatAction) GetMessageRange() *SyncActionMessageRange { - if x != nil { - return x.MessageRange +func (x *Footer) GetText() string { + if x != nil && x.Text != nil { + return *x.Text } - return nil + return "" } -type UnarchiveChatsSetting struct { +type CollectionMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UnarchiveChats *bool `protobuf:"varint,1,opt,name=unarchiveChats" json:"unarchiveChats,omitempty"` + BizJid *string `protobuf:"bytes,1,opt,name=bizJid" json:"bizJid,omitempty"` + Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` + MessageVersion *int32 `protobuf:"varint,3,opt,name=messageVersion" json:"messageVersion,omitempty"` } -func (x *UnarchiveChatsSetting) Reset() { - *x = UnarchiveChatsSetting{} +func (x *CollectionMessage) Reset() { + *x = CollectionMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6458,13 +6804,13 @@ func (x *UnarchiveChatsSetting) Reset() { } } -func (x *UnarchiveChatsSetting) String() string { +func (x *CollectionMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UnarchiveChatsSetting) ProtoMessage() {} +func (*CollectionMessage) ProtoMessage() {} -func (x *UnarchiveChatsSetting) ProtoReflect() protoreflect.Message { +func (x *CollectionMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6476,30 +6822,43 @@ func (x *UnarchiveChatsSetting) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UnarchiveChatsSetting.ProtoReflect.Descriptor instead. -func (*UnarchiveChatsSetting) Descriptor() ([]byte, []int) { +// Deprecated: Use CollectionMessage.ProtoReflect.Descriptor instead. +func (*CollectionMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{39} } -func (x *UnarchiveChatsSetting) GetUnarchiveChats() bool { - if x != nil && x.UnarchiveChats != nil { - return *x.UnarchiveChats +func (x *CollectionMessage) GetBizJid() string { + if x != nil && x.BizJid != nil { + return *x.BizJid } - return false + return "" } -type SyncActionMessageRange struct { +func (x *CollectionMessage) GetId() string { + if x != nil && x.Id != nil { + return *x.Id + } + return "" +} + +func (x *CollectionMessage) GetMessageVersion() int32 { + if x != nil && x.MessageVersion != nil { + return *x.MessageVersion + } + return 0 +} + +// Renamed from Message$InteractiveMessage$Body +type InteractiveMessageBody struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - LastMessageTimestamp *int64 `protobuf:"varint,1,opt,name=lastMessageTimestamp" json:"lastMessageTimestamp,omitempty"` - LastSystemMessageTimestamp *int64 `protobuf:"varint,2,opt,name=lastSystemMessageTimestamp" json:"lastSystemMessageTimestamp,omitempty"` - Messages []*SyncActionMessage `protobuf:"bytes,3,rep,name=messages" json:"messages,omitempty"` + Text *string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"` } -func (x *SyncActionMessageRange) Reset() { - *x = SyncActionMessageRange{} +func (x *InteractiveMessageBody) Reset() { + *x = InteractiveMessageBody{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6507,13 +6866,13 @@ func (x *SyncActionMessageRange) Reset() { } } -func (x *SyncActionMessageRange) String() string { +func (x *InteractiveMessageBody) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncActionMessageRange) ProtoMessage() {} +func (*InteractiveMessageBody) ProtoMessage() {} -func (x *SyncActionMessageRange) ProtoReflect() protoreflect.Message { +func (x *InteractiveMessageBody) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6525,43 +6884,28 @@ func (x *SyncActionMessageRange) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncActionMessageRange.ProtoReflect.Descriptor instead. -func (*SyncActionMessageRange) Descriptor() ([]byte, []int) { +// Deprecated: Use InteractiveMessageBody.ProtoReflect.Descriptor instead. +func (*InteractiveMessageBody) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{40} } -func (x *SyncActionMessageRange) GetLastMessageTimestamp() int64 { - if x != nil && x.LastMessageTimestamp != nil { - return *x.LastMessageTimestamp - } - return 0 -} - -func (x *SyncActionMessageRange) GetLastSystemMessageTimestamp() int64 { - if x != nil && x.LastSystemMessageTimestamp != nil { - return *x.LastSystemMessageTimestamp - } - return 0 -} - -func (x *SyncActionMessageRange) GetMessages() []*SyncActionMessage { - if x != nil { - return x.Messages +func (x *InteractiveMessageBody) GetText() string { + if x != nil && x.Text != nil { + return *x.Text } - return nil + return "" } -type SyncActionMessage struct { +type InitialSecurityNotificationSettingSync struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` - Timestamp *int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` + SecurityNotificationEnabled *bool `protobuf:"varint,1,opt,name=securityNotificationEnabled" json:"securityNotificationEnabled,omitempty"` } -func (x *SyncActionMessage) Reset() { - *x = SyncActionMessage{} +func (x *InitialSecurityNotificationSettingSync) Reset() { + *x = InitialSecurityNotificationSettingSync{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6569,13 +6913,13 @@ func (x *SyncActionMessage) Reset() { } } -func (x *SyncActionMessage) String() string { +func (x *InitialSecurityNotificationSettingSync) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncActionMessage) ProtoMessage() {} +func (*InitialSecurityNotificationSettingSync) ProtoMessage() {} -func (x *SyncActionMessage) ProtoReflect() protoreflect.Message { +func (x *InitialSecurityNotificationSettingSync) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6587,35 +6931,53 @@ func (x *SyncActionMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncActionMessage.ProtoReflect.Descriptor instead. -func (*SyncActionMessage) Descriptor() ([]byte, []int) { +// Deprecated: Use InitialSecurityNotificationSettingSync.ProtoReflect.Descriptor instead. +func (*InitialSecurityNotificationSettingSync) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{41} } -func (x *SyncActionMessage) GetKey() *MessageKey { - if x != nil { - return x.Key - } - return nil -} - -func (x *SyncActionMessage) GetTimestamp() int64 { - if x != nil && x.Timestamp != nil { - return *x.Timestamp +func (x *InitialSecurityNotificationSettingSync) GetSecurityNotificationEnabled() bool { + if x != nil && x.SecurityNotificationEnabled != nil { + return *x.SecurityNotificationEnabled } - return 0 + return false } -type KeyExpiration struct { +type ImageMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ExpiredKeyEpoch *int32 `protobuf:"varint,1,opt,name=expiredKeyEpoch" json:"expiredKeyEpoch,omitempty"` + Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` + Mimetype *string `protobuf:"bytes,2,opt,name=mimetype" json:"mimetype,omitempty"` + Caption *string `protobuf:"bytes,3,opt,name=caption" json:"caption,omitempty"` + FileSha256 []byte `protobuf:"bytes,4,opt,name=fileSha256" json:"fileSha256,omitempty"` + FileLength *uint64 `protobuf:"varint,5,opt,name=fileLength" json:"fileLength,omitempty"` + Height *uint32 `protobuf:"varint,6,opt,name=height" json:"height,omitempty"` + Width *uint32 `protobuf:"varint,7,opt,name=width" json:"width,omitempty"` + MediaKey []byte `protobuf:"bytes,8,opt,name=mediaKey" json:"mediaKey,omitempty"` + FileEncSha256 []byte `protobuf:"bytes,9,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` + InteractiveAnnotations []*InteractiveAnnotation `protobuf:"bytes,10,rep,name=interactiveAnnotations" json:"interactiveAnnotations,omitempty"` + DirectPath *string `protobuf:"bytes,11,opt,name=directPath" json:"directPath,omitempty"` + MediaKeyTimestamp *int64 `protobuf:"varint,12,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` + JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` + FirstScanSidecar []byte `protobuf:"bytes,18,opt,name=firstScanSidecar" json:"firstScanSidecar,omitempty"` + FirstScanLength *uint32 `protobuf:"varint,19,opt,name=firstScanLength" json:"firstScanLength,omitempty"` + ExperimentGroupId *uint32 `protobuf:"varint,20,opt,name=experimentGroupId" json:"experimentGroupId,omitempty"` + ScansSidecar []byte `protobuf:"bytes,21,opt,name=scansSidecar" json:"scansSidecar,omitempty"` + ScanLengths []uint32 `protobuf:"varint,22,rep,name=scanLengths" json:"scanLengths,omitempty"` + MidQualityFileSha256 []byte `protobuf:"bytes,23,opt,name=midQualityFileSha256" json:"midQualityFileSha256,omitempty"` + MidQualityFileEncSha256 []byte `protobuf:"bytes,24,opt,name=midQualityFileEncSha256" json:"midQualityFileEncSha256,omitempty"` + ViewOnce *bool `protobuf:"varint,25,opt,name=viewOnce" json:"viewOnce,omitempty"` + ThumbnailDirectPath *string `protobuf:"bytes,26,opt,name=thumbnailDirectPath" json:"thumbnailDirectPath,omitempty"` + ThumbnailSha256 []byte `protobuf:"bytes,27,opt,name=thumbnailSha256" json:"thumbnailSha256,omitempty"` + ThumbnailEncSha256 []byte `protobuf:"bytes,28,opt,name=thumbnailEncSha256" json:"thumbnailEncSha256,omitempty"` + StaticUrl *string `protobuf:"bytes,29,opt,name=staticUrl" json:"staticUrl,omitempty"` } -func (x *KeyExpiration) Reset() { - *x = KeyExpiration{} +func (x *ImageMessage) Reset() { + *x = ImageMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6623,13 +6985,13 @@ func (x *KeyExpiration) Reset() { } } -func (x *KeyExpiration) String() string { +func (x *ImageMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*KeyExpiration) ProtoMessage() {} +func (*ImageMessage) ProtoMessage() {} -func (x *KeyExpiration) ProtoReflect() protoreflect.Message { +func (x *ImageMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6641,160 +7003,225 @@ func (x *KeyExpiration) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use KeyExpiration.ProtoReflect.Descriptor instead. -func (*KeyExpiration) Descriptor() ([]byte, []int) { +// Deprecated: Use ImageMessage.ProtoReflect.Descriptor instead. +func (*ImageMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{42} } -func (x *KeyExpiration) GetExpiredKeyEpoch() int32 { - if x != nil && x.ExpiredKeyEpoch != nil { - return *x.ExpiredKeyEpoch +func (x *ImageMessage) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url + } + return "" +} + +func (x *ImageMessage) GetMimetype() string { + if x != nil && x.Mimetype != nil { + return *x.Mimetype + } + return "" +} + +func (x *ImageMessage) GetCaption() string { + if x != nil && x.Caption != nil { + return *x.Caption + } + return "" +} + +func (x *ImageMessage) GetFileSha256() []byte { + if x != nil { + return x.FileSha256 + } + return nil +} + +func (x *ImageMessage) GetFileLength() uint64 { + if x != nil && x.FileLength != nil { + return *x.FileLength } return 0 } -type PrimaryFeature struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *ImageMessage) GetHeight() uint32 { + if x != nil && x.Height != nil { + return *x.Height + } + return 0 +} - Flags []string `protobuf:"bytes,1,rep,name=flags" json:"flags,omitempty"` +func (x *ImageMessage) GetWidth() uint32 { + if x != nil && x.Width != nil { + return *x.Width + } + return 0 } -func (x *PrimaryFeature) Reset() { - *x = PrimaryFeature{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ImageMessage) GetMediaKey() []byte { + if x != nil { + return x.MediaKey } + return nil } -func (x *PrimaryFeature) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ImageMessage) GetFileEncSha256() []byte { + if x != nil { + return x.FileEncSha256 + } + return nil } -func (*PrimaryFeature) ProtoMessage() {} +func (x *ImageMessage) GetInteractiveAnnotations() []*InteractiveAnnotation { + if x != nil { + return x.InteractiveAnnotations + } + return nil +} -func (x *PrimaryFeature) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ImageMessage) GetDirectPath() string { + if x != nil && x.DirectPath != nil { + return *x.DirectPath } - return mi.MessageOf(x) + return "" } -// Deprecated: Use PrimaryFeature.ProtoReflect.Descriptor instead. -func (*PrimaryFeature) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{43} +func (x *ImageMessage) GetMediaKeyTimestamp() int64 { + if x != nil && x.MediaKeyTimestamp != nil { + return *x.MediaKeyTimestamp + } + return 0 } -func (x *PrimaryFeature) GetFlags() []string { +func (x *ImageMessage) GetJpegThumbnail() []byte { if x != nil { - return x.Flags + return x.JpegThumbnail } return nil } -type AndroidUnsupportedActions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *ImageMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo + } + return nil +} - Allowed *bool `protobuf:"varint,1,opt,name=allowed" json:"allowed,omitempty"` +func (x *ImageMessage) GetFirstScanSidecar() []byte { + if x != nil { + return x.FirstScanSidecar + } + return nil } -func (x *AndroidUnsupportedActions) Reset() { - *x = AndroidUnsupportedActions{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ImageMessage) GetFirstScanLength() uint32 { + if x != nil && x.FirstScanLength != nil { + return *x.FirstScanLength } + return 0 } -func (x *AndroidUnsupportedActions) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ImageMessage) GetExperimentGroupId() uint32 { + if x != nil && x.ExperimentGroupId != nil { + return *x.ExperimentGroupId + } + return 0 } -func (*AndroidUnsupportedActions) ProtoMessage() {} +func (x *ImageMessage) GetScansSidecar() []byte { + if x != nil { + return x.ScansSidecar + } + return nil +} -func (x *AndroidUnsupportedActions) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ImageMessage) GetScanLengths() []uint32 { + if x != nil { + return x.ScanLengths } - return mi.MessageOf(x) + return nil } -// Deprecated: Use AndroidUnsupportedActions.ProtoReflect.Descriptor instead. -func (*AndroidUnsupportedActions) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{44} +func (x *ImageMessage) GetMidQualityFileSha256() []byte { + if x != nil { + return x.MidQualityFileSha256 + } + return nil } -func (x *AndroidUnsupportedActions) GetAllowed() bool { - if x != nil && x.Allowed != nil { - return *x.Allowed +func (x *ImageMessage) GetMidQualityFileEncSha256() []byte { + if x != nil { + return x.MidQualityFileEncSha256 + } + return nil +} + +func (x *ImageMessage) GetViewOnce() bool { + if x != nil && x.ViewOnce != nil { + return *x.ViewOnce } return false } -type SyncActionValue struct { +func (x *ImageMessage) GetThumbnailDirectPath() string { + if x != nil && x.ThumbnailDirectPath != nil { + return *x.ThumbnailDirectPath + } + return "" +} + +func (x *ImageMessage) GetThumbnailSha256() []byte { + if x != nil { + return x.ThumbnailSha256 + } + return nil +} + +func (x *ImageMessage) GetThumbnailEncSha256() []byte { + if x != nil { + return x.ThumbnailEncSha256 + } + return nil +} + +func (x *ImageMessage) GetStaticUrl() string { + if x != nil && x.StaticUrl != nil { + return *x.StaticUrl + } + return "" +} + +type HistorySyncNotification struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Timestamp *int64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"` - StarAction *StarAction `protobuf:"bytes,2,opt,name=starAction" json:"starAction,omitempty"` - ContactAction *ContactAction `protobuf:"bytes,3,opt,name=contactAction" json:"contactAction,omitempty"` - MuteAction *MuteAction `protobuf:"bytes,4,opt,name=muteAction" json:"muteAction,omitempty"` - PinAction *PinAction `protobuf:"bytes,5,opt,name=pinAction" json:"pinAction,omitempty"` - SecurityNotificationSetting *SecurityNotificationSetting `protobuf:"bytes,6,opt,name=securityNotificationSetting" json:"securityNotificationSetting,omitempty"` - PushNameSetting *PushNameSetting `protobuf:"bytes,7,opt,name=pushNameSetting" json:"pushNameSetting,omitempty"` - QuickReplyAction *QuickReplyAction `protobuf:"bytes,8,opt,name=quickReplyAction" json:"quickReplyAction,omitempty"` - RecentStickerWeightsAction *RecentStickerWeightsAction `protobuf:"bytes,9,opt,name=recentStickerWeightsAction" json:"recentStickerWeightsAction,omitempty"` - RecentStickerMetadata *RecentStickerMetadata `protobuf:"bytes,10,opt,name=recentStickerMetadata" json:"recentStickerMetadata,omitempty"` - RecentEmojiWeightsAction *RecentEmojiWeightsAction `protobuf:"bytes,11,opt,name=recentEmojiWeightsAction" json:"recentEmojiWeightsAction,omitempty"` - LabelEditAction *LabelEditAction `protobuf:"bytes,14,opt,name=labelEditAction" json:"labelEditAction,omitempty"` - LabelAssociationAction *LabelAssociationAction `protobuf:"bytes,15,opt,name=labelAssociationAction" json:"labelAssociationAction,omitempty"` - LocaleSetting *LocaleSetting `protobuf:"bytes,16,opt,name=localeSetting" json:"localeSetting,omitempty"` - ArchiveChatAction *ArchiveChatAction `protobuf:"bytes,17,opt,name=archiveChatAction" json:"archiveChatAction,omitempty"` - DeleteMessageForMeAction *DeleteMessageForMeAction `protobuf:"bytes,18,opt,name=deleteMessageForMeAction" json:"deleteMessageForMeAction,omitempty"` - KeyExpiration *KeyExpiration `protobuf:"bytes,19,opt,name=keyExpiration" json:"keyExpiration,omitempty"` - MarkChatAsReadAction *MarkChatAsReadAction `protobuf:"bytes,20,opt,name=markChatAsReadAction" json:"markChatAsReadAction,omitempty"` - ClearChatAction *ClearChatAction `protobuf:"bytes,21,opt,name=clearChatAction" json:"clearChatAction,omitempty"` - DeleteChatAction *DeleteChatAction `protobuf:"bytes,22,opt,name=deleteChatAction" json:"deleteChatAction,omitempty"` - UnarchiveChatsSetting *UnarchiveChatsSetting `protobuf:"bytes,23,opt,name=unarchiveChatsSetting" json:"unarchiveChatsSetting,omitempty"` - PrimaryFeature *PrimaryFeature `protobuf:"bytes,24,opt,name=primaryFeature" json:"primaryFeature,omitempty"` - FavoriteStickerAction *FavoriteStickerAction `protobuf:"bytes,25,opt,name=favoriteStickerAction" json:"favoriteStickerAction,omitempty"` - AndroidUnsupportedActions *AndroidUnsupportedActions `protobuf:"bytes,26,opt,name=androidUnsupportedActions" json:"androidUnsupportedActions,omitempty"` + FileSha256 []byte `protobuf:"bytes,1,opt,name=fileSha256" json:"fileSha256,omitempty"` + FileLength *uint64 `protobuf:"varint,2,opt,name=fileLength" json:"fileLength,omitempty"` + MediaKey []byte `protobuf:"bytes,3,opt,name=mediaKey" json:"mediaKey,omitempty"` + FileEncSha256 []byte `protobuf:"bytes,4,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` + DirectPath *string `protobuf:"bytes,5,opt,name=directPath" json:"directPath,omitempty"` + SyncType *HistorySyncNotification_HistorySyncNotificationHistorySyncType `protobuf:"varint,6,opt,name=syncType,enum=proto.HistorySyncNotification_HistorySyncNotificationHistorySyncType" json:"syncType,omitempty"` + ChunkOrder *uint32 `protobuf:"varint,7,opt,name=chunkOrder" json:"chunkOrder,omitempty"` + OriginalMessageId *string `protobuf:"bytes,8,opt,name=originalMessageId" json:"originalMessageId,omitempty"` } -func (x *SyncActionValue) Reset() { - *x = SyncActionValue{} +func (x *HistorySyncNotification) Reset() { + *x = HistorySyncNotification{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[45] + mi := &file_binary_proto_def_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *SyncActionValue) String() string { +func (x *HistorySyncNotification) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncActionValue) ProtoMessage() {} +func (*HistorySyncNotification) ProtoMessage() {} -func (x *SyncActionValue) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[45] +func (x *HistorySyncNotification) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6805,190 +7232,279 @@ func (x *SyncActionValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncActionValue.ProtoReflect.Descriptor instead. -func (*SyncActionValue) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{45} +// Deprecated: Use HistorySyncNotification.ProtoReflect.Descriptor instead. +func (*HistorySyncNotification) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{43} } -func (x *SyncActionValue) GetTimestamp() int64 { - if x != nil && x.Timestamp != nil { - return *x.Timestamp +func (x *HistorySyncNotification) GetFileSha256() []byte { + if x != nil { + return x.FileSha256 + } + return nil +} + +func (x *HistorySyncNotification) GetFileLength() uint64 { + if x != nil && x.FileLength != nil { + return *x.FileLength } return 0 } -func (x *SyncActionValue) GetStarAction() *StarAction { +func (x *HistorySyncNotification) GetMediaKey() []byte { if x != nil { - return x.StarAction + return x.MediaKey } return nil } -func (x *SyncActionValue) GetContactAction() *ContactAction { +func (x *HistorySyncNotification) GetFileEncSha256() []byte { if x != nil { - return x.ContactAction + return x.FileEncSha256 } return nil } -func (x *SyncActionValue) GetMuteAction() *MuteAction { - if x != nil { - return x.MuteAction +func (x *HistorySyncNotification) GetDirectPath() string { + if x != nil && x.DirectPath != nil { + return *x.DirectPath } - return nil + return "" } -func (x *SyncActionValue) GetPinAction() *PinAction { - if x != nil { - return x.PinAction +func (x *HistorySyncNotification) GetSyncType() HistorySyncNotification_HistorySyncNotificationHistorySyncType { + if x != nil && x.SyncType != nil { + return *x.SyncType } - return nil + return HistorySyncNotification_INITIAL_BOOTSTRAP } -func (x *SyncActionValue) GetSecurityNotificationSetting() *SecurityNotificationSetting { - if x != nil { - return x.SecurityNotificationSetting +func (x *HistorySyncNotification) GetChunkOrder() uint32 { + if x != nil && x.ChunkOrder != nil { + return *x.ChunkOrder } - return nil + return 0 } -func (x *SyncActionValue) GetPushNameSetting() *PushNameSetting { - if x != nil { - return x.PushNameSetting +func (x *HistorySyncNotification) GetOriginalMessageId() string { + if x != nil && x.OriginalMessageId != nil { + return *x.OriginalMessageId } - return nil + return "" } -func (x *SyncActionValue) GetQuickReplyAction() *QuickReplyAction { - if x != nil { - return x.QuickReplyAction +type HighlyStructuredMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Namespace *string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"` + ElementName *string `protobuf:"bytes,2,opt,name=elementName" json:"elementName,omitempty"` + Params []string `protobuf:"bytes,3,rep,name=params" json:"params,omitempty"` + FallbackLg *string `protobuf:"bytes,4,opt,name=fallbackLg" json:"fallbackLg,omitempty"` + FallbackLc *string `protobuf:"bytes,5,opt,name=fallbackLc" json:"fallbackLc,omitempty"` + LocalizableParams []*HSMLocalizableParameter `protobuf:"bytes,6,rep,name=localizableParams" json:"localizableParams,omitempty"` + DeterministicLg *string `protobuf:"bytes,7,opt,name=deterministicLg" json:"deterministicLg,omitempty"` + DeterministicLc *string `protobuf:"bytes,8,opt,name=deterministicLc" json:"deterministicLc,omitempty"` + HydratedHsm *TemplateMessage `protobuf:"bytes,9,opt,name=hydratedHsm" json:"hydratedHsm,omitempty"` +} + +func (x *HighlyStructuredMessage) Reset() { + *x = HighlyStructuredMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *SyncActionValue) GetRecentStickerWeightsAction() *RecentStickerWeightsAction { - if x != nil { - return x.RecentStickerWeightsAction +func (x *HighlyStructuredMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HighlyStructuredMessage) ProtoMessage() {} + +func (x *HighlyStructuredMessage) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_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 nil + return mi.MessageOf(x) } -func (x *SyncActionValue) GetRecentStickerMetadata() *RecentStickerMetadata { - if x != nil { - return x.RecentStickerMetadata +// Deprecated: Use HighlyStructuredMessage.ProtoReflect.Descriptor instead. +func (*HighlyStructuredMessage) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{44} +} + +func (x *HighlyStructuredMessage) GetNamespace() string { + if x != nil && x.Namespace != nil { + return *x.Namespace } - return nil + return "" } -func (x *SyncActionValue) GetRecentEmojiWeightsAction() *RecentEmojiWeightsAction { - if x != nil { - return x.RecentEmojiWeightsAction +func (x *HighlyStructuredMessage) GetElementName() string { + if x != nil && x.ElementName != nil { + return *x.ElementName } - return nil + return "" } -func (x *SyncActionValue) GetLabelEditAction() *LabelEditAction { +func (x *HighlyStructuredMessage) GetParams() []string { if x != nil { - return x.LabelEditAction + return x.Params } return nil } -func (x *SyncActionValue) GetLabelAssociationAction() *LabelAssociationAction { - if x != nil { - return x.LabelAssociationAction +func (x *HighlyStructuredMessage) GetFallbackLg() string { + if x != nil && x.FallbackLg != nil { + return *x.FallbackLg } - return nil + return "" } -func (x *SyncActionValue) GetLocaleSetting() *LocaleSetting { - if x != nil { - return x.LocaleSetting +func (x *HighlyStructuredMessage) GetFallbackLc() string { + if x != nil && x.FallbackLc != nil { + return *x.FallbackLc } - return nil + return "" } -func (x *SyncActionValue) GetArchiveChatAction() *ArchiveChatAction { +func (x *HighlyStructuredMessage) GetLocalizableParams() []*HSMLocalizableParameter { if x != nil { - return x.ArchiveChatAction + return x.LocalizableParams } return nil } -func (x *SyncActionValue) GetDeleteMessageForMeAction() *DeleteMessageForMeAction { - if x != nil { - return x.DeleteMessageForMeAction +func (x *HighlyStructuredMessage) GetDeterministicLg() string { + if x != nil && x.DeterministicLg != nil { + return *x.DeterministicLg } - return nil + return "" } -func (x *SyncActionValue) GetKeyExpiration() *KeyExpiration { - if x != nil { - return x.KeyExpiration +func (x *HighlyStructuredMessage) GetDeterministicLc() string { + if x != nil && x.DeterministicLc != nil { + return *x.DeterministicLc } - return nil + return "" } -func (x *SyncActionValue) GetMarkChatAsReadAction() *MarkChatAsReadAction { +func (x *HighlyStructuredMessage) GetHydratedHsm() *TemplateMessage { if x != nil { - return x.MarkChatAsReadAction + return x.HydratedHsm } return nil } -func (x *SyncActionValue) GetClearChatAction() *ClearChatAction { - if x != nil { - return x.ClearChatAction +type HSMLocalizableParameter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Default *string `protobuf:"bytes,1,opt,name=default" json:"default,omitempty"` + // Types that are assignable to ParamOneof: + // *HSMLocalizableParameter_Currency + // *HSMLocalizableParameter_DateTime + ParamOneof isHSMLocalizableParameter_ParamOneof `protobuf_oneof:"paramOneof"` +} + +func (x *HSMLocalizableParameter) Reset() { + *x = HSMLocalizableParameter{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *SyncActionValue) GetDeleteChatAction() *DeleteChatAction { - if x != nil { - return x.DeleteChatAction +func (x *HSMLocalizableParameter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HSMLocalizableParameter) ProtoMessage() {} + +func (x *HSMLocalizableParameter) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_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 nil + return mi.MessageOf(x) } -func (x *SyncActionValue) GetUnarchiveChatsSetting() *UnarchiveChatsSetting { - if x != nil { - return x.UnarchiveChatsSetting +// Deprecated: Use HSMLocalizableParameter.ProtoReflect.Descriptor instead. +func (*HSMLocalizableParameter) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{45} +} + +func (x *HSMLocalizableParameter) GetDefault() string { + if x != nil && x.Default != nil { + return *x.Default } - return nil + return "" } -func (x *SyncActionValue) GetPrimaryFeature() *PrimaryFeature { - if x != nil { - return x.PrimaryFeature +func (m *HSMLocalizableParameter) GetParamOneof() isHSMLocalizableParameter_ParamOneof { + if m != nil { + return m.ParamOneof } return nil } -func (x *SyncActionValue) GetFavoriteStickerAction() *FavoriteStickerAction { - if x != nil { - return x.FavoriteStickerAction +func (x *HSMLocalizableParameter) GetCurrency() *HSMCurrency { + if x, ok := x.GetParamOneof().(*HSMLocalizableParameter_Currency); ok { + return x.Currency } return nil } -func (x *SyncActionValue) GetAndroidUnsupportedActions() *AndroidUnsupportedActions { - if x != nil { - return x.AndroidUnsupportedActions +func (x *HSMLocalizableParameter) GetDateTime() *HSMDateTime { + if x, ok := x.GetParamOneof().(*HSMLocalizableParameter_DateTime); ok { + return x.DateTime } return nil } -type RecentEmojiWeight struct { +type isHSMLocalizableParameter_ParamOneof interface { + isHSMLocalizableParameter_ParamOneof() +} + +type HSMLocalizableParameter_Currency struct { + Currency *HSMCurrency `protobuf:"bytes,2,opt,name=currency,oneof"` +} + +type HSMLocalizableParameter_DateTime struct { + DateTime *HSMDateTime `protobuf:"bytes,3,opt,name=dateTime,oneof"` +} + +func (*HSMLocalizableParameter_Currency) isHSMLocalizableParameter_ParamOneof() {} + +func (*HSMLocalizableParameter_DateTime) isHSMLocalizableParameter_ParamOneof() {} + +type HSMDateTime struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Emoji *string `protobuf:"bytes,1,opt,name=emoji" json:"emoji,omitempty"` - Weight *float32 `protobuf:"fixed32,2,opt,name=weight" json:"weight,omitempty"` + // Types that are assignable to DatetimeOneof: + // *HSMDateTime_Component + // *HSMDateTime_UnixEpoch + DatetimeOneof isHSMDateTime_DatetimeOneof `protobuf_oneof:"datetimeOneof"` } -func (x *RecentEmojiWeight) Reset() { - *x = RecentEmojiWeight{} +func (x *HSMDateTime) Reset() { + *x = HSMDateTime{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6996,13 +7512,13 @@ func (x *RecentEmojiWeight) Reset() { } } -func (x *RecentEmojiWeight) String() string { +func (x *HSMDateTime) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RecentEmojiWeight) ProtoMessage() {} +func (*HSMDateTime) ProtoMessage() {} -func (x *RecentEmojiWeight) ProtoReflect() protoreflect.Message { +func (x *HSMDateTime) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7014,36 +7530,58 @@ func (x *RecentEmojiWeight) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecentEmojiWeight.ProtoReflect.Descriptor instead. -func (*RecentEmojiWeight) Descriptor() ([]byte, []int) { +// Deprecated: Use HSMDateTime.ProtoReflect.Descriptor instead. +func (*HSMDateTime) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{46} } -func (x *RecentEmojiWeight) GetEmoji() string { - if x != nil && x.Emoji != nil { - return *x.Emoji +func (m *HSMDateTime) GetDatetimeOneof() isHSMDateTime_DatetimeOneof { + if m != nil { + return m.DatetimeOneof } - return "" + return nil } -func (x *RecentEmojiWeight) GetWeight() float32 { - if x != nil && x.Weight != nil { - return *x.Weight +func (x *HSMDateTime) GetComponent() *HSMDateTimeComponent { + if x, ok := x.GetDatetimeOneof().(*HSMDateTime_Component); ok { + return x.Component } - return 0 + return nil } -type RecentStickerWeight struct { +func (x *HSMDateTime) GetUnixEpoch() *HSMDateTimeUnixEpoch { + if x, ok := x.GetDatetimeOneof().(*HSMDateTime_UnixEpoch); ok { + return x.UnixEpoch + } + return nil +} + +type isHSMDateTime_DatetimeOneof interface { + isHSMDateTime_DatetimeOneof() +} + +type HSMDateTime_Component struct { + Component *HSMDateTimeComponent `protobuf:"bytes,1,opt,name=component,oneof"` +} + +type HSMDateTime_UnixEpoch struct { + UnixEpoch *HSMDateTimeUnixEpoch `protobuf:"bytes,2,opt,name=unixEpoch,oneof"` +} + +func (*HSMDateTime_Component) isHSMDateTime_DatetimeOneof() {} + +func (*HSMDateTime_UnixEpoch) isHSMDateTime_DatetimeOneof() {} + +type HSMDateTimeUnixEpoch struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Filehash *string `protobuf:"bytes,1,opt,name=filehash" json:"filehash,omitempty"` - Weight *float32 `protobuf:"fixed32,2,opt,name=weight" json:"weight,omitempty"` + Timestamp *int64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"` } -func (x *RecentStickerWeight) Reset() { - *x = RecentStickerWeight{} +func (x *HSMDateTimeUnixEpoch) Reset() { + *x = HSMDateTimeUnixEpoch{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7051,13 +7589,13 @@ func (x *RecentStickerWeight) Reset() { } } -func (x *RecentStickerWeight) String() string { +func (x *HSMDateTimeUnixEpoch) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RecentStickerWeight) ProtoMessage() {} +func (*HSMDateTimeUnixEpoch) ProtoMessage() {} -func (x *RecentStickerWeight) ProtoReflect() protoreflect.Message { +func (x *HSMDateTimeUnixEpoch) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7069,42 +7607,34 @@ func (x *RecentStickerWeight) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecentStickerWeight.ProtoReflect.Descriptor instead. -func (*RecentStickerWeight) Descriptor() ([]byte, []int) { +// Deprecated: Use HSMDateTimeUnixEpoch.ProtoReflect.Descriptor instead. +func (*HSMDateTimeUnixEpoch) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{47} } -func (x *RecentStickerWeight) GetFilehash() string { - if x != nil && x.Filehash != nil { - return *x.Filehash - } - return "" -} - -func (x *RecentStickerWeight) GetWeight() float32 { - if x != nil && x.Weight != nil { - return *x.Weight +func (x *HSMDateTimeUnixEpoch) GetTimestamp() int64 { + if x != nil && x.Timestamp != nil { + return *x.Timestamp } return 0 } -type SyncdPatch struct { +type HSMDateTimeComponent struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Version *SyncdVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` - Mutations []*SyncdMutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` - ExternalMutations *ExternalBlobReference `protobuf:"bytes,3,opt,name=externalMutations" json:"externalMutations,omitempty"` - SnapshotMac []byte `protobuf:"bytes,4,opt,name=snapshotMac" json:"snapshotMac,omitempty"` - PatchMac []byte `protobuf:"bytes,5,opt,name=patchMac" json:"patchMac,omitempty"` - KeyId *KeyId `protobuf:"bytes,6,opt,name=keyId" json:"keyId,omitempty"` - ExitCode *ExitCode `protobuf:"bytes,7,opt,name=exitCode" json:"exitCode,omitempty"` - DeviceIndex *uint32 `protobuf:"varint,8,opt,name=deviceIndex" json:"deviceIndex,omitempty"` + DayOfWeek *HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType `protobuf:"varint,1,opt,name=dayOfWeek,enum=proto.HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType" json:"dayOfWeek,omitempty"` + Year *uint32 `protobuf:"varint,2,opt,name=year" json:"year,omitempty"` + Month *uint32 `protobuf:"varint,3,opt,name=month" json:"month,omitempty"` + DayOfMonth *uint32 `protobuf:"varint,4,opt,name=dayOfMonth" json:"dayOfMonth,omitempty"` + Hour *uint32 `protobuf:"varint,5,opt,name=hour" json:"hour,omitempty"` + Minute *uint32 `protobuf:"varint,6,opt,name=minute" json:"minute,omitempty"` + Calendar *HSMDateTimeComponent_HSMDateTimeComponentCalendarType `protobuf:"varint,7,opt,name=calendar,enum=proto.HSMDateTimeComponent_HSMDateTimeComponentCalendarType" json:"calendar,omitempty"` } -func (x *SyncdPatch) Reset() { - *x = SyncdPatch{} +func (x *HSMDateTimeComponent) Reset() { + *x = HSMDateTimeComponent{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7112,13 +7642,13 @@ func (x *SyncdPatch) Reset() { } } -func (x *SyncdPatch) String() string { +func (x *HSMDateTimeComponent) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncdPatch) ProtoMessage() {} +func (*HSMDateTimeComponent) ProtoMessage() {} -func (x *SyncdPatch) ProtoReflect() protoreflect.Message { +func (x *HSMDateTimeComponent) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7130,78 +7660,71 @@ func (x *SyncdPatch) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncdPatch.ProtoReflect.Descriptor instead. -func (*SyncdPatch) Descriptor() ([]byte, []int) { +// Deprecated: Use HSMDateTimeComponent.ProtoReflect.Descriptor instead. +func (*HSMDateTimeComponent) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{48} } -func (x *SyncdPatch) GetVersion() *SyncdVersion { - if x != nil { - return x.Version - } - return nil -} - -func (x *SyncdPatch) GetMutations() []*SyncdMutation { - if x != nil { - return x.Mutations +func (x *HSMDateTimeComponent) GetDayOfWeek() HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType { + if x != nil && x.DayOfWeek != nil { + return *x.DayOfWeek } - return nil + return HSMDateTimeComponent_MONDAY } -func (x *SyncdPatch) GetExternalMutations() *ExternalBlobReference { - if x != nil { - return x.ExternalMutations +func (x *HSMDateTimeComponent) GetYear() uint32 { + if x != nil && x.Year != nil { + return *x.Year } - return nil + return 0 } -func (x *SyncdPatch) GetSnapshotMac() []byte { - if x != nil { - return x.SnapshotMac +func (x *HSMDateTimeComponent) GetMonth() uint32 { + if x != nil && x.Month != nil { + return *x.Month } - return nil + return 0 } -func (x *SyncdPatch) GetPatchMac() []byte { - if x != nil { - return x.PatchMac +func (x *HSMDateTimeComponent) GetDayOfMonth() uint32 { + if x != nil && x.DayOfMonth != nil { + return *x.DayOfMonth } - return nil + return 0 } -func (x *SyncdPatch) GetKeyId() *KeyId { - if x != nil { - return x.KeyId +func (x *HSMDateTimeComponent) GetHour() uint32 { + if x != nil && x.Hour != nil { + return *x.Hour } - return nil + return 0 } -func (x *SyncdPatch) GetExitCode() *ExitCode { - if x != nil { - return x.ExitCode +func (x *HSMDateTimeComponent) GetMinute() uint32 { + if x != nil && x.Minute != nil { + return *x.Minute } - return nil + return 0 } -func (x *SyncdPatch) GetDeviceIndex() uint32 { - if x != nil && x.DeviceIndex != nil { - return *x.DeviceIndex +func (x *HSMDateTimeComponent) GetCalendar() HSMDateTimeComponent_HSMDateTimeComponentCalendarType { + if x != nil && x.Calendar != nil { + return *x.Calendar } - return 0 + return HSMDateTimeComponent_GREGORIAN } -type SyncdMutation struct { +type HSMCurrency struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Operation *SyncdMutation_SyncdMutationSyncdOperation `protobuf:"varint,1,opt,name=operation,enum=proto.SyncdMutation_SyncdMutationSyncdOperation" json:"operation,omitempty"` - Record *SyncdRecord `protobuf:"bytes,2,opt,name=record" json:"record,omitempty"` + CurrencyCode *string `protobuf:"bytes,1,opt,name=currencyCode" json:"currencyCode,omitempty"` + Amount1000 *int64 `protobuf:"varint,2,opt,name=amount1000" json:"amount1000,omitempty"` } -func (x *SyncdMutation) Reset() { - *x = SyncdMutation{} +func (x *HSMCurrency) Reset() { + *x = HSMCurrency{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7209,13 +7732,13 @@ func (x *SyncdMutation) Reset() { } } -func (x *SyncdMutation) String() string { +func (x *HSMCurrency) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncdMutation) ProtoMessage() {} +func (*HSMCurrency) ProtoMessage() {} -func (x *SyncdMutation) ProtoReflect() protoreflect.Message { +func (x *HSMCurrency) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7227,35 +7750,42 @@ func (x *SyncdMutation) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncdMutation.ProtoReflect.Descriptor instead. -func (*SyncdMutation) Descriptor() ([]byte, []int) { +// Deprecated: Use HSMCurrency.ProtoReflect.Descriptor instead. +func (*HSMCurrency) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{49} } -func (x *SyncdMutation) GetOperation() SyncdMutation_SyncdMutationSyncdOperation { - if x != nil && x.Operation != nil { - return *x.Operation +func (x *HSMCurrency) GetCurrencyCode() string { + if x != nil && x.CurrencyCode != nil { + return *x.CurrencyCode } - return SyncdMutation_SET + return "" } -func (x *SyncdMutation) GetRecord() *SyncdRecord { - if x != nil { - return x.Record +func (x *HSMCurrency) GetAmount1000() int64 { + if x != nil && x.Amount1000 != nil { + return *x.Amount1000 } - return nil + return 0 } -type SyncdMutations struct { +type GroupInviteMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Mutations []*SyncdMutation `protobuf:"bytes,1,rep,name=mutations" json:"mutations,omitempty"` + GroupJid *string `protobuf:"bytes,1,opt,name=groupJid" json:"groupJid,omitempty"` + InviteCode *string `protobuf:"bytes,2,opt,name=inviteCode" json:"inviteCode,omitempty"` + InviteExpiration *int64 `protobuf:"varint,3,opt,name=inviteExpiration" json:"inviteExpiration,omitempty"` + GroupName *string `protobuf:"bytes,4,opt,name=groupName" json:"groupName,omitempty"` + JpegThumbnail []byte `protobuf:"bytes,5,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` + Caption *string `protobuf:"bytes,6,opt,name=caption" json:"caption,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,7,opt,name=contextInfo" json:"contextInfo,omitempty"` + GroupType *GroupInviteMessage_GroupInviteMessageGroupType `protobuf:"varint,8,opt,name=groupType,enum=proto.GroupInviteMessage_GroupInviteMessageGroupType" json:"groupType,omitempty"` } -func (x *SyncdMutations) Reset() { - *x = SyncdMutations{} +func (x *GroupInviteMessage) Reset() { + *x = GroupInviteMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7263,13 +7793,13 @@ func (x *SyncdMutations) Reset() { } } -func (x *SyncdMutations) String() string { +func (x *GroupInviteMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncdMutations) ProtoMessage() {} +func (*GroupInviteMessage) ProtoMessage() {} -func (x *SyncdMutations) ProtoReflect() protoreflect.Message { +func (x *GroupInviteMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7281,31 +7811,77 @@ func (x *SyncdMutations) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncdMutations.ProtoReflect.Descriptor instead. -func (*SyncdMutations) Descriptor() ([]byte, []int) { +// Deprecated: Use GroupInviteMessage.ProtoReflect.Descriptor instead. +func (*GroupInviteMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{50} } -func (x *SyncdMutations) GetMutations() []*SyncdMutation { +func (x *GroupInviteMessage) GetGroupJid() string { + if x != nil && x.GroupJid != nil { + return *x.GroupJid + } + return "" +} + +func (x *GroupInviteMessage) GetInviteCode() string { + if x != nil && x.InviteCode != nil { + return *x.InviteCode + } + return "" +} + +func (x *GroupInviteMessage) GetInviteExpiration() int64 { + if x != nil && x.InviteExpiration != nil { + return *x.InviteExpiration + } + return 0 +} + +func (x *GroupInviteMessage) GetGroupName() string { + if x != nil && x.GroupName != nil { + return *x.GroupName + } + return "" +} + +func (x *GroupInviteMessage) GetJpegThumbnail() []byte { if x != nil { - return x.Mutations + return x.JpegThumbnail } return nil } -type SyncdSnapshot struct { +func (x *GroupInviteMessage) GetCaption() string { + if x != nil && x.Caption != nil { + return *x.Caption + } + return "" +} + +func (x *GroupInviteMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo + } + return nil +} + +func (x *GroupInviteMessage) GetGroupType() GroupInviteMessage_GroupInviteMessageGroupType { + if x != nil && x.GroupType != nil { + return *x.GroupType + } + return GroupInviteMessage_DEFAULT +} + +type FutureProofMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Version *SyncdVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` - Records []*SyncdRecord `protobuf:"bytes,2,rep,name=records" json:"records,omitempty"` - Mac []byte `protobuf:"bytes,3,opt,name=mac" json:"mac,omitempty"` - KeyId *KeyId `protobuf:"bytes,4,opt,name=keyId" json:"keyId,omitempty"` + Message *Message `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` } -func (x *SyncdSnapshot) Reset() { - *x = SyncdSnapshot{} +func (x *FutureProofMessage) Reset() { + *x = FutureProofMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7313,13 +7889,13 @@ func (x *SyncdSnapshot) Reset() { } } -func (x *SyncdSnapshot) String() string { +func (x *FutureProofMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncdSnapshot) ProtoMessage() {} +func (*FutureProofMessage) ProtoMessage() {} -func (x *SyncdSnapshot) ProtoReflect() protoreflect.Message { +func (x *FutureProofMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7331,54 +7907,47 @@ func (x *SyncdSnapshot) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncdSnapshot.ProtoReflect.Descriptor instead. -func (*SyncdSnapshot) Descriptor() ([]byte, []int) { +// Deprecated: Use FutureProofMessage.ProtoReflect.Descriptor instead. +func (*FutureProofMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{51} } -func (x *SyncdSnapshot) GetVersion() *SyncdVersion { - if x != nil { - return x.Version - } - return nil -} - -func (x *SyncdSnapshot) GetRecords() []*SyncdRecord { - if x != nil { - return x.Records - } - return nil -} - -func (x *SyncdSnapshot) GetMac() []byte { - if x != nil { - return x.Mac - } - return nil -} - -func (x *SyncdSnapshot) GetKeyId() *KeyId { +func (x *FutureProofMessage) GetMessage() *Message { if x != nil { - return x.KeyId + return x.Message } return nil } -type ExternalBlobReference struct { +type ExtendedTextMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MediaKey []byte `protobuf:"bytes,1,opt,name=mediaKey" json:"mediaKey,omitempty"` - DirectPath *string `protobuf:"bytes,2,opt,name=directPath" json:"directPath,omitempty"` - Handle *string `protobuf:"bytes,3,opt,name=handle" json:"handle,omitempty"` - FileSizeBytes *uint64 `protobuf:"varint,4,opt,name=fileSizeBytes" json:"fileSizeBytes,omitempty"` - FileSha256 []byte `protobuf:"bytes,5,opt,name=fileSha256" json:"fileSha256,omitempty"` - FileEncSha256 []byte `protobuf:"bytes,6,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` + Text *string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"` + MatchedText *string `protobuf:"bytes,2,opt,name=matchedText" json:"matchedText,omitempty"` + CanonicalUrl *string `protobuf:"bytes,4,opt,name=canonicalUrl" json:"canonicalUrl,omitempty"` + Description *string `protobuf:"bytes,5,opt,name=description" json:"description,omitempty"` + Title *string `protobuf:"bytes,6,opt,name=title" json:"title,omitempty"` + TextArgb *uint32 `protobuf:"fixed32,7,opt,name=textArgb" json:"textArgb,omitempty"` + BackgroundArgb *uint32 `protobuf:"fixed32,8,opt,name=backgroundArgb" json:"backgroundArgb,omitempty"` + Font *ExtendedTextMessage_ExtendedTextMessageFontType `protobuf:"varint,9,opt,name=font,enum=proto.ExtendedTextMessage_ExtendedTextMessageFontType" json:"font,omitempty"` + PreviewType *ExtendedTextMessage_ExtendedTextMessagePreviewType `protobuf:"varint,10,opt,name=previewType,enum=proto.ExtendedTextMessage_ExtendedTextMessagePreviewType" json:"previewType,omitempty"` + JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` + DoNotPlayInline *bool `protobuf:"varint,18,opt,name=doNotPlayInline" json:"doNotPlayInline,omitempty"` + ThumbnailDirectPath *string `protobuf:"bytes,19,opt,name=thumbnailDirectPath" json:"thumbnailDirectPath,omitempty"` + ThumbnailSha256 []byte `protobuf:"bytes,20,opt,name=thumbnailSha256" json:"thumbnailSha256,omitempty"` + ThumbnailEncSha256 []byte `protobuf:"bytes,21,opt,name=thumbnailEncSha256" json:"thumbnailEncSha256,omitempty"` + MediaKey []byte `protobuf:"bytes,22,opt,name=mediaKey" json:"mediaKey,omitempty"` + MediaKeyTimestamp *int64 `protobuf:"varint,23,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` + ThumbnailHeight *uint32 `protobuf:"varint,24,opt,name=thumbnailHeight" json:"thumbnailHeight,omitempty"` + ThumbnailWidth *uint32 `protobuf:"varint,25,opt,name=thumbnailWidth" json:"thumbnailWidth,omitempty"` + InviteLinkGroupType *ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType `protobuf:"varint,26,opt,name=inviteLinkGroupType,enum=proto.ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType" json:"inviteLinkGroupType,omitempty"` } -func (x *ExternalBlobReference) Reset() { - *x = ExternalBlobReference{} +func (x *ExtendedTextMessage) Reset() { + *x = ExtendedTextMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7386,13 +7955,13 @@ func (x *ExternalBlobReference) Reset() { } } -func (x *ExternalBlobReference) String() string { +func (x *ExtendedTextMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ExternalBlobReference) ProtoMessage() {} +func (*ExtendedTextMessage) ProtoMessage() {} -func (x *ExternalBlobReference) ProtoReflect() protoreflect.Message { +func (x *ExtendedTextMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7404,65 +7973,179 @@ func (x *ExternalBlobReference) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExternalBlobReference.ProtoReflect.Descriptor instead. -func (*ExternalBlobReference) Descriptor() ([]byte, []int) { +// Deprecated: Use ExtendedTextMessage.ProtoReflect.Descriptor instead. +func (*ExtendedTextMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{52} } -func (x *ExternalBlobReference) GetMediaKey() []byte { - if x != nil { - return x.MediaKey +func (x *ExtendedTextMessage) GetText() string { + if x != nil && x.Text != nil { + return *x.Text } - return nil + return "" } -func (x *ExternalBlobReference) GetDirectPath() string { - if x != nil && x.DirectPath != nil { - return *x.DirectPath +func (x *ExtendedTextMessage) GetMatchedText() string { + if x != nil && x.MatchedText != nil { + return *x.MatchedText } return "" } -func (x *ExternalBlobReference) GetHandle() string { - if x != nil && x.Handle != nil { - return *x.Handle +func (x *ExtendedTextMessage) GetCanonicalUrl() string { + if x != nil && x.CanonicalUrl != nil { + return *x.CanonicalUrl } return "" } -func (x *ExternalBlobReference) GetFileSizeBytes() uint64 { - if x != nil && x.FileSizeBytes != nil { - return *x.FileSizeBytes +func (x *ExtendedTextMessage) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +func (x *ExtendedTextMessage) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title + } + return "" +} + +func (x *ExtendedTextMessage) GetTextArgb() uint32 { + if x != nil && x.TextArgb != nil { + return *x.TextArgb } return 0 } -func (x *ExternalBlobReference) GetFileSha256() []byte { +func (x *ExtendedTextMessage) GetBackgroundArgb() uint32 { + if x != nil && x.BackgroundArgb != nil { + return *x.BackgroundArgb + } + return 0 +} + +func (x *ExtendedTextMessage) GetFont() ExtendedTextMessage_ExtendedTextMessageFontType { + if x != nil && x.Font != nil { + return *x.Font + } + return ExtendedTextMessage_SANS_SERIF +} + +func (x *ExtendedTextMessage) GetPreviewType() ExtendedTextMessage_ExtendedTextMessagePreviewType { + if x != nil && x.PreviewType != nil { + return *x.PreviewType + } + return ExtendedTextMessage_NONE +} + +func (x *ExtendedTextMessage) GetJpegThumbnail() []byte { if x != nil { - return x.FileSha256 + return x.JpegThumbnail } return nil } -func (x *ExternalBlobReference) GetFileEncSha256() []byte { +func (x *ExtendedTextMessage) GetContextInfo() *ContextInfo { if x != nil { - return x.FileEncSha256 + return x.ContextInfo } return nil } -type SyncdRecord struct { +func (x *ExtendedTextMessage) GetDoNotPlayInline() bool { + if x != nil && x.DoNotPlayInline != nil { + return *x.DoNotPlayInline + } + return false +} + +func (x *ExtendedTextMessage) GetThumbnailDirectPath() string { + if x != nil && x.ThumbnailDirectPath != nil { + return *x.ThumbnailDirectPath + } + return "" +} + +func (x *ExtendedTextMessage) GetThumbnailSha256() []byte { + if x != nil { + return x.ThumbnailSha256 + } + return nil +} + +func (x *ExtendedTextMessage) GetThumbnailEncSha256() []byte { + if x != nil { + return x.ThumbnailEncSha256 + } + return nil +} + +func (x *ExtendedTextMessage) GetMediaKey() []byte { + if x != nil { + return x.MediaKey + } + return nil +} + +func (x *ExtendedTextMessage) GetMediaKeyTimestamp() int64 { + if x != nil && x.MediaKeyTimestamp != nil { + return *x.MediaKeyTimestamp + } + return 0 +} + +func (x *ExtendedTextMessage) GetThumbnailHeight() uint32 { + if x != nil && x.ThumbnailHeight != nil { + return *x.ThumbnailHeight + } + return 0 +} + +func (x *ExtendedTextMessage) GetThumbnailWidth() uint32 { + if x != nil && x.ThumbnailWidth != nil { + return *x.ThumbnailWidth + } + return 0 +} + +func (x *ExtendedTextMessage) GetInviteLinkGroupType() ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType { + if x != nil && x.InviteLinkGroupType != nil { + return *x.InviteLinkGroupType + } + return ExtendedTextMessage_DEFAULT +} + +type DocumentMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Index *SyncdIndex `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` - Value *SyncdValue `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` - KeyId *KeyId `protobuf:"bytes,3,opt,name=keyId" json:"keyId,omitempty"` + Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` + Mimetype *string `protobuf:"bytes,2,opt,name=mimetype" json:"mimetype,omitempty"` + Title *string `protobuf:"bytes,3,opt,name=title" json:"title,omitempty"` + FileSha256 []byte `protobuf:"bytes,4,opt,name=fileSha256" json:"fileSha256,omitempty"` + FileLength *uint64 `protobuf:"varint,5,opt,name=fileLength" json:"fileLength,omitempty"` + PageCount *uint32 `protobuf:"varint,6,opt,name=pageCount" json:"pageCount,omitempty"` + MediaKey []byte `protobuf:"bytes,7,opt,name=mediaKey" json:"mediaKey,omitempty"` + FileName *string `protobuf:"bytes,8,opt,name=fileName" json:"fileName,omitempty"` + FileEncSha256 []byte `protobuf:"bytes,9,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` + DirectPath *string `protobuf:"bytes,10,opt,name=directPath" json:"directPath,omitempty"` + MediaKeyTimestamp *int64 `protobuf:"varint,11,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` + ContactVcard *bool `protobuf:"varint,12,opt,name=contactVcard" json:"contactVcard,omitempty"` + ThumbnailDirectPath *string `protobuf:"bytes,13,opt,name=thumbnailDirectPath" json:"thumbnailDirectPath,omitempty"` + ThumbnailSha256 []byte `protobuf:"bytes,14,opt,name=thumbnailSha256" json:"thumbnailSha256,omitempty"` + ThumbnailEncSha256 []byte `protobuf:"bytes,15,opt,name=thumbnailEncSha256" json:"thumbnailEncSha256,omitempty"` + JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` + ThumbnailHeight *uint32 `protobuf:"varint,18,opt,name=thumbnailHeight" json:"thumbnailHeight,omitempty"` + ThumbnailWidth *uint32 `protobuf:"varint,19,opt,name=thumbnailWidth" json:"thumbnailWidth,omitempty"` } -func (x *SyncdRecord) Reset() { - *x = SyncdRecord{} +func (x *DocumentMessage) Reset() { + *x = DocumentMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7470,13 +8153,13 @@ func (x *SyncdRecord) Reset() { } } -func (x *SyncdRecord) String() string { +func (x *DocumentMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncdRecord) ProtoMessage() {} +func (*DocumentMessage) ProtoMessage() {} -func (x *SyncdRecord) ProtoReflect() protoreflect.Message { +func (x *DocumentMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7488,42 +8171,156 @@ func (x *SyncdRecord) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncdRecord.ProtoReflect.Descriptor instead. -func (*SyncdRecord) Descriptor() ([]byte, []int) { +// Deprecated: Use DocumentMessage.ProtoReflect.Descriptor instead. +func (*DocumentMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{53} } -func (x *SyncdRecord) GetIndex() *SyncdIndex { +func (x *DocumentMessage) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url + } + return "" +} + +func (x *DocumentMessage) GetMimetype() string { + if x != nil && x.Mimetype != nil { + return *x.Mimetype + } + return "" +} + +func (x *DocumentMessage) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title + } + return "" +} + +func (x *DocumentMessage) GetFileSha256() []byte { if x != nil { - return x.Index + return x.FileSha256 } return nil } -func (x *SyncdRecord) GetValue() *SyncdValue { +func (x *DocumentMessage) GetFileLength() uint64 { + if x != nil && x.FileLength != nil { + return *x.FileLength + } + return 0 +} + +func (x *DocumentMessage) GetPageCount() uint32 { + if x != nil && x.PageCount != nil { + return *x.PageCount + } + return 0 +} + +func (x *DocumentMessage) GetMediaKey() []byte { if x != nil { - return x.Value + return x.MediaKey } return nil } -func (x *SyncdRecord) GetKeyId() *KeyId { +func (x *DocumentMessage) GetFileName() string { + if x != nil && x.FileName != nil { + return *x.FileName + } + return "" +} + +func (x *DocumentMessage) GetFileEncSha256() []byte { if x != nil { - return x.KeyId + return x.FileEncSha256 } return nil } -type KeyId struct { +func (x *DocumentMessage) GetDirectPath() string { + if x != nil && x.DirectPath != nil { + return *x.DirectPath + } + return "" +} + +func (x *DocumentMessage) GetMediaKeyTimestamp() int64 { + if x != nil && x.MediaKeyTimestamp != nil { + return *x.MediaKeyTimestamp + } + return 0 +} + +func (x *DocumentMessage) GetContactVcard() bool { + if x != nil && x.ContactVcard != nil { + return *x.ContactVcard + } + return false +} + +func (x *DocumentMessage) GetThumbnailDirectPath() string { + if x != nil && x.ThumbnailDirectPath != nil { + return *x.ThumbnailDirectPath + } + return "" +} + +func (x *DocumentMessage) GetThumbnailSha256() []byte { + if x != nil { + return x.ThumbnailSha256 + } + return nil +} + +func (x *DocumentMessage) GetThumbnailEncSha256() []byte { + if x != nil { + return x.ThumbnailEncSha256 + } + return nil +} + +func (x *DocumentMessage) GetJpegThumbnail() []byte { + if x != nil { + return x.JpegThumbnail + } + return nil +} + +func (x *DocumentMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo + } + return nil +} + +func (x *DocumentMessage) GetThumbnailHeight() uint32 { + if x != nil && x.ThumbnailHeight != nil { + return *x.ThumbnailHeight + } + return 0 +} + +func (x *DocumentMessage) GetThumbnailWidth() uint32 { + if x != nil && x.ThumbnailWidth != nil { + return *x.ThumbnailWidth + } + return 0 +} + +type DeviceSentMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id []byte `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + DestinationJid *string `protobuf:"bytes,1,opt,name=destinationJid" json:"destinationJid,omitempty"` + Message *Message `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` + Phash *string `protobuf:"bytes,3,opt,name=phash" json:"phash,omitempty"` } -func (x *KeyId) Reset() { - *x = KeyId{} +func (x *DeviceSentMessage) Reset() { + *x = DeviceSentMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7531,13 +8328,13 @@ func (x *KeyId) Reset() { } } -func (x *KeyId) String() string { +func (x *DeviceSentMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*KeyId) ProtoMessage() {} +func (*DeviceSentMessage) ProtoMessage() {} -func (x *KeyId) ProtoReflect() protoreflect.Message { +func (x *DeviceSentMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7549,28 +8346,42 @@ func (x *KeyId) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use KeyId.ProtoReflect.Descriptor instead. -func (*KeyId) Descriptor() ([]byte, []int) { +// Deprecated: Use DeviceSentMessage.ProtoReflect.Descriptor instead. +func (*DeviceSentMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{54} } -func (x *KeyId) GetId() []byte { +func (x *DeviceSentMessage) GetDestinationJid() string { + if x != nil && x.DestinationJid != nil { + return *x.DestinationJid + } + return "" +} + +func (x *DeviceSentMessage) GetMessage() *Message { if x != nil { - return x.Id + return x.Message } return nil } -type SyncdValue struct { +func (x *DeviceSentMessage) GetPhash() string { + if x != nil && x.Phash != nil { + return *x.Phash + } + return "" +} + +type DeclinePaymentRequestMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Blob []byte `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"` + Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` } -func (x *SyncdValue) Reset() { - *x = SyncdValue{} +func (x *DeclinePaymentRequestMessage) Reset() { + *x = DeclinePaymentRequestMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7578,13 +8389,13 @@ func (x *SyncdValue) Reset() { } } -func (x *SyncdValue) String() string { +func (x *DeclinePaymentRequestMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncdValue) ProtoMessage() {} +func (*DeclinePaymentRequestMessage) ProtoMessage() {} -func (x *SyncdValue) ProtoReflect() protoreflect.Message { +func (x *DeclinePaymentRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7596,28 +8407,30 @@ func (x *SyncdValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncdValue.ProtoReflect.Descriptor instead. -func (*SyncdValue) Descriptor() ([]byte, []int) { +// Deprecated: Use DeclinePaymentRequestMessage.ProtoReflect.Descriptor instead. +func (*DeclinePaymentRequestMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{55} } -func (x *SyncdValue) GetBlob() []byte { +func (x *DeclinePaymentRequestMessage) GetKey() *MessageKey { if x != nil { - return x.Blob + return x.Key } return nil } -type SyncdIndex struct { +type ContactsArrayMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Blob []byte `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"` + DisplayName *string `protobuf:"bytes,1,opt,name=displayName" json:"displayName,omitempty"` + Contacts []*ContactMessage `protobuf:"bytes,2,rep,name=contacts" json:"contacts,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` } -func (x *SyncdIndex) Reset() { - *x = SyncdIndex{} +func (x *ContactsArrayMessage) Reset() { + *x = ContactsArrayMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7625,13 +8438,13 @@ func (x *SyncdIndex) Reset() { } } -func (x *SyncdIndex) String() string { +func (x *ContactsArrayMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncdIndex) ProtoMessage() {} +func (*ContactsArrayMessage) ProtoMessage() {} -func (x *SyncdIndex) ProtoReflect() protoreflect.Message { +func (x *ContactsArrayMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7643,29 +8456,44 @@ func (x *SyncdIndex) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncdIndex.ProtoReflect.Descriptor instead. -func (*SyncdIndex) Descriptor() ([]byte, []int) { +// Deprecated: Use ContactsArrayMessage.ProtoReflect.Descriptor instead. +func (*ContactsArrayMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{56} } -func (x *SyncdIndex) GetBlob() []byte { +func (x *ContactsArrayMessage) GetDisplayName() string { + if x != nil && x.DisplayName != nil { + return *x.DisplayName + } + return "" +} + +func (x *ContactsArrayMessage) GetContacts() []*ContactMessage { if x != nil { - return x.Blob + return x.Contacts } return nil } -type ExitCode struct { +func (x *ContactsArrayMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo + } + return nil +} + +type ContactMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Code *uint64 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` - Text *string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` + DisplayName *string `protobuf:"bytes,1,opt,name=displayName" json:"displayName,omitempty"` + Vcard *string `protobuf:"bytes,16,opt,name=vcard" json:"vcard,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` } -func (x *ExitCode) Reset() { - *x = ExitCode{} +func (x *ContactMessage) Reset() { + *x = ContactMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7673,13 +8501,13 @@ func (x *ExitCode) Reset() { } } -func (x *ExitCode) String() string { +func (x *ContactMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ExitCode) ProtoMessage() {} +func (*ContactMessage) ProtoMessage() {} -func (x *ExitCode) ProtoReflect() protoreflect.Message { +func (x *ContactMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7691,35 +8519,43 @@ func (x *ExitCode) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExitCode.ProtoReflect.Descriptor instead. -func (*ExitCode) Descriptor() ([]byte, []int) { +// Deprecated: Use ContactMessage.ProtoReflect.Descriptor instead. +func (*ContactMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{57} } -func (x *ExitCode) GetCode() uint64 { - if x != nil && x.Code != nil { - return *x.Code +func (x *ContactMessage) GetDisplayName() string { + if x != nil && x.DisplayName != nil { + return *x.DisplayName } - return 0 + return "" } -func (x *ExitCode) GetText() string { - if x != nil && x.Text != nil { - return *x.Text +func (x *ContactMessage) GetVcard() string { + if x != nil && x.Vcard != nil { + return *x.Vcard } return "" } -type SyncdVersion struct { +func (x *ContactMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo + } + return nil +} + +type Chat struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Version *uint64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` + DisplayName *string `protobuf:"bytes,1,opt,name=displayName" json:"displayName,omitempty"` + Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` } -func (x *SyncdVersion) Reset() { - *x = SyncdVersion{} +func (x *Chat) Reset() { + *x = Chat{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7727,13 +8563,13 @@ func (x *SyncdVersion) Reset() { } } -func (x *SyncdVersion) String() string { +func (x *Chat) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SyncdVersion) ProtoMessage() {} +func (*Chat) ProtoMessage() {} -func (x *SyncdVersion) ProtoReflect() protoreflect.Message { +func (x *Chat) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7745,28 +8581,35 @@ func (x *SyncdVersion) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncdVersion.ProtoReflect.Descriptor instead. -func (*SyncdVersion) Descriptor() ([]byte, []int) { +// Deprecated: Use Chat.ProtoReflect.Descriptor instead. +func (*Chat) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{58} } -func (x *SyncdVersion) GetVersion() uint64 { - if x != nil && x.Version != nil { - return *x.Version +func (x *Chat) GetDisplayName() string { + if x != nil && x.DisplayName != nil { + return *x.DisplayName } - return 0 + return "" } -type ServerErrorReceipt struct { +func (x *Chat) GetId() string { + if x != nil && x.Id != nil { + return *x.Id + } + return "" +} + +type CancelPaymentRequestMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - StanzaId *string `protobuf:"bytes,1,opt,name=stanzaId" json:"stanzaId,omitempty"` + Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` } -func (x *ServerErrorReceipt) Reset() { - *x = ServerErrorReceipt{} +func (x *CancelPaymentRequestMessage) Reset() { + *x = CancelPaymentRequestMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7774,13 +8617,13 @@ func (x *ServerErrorReceipt) Reset() { } } -func (x *ServerErrorReceipt) String() string { +func (x *CancelPaymentRequestMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ServerErrorReceipt) ProtoMessage() {} +func (*CancelPaymentRequestMessage) ProtoMessage() {} -func (x *ServerErrorReceipt) ProtoReflect() protoreflect.Message { +func (x *CancelPaymentRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7792,30 +8635,31 @@ func (x *ServerErrorReceipt) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ServerErrorReceipt.ProtoReflect.Descriptor instead. -func (*ServerErrorReceipt) Descriptor() ([]byte, []int) { +// Deprecated: Use CancelPaymentRequestMessage.ProtoReflect.Descriptor instead. +func (*CancelPaymentRequestMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{59} } -func (x *ServerErrorReceipt) GetStanzaId() string { - if x != nil && x.StanzaId != nil { - return *x.StanzaId +func (x *CancelPaymentRequestMessage) GetKey() *MessageKey { + if x != nil { + return x.Key } - return "" + return nil } -type MediaRetryNotification struct { +type Call struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - StanzaId *string `protobuf:"bytes,1,opt,name=stanzaId" json:"stanzaId,omitempty"` - DirectPath *string `protobuf:"bytes,2,opt,name=directPath" json:"directPath,omitempty"` - Result *MediaRetryNotification_MediaRetryNotificationResultType `protobuf:"varint,3,opt,name=result,enum=proto.MediaRetryNotification_MediaRetryNotificationResultType" json:"result,omitempty"` + CallKey []byte `protobuf:"bytes,1,opt,name=callKey" json:"callKey,omitempty"` + ConversionSource *string `protobuf:"bytes,2,opt,name=conversionSource" json:"conversionSource,omitempty"` + ConversionData []byte `protobuf:"bytes,3,opt,name=conversionData" json:"conversionData,omitempty"` + ConversionDelaySeconds *uint32 `protobuf:"varint,4,opt,name=conversionDelaySeconds" json:"conversionDelaySeconds,omitempty"` } -func (x *MediaRetryNotification) Reset() { - *x = MediaRetryNotification{} +func (x *Call) Reset() { + *x = Call{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7823,13 +8667,13 @@ func (x *MediaRetryNotification) Reset() { } } -func (x *MediaRetryNotification) String() string { +func (x *Call) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MediaRetryNotification) ProtoMessage() {} +func (*Call) ProtoMessage() {} -func (x *MediaRetryNotification) ProtoReflect() protoreflect.Message { +func (x *Call) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7841,54 +8685,54 @@ func (x *MediaRetryNotification) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MediaRetryNotification.ProtoReflect.Descriptor instead. -func (*MediaRetryNotification) Descriptor() ([]byte, []int) { +// Deprecated: Use Call.ProtoReflect.Descriptor instead. +func (*Call) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{60} } -func (x *MediaRetryNotification) GetStanzaId() string { - if x != nil && x.StanzaId != nil { - return *x.StanzaId +func (x *Call) GetCallKey() []byte { + if x != nil { + return x.CallKey } - return "" + return nil } -func (x *MediaRetryNotification) GetDirectPath() string { - if x != nil && x.DirectPath != nil { - return *x.DirectPath +func (x *Call) GetConversionSource() string { + if x != nil && x.ConversionSource != nil { + return *x.ConversionSource } return "" } -func (x *MediaRetryNotification) GetResult() MediaRetryNotification_MediaRetryNotificationResultType { - if x != nil && x.Result != nil { - return *x.Result +func (x *Call) GetConversionData() []byte { + if x != nil { + return x.ConversionData } - return MediaRetryNotification_GENERAL_ERROR + return nil } -type MsgOpaqueData struct { +func (x *Call) GetConversionDelaySeconds() uint32 { + if x != nil && x.ConversionDelaySeconds != nil { + return *x.ConversionDelaySeconds + } + return 0 +} + +type ButtonsResponseMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Body *string `protobuf:"bytes,1,opt,name=body" json:"body,omitempty"` - Caption *string `protobuf:"bytes,3,opt,name=caption" json:"caption,omitempty"` - Lng *float64 `protobuf:"fixed64,5,opt,name=lng" json:"lng,omitempty"` - Lat *float64 `protobuf:"fixed64,7,opt,name=lat" json:"lat,omitempty"` - PaymentAmount1000 *int32 `protobuf:"varint,8,opt,name=paymentAmount1000" json:"paymentAmount1000,omitempty"` - PaymentNoteMsgBody *string `protobuf:"bytes,9,opt,name=paymentNoteMsgBody" json:"paymentNoteMsgBody,omitempty"` - CanonicalUrl *string `protobuf:"bytes,10,opt,name=canonicalUrl" json:"canonicalUrl,omitempty"` - MatchedText *string `protobuf:"bytes,11,opt,name=matchedText" json:"matchedText,omitempty"` - Title *string `protobuf:"bytes,12,opt,name=title" json:"title,omitempty"` - Description *string `protobuf:"bytes,13,opt,name=description" json:"description,omitempty"` - FutureproofBuffer []byte `protobuf:"bytes,14,opt,name=futureproofBuffer" json:"futureproofBuffer,omitempty"` - ClientUrl *string `protobuf:"bytes,15,opt,name=clientUrl" json:"clientUrl,omitempty"` - Loc *string `protobuf:"bytes,16,opt,name=loc" json:"loc,omitempty"` + SelectedButtonId *string `protobuf:"bytes,1,opt,name=selectedButtonId" json:"selectedButtonId,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,3,opt,name=contextInfo" json:"contextInfo,omitempty"` + Type *ButtonsResponseMessage_ButtonsResponseMessageType `protobuf:"varint,4,opt,name=type,enum=proto.ButtonsResponseMessage_ButtonsResponseMessageType" json:"type,omitempty"` + // Types that are assignable to Response: + // *ButtonsResponseMessage_SelectedDisplayText + Response isButtonsResponseMessage_Response `protobuf_oneof:"response"` } -func (x *MsgOpaqueData) Reset() { - *x = MsgOpaqueData{} +func (x *ButtonsResponseMessage) Reset() { + *x = ButtonsResponseMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7896,13 +8740,13 @@ func (x *MsgOpaqueData) Reset() { } } -func (x *MsgOpaqueData) String() string { +func (x *ButtonsResponseMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOpaqueData) ProtoMessage() {} +func (*ButtonsResponseMessage) ProtoMessage() {} -func (x *MsgOpaqueData) ProtoReflect() protoreflect.Message { +func (x *ButtonsResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7914,113 +8758,77 @@ func (x *MsgOpaqueData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MsgOpaqueData.ProtoReflect.Descriptor instead. -func (*MsgOpaqueData) Descriptor() ([]byte, []int) { +// Deprecated: Use ButtonsResponseMessage.ProtoReflect.Descriptor instead. +func (*ButtonsResponseMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{61} } -func (x *MsgOpaqueData) GetBody() string { - if x != nil && x.Body != nil { - return *x.Body - } - return "" -} - -func (x *MsgOpaqueData) GetCaption() string { - if x != nil && x.Caption != nil { - return *x.Caption - } - return "" -} - -func (x *MsgOpaqueData) GetLng() float64 { - if x != nil && x.Lng != nil { - return *x.Lng - } - return 0 -} - -func (x *MsgOpaqueData) GetLat() float64 { - if x != nil && x.Lat != nil { - return *x.Lat - } - return 0 -} - -func (x *MsgOpaqueData) GetPaymentAmount1000() int32 { - if x != nil && x.PaymentAmount1000 != nil { - return *x.PaymentAmount1000 - } - return 0 -} - -func (x *MsgOpaqueData) GetPaymentNoteMsgBody() string { - if x != nil && x.PaymentNoteMsgBody != nil { - return *x.PaymentNoteMsgBody +func (x *ButtonsResponseMessage) GetSelectedButtonId() string { + if x != nil && x.SelectedButtonId != nil { + return *x.SelectedButtonId } return "" } -func (x *MsgOpaqueData) GetCanonicalUrl() string { - if x != nil && x.CanonicalUrl != nil { - return *x.CanonicalUrl +func (x *ButtonsResponseMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo } - return "" + return nil } -func (x *MsgOpaqueData) GetMatchedText() string { - if x != nil && x.MatchedText != nil { - return *x.MatchedText +func (x *ButtonsResponseMessage) GetType() ButtonsResponseMessage_ButtonsResponseMessageType { + if x != nil && x.Type != nil { + return *x.Type } - return "" + return ButtonsResponseMessage_UNKNOWN } -func (x *MsgOpaqueData) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title +func (m *ButtonsResponseMessage) GetResponse() isButtonsResponseMessage_Response { + if m != nil { + return m.Response } - return "" + return nil } -func (x *MsgOpaqueData) GetDescription() string { - if x != nil && x.Description != nil { - return *x.Description +func (x *ButtonsResponseMessage) GetSelectedDisplayText() string { + if x, ok := x.GetResponse().(*ButtonsResponseMessage_SelectedDisplayText); ok { + return x.SelectedDisplayText } return "" } -func (x *MsgOpaqueData) GetFutureproofBuffer() []byte { - if x != nil { - return x.FutureproofBuffer - } - return nil +type isButtonsResponseMessage_Response interface { + isButtonsResponseMessage_Response() } -func (x *MsgOpaqueData) GetClientUrl() string { - if x != nil && x.ClientUrl != nil { - return *x.ClientUrl - } - return "" +type ButtonsResponseMessage_SelectedDisplayText struct { + SelectedDisplayText string `protobuf:"bytes,2,opt,name=selectedDisplayText,oneof"` } -func (x *MsgOpaqueData) GetLoc() string { - if x != nil && x.Loc != nil { - return *x.Loc - } - return "" -} +func (*ButtonsResponseMessage_SelectedDisplayText) isButtonsResponseMessage_Response() {} -type MsgRowOpaqueData struct { +type ButtonsMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - CurrentMsg *MsgOpaqueData `protobuf:"bytes,1,opt,name=currentMsg" json:"currentMsg,omitempty"` - QuotedMsg *MsgOpaqueData `protobuf:"bytes,2,opt,name=quotedMsg" json:"quotedMsg,omitempty"` + ContentText *string `protobuf:"bytes,6,opt,name=contentText" json:"contentText,omitempty"` + FooterText *string `protobuf:"bytes,7,opt,name=footerText" json:"footerText,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,8,opt,name=contextInfo" json:"contextInfo,omitempty"` + Buttons []*Button `protobuf:"bytes,9,rep,name=buttons" json:"buttons,omitempty"` + HeaderType *ButtonsMessage_ButtonsMessageHeaderType `protobuf:"varint,10,opt,name=headerType,enum=proto.ButtonsMessage_ButtonsMessageHeaderType" json:"headerType,omitempty"` + // Types that are assignable to Header: + // *ButtonsMessage_Text + // *ButtonsMessage_DocumentMessage + // *ButtonsMessage_ImageMessage + // *ButtonsMessage_VideoMessage + // *ButtonsMessage_LocationMessage + Header isButtonsMessage_Header `protobuf_oneof:"header"` } -func (x *MsgRowOpaqueData) Reset() { - *x = MsgRowOpaqueData{} +func (x *ButtonsMessage) Reset() { + *x = ButtonsMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8028,13 +8836,13 @@ func (x *MsgRowOpaqueData) Reset() { } } -func (x *MsgRowOpaqueData) String() string { +func (x *ButtonsMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRowOpaqueData) ProtoMessage() {} +func (*ButtonsMessage) ProtoMessage() {} -func (x *MsgRowOpaqueData) ProtoReflect() protoreflect.Message { +func (x *ButtonsMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8046,37 +8854,135 @@ func (x *MsgRowOpaqueData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MsgRowOpaqueData.ProtoReflect.Descriptor instead. -func (*MsgRowOpaqueData) Descriptor() ([]byte, []int) { +// Deprecated: Use ButtonsMessage.ProtoReflect.Descriptor instead. +func (*ButtonsMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{62} } -func (x *MsgRowOpaqueData) GetCurrentMsg() *MsgOpaqueData { +func (x *ButtonsMessage) GetContentText() string { + if x != nil && x.ContentText != nil { + return *x.ContentText + } + return "" +} + +func (x *ButtonsMessage) GetFooterText() string { + if x != nil && x.FooterText != nil { + return *x.FooterText + } + return "" +} + +func (x *ButtonsMessage) GetContextInfo() *ContextInfo { if x != nil { - return x.CurrentMsg + return x.ContextInfo } return nil } -func (x *MsgRowOpaqueData) GetQuotedMsg() *MsgOpaqueData { +func (x *ButtonsMessage) GetButtons() []*Button { if x != nil { - return x.QuotedMsg + return x.Buttons } return nil } -type GlobalSettings struct { +func (x *ButtonsMessage) GetHeaderType() ButtonsMessage_ButtonsMessageHeaderType { + if x != nil && x.HeaderType != nil { + return *x.HeaderType + } + return ButtonsMessage_UNKNOWN +} + +func (m *ButtonsMessage) GetHeader() isButtonsMessage_Header { + if m != nil { + return m.Header + } + return nil +} + +func (x *ButtonsMessage) GetText() string { + if x, ok := x.GetHeader().(*ButtonsMessage_Text); ok { + return x.Text + } + return "" +} + +func (x *ButtonsMessage) GetDocumentMessage() *DocumentMessage { + if x, ok := x.GetHeader().(*ButtonsMessage_DocumentMessage); ok { + return x.DocumentMessage + } + return nil +} + +func (x *ButtonsMessage) GetImageMessage() *ImageMessage { + if x, ok := x.GetHeader().(*ButtonsMessage_ImageMessage); ok { + return x.ImageMessage + } + return nil +} + +func (x *ButtonsMessage) GetVideoMessage() *VideoMessage { + if x, ok := x.GetHeader().(*ButtonsMessage_VideoMessage); ok { + return x.VideoMessage + } + return nil +} + +func (x *ButtonsMessage) GetLocationMessage() *LocationMessage { + if x, ok := x.GetHeader().(*ButtonsMessage_LocationMessage); ok { + return x.LocationMessage + } + return nil +} + +type isButtonsMessage_Header interface { + isButtonsMessage_Header() +} + +type ButtonsMessage_Text struct { + Text string `protobuf:"bytes,1,opt,name=text,oneof"` +} + +type ButtonsMessage_DocumentMessage struct { + DocumentMessage *DocumentMessage `protobuf:"bytes,2,opt,name=documentMessage,oneof"` +} + +type ButtonsMessage_ImageMessage struct { + ImageMessage *ImageMessage `protobuf:"bytes,3,opt,name=imageMessage,oneof"` +} + +type ButtonsMessage_VideoMessage struct { + VideoMessage *VideoMessage `protobuf:"bytes,4,opt,name=videoMessage,oneof"` +} + +type ButtonsMessage_LocationMessage struct { + LocationMessage *LocationMessage `protobuf:"bytes,5,opt,name=locationMessage,oneof"` +} + +func (*ButtonsMessage_Text) isButtonsMessage_Header() {} + +func (*ButtonsMessage_DocumentMessage) isButtonsMessage_Header() {} + +func (*ButtonsMessage_ImageMessage) isButtonsMessage_Header() {} + +func (*ButtonsMessage_VideoMessage) isButtonsMessage_Header() {} + +func (*ButtonsMessage_LocationMessage) isButtonsMessage_Header() {} + +type Button struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - LightThemeWallpaper *WallpaperSettings `protobuf:"bytes,1,opt,name=lightThemeWallpaper" json:"lightThemeWallpaper,omitempty"` - MediaVisibility *MediaVisibility `protobuf:"varint,2,opt,name=mediaVisibility,enum=proto.MediaVisibility" json:"mediaVisibility,omitempty"` - DarkThemeWallpaper *WallpaperSettings `protobuf:"bytes,3,opt,name=darkThemeWallpaper" json:"darkThemeWallpaper,omitempty"` + ButtonId *string `protobuf:"bytes,1,opt,name=buttonId" json:"buttonId,omitempty"` + ButtonText *ButtonText `protobuf:"bytes,2,opt,name=buttonText" json:"buttonText,omitempty"` + Type *Button_ButtonType `protobuf:"varint,3,opt,name=type,enum=proto.Button_ButtonType" json:"type,omitempty"` + NativeFlowInfo *NativeFlowInfo `protobuf:"bytes,4,opt,name=nativeFlowInfo" json:"nativeFlowInfo,omitempty"` } -func (x *GlobalSettings) Reset() { - *x = GlobalSettings{} +func (x *Button) Reset() { + *x = Button{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8084,13 +8990,13 @@ func (x *GlobalSettings) Reset() { } } -func (x *GlobalSettings) String() string { +func (x *Button) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GlobalSettings) ProtoMessage() {} +func (*Button) ProtoMessage() {} -func (x *GlobalSettings) ProtoReflect() protoreflect.Message { +func (x *Button) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8102,43 +9008,50 @@ func (x *GlobalSettings) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GlobalSettings.ProtoReflect.Descriptor instead. -func (*GlobalSettings) Descriptor() ([]byte, []int) { +// Deprecated: Use Button.ProtoReflect.Descriptor instead. +func (*Button) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{63} } -func (x *GlobalSettings) GetLightThemeWallpaper() *WallpaperSettings { +func (x *Button) GetButtonId() string { + if x != nil && x.ButtonId != nil { + return *x.ButtonId + } + return "" +} + +func (x *Button) GetButtonText() *ButtonText { if x != nil { - return x.LightThemeWallpaper + return x.ButtonText } return nil } -func (x *GlobalSettings) GetMediaVisibility() MediaVisibility { - if x != nil && x.MediaVisibility != nil { - return *x.MediaVisibility +func (x *Button) GetType() Button_ButtonType { + if x != nil && x.Type != nil { + return *x.Type } - return MediaVisibility_DEFAULT + return Button_UNKNOWN } -func (x *GlobalSettings) GetDarkThemeWallpaper() *WallpaperSettings { +func (x *Button) GetNativeFlowInfo() *NativeFlowInfo { if x != nil { - return x.DarkThemeWallpaper + return x.NativeFlowInfo } return nil } -type WallpaperSettings struct { +type NativeFlowInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Filename *string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` - Opacity *uint32 `protobuf:"varint,2,opt,name=opacity" json:"opacity,omitempty"` + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + ParamsJson *string `protobuf:"bytes,2,opt,name=paramsJson" json:"paramsJson,omitempty"` } -func (x *WallpaperSettings) Reset() { - *x = WallpaperSettings{} +func (x *NativeFlowInfo) Reset() { + *x = NativeFlowInfo{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8146,13 +9059,13 @@ func (x *WallpaperSettings) Reset() { } } -func (x *WallpaperSettings) String() string { +func (x *NativeFlowInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WallpaperSettings) ProtoMessage() {} +func (*NativeFlowInfo) ProtoMessage() {} -func (x *WallpaperSettings) ProtoReflect() protoreflect.Message { +func (x *NativeFlowInfo) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8164,36 +9077,35 @@ func (x *WallpaperSettings) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WallpaperSettings.ProtoReflect.Descriptor instead. -func (*WallpaperSettings) Descriptor() ([]byte, []int) { +// Deprecated: Use NativeFlowInfo.ProtoReflect.Descriptor instead. +func (*NativeFlowInfo) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{64} } -func (x *WallpaperSettings) GetFilename() string { - if x != nil && x.Filename != nil { - return *x.Filename +func (x *NativeFlowInfo) GetName() string { + if x != nil && x.Name != nil { + return *x.Name } return "" } -func (x *WallpaperSettings) GetOpacity() uint32 { - if x != nil && x.Opacity != nil { - return *x.Opacity +func (x *NativeFlowInfo) GetParamsJson() string { + if x != nil && x.ParamsJson != nil { + return *x.ParamsJson } - return 0 + return "" } -type GroupParticipant struct { +type ButtonText struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserJid *string `protobuf:"bytes,1,req,name=userJid" json:"userJid,omitempty"` - Rank *GroupParticipant_GroupParticipantRank `protobuf:"varint,2,opt,name=rank,enum=proto.GroupParticipant_GroupParticipantRank" json:"rank,omitempty"` + DisplayText *string `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` } -func (x *GroupParticipant) Reset() { - *x = GroupParticipant{} +func (x *ButtonText) Reset() { + *x = ButtonText{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8201,13 +9113,13 @@ func (x *GroupParticipant) Reset() { } } -func (x *GroupParticipant) String() string { +func (x *ButtonText) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GroupParticipant) ProtoMessage() {} +func (*ButtonText) ProtoMessage() {} -func (x *GroupParticipant) ProtoReflect() protoreflect.Message { +func (x *ButtonText) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8219,36 +9131,40 @@ func (x *GroupParticipant) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GroupParticipant.ProtoReflect.Descriptor instead. -func (*GroupParticipant) Descriptor() ([]byte, []int) { +// Deprecated: Use ButtonText.ProtoReflect.Descriptor instead. +func (*ButtonText) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{65} } -func (x *GroupParticipant) GetUserJid() string { - if x != nil && x.UserJid != nil { - return *x.UserJid +func (x *ButtonText) GetDisplayText() string { + if x != nil && x.DisplayText != nil { + return *x.DisplayText } return "" } -func (x *GroupParticipant) GetRank() GroupParticipant_GroupParticipantRank { - if x != nil && x.Rank != nil { - return *x.Rank - } - return GroupParticipant_REGULAR -} - -type Pushname struct { +type AudioMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` - Pushname *string `protobuf:"bytes,2,opt,name=pushname" json:"pushname,omitempty"` + Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` + Mimetype *string `protobuf:"bytes,2,opt,name=mimetype" json:"mimetype,omitempty"` + FileSha256 []byte `protobuf:"bytes,3,opt,name=fileSha256" json:"fileSha256,omitempty"` + FileLength *uint64 `protobuf:"varint,4,opt,name=fileLength" json:"fileLength,omitempty"` + Seconds *uint32 `protobuf:"varint,5,opt,name=seconds" json:"seconds,omitempty"` + Ptt *bool `protobuf:"varint,6,opt,name=ptt" json:"ptt,omitempty"` + MediaKey []byte `protobuf:"bytes,7,opt,name=mediaKey" json:"mediaKey,omitempty"` + FileEncSha256 []byte `protobuf:"bytes,8,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` + DirectPath *string `protobuf:"bytes,9,opt,name=directPath" json:"directPath,omitempty"` + MediaKeyTimestamp *int64 `protobuf:"varint,10,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` + StreamingSidecar []byte `protobuf:"bytes,18,opt,name=streamingSidecar" json:"streamingSidecar,omitempty"` + Waveform []byte `protobuf:"bytes,19,opt,name=waveform" json:"waveform,omitempty"` } -func (x *Pushname) Reset() { - *x = Pushname{} +func (x *AudioMessage) Reset() { + *x = AudioMessage{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8256,13 +9172,13 @@ func (x *Pushname) Reset() { } } -func (x *Pushname) String() string { +func (x *AudioMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Pushname) ProtoMessage() {} +func (*AudioMessage) ProtoMessage() {} -func (x *Pushname) ProtoReflect() protoreflect.Message { +func (x *AudioMessage) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8274,36 +9190,113 @@ func (x *Pushname) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Pushname.ProtoReflect.Descriptor instead. -func (*Pushname) Descriptor() ([]byte, []int) { +// Deprecated: Use AudioMessage.ProtoReflect.Descriptor instead. +func (*AudioMessage) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{66} } -func (x *Pushname) GetId() string { - if x != nil && x.Id != nil { - return *x.Id +func (x *AudioMessage) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url } return "" } -func (x *Pushname) GetPushname() string { - if x != nil && x.Pushname != nil { - return *x.Pushname +func (x *AudioMessage) GetMimetype() string { + if x != nil && x.Mimetype != nil { + return *x.Mimetype } return "" } -type HistorySyncMsg struct { +func (x *AudioMessage) GetFileSha256() []byte { + if x != nil { + return x.FileSha256 + } + return nil +} + +func (x *AudioMessage) GetFileLength() uint64 { + if x != nil && x.FileLength != nil { + return *x.FileLength + } + return 0 +} + +func (x *AudioMessage) GetSeconds() uint32 { + if x != nil && x.Seconds != nil { + return *x.Seconds + } + return 0 +} + +func (x *AudioMessage) GetPtt() bool { + if x != nil && x.Ptt != nil { + return *x.Ptt + } + return false +} + +func (x *AudioMessage) GetMediaKey() []byte { + if x != nil { + return x.MediaKey + } + return nil +} + +func (x *AudioMessage) GetFileEncSha256() []byte { + if x != nil { + return x.FileEncSha256 + } + return nil +} + +func (x *AudioMessage) GetDirectPath() string { + if x != nil && x.DirectPath != nil { + return *x.DirectPath + } + return "" +} + +func (x *AudioMessage) GetMediaKeyTimestamp() int64 { + if x != nil && x.MediaKeyTimestamp != nil { + return *x.MediaKeyTimestamp + } + return 0 +} + +func (x *AudioMessage) GetContextInfo() *ContextInfo { + if x != nil { + return x.ContextInfo + } + return nil +} + +func (x *AudioMessage) GetStreamingSidecar() []byte { + if x != nil { + return x.StreamingSidecar + } + return nil +} + +func (x *AudioMessage) GetWaveform() []byte { + if x != nil { + return x.Waveform + } + return nil +} + +type AppStateSyncKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Message *WebMessageInfo `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` - MsgOrderId *uint64 `protobuf:"varint,2,opt,name=msgOrderId" json:"msgOrderId,omitempty"` + KeyId *AppStateSyncKeyId `protobuf:"bytes,1,opt,name=keyId" json:"keyId,omitempty"` + KeyData *AppStateSyncKeyData `protobuf:"bytes,2,opt,name=keyData" json:"keyData,omitempty"` } -func (x *HistorySyncMsg) Reset() { - *x = HistorySyncMsg{} +func (x *AppStateSyncKey) Reset() { + *x = AppStateSyncKey{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8311,13 +9304,13 @@ func (x *HistorySyncMsg) Reset() { } } -func (x *HistorySyncMsg) String() string { +func (x *AppStateSyncKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HistorySyncMsg) ProtoMessage() {} +func (*AppStateSyncKey) ProtoMessage() {} -func (x *HistorySyncMsg) ProtoReflect() protoreflect.Message { +func (x *AppStateSyncKey) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8329,63 +9322,35 @@ func (x *HistorySyncMsg) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HistorySyncMsg.ProtoReflect.Descriptor instead. -func (*HistorySyncMsg) Descriptor() ([]byte, []int) { +// Deprecated: Use AppStateSyncKey.ProtoReflect.Descriptor instead. +func (*AppStateSyncKey) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{67} } -func (x *HistorySyncMsg) GetMessage() *WebMessageInfo { +func (x *AppStateSyncKey) GetKeyId() *AppStateSyncKeyId { if x != nil { - return x.Message + return x.KeyId } return nil } -func (x *HistorySyncMsg) GetMsgOrderId() uint64 { - if x != nil && x.MsgOrderId != nil { - return *x.MsgOrderId +func (x *AppStateSyncKey) GetKeyData() *AppStateSyncKeyData { + if x != nil { + return x.KeyData } - return 0 + return nil } -type Conversation struct { +type AppStateSyncKeyShare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` - Messages []*HistorySyncMsg `protobuf:"bytes,2,rep,name=messages" json:"messages,omitempty"` - NewJid *string `protobuf:"bytes,3,opt,name=newJid" json:"newJid,omitempty"` - OldJid *string `protobuf:"bytes,4,opt,name=oldJid" json:"oldJid,omitempty"` - LastMsgTimestamp *uint64 `protobuf:"varint,5,opt,name=lastMsgTimestamp" json:"lastMsgTimestamp,omitempty"` - UnreadCount *uint32 `protobuf:"varint,6,opt,name=unreadCount" json:"unreadCount,omitempty"` - ReadOnly *bool `protobuf:"varint,7,opt,name=readOnly" json:"readOnly,omitempty"` - EndOfHistoryTransfer *bool `protobuf:"varint,8,opt,name=endOfHistoryTransfer" json:"endOfHistoryTransfer,omitempty"` - EphemeralExpiration *uint32 `protobuf:"varint,9,opt,name=ephemeralExpiration" json:"ephemeralExpiration,omitempty"` - EphemeralSettingTimestamp *int64 `protobuf:"varint,10,opt,name=ephemeralSettingTimestamp" json:"ephemeralSettingTimestamp,omitempty"` - EndOfHistoryTransferType *Conversation_ConversationEndOfHistoryTransferType `protobuf:"varint,11,opt,name=endOfHistoryTransferType,enum=proto.Conversation_ConversationEndOfHistoryTransferType" json:"endOfHistoryTransferType,omitempty"` - ConversationTimestamp *uint64 `protobuf:"varint,12,opt,name=conversationTimestamp" json:"conversationTimestamp,omitempty"` - Name *string `protobuf:"bytes,13,opt,name=name" json:"name,omitempty"` - PHash *string `protobuf:"bytes,14,opt,name=pHash" json:"pHash,omitempty"` - NotSpam *bool `protobuf:"varint,15,opt,name=notSpam" json:"notSpam,omitempty"` - Archived *bool `protobuf:"varint,16,opt,name=archived" json:"archived,omitempty"` - DisappearingMode *DisappearingMode `protobuf:"bytes,17,opt,name=disappearingMode" json:"disappearingMode,omitempty"` - UnreadMentionCount *uint32 `protobuf:"varint,18,opt,name=unreadMentionCount" json:"unreadMentionCount,omitempty"` - MarkedAsUnread *bool `protobuf:"varint,19,opt,name=markedAsUnread" json:"markedAsUnread,omitempty"` - Participant []*GroupParticipant `protobuf:"bytes,20,rep,name=participant" json:"participant,omitempty"` - TcToken []byte `protobuf:"bytes,21,opt,name=tcToken" json:"tcToken,omitempty"` - TcTokenTimestamp *uint64 `protobuf:"varint,22,opt,name=tcTokenTimestamp" json:"tcTokenTimestamp,omitempty"` - ContactPrimaryIdentityKey []byte `protobuf:"bytes,23,opt,name=contactPrimaryIdentityKey" json:"contactPrimaryIdentityKey,omitempty"` - Pinned *uint32 `protobuf:"varint,24,opt,name=pinned" json:"pinned,omitempty"` - MuteEndTime *uint64 `protobuf:"varint,25,opt,name=muteEndTime" json:"muteEndTime,omitempty"` - Wallpaper *WallpaperSettings `protobuf:"bytes,26,opt,name=wallpaper" json:"wallpaper,omitempty"` - MediaVisibility *MediaVisibility `protobuf:"varint,27,opt,name=mediaVisibility,enum=proto.MediaVisibility" json:"mediaVisibility,omitempty"` - TcTokenSenderTimestamp *uint64 `protobuf:"varint,28,opt,name=tcTokenSenderTimestamp" json:"tcTokenSenderTimestamp,omitempty"` - Suspended *bool `protobuf:"varint,29,opt,name=suspended" json:"suspended,omitempty"` + Keys []*AppStateSyncKey `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"` } -func (x *Conversation) Reset() { - *x = Conversation{} +func (x *AppStateSyncKeyShare) Reset() { + *x = AppStateSyncKeyShare{} if protoimpl.UnsafeEnabled { mi := &file_binary_proto_def_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8393,13 +9358,13 @@ func (x *Conversation) Reset() { } } -func (x *Conversation) String() string { +func (x *AppStateSyncKeyShare) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Conversation) ProtoMessage() {} +func (*AppStateSyncKeyShare) ProtoMessage() {} -func (x *Conversation) ProtoReflect() protoreflect.Message { +func (x *AppStateSyncKeyShare) ProtoReflect() protoreflect.Message { mi := &file_binary_proto_def_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8411,247 +9376,202 @@ func (x *Conversation) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Conversation.ProtoReflect.Descriptor instead. -func (*Conversation) Descriptor() ([]byte, []int) { +// Deprecated: Use AppStateSyncKeyShare.ProtoReflect.Descriptor instead. +func (*AppStateSyncKeyShare) Descriptor() ([]byte, []int) { return file_binary_proto_def_proto_rawDescGZIP(), []int{68} } -func (x *Conversation) GetId() string { - if x != nil && x.Id != nil { - return *x.Id - } - return "" -} - -func (x *Conversation) GetMessages() []*HistorySyncMsg { +func (x *AppStateSyncKeyShare) GetKeys() []*AppStateSyncKey { if x != nil { - return x.Messages + return x.Keys } return nil } -func (x *Conversation) GetNewJid() string { - if x != nil && x.NewJid != nil { - return *x.NewJid - } - return "" -} +type AppStateSyncKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *Conversation) GetOldJid() string { - if x != nil && x.OldJid != nil { - return *x.OldJid - } - return "" + KeyIds []*AppStateSyncKeyId `protobuf:"bytes,1,rep,name=keyIds" json:"keyIds,omitempty"` } -func (x *Conversation) GetLastMsgTimestamp() uint64 { - if x != nil && x.LastMsgTimestamp != nil { - return *x.LastMsgTimestamp +func (x *AppStateSyncKeyRequest) Reset() { + *x = AppStateSyncKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (x *Conversation) GetUnreadCount() uint32 { - if x != nil && x.UnreadCount != nil { - return *x.UnreadCount - } - return 0 +func (x *AppStateSyncKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *Conversation) GetReadOnly() bool { - if x != nil && x.ReadOnly != nil { - return *x.ReadOnly - } - return false -} +func (*AppStateSyncKeyRequest) ProtoMessage() {} -func (x *Conversation) GetEndOfHistoryTransfer() bool { - if x != nil && x.EndOfHistoryTransfer != nil { - return *x.EndOfHistoryTransfer +func (x *AppStateSyncKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[69] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false + return mi.MessageOf(x) } -func (x *Conversation) GetEphemeralExpiration() uint32 { - if x != nil && x.EphemeralExpiration != nil { - return *x.EphemeralExpiration - } - return 0 +// Deprecated: Use AppStateSyncKeyRequest.ProtoReflect.Descriptor instead. +func (*AppStateSyncKeyRequest) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{69} } -func (x *Conversation) GetEphemeralSettingTimestamp() int64 { - if x != nil && x.EphemeralSettingTimestamp != nil { - return *x.EphemeralSettingTimestamp +func (x *AppStateSyncKeyRequest) GetKeyIds() []*AppStateSyncKeyId { + if x != nil { + return x.KeyIds } - return 0 + return nil } -func (x *Conversation) GetEndOfHistoryTransferType() Conversation_ConversationEndOfHistoryTransferType { - if x != nil && x.EndOfHistoryTransferType != nil { - return *x.EndOfHistoryTransferType - } - return Conversation_COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY -} +type AppStateSyncKeyId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *Conversation) GetConversationTimestamp() uint64 { - if x != nil && x.ConversationTimestamp != nil { - return *x.ConversationTimestamp - } - return 0 + KeyId []byte `protobuf:"bytes,1,opt,name=keyId" json:"keyId,omitempty"` } -func (x *Conversation) GetName() string { - if x != nil && x.Name != nil { - return *x.Name +func (x *AppStateSyncKeyId) Reset() { + *x = AppStateSyncKeyId{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *Conversation) GetPHash() string { - if x != nil && x.PHash != nil { - return *x.PHash - } - return "" +func (x *AppStateSyncKeyId) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *Conversation) GetNotSpam() bool { - if x != nil && x.NotSpam != nil { - return *x.NotSpam +func (*AppStateSyncKeyId) ProtoMessage() {} + +func (x *AppStateSyncKeyId) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[70] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false + return mi.MessageOf(x) } -func (x *Conversation) GetArchived() bool { - if x != nil && x.Archived != nil { - return *x.Archived - } - return false +// Deprecated: Use AppStateSyncKeyId.ProtoReflect.Descriptor instead. +func (*AppStateSyncKeyId) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{70} } -func (x *Conversation) GetDisappearingMode() *DisappearingMode { +func (x *AppStateSyncKeyId) GetKeyId() []byte { if x != nil { - return x.DisappearingMode + return x.KeyId } return nil } -func (x *Conversation) GetUnreadMentionCount() uint32 { - if x != nil && x.UnreadMentionCount != nil { - return *x.UnreadMentionCount - } - return 0 -} +type AppStateSyncKeyFingerprint struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *Conversation) GetMarkedAsUnread() bool { - if x != nil && x.MarkedAsUnread != nil { - return *x.MarkedAsUnread - } - return false + RawId *uint32 `protobuf:"varint,1,opt,name=rawId" json:"rawId,omitempty"` + CurrentIndex *uint32 `protobuf:"varint,2,opt,name=currentIndex" json:"currentIndex,omitempty"` + DeviceIndexes []uint32 `protobuf:"varint,3,rep,packed,name=deviceIndexes" json:"deviceIndexes,omitempty"` } -func (x *Conversation) GetParticipant() []*GroupParticipant { - if x != nil { - return x.Participant +func (x *AppStateSyncKeyFingerprint) Reset() { + *x = AppStateSyncKeyFingerprint{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *Conversation) GetTcToken() []byte { - if x != nil { - return x.TcToken - } - return nil +func (x *AppStateSyncKeyFingerprint) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *Conversation) GetTcTokenTimestamp() uint64 { - if x != nil && x.TcTokenTimestamp != nil { - return *x.TcTokenTimestamp +func (*AppStateSyncKeyFingerprint) ProtoMessage() {} + +func (x *AppStateSyncKeyFingerprint) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[71] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *Conversation) GetContactPrimaryIdentityKey() []byte { - if x != nil { - return x.ContactPrimaryIdentityKey - } - return nil +// Deprecated: Use AppStateSyncKeyFingerprint.ProtoReflect.Descriptor instead. +func (*AppStateSyncKeyFingerprint) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{71} } -func (x *Conversation) GetPinned() uint32 { - if x != nil && x.Pinned != nil { - return *x.Pinned +func (x *AppStateSyncKeyFingerprint) GetRawId() uint32 { + if x != nil && x.RawId != nil { + return *x.RawId } return 0 } -func (x *Conversation) GetMuteEndTime() uint64 { - if x != nil && x.MuteEndTime != nil { - return *x.MuteEndTime +func (x *AppStateSyncKeyFingerprint) GetCurrentIndex() uint32 { + if x != nil && x.CurrentIndex != nil { + return *x.CurrentIndex } return 0 } -func (x *Conversation) GetWallpaper() *WallpaperSettings { +func (x *AppStateSyncKeyFingerprint) GetDeviceIndexes() []uint32 { if x != nil { - return x.Wallpaper + return x.DeviceIndexes } return nil } -func (x *Conversation) GetMediaVisibility() MediaVisibility { - if x != nil && x.MediaVisibility != nil { - return *x.MediaVisibility - } - return MediaVisibility_DEFAULT -} - -func (x *Conversation) GetTcTokenSenderTimestamp() uint64 { - if x != nil && x.TcTokenSenderTimestamp != nil { - return *x.TcTokenSenderTimestamp - } - return 0 -} - -func (x *Conversation) GetSuspended() bool { - if x != nil && x.Suspended != nil { - return *x.Suspended - } - return false -} - -type HistorySync struct { +type AppStateSyncKeyData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - SyncType *HistorySync_HistorySyncHistorySyncType `protobuf:"varint,1,req,name=syncType,enum=proto.HistorySync_HistorySyncHistorySyncType" json:"syncType,omitempty"` - Conversations []*Conversation `protobuf:"bytes,2,rep,name=conversations" json:"conversations,omitempty"` - StatusV3Messages []*WebMessageInfo `protobuf:"bytes,3,rep,name=statusV3Messages" json:"statusV3Messages,omitempty"` - ChunkOrder *uint32 `protobuf:"varint,5,opt,name=chunkOrder" json:"chunkOrder,omitempty"` - Progress *uint32 `protobuf:"varint,6,opt,name=progress" json:"progress,omitempty"` - Pushnames []*Pushname `protobuf:"bytes,7,rep,name=pushnames" json:"pushnames,omitempty"` - GlobalSettings *GlobalSettings `protobuf:"bytes,8,opt,name=globalSettings" json:"globalSettings,omitempty"` - ThreadIdUserSecret []byte `protobuf:"bytes,9,opt,name=threadIdUserSecret" json:"threadIdUserSecret,omitempty"` - ThreadDsTimeframeOffset *uint32 `protobuf:"varint,10,opt,name=threadDsTimeframeOffset" json:"threadDsTimeframeOffset,omitempty"` + KeyData []byte `protobuf:"bytes,1,opt,name=keyData" json:"keyData,omitempty"` + Fingerprint *AppStateSyncKeyFingerprint `protobuf:"bytes,2,opt,name=fingerprint" json:"fingerprint,omitempty"` + Timestamp *int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` } -func (x *HistorySync) Reset() { - *x = HistorySync{} +func (x *AppStateSyncKeyData) Reset() { + *x = AppStateSyncKeyData{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[69] + mi := &file_binary_proto_def_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HistorySync) String() string { +func (x *AppStateSyncKeyData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HistorySync) ProtoMessage() {} +func (*AppStateSyncKeyData) ProtoMessage() {} -func (x *HistorySync) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[69] +func (x *AppStateSyncKeyData) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8662,100 +9582,114 @@ func (x *HistorySync) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HistorySync.ProtoReflect.Descriptor instead. -func (*HistorySync) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{69} -} - -func (x *HistorySync) GetSyncType() HistorySync_HistorySyncHistorySyncType { - if x != nil && x.SyncType != nil { - return *x.SyncType - } - return HistorySync_INITIAL_BOOTSTRAP +// Deprecated: Use AppStateSyncKeyData.ProtoReflect.Descriptor instead. +func (*AppStateSyncKeyData) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{72} } -func (x *HistorySync) GetConversations() []*Conversation { +func (x *AppStateSyncKeyData) GetKeyData() []byte { if x != nil { - return x.Conversations + return x.KeyData } return nil } -func (x *HistorySync) GetStatusV3Messages() []*WebMessageInfo { +func (x *AppStateSyncKeyData) GetFingerprint() *AppStateSyncKeyFingerprint { if x != nil { - return x.StatusV3Messages + return x.Fingerprint } return nil } -func (x *HistorySync) GetChunkOrder() uint32 { - if x != nil && x.ChunkOrder != nil { - return *x.ChunkOrder +func (x *AppStateSyncKeyData) GetTimestamp() int64 { + if x != nil && x.Timestamp != nil { + return *x.Timestamp } return 0 } -func (x *HistorySync) GetProgress() uint32 { - if x != nil && x.Progress != nil { - return *x.Progress - } - return 0 +type AppStateFatalExceptionNotification struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CollectionNames []string `protobuf:"bytes,1,rep,name=collectionNames" json:"collectionNames,omitempty"` + Timestamp *int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` } -func (x *HistorySync) GetPushnames() []*Pushname { - if x != nil { - return x.Pushnames +func (x *AppStateFatalExceptionNotification) Reset() { + *x = AppStateFatalExceptionNotification{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *HistorySync) GetGlobalSettings() *GlobalSettings { - if x != nil { - return x.GlobalSettings +func (x *AppStateFatalExceptionNotification) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppStateFatalExceptionNotification) ProtoMessage() {} + +func (x *AppStateFatalExceptionNotification) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[73] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *HistorySync) GetThreadIdUserSecret() []byte { +// Deprecated: Use AppStateFatalExceptionNotification.ProtoReflect.Descriptor instead. +func (*AppStateFatalExceptionNotification) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{73} +} + +func (x *AppStateFatalExceptionNotification) GetCollectionNames() []string { if x != nil { - return x.ThreadIdUserSecret + return x.CollectionNames } return nil } -func (x *HistorySync) GetThreadDsTimeframeOffset() uint32 { - if x != nil && x.ThreadDsTimeframeOffset != nil { - return *x.ThreadDsTimeframeOffset +func (x *AppStateFatalExceptionNotification) GetTimestamp() int64 { + if x != nil && x.Timestamp != nil { + return *x.Timestamp } return 0 } -type EphemeralSetting struct { +type Location struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Duration *int32 `protobuf:"fixed32,1,opt,name=duration" json:"duration,omitempty"` - Timestamp *int64 `protobuf:"fixed64,2,opt,name=timestamp" json:"timestamp,omitempty"` + DegreesLatitude *float64 `protobuf:"fixed64,1,opt,name=degreesLatitude" json:"degreesLatitude,omitempty"` + DegreesLongitude *float64 `protobuf:"fixed64,2,opt,name=degreesLongitude" json:"degreesLongitude,omitempty"` + Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` } -func (x *EphemeralSetting) Reset() { - *x = EphemeralSetting{} +func (x *Location) Reset() { + *x = Location{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[70] + mi := &file_binary_proto_def_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EphemeralSetting) String() string { +func (x *Location) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EphemeralSetting) ProtoMessage() {} +func (*Location) ProtoMessage() {} -func (x *EphemeralSetting) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[70] +func (x *Location) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8766,25 +9700,32 @@ func (x *EphemeralSetting) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EphemeralSetting.ProtoReflect.Descriptor instead. -func (*EphemeralSetting) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{70} +// Deprecated: Use Location.ProtoReflect.Descriptor instead. +func (*Location) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{74} } -func (x *EphemeralSetting) GetDuration() int32 { - if x != nil && x.Duration != nil { - return *x.Duration +func (x *Location) GetDegreesLatitude() float64 { + if x != nil && x.DegreesLatitude != nil { + return *x.DegreesLatitude } return 0 } -func (x *EphemeralSetting) GetTimestamp() int64 { - if x != nil && x.Timestamp != nil { - return *x.Timestamp +func (x *Location) GetDegreesLongitude() float64 { + if x != nil && x.DegreesLongitude != nil { + return *x.DegreesLongitude } return 0 } +func (x *Location) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + type InteractiveAnnotation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -8799,7 +9740,7 @@ type InteractiveAnnotation struct { func (x *InteractiveAnnotation) Reset() { *x = InteractiveAnnotation{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[71] + mi := &file_binary_proto_def_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8812,7 +9753,7 @@ func (x *InteractiveAnnotation) String() string { func (*InteractiveAnnotation) ProtoMessage() {} func (x *InteractiveAnnotation) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[71] + mi := &file_binary_proto_def_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8825,7 +9766,7 @@ func (x *InteractiveAnnotation) ProtoReflect() protoreflect.Message { // Deprecated: Use InteractiveAnnotation.ProtoReflect.Descriptor instead. func (*InteractiveAnnotation) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{71} + return file_binary_proto_def_proto_rawDescGZIP(), []int{75} } func (x *InteractiveAnnotation) GetPolygonVertices() []*Point { @@ -8859,36 +9800,36 @@ type InteractiveAnnotation_Location struct { func (*InteractiveAnnotation_Location) isInteractiveAnnotation_Action() {} -type DeviceListMetadata struct { +type HydratedTemplateButton struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - SenderKeyHash []byte `protobuf:"bytes,1,opt,name=senderKeyHash" json:"senderKeyHash,omitempty"` - SenderTimestamp *uint64 `protobuf:"varint,2,opt,name=senderTimestamp" json:"senderTimestamp,omitempty"` - SenderKeyIndexes []uint32 `protobuf:"varint,3,rep,packed,name=senderKeyIndexes" json:"senderKeyIndexes,omitempty"` - RecipientKeyHash []byte `protobuf:"bytes,8,opt,name=recipientKeyHash" json:"recipientKeyHash,omitempty"` - RecipientTimestamp *uint64 `protobuf:"varint,9,opt,name=recipientTimestamp" json:"recipientTimestamp,omitempty"` - RecipientKeyIndexes []uint32 `protobuf:"varint,10,rep,packed,name=recipientKeyIndexes" json:"recipientKeyIndexes,omitempty"` + Index *uint32 `protobuf:"varint,4,opt,name=index" json:"index,omitempty"` + // Types that are assignable to HydratedButton: + // *HydratedTemplateButton_QuickReplyButton + // *HydratedTemplateButton_UrlButton + // *HydratedTemplateButton_CallButton + HydratedButton isHydratedTemplateButton_HydratedButton `protobuf_oneof:"hydratedButton"` } -func (x *DeviceListMetadata) Reset() { - *x = DeviceListMetadata{} +func (x *HydratedTemplateButton) Reset() { + *x = HydratedTemplateButton{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[72] + mi := &file_binary_proto_def_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DeviceListMetadata) String() string { +func (x *HydratedTemplateButton) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeviceListMetadata) ProtoMessage() {} +func (*HydratedTemplateButton) ProtoMessage() {} -func (x *DeviceListMetadata) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[72] +func (x *HydratedTemplateButton) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8899,79 +9840,94 @@ func (x *DeviceListMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeviceListMetadata.ProtoReflect.Descriptor instead. -func (*DeviceListMetadata) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{72} -} - -func (x *DeviceListMetadata) GetSenderKeyHash() []byte { - if x != nil { - return x.SenderKeyHash - } - return nil +// Deprecated: Use HydratedTemplateButton.ProtoReflect.Descriptor instead. +func (*HydratedTemplateButton) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{76} } -func (x *DeviceListMetadata) GetSenderTimestamp() uint64 { - if x != nil && x.SenderTimestamp != nil { - return *x.SenderTimestamp +func (x *HydratedTemplateButton) GetIndex() uint32 { + if x != nil && x.Index != nil { + return *x.Index } return 0 } -func (x *DeviceListMetadata) GetSenderKeyIndexes() []uint32 { - if x != nil { - return x.SenderKeyIndexes +func (m *HydratedTemplateButton) GetHydratedButton() isHydratedTemplateButton_HydratedButton { + if m != nil { + return m.HydratedButton } return nil } -func (x *DeviceListMetadata) GetRecipientKeyHash() []byte { - if x != nil { - return x.RecipientKeyHash +func (x *HydratedTemplateButton) GetQuickReplyButton() *HydratedQuickReplyButton { + if x, ok := x.GetHydratedButton().(*HydratedTemplateButton_QuickReplyButton); ok { + return x.QuickReplyButton } return nil } -func (x *DeviceListMetadata) GetRecipientTimestamp() uint64 { - if x != nil && x.RecipientTimestamp != nil { - return *x.RecipientTimestamp +func (x *HydratedTemplateButton) GetUrlButton() *HydratedURLButton { + if x, ok := x.GetHydratedButton().(*HydratedTemplateButton_UrlButton); ok { + return x.UrlButton } - return 0 + return nil } -func (x *DeviceListMetadata) GetRecipientKeyIndexes() []uint32 { - if x != nil { - return x.RecipientKeyIndexes +func (x *HydratedTemplateButton) GetCallButton() *HydratedCallButton { + if x, ok := x.GetHydratedButton().(*HydratedTemplateButton_CallButton); ok { + return x.CallButton } return nil } -type MessageContextInfo struct { +type isHydratedTemplateButton_HydratedButton interface { + isHydratedTemplateButton_HydratedButton() +} + +type HydratedTemplateButton_QuickReplyButton struct { + QuickReplyButton *HydratedQuickReplyButton `protobuf:"bytes,1,opt,name=quickReplyButton,oneof"` +} + +type HydratedTemplateButton_UrlButton struct { + UrlButton *HydratedURLButton `protobuf:"bytes,2,opt,name=urlButton,oneof"` +} + +type HydratedTemplateButton_CallButton struct { + CallButton *HydratedCallButton `protobuf:"bytes,3,opt,name=callButton,oneof"` +} + +func (*HydratedTemplateButton_QuickReplyButton) isHydratedTemplateButton_HydratedButton() {} + +func (*HydratedTemplateButton_UrlButton) isHydratedTemplateButton_HydratedButton() {} + +func (*HydratedTemplateButton_CallButton) isHydratedTemplateButton_HydratedButton() {} + +type HydratedURLButton struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DeviceListMetadata *DeviceListMetadata `protobuf:"bytes,1,opt,name=deviceListMetadata" json:"deviceListMetadata,omitempty"` - DeviceListMetadataVersion *int32 `protobuf:"varint,2,opt,name=deviceListMetadataVersion" json:"deviceListMetadataVersion,omitempty"` + DisplayText *string `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` + Url *string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` } -func (x *MessageContextInfo) Reset() { - *x = MessageContextInfo{} +func (x *HydratedURLButton) Reset() { + *x = HydratedURLButton{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[73] + mi := &file_binary_proto_def_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MessageContextInfo) String() string { +func (x *HydratedURLButton) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MessageContextInfo) ProtoMessage() {} +func (*HydratedURLButton) ProtoMessage() {} -func (x *MessageContextInfo) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[73] +func (x *HydratedURLButton) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8982,53 +9938,51 @@ func (x *MessageContextInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MessageContextInfo.ProtoReflect.Descriptor instead. -func (*MessageContextInfo) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{73} +// Deprecated: Use HydratedURLButton.ProtoReflect.Descriptor instead. +func (*HydratedURLButton) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{77} } -func (x *MessageContextInfo) GetDeviceListMetadata() *DeviceListMetadata { - if x != nil { - return x.DeviceListMetadata +func (x *HydratedURLButton) GetDisplayText() string { + if x != nil && x.DisplayText != nil { + return *x.DisplayText } - return nil + return "" } -func (x *MessageContextInfo) GetDeviceListMetadataVersion() int32 { - if x != nil && x.DeviceListMetadataVersion != nil { - return *x.DeviceListMetadataVersion +func (x *HydratedURLButton) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url } - return 0 + return "" } -type AdReplyInfo struct { +type HydratedQuickReplyButton struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AdvertiserName *string `protobuf:"bytes,1,opt,name=advertiserName" json:"advertiserName,omitempty"` - MediaType *AdReplyInfo_AdReplyInfoMediaType `protobuf:"varint,2,opt,name=mediaType,enum=proto.AdReplyInfo_AdReplyInfoMediaType" json:"mediaType,omitempty"` - JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` - Caption *string `protobuf:"bytes,17,opt,name=caption" json:"caption,omitempty"` + DisplayText *string `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` + Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` } -func (x *AdReplyInfo) Reset() { - *x = AdReplyInfo{} +func (x *HydratedQuickReplyButton) Reset() { + *x = HydratedQuickReplyButton{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[74] + mi := &file_binary_proto_def_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AdReplyInfo) String() string { +func (x *HydratedQuickReplyButton) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AdReplyInfo) ProtoMessage() {} +func (*HydratedQuickReplyButton) ProtoMessage() {} -func (x *AdReplyInfo) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[74] +func (x *HydratedQuickReplyButton) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9039,73 +9993,105 @@ func (x *AdReplyInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AdReplyInfo.ProtoReflect.Descriptor instead. -func (*AdReplyInfo) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{74} +// Deprecated: Use HydratedQuickReplyButton.ProtoReflect.Descriptor instead. +func (*HydratedQuickReplyButton) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{78} } -func (x *AdReplyInfo) GetAdvertiserName() string { - if x != nil && x.AdvertiserName != nil { - return *x.AdvertiserName +func (x *HydratedQuickReplyButton) GetDisplayText() string { + if x != nil && x.DisplayText != nil { + return *x.DisplayText } return "" } -func (x *AdReplyInfo) GetMediaType() AdReplyInfo_AdReplyInfoMediaType { - if x != nil && x.MediaType != nil { - return *x.MediaType +func (x *HydratedQuickReplyButton) GetId() string { + if x != nil && x.Id != nil { + return *x.Id } - return AdReplyInfo_NONE + return "" } -func (x *AdReplyInfo) GetJpegThumbnail() []byte { - if x != nil { - return x.JpegThumbnail +type HydratedCallButton struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DisplayText *string `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` + PhoneNumber *string `protobuf:"bytes,2,opt,name=phoneNumber" json:"phoneNumber,omitempty"` +} + +func (x *HydratedCallButton) Reset() { + *x = HydratedCallButton{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *AdReplyInfo) GetCaption() string { - if x != nil && x.Caption != nil { - return *x.Caption +func (x *HydratedCallButton) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HydratedCallButton) ProtoMessage() {} + +func (x *HydratedCallButton) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[79] + 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 HydratedCallButton.ProtoReflect.Descriptor instead. +func (*HydratedCallButton) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{79} +} + +func (x *HydratedCallButton) GetDisplayText() string { + if x != nil && x.DisplayText != nil { + return *x.DisplayText } return "" } -type ExternalAdReplyInfo struct { +func (x *HydratedCallButton) GetPhoneNumber() string { + if x != nil && x.PhoneNumber != nil { + return *x.PhoneNumber + } + return "" +} + +type DisappearingMode struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` - Body *string `protobuf:"bytes,2,opt,name=body" json:"body,omitempty"` - MediaType *ExternalAdReplyInfo_ExternalAdReplyInfoMediaType `protobuf:"varint,3,opt,name=mediaType,enum=proto.ExternalAdReplyInfo_ExternalAdReplyInfoMediaType" json:"mediaType,omitempty"` - ThumbnailUrl *string `protobuf:"bytes,4,opt,name=thumbnailUrl" json:"thumbnailUrl,omitempty"` - MediaUrl *string `protobuf:"bytes,5,opt,name=mediaUrl" json:"mediaUrl,omitempty"` - Thumbnail []byte `protobuf:"bytes,6,opt,name=thumbnail" json:"thumbnail,omitempty"` - SourceType *string `protobuf:"bytes,7,opt,name=sourceType" json:"sourceType,omitempty"` - SourceId *string `protobuf:"bytes,8,opt,name=sourceId" json:"sourceId,omitempty"` - SourceUrl *string `protobuf:"bytes,9,opt,name=sourceUrl" json:"sourceUrl,omitempty"` - ContainsAutoReply *bool `protobuf:"varint,10,opt,name=containsAutoReply" json:"containsAutoReply,omitempty"` + Initiator *DisappearingMode_DisappearingModeInitiator `protobuf:"varint,1,opt,name=initiator,enum=proto.DisappearingMode_DisappearingModeInitiator" json:"initiator,omitempty"` } -func (x *ExternalAdReplyInfo) Reset() { - *x = ExternalAdReplyInfo{} +func (x *DisappearingMode) Reset() { + *x = DisappearingMode{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[75] + mi := &file_binary_proto_def_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ExternalAdReplyInfo) String() string { +func (x *DisappearingMode) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ExternalAdReplyInfo) ProtoMessage() {} +func (*DisappearingMode) ProtoMessage() {} -func (x *ExternalAdReplyInfo) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[75] +func (x *DisappearingMode) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9116,79 +10102,103 @@ func (x *ExternalAdReplyInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExternalAdReplyInfo.ProtoReflect.Descriptor instead. -func (*ExternalAdReplyInfo) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{75} +// Deprecated: Use DisappearingMode.ProtoReflect.Descriptor instead. +func (*DisappearingMode) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{80} } -func (x *ExternalAdReplyInfo) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title +func (x *DisappearingMode) GetInitiator() DisappearingMode_DisappearingModeInitiator { + if x != nil && x.Initiator != nil { + return *x.Initiator } - return "" + return DisappearingMode_CHANGED_IN_CHAT } -func (x *ExternalAdReplyInfo) GetBody() string { - if x != nil && x.Body != nil { - return *x.Body - } - return "" +type DeviceListMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SenderKeyHash []byte `protobuf:"bytes,1,opt,name=senderKeyHash" json:"senderKeyHash,omitempty"` + SenderTimestamp *uint64 `protobuf:"varint,2,opt,name=senderTimestamp" json:"senderTimestamp,omitempty"` + SenderKeyIndexes []uint32 `protobuf:"varint,3,rep,packed,name=senderKeyIndexes" json:"senderKeyIndexes,omitempty"` + RecipientKeyHash []byte `protobuf:"bytes,8,opt,name=recipientKeyHash" json:"recipientKeyHash,omitempty"` + RecipientTimestamp *uint64 `protobuf:"varint,9,opt,name=recipientTimestamp" json:"recipientTimestamp,omitempty"` + RecipientKeyIndexes []uint32 `protobuf:"varint,10,rep,packed,name=recipientKeyIndexes" json:"recipientKeyIndexes,omitempty"` } -func (x *ExternalAdReplyInfo) GetMediaType() ExternalAdReplyInfo_ExternalAdReplyInfoMediaType { - if x != nil && x.MediaType != nil { - return *x.MediaType +func (x *DeviceListMetadata) Reset() { + *x = DeviceListMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return ExternalAdReplyInfo_NONE } -func (x *ExternalAdReplyInfo) GetThumbnailUrl() string { - if x != nil && x.ThumbnailUrl != nil { - return *x.ThumbnailUrl - } - return "" +func (x *DeviceListMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *ExternalAdReplyInfo) GetMediaUrl() string { - if x != nil && x.MediaUrl != nil { - return *x.MediaUrl +func (*DeviceListMetadata) ProtoMessage() {} + +func (x *DeviceListMetadata) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[81] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (x *ExternalAdReplyInfo) GetThumbnail() []byte { +// Deprecated: Use DeviceListMetadata.ProtoReflect.Descriptor instead. +func (*DeviceListMetadata) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{81} +} + +func (x *DeviceListMetadata) GetSenderKeyHash() []byte { if x != nil { - return x.Thumbnail + return x.SenderKeyHash } return nil } -func (x *ExternalAdReplyInfo) GetSourceType() string { - if x != nil && x.SourceType != nil { - return *x.SourceType +func (x *DeviceListMetadata) GetSenderTimestamp() uint64 { + if x != nil && x.SenderTimestamp != nil { + return *x.SenderTimestamp } - return "" + return 0 } -func (x *ExternalAdReplyInfo) GetSourceId() string { - if x != nil && x.SourceId != nil { - return *x.SourceId +func (x *DeviceListMetadata) GetSenderKeyIndexes() []uint32 { + if x != nil { + return x.SenderKeyIndexes } - return "" + return nil } -func (x *ExternalAdReplyInfo) GetSourceUrl() string { - if x != nil && x.SourceUrl != nil { - return *x.SourceUrl +func (x *DeviceListMetadata) GetRecipientKeyHash() []byte { + if x != nil { + return x.RecipientKeyHash } - return "" + return nil } -func (x *ExternalAdReplyInfo) GetContainsAutoReply() bool { - if x != nil && x.ContainsAutoReply != nil { - return *x.ContainsAutoReply +func (x *DeviceListMetadata) GetRecipientTimestamp() uint64 { + if x != nil && x.RecipientTimestamp != nil { + return *x.RecipientTimestamp } - return false + return 0 +} + +func (x *DeviceListMetadata) GetRecipientKeyIndexes() []uint32 { + if x != nil { + return x.RecipientKeyIndexes + } + return nil } type ContextInfo struct { @@ -9224,7 +10234,7 @@ type ContextInfo struct { func (x *ContextInfo) Reset() { *x = ContextInfo{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[76] + mi := &file_binary_proto_def_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9237,7 +10247,7 @@ func (x *ContextInfo) String() string { func (*ContextInfo) ProtoMessage() {} func (x *ContextInfo) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[76] + mi := &file_binary_proto_def_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9250,7 +10260,7 @@ func (x *ContextInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ContextInfo.ProtoReflect.Descriptor instead. func (*ContextInfo) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{76} + return file_binary_proto_def_proto_rawDescGZIP(), []int{82} } func (x *ContextInfo) GetStanzaId() string { @@ -9414,32 +10424,42 @@ func (x *ContextInfo) GetParentGroupJid() string { return "" } -type SenderKeyDistributionMessage struct { +type ExternalAdReplyInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - GroupId *string `protobuf:"bytes,1,opt,name=groupId" json:"groupId,omitempty"` - AxolotlSenderKeyDistributionMessage []byte `protobuf:"bytes,2,opt,name=axolotlSenderKeyDistributionMessage" json:"axolotlSenderKeyDistributionMessage,omitempty"` + Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` + Body *string `protobuf:"bytes,2,opt,name=body" json:"body,omitempty"` + MediaType *ExternalAdReplyInfo_ExternalAdReplyInfoMediaType `protobuf:"varint,3,opt,name=mediaType,enum=proto.ExternalAdReplyInfo_ExternalAdReplyInfoMediaType" json:"mediaType,omitempty"` + ThumbnailUrl *string `protobuf:"bytes,4,opt,name=thumbnailUrl" json:"thumbnailUrl,omitempty"` + MediaUrl *string `protobuf:"bytes,5,opt,name=mediaUrl" json:"mediaUrl,omitempty"` + Thumbnail []byte `protobuf:"bytes,6,opt,name=thumbnail" json:"thumbnail,omitempty"` + SourceType *string `protobuf:"bytes,7,opt,name=sourceType" json:"sourceType,omitempty"` + SourceId *string `protobuf:"bytes,8,opt,name=sourceId" json:"sourceId,omitempty"` + SourceUrl *string `protobuf:"bytes,9,opt,name=sourceUrl" json:"sourceUrl,omitempty"` + ContainsAutoReply *bool `protobuf:"varint,10,opt,name=containsAutoReply" json:"containsAutoReply,omitempty"` + RenderLargerThumbnail *bool `protobuf:"varint,11,opt,name=renderLargerThumbnail" json:"renderLargerThumbnail,omitempty"` + ShowAdAttribution *bool `protobuf:"varint,12,opt,name=showAdAttribution" json:"showAdAttribution,omitempty"` } -func (x *SenderKeyDistributionMessage) Reset() { - *x = SenderKeyDistributionMessage{} +func (x *ExternalAdReplyInfo) Reset() { + *x = ExternalAdReplyInfo{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[77] + mi := &file_binary_proto_def_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *SenderKeyDistributionMessage) String() string { +func (x *ExternalAdReplyInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SenderKeyDistributionMessage) ProtoMessage() {} +func (*ExternalAdReplyInfo) ProtoMessage() {} -func (x *SenderKeyDistributionMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[77] +func (x *ExternalAdReplyInfo) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9450,75 +10470,123 @@ func (x *SenderKeyDistributionMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SenderKeyDistributionMessage.ProtoReflect.Descriptor instead. -func (*SenderKeyDistributionMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{77} +// Deprecated: Use ExternalAdReplyInfo.ProtoReflect.Descriptor instead. +func (*ExternalAdReplyInfo) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{83} } -func (x *SenderKeyDistributionMessage) GetGroupId() string { - if x != nil && x.GroupId != nil { - return *x.GroupId +func (x *ExternalAdReplyInfo) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title } return "" } -func (x *SenderKeyDistributionMessage) GetAxolotlSenderKeyDistributionMessage() []byte { +func (x *ExternalAdReplyInfo) GetBody() string { + if x != nil && x.Body != nil { + return *x.Body + } + return "" +} + +func (x *ExternalAdReplyInfo) GetMediaType() ExternalAdReplyInfo_ExternalAdReplyInfoMediaType { + if x != nil && x.MediaType != nil { + return *x.MediaType + } + return ExternalAdReplyInfo_NONE +} + +func (x *ExternalAdReplyInfo) GetThumbnailUrl() string { + if x != nil && x.ThumbnailUrl != nil { + return *x.ThumbnailUrl + } + return "" +} + +func (x *ExternalAdReplyInfo) GetMediaUrl() string { + if x != nil && x.MediaUrl != nil { + return *x.MediaUrl + } + return "" +} + +func (x *ExternalAdReplyInfo) GetThumbnail() []byte { if x != nil { - return x.AxolotlSenderKeyDistributionMessage + return x.Thumbnail } return nil } -type ImageMessage struct { +func (x *ExternalAdReplyInfo) GetSourceType() string { + if x != nil && x.SourceType != nil { + return *x.SourceType + } + return "" +} + +func (x *ExternalAdReplyInfo) GetSourceId() string { + if x != nil && x.SourceId != nil { + return *x.SourceId + } + return "" +} + +func (x *ExternalAdReplyInfo) GetSourceUrl() string { + if x != nil && x.SourceUrl != nil { + return *x.SourceUrl + } + return "" +} + +func (x *ExternalAdReplyInfo) GetContainsAutoReply() bool { + if x != nil && x.ContainsAutoReply != nil { + return *x.ContainsAutoReply + } + return false +} + +func (x *ExternalAdReplyInfo) GetRenderLargerThumbnail() bool { + if x != nil && x.RenderLargerThumbnail != nil { + return *x.RenderLargerThumbnail + } + return false +} + +func (x *ExternalAdReplyInfo) GetShowAdAttribution() bool { + if x != nil && x.ShowAdAttribution != nil { + return *x.ShowAdAttribution + } + return false +} + +type AdReplyInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` - Mimetype *string `protobuf:"bytes,2,opt,name=mimetype" json:"mimetype,omitempty"` - Caption *string `protobuf:"bytes,3,opt,name=caption" json:"caption,omitempty"` - FileSha256 []byte `protobuf:"bytes,4,opt,name=fileSha256" json:"fileSha256,omitempty"` - FileLength *uint64 `protobuf:"varint,5,opt,name=fileLength" json:"fileLength,omitempty"` - Height *uint32 `protobuf:"varint,6,opt,name=height" json:"height,omitempty"` - Width *uint32 `protobuf:"varint,7,opt,name=width" json:"width,omitempty"` - MediaKey []byte `protobuf:"bytes,8,opt,name=mediaKey" json:"mediaKey,omitempty"` - FileEncSha256 []byte `protobuf:"bytes,9,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` - InteractiveAnnotations []*InteractiveAnnotation `protobuf:"bytes,10,rep,name=interactiveAnnotations" json:"interactiveAnnotations,omitempty"` - DirectPath *string `protobuf:"bytes,11,opt,name=directPath" json:"directPath,omitempty"` - MediaKeyTimestamp *int64 `protobuf:"varint,12,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` - JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` - FirstScanSidecar []byte `protobuf:"bytes,18,opt,name=firstScanSidecar" json:"firstScanSidecar,omitempty"` - FirstScanLength *uint32 `protobuf:"varint,19,opt,name=firstScanLength" json:"firstScanLength,omitempty"` - ExperimentGroupId *uint32 `protobuf:"varint,20,opt,name=experimentGroupId" json:"experimentGroupId,omitempty"` - ScansSidecar []byte `protobuf:"bytes,21,opt,name=scansSidecar" json:"scansSidecar,omitempty"` - ScanLengths []uint32 `protobuf:"varint,22,rep,name=scanLengths" json:"scanLengths,omitempty"` - MidQualityFileSha256 []byte `protobuf:"bytes,23,opt,name=midQualityFileSha256" json:"midQualityFileSha256,omitempty"` - MidQualityFileEncSha256 []byte `protobuf:"bytes,24,opt,name=midQualityFileEncSha256" json:"midQualityFileEncSha256,omitempty"` - ViewOnce *bool `protobuf:"varint,25,opt,name=viewOnce" json:"viewOnce,omitempty"` - ThumbnailDirectPath *string `protobuf:"bytes,26,opt,name=thumbnailDirectPath" json:"thumbnailDirectPath,omitempty"` - ThumbnailSha256 []byte `protobuf:"bytes,27,opt,name=thumbnailSha256" json:"thumbnailSha256,omitempty"` - ThumbnailEncSha256 []byte `protobuf:"bytes,28,opt,name=thumbnailEncSha256" json:"thumbnailEncSha256,omitempty"` - StaticUrl *string `protobuf:"bytes,29,opt,name=staticUrl" json:"staticUrl,omitempty"` + AdvertiserName *string `protobuf:"bytes,1,opt,name=advertiserName" json:"advertiserName,omitempty"` + MediaType *AdReplyInfo_AdReplyInfoMediaType `protobuf:"varint,2,opt,name=mediaType,enum=proto.AdReplyInfo_AdReplyInfoMediaType" json:"mediaType,omitempty"` + JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` + Caption *string `protobuf:"bytes,17,opt,name=caption" json:"caption,omitempty"` } -func (x *ImageMessage) Reset() { - *x = ImageMessage{} +func (x *AdReplyInfo) Reset() { + *x = AdReplyInfo{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[78] + mi := &file_binary_proto_def_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ImageMessage) String() string { +func (x *AdReplyInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ImageMessage) ProtoMessage() {} +func (*AdReplyInfo) ProtoMessage() {} -func (x *ImageMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[78] +func (x *AdReplyInfo) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9529,227 +10597,332 @@ func (x *ImageMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ImageMessage.ProtoReflect.Descriptor instead. -func (*ImageMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{78} +// Deprecated: Use AdReplyInfo.ProtoReflect.Descriptor instead. +func (*AdReplyInfo) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{84} } -func (x *ImageMessage) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url +func (x *AdReplyInfo) GetAdvertiserName() string { + if x != nil && x.AdvertiserName != nil { + return *x.AdvertiserName } return "" } -func (x *ImageMessage) GetMimetype() string { - if x != nil && x.Mimetype != nil { - return *x.Mimetype +func (x *AdReplyInfo) GetMediaType() AdReplyInfo_AdReplyInfoMediaType { + if x != nil && x.MediaType != nil { + return *x.MediaType } - return "" + return AdReplyInfo_NONE } -func (x *ImageMessage) GetCaption() string { +func (x *AdReplyInfo) GetJpegThumbnail() []byte { + if x != nil { + return x.JpegThumbnail + } + return nil +} + +func (x *AdReplyInfo) GetCaption() string { if x != nil && x.Caption != nil { return *x.Caption } return "" } -func (x *ImageMessage) GetFileSha256() []byte { - if x != nil { - return x.FileSha256 - } - return nil +type ActionLink struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` + ButtonTitle *string `protobuf:"bytes,2,opt,name=buttonTitle" json:"buttonTitle,omitempty"` } -func (x *ImageMessage) GetFileLength() uint64 { - if x != nil && x.FileLength != nil { - return *x.FileLength +func (x *ActionLink) Reset() { + *x = ActionLink{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (x *ImageMessage) GetHeight() uint32 { - if x != nil && x.Height != nil { - return *x.Height - } - return 0 +func (x *ActionLink) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *ImageMessage) GetWidth() uint32 { - if x != nil && x.Width != nil { - return *x.Width +func (*ActionLink) ProtoMessage() {} + +func (x *ActionLink) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[85] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *ImageMessage) GetMediaKey() []byte { - if x != nil { - return x.MediaKey +// Deprecated: Use ActionLink.ProtoReflect.Descriptor instead. +func (*ActionLink) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{85} +} + +func (x *ActionLink) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url } - return nil + return "" } -func (x *ImageMessage) GetFileEncSha256() []byte { - if x != nil { - return x.FileEncSha256 +func (x *ActionLink) GetButtonTitle() string { + if x != nil && x.ButtonTitle != nil { + return *x.ButtonTitle } - return nil + return "" } -func (x *ImageMessage) GetInteractiveAnnotations() []*InteractiveAnnotation { - if x != nil { - return x.InteractiveAnnotations +type TemplateButton struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Index *uint32 `protobuf:"varint,4,opt,name=index" json:"index,omitempty"` + // Types that are assignable to Button: + // *TemplateButton_QuickReplyButton + // *TemplateButton_UrlButton + // *TemplateButton_CallButton + Button isTemplateButton_Button `protobuf_oneof:"button"` +} + +func (x *TemplateButton) Reset() { + *x = TemplateButton{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *ImageMessage) GetDirectPath() string { - if x != nil && x.DirectPath != nil { - return *x.DirectPath +func (x *TemplateButton) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TemplateButton) ProtoMessage() {} + +func (x *TemplateButton) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[86] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (x *ImageMessage) GetMediaKeyTimestamp() int64 { - if x != nil && x.MediaKeyTimestamp != nil { - return *x.MediaKeyTimestamp +// Deprecated: Use TemplateButton.ProtoReflect.Descriptor instead. +func (*TemplateButton) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{86} +} + +func (x *TemplateButton) GetIndex() uint32 { + if x != nil && x.Index != nil { + return *x.Index } return 0 } -func (x *ImageMessage) GetJpegThumbnail() []byte { - if x != nil { - return x.JpegThumbnail +func (m *TemplateButton) GetButton() isTemplateButton_Button { + if m != nil { + return m.Button } return nil } -func (x *ImageMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo +func (x *TemplateButton) GetQuickReplyButton() *QuickReplyButton { + if x, ok := x.GetButton().(*TemplateButton_QuickReplyButton); ok { + return x.QuickReplyButton } return nil } -func (x *ImageMessage) GetFirstScanSidecar() []byte { - if x != nil { - return x.FirstScanSidecar +func (x *TemplateButton) GetUrlButton() *URLButton { + if x, ok := x.GetButton().(*TemplateButton_UrlButton); ok { + return x.UrlButton } return nil } -func (x *ImageMessage) GetFirstScanLength() uint32 { - if x != nil && x.FirstScanLength != nil { - return *x.FirstScanLength +func (x *TemplateButton) GetCallButton() *CallButton { + if x, ok := x.GetButton().(*TemplateButton_CallButton); ok { + return x.CallButton } - return 0 + return nil } -func (x *ImageMessage) GetExperimentGroupId() uint32 { - if x != nil && x.ExperimentGroupId != nil { - return *x.ExperimentGroupId - } - return 0 +type isTemplateButton_Button interface { + isTemplateButton_Button() } -func (x *ImageMessage) GetScansSidecar() []byte { - if x != nil { - return x.ScansSidecar +type TemplateButton_QuickReplyButton struct { + QuickReplyButton *QuickReplyButton `protobuf:"bytes,1,opt,name=quickReplyButton,oneof"` +} + +type TemplateButton_UrlButton struct { + UrlButton *URLButton `protobuf:"bytes,2,opt,name=urlButton,oneof"` +} + +type TemplateButton_CallButton struct { + CallButton *CallButton `protobuf:"bytes,3,opt,name=callButton,oneof"` +} + +func (*TemplateButton_QuickReplyButton) isTemplateButton_Button() {} + +func (*TemplateButton_UrlButton) isTemplateButton_Button() {} + +func (*TemplateButton_CallButton) isTemplateButton_Button() {} + +type URLButton struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DisplayText *HighlyStructuredMessage `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` + Url *HighlyStructuredMessage `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` +} + +func (x *URLButton) Reset() { + *x = URLButton{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *ImageMessage) GetScanLengths() []uint32 { - if x != nil { - return x.ScanLengths +func (x *URLButton) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*URLButton) ProtoMessage() {} + +func (x *URLButton) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[87] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *ImageMessage) GetMidQualityFileSha256() []byte { +// Deprecated: Use URLButton.ProtoReflect.Descriptor instead. +func (*URLButton) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{87} +} + +func (x *URLButton) GetDisplayText() *HighlyStructuredMessage { if x != nil { - return x.MidQualityFileSha256 + return x.DisplayText } return nil } -func (x *ImageMessage) GetMidQualityFileEncSha256() []byte { +func (x *URLButton) GetUrl() *HighlyStructuredMessage { if x != nil { - return x.MidQualityFileEncSha256 + return x.Url } return nil } -func (x *ImageMessage) GetViewOnce() bool { - if x != nil && x.ViewOnce != nil { - return *x.ViewOnce - } - return false +type QuickReplyButton struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DisplayText *HighlyStructuredMessage `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` + Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` } -func (x *ImageMessage) GetThumbnailDirectPath() string { - if x != nil && x.ThumbnailDirectPath != nil { - return *x.ThumbnailDirectPath +func (x *QuickReplyButton) Reset() { + *x = QuickReplyButton{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *ImageMessage) GetThumbnailSha256() []byte { - if x != nil { - return x.ThumbnailSha256 +func (x *QuickReplyButton) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuickReplyButton) ProtoMessage() {} + +func (x *QuickReplyButton) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[88] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *ImageMessage) GetThumbnailEncSha256() []byte { +// Deprecated: Use QuickReplyButton.ProtoReflect.Descriptor instead. +func (*QuickReplyButton) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{88} +} + +func (x *QuickReplyButton) GetDisplayText() *HighlyStructuredMessage { if x != nil { - return x.ThumbnailEncSha256 + return x.DisplayText } return nil } -func (x *ImageMessage) GetStaticUrl() string { - if x != nil && x.StaticUrl != nil { - return *x.StaticUrl +func (x *QuickReplyButton) GetId() string { + if x != nil && x.Id != nil { + return *x.Id } return "" } -type InvoiceMessage struct { +type CallButton struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Note *string `protobuf:"bytes,1,opt,name=note" json:"note,omitempty"` - Token *string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"` - AttachmentType *InvoiceMessage_InvoiceMessageAttachmentType `protobuf:"varint,3,opt,name=attachmentType,enum=proto.InvoiceMessage_InvoiceMessageAttachmentType" json:"attachmentType,omitempty"` - AttachmentMimetype *string `protobuf:"bytes,4,opt,name=attachmentMimetype" json:"attachmentMimetype,omitempty"` - AttachmentMediaKey []byte `protobuf:"bytes,5,opt,name=attachmentMediaKey" json:"attachmentMediaKey,omitempty"` - AttachmentMediaKeyTimestamp *int64 `protobuf:"varint,6,opt,name=attachmentMediaKeyTimestamp" json:"attachmentMediaKeyTimestamp,omitempty"` - AttachmentFileSha256 []byte `protobuf:"bytes,7,opt,name=attachmentFileSha256" json:"attachmentFileSha256,omitempty"` - AttachmentFileEncSha256 []byte `protobuf:"bytes,8,opt,name=attachmentFileEncSha256" json:"attachmentFileEncSha256,omitempty"` - AttachmentDirectPath *string `protobuf:"bytes,9,opt,name=attachmentDirectPath" json:"attachmentDirectPath,omitempty"` - AttachmentJpegThumbnail []byte `protobuf:"bytes,10,opt,name=attachmentJpegThumbnail" json:"attachmentJpegThumbnail,omitempty"` + DisplayText *HighlyStructuredMessage `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` + PhoneNumber *HighlyStructuredMessage `protobuf:"bytes,2,opt,name=phoneNumber" json:"phoneNumber,omitempty"` } -func (x *InvoiceMessage) Reset() { - *x = InvoiceMessage{} +func (x *CallButton) Reset() { + *x = CallButton{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[79] + mi := &file_binary_proto_def_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *InvoiceMessage) String() string { +func (x *CallButton) String() string { return protoimpl.X.MessageStringOf(x) } -func (*InvoiceMessage) ProtoMessage() {} +func (*CallButton) ProtoMessage() {} -func (x *InvoiceMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[79] +func (x *CallButton) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[89] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9760,108 +10933,115 @@ func (x *InvoiceMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use InvoiceMessage.ProtoReflect.Descriptor instead. -func (*InvoiceMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{79} +// Deprecated: Use CallButton.ProtoReflect.Descriptor instead. +func (*CallButton) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{89} } -func (x *InvoiceMessage) GetNote() string { - if x != nil && x.Note != nil { - return *x.Note +func (x *CallButton) GetDisplayText() *HighlyStructuredMessage { + if x != nil { + return x.DisplayText } - return "" + return nil } -func (x *InvoiceMessage) GetToken() string { - if x != nil && x.Token != nil { - return *x.Token +func (x *CallButton) GetPhoneNumber() *HighlyStructuredMessage { + if x != nil { + return x.PhoneNumber } - return "" + return nil } -func (x *InvoiceMessage) GetAttachmentType() InvoiceMessage_InvoiceMessageAttachmentType { - if x != nil && x.AttachmentType != nil { - return *x.AttachmentType - } - return InvoiceMessage_IMAGE +type PollUpdateMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PollCreationMessageKey *MessageKey `protobuf:"bytes,1,opt,name=pollCreationMessageKey" json:"pollCreationMessageKey,omitempty"` + EncPayload []byte `protobuf:"bytes,2,opt,name=encPayload" json:"encPayload,omitempty"` + EncIv []byte `protobuf:"bytes,3,opt,name=encIv" json:"encIv,omitempty"` } -func (x *InvoiceMessage) GetAttachmentMimetype() string { - if x != nil && x.AttachmentMimetype != nil { - return *x.AttachmentMimetype +func (x *PollUpdateMessage) Reset() { + *x = PollUpdateMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *InvoiceMessage) GetAttachmentMediaKey() []byte { - if x != nil { - return x.AttachmentMediaKey - } - return nil +func (x *PollUpdateMessage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *InvoiceMessage) GetAttachmentMediaKeyTimestamp() int64 { - if x != nil && x.AttachmentMediaKeyTimestamp != nil { - return *x.AttachmentMediaKeyTimestamp +func (*PollUpdateMessage) ProtoMessage() {} + +func (x *PollUpdateMessage) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[90] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *InvoiceMessage) GetAttachmentFileSha256() []byte { - if x != nil { - return x.AttachmentFileSha256 - } - return nil +// Deprecated: Use PollUpdateMessage.ProtoReflect.Descriptor instead. +func (*PollUpdateMessage) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{90} } -func (x *InvoiceMessage) GetAttachmentFileEncSha256() []byte { +func (x *PollUpdateMessage) GetPollCreationMessageKey() *MessageKey { if x != nil { - return x.AttachmentFileEncSha256 + return x.PollCreationMessageKey } return nil } -func (x *InvoiceMessage) GetAttachmentDirectPath() string { - if x != nil && x.AttachmentDirectPath != nil { - return *x.AttachmentDirectPath +func (x *PollUpdateMessage) GetEncPayload() []byte { + if x != nil { + return x.EncPayload } - return "" + return nil } -func (x *InvoiceMessage) GetAttachmentJpegThumbnail() []byte { +func (x *PollUpdateMessage) GetEncIv() []byte { if x != nil { - return x.AttachmentJpegThumbnail + return x.EncIv } return nil } -type ContactMessage struct { +type PollUpdateMessageContent struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DisplayName *string `protobuf:"bytes,1,opt,name=displayName" json:"displayName,omitempty"` - Vcard *string `protobuf:"bytes,16,opt,name=vcard" json:"vcard,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` + // Types that are assignable to Update: + // *PollUpdateMessageContent_VoteMessage + Update isPollUpdateMessageContent_Update `protobuf_oneof:"update"` } -func (x *ContactMessage) Reset() { - *x = ContactMessage{} +func (x *PollUpdateMessageContent) Reset() { + *x = PollUpdateMessageContent{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[80] + mi := &file_binary_proto_def_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ContactMessage) String() string { +func (x *PollUpdateMessageContent) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ContactMessage) ProtoMessage() {} +func (*PollUpdateMessageContent) ProtoMessage() {} -func (x *ContactMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[80] +func (x *PollUpdateMessageContent) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[91] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9872,68 +11052,61 @@ func (x *ContactMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ContactMessage.ProtoReflect.Descriptor instead. -func (*ContactMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{80} +// Deprecated: Use PollUpdateMessageContent.ProtoReflect.Descriptor instead. +func (*PollUpdateMessageContent) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{91} } -func (x *ContactMessage) GetDisplayName() string { - if x != nil && x.DisplayName != nil { - return *x.DisplayName +func (m *PollUpdateMessageContent) GetUpdate() isPollUpdateMessageContent_Update { + if m != nil { + return m.Update } - return "" + return nil } -func (x *ContactMessage) GetVcard() string { - if x != nil && x.Vcard != nil { - return *x.Vcard +func (x *PollUpdateMessageContent) GetVoteMessage() *PollVoteMessage { + if x, ok := x.GetUpdate().(*PollUpdateMessageContent_VoteMessage); ok { + return x.VoteMessage } - return "" + return nil } -func (x *ContactMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo - } - return nil +type isPollUpdateMessageContent_Update interface { + isPollUpdateMessageContent_Update() } -type LocationMessage struct { +type PollUpdateMessageContent_VoteMessage struct { + VoteMessage *PollVoteMessage `protobuf:"bytes,1,opt,name=voteMessage,oneof"` +} + +func (*PollUpdateMessageContent_VoteMessage) isPollUpdateMessageContent_Update() {} + +type PollVoteMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DegreesLatitude *float64 `protobuf:"fixed64,1,opt,name=degreesLatitude" json:"degreesLatitude,omitempty"` - DegreesLongitude *float64 `protobuf:"fixed64,2,opt,name=degreesLongitude" json:"degreesLongitude,omitempty"` - Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` - Address *string `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"` - Url *string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"` - IsLive *bool `protobuf:"varint,6,opt,name=isLive" json:"isLive,omitempty"` - AccuracyInMeters *uint32 `protobuf:"varint,7,opt,name=accuracyInMeters" json:"accuracyInMeters,omitempty"` - SpeedInMps *float32 `protobuf:"fixed32,8,opt,name=speedInMps" json:"speedInMps,omitempty"` - DegreesClockwiseFromMagneticNorth *uint32 `protobuf:"varint,9,opt,name=degreesClockwiseFromMagneticNorth" json:"degreesClockwiseFromMagneticNorth,omitempty"` - Comment *string `protobuf:"bytes,11,opt,name=comment" json:"comment,omitempty"` - JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` + SelectedOptions [][]byte `protobuf:"bytes,1,rep,name=selectedOptions" json:"selectedOptions,omitempty"` + SenderTimestampMs *int64 `protobuf:"varint,2,opt,name=senderTimestampMs" json:"senderTimestampMs,omitempty"` } -func (x *LocationMessage) Reset() { - *x = LocationMessage{} +func (x *PollVoteMessage) Reset() { + *x = PollVoteMessage{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[81] + mi := &file_binary_proto_def_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LocationMessage) String() string { +func (x *PollVoteMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LocationMessage) ProtoMessage() {} +func (*PollVoteMessage) ProtoMessage() {} -func (x *LocationMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[81] +func (x *PollVoteMessage) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[92] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9944,139 +11117,248 @@ func (x *LocationMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LocationMessage.ProtoReflect.Descriptor instead. -func (*LocationMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{81} +// Deprecated: Use PollVoteMessage.ProtoReflect.Descriptor instead. +func (*PollVoteMessage) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{92} } -func (x *LocationMessage) GetDegreesLatitude() float64 { - if x != nil && x.DegreesLatitude != nil { - return *x.DegreesLatitude +func (x *PollVoteMessage) GetSelectedOptions() [][]byte { + if x != nil { + return x.SelectedOptions } - return 0 + return nil } -func (x *LocationMessage) GetDegreesLongitude() float64 { - if x != nil && x.DegreesLongitude != nil { - return *x.DegreesLongitude +func (x *PollVoteMessage) GetSenderTimestampMs() int64 { + if x != nil && x.SenderTimestampMs != nil { + return *x.SenderTimestampMs } return 0 } -func (x *LocationMessage) GetName() string { +type PollCreationMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EncKey []byte `protobuf:"bytes,1,opt,name=encKey" json:"encKey,omitempty"` + Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Options []*Option `protobuf:"bytes,3,rep,name=options" json:"options,omitempty"` + SelectableOptionsCount *uint32 `protobuf:"varint,4,opt,name=selectableOptionsCount" json:"selectableOptionsCount,omitempty"` +} + +func (x *PollCreationMessage) Reset() { + *x = PollCreationMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PollCreationMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollCreationMessage) ProtoMessage() {} + +func (x *PollCreationMessage) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[93] + 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 PollCreationMessage.ProtoReflect.Descriptor instead. +func (*PollCreationMessage) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{93} +} + +func (x *PollCreationMessage) GetEncKey() []byte { + if x != nil { + return x.EncKey + } + return nil +} + +func (x *PollCreationMessage) GetName() string { if x != nil && x.Name != nil { return *x.Name } return "" } -func (x *LocationMessage) GetAddress() string { - if x != nil && x.Address != nil { - return *x.Address +func (x *PollCreationMessage) GetOptions() []*Option { + if x != nil { + return x.Options } - return "" + return nil } -func (x *LocationMessage) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url +func (x *PollCreationMessage) GetSelectableOptionsCount() uint32 { + if x != nil && x.SelectableOptionsCount != nil { + return *x.SelectableOptionsCount } - return "" + return 0 } -func (x *LocationMessage) GetIsLive() bool { - if x != nil && x.IsLive != nil { - return *x.IsLive +type Option struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OptionName *string `protobuf:"bytes,1,opt,name=optionName" json:"optionName,omitempty"` +} + +func (x *Option) Reset() { + *x = Option{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return false } -func (x *LocationMessage) GetAccuracyInMeters() uint32 { - if x != nil && x.AccuracyInMeters != nil { - return *x.AccuracyInMeters +func (x *Option) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Option) ProtoMessage() {} + +func (x *Option) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[94] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *LocationMessage) GetSpeedInMps() float32 { - if x != nil && x.SpeedInMps != nil { - return *x.SpeedInMps +// Deprecated: Use Option.ProtoReflect.Descriptor instead. +func (*Option) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{94} +} + +func (x *Option) GetOptionName() string { + if x != nil && x.OptionName != nil { + return *x.OptionName } - return 0 + return "" } -func (x *LocationMessage) GetDegreesClockwiseFromMagneticNorth() uint32 { - if x != nil && x.DegreesClockwiseFromMagneticNorth != nil { - return *x.DegreesClockwiseFromMagneticNorth +type Point struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + XDeprecated *int32 `protobuf:"varint,1,opt,name=xDeprecated" json:"xDeprecated,omitempty"` + YDeprecated *int32 `protobuf:"varint,2,opt,name=yDeprecated" json:"yDeprecated,omitempty"` + X *float64 `protobuf:"fixed64,3,opt,name=x" json:"x,omitempty"` + Y *float64 `protobuf:"fixed64,4,opt,name=y" json:"y,omitempty"` +} + +func (x *Point) Reset() { + *x = Point{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Point) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Point) ProtoMessage() {} + +func (x *Point) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[95] + 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 Point.ProtoReflect.Descriptor instead. +func (*Point) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{95} +} + +func (x *Point) GetXDeprecated() int32 { + if x != nil && x.XDeprecated != nil { + return *x.XDeprecated } return 0 } -func (x *LocationMessage) GetComment() string { - if x != nil && x.Comment != nil { - return *x.Comment +func (x *Point) GetYDeprecated() int32 { + if x != nil && x.YDeprecated != nil { + return *x.YDeprecated } - return "" + return 0 } -func (x *LocationMessage) GetJpegThumbnail() []byte { - if x != nil { - return x.JpegThumbnail +func (x *Point) GetX() float64 { + if x != nil && x.X != nil { + return *x.X } - return nil + return 0 } -func (x *LocationMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo +func (x *Point) GetY() float64 { + if x != nil && x.Y != nil { + return *x.Y } - return nil + return 0 } -type ExtendedTextMessage struct { +type PaymentBackground struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Text *string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"` - MatchedText *string `protobuf:"bytes,2,opt,name=matchedText" json:"matchedText,omitempty"` - CanonicalUrl *string `protobuf:"bytes,4,opt,name=canonicalUrl" json:"canonicalUrl,omitempty"` - Description *string `protobuf:"bytes,5,opt,name=description" json:"description,omitempty"` - Title *string `protobuf:"bytes,6,opt,name=title" json:"title,omitempty"` - TextArgb *uint32 `protobuf:"fixed32,7,opt,name=textArgb" json:"textArgb,omitempty"` - BackgroundArgb *uint32 `protobuf:"fixed32,8,opt,name=backgroundArgb" json:"backgroundArgb,omitempty"` - Font *ExtendedTextMessage_ExtendedTextMessageFontType `protobuf:"varint,9,opt,name=font,enum=proto.ExtendedTextMessage_ExtendedTextMessageFontType" json:"font,omitempty"` - PreviewType *ExtendedTextMessage_ExtendedTextMessagePreviewType `protobuf:"varint,10,opt,name=previewType,enum=proto.ExtendedTextMessage_ExtendedTextMessagePreviewType" json:"previewType,omitempty"` - JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` - DoNotPlayInline *bool `protobuf:"varint,18,opt,name=doNotPlayInline" json:"doNotPlayInline,omitempty"` - ThumbnailDirectPath *string `protobuf:"bytes,19,opt,name=thumbnailDirectPath" json:"thumbnailDirectPath,omitempty"` - ThumbnailSha256 []byte `protobuf:"bytes,20,opt,name=thumbnailSha256" json:"thumbnailSha256,omitempty"` - ThumbnailEncSha256 []byte `protobuf:"bytes,21,opt,name=thumbnailEncSha256" json:"thumbnailEncSha256,omitempty"` - MediaKey []byte `protobuf:"bytes,22,opt,name=mediaKey" json:"mediaKey,omitempty"` - MediaKeyTimestamp *int64 `protobuf:"varint,23,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` - ThumbnailHeight *uint32 `protobuf:"varint,24,opt,name=thumbnailHeight" json:"thumbnailHeight,omitempty"` - ThumbnailWidth *uint32 `protobuf:"varint,25,opt,name=thumbnailWidth" json:"thumbnailWidth,omitempty"` - InviteLinkGroupType *ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType `protobuf:"varint,26,opt,name=inviteLinkGroupType,enum=proto.ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType" json:"inviteLinkGroupType,omitempty"` + Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + FileLength *uint64 `protobuf:"varint,2,opt,name=fileLength" json:"fileLength,omitempty"` + Width *uint32 `protobuf:"varint,3,opt,name=width" json:"width,omitempty"` + Height *uint32 `protobuf:"varint,4,opt,name=height" json:"height,omitempty"` + Mimetype *string `protobuf:"bytes,5,opt,name=mimetype" json:"mimetype,omitempty"` + PlaceholderArgb *uint32 `protobuf:"fixed32,6,opt,name=placeholderArgb" json:"placeholderArgb,omitempty"` + TextArgb *uint32 `protobuf:"fixed32,7,opt,name=textArgb" json:"textArgb,omitempty"` + SubtextArgb *uint32 `protobuf:"fixed32,8,opt,name=subtextArgb" json:"subtextArgb,omitempty"` + MediaData *PBMediaData `protobuf:"bytes,9,opt,name=mediaData" json:"mediaData,omitempty"` + Type *PaymentBackground_PaymentBackgroundType `protobuf:"varint,10,opt,name=type,enum=proto.PaymentBackground_PaymentBackgroundType" json:"type,omitempty"` } -func (x *ExtendedTextMessage) Reset() { - *x = ExtendedTextMessage{} +func (x *PaymentBackground) Reset() { + *x = PaymentBackground{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[82] + mi := &file_binary_proto_def_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ExtendedTextMessage) String() string { +func (x *PaymentBackground) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ExtendedTextMessage) ProtoMessage() {} +func (*PaymentBackground) ProtoMessage() {} -func (x *ExtendedTextMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[82] +func (x *PaymentBackground) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[96] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10087,194 +11369,290 @@ func (x *ExtendedTextMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExtendedTextMessage.ProtoReflect.Descriptor instead. -func (*ExtendedTextMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{82} +// Deprecated: Use PaymentBackground.ProtoReflect.Descriptor instead. +func (*PaymentBackground) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{96} } -func (x *ExtendedTextMessage) GetText() string { - if x != nil && x.Text != nil { - return *x.Text +func (x *PaymentBackground) GetId() string { + if x != nil && x.Id != nil { + return *x.Id } return "" } -func (x *ExtendedTextMessage) GetMatchedText() string { - if x != nil && x.MatchedText != nil { - return *x.MatchedText +func (x *PaymentBackground) GetFileLength() uint64 { + if x != nil && x.FileLength != nil { + return *x.FileLength } - return "" + return 0 } -func (x *ExtendedTextMessage) GetCanonicalUrl() string { - if x != nil && x.CanonicalUrl != nil { - return *x.CanonicalUrl +func (x *PaymentBackground) GetWidth() uint32 { + if x != nil && x.Width != nil { + return *x.Width } - return "" + return 0 } -func (x *ExtendedTextMessage) GetDescription() string { - if x != nil && x.Description != nil { - return *x.Description +func (x *PaymentBackground) GetHeight() uint32 { + if x != nil && x.Height != nil { + return *x.Height } - return "" + return 0 } -func (x *ExtendedTextMessage) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title +func (x *PaymentBackground) GetMimetype() string { + if x != nil && x.Mimetype != nil { + return *x.Mimetype } return "" } -func (x *ExtendedTextMessage) GetTextArgb() uint32 { +func (x *PaymentBackground) GetPlaceholderArgb() uint32 { + if x != nil && x.PlaceholderArgb != nil { + return *x.PlaceholderArgb + } + return 0 +} + +func (x *PaymentBackground) GetTextArgb() uint32 { if x != nil && x.TextArgb != nil { return *x.TextArgb } return 0 } -func (x *ExtendedTextMessage) GetBackgroundArgb() uint32 { - if x != nil && x.BackgroundArgb != nil { - return *x.BackgroundArgb +func (x *PaymentBackground) GetSubtextArgb() uint32 { + if x != nil && x.SubtextArgb != nil { + return *x.SubtextArgb } return 0 } -func (x *ExtendedTextMessage) GetFont() ExtendedTextMessage_ExtendedTextMessageFontType { - if x != nil && x.Font != nil { - return *x.Font +func (x *PaymentBackground) GetMediaData() *PBMediaData { + if x != nil { + return x.MediaData } - return ExtendedTextMessage_SANS_SERIF + return nil } -func (x *ExtendedTextMessage) GetPreviewType() ExtendedTextMessage_ExtendedTextMessagePreviewType { - if x != nil && x.PreviewType != nil { - return *x.PreviewType +func (x *PaymentBackground) GetType() PaymentBackground_PaymentBackgroundType { + if x != nil && x.Type != nil { + return *x.Type } - return ExtendedTextMessage_NONE + return PaymentBackground_UNKNOWN } -func (x *ExtendedTextMessage) GetJpegThumbnail() []byte { - if x != nil { - return x.JpegThumbnail - } - return nil +// Renamed from PaymentBackground$MediaData +type PBMediaData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MediaKey []byte `protobuf:"bytes,1,opt,name=mediaKey" json:"mediaKey,omitempty"` + MediaKeyTimestamp *int64 `protobuf:"varint,2,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` + FileSha256 []byte `protobuf:"bytes,3,opt,name=fileSha256" json:"fileSha256,omitempty"` + FileEncSha256 []byte `protobuf:"bytes,4,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` + DirectPath *string `protobuf:"bytes,5,opt,name=directPath" json:"directPath,omitempty"` } -func (x *ExtendedTextMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo +func (x *PBMediaData) Reset() { + *x = PBMediaData{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *ExtendedTextMessage) GetDoNotPlayInline() bool { - if x != nil && x.DoNotPlayInline != nil { - return *x.DoNotPlayInline - } - return false +func (x *PBMediaData) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *ExtendedTextMessage) GetThumbnailDirectPath() string { - if x != nil && x.ThumbnailDirectPath != nil { - return *x.ThumbnailDirectPath +func (*PBMediaData) ProtoMessage() {} + +func (x *PBMediaData) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[97] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (x *ExtendedTextMessage) GetThumbnailSha256() []byte { +// Deprecated: Use PBMediaData.ProtoReflect.Descriptor instead. +func (*PBMediaData) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{97} +} + +func (x *PBMediaData) GetMediaKey() []byte { if x != nil { - return x.ThumbnailSha256 + return x.MediaKey } return nil } -func (x *ExtendedTextMessage) GetThumbnailEncSha256() []byte { +func (x *PBMediaData) GetMediaKeyTimestamp() int64 { + if x != nil && x.MediaKeyTimestamp != nil { + return *x.MediaKeyTimestamp + } + return 0 +} + +func (x *PBMediaData) GetFileSha256() []byte { if x != nil { - return x.ThumbnailEncSha256 + return x.FileSha256 } return nil } -func (x *ExtendedTextMessage) GetMediaKey() []byte { +func (x *PBMediaData) GetFileEncSha256() []byte { if x != nil { - return x.MediaKey + return x.FileEncSha256 } return nil } -func (x *ExtendedTextMessage) GetMediaKeyTimestamp() int64 { - if x != nil && x.MediaKeyTimestamp != nil { - return *x.MediaKeyTimestamp +func (x *PBMediaData) GetDirectPath() string { + if x != nil && x.DirectPath != nil { + return *x.DirectPath } - return 0 + return "" } -func (x *ExtendedTextMessage) GetThumbnailHeight() uint32 { - if x != nil && x.ThumbnailHeight != nil { - return *x.ThumbnailHeight +type Money struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` + Offset *uint32 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"` + CurrencyCode *string `protobuf:"bytes,3,opt,name=currencyCode" json:"currencyCode,omitempty"` +} + +func (x *Money) Reset() { + *x = Money{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Money) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Money) ProtoMessage() {} + +func (x *Money) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[98] + 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 Money.ProtoReflect.Descriptor instead. +func (*Money) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{98} +} + +func (x *Money) GetValue() int64 { + if x != nil && x.Value != nil { + return *x.Value } return 0 } -func (x *ExtendedTextMessage) GetThumbnailWidth() uint32 { - if x != nil && x.ThumbnailWidth != nil { - return *x.ThumbnailWidth +func (x *Money) GetOffset() uint32 { + if x != nil && x.Offset != nil { + return *x.Offset } return 0 } -func (x *ExtendedTextMessage) GetInviteLinkGroupType() ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType { - if x != nil && x.InviteLinkGroupType != nil { - return *x.InviteLinkGroupType +func (x *Money) GetCurrencyCode() string { + if x != nil && x.CurrencyCode != nil { + return *x.CurrencyCode } - return ExtendedTextMessage_DEFAULT + return "" } -type DocumentMessage struct { +type Message struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` - Mimetype *string `protobuf:"bytes,2,opt,name=mimetype" json:"mimetype,omitempty"` - Title *string `protobuf:"bytes,3,opt,name=title" json:"title,omitempty"` - FileSha256 []byte `protobuf:"bytes,4,opt,name=fileSha256" json:"fileSha256,omitempty"` - FileLength *uint64 `protobuf:"varint,5,opt,name=fileLength" json:"fileLength,omitempty"` - PageCount *uint32 `protobuf:"varint,6,opt,name=pageCount" json:"pageCount,omitempty"` - MediaKey []byte `protobuf:"bytes,7,opt,name=mediaKey" json:"mediaKey,omitempty"` - FileName *string `protobuf:"bytes,8,opt,name=fileName" json:"fileName,omitempty"` - FileEncSha256 []byte `protobuf:"bytes,9,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` - DirectPath *string `protobuf:"bytes,10,opt,name=directPath" json:"directPath,omitempty"` - MediaKeyTimestamp *int64 `protobuf:"varint,11,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` - ContactVcard *bool `protobuf:"varint,12,opt,name=contactVcard" json:"contactVcard,omitempty"` - ThumbnailDirectPath *string `protobuf:"bytes,13,opt,name=thumbnailDirectPath" json:"thumbnailDirectPath,omitempty"` - ThumbnailSha256 []byte `protobuf:"bytes,14,opt,name=thumbnailSha256" json:"thumbnailSha256,omitempty"` - ThumbnailEncSha256 []byte `protobuf:"bytes,15,opt,name=thumbnailEncSha256" json:"thumbnailEncSha256,omitempty"` - JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` - ThumbnailHeight *uint32 `protobuf:"varint,18,opt,name=thumbnailHeight" json:"thumbnailHeight,omitempty"` - ThumbnailWidth *uint32 `protobuf:"varint,19,opt,name=thumbnailWidth" json:"thumbnailWidth,omitempty"` + Conversation *string `protobuf:"bytes,1,opt,name=conversation" json:"conversation,omitempty"` + SenderKeyDistributionMessage *SenderKeyDistributionMessage `protobuf:"bytes,2,opt,name=senderKeyDistributionMessage" json:"senderKeyDistributionMessage,omitempty"` + ImageMessage *ImageMessage `protobuf:"bytes,3,opt,name=imageMessage" json:"imageMessage,omitempty"` + ContactMessage *ContactMessage `protobuf:"bytes,4,opt,name=contactMessage" json:"contactMessage,omitempty"` + LocationMessage *LocationMessage `protobuf:"bytes,5,opt,name=locationMessage" json:"locationMessage,omitempty"` + ExtendedTextMessage *ExtendedTextMessage `protobuf:"bytes,6,opt,name=extendedTextMessage" json:"extendedTextMessage,omitempty"` + DocumentMessage *DocumentMessage `protobuf:"bytes,7,opt,name=documentMessage" json:"documentMessage,omitempty"` + AudioMessage *AudioMessage `protobuf:"bytes,8,opt,name=audioMessage" json:"audioMessage,omitempty"` + VideoMessage *VideoMessage `protobuf:"bytes,9,opt,name=videoMessage" json:"videoMessage,omitempty"` + Call *Call `protobuf:"bytes,10,opt,name=call" json:"call,omitempty"` + Chat *Chat `protobuf:"bytes,11,opt,name=chat" json:"chat,omitempty"` + ProtocolMessage *ProtocolMessage `protobuf:"bytes,12,opt,name=protocolMessage" json:"protocolMessage,omitempty"` + ContactsArrayMessage *ContactsArrayMessage `protobuf:"bytes,13,opt,name=contactsArrayMessage" json:"contactsArrayMessage,omitempty"` + HighlyStructuredMessage *HighlyStructuredMessage `protobuf:"bytes,14,opt,name=highlyStructuredMessage" json:"highlyStructuredMessage,omitempty"` + FastRatchetKeySenderKeyDistributionMessage *SenderKeyDistributionMessage `protobuf:"bytes,15,opt,name=fastRatchetKeySenderKeyDistributionMessage" json:"fastRatchetKeySenderKeyDistributionMessage,omitempty"` + SendPaymentMessage *SendPaymentMessage `protobuf:"bytes,16,opt,name=sendPaymentMessage" json:"sendPaymentMessage,omitempty"` + LiveLocationMessage *LiveLocationMessage `protobuf:"bytes,18,opt,name=liveLocationMessage" json:"liveLocationMessage,omitempty"` + RequestPaymentMessage *RequestPaymentMessage `protobuf:"bytes,22,opt,name=requestPaymentMessage" json:"requestPaymentMessage,omitempty"` + DeclinePaymentRequestMessage *DeclinePaymentRequestMessage `protobuf:"bytes,23,opt,name=declinePaymentRequestMessage" json:"declinePaymentRequestMessage,omitempty"` + CancelPaymentRequestMessage *CancelPaymentRequestMessage `protobuf:"bytes,24,opt,name=cancelPaymentRequestMessage" json:"cancelPaymentRequestMessage,omitempty"` + TemplateMessage *TemplateMessage `protobuf:"bytes,25,opt,name=templateMessage" json:"templateMessage,omitempty"` + StickerMessage *StickerMessage `protobuf:"bytes,26,opt,name=stickerMessage" json:"stickerMessage,omitempty"` + GroupInviteMessage *GroupInviteMessage `protobuf:"bytes,28,opt,name=groupInviteMessage" json:"groupInviteMessage,omitempty"` + TemplateButtonReplyMessage *TemplateButtonReplyMessage `protobuf:"bytes,29,opt,name=templateButtonReplyMessage" json:"templateButtonReplyMessage,omitempty"` + ProductMessage *ProductMessage `protobuf:"bytes,30,opt,name=productMessage" json:"productMessage,omitempty"` + DeviceSentMessage *DeviceSentMessage `protobuf:"bytes,31,opt,name=deviceSentMessage" json:"deviceSentMessage,omitempty"` + MessageContextInfo *MessageContextInfo `protobuf:"bytes,35,opt,name=messageContextInfo" json:"messageContextInfo,omitempty"` + ListMessage *ListMessage `protobuf:"bytes,36,opt,name=listMessage" json:"listMessage,omitempty"` + ViewOnceMessage *FutureProofMessage `protobuf:"bytes,37,opt,name=viewOnceMessage" json:"viewOnceMessage,omitempty"` + OrderMessage *OrderMessage `protobuf:"bytes,38,opt,name=orderMessage" json:"orderMessage,omitempty"` + ListResponseMessage *ListResponseMessage `protobuf:"bytes,39,opt,name=listResponseMessage" json:"listResponseMessage,omitempty"` + EphemeralMessage *FutureProofMessage `protobuf:"bytes,40,opt,name=ephemeralMessage" json:"ephemeralMessage,omitempty"` + InvoiceMessage *InvoiceMessage `protobuf:"bytes,41,opt,name=invoiceMessage" json:"invoiceMessage,omitempty"` + ButtonsMessage *ButtonsMessage `protobuf:"bytes,42,opt,name=buttonsMessage" json:"buttonsMessage,omitempty"` + ButtonsResponseMessage *ButtonsResponseMessage `protobuf:"bytes,43,opt,name=buttonsResponseMessage" json:"buttonsResponseMessage,omitempty"` + PaymentInviteMessage *PaymentInviteMessage `protobuf:"bytes,44,opt,name=paymentInviteMessage" json:"paymentInviteMessage,omitempty"` + InteractiveMessage *InteractiveMessage `protobuf:"bytes,45,opt,name=interactiveMessage" json:"interactiveMessage,omitempty"` + ReactionMessage *ReactionMessage `protobuf:"bytes,46,opt,name=reactionMessage" json:"reactionMessage,omitempty"` + StickerSyncRmrMessage *StickerSyncRMRMessage `protobuf:"bytes,47,opt,name=stickerSyncRmrMessage" json:"stickerSyncRmrMessage,omitempty"` + InteractiveResponseMessage *InteractiveResponseMessage `protobuf:"bytes,48,opt,name=interactiveResponseMessage" json:"interactiveResponseMessage,omitempty"` + PollCreationMessage *PollCreationMessage `protobuf:"bytes,49,opt,name=pollCreationMessage" json:"pollCreationMessage,omitempty"` + PollUpdateMessage *PollUpdateMessage `protobuf:"bytes,50,opt,name=pollUpdateMessage" json:"pollUpdateMessage,omitempty"` } -func (x *DocumentMessage) Reset() { - *x = DocumentMessage{} +func (x *Message) Reset() { + *x = Message{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[83] + mi := &file_binary_proto_def_proto_msgTypes[99] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DocumentMessage) String() string { +func (x *Message) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DocumentMessage) ProtoMessage() {} +func (*Message) ProtoMessage() {} -func (x *DocumentMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[83] +func (x *Message) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[99] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10285,287 +11663,360 @@ func (x *DocumentMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DocumentMessage.ProtoReflect.Descriptor instead. -func (*DocumentMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{83} +// Deprecated: Use Message.ProtoReflect.Descriptor instead. +func (*Message) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{99} } -func (x *DocumentMessage) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url +func (x *Message) GetConversation() string { + if x != nil && x.Conversation != nil { + return *x.Conversation } return "" } -func (x *DocumentMessage) GetMimetype() string { - if x != nil && x.Mimetype != nil { - return *x.Mimetype +func (x *Message) GetSenderKeyDistributionMessage() *SenderKeyDistributionMessage { + if x != nil { + return x.SenderKeyDistributionMessage } - return "" + return nil } -func (x *DocumentMessage) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title +func (x *Message) GetImageMessage() *ImageMessage { + if x != nil { + return x.ImageMessage } - return "" + return nil } -func (x *DocumentMessage) GetFileSha256() []byte { +func (x *Message) GetContactMessage() *ContactMessage { if x != nil { - return x.FileSha256 + return x.ContactMessage } return nil } -func (x *DocumentMessage) GetFileLength() uint64 { - if x != nil && x.FileLength != nil { - return *x.FileLength +func (x *Message) GetLocationMessage() *LocationMessage { + if x != nil { + return x.LocationMessage } - return 0 + return nil } -func (x *DocumentMessage) GetPageCount() uint32 { - if x != nil && x.PageCount != nil { - return *x.PageCount +func (x *Message) GetExtendedTextMessage() *ExtendedTextMessage { + if x != nil { + return x.ExtendedTextMessage } - return 0 + return nil } -func (x *DocumentMessage) GetMediaKey() []byte { +func (x *Message) GetDocumentMessage() *DocumentMessage { if x != nil { - return x.MediaKey + return x.DocumentMessage } return nil } -func (x *DocumentMessage) GetFileName() string { - if x != nil && x.FileName != nil { - return *x.FileName +func (x *Message) GetAudioMessage() *AudioMessage { + if x != nil { + return x.AudioMessage } - return "" + return nil } -func (x *DocumentMessage) GetFileEncSha256() []byte { +func (x *Message) GetVideoMessage() *VideoMessage { if x != nil { - return x.FileEncSha256 + return x.VideoMessage } return nil } -func (x *DocumentMessage) GetDirectPath() string { - if x != nil && x.DirectPath != nil { - return *x.DirectPath +func (x *Message) GetCall() *Call { + if x != nil { + return x.Call } - return "" + return nil } -func (x *DocumentMessage) GetMediaKeyTimestamp() int64 { - if x != nil && x.MediaKeyTimestamp != nil { - return *x.MediaKeyTimestamp +func (x *Message) GetChat() *Chat { + if x != nil { + return x.Chat } - return 0 + return nil } -func (x *DocumentMessage) GetContactVcard() bool { - if x != nil && x.ContactVcard != nil { - return *x.ContactVcard +func (x *Message) GetProtocolMessage() *ProtocolMessage { + if x != nil { + return x.ProtocolMessage } - return false + return nil } -func (x *DocumentMessage) GetThumbnailDirectPath() string { - if x != nil && x.ThumbnailDirectPath != nil { - return *x.ThumbnailDirectPath +func (x *Message) GetContactsArrayMessage() *ContactsArrayMessage { + if x != nil { + return x.ContactsArrayMessage } - return "" + return nil } -func (x *DocumentMessage) GetThumbnailSha256() []byte { +func (x *Message) GetHighlyStructuredMessage() *HighlyStructuredMessage { if x != nil { - return x.ThumbnailSha256 + return x.HighlyStructuredMessage } return nil } -func (x *DocumentMessage) GetThumbnailEncSha256() []byte { +func (x *Message) GetFastRatchetKeySenderKeyDistributionMessage() *SenderKeyDistributionMessage { if x != nil { - return x.ThumbnailEncSha256 + return x.FastRatchetKeySenderKeyDistributionMessage } return nil } -func (x *DocumentMessage) GetJpegThumbnail() []byte { +func (x *Message) GetSendPaymentMessage() *SendPaymentMessage { if x != nil { - return x.JpegThumbnail + return x.SendPaymentMessage } return nil } -func (x *DocumentMessage) GetContextInfo() *ContextInfo { +func (x *Message) GetLiveLocationMessage() *LiveLocationMessage { if x != nil { - return x.ContextInfo + return x.LiveLocationMessage } return nil } -func (x *DocumentMessage) GetThumbnailHeight() uint32 { - if x != nil && x.ThumbnailHeight != nil { - return *x.ThumbnailHeight +func (x *Message) GetRequestPaymentMessage() *RequestPaymentMessage { + if x != nil { + return x.RequestPaymentMessage } - return 0 + return nil } -func (x *DocumentMessage) GetThumbnailWidth() uint32 { - if x != nil && x.ThumbnailWidth != nil { - return *x.ThumbnailWidth +func (x *Message) GetDeclinePaymentRequestMessage() *DeclinePaymentRequestMessage { + if x != nil { + return x.DeclinePaymentRequestMessage } - return 0 + return nil } -type AudioMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *Message) GetCancelPaymentRequestMessage() *CancelPaymentRequestMessage { + if x != nil { + return x.CancelPaymentRequestMessage + } + return nil +} - Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` - Mimetype *string `protobuf:"bytes,2,opt,name=mimetype" json:"mimetype,omitempty"` - FileSha256 []byte `protobuf:"bytes,3,opt,name=fileSha256" json:"fileSha256,omitempty"` - FileLength *uint64 `protobuf:"varint,4,opt,name=fileLength" json:"fileLength,omitempty"` - Seconds *uint32 `protobuf:"varint,5,opt,name=seconds" json:"seconds,omitempty"` - Ptt *bool `protobuf:"varint,6,opt,name=ptt" json:"ptt,omitempty"` - MediaKey []byte `protobuf:"bytes,7,opt,name=mediaKey" json:"mediaKey,omitempty"` - FileEncSha256 []byte `protobuf:"bytes,8,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` - DirectPath *string `protobuf:"bytes,9,opt,name=directPath" json:"directPath,omitempty"` - MediaKeyTimestamp *int64 `protobuf:"varint,10,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` - StreamingSidecar []byte `protobuf:"bytes,18,opt,name=streamingSidecar" json:"streamingSidecar,omitempty"` - Waveform []byte `protobuf:"bytes,19,opt,name=waveform" json:"waveform,omitempty"` +func (x *Message) GetTemplateMessage() *TemplateMessage { + if x != nil { + return x.TemplateMessage + } + return nil } -func (x *AudioMessage) Reset() { - *x = AudioMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Message) GetStickerMessage() *StickerMessage { + if x != nil { + return x.StickerMessage } + return nil } -func (x *AudioMessage) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *Message) GetGroupInviteMessage() *GroupInviteMessage { + if x != nil { + return x.GroupInviteMessage + } + return nil } -func (*AudioMessage) ProtoMessage() {} +func (x *Message) GetTemplateButtonReplyMessage() *TemplateButtonReplyMessage { + if x != nil { + return x.TemplateButtonReplyMessage + } + return nil +} -func (x *AudioMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[84] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Message) GetProductMessage() *ProductMessage { + if x != nil { + return x.ProductMessage } - return mi.MessageOf(x) + return nil } -// Deprecated: Use AudioMessage.ProtoReflect.Descriptor instead. -func (*AudioMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{84} +func (x *Message) GetDeviceSentMessage() *DeviceSentMessage { + if x != nil { + return x.DeviceSentMessage + } + return nil } -func (x *AudioMessage) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url +func (x *Message) GetMessageContextInfo() *MessageContextInfo { + if x != nil { + return x.MessageContextInfo } - return "" + return nil } -func (x *AudioMessage) GetMimetype() string { - if x != nil && x.Mimetype != nil { - return *x.Mimetype +func (x *Message) GetListMessage() *ListMessage { + if x != nil { + return x.ListMessage } - return "" + return nil } -func (x *AudioMessage) GetFileSha256() []byte { +func (x *Message) GetViewOnceMessage() *FutureProofMessage { if x != nil { - return x.FileSha256 + return x.ViewOnceMessage } return nil } -func (x *AudioMessage) GetFileLength() uint64 { - if x != nil && x.FileLength != nil { - return *x.FileLength +func (x *Message) GetOrderMessage() *OrderMessage { + if x != nil { + return x.OrderMessage } - return 0 + return nil } -func (x *AudioMessage) GetSeconds() uint32 { - if x != nil && x.Seconds != nil { - return *x.Seconds +func (x *Message) GetListResponseMessage() *ListResponseMessage { + if x != nil { + return x.ListResponseMessage } - return 0 + return nil } -func (x *AudioMessage) GetPtt() bool { - if x != nil && x.Ptt != nil { - return *x.Ptt +func (x *Message) GetEphemeralMessage() *FutureProofMessage { + if x != nil { + return x.EphemeralMessage } - return false + return nil } -func (x *AudioMessage) GetMediaKey() []byte { +func (x *Message) GetInvoiceMessage() *InvoiceMessage { if x != nil { - return x.MediaKey + return x.InvoiceMessage } return nil } -func (x *AudioMessage) GetFileEncSha256() []byte { +func (x *Message) GetButtonsMessage() *ButtonsMessage { if x != nil { - return x.FileEncSha256 + return x.ButtonsMessage } return nil } -func (x *AudioMessage) GetDirectPath() string { - if x != nil && x.DirectPath != nil { - return *x.DirectPath +func (x *Message) GetButtonsResponseMessage() *ButtonsResponseMessage { + if x != nil { + return x.ButtonsResponseMessage } - return "" + return nil } -func (x *AudioMessage) GetMediaKeyTimestamp() int64 { - if x != nil && x.MediaKeyTimestamp != nil { - return *x.MediaKeyTimestamp +func (x *Message) GetPaymentInviteMessage() *PaymentInviteMessage { + if x != nil { + return x.PaymentInviteMessage } - return 0 + return nil } -func (x *AudioMessage) GetContextInfo() *ContextInfo { +func (x *Message) GetInteractiveMessage() *InteractiveMessage { if x != nil { - return x.ContextInfo + return x.InteractiveMessage } return nil } -func (x *AudioMessage) GetStreamingSidecar() []byte { +func (x *Message) GetReactionMessage() *ReactionMessage { if x != nil { - return x.StreamingSidecar + return x.ReactionMessage } return nil } -func (x *AudioMessage) GetWaveform() []byte { +func (x *Message) GetStickerSyncRmrMessage() *StickerSyncRMRMessage { if x != nil { - return x.Waveform + return x.StickerSyncRmrMessage + } + return nil +} + +func (x *Message) GetInteractiveResponseMessage() *InteractiveResponseMessage { + if x != nil { + return x.InteractiveResponseMessage } return nil } +func (x *Message) GetPollCreationMessage() *PollCreationMessage { + if x != nil { + return x.PollCreationMessage + } + return nil +} + +func (x *Message) GetPollUpdateMessage() *PollUpdateMessage { + if x != nil { + return x.PollUpdateMessage + } + return nil +} + +type MessageContextInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DeviceListMetadata *DeviceListMetadata `protobuf:"bytes,1,opt,name=deviceListMetadata" json:"deviceListMetadata,omitempty"` + DeviceListMetadataVersion *int32 `protobuf:"varint,2,opt,name=deviceListMetadataVersion" json:"deviceListMetadataVersion,omitempty"` +} + +func (x *MessageContextInfo) Reset() { + *x = MessageContextInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MessageContextInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessageContextInfo) ProtoMessage() {} + +func (x *MessageContextInfo) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[100] + 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 MessageContextInfo.ProtoReflect.Descriptor instead. +func (*MessageContextInfo) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{100} +} + +func (x *MessageContextInfo) GetDeviceListMetadata() *DeviceListMetadata { + if x != nil { + return x.DeviceListMetadata + } + return nil +} + +func (x *MessageContextInfo) GetDeviceListMetadataVersion() int32 { + if x != nil && x.DeviceListMetadataVersion != nil { + return *x.DeviceListMetadataVersion + } + return 0 +} + type VideoMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -10599,7 +12050,7 @@ type VideoMessage struct { func (x *VideoMessage) Reset() { *x = VideoMessage{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[85] + mi := &file_binary_proto_def_proto_msgTypes[101] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10612,7 +12063,7 @@ func (x *VideoMessage) String() string { func (*VideoMessage) ProtoMessage() {} func (x *VideoMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[85] + mi := &file_binary_proto_def_proto_msgTypes[101] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10625,7 +12076,7 @@ func (x *VideoMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use VideoMessage.ProtoReflect.Descriptor instead. func (*VideoMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{85} + return file_binary_proto_def_proto_rawDescGZIP(), []int{101} } func (x *VideoMessage) GetUrl() string { @@ -10789,34 +12240,36 @@ func (x *VideoMessage) GetStaticUrl() string { return "" } -type Call struct { +type TemplateMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - CallKey []byte `protobuf:"bytes,1,opt,name=callKey" json:"callKey,omitempty"` - ConversionSource *string `protobuf:"bytes,2,opt,name=conversionSource" json:"conversionSource,omitempty"` - ConversionData []byte `protobuf:"bytes,3,opt,name=conversionData" json:"conversionData,omitempty"` - ConversionDelaySeconds *uint32 `protobuf:"varint,4,opt,name=conversionDelaySeconds" json:"conversionDelaySeconds,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,3,opt,name=contextInfo" json:"contextInfo,omitempty"` + HydratedTemplate *HydratedFourRowTemplate `protobuf:"bytes,4,opt,name=hydratedTemplate" json:"hydratedTemplate,omitempty"` + // Types that are assignable to Format: + // *TemplateMessage_FourRowTemplate + // *TemplateMessage_HydratedFourRowTemplate + Format isTemplateMessage_Format `protobuf_oneof:"format"` } -func (x *Call) Reset() { - *x = Call{} +func (x *TemplateMessage) Reset() { + *x = TemplateMessage{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[86] + mi := &file_binary_proto_def_proto_msgTypes[102] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Call) String() string { +func (x *TemplateMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Call) ProtoMessage() {} +func (*TemplateMessage) ProtoMessage() {} -func (x *Call) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[86] +func (x *TemplateMessage) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[102] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10827,128 +12280,97 @@ func (x *Call) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Call.ProtoReflect.Descriptor instead. -func (*Call) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{86} +// Deprecated: Use TemplateMessage.ProtoReflect.Descriptor instead. +func (*TemplateMessage) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{102} } -func (x *Call) GetCallKey() []byte { +func (x *TemplateMessage) GetContextInfo() *ContextInfo { if x != nil { - return x.CallKey + return x.ContextInfo } return nil } -func (x *Call) GetConversionSource() string { - if x != nil && x.ConversionSource != nil { - return *x.ConversionSource - } - return "" -} - -func (x *Call) GetConversionData() []byte { +func (x *TemplateMessage) GetHydratedTemplate() *HydratedFourRowTemplate { if x != nil { - return x.ConversionData + return x.HydratedTemplate } return nil } -func (x *Call) GetConversionDelaySeconds() uint32 { - if x != nil && x.ConversionDelaySeconds != nil { - return *x.ConversionDelaySeconds +func (m *TemplateMessage) GetFormat() isTemplateMessage_Format { + if m != nil { + return m.Format } - return 0 + return nil } -type Chat struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DisplayName *string `protobuf:"bytes,1,opt,name=displayName" json:"displayName,omitempty"` - Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` +func (x *TemplateMessage) GetFourRowTemplate() *FourRowTemplate { + if x, ok := x.GetFormat().(*TemplateMessage_FourRowTemplate); ok { + return x.FourRowTemplate + } + return nil } -func (x *Chat) Reset() { - *x = Chat{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[87] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *TemplateMessage) GetHydratedFourRowTemplate() *HydratedFourRowTemplate { + if x, ok := x.GetFormat().(*TemplateMessage_HydratedFourRowTemplate); ok { + return x.HydratedFourRowTemplate } + return nil } -func (x *Chat) String() string { - return protoimpl.X.MessageStringOf(x) +type isTemplateMessage_Format interface { + isTemplateMessage_Format() } -func (*Chat) ProtoMessage() {} - -func (x *Chat) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[87] - 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) +type TemplateMessage_FourRowTemplate struct { + FourRowTemplate *FourRowTemplate `protobuf:"bytes,1,opt,name=fourRowTemplate,oneof"` } -// Deprecated: Use Chat.ProtoReflect.Descriptor instead. -func (*Chat) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{87} +type TemplateMessage_HydratedFourRowTemplate struct { + HydratedFourRowTemplate *HydratedFourRowTemplate `protobuf:"bytes,2,opt,name=hydratedFourRowTemplate,oneof"` } -func (x *Chat) GetDisplayName() string { - if x != nil && x.DisplayName != nil { - return *x.DisplayName - } - return "" -} +func (*TemplateMessage_FourRowTemplate) isTemplateMessage_Format() {} -func (x *Chat) GetId() string { - if x != nil && x.Id != nil { - return *x.Id - } - return "" -} +func (*TemplateMessage_HydratedFourRowTemplate) isTemplateMessage_Format() {} -type ProtocolMessage struct { +type HydratedFourRowTemplate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` - Type *ProtocolMessage_ProtocolMessageType `protobuf:"varint,2,opt,name=type,enum=proto.ProtocolMessage_ProtocolMessageType" json:"type,omitempty"` - EphemeralExpiration *uint32 `protobuf:"varint,4,opt,name=ephemeralExpiration" json:"ephemeralExpiration,omitempty"` - EphemeralSettingTimestamp *int64 `protobuf:"varint,5,opt,name=ephemeralSettingTimestamp" json:"ephemeralSettingTimestamp,omitempty"` - HistorySyncNotification *HistorySyncNotification `protobuf:"bytes,6,opt,name=historySyncNotification" json:"historySyncNotification,omitempty"` - AppStateSyncKeyShare *AppStateSyncKeyShare `protobuf:"bytes,7,opt,name=appStateSyncKeyShare" json:"appStateSyncKeyShare,omitempty"` - AppStateSyncKeyRequest *AppStateSyncKeyRequest `protobuf:"bytes,8,opt,name=appStateSyncKeyRequest" json:"appStateSyncKeyRequest,omitempty"` - InitialSecurityNotificationSettingSync *InitialSecurityNotificationSettingSync `protobuf:"bytes,9,opt,name=initialSecurityNotificationSettingSync" json:"initialSecurityNotificationSettingSync,omitempty"` - AppStateFatalExceptionNotification *AppStateFatalExceptionNotification `protobuf:"bytes,10,opt,name=appStateFatalExceptionNotification" json:"appStateFatalExceptionNotification,omitempty"` - DisappearingMode *DisappearingMode `protobuf:"bytes,11,opt,name=disappearingMode" json:"disappearingMode,omitempty"` + HydratedContentText *string `protobuf:"bytes,6,opt,name=hydratedContentText" json:"hydratedContentText,omitempty"` + HydratedFooterText *string `protobuf:"bytes,7,opt,name=hydratedFooterText" json:"hydratedFooterText,omitempty"` + HydratedButtons []*HydratedTemplateButton `protobuf:"bytes,8,rep,name=hydratedButtons" json:"hydratedButtons,omitempty"` + TemplateId *string `protobuf:"bytes,9,opt,name=templateId" json:"templateId,omitempty"` + // Types that are assignable to Title: + // *HydratedFourRowTemplate_DocumentMessage + // *HydratedFourRowTemplate_HydratedTitleText + // *HydratedFourRowTemplate_ImageMessage + // *HydratedFourRowTemplate_VideoMessage + // *HydratedFourRowTemplate_LocationMessage + Title isHydratedFourRowTemplate_Title `protobuf_oneof:"title"` } -func (x *ProtocolMessage) Reset() { - *x = ProtocolMessage{} +func (x *HydratedFourRowTemplate) Reset() { + *x = HydratedFourRowTemplate{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[88] + mi := &file_binary_proto_def_proto_msgTypes[103] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ProtocolMessage) String() string { +func (x *HydratedFourRowTemplate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ProtocolMessage) ProtoMessage() {} +func (*HydratedFourRowTemplate) ProtoMessage() {} -func (x *ProtocolMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[88] +func (x *HydratedFourRowTemplate) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[103] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10959,113 +12381,149 @@ func (x *ProtocolMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ProtocolMessage.ProtoReflect.Descriptor instead. -func (*ProtocolMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{88} +// Deprecated: Use HydratedFourRowTemplate.ProtoReflect.Descriptor instead. +func (*HydratedFourRowTemplate) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{103} } -func (x *ProtocolMessage) GetKey() *MessageKey { - if x != nil { - return x.Key +func (x *HydratedFourRowTemplate) GetHydratedContentText() string { + if x != nil && x.HydratedContentText != nil { + return *x.HydratedContentText } - return nil + return "" } -func (x *ProtocolMessage) GetType() ProtocolMessage_ProtocolMessageType { - if x != nil && x.Type != nil { - return *x.Type +func (x *HydratedFourRowTemplate) GetHydratedFooterText() string { + if x != nil && x.HydratedFooterText != nil { + return *x.HydratedFooterText } - return ProtocolMessage_REVOKE + return "" } -func (x *ProtocolMessage) GetEphemeralExpiration() uint32 { - if x != nil && x.EphemeralExpiration != nil { - return *x.EphemeralExpiration +func (x *HydratedFourRowTemplate) GetHydratedButtons() []*HydratedTemplateButton { + if x != nil { + return x.HydratedButtons } - return 0 + return nil } -func (x *ProtocolMessage) GetEphemeralSettingTimestamp() int64 { - if x != nil && x.EphemeralSettingTimestamp != nil { - return *x.EphemeralSettingTimestamp +func (x *HydratedFourRowTemplate) GetTemplateId() string { + if x != nil && x.TemplateId != nil { + return *x.TemplateId } - return 0 + return "" } -func (x *ProtocolMessage) GetHistorySyncNotification() *HistorySyncNotification { - if x != nil { - return x.HistorySyncNotification +func (m *HydratedFourRowTemplate) GetTitle() isHydratedFourRowTemplate_Title { + if m != nil { + return m.Title } return nil } -func (x *ProtocolMessage) GetAppStateSyncKeyShare() *AppStateSyncKeyShare { - if x != nil { - return x.AppStateSyncKeyShare +func (x *HydratedFourRowTemplate) GetDocumentMessage() *DocumentMessage { + if x, ok := x.GetTitle().(*HydratedFourRowTemplate_DocumentMessage); ok { + return x.DocumentMessage } return nil } -func (x *ProtocolMessage) GetAppStateSyncKeyRequest() *AppStateSyncKeyRequest { - if x != nil { - return x.AppStateSyncKeyRequest +func (x *HydratedFourRowTemplate) GetHydratedTitleText() string { + if x, ok := x.GetTitle().(*HydratedFourRowTemplate_HydratedTitleText); ok { + return x.HydratedTitleText } - return nil + return "" } -func (x *ProtocolMessage) GetInitialSecurityNotificationSettingSync() *InitialSecurityNotificationSettingSync { - if x != nil { - return x.InitialSecurityNotificationSettingSync +func (x *HydratedFourRowTemplate) GetImageMessage() *ImageMessage { + if x, ok := x.GetTitle().(*HydratedFourRowTemplate_ImageMessage); ok { + return x.ImageMessage } return nil } -func (x *ProtocolMessage) GetAppStateFatalExceptionNotification() *AppStateFatalExceptionNotification { - if x != nil { - return x.AppStateFatalExceptionNotification +func (x *HydratedFourRowTemplate) GetVideoMessage() *VideoMessage { + if x, ok := x.GetTitle().(*HydratedFourRowTemplate_VideoMessage); ok { + return x.VideoMessage } return nil } -func (x *ProtocolMessage) GetDisappearingMode() *DisappearingMode { - if x != nil { - return x.DisappearingMode +func (x *HydratedFourRowTemplate) GetLocationMessage() *LocationMessage { + if x, ok := x.GetTitle().(*HydratedFourRowTemplate_LocationMessage); ok { + return x.LocationMessage } return nil } -type HistorySyncNotification struct { +type isHydratedFourRowTemplate_Title interface { + isHydratedFourRowTemplate_Title() +} + +type HydratedFourRowTemplate_DocumentMessage struct { + DocumentMessage *DocumentMessage `protobuf:"bytes,1,opt,name=documentMessage,oneof"` +} + +type HydratedFourRowTemplate_HydratedTitleText struct { + HydratedTitleText string `protobuf:"bytes,2,opt,name=hydratedTitleText,oneof"` +} + +type HydratedFourRowTemplate_ImageMessage struct { + ImageMessage *ImageMessage `protobuf:"bytes,3,opt,name=imageMessage,oneof"` +} + +type HydratedFourRowTemplate_VideoMessage struct { + VideoMessage *VideoMessage `protobuf:"bytes,4,opt,name=videoMessage,oneof"` +} + +type HydratedFourRowTemplate_LocationMessage struct { + LocationMessage *LocationMessage `protobuf:"bytes,5,opt,name=locationMessage,oneof"` +} + +func (*HydratedFourRowTemplate_DocumentMessage) isHydratedFourRowTemplate_Title() {} + +func (*HydratedFourRowTemplate_HydratedTitleText) isHydratedFourRowTemplate_Title() {} + +func (*HydratedFourRowTemplate_ImageMessage) isHydratedFourRowTemplate_Title() {} + +func (*HydratedFourRowTemplate_VideoMessage) isHydratedFourRowTemplate_Title() {} + +func (*HydratedFourRowTemplate_LocationMessage) isHydratedFourRowTemplate_Title() {} + +type FourRowTemplate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - FileSha256 []byte `protobuf:"bytes,1,opt,name=fileSha256" json:"fileSha256,omitempty"` - FileLength *uint64 `protobuf:"varint,2,opt,name=fileLength" json:"fileLength,omitempty"` - MediaKey []byte `protobuf:"bytes,3,opt,name=mediaKey" json:"mediaKey,omitempty"` - FileEncSha256 []byte `protobuf:"bytes,4,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` - DirectPath *string `protobuf:"bytes,5,opt,name=directPath" json:"directPath,omitempty"` - SyncType *HistorySyncNotification_HistorySyncNotificationHistorySyncType `protobuf:"varint,6,opt,name=syncType,enum=proto.HistorySyncNotification_HistorySyncNotificationHistorySyncType" json:"syncType,omitempty"` - ChunkOrder *uint32 `protobuf:"varint,7,opt,name=chunkOrder" json:"chunkOrder,omitempty"` - OriginalMessageId *string `protobuf:"bytes,8,opt,name=originalMessageId" json:"originalMessageId,omitempty"` + Content *HighlyStructuredMessage `protobuf:"bytes,6,opt,name=content" json:"content,omitempty"` + Footer *HighlyStructuredMessage `protobuf:"bytes,7,opt,name=footer" json:"footer,omitempty"` + Buttons []*TemplateButton `protobuf:"bytes,8,rep,name=buttons" json:"buttons,omitempty"` + // Types that are assignable to Title: + // *FourRowTemplate_DocumentMessage + // *FourRowTemplate_HighlyStructuredMessage + // *FourRowTemplate_ImageMessage + // *FourRowTemplate_VideoMessage + // *FourRowTemplate_LocationMessage + Title isFourRowTemplate_Title `protobuf_oneof:"title"` } -func (x *HistorySyncNotification) Reset() { - *x = HistorySyncNotification{} +func (x *FourRowTemplate) Reset() { + *x = FourRowTemplate{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[89] + mi := &file_binary_proto_def_proto_msgTypes[104] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HistorySyncNotification) String() string { +func (x *FourRowTemplate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HistorySyncNotification) ProtoMessage() {} +func (*FourRowTemplate) ProtoMessage() {} -func (x *HistorySyncNotification) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[89] +func (x *FourRowTemplate) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[104] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11076,147 +12534,136 @@ func (x *HistorySyncNotification) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HistorySyncNotification.ProtoReflect.Descriptor instead. -func (*HistorySyncNotification) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{89} +// Deprecated: Use FourRowTemplate.ProtoReflect.Descriptor instead. +func (*FourRowTemplate) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{104} } -func (x *HistorySyncNotification) GetFileSha256() []byte { +func (x *FourRowTemplate) GetContent() *HighlyStructuredMessage { if x != nil { - return x.FileSha256 + return x.Content } return nil } -func (x *HistorySyncNotification) GetFileLength() uint64 { - if x != nil && x.FileLength != nil { - return *x.FileLength - } - return 0 -} - -func (x *HistorySyncNotification) GetMediaKey() []byte { +func (x *FourRowTemplate) GetFooter() *HighlyStructuredMessage { if x != nil { - return x.MediaKey + return x.Footer } return nil } -func (x *HistorySyncNotification) GetFileEncSha256() []byte { +func (x *FourRowTemplate) GetButtons() []*TemplateButton { if x != nil { - return x.FileEncSha256 + return x.Buttons } return nil } -func (x *HistorySyncNotification) GetDirectPath() string { - if x != nil && x.DirectPath != nil { - return *x.DirectPath +func (m *FourRowTemplate) GetTitle() isFourRowTemplate_Title { + if m != nil { + return m.Title } - return "" + return nil } -func (x *HistorySyncNotification) GetSyncType() HistorySyncNotification_HistorySyncNotificationHistorySyncType { - if x != nil && x.SyncType != nil { - return *x.SyncType +func (x *FourRowTemplate) GetDocumentMessage() *DocumentMessage { + if x, ok := x.GetTitle().(*FourRowTemplate_DocumentMessage); ok { + return x.DocumentMessage } - return HistorySyncNotification_INITIAL_BOOTSTRAP + return nil } -func (x *HistorySyncNotification) GetChunkOrder() uint32 { - if x != nil && x.ChunkOrder != nil { - return *x.ChunkOrder +func (x *FourRowTemplate) GetHighlyStructuredMessage() *HighlyStructuredMessage { + if x, ok := x.GetTitle().(*FourRowTemplate_HighlyStructuredMessage); ok { + return x.HighlyStructuredMessage } - return 0 + return nil } -func (x *HistorySyncNotification) GetOriginalMessageId() string { - if x != nil && x.OriginalMessageId != nil { - return *x.OriginalMessageId +func (x *FourRowTemplate) GetImageMessage() *ImageMessage { + if x, ok := x.GetTitle().(*FourRowTemplate_ImageMessage); ok { + return x.ImageMessage } - return "" + return nil } -type AppStateSyncKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - KeyId *AppStateSyncKeyId `protobuf:"bytes,1,opt,name=keyId" json:"keyId,omitempty"` - KeyData *AppStateSyncKeyData `protobuf:"bytes,2,opt,name=keyData" json:"keyData,omitempty"` +func (x *FourRowTemplate) GetVideoMessage() *VideoMessage { + if x, ok := x.GetTitle().(*FourRowTemplate_VideoMessage); ok { + return x.VideoMessage + } + return nil } -func (x *AppStateSyncKey) Reset() { - *x = AppStateSyncKey{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[90] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *FourRowTemplate) GetLocationMessage() *LocationMessage { + if x, ok := x.GetTitle().(*FourRowTemplate_LocationMessage); ok { + return x.LocationMessage } + return nil } -func (x *AppStateSyncKey) String() string { - return protoimpl.X.MessageStringOf(x) +type isFourRowTemplate_Title interface { + isFourRowTemplate_Title() } -func (*AppStateSyncKey) ProtoMessage() {} +type FourRowTemplate_DocumentMessage struct { + DocumentMessage *DocumentMessage `protobuf:"bytes,1,opt,name=documentMessage,oneof"` +} -func (x *AppStateSyncKey) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[90] - 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) +type FourRowTemplate_HighlyStructuredMessage struct { + HighlyStructuredMessage *HighlyStructuredMessage `protobuf:"bytes,2,opt,name=highlyStructuredMessage,oneof"` } -// Deprecated: Use AppStateSyncKey.ProtoReflect.Descriptor instead. -func (*AppStateSyncKey) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{90} +type FourRowTemplate_ImageMessage struct { + ImageMessage *ImageMessage `protobuf:"bytes,3,opt,name=imageMessage,oneof"` } -func (x *AppStateSyncKey) GetKeyId() *AppStateSyncKeyId { - if x != nil { - return x.KeyId - } - return nil +type FourRowTemplate_VideoMessage struct { + VideoMessage *VideoMessage `protobuf:"bytes,4,opt,name=videoMessage,oneof"` } -func (x *AppStateSyncKey) GetKeyData() *AppStateSyncKeyData { - if x != nil { - return x.KeyData - } - return nil +type FourRowTemplate_LocationMessage struct { + LocationMessage *LocationMessage `protobuf:"bytes,5,opt,name=locationMessage,oneof"` } -type AppStateSyncKeyId struct { +func (*FourRowTemplate_DocumentMessage) isFourRowTemplate_Title() {} + +func (*FourRowTemplate_HighlyStructuredMessage) isFourRowTemplate_Title() {} + +func (*FourRowTemplate_ImageMessage) isFourRowTemplate_Title() {} + +func (*FourRowTemplate_VideoMessage) isFourRowTemplate_Title() {} + +func (*FourRowTemplate_LocationMessage) isFourRowTemplate_Title() {} + +type TemplateButtonReplyMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - KeyId []byte `protobuf:"bytes,1,opt,name=keyId" json:"keyId,omitempty"` + SelectedId *string `protobuf:"bytes,1,opt,name=selectedId" json:"selectedId,omitempty"` + SelectedDisplayText *string `protobuf:"bytes,2,opt,name=selectedDisplayText" json:"selectedDisplayText,omitempty"` + ContextInfo *ContextInfo `protobuf:"bytes,3,opt,name=contextInfo" json:"contextInfo,omitempty"` + SelectedIndex *uint32 `protobuf:"varint,4,opt,name=selectedIndex" json:"selectedIndex,omitempty"` } -func (x *AppStateSyncKeyId) Reset() { - *x = AppStateSyncKeyId{} +func (x *TemplateButtonReplyMessage) Reset() { + *x = TemplateButtonReplyMessage{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[91] + mi := &file_binary_proto_def_proto_msgTypes[105] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AppStateSyncKeyId) String() string { +func (x *TemplateButtonReplyMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AppStateSyncKeyId) ProtoMessage() {} +func (*TemplateButtonReplyMessage) ProtoMessage() {} -func (x *AppStateSyncKeyId) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[91] +func (x *TemplateButtonReplyMessage) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[105] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11227,45 +12674,66 @@ func (x *AppStateSyncKeyId) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AppStateSyncKeyId.ProtoReflect.Descriptor instead. -func (*AppStateSyncKeyId) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{91} +// Deprecated: Use TemplateButtonReplyMessage.ProtoReflect.Descriptor instead. +func (*TemplateButtonReplyMessage) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{105} } -func (x *AppStateSyncKeyId) GetKeyId() []byte { +func (x *TemplateButtonReplyMessage) GetSelectedId() string { + if x != nil && x.SelectedId != nil { + return *x.SelectedId + } + return "" +} + +func (x *TemplateButtonReplyMessage) GetSelectedDisplayText() string { + if x != nil && x.SelectedDisplayText != nil { + return *x.SelectedDisplayText + } + return "" +} + +func (x *TemplateButtonReplyMessage) GetContextInfo() *ContextInfo { if x != nil { - return x.KeyId + return x.ContextInfo } return nil } -type AppStateSyncKeyFingerprint struct { +func (x *TemplateButtonReplyMessage) GetSelectedIndex() uint32 { + if x != nil && x.SelectedIndex != nil { + return *x.SelectedIndex + } + return 0 +} + +type StickerSyncRMRMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - RawId *uint32 `protobuf:"varint,1,opt,name=rawId" json:"rawId,omitempty"` - CurrentIndex *uint32 `protobuf:"varint,2,opt,name=currentIndex" json:"currentIndex,omitempty"` - DeviceIndexes []uint32 `protobuf:"varint,3,rep,packed,name=deviceIndexes" json:"deviceIndexes,omitempty"` + Filehash []string `protobuf:"bytes,1,rep,name=filehash" json:"filehash,omitempty"` + RmrSource *string `protobuf:"bytes,2,opt,name=rmrSource" json:"rmrSource,omitempty"` + RequestTimestamp *int64 `protobuf:"varint,3,opt,name=requestTimestamp" json:"requestTimestamp,omitempty"` } -func (x *AppStateSyncKeyFingerprint) Reset() { - *x = AppStateSyncKeyFingerprint{} +func (x *StickerSyncRMRMessage) Reset() { + *x = StickerSyncRMRMessage{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[92] + mi := &file_binary_proto_def_proto_msgTypes[106] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AppStateSyncKeyFingerprint) String() string { +func (x *StickerSyncRMRMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AppStateSyncKeyFingerprint) ProtoMessage() {} +func (*StickerSyncRMRMessage) ProtoMessage() {} -func (x *AppStateSyncKeyFingerprint) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[92] +func (x *StickerSyncRMRMessage) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[106] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11276,59 +12744,58 @@ func (x *AppStateSyncKeyFingerprint) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AppStateSyncKeyFingerprint.ProtoReflect.Descriptor instead. -func (*AppStateSyncKeyFingerprint) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{92} +// Deprecated: Use StickerSyncRMRMessage.ProtoReflect.Descriptor instead. +func (*StickerSyncRMRMessage) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{106} } -func (x *AppStateSyncKeyFingerprint) GetRawId() uint32 { - if x != nil && x.RawId != nil { - return *x.RawId +func (x *StickerSyncRMRMessage) GetFilehash() []string { + if x != nil { + return x.Filehash } - return 0 + return nil } -func (x *AppStateSyncKeyFingerprint) GetCurrentIndex() uint32 { - if x != nil && x.CurrentIndex != nil { - return *x.CurrentIndex +func (x *StickerSyncRMRMessage) GetRmrSource() string { + if x != nil && x.RmrSource != nil { + return *x.RmrSource } - return 0 + return "" } -func (x *AppStateSyncKeyFingerprint) GetDeviceIndexes() []uint32 { - if x != nil { - return x.DeviceIndexes +func (x *StickerSyncRMRMessage) GetRequestTimestamp() int64 { + if x != nil && x.RequestTimestamp != nil { + return *x.RequestTimestamp } - return nil + return 0 } -type AppStateSyncKeyData struct { +type EphemeralSetting struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - KeyData []byte `protobuf:"bytes,1,opt,name=keyData" json:"keyData,omitempty"` - Fingerprint *AppStateSyncKeyFingerprint `protobuf:"bytes,2,opt,name=fingerprint" json:"fingerprint,omitempty"` - Timestamp *int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` + Duration *int32 `protobuf:"fixed32,1,opt,name=duration" json:"duration,omitempty"` + Timestamp *int64 `protobuf:"fixed64,2,opt,name=timestamp" json:"timestamp,omitempty"` } -func (x *AppStateSyncKeyData) Reset() { - *x = AppStateSyncKeyData{} +func (x *EphemeralSetting) Reset() { + *x = EphemeralSetting{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[93] + mi := &file_binary_proto_def_proto_msgTypes[107] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AppStateSyncKeyData) String() string { +func (x *EphemeralSetting) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AppStateSyncKeyData) ProtoMessage() {} +func (*EphemeralSetting) ProtoMessage() {} -func (x *AppStateSyncKeyData) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[93] +func (x *EphemeralSetting) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[107] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11339,57 +12806,51 @@ func (x *AppStateSyncKeyData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AppStateSyncKeyData.ProtoReflect.Descriptor instead. -func (*AppStateSyncKeyData) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{93} -} - -func (x *AppStateSyncKeyData) GetKeyData() []byte { - if x != nil { - return x.KeyData - } - return nil +// Deprecated: Use EphemeralSetting.ProtoReflect.Descriptor instead. +func (*EphemeralSetting) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{107} } -func (x *AppStateSyncKeyData) GetFingerprint() *AppStateSyncKeyFingerprint { - if x != nil { - return x.Fingerprint +func (x *EphemeralSetting) GetDuration() int32 { + if x != nil && x.Duration != nil { + return *x.Duration } - return nil + return 0 } -func (x *AppStateSyncKeyData) GetTimestamp() int64 { +func (x *EphemeralSetting) GetTimestamp() int64 { if x != nil && x.Timestamp != nil { return *x.Timestamp } return 0 } -type AppStateSyncKeyShare struct { +type WallpaperSettings struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Keys []*AppStateSyncKey `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"` + Filename *string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` + Opacity *uint32 `protobuf:"varint,2,opt,name=opacity" json:"opacity,omitempty"` } -func (x *AppStateSyncKeyShare) Reset() { - *x = AppStateSyncKeyShare{} +func (x *WallpaperSettings) Reset() { + *x = WallpaperSettings{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[94] + mi := &file_binary_proto_def_proto_msgTypes[108] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AppStateSyncKeyShare) String() string { +func (x *WallpaperSettings) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AppStateSyncKeyShare) ProtoMessage() {} +func (*WallpaperSettings) ProtoMessage() {} -func (x *AppStateSyncKeyShare) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[94] +func (x *WallpaperSettings) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[108] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11400,43 +12861,51 @@ func (x *AppStateSyncKeyShare) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AppStateSyncKeyShare.ProtoReflect.Descriptor instead. -func (*AppStateSyncKeyShare) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{94} +// Deprecated: Use WallpaperSettings.ProtoReflect.Descriptor instead. +func (*WallpaperSettings) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{108} } -func (x *AppStateSyncKeyShare) GetKeys() []*AppStateSyncKey { - if x != nil { - return x.Keys +func (x *WallpaperSettings) GetFilename() string { + if x != nil && x.Filename != nil { + return *x.Filename } - return nil + return "" } -type AppStateSyncKeyRequest struct { +func (x *WallpaperSettings) GetOpacity() uint32 { + if x != nil && x.Opacity != nil { + return *x.Opacity + } + return 0 +} + +type Pushname struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - KeyIds []*AppStateSyncKeyId `protobuf:"bytes,1,rep,name=keyIds" json:"keyIds,omitempty"` + Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + Pushname *string `protobuf:"bytes,2,opt,name=pushname" json:"pushname,omitempty"` } -func (x *AppStateSyncKeyRequest) Reset() { - *x = AppStateSyncKeyRequest{} +func (x *Pushname) Reset() { + *x = Pushname{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[95] + mi := &file_binary_proto_def_proto_msgTypes[109] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AppStateSyncKeyRequest) String() string { +func (x *Pushname) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AppStateSyncKeyRequest) ProtoMessage() {} +func (*Pushname) ProtoMessage() {} -func (x *AppStateSyncKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[95] +func (x *Pushname) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[109] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11447,44 +12916,58 @@ func (x *AppStateSyncKeyRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AppStateSyncKeyRequest.ProtoReflect.Descriptor instead. -func (*AppStateSyncKeyRequest) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{95} +// Deprecated: Use Pushname.ProtoReflect.Descriptor instead. +func (*Pushname) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{109} } -func (x *AppStateSyncKeyRequest) GetKeyIds() []*AppStateSyncKeyId { - if x != nil { - return x.KeyIds +func (x *Pushname) GetId() string { + if x != nil && x.Id != nil { + return *x.Id } - return nil + return "" } -type AppStateFatalExceptionNotification struct { +func (x *Pushname) GetPushname() string { + if x != nil && x.Pushname != nil { + return *x.Pushname + } + return "" +} + +type HistorySync struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - CollectionNames []string `protobuf:"bytes,1,rep,name=collectionNames" json:"collectionNames,omitempty"` - Timestamp *int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` + SyncType *HistorySync_HistorySyncHistorySyncType `protobuf:"varint,1,req,name=syncType,enum=proto.HistorySync_HistorySyncHistorySyncType" json:"syncType,omitempty"` + Conversations []*Conversation `protobuf:"bytes,2,rep,name=conversations" json:"conversations,omitempty"` + StatusV3Messages []*WebMessageInfo `protobuf:"bytes,3,rep,name=statusV3Messages" json:"statusV3Messages,omitempty"` + ChunkOrder *uint32 `protobuf:"varint,5,opt,name=chunkOrder" json:"chunkOrder,omitempty"` + Progress *uint32 `protobuf:"varint,6,opt,name=progress" json:"progress,omitempty"` + Pushnames []*Pushname `protobuf:"bytes,7,rep,name=pushnames" json:"pushnames,omitempty"` + GlobalSettings *GlobalSettings `protobuf:"bytes,8,opt,name=globalSettings" json:"globalSettings,omitempty"` + ThreadIdUserSecret []byte `protobuf:"bytes,9,opt,name=threadIdUserSecret" json:"threadIdUserSecret,omitempty"` + ThreadDsTimeframeOffset *uint32 `protobuf:"varint,10,opt,name=threadDsTimeframeOffset" json:"threadDsTimeframeOffset,omitempty"` } -func (x *AppStateFatalExceptionNotification) Reset() { - *x = AppStateFatalExceptionNotification{} +func (x *HistorySync) Reset() { + *x = HistorySync{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[96] + mi := &file_binary_proto_def_proto_msgTypes[110] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AppStateFatalExceptionNotification) String() string { +func (x *HistorySync) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AppStateFatalExceptionNotification) ProtoMessage() {} +func (*HistorySync) ProtoMessage() {} -func (x *AppStateFatalExceptionNotification) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[96] +func (x *HistorySync) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[110] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11495,99 +12978,100 @@ func (x *AppStateFatalExceptionNotification) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use AppStateFatalExceptionNotification.ProtoReflect.Descriptor instead. -func (*AppStateFatalExceptionNotification) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{96} +// Deprecated: Use HistorySync.ProtoReflect.Descriptor instead. +func (*HistorySync) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{110} } -func (x *AppStateFatalExceptionNotification) GetCollectionNames() []string { +func (x *HistorySync) GetSyncType() HistorySync_HistorySyncHistorySyncType { + if x != nil && x.SyncType != nil { + return *x.SyncType + } + return HistorySync_INITIAL_BOOTSTRAP +} + +func (x *HistorySync) GetConversations() []*Conversation { if x != nil { - return x.CollectionNames + return x.Conversations } return nil } -func (x *AppStateFatalExceptionNotification) GetTimestamp() int64 { - if x != nil && x.Timestamp != nil { - return *x.Timestamp +func (x *HistorySync) GetStatusV3Messages() []*WebMessageInfo { + if x != nil { + return x.StatusV3Messages } - return 0 + return nil } -type InitialSecurityNotificationSettingSync struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SecurityNotificationEnabled *bool `protobuf:"varint,1,opt,name=securityNotificationEnabled" json:"securityNotificationEnabled,omitempty"` +func (x *HistorySync) GetChunkOrder() uint32 { + if x != nil && x.ChunkOrder != nil { + return *x.ChunkOrder + } + return 0 } -func (x *InitialSecurityNotificationSettingSync) Reset() { - *x = InitialSecurityNotificationSettingSync{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[97] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistorySync) GetProgress() uint32 { + if x != nil && x.Progress != nil { + return *x.Progress } + return 0 } -func (x *InitialSecurityNotificationSettingSync) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistorySync) GetPushnames() []*Pushname { + if x != nil { + return x.Pushnames + } + return nil } -func (*InitialSecurityNotificationSettingSync) ProtoMessage() {} - -func (x *InitialSecurityNotificationSettingSync) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[97] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistorySync) GetGlobalSettings() *GlobalSettings { + if x != nil { + return x.GlobalSettings } - return mi.MessageOf(x) + return nil } -// Deprecated: Use InitialSecurityNotificationSettingSync.ProtoReflect.Descriptor instead. -func (*InitialSecurityNotificationSettingSync) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{97} +func (x *HistorySync) GetThreadIdUserSecret() []byte { + if x != nil { + return x.ThreadIdUserSecret + } + return nil } -func (x *InitialSecurityNotificationSettingSync) GetSecurityNotificationEnabled() bool { - if x != nil && x.SecurityNotificationEnabled != nil { - return *x.SecurityNotificationEnabled +func (x *HistorySync) GetThreadDsTimeframeOffset() uint32 { + if x != nil && x.ThreadDsTimeframeOffset != nil { + return *x.ThreadDsTimeframeOffset } - return false + return 0 } -type ContactsArrayMessage struct { +type HistorySyncMsg struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DisplayName *string `protobuf:"bytes,1,opt,name=displayName" json:"displayName,omitempty"` - Contacts []*ContactMessage `protobuf:"bytes,2,rep,name=contacts" json:"contacts,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` + Message *WebMessageInfo `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` + MsgOrderId *uint64 `protobuf:"varint,2,opt,name=msgOrderId" json:"msgOrderId,omitempty"` } -func (x *ContactsArrayMessage) Reset() { - *x = ContactsArrayMessage{} +func (x *HistorySyncMsg) Reset() { + *x = HistorySyncMsg{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[98] + mi := &file_binary_proto_def_proto_msgTypes[111] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ContactsArrayMessage) String() string { +func (x *HistorySyncMsg) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ContactsArrayMessage) ProtoMessage() {} +func (*HistorySyncMsg) ProtoMessage() {} -func (x *ContactsArrayMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[98] +func (x *HistorySyncMsg) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[111] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11598,58 +13082,51 @@ func (x *ContactsArrayMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ContactsArrayMessage.ProtoReflect.Descriptor instead. -func (*ContactsArrayMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{98} -} - -func (x *ContactsArrayMessage) GetDisplayName() string { - if x != nil && x.DisplayName != nil { - return *x.DisplayName - } - return "" +// Deprecated: Use HistorySyncMsg.ProtoReflect.Descriptor instead. +func (*HistorySyncMsg) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{111} } -func (x *ContactsArrayMessage) GetContacts() []*ContactMessage { +func (x *HistorySyncMsg) GetMessage() *WebMessageInfo { if x != nil { - return x.Contacts + return x.Message } return nil } -func (x *ContactsArrayMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo +func (x *HistorySyncMsg) GetMsgOrderId() uint64 { + if x != nil && x.MsgOrderId != nil { + return *x.MsgOrderId } - return nil + return 0 } -type HSMCurrency struct { +type GroupParticipant struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - CurrencyCode *string `protobuf:"bytes,1,opt,name=currencyCode" json:"currencyCode,omitempty"` - Amount1000 *int64 `protobuf:"varint,2,opt,name=amount1000" json:"amount1000,omitempty"` + UserJid *string `protobuf:"bytes,1,req,name=userJid" json:"userJid,omitempty"` + Rank *GroupParticipant_GroupParticipantRank `protobuf:"varint,2,opt,name=rank,enum=proto.GroupParticipant_GroupParticipantRank" json:"rank,omitempty"` } -func (x *HSMCurrency) Reset() { - *x = HSMCurrency{} +func (x *GroupParticipant) Reset() { + *x = GroupParticipant{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[99] + mi := &file_binary_proto_def_proto_msgTypes[112] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HSMCurrency) String() string { +func (x *GroupParticipant) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HSMCurrency) ProtoMessage() {} +func (*GroupParticipant) ProtoMessage() {} -func (x *HSMCurrency) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[99] +func (x *GroupParticipant) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[112] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11660,56 +13137,57 @@ func (x *HSMCurrency) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HSMCurrency.ProtoReflect.Descriptor instead. -func (*HSMCurrency) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{99} +// Deprecated: Use GroupParticipant.ProtoReflect.Descriptor instead. +func (*GroupParticipant) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{112} } -func (x *HSMCurrency) GetCurrencyCode() string { - if x != nil && x.CurrencyCode != nil { - return *x.CurrencyCode +func (x *GroupParticipant) GetUserJid() string { + if x != nil && x.UserJid != nil { + return *x.UserJid } return "" } -func (x *HSMCurrency) GetAmount1000() int64 { - if x != nil && x.Amount1000 != nil { - return *x.Amount1000 +func (x *GroupParticipant) GetRank() GroupParticipant_GroupParticipantRank { + if x != nil && x.Rank != nil { + return *x.Rank } - return 0 + return GroupParticipant_REGULAR } -type HSMDateTimeComponent struct { +type GlobalSettings struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DayOfWeek *HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType `protobuf:"varint,1,opt,name=dayOfWeek,enum=proto.HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType" json:"dayOfWeek,omitempty"` - Year *uint32 `protobuf:"varint,2,opt,name=year" json:"year,omitempty"` - Month *uint32 `protobuf:"varint,3,opt,name=month" json:"month,omitempty"` - DayOfMonth *uint32 `protobuf:"varint,4,opt,name=dayOfMonth" json:"dayOfMonth,omitempty"` - Hour *uint32 `protobuf:"varint,5,opt,name=hour" json:"hour,omitempty"` - Minute *uint32 `protobuf:"varint,6,opt,name=minute" json:"minute,omitempty"` - Calendar *HSMDateTimeComponent_HSMDateTimeComponentCalendarType `protobuf:"varint,7,opt,name=calendar,enum=proto.HSMDateTimeComponent_HSMDateTimeComponentCalendarType" json:"calendar,omitempty"` + LightThemeWallpaper *WallpaperSettings `protobuf:"bytes,1,opt,name=lightThemeWallpaper" json:"lightThemeWallpaper,omitempty"` + MediaVisibility *MediaVisibility `protobuf:"varint,2,opt,name=mediaVisibility,enum=proto.MediaVisibility" json:"mediaVisibility,omitempty"` + DarkThemeWallpaper *WallpaperSettings `protobuf:"bytes,3,opt,name=darkThemeWallpaper" json:"darkThemeWallpaper,omitempty"` + AutoDownloadWiFi *AutoDownloadSettings `protobuf:"bytes,4,opt,name=autoDownloadWiFi" json:"autoDownloadWiFi,omitempty"` + AutoDownloadCellular *AutoDownloadSettings `protobuf:"bytes,5,opt,name=autoDownloadCellular" json:"autoDownloadCellular,omitempty"` + AutoDownloadRoaming *AutoDownloadSettings `protobuf:"bytes,6,opt,name=autoDownloadRoaming" json:"autoDownloadRoaming,omitempty"` + ShowIndividualNotificationsPreview *bool `protobuf:"varint,7,opt,name=showIndividualNotificationsPreview" json:"showIndividualNotificationsPreview,omitempty"` + ShowGroupNotificationsPreview *bool `protobuf:"varint,8,opt,name=showGroupNotificationsPreview" json:"showGroupNotificationsPreview,omitempty"` } -func (x *HSMDateTimeComponent) Reset() { - *x = HSMDateTimeComponent{} +func (x *GlobalSettings) Reset() { + *x = GlobalSettings{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[100] + mi := &file_binary_proto_def_proto_msgTypes[113] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HSMDateTimeComponent) String() string { +func (x *GlobalSettings) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HSMDateTimeComponent) ProtoMessage() {} +func (*GlobalSettings) ProtoMessage() {} -func (x *HSMDateTimeComponent) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[100] +func (x *GlobalSettings) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[113] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11720,85 +13198,120 @@ func (x *HSMDateTimeComponent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HSMDateTimeComponent.ProtoReflect.Descriptor instead. -func (*HSMDateTimeComponent) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{100} +// Deprecated: Use GlobalSettings.ProtoReflect.Descriptor instead. +func (*GlobalSettings) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{113} } -func (x *HSMDateTimeComponent) GetDayOfWeek() HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType { - if x != nil && x.DayOfWeek != nil { - return *x.DayOfWeek +func (x *GlobalSettings) GetLightThemeWallpaper() *WallpaperSettings { + if x != nil { + return x.LightThemeWallpaper } - return HSMDateTimeComponent_MONDAY + return nil } -func (x *HSMDateTimeComponent) GetYear() uint32 { - if x != nil && x.Year != nil { - return *x.Year +func (x *GlobalSettings) GetMediaVisibility() MediaVisibility { + if x != nil && x.MediaVisibility != nil { + return *x.MediaVisibility } - return 0 + return MediaVisibility_DEFAULT } -func (x *HSMDateTimeComponent) GetMonth() uint32 { - if x != nil && x.Month != nil { - return *x.Month +func (x *GlobalSettings) GetDarkThemeWallpaper() *WallpaperSettings { + if x != nil { + return x.DarkThemeWallpaper } - return 0 + return nil } -func (x *HSMDateTimeComponent) GetDayOfMonth() uint32 { - if x != nil && x.DayOfMonth != nil { - return *x.DayOfMonth +func (x *GlobalSettings) GetAutoDownloadWiFi() *AutoDownloadSettings { + if x != nil { + return x.AutoDownloadWiFi } - return 0 + return nil } -func (x *HSMDateTimeComponent) GetHour() uint32 { - if x != nil && x.Hour != nil { - return *x.Hour +func (x *GlobalSettings) GetAutoDownloadCellular() *AutoDownloadSettings { + if x != nil { + return x.AutoDownloadCellular } - return 0 + return nil } -func (x *HSMDateTimeComponent) GetMinute() uint32 { - if x != nil && x.Minute != nil { - return *x.Minute +func (x *GlobalSettings) GetAutoDownloadRoaming() *AutoDownloadSettings { + if x != nil { + return x.AutoDownloadRoaming } - return 0 + return nil } -func (x *HSMDateTimeComponent) GetCalendar() HSMDateTimeComponent_HSMDateTimeComponentCalendarType { - if x != nil && x.Calendar != nil { - return *x.Calendar +func (x *GlobalSettings) GetShowIndividualNotificationsPreview() bool { + if x != nil && x.ShowIndividualNotificationsPreview != nil { + return *x.ShowIndividualNotificationsPreview } - return HSMDateTimeComponent_GREGORIAN + return false } -type HSMDateTimeUnixEpoch struct { +func (x *GlobalSettings) GetShowGroupNotificationsPreview() bool { + if x != nil && x.ShowGroupNotificationsPreview != nil { + return *x.ShowGroupNotificationsPreview + } + return false +} + +type Conversation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Timestamp *int64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"` + Id *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` + Messages []*HistorySyncMsg `protobuf:"bytes,2,rep,name=messages" json:"messages,omitempty"` + NewJid *string `protobuf:"bytes,3,opt,name=newJid" json:"newJid,omitempty"` + OldJid *string `protobuf:"bytes,4,opt,name=oldJid" json:"oldJid,omitempty"` + LastMsgTimestamp *uint64 `protobuf:"varint,5,opt,name=lastMsgTimestamp" json:"lastMsgTimestamp,omitempty"` + UnreadCount *uint32 `protobuf:"varint,6,opt,name=unreadCount" json:"unreadCount,omitempty"` + ReadOnly *bool `protobuf:"varint,7,opt,name=readOnly" json:"readOnly,omitempty"` + EndOfHistoryTransfer *bool `protobuf:"varint,8,opt,name=endOfHistoryTransfer" json:"endOfHistoryTransfer,omitempty"` + EphemeralExpiration *uint32 `protobuf:"varint,9,opt,name=ephemeralExpiration" json:"ephemeralExpiration,omitempty"` + EphemeralSettingTimestamp *int64 `protobuf:"varint,10,opt,name=ephemeralSettingTimestamp" json:"ephemeralSettingTimestamp,omitempty"` + EndOfHistoryTransferType *Conversation_ConversationEndOfHistoryTransferType `protobuf:"varint,11,opt,name=endOfHistoryTransferType,enum=proto.Conversation_ConversationEndOfHistoryTransferType" json:"endOfHistoryTransferType,omitempty"` + ConversationTimestamp *uint64 `protobuf:"varint,12,opt,name=conversationTimestamp" json:"conversationTimestamp,omitempty"` + Name *string `protobuf:"bytes,13,opt,name=name" json:"name,omitempty"` + PHash *string `protobuf:"bytes,14,opt,name=pHash" json:"pHash,omitempty"` + NotSpam *bool `protobuf:"varint,15,opt,name=notSpam" json:"notSpam,omitempty"` + Archived *bool `protobuf:"varint,16,opt,name=archived" json:"archived,omitempty"` + DisappearingMode *DisappearingMode `protobuf:"bytes,17,opt,name=disappearingMode" json:"disappearingMode,omitempty"` + UnreadMentionCount *uint32 `protobuf:"varint,18,opt,name=unreadMentionCount" json:"unreadMentionCount,omitempty"` + MarkedAsUnread *bool `protobuf:"varint,19,opt,name=markedAsUnread" json:"markedAsUnread,omitempty"` + Participant []*GroupParticipant `protobuf:"bytes,20,rep,name=participant" json:"participant,omitempty"` + TcToken []byte `protobuf:"bytes,21,opt,name=tcToken" json:"tcToken,omitempty"` + TcTokenTimestamp *uint64 `protobuf:"varint,22,opt,name=tcTokenTimestamp" json:"tcTokenTimestamp,omitempty"` + ContactPrimaryIdentityKey []byte `protobuf:"bytes,23,opt,name=contactPrimaryIdentityKey" json:"contactPrimaryIdentityKey,omitempty"` + Pinned *uint32 `protobuf:"varint,24,opt,name=pinned" json:"pinned,omitempty"` + MuteEndTime *uint64 `protobuf:"varint,25,opt,name=muteEndTime" json:"muteEndTime,omitempty"` + Wallpaper *WallpaperSettings `protobuf:"bytes,26,opt,name=wallpaper" json:"wallpaper,omitempty"` + MediaVisibility *MediaVisibility `protobuf:"varint,27,opt,name=mediaVisibility,enum=proto.MediaVisibility" json:"mediaVisibility,omitempty"` + TcTokenSenderTimestamp *uint64 `protobuf:"varint,28,opt,name=tcTokenSenderTimestamp" json:"tcTokenSenderTimestamp,omitempty"` + Suspended *bool `protobuf:"varint,29,opt,name=suspended" json:"suspended,omitempty"` } -func (x *HSMDateTimeUnixEpoch) Reset() { - *x = HSMDateTimeUnixEpoch{} +func (x *Conversation) Reset() { + *x = Conversation{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[101] + mi := &file_binary_proto_def_proto_msgTypes[114] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HSMDateTimeUnixEpoch) String() string { +func (x *Conversation) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HSMDateTimeUnixEpoch) ProtoMessage() {} +func (*Conversation) ProtoMessage() {} -func (x *HSMDateTimeUnixEpoch) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[101] +func (x *Conversation) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[114] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11809,219 +13322,242 @@ func (x *HSMDateTimeUnixEpoch) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HSMDateTimeUnixEpoch.ProtoReflect.Descriptor instead. -func (*HSMDateTimeUnixEpoch) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{101} +// Deprecated: Use Conversation.ProtoReflect.Descriptor instead. +func (*Conversation) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{114} } -func (x *HSMDateTimeUnixEpoch) GetTimestamp() int64 { - if x != nil && x.Timestamp != nil { - return *x.Timestamp +func (x *Conversation) GetId() string { + if x != nil && x.Id != nil { + return *x.Id } - return 0 + return "" } -type HSMDateTime struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to DatetimeOneof: - // *HSMDateTime_Component - // *HSMDateTime_UnixEpoch - DatetimeOneof isHSMDateTime_DatetimeOneof `protobuf_oneof:"datetimeOneof"` +func (x *Conversation) GetMessages() []*HistorySyncMsg { + if x != nil { + return x.Messages + } + return nil } -func (x *HSMDateTime) Reset() { - *x = HSMDateTime{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[102] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Conversation) GetNewJid() string { + if x != nil && x.NewJid != nil { + return *x.NewJid } + return "" } -func (x *HSMDateTime) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *Conversation) GetOldJid() string { + if x != nil && x.OldJid != nil { + return *x.OldJid + } + return "" } -func (*HSMDateTime) ProtoMessage() {} - -func (x *HSMDateTime) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[102] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Conversation) GetLastMsgTimestamp() uint64 { + if x != nil && x.LastMsgTimestamp != nil { + return *x.LastMsgTimestamp } - return mi.MessageOf(x) + return 0 } -// Deprecated: Use HSMDateTime.ProtoReflect.Descriptor instead. -func (*HSMDateTime) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{102} +func (x *Conversation) GetUnreadCount() uint32 { + if x != nil && x.UnreadCount != nil { + return *x.UnreadCount + } + return 0 } -func (m *HSMDateTime) GetDatetimeOneof() isHSMDateTime_DatetimeOneof { - if m != nil { - return m.DatetimeOneof +func (x *Conversation) GetReadOnly() bool { + if x != nil && x.ReadOnly != nil { + return *x.ReadOnly } - return nil + return false } -func (x *HSMDateTime) GetComponent() *HSMDateTimeComponent { - if x, ok := x.GetDatetimeOneof().(*HSMDateTime_Component); ok { - return x.Component +func (x *Conversation) GetEndOfHistoryTransfer() bool { + if x != nil && x.EndOfHistoryTransfer != nil { + return *x.EndOfHistoryTransfer } - return nil + return false } -func (x *HSMDateTime) GetUnixEpoch() *HSMDateTimeUnixEpoch { - if x, ok := x.GetDatetimeOneof().(*HSMDateTime_UnixEpoch); ok { - return x.UnixEpoch +func (x *Conversation) GetEphemeralExpiration() uint32 { + if x != nil && x.EphemeralExpiration != nil { + return *x.EphemeralExpiration } - return nil + return 0 } -type isHSMDateTime_DatetimeOneof interface { - isHSMDateTime_DatetimeOneof() +func (x *Conversation) GetEphemeralSettingTimestamp() int64 { + if x != nil && x.EphemeralSettingTimestamp != nil { + return *x.EphemeralSettingTimestamp + } + return 0 } -type HSMDateTime_Component struct { - Component *HSMDateTimeComponent `protobuf:"bytes,1,opt,name=component,oneof"` +func (x *Conversation) GetEndOfHistoryTransferType() Conversation_ConversationEndOfHistoryTransferType { + if x != nil && x.EndOfHistoryTransferType != nil { + return *x.EndOfHistoryTransferType + } + return Conversation_COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY } -type HSMDateTime_UnixEpoch struct { - UnixEpoch *HSMDateTimeUnixEpoch `protobuf:"bytes,2,opt,name=unixEpoch,oneof"` +func (x *Conversation) GetConversationTimestamp() uint64 { + if x != nil && x.ConversationTimestamp != nil { + return *x.ConversationTimestamp + } + return 0 } -func (*HSMDateTime_Component) isHSMDateTime_DatetimeOneof() {} - -func (*HSMDateTime_UnixEpoch) isHSMDateTime_DatetimeOneof() {} - -type HSMLocalizableParameter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Default *string `protobuf:"bytes,1,opt,name=default" json:"default,omitempty"` - // Types that are assignable to ParamOneof: - // *HSMLocalizableParameter_Currency - // *HSMLocalizableParameter_DateTime - ParamOneof isHSMLocalizableParameter_ParamOneof `protobuf_oneof:"paramOneof"` +func (x *Conversation) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" } -func (x *HSMLocalizableParameter) Reset() { - *x = HSMLocalizableParameter{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[103] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Conversation) GetPHash() string { + if x != nil && x.PHash != nil { + return *x.PHash } + return "" } -func (x *HSMLocalizableParameter) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *Conversation) GetNotSpam() bool { + if x != nil && x.NotSpam != nil { + return *x.NotSpam + } + return false } -func (*HSMLocalizableParameter) ProtoMessage() {} +func (x *Conversation) GetArchived() bool { + if x != nil && x.Archived != nil { + return *x.Archived + } + return false +} -func (x *HSMLocalizableParameter) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[103] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Conversation) GetDisappearingMode() *DisappearingMode { + if x != nil { + return x.DisappearingMode } - return mi.MessageOf(x) + return nil } -// Deprecated: Use HSMLocalizableParameter.ProtoReflect.Descriptor instead. -func (*HSMLocalizableParameter) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{103} +func (x *Conversation) GetUnreadMentionCount() uint32 { + if x != nil && x.UnreadMentionCount != nil { + return *x.UnreadMentionCount + } + return 0 } -func (x *HSMLocalizableParameter) GetDefault() string { - if x != nil && x.Default != nil { - return *x.Default +func (x *Conversation) GetMarkedAsUnread() bool { + if x != nil && x.MarkedAsUnread != nil { + return *x.MarkedAsUnread } - return "" + return false } -func (m *HSMLocalizableParameter) GetParamOneof() isHSMLocalizableParameter_ParamOneof { - if m != nil { - return m.ParamOneof +func (x *Conversation) GetParticipant() []*GroupParticipant { + if x != nil { + return x.Participant } return nil } -func (x *HSMLocalizableParameter) GetCurrency() *HSMCurrency { - if x, ok := x.GetParamOneof().(*HSMLocalizableParameter_Currency); ok { - return x.Currency +func (x *Conversation) GetTcToken() []byte { + if x != nil { + return x.TcToken } return nil } -func (x *HSMLocalizableParameter) GetDateTime() *HSMDateTime { - if x, ok := x.GetParamOneof().(*HSMLocalizableParameter_DateTime); ok { - return x.DateTime +func (x *Conversation) GetTcTokenTimestamp() uint64 { + if x != nil && x.TcTokenTimestamp != nil { + return *x.TcTokenTimestamp + } + return 0 +} + +func (x *Conversation) GetContactPrimaryIdentityKey() []byte { + if x != nil { + return x.ContactPrimaryIdentityKey } return nil } -type isHSMLocalizableParameter_ParamOneof interface { - isHSMLocalizableParameter_ParamOneof() +func (x *Conversation) GetPinned() uint32 { + if x != nil && x.Pinned != nil { + return *x.Pinned + } + return 0 } -type HSMLocalizableParameter_Currency struct { - Currency *HSMCurrency `protobuf:"bytes,2,opt,name=currency,oneof"` +func (x *Conversation) GetMuteEndTime() uint64 { + if x != nil && x.MuteEndTime != nil { + return *x.MuteEndTime + } + return 0 } -type HSMLocalizableParameter_DateTime struct { - DateTime *HSMDateTime `protobuf:"bytes,3,opt,name=dateTime,oneof"` +func (x *Conversation) GetWallpaper() *WallpaperSettings { + if x != nil { + return x.Wallpaper + } + return nil } -func (*HSMLocalizableParameter_Currency) isHSMLocalizableParameter_ParamOneof() {} +func (x *Conversation) GetMediaVisibility() MediaVisibility { + if x != nil && x.MediaVisibility != nil { + return *x.MediaVisibility + } + return MediaVisibility_DEFAULT +} -func (*HSMLocalizableParameter_DateTime) isHSMLocalizableParameter_ParamOneof() {} +func (x *Conversation) GetTcTokenSenderTimestamp() uint64 { + if x != nil && x.TcTokenSenderTimestamp != nil { + return *x.TcTokenSenderTimestamp + } + return 0 +} -type HighlyStructuredMessage struct { +func (x *Conversation) GetSuspended() bool { + if x != nil && x.Suspended != nil { + return *x.Suspended + } + return false +} + +type AutoDownloadSettings struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Namespace *string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"` - ElementName *string `protobuf:"bytes,2,opt,name=elementName" json:"elementName,omitempty"` - Params []string `protobuf:"bytes,3,rep,name=params" json:"params,omitempty"` - FallbackLg *string `protobuf:"bytes,4,opt,name=fallbackLg" json:"fallbackLg,omitempty"` - FallbackLc *string `protobuf:"bytes,5,opt,name=fallbackLc" json:"fallbackLc,omitempty"` - LocalizableParams []*HSMLocalizableParameter `protobuf:"bytes,6,rep,name=localizableParams" json:"localizableParams,omitempty"` - DeterministicLg *string `protobuf:"bytes,7,opt,name=deterministicLg" json:"deterministicLg,omitempty"` - DeterministicLc *string `protobuf:"bytes,8,opt,name=deterministicLc" json:"deterministicLc,omitempty"` - HydratedHsm *TemplateMessage `protobuf:"bytes,9,opt,name=hydratedHsm" json:"hydratedHsm,omitempty"` + DownloadImages *bool `protobuf:"varint,1,opt,name=downloadImages" json:"downloadImages,omitempty"` + DownloadAudio *bool `protobuf:"varint,2,opt,name=downloadAudio" json:"downloadAudio,omitempty"` + DownloadVideo *bool `protobuf:"varint,3,opt,name=downloadVideo" json:"downloadVideo,omitempty"` + DownloadDocuments *bool `protobuf:"varint,4,opt,name=downloadDocuments" json:"downloadDocuments,omitempty"` } -func (x *HighlyStructuredMessage) Reset() { - *x = HighlyStructuredMessage{} +func (x *AutoDownloadSettings) Reset() { + *x = AutoDownloadSettings{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[104] + mi := &file_binary_proto_def_proto_msgTypes[115] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HighlyStructuredMessage) String() string { +func (x *AutoDownloadSettings) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HighlyStructuredMessage) ProtoMessage() {} +func (*AutoDownloadSettings) ProtoMessage() {} -func (x *HighlyStructuredMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[104] +func (x *AutoDownloadSettings) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[115] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12032,101 +13568,65 @@ func (x *HighlyStructuredMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HighlyStructuredMessage.ProtoReflect.Descriptor instead. -func (*HighlyStructuredMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{104} -} - -func (x *HighlyStructuredMessage) GetNamespace() string { - if x != nil && x.Namespace != nil { - return *x.Namespace - } - return "" -} - -func (x *HighlyStructuredMessage) GetElementName() string { - if x != nil && x.ElementName != nil { - return *x.ElementName - } - return "" -} - -func (x *HighlyStructuredMessage) GetParams() []string { - if x != nil { - return x.Params - } - return nil -} - -func (x *HighlyStructuredMessage) GetFallbackLg() string { - if x != nil && x.FallbackLg != nil { - return *x.FallbackLg - } - return "" -} - -func (x *HighlyStructuredMessage) GetFallbackLc() string { - if x != nil && x.FallbackLc != nil { - return *x.FallbackLc - } - return "" +// Deprecated: Use AutoDownloadSettings.ProtoReflect.Descriptor instead. +func (*AutoDownloadSettings) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{115} } -func (x *HighlyStructuredMessage) GetLocalizableParams() []*HSMLocalizableParameter { - if x != nil { - return x.LocalizableParams +func (x *AutoDownloadSettings) GetDownloadImages() bool { + if x != nil && x.DownloadImages != nil { + return *x.DownloadImages } - return nil + return false } -func (x *HighlyStructuredMessage) GetDeterministicLg() string { - if x != nil && x.DeterministicLg != nil { - return *x.DeterministicLg +func (x *AutoDownloadSettings) GetDownloadAudio() bool { + if x != nil && x.DownloadAudio != nil { + return *x.DownloadAudio } - return "" + return false } -func (x *HighlyStructuredMessage) GetDeterministicLc() string { - if x != nil && x.DeterministicLc != nil { - return *x.DeterministicLc +func (x *AutoDownloadSettings) GetDownloadVideo() bool { + if x != nil && x.DownloadVideo != nil { + return *x.DownloadVideo } - return "" + return false } -func (x *HighlyStructuredMessage) GetHydratedHsm() *TemplateMessage { - if x != nil { - return x.HydratedHsm +func (x *AutoDownloadSettings) GetDownloadDocuments() bool { + if x != nil && x.DownloadDocuments != nil { + return *x.DownloadDocuments } - return nil + return false } -type SendPaymentMessage struct { +type MsgRowOpaqueData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - NoteMessage *Message `protobuf:"bytes,2,opt,name=noteMessage" json:"noteMessage,omitempty"` - RequestMessageKey *MessageKey `protobuf:"bytes,3,opt,name=requestMessageKey" json:"requestMessageKey,omitempty"` - Background *PaymentBackground `protobuf:"bytes,4,opt,name=background" json:"background,omitempty"` + CurrentMsg *MsgOpaqueData `protobuf:"bytes,1,opt,name=currentMsg" json:"currentMsg,omitempty"` + QuotedMsg *MsgOpaqueData `protobuf:"bytes,2,opt,name=quotedMsg" json:"quotedMsg,omitempty"` } -func (x *SendPaymentMessage) Reset() { - *x = SendPaymentMessage{} +func (x *MsgRowOpaqueData) Reset() { + *x = MsgRowOpaqueData{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[105] + mi := &file_binary_proto_def_proto_msgTypes[116] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *SendPaymentMessage) String() string { +func (x *MsgRowOpaqueData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SendPaymentMessage) ProtoMessage() {} +func (*MsgRowOpaqueData) ProtoMessage() {} -func (x *SendPaymentMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[105] +func (x *MsgRowOpaqueData) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[116] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12137,63 +13637,63 @@ func (x *SendPaymentMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SendPaymentMessage.ProtoReflect.Descriptor instead. -func (*SendPaymentMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{105} -} - -func (x *SendPaymentMessage) GetNoteMessage() *Message { - if x != nil { - return x.NoteMessage - } - return nil +// Deprecated: Use MsgRowOpaqueData.ProtoReflect.Descriptor instead. +func (*MsgRowOpaqueData) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{116} } -func (x *SendPaymentMessage) GetRequestMessageKey() *MessageKey { +func (x *MsgRowOpaqueData) GetCurrentMsg() *MsgOpaqueData { if x != nil { - return x.RequestMessageKey + return x.CurrentMsg } return nil } -func (x *SendPaymentMessage) GetBackground() *PaymentBackground { +func (x *MsgRowOpaqueData) GetQuotedMsg() *MsgOpaqueData { if x != nil { - return x.Background + return x.QuotedMsg } return nil } -type RequestPaymentMessage struct { +type MsgOpaqueData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - NoteMessage *Message `protobuf:"bytes,4,opt,name=noteMessage" json:"noteMessage,omitempty"` - CurrencyCodeIso4217 *string `protobuf:"bytes,1,opt,name=currencyCodeIso4217" json:"currencyCodeIso4217,omitempty"` - Amount1000 *uint64 `protobuf:"varint,2,opt,name=amount1000" json:"amount1000,omitempty"` - RequestFrom *string `protobuf:"bytes,3,opt,name=requestFrom" json:"requestFrom,omitempty"` - ExpiryTimestamp *int64 `protobuf:"varint,5,opt,name=expiryTimestamp" json:"expiryTimestamp,omitempty"` - Amount *Money `protobuf:"bytes,6,opt,name=amount" json:"amount,omitempty"` - Background *PaymentBackground `protobuf:"bytes,7,opt,name=background" json:"background,omitempty"` + Body *string `protobuf:"bytes,1,opt,name=body" json:"body,omitempty"` + Caption *string `protobuf:"bytes,3,opt,name=caption" json:"caption,omitempty"` + Lng *float64 `protobuf:"fixed64,5,opt,name=lng" json:"lng,omitempty"` + IsLive *bool `protobuf:"varint,6,opt,name=isLive" json:"isLive,omitempty"` + Lat *float64 `protobuf:"fixed64,7,opt,name=lat" json:"lat,omitempty"` + PaymentAmount1000 *int32 `protobuf:"varint,8,opt,name=paymentAmount1000" json:"paymentAmount1000,omitempty"` + PaymentNoteMsgBody *string `protobuf:"bytes,9,opt,name=paymentNoteMsgBody" json:"paymentNoteMsgBody,omitempty"` + CanonicalUrl *string `protobuf:"bytes,10,opt,name=canonicalUrl" json:"canonicalUrl,omitempty"` + MatchedText *string `protobuf:"bytes,11,opt,name=matchedText" json:"matchedText,omitempty"` + Title *string `protobuf:"bytes,12,opt,name=title" json:"title,omitempty"` + Description *string `protobuf:"bytes,13,opt,name=description" json:"description,omitempty"` + FutureproofBuffer []byte `protobuf:"bytes,14,opt,name=futureproofBuffer" json:"futureproofBuffer,omitempty"` + ClientUrl *string `protobuf:"bytes,15,opt,name=clientUrl" json:"clientUrl,omitempty"` + Loc *string `protobuf:"bytes,16,opt,name=loc" json:"loc,omitempty"` } -func (x *RequestPaymentMessage) Reset() { - *x = RequestPaymentMessage{} +func (x *MsgOpaqueData) Reset() { + *x = MsgOpaqueData{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[106] + mi := &file_binary_proto_def_proto_msgTypes[117] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *RequestPaymentMessage) String() string { +func (x *MsgOpaqueData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestPaymentMessage) ProtoMessage() {} +func (*MsgOpaqueData) ProtoMessage() {} -func (x *RequestPaymentMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[106] +func (x *MsgOpaqueData) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[117] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12204,85 +13704,134 @@ func (x *RequestPaymentMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RequestPaymentMessage.ProtoReflect.Descriptor instead. -func (*RequestPaymentMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{106} +// Deprecated: Use MsgOpaqueData.ProtoReflect.Descriptor instead. +func (*MsgOpaqueData) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{117} } -func (x *RequestPaymentMessage) GetNoteMessage() *Message { - if x != nil { - return x.NoteMessage +func (x *MsgOpaqueData) GetBody() string { + if x != nil && x.Body != nil { + return *x.Body } - return nil + return "" } -func (x *RequestPaymentMessage) GetCurrencyCodeIso4217() string { - if x != nil && x.CurrencyCodeIso4217 != nil { - return *x.CurrencyCodeIso4217 +func (x *MsgOpaqueData) GetCaption() string { + if x != nil && x.Caption != nil { + return *x.Caption } return "" } -func (x *RequestPaymentMessage) GetAmount1000() uint64 { - if x != nil && x.Amount1000 != nil { - return *x.Amount1000 +func (x *MsgOpaqueData) GetLng() float64 { + if x != nil && x.Lng != nil { + return *x.Lng } return 0 } -func (x *RequestPaymentMessage) GetRequestFrom() string { - if x != nil && x.RequestFrom != nil { - return *x.RequestFrom +func (x *MsgOpaqueData) GetIsLive() bool { + if x != nil && x.IsLive != nil { + return *x.IsLive } - return "" + return false } -func (x *RequestPaymentMessage) GetExpiryTimestamp() int64 { - if x != nil && x.ExpiryTimestamp != nil { - return *x.ExpiryTimestamp +func (x *MsgOpaqueData) GetLat() float64 { + if x != nil && x.Lat != nil { + return *x.Lat } return 0 } -func (x *RequestPaymentMessage) GetAmount() *Money { - if x != nil { - return x.Amount +func (x *MsgOpaqueData) GetPaymentAmount1000() int32 { + if x != nil && x.PaymentAmount1000 != nil { + return *x.PaymentAmount1000 } - return nil + return 0 } -func (x *RequestPaymentMessage) GetBackground() *PaymentBackground { +func (x *MsgOpaqueData) GetPaymentNoteMsgBody() string { + if x != nil && x.PaymentNoteMsgBody != nil { + return *x.PaymentNoteMsgBody + } + return "" +} + +func (x *MsgOpaqueData) GetCanonicalUrl() string { + if x != nil && x.CanonicalUrl != nil { + return *x.CanonicalUrl + } + return "" +} + +func (x *MsgOpaqueData) GetMatchedText() string { + if x != nil && x.MatchedText != nil { + return *x.MatchedText + } + return "" +} + +func (x *MsgOpaqueData) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title + } + return "" +} + +func (x *MsgOpaqueData) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +func (x *MsgOpaqueData) GetFutureproofBuffer() []byte { if x != nil { - return x.Background + return x.FutureproofBuffer } return nil } -type DeclinePaymentRequestMessage struct { +func (x *MsgOpaqueData) GetClientUrl() string { + if x != nil && x.ClientUrl != nil { + return *x.ClientUrl + } + return "" +} + +func (x *MsgOpaqueData) GetLoc() string { + if x != nil && x.Loc != nil { + return *x.Loc + } + return "" +} + +type ServerErrorReceipt struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` + StanzaId *string `protobuf:"bytes,1,opt,name=stanzaId" json:"stanzaId,omitempty"` } -func (x *DeclinePaymentRequestMessage) Reset() { - *x = DeclinePaymentRequestMessage{} +func (x *ServerErrorReceipt) Reset() { + *x = ServerErrorReceipt{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[107] + mi := &file_binary_proto_def_proto_msgTypes[118] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DeclinePaymentRequestMessage) String() string { +func (x *ServerErrorReceipt) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeclinePaymentRequestMessage) ProtoMessage() {} +func (*ServerErrorReceipt) ProtoMessage() {} -func (x *DeclinePaymentRequestMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[107] +func (x *ServerErrorReceipt) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[118] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12293,43 +13842,45 @@ func (x *DeclinePaymentRequestMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeclinePaymentRequestMessage.ProtoReflect.Descriptor instead. -func (*DeclinePaymentRequestMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{107} +// Deprecated: Use ServerErrorReceipt.ProtoReflect.Descriptor instead. +func (*ServerErrorReceipt) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{118} } -func (x *DeclinePaymentRequestMessage) GetKey() *MessageKey { - if x != nil { - return x.Key +func (x *ServerErrorReceipt) GetStanzaId() string { + if x != nil && x.StanzaId != nil { + return *x.StanzaId } - return nil + return "" } -type CancelPaymentRequestMessage struct { +type MediaRetryNotification struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` + StanzaId *string `protobuf:"bytes,1,opt,name=stanzaId" json:"stanzaId,omitempty"` + DirectPath *string `protobuf:"bytes,2,opt,name=directPath" json:"directPath,omitempty"` + Result *MediaRetryNotification_MediaRetryNotificationResultType `protobuf:"varint,3,opt,name=result,enum=proto.MediaRetryNotification_MediaRetryNotificationResultType" json:"result,omitempty"` } -func (x *CancelPaymentRequestMessage) Reset() { - *x = CancelPaymentRequestMessage{} +func (x *MediaRetryNotification) Reset() { + *x = MediaRetryNotification{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[108] + mi := &file_binary_proto_def_proto_msgTypes[119] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CancelPaymentRequestMessage) String() string { +func (x *MediaRetryNotification) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CancelPaymentRequestMessage) ProtoMessage() {} +func (*MediaRetryNotification) ProtoMessage() {} -func (x *CancelPaymentRequestMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[108] +func (x *MediaRetryNotification) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[119] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12340,44 +13891,60 @@ func (x *CancelPaymentRequestMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CancelPaymentRequestMessage.ProtoReflect.Descriptor instead. -func (*CancelPaymentRequestMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{108} +// Deprecated: Use MediaRetryNotification.ProtoReflect.Descriptor instead. +func (*MediaRetryNotification) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{119} } -func (x *CancelPaymentRequestMessage) GetKey() *MessageKey { - if x != nil { - return x.Key +func (x *MediaRetryNotification) GetStanzaId() string { + if x != nil && x.StanzaId != nil { + return *x.StanzaId } - return nil + return "" } -type PaymentInviteMessage struct { +func (x *MediaRetryNotification) GetDirectPath() string { + if x != nil && x.DirectPath != nil { + return *x.DirectPath + } + return "" +} + +func (x *MediaRetryNotification) GetResult() MediaRetryNotification_MediaRetryNotificationResultType { + if x != nil && x.Result != nil { + return *x.Result + } + return MediaRetryNotification_GENERAL_ERROR +} + +type MessageKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ServiceType *PaymentInviteMessage_PaymentInviteMessageServiceType `protobuf:"varint,1,opt,name=serviceType,enum=proto.PaymentInviteMessage_PaymentInviteMessageServiceType" json:"serviceType,omitempty"` - ExpiryTimestamp *int64 `protobuf:"varint,2,opt,name=expiryTimestamp" json:"expiryTimestamp,omitempty"` + RemoteJid *string `protobuf:"bytes,1,opt,name=remoteJid" json:"remoteJid,omitempty"` + FromMe *bool `protobuf:"varint,2,opt,name=fromMe" json:"fromMe,omitempty"` + Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` + Participant *string `protobuf:"bytes,4,opt,name=participant" json:"participant,omitempty"` } -func (x *PaymentInviteMessage) Reset() { - *x = PaymentInviteMessage{} +func (x *MessageKey) Reset() { + *x = MessageKey{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[109] + mi := &file_binary_proto_def_proto_msgTypes[120] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *PaymentInviteMessage) String() string { +func (x *MessageKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PaymentInviteMessage) ProtoMessage() {} +func (*MessageKey) ProtoMessage() {} -func (x *PaymentInviteMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[109] +func (x *MessageKey) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[120] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12388,59 +13955,64 @@ func (x *PaymentInviteMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PaymentInviteMessage.ProtoReflect.Descriptor instead. -func (*PaymentInviteMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{109} +// Deprecated: Use MessageKey.ProtoReflect.Descriptor instead. +func (*MessageKey) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{120} } -func (x *PaymentInviteMessage) GetServiceType() PaymentInviteMessage_PaymentInviteMessageServiceType { - if x != nil && x.ServiceType != nil { - return *x.ServiceType +func (x *MessageKey) GetRemoteJid() string { + if x != nil && x.RemoteJid != nil { + return *x.RemoteJid } - return PaymentInviteMessage_UNKNOWN + return "" } -func (x *PaymentInviteMessage) GetExpiryTimestamp() int64 { - if x != nil && x.ExpiryTimestamp != nil { - return *x.ExpiryTimestamp +func (x *MessageKey) GetFromMe() bool { + if x != nil && x.FromMe != nil { + return *x.FromMe } - return 0 + return false } -type LiveLocationMessage struct { +func (x *MessageKey) GetId() string { + if x != nil && x.Id != nil { + return *x.Id + } + return "" +} + +func (x *MessageKey) GetParticipant() string { + if x != nil && x.Participant != nil { + return *x.Participant + } + return "" +} + +type SyncdVersion struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DegreesLatitude *float64 `protobuf:"fixed64,1,opt,name=degreesLatitude" json:"degreesLatitude,omitempty"` - DegreesLongitude *float64 `protobuf:"fixed64,2,opt,name=degreesLongitude" json:"degreesLongitude,omitempty"` - AccuracyInMeters *uint32 `protobuf:"varint,3,opt,name=accuracyInMeters" json:"accuracyInMeters,omitempty"` - SpeedInMps *float32 `protobuf:"fixed32,4,opt,name=speedInMps" json:"speedInMps,omitempty"` - DegreesClockwiseFromMagneticNorth *uint32 `protobuf:"varint,5,opt,name=degreesClockwiseFromMagneticNorth" json:"degreesClockwiseFromMagneticNorth,omitempty"` - Caption *string `protobuf:"bytes,6,opt,name=caption" json:"caption,omitempty"` - SequenceNumber *int64 `protobuf:"varint,7,opt,name=sequenceNumber" json:"sequenceNumber,omitempty"` - TimeOffset *uint32 `protobuf:"varint,8,opt,name=timeOffset" json:"timeOffset,omitempty"` - JpegThumbnail []byte `protobuf:"bytes,16,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` + Version *uint64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` } -func (x *LiveLocationMessage) Reset() { - *x = LiveLocationMessage{} +func (x *SyncdVersion) Reset() { + *x = SyncdVersion{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[110] + mi := &file_binary_proto_def_proto_msgTypes[121] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *LiveLocationMessage) String() string { +func (x *SyncdVersion) String() string { return protoimpl.X.MessageStringOf(x) } -func (*LiveLocationMessage) ProtoMessage() {} +func (*SyncdVersion) ProtoMessage() {} -func (x *LiveLocationMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[110] +func (x *SyncdVersion) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[121] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12451,120 +14023,93 @@ func (x *LiveLocationMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LiveLocationMessage.ProtoReflect.Descriptor instead. -func (*LiveLocationMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{110} -} - -func (x *LiveLocationMessage) GetDegreesLatitude() float64 { - if x != nil && x.DegreesLatitude != nil { - return *x.DegreesLatitude - } - return 0 +// Deprecated: Use SyncdVersion.ProtoReflect.Descriptor instead. +func (*SyncdVersion) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{121} } -func (x *LiveLocationMessage) GetDegreesLongitude() float64 { - if x != nil && x.DegreesLongitude != nil { - return *x.DegreesLongitude +func (x *SyncdVersion) GetVersion() uint64 { + if x != nil && x.Version != nil { + return *x.Version } return 0 } -func (x *LiveLocationMessage) GetAccuracyInMeters() uint32 { - if x != nil && x.AccuracyInMeters != nil { - return *x.AccuracyInMeters - } - return 0 -} +type SyncdValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *LiveLocationMessage) GetSpeedInMps() float32 { - if x != nil && x.SpeedInMps != nil { - return *x.SpeedInMps - } - return 0 + Blob []byte `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"` } -func (x *LiveLocationMessage) GetDegreesClockwiseFromMagneticNorth() uint32 { - if x != nil && x.DegreesClockwiseFromMagneticNorth != nil { - return *x.DegreesClockwiseFromMagneticNorth +func (x *SyncdValue) Reset() { + *x = SyncdValue{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[122] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (x *LiveLocationMessage) GetCaption() string { - if x != nil && x.Caption != nil { - return *x.Caption - } - return "" +func (x *SyncdValue) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *LiveLocationMessage) GetSequenceNumber() int64 { - if x != nil && x.SequenceNumber != nil { - return *x.SequenceNumber - } - return 0 -} +func (*SyncdValue) ProtoMessage() {} -func (x *LiveLocationMessage) GetTimeOffset() uint32 { - if x != nil && x.TimeOffset != nil { - return *x.TimeOffset +func (x *SyncdValue) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[122] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *LiveLocationMessage) GetJpegThumbnail() []byte { - if x != nil { - return x.JpegThumbnail - } - return nil +// Deprecated: Use SyncdValue.ProtoReflect.Descriptor instead. +func (*SyncdValue) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{122} } -func (x *LiveLocationMessage) GetContextInfo() *ContextInfo { +func (x *SyncdValue) GetBlob() []byte { if x != nil { - return x.ContextInfo + return x.Blob } return nil } -type StickerMessage struct { +type SyncdSnapshot struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` - FileSha256 []byte `protobuf:"bytes,2,opt,name=fileSha256" json:"fileSha256,omitempty"` - FileEncSha256 []byte `protobuf:"bytes,3,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` - MediaKey []byte `protobuf:"bytes,4,opt,name=mediaKey" json:"mediaKey,omitempty"` - Mimetype *string `protobuf:"bytes,5,opt,name=mimetype" json:"mimetype,omitempty"` - Height *uint32 `protobuf:"varint,6,opt,name=height" json:"height,omitempty"` - Width *uint32 `protobuf:"varint,7,opt,name=width" json:"width,omitempty"` - DirectPath *string `protobuf:"bytes,8,opt,name=directPath" json:"directPath,omitempty"` - FileLength *uint64 `protobuf:"varint,9,opt,name=fileLength" json:"fileLength,omitempty"` - MediaKeyTimestamp *int64 `protobuf:"varint,10,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` - FirstFrameLength *uint32 `protobuf:"varint,11,opt,name=firstFrameLength" json:"firstFrameLength,omitempty"` - FirstFrameSidecar []byte `protobuf:"bytes,12,opt,name=firstFrameSidecar" json:"firstFrameSidecar,omitempty"` - IsAnimated *bool `protobuf:"varint,13,opt,name=isAnimated" json:"isAnimated,omitempty"` - PngThumbnail []byte `protobuf:"bytes,16,opt,name=pngThumbnail" json:"pngThumbnail,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` + Version *SyncdVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` + Records []*SyncdRecord `protobuf:"bytes,2,rep,name=records" json:"records,omitempty"` + Mac []byte `protobuf:"bytes,3,opt,name=mac" json:"mac,omitempty"` + KeyId *KeyId `protobuf:"bytes,4,opt,name=keyId" json:"keyId,omitempty"` } -func (x *StickerMessage) Reset() { - *x = StickerMessage{} +func (x *SyncdSnapshot) Reset() { + *x = SyncdSnapshot{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[111] + mi := &file_binary_proto_def_proto_msgTypes[123] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *StickerMessage) String() string { +func (x *SyncdSnapshot) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StickerMessage) ProtoMessage() {} +func (*SyncdSnapshot) ProtoMessage() {} -func (x *StickerMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[111] +func (x *SyncdSnapshot) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[123] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12575,150 +14120,134 @@ func (x *StickerMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StickerMessage.ProtoReflect.Descriptor instead. -func (*StickerMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{111} +// Deprecated: Use SyncdSnapshot.ProtoReflect.Descriptor instead. +func (*SyncdSnapshot) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{123} } -func (x *StickerMessage) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url +func (x *SyncdSnapshot) GetVersion() *SyncdVersion { + if x != nil { + return x.Version } - return "" + return nil } -func (x *StickerMessage) GetFileSha256() []byte { +func (x *SyncdSnapshot) GetRecords() []*SyncdRecord { if x != nil { - return x.FileSha256 + return x.Records } return nil } -func (x *StickerMessage) GetFileEncSha256() []byte { +func (x *SyncdSnapshot) GetMac() []byte { if x != nil { - return x.FileEncSha256 + return x.Mac } return nil } -func (x *StickerMessage) GetMediaKey() []byte { +func (x *SyncdSnapshot) GetKeyId() *KeyId { if x != nil { - return x.MediaKey + return x.KeyId } return nil } -func (x *StickerMessage) GetMimetype() string { - if x != nil && x.Mimetype != nil { - return *x.Mimetype - } - return "" -} +type SyncdRecord struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *StickerMessage) GetHeight() uint32 { - if x != nil && x.Height != nil { - return *x.Height - } - return 0 + Index *SyncdIndex `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` + Value *SyncdValue `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` + KeyId *KeyId `protobuf:"bytes,3,opt,name=keyId" json:"keyId,omitempty"` } -func (x *StickerMessage) GetWidth() uint32 { - if x != nil && x.Width != nil { - return *x.Width +func (x *SyncdRecord) Reset() { + *x = SyncdRecord{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[124] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (x *StickerMessage) GetDirectPath() string { - if x != nil && x.DirectPath != nil { - return *x.DirectPath - } - return "" +func (x *SyncdRecord) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *StickerMessage) GetFileLength() uint64 { - if x != nil && x.FileLength != nil { - return *x.FileLength - } - return 0 -} +func (*SyncdRecord) ProtoMessage() {} -func (x *StickerMessage) GetMediaKeyTimestamp() int64 { - if x != nil && x.MediaKeyTimestamp != nil { - return *x.MediaKeyTimestamp +func (x *SyncdRecord) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[124] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *StickerMessage) GetFirstFrameLength() uint32 { - if x != nil && x.FirstFrameLength != nil { - return *x.FirstFrameLength - } - return 0 +// Deprecated: Use SyncdRecord.ProtoReflect.Descriptor instead. +func (*SyncdRecord) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{124} } -func (x *StickerMessage) GetFirstFrameSidecar() []byte { +func (x *SyncdRecord) GetIndex() *SyncdIndex { if x != nil { - return x.FirstFrameSidecar + return x.Index } return nil } -func (x *StickerMessage) GetIsAnimated() bool { - if x != nil && x.IsAnimated != nil { - return *x.IsAnimated - } - return false -} - -func (x *StickerMessage) GetPngThumbnail() []byte { +func (x *SyncdRecord) GetValue() *SyncdValue { if x != nil { - return x.PngThumbnail + return x.Value } return nil } -func (x *StickerMessage) GetContextInfo() *ContextInfo { +func (x *SyncdRecord) GetKeyId() *KeyId { if x != nil { - return x.ContextInfo + return x.KeyId } return nil } -type FourRowTemplate struct { +type SyncdPatch struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Content *HighlyStructuredMessage `protobuf:"bytes,6,opt,name=content" json:"content,omitempty"` - Footer *HighlyStructuredMessage `protobuf:"bytes,7,opt,name=footer" json:"footer,omitempty"` - Buttons []*TemplateButton `protobuf:"bytes,8,rep,name=buttons" json:"buttons,omitempty"` - // Types that are assignable to Title: - // *FourRowTemplate_DocumentMessage - // *FourRowTemplate_HighlyStructuredMessage - // *FourRowTemplate_ImageMessage - // *FourRowTemplate_VideoMessage - // *FourRowTemplate_LocationMessage - Title isFourRowTemplate_Title `protobuf_oneof:"title"` + Version *SyncdVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` + Mutations []*SyncdMutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` + ExternalMutations *ExternalBlobReference `protobuf:"bytes,3,opt,name=externalMutations" json:"externalMutations,omitempty"` + SnapshotMac []byte `protobuf:"bytes,4,opt,name=snapshotMac" json:"snapshotMac,omitempty"` + PatchMac []byte `protobuf:"bytes,5,opt,name=patchMac" json:"patchMac,omitempty"` + KeyId *KeyId `protobuf:"bytes,6,opt,name=keyId" json:"keyId,omitempty"` + ExitCode *ExitCode `protobuf:"bytes,7,opt,name=exitCode" json:"exitCode,omitempty"` + DeviceIndex *uint32 `protobuf:"varint,8,opt,name=deviceIndex" json:"deviceIndex,omitempty"` } -func (x *FourRowTemplate) Reset() { - *x = FourRowTemplate{} +func (x *SyncdPatch) Reset() { + *x = SyncdPatch{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[112] + mi := &file_binary_proto_def_proto_msgTypes[125] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FourRowTemplate) String() string { +func (x *SyncdPatch) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FourRowTemplate) ProtoMessage() {} +func (*SyncdPatch) ProtoMessage() {} -func (x *FourRowTemplate) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[112] +func (x *SyncdPatch) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[125] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12729,143 +14258,92 @@ func (x *FourRowTemplate) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FourRowTemplate.ProtoReflect.Descriptor instead. -func (*FourRowTemplate) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{112} +// Deprecated: Use SyncdPatch.ProtoReflect.Descriptor instead. +func (*SyncdPatch) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{125} } -func (x *FourRowTemplate) GetContent() *HighlyStructuredMessage { +func (x *SyncdPatch) GetVersion() *SyncdVersion { if x != nil { - return x.Content + return x.Version } return nil } -func (x *FourRowTemplate) GetFooter() *HighlyStructuredMessage { +func (x *SyncdPatch) GetMutations() []*SyncdMutation { if x != nil { - return x.Footer + return x.Mutations } return nil } -func (x *FourRowTemplate) GetButtons() []*TemplateButton { +func (x *SyncdPatch) GetExternalMutations() *ExternalBlobReference { if x != nil { - return x.Buttons - } - return nil -} - -func (m *FourRowTemplate) GetTitle() isFourRowTemplate_Title { - if m != nil { - return m.Title + return x.ExternalMutations } return nil } -func (x *FourRowTemplate) GetDocumentMessage() *DocumentMessage { - if x, ok := x.GetTitle().(*FourRowTemplate_DocumentMessage); ok { - return x.DocumentMessage +func (x *SyncdPatch) GetSnapshotMac() []byte { + if x != nil { + return x.SnapshotMac } return nil } -func (x *FourRowTemplate) GetHighlyStructuredMessage() *HighlyStructuredMessage { - if x, ok := x.GetTitle().(*FourRowTemplate_HighlyStructuredMessage); ok { - return x.HighlyStructuredMessage +func (x *SyncdPatch) GetPatchMac() []byte { + if x != nil { + return x.PatchMac } return nil } -func (x *FourRowTemplate) GetImageMessage() *ImageMessage { - if x, ok := x.GetTitle().(*FourRowTemplate_ImageMessage); ok { - return x.ImageMessage +func (x *SyncdPatch) GetKeyId() *KeyId { + if x != nil { + return x.KeyId } return nil } -func (x *FourRowTemplate) GetVideoMessage() *VideoMessage { - if x, ok := x.GetTitle().(*FourRowTemplate_VideoMessage); ok { - return x.VideoMessage +func (x *SyncdPatch) GetExitCode() *ExitCode { + if x != nil { + return x.ExitCode } return nil } -func (x *FourRowTemplate) GetLocationMessage() *LocationMessage { - if x, ok := x.GetTitle().(*FourRowTemplate_LocationMessage); ok { - return x.LocationMessage +func (x *SyncdPatch) GetDeviceIndex() uint32 { + if x != nil && x.DeviceIndex != nil { + return *x.DeviceIndex } - return nil -} - -type isFourRowTemplate_Title interface { - isFourRowTemplate_Title() -} - -type FourRowTemplate_DocumentMessage struct { - DocumentMessage *DocumentMessage `protobuf:"bytes,1,opt,name=documentMessage,oneof"` -} - -type FourRowTemplate_HighlyStructuredMessage struct { - HighlyStructuredMessage *HighlyStructuredMessage `protobuf:"bytes,2,opt,name=highlyStructuredMessage,oneof"` -} - -type FourRowTemplate_ImageMessage struct { - ImageMessage *ImageMessage `protobuf:"bytes,3,opt,name=imageMessage,oneof"` -} - -type FourRowTemplate_VideoMessage struct { - VideoMessage *VideoMessage `protobuf:"bytes,4,opt,name=videoMessage,oneof"` -} - -type FourRowTemplate_LocationMessage struct { - LocationMessage *LocationMessage `protobuf:"bytes,5,opt,name=locationMessage,oneof"` + return 0 } -func (*FourRowTemplate_DocumentMessage) isFourRowTemplate_Title() {} - -func (*FourRowTemplate_HighlyStructuredMessage) isFourRowTemplate_Title() {} - -func (*FourRowTemplate_ImageMessage) isFourRowTemplate_Title() {} - -func (*FourRowTemplate_VideoMessage) isFourRowTemplate_Title() {} - -func (*FourRowTemplate_LocationMessage) isFourRowTemplate_Title() {} - -type HydratedFourRowTemplate struct { +type SyncdMutations struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - HydratedContentText *string `protobuf:"bytes,6,opt,name=hydratedContentText" json:"hydratedContentText,omitempty"` - HydratedFooterText *string `protobuf:"bytes,7,opt,name=hydratedFooterText" json:"hydratedFooterText,omitempty"` - HydratedButtons []*HydratedTemplateButton `protobuf:"bytes,8,rep,name=hydratedButtons" json:"hydratedButtons,omitempty"` - TemplateId *string `protobuf:"bytes,9,opt,name=templateId" json:"templateId,omitempty"` - // Types that are assignable to Title: - // *HydratedFourRowTemplate_DocumentMessage - // *HydratedFourRowTemplate_HydratedTitleText - // *HydratedFourRowTemplate_ImageMessage - // *HydratedFourRowTemplate_VideoMessage - // *HydratedFourRowTemplate_LocationMessage - Title isHydratedFourRowTemplate_Title `protobuf_oneof:"title"` + Mutations []*SyncdMutation `protobuf:"bytes,1,rep,name=mutations" json:"mutations,omitempty"` } -func (x *HydratedFourRowTemplate) Reset() { - *x = HydratedFourRowTemplate{} +func (x *SyncdMutations) Reset() { + *x = SyncdMutations{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[113] + mi := &file_binary_proto_def_proto_msgTypes[126] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HydratedFourRowTemplate) String() string { +func (x *SyncdMutations) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HydratedFourRowTemplate) ProtoMessage() {} +func (*SyncdMutations) ProtoMessage() {} -func (x *HydratedFourRowTemplate) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[113] +func (x *SyncdMutations) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[126] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12876,145 +14354,44 @@ func (x *HydratedFourRowTemplate) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HydratedFourRowTemplate.ProtoReflect.Descriptor instead. -func (*HydratedFourRowTemplate) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{113} -} - -func (x *HydratedFourRowTemplate) GetHydratedContentText() string { - if x != nil && x.HydratedContentText != nil { - return *x.HydratedContentText - } - return "" -} - -func (x *HydratedFourRowTemplate) GetHydratedFooterText() string { - if x != nil && x.HydratedFooterText != nil { - return *x.HydratedFooterText - } - return "" +// Deprecated: Use SyncdMutations.ProtoReflect.Descriptor instead. +func (*SyncdMutations) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{126} } -func (x *HydratedFourRowTemplate) GetHydratedButtons() []*HydratedTemplateButton { +func (x *SyncdMutations) GetMutations() []*SyncdMutation { if x != nil { - return x.HydratedButtons - } - return nil -} - -func (x *HydratedFourRowTemplate) GetTemplateId() string { - if x != nil && x.TemplateId != nil { - return *x.TemplateId - } - return "" -} - -func (m *HydratedFourRowTemplate) GetTitle() isHydratedFourRowTemplate_Title { - if m != nil { - return m.Title - } - return nil -} - -func (x *HydratedFourRowTemplate) GetDocumentMessage() *DocumentMessage { - if x, ok := x.GetTitle().(*HydratedFourRowTemplate_DocumentMessage); ok { - return x.DocumentMessage - } - return nil -} - -func (x *HydratedFourRowTemplate) GetHydratedTitleText() string { - if x, ok := x.GetTitle().(*HydratedFourRowTemplate_HydratedTitleText); ok { - return x.HydratedTitleText - } - return "" -} - -func (x *HydratedFourRowTemplate) GetImageMessage() *ImageMessage { - if x, ok := x.GetTitle().(*HydratedFourRowTemplate_ImageMessage); ok { - return x.ImageMessage - } - return nil -} - -func (x *HydratedFourRowTemplate) GetVideoMessage() *VideoMessage { - if x, ok := x.GetTitle().(*HydratedFourRowTemplate_VideoMessage); ok { - return x.VideoMessage - } - return nil -} - -func (x *HydratedFourRowTemplate) GetLocationMessage() *LocationMessage { - if x, ok := x.GetTitle().(*HydratedFourRowTemplate_LocationMessage); ok { - return x.LocationMessage + return x.Mutations } return nil } -type isHydratedFourRowTemplate_Title interface { - isHydratedFourRowTemplate_Title() -} - -type HydratedFourRowTemplate_DocumentMessage struct { - DocumentMessage *DocumentMessage `protobuf:"bytes,1,opt,name=documentMessage,oneof"` -} - -type HydratedFourRowTemplate_HydratedTitleText struct { - HydratedTitleText string `protobuf:"bytes,2,opt,name=hydratedTitleText,oneof"` -} - -type HydratedFourRowTemplate_ImageMessage struct { - ImageMessage *ImageMessage `protobuf:"bytes,3,opt,name=imageMessage,oneof"` -} - -type HydratedFourRowTemplate_VideoMessage struct { - VideoMessage *VideoMessage `protobuf:"bytes,4,opt,name=videoMessage,oneof"` -} - -type HydratedFourRowTemplate_LocationMessage struct { - LocationMessage *LocationMessage `protobuf:"bytes,5,opt,name=locationMessage,oneof"` -} - -func (*HydratedFourRowTemplate_DocumentMessage) isHydratedFourRowTemplate_Title() {} - -func (*HydratedFourRowTemplate_HydratedTitleText) isHydratedFourRowTemplate_Title() {} - -func (*HydratedFourRowTemplate_ImageMessage) isHydratedFourRowTemplate_Title() {} - -func (*HydratedFourRowTemplate_VideoMessage) isHydratedFourRowTemplate_Title() {} - -func (*HydratedFourRowTemplate_LocationMessage) isHydratedFourRowTemplate_Title() {} - -type TemplateMessage struct { +type SyncdMutation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ContextInfo *ContextInfo `protobuf:"bytes,3,opt,name=contextInfo" json:"contextInfo,omitempty"` - HydratedTemplate *HydratedFourRowTemplate `protobuf:"bytes,4,opt,name=hydratedTemplate" json:"hydratedTemplate,omitempty"` - // Types that are assignable to Format: - // *TemplateMessage_FourRowTemplate - // *TemplateMessage_HydratedFourRowTemplate - Format isTemplateMessage_Format `protobuf_oneof:"format"` + Operation *SyncdMutation_SyncdMutationSyncdOperation `protobuf:"varint,1,opt,name=operation,enum=proto.SyncdMutation_SyncdMutationSyncdOperation" json:"operation,omitempty"` + Record *SyncdRecord `protobuf:"bytes,2,opt,name=record" json:"record,omitempty"` } -func (x *TemplateMessage) Reset() { - *x = TemplateMessage{} +func (x *SyncdMutation) Reset() { + *x = SyncdMutation{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[114] + mi := &file_binary_proto_def_proto_msgTypes[127] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *TemplateMessage) String() string { +func (x *SyncdMutation) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TemplateMessage) ProtoMessage() {} +func (*SyncdMutation) ProtoMessage() {} -func (x *TemplateMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[114] +func (x *SyncdMutation) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[127] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13025,90 +14402,50 @@ func (x *TemplateMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TemplateMessage.ProtoReflect.Descriptor instead. -func (*TemplateMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{114} +// Deprecated: Use SyncdMutation.ProtoReflect.Descriptor instead. +func (*SyncdMutation) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{127} } -func (x *TemplateMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo +func (x *SyncdMutation) GetOperation() SyncdMutation_SyncdMutationSyncdOperation { + if x != nil && x.Operation != nil { + return *x.Operation } - return nil + return SyncdMutation_SET } -func (x *TemplateMessage) GetHydratedTemplate() *HydratedFourRowTemplate { +func (x *SyncdMutation) GetRecord() *SyncdRecord { if x != nil { - return x.HydratedTemplate - } - return nil -} - -func (m *TemplateMessage) GetFormat() isTemplateMessage_Format { - if m != nil { - return m.Format - } - return nil -} - -func (x *TemplateMessage) GetFourRowTemplate() *FourRowTemplate { - if x, ok := x.GetFormat().(*TemplateMessage_FourRowTemplate); ok { - return x.FourRowTemplate - } - return nil -} - -func (x *TemplateMessage) GetHydratedFourRowTemplate() *HydratedFourRowTemplate { - if x, ok := x.GetFormat().(*TemplateMessage_HydratedFourRowTemplate); ok { - return x.HydratedFourRowTemplate + return x.Record } return nil } -type isTemplateMessage_Format interface { - isTemplateMessage_Format() -} - -type TemplateMessage_FourRowTemplate struct { - FourRowTemplate *FourRowTemplate `protobuf:"bytes,1,opt,name=fourRowTemplate,oneof"` -} - -type TemplateMessage_HydratedFourRowTemplate struct { - HydratedFourRowTemplate *HydratedFourRowTemplate `protobuf:"bytes,2,opt,name=hydratedFourRowTemplate,oneof"` -} - -func (*TemplateMessage_FourRowTemplate) isTemplateMessage_Format() {} - -func (*TemplateMessage_HydratedFourRowTemplate) isTemplateMessage_Format() {} - -type TemplateButtonReplyMessage struct { +type SyncdIndex struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - SelectedId *string `protobuf:"bytes,1,opt,name=selectedId" json:"selectedId,omitempty"` - SelectedDisplayText *string `protobuf:"bytes,2,opt,name=selectedDisplayText" json:"selectedDisplayText,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,3,opt,name=contextInfo" json:"contextInfo,omitempty"` - SelectedIndex *uint32 `protobuf:"varint,4,opt,name=selectedIndex" json:"selectedIndex,omitempty"` + Blob []byte `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"` } -func (x *TemplateButtonReplyMessage) Reset() { - *x = TemplateButtonReplyMessage{} +func (x *SyncdIndex) Reset() { + *x = SyncdIndex{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[115] + mi := &file_binary_proto_def_proto_msgTypes[128] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *TemplateButtonReplyMessage) String() string { +func (x *SyncdIndex) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TemplateButtonReplyMessage) ProtoMessage() {} +func (*SyncdIndex) ProtoMessage() {} -func (x *TemplateButtonReplyMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[115] +func (x *SyncdIndex) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[128] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13119,66 +14456,43 @@ func (x *TemplateButtonReplyMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TemplateButtonReplyMessage.ProtoReflect.Descriptor instead. -func (*TemplateButtonReplyMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{115} -} - -func (x *TemplateButtonReplyMessage) GetSelectedId() string { - if x != nil && x.SelectedId != nil { - return *x.SelectedId - } - return "" -} - -func (x *TemplateButtonReplyMessage) GetSelectedDisplayText() string { - if x != nil && x.SelectedDisplayText != nil { - return *x.SelectedDisplayText - } - return "" +// Deprecated: Use SyncdIndex.ProtoReflect.Descriptor instead. +func (*SyncdIndex) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{128} } -func (x *TemplateButtonReplyMessage) GetContextInfo() *ContextInfo { +func (x *SyncdIndex) GetBlob() []byte { if x != nil { - return x.ContextInfo + return x.Blob } return nil } -func (x *TemplateButtonReplyMessage) GetSelectedIndex() uint32 { - if x != nil && x.SelectedIndex != nil { - return *x.SelectedIndex - } - return 0 -} - -type CatalogSnapshot struct { +type KeyId struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - CatalogImage *ImageMessage `protobuf:"bytes,1,opt,name=catalogImage" json:"catalogImage,omitempty"` - Title *string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` - Description *string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` + Id []byte `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` } -func (x *CatalogSnapshot) Reset() { - *x = CatalogSnapshot{} +func (x *KeyId) Reset() { + *x = KeyId{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[116] + mi := &file_binary_proto_def_proto_msgTypes[129] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CatalogSnapshot) String() string { +func (x *KeyId) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CatalogSnapshot) ProtoMessage() {} +func (*KeyId) ProtoMessage() {} -func (x *CatalogSnapshot) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[116] +func (x *KeyId) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[129] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13189,67 +14503,48 @@ func (x *CatalogSnapshot) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CatalogSnapshot.ProtoReflect.Descriptor instead. -func (*CatalogSnapshot) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{116} +// Deprecated: Use KeyId.ProtoReflect.Descriptor instead. +func (*KeyId) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{129} } -func (x *CatalogSnapshot) GetCatalogImage() *ImageMessage { +func (x *KeyId) GetId() []byte { if x != nil { - return x.CatalogImage + return x.Id } return nil } -func (x *CatalogSnapshot) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title - } - return "" -} - -func (x *CatalogSnapshot) GetDescription() string { - if x != nil && x.Description != nil { - return *x.Description - } - return "" -} - -type ProductSnapshot struct { +type ExternalBlobReference struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ProductImage *ImageMessage `protobuf:"bytes,1,opt,name=productImage" json:"productImage,omitempty"` - ProductId *string `protobuf:"bytes,2,opt,name=productId" json:"productId,omitempty"` - Title *string `protobuf:"bytes,3,opt,name=title" json:"title,omitempty"` - Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` - CurrencyCode *string `protobuf:"bytes,5,opt,name=currencyCode" json:"currencyCode,omitempty"` - PriceAmount1000 *int64 `protobuf:"varint,6,opt,name=priceAmount1000" json:"priceAmount1000,omitempty"` - RetailerId *string `protobuf:"bytes,7,opt,name=retailerId" json:"retailerId,omitempty"` - Url *string `protobuf:"bytes,8,opt,name=url" json:"url,omitempty"` - ProductImageCount *uint32 `protobuf:"varint,9,opt,name=productImageCount" json:"productImageCount,omitempty"` - FirstImageId *string `protobuf:"bytes,11,opt,name=firstImageId" json:"firstImageId,omitempty"` - SalePriceAmount1000 *int64 `protobuf:"varint,12,opt,name=salePriceAmount1000" json:"salePriceAmount1000,omitempty"` + MediaKey []byte `protobuf:"bytes,1,opt,name=mediaKey" json:"mediaKey,omitempty"` + DirectPath *string `protobuf:"bytes,2,opt,name=directPath" json:"directPath,omitempty"` + Handle *string `protobuf:"bytes,3,opt,name=handle" json:"handle,omitempty"` + FileSizeBytes *uint64 `protobuf:"varint,4,opt,name=fileSizeBytes" json:"fileSizeBytes,omitempty"` + FileSha256 []byte `protobuf:"bytes,5,opt,name=fileSha256" json:"fileSha256,omitempty"` + FileEncSha256 []byte `protobuf:"bytes,6,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` } -func (x *ProductSnapshot) Reset() { - *x = ProductSnapshot{} +func (x *ExternalBlobReference) Reset() { + *x = ExternalBlobReference{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[117] + mi := &file_binary_proto_def_proto_msgTypes[130] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ProductSnapshot) String() string { +func (x *ExternalBlobReference) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ProductSnapshot) ProtoMessage() {} +func (*ExternalBlobReference) ProtoMessage() {} -func (x *ProductSnapshot) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[117] +func (x *ExternalBlobReference) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[130] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13260,118 +14555,156 @@ func (x *ProductSnapshot) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ProductSnapshot.ProtoReflect.Descriptor instead. -func (*ProductSnapshot) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{117} +// Deprecated: Use ExternalBlobReference.ProtoReflect.Descriptor instead. +func (*ExternalBlobReference) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{130} } -func (x *ProductSnapshot) GetProductImage() *ImageMessage { +func (x *ExternalBlobReference) GetMediaKey() []byte { if x != nil { - return x.ProductImage + return x.MediaKey } return nil } -func (x *ProductSnapshot) GetProductId() string { - if x != nil && x.ProductId != nil { - return *x.ProductId +func (x *ExternalBlobReference) GetDirectPath() string { + if x != nil && x.DirectPath != nil { + return *x.DirectPath } return "" } -func (x *ProductSnapshot) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title +func (x *ExternalBlobReference) GetHandle() string { + if x != nil && x.Handle != nil { + return *x.Handle } return "" } -func (x *ProductSnapshot) GetDescription() string { - if x != nil && x.Description != nil { - return *x.Description +func (x *ExternalBlobReference) GetFileSizeBytes() uint64 { + if x != nil && x.FileSizeBytes != nil { + return *x.FileSizeBytes } - return "" + return 0 } -func (x *ProductSnapshot) GetCurrencyCode() string { - if x != nil && x.CurrencyCode != nil { - return *x.CurrencyCode +func (x *ExternalBlobReference) GetFileSha256() []byte { + if x != nil { + return x.FileSha256 } - return "" + return nil } -func (x *ProductSnapshot) GetPriceAmount1000() int64 { - if x != nil && x.PriceAmount1000 != nil { - return *x.PriceAmount1000 +func (x *ExternalBlobReference) GetFileEncSha256() []byte { + if x != nil { + return x.FileEncSha256 } - return 0 + return nil } -func (x *ProductSnapshot) GetRetailerId() string { - if x != nil && x.RetailerId != nil { - return *x.RetailerId - } - return "" +type ExitCode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Code *uint64 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` + Text *string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` } -func (x *ProductSnapshot) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url +func (x *ExitCode) Reset() { + *x = ExitCode{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[131] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *ProductSnapshot) GetProductImageCount() uint32 { - if x != nil && x.ProductImageCount != nil { - return *x.ProductImageCount - } - return 0 +func (x *ExitCode) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *ProductSnapshot) GetFirstImageId() string { - if x != nil && x.FirstImageId != nil { - return *x.FirstImageId +func (*ExitCode) ProtoMessage() {} + +func (x *ExitCode) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[131] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (x *ProductSnapshot) GetSalePriceAmount1000() int64 { - if x != nil && x.SalePriceAmount1000 != nil { - return *x.SalePriceAmount1000 +// Deprecated: Use ExitCode.ProtoReflect.Descriptor instead. +func (*ExitCode) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{131} +} + +func (x *ExitCode) GetCode() uint64 { + if x != nil && x.Code != nil { + return *x.Code } return 0 } -type ProductMessage struct { +func (x *ExitCode) GetText() string { + if x != nil && x.Text != nil { + return *x.Text + } + return "" +} + +type SyncActionValue struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Product *ProductSnapshot `protobuf:"bytes,1,opt,name=product" json:"product,omitempty"` - BusinessOwnerJid *string `protobuf:"bytes,2,opt,name=businessOwnerJid" json:"businessOwnerJid,omitempty"` - Catalog *CatalogSnapshot `protobuf:"bytes,4,opt,name=catalog" json:"catalog,omitempty"` - Body *string `protobuf:"bytes,5,opt,name=body" json:"body,omitempty"` - Footer *string `protobuf:"bytes,6,opt,name=footer" json:"footer,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` + Timestamp *int64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"` + StarAction *StarAction `protobuf:"bytes,2,opt,name=starAction" json:"starAction,omitempty"` + ContactAction *ContactAction `protobuf:"bytes,3,opt,name=contactAction" json:"contactAction,omitempty"` + MuteAction *MuteAction `protobuf:"bytes,4,opt,name=muteAction" json:"muteAction,omitempty"` + PinAction *PinAction `protobuf:"bytes,5,opt,name=pinAction" json:"pinAction,omitempty"` + SecurityNotificationSetting *SecurityNotificationSetting `protobuf:"bytes,6,opt,name=securityNotificationSetting" json:"securityNotificationSetting,omitempty"` + PushNameSetting *PushNameSetting `protobuf:"bytes,7,opt,name=pushNameSetting" json:"pushNameSetting,omitempty"` + QuickReplyAction *QuickReplyAction `protobuf:"bytes,8,opt,name=quickReplyAction" json:"quickReplyAction,omitempty"` + RecentStickerWeightsAction *RecentStickerWeightsAction `protobuf:"bytes,9,opt,name=recentStickerWeightsAction" json:"recentStickerWeightsAction,omitempty"` + RecentStickerMetadata *RecentStickerMetadata `protobuf:"bytes,10,opt,name=recentStickerMetadata" json:"recentStickerMetadata,omitempty"` + RecentEmojiWeightsAction *RecentEmojiWeightsAction `protobuf:"bytes,11,opt,name=recentEmojiWeightsAction" json:"recentEmojiWeightsAction,omitempty"` + LabelEditAction *LabelEditAction `protobuf:"bytes,14,opt,name=labelEditAction" json:"labelEditAction,omitempty"` + LabelAssociationAction *LabelAssociationAction `protobuf:"bytes,15,opt,name=labelAssociationAction" json:"labelAssociationAction,omitempty"` + LocaleSetting *LocaleSetting `protobuf:"bytes,16,opt,name=localeSetting" json:"localeSetting,omitempty"` + ArchiveChatAction *ArchiveChatAction `protobuf:"bytes,17,opt,name=archiveChatAction" json:"archiveChatAction,omitempty"` + DeleteMessageForMeAction *DeleteMessageForMeAction `protobuf:"bytes,18,opt,name=deleteMessageForMeAction" json:"deleteMessageForMeAction,omitempty"` + KeyExpiration *KeyExpiration `protobuf:"bytes,19,opt,name=keyExpiration" json:"keyExpiration,omitempty"` + MarkChatAsReadAction *MarkChatAsReadAction `protobuf:"bytes,20,opt,name=markChatAsReadAction" json:"markChatAsReadAction,omitempty"` + ClearChatAction *ClearChatAction `protobuf:"bytes,21,opt,name=clearChatAction" json:"clearChatAction,omitempty"` + DeleteChatAction *DeleteChatAction `protobuf:"bytes,22,opt,name=deleteChatAction" json:"deleteChatAction,omitempty"` + UnarchiveChatsSetting *UnarchiveChatsSetting `protobuf:"bytes,23,opt,name=unarchiveChatsSetting" json:"unarchiveChatsSetting,omitempty"` + PrimaryFeature *PrimaryFeature `protobuf:"bytes,24,opt,name=primaryFeature" json:"primaryFeature,omitempty"` + FavoriteStickerAction *FavoriteStickerAction `protobuf:"bytes,25,opt,name=favoriteStickerAction" json:"favoriteStickerAction,omitempty"` + AndroidUnsupportedActions *AndroidUnsupportedActions `protobuf:"bytes,26,opt,name=androidUnsupportedActions" json:"androidUnsupportedActions,omitempty"` } -func (x *ProductMessage) Reset() { - *x = ProductMessage{} +func (x *SyncActionValue) Reset() { + *x = SyncActionValue{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[118] + mi := &file_binary_proto_def_proto_msgTypes[132] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ProductMessage) String() string { +func (x *SyncActionValue) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ProductMessage) ProtoMessage() {} +func (*SyncActionValue) ProtoMessage() {} -func (x *ProductMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[118] +func (x *SyncActionValue) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[132] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13382,215 +14715,204 @@ func (x *ProductMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ProductMessage.ProtoReflect.Descriptor instead. -func (*ProductMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{118} +// Deprecated: Use SyncActionValue.ProtoReflect.Descriptor instead. +func (*SyncActionValue) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{132} } -func (x *ProductMessage) GetProduct() *ProductSnapshot { +func (x *SyncActionValue) GetTimestamp() int64 { + if x != nil && x.Timestamp != nil { + return *x.Timestamp + } + return 0 +} + +func (x *SyncActionValue) GetStarAction() *StarAction { if x != nil { - return x.Product + return x.StarAction } return nil } -func (x *ProductMessage) GetBusinessOwnerJid() string { - if x != nil && x.BusinessOwnerJid != nil { - return *x.BusinessOwnerJid +func (x *SyncActionValue) GetContactAction() *ContactAction { + if x != nil { + return x.ContactAction } - return "" + return nil } -func (x *ProductMessage) GetCatalog() *CatalogSnapshot { +func (x *SyncActionValue) GetMuteAction() *MuteAction { if x != nil { - return x.Catalog + return x.MuteAction } return nil } -func (x *ProductMessage) GetBody() string { - if x != nil && x.Body != nil { - return *x.Body +func (x *SyncActionValue) GetPinAction() *PinAction { + if x != nil { + return x.PinAction } - return "" + return nil } -func (x *ProductMessage) GetFooter() string { - if x != nil && x.Footer != nil { - return *x.Footer +func (x *SyncActionValue) GetSecurityNotificationSetting() *SecurityNotificationSetting { + if x != nil { + return x.SecurityNotificationSetting } - return "" + return nil } -func (x *ProductMessage) GetContextInfo() *ContextInfo { +func (x *SyncActionValue) GetPushNameSetting() *PushNameSetting { if x != nil { - return x.ContextInfo + return x.PushNameSetting } return nil } -type OrderMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrderId *string `protobuf:"bytes,1,opt,name=orderId" json:"orderId,omitempty"` - Thumbnail []byte `protobuf:"bytes,2,opt,name=thumbnail" json:"thumbnail,omitempty"` - ItemCount *int32 `protobuf:"varint,3,opt,name=itemCount" json:"itemCount,omitempty"` - Status *OrderMessage_OrderMessageOrderStatus `protobuf:"varint,4,opt,name=status,enum=proto.OrderMessage_OrderMessageOrderStatus" json:"status,omitempty"` - Surface *OrderMessage_OrderMessageOrderSurface `protobuf:"varint,5,opt,name=surface,enum=proto.OrderMessage_OrderMessageOrderSurface" json:"surface,omitempty"` - Message *string `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"` - OrderTitle *string `protobuf:"bytes,7,opt,name=orderTitle" json:"orderTitle,omitempty"` - SellerJid *string `protobuf:"bytes,8,opt,name=sellerJid" json:"sellerJid,omitempty"` - Token *string `protobuf:"bytes,9,opt,name=token" json:"token,omitempty"` - TotalAmount1000 *int64 `protobuf:"varint,10,opt,name=totalAmount1000" json:"totalAmount1000,omitempty"` - TotalCurrencyCode *string `protobuf:"bytes,11,opt,name=totalCurrencyCode" json:"totalCurrencyCode,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,17,opt,name=contextInfo" json:"contextInfo,omitempty"` +func (x *SyncActionValue) GetQuickReplyAction() *QuickReplyAction { + if x != nil { + return x.QuickReplyAction + } + return nil } -func (x *OrderMessage) Reset() { - *x = OrderMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[119] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *SyncActionValue) GetRecentStickerWeightsAction() *RecentStickerWeightsAction { + if x != nil { + return x.RecentStickerWeightsAction } + return nil } -func (x *OrderMessage) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *SyncActionValue) GetRecentStickerMetadata() *RecentStickerMetadata { + if x != nil { + return x.RecentStickerMetadata + } + return nil } -func (*OrderMessage) ProtoMessage() {} - -func (x *OrderMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[119] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *SyncActionValue) GetRecentEmojiWeightsAction() *RecentEmojiWeightsAction { + if x != nil { + return x.RecentEmojiWeightsAction } - return mi.MessageOf(x) + return nil } -// Deprecated: Use OrderMessage.ProtoReflect.Descriptor instead. -func (*OrderMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{119} +func (x *SyncActionValue) GetLabelEditAction() *LabelEditAction { + if x != nil { + return x.LabelEditAction + } + return nil } -func (x *OrderMessage) GetOrderId() string { - if x != nil && x.OrderId != nil { - return *x.OrderId +func (x *SyncActionValue) GetLabelAssociationAction() *LabelAssociationAction { + if x != nil { + return x.LabelAssociationAction } - return "" + return nil } -func (x *OrderMessage) GetThumbnail() []byte { +func (x *SyncActionValue) GetLocaleSetting() *LocaleSetting { if x != nil { - return x.Thumbnail + return x.LocaleSetting } return nil } -func (x *OrderMessage) GetItemCount() int32 { - if x != nil && x.ItemCount != nil { - return *x.ItemCount +func (x *SyncActionValue) GetArchiveChatAction() *ArchiveChatAction { + if x != nil { + return x.ArchiveChatAction } - return 0 + return nil } -func (x *OrderMessage) GetStatus() OrderMessage_OrderMessageOrderStatus { - if x != nil && x.Status != nil { - return *x.Status +func (x *SyncActionValue) GetDeleteMessageForMeAction() *DeleteMessageForMeAction { + if x != nil { + return x.DeleteMessageForMeAction } - return OrderMessage_INQUIRY + return nil } -func (x *OrderMessage) GetSurface() OrderMessage_OrderMessageOrderSurface { - if x != nil && x.Surface != nil { - return *x.Surface +func (x *SyncActionValue) GetKeyExpiration() *KeyExpiration { + if x != nil { + return x.KeyExpiration } - return OrderMessage_CATALOG + return nil } -func (x *OrderMessage) GetMessage() string { - if x != nil && x.Message != nil { - return *x.Message +func (x *SyncActionValue) GetMarkChatAsReadAction() *MarkChatAsReadAction { + if x != nil { + return x.MarkChatAsReadAction } - return "" + return nil } -func (x *OrderMessage) GetOrderTitle() string { - if x != nil && x.OrderTitle != nil { - return *x.OrderTitle +func (x *SyncActionValue) GetClearChatAction() *ClearChatAction { + if x != nil { + return x.ClearChatAction } - return "" + return nil } -func (x *OrderMessage) GetSellerJid() string { - if x != nil && x.SellerJid != nil { - return *x.SellerJid +func (x *SyncActionValue) GetDeleteChatAction() *DeleteChatAction { + if x != nil { + return x.DeleteChatAction } - return "" + return nil } -func (x *OrderMessage) GetToken() string { - if x != nil && x.Token != nil { - return *x.Token +func (x *SyncActionValue) GetUnarchiveChatsSetting() *UnarchiveChatsSetting { + if x != nil { + return x.UnarchiveChatsSetting } - return "" + return nil } -func (x *OrderMessage) GetTotalAmount1000() int64 { - if x != nil && x.TotalAmount1000 != nil { - return *x.TotalAmount1000 +func (x *SyncActionValue) GetPrimaryFeature() *PrimaryFeature { + if x != nil { + return x.PrimaryFeature } - return 0 + return nil } -func (x *OrderMessage) GetTotalCurrencyCode() string { - if x != nil && x.TotalCurrencyCode != nil { - return *x.TotalCurrencyCode +func (x *SyncActionValue) GetFavoriteStickerAction() *FavoriteStickerAction { + if x != nil { + return x.FavoriteStickerAction } - return "" + return nil } -func (x *OrderMessage) GetContextInfo() *ContextInfo { +func (x *SyncActionValue) GetAndroidUnsupportedActions() *AndroidUnsupportedActions { if x != nil { - return x.ContextInfo + return x.AndroidUnsupportedActions } return nil } -type Row struct { +type UnarchiveChatsSetting struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` - Description *string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` - RowId *string `protobuf:"bytes,3,opt,name=rowId" json:"rowId,omitempty"` + UnarchiveChats *bool `protobuf:"varint,1,opt,name=unarchiveChats" json:"unarchiveChats,omitempty"` } -func (x *Row) Reset() { - *x = Row{} +func (x *UnarchiveChatsSetting) Reset() { + *x = UnarchiveChatsSetting{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[120] + mi := &file_binary_proto_def_proto_msgTypes[133] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Row) String() string { +func (x *UnarchiveChatsSetting) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Row) ProtoMessage() {} +func (*UnarchiveChatsSetting) ProtoMessage() {} -func (x *Row) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[120] +func (x *UnarchiveChatsSetting) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[133] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13601,58 +14923,44 @@ func (x *Row) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Row.ProtoReflect.Descriptor instead. -func (*Row) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{120} -} - -func (x *Row) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title - } - return "" -} - -func (x *Row) GetDescription() string { - if x != nil && x.Description != nil { - return *x.Description - } - return "" +// Deprecated: Use UnarchiveChatsSetting.ProtoReflect.Descriptor instead. +func (*UnarchiveChatsSetting) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{133} } -func (x *Row) GetRowId() string { - if x != nil && x.RowId != nil { - return *x.RowId +func (x *UnarchiveChatsSetting) GetUnarchiveChats() bool { + if x != nil && x.UnarchiveChats != nil { + return *x.UnarchiveChats } - return "" + return false } -type Section struct { +type SyncActionMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` - Rows []*Row `protobuf:"bytes,2,rep,name=rows" json:"rows,omitempty"` + Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` + Timestamp *int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` } -func (x *Section) Reset() { - *x = Section{} +func (x *SyncActionMessage) Reset() { + *x = SyncActionMessage{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[121] + mi := &file_binary_proto_def_proto_msgTypes[134] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Section) String() string { +func (x *SyncActionMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Section) ProtoMessage() {} +func (*SyncActionMessage) ProtoMessage() {} -func (x *Section) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[121] +func (x *SyncActionMessage) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[134] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13663,50 +14971,52 @@ func (x *Section) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Section.ProtoReflect.Descriptor instead. -func (*Section) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{121} +// Deprecated: Use SyncActionMessage.ProtoReflect.Descriptor instead. +func (*SyncActionMessage) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{134} } -func (x *Section) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title +func (x *SyncActionMessage) GetKey() *MessageKey { + if x != nil { + return x.Key } - return "" + return nil } -func (x *Section) GetRows() []*Row { - if x != nil { - return x.Rows +func (x *SyncActionMessage) GetTimestamp() int64 { + if x != nil && x.Timestamp != nil { + return *x.Timestamp } - return nil + return 0 } -type Product struct { +type SyncActionMessageRange struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ProductId *string `protobuf:"bytes,1,opt,name=productId" json:"productId,omitempty"` + LastMessageTimestamp *int64 `protobuf:"varint,1,opt,name=lastMessageTimestamp" json:"lastMessageTimestamp,omitempty"` + LastSystemMessageTimestamp *int64 `protobuf:"varint,2,opt,name=lastSystemMessageTimestamp" json:"lastSystemMessageTimestamp,omitempty"` + Messages []*SyncActionMessage `protobuf:"bytes,3,rep,name=messages" json:"messages,omitempty"` } -func (x *Product) Reset() { - *x = Product{} +func (x *SyncActionMessageRange) Reset() { + *x = SyncActionMessageRange{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[122] + mi := &file_binary_proto_def_proto_msgTypes[135] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Product) String() string { +func (x *SyncActionMessageRange) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Product) ProtoMessage() {} +func (*SyncActionMessageRange) ProtoMessage() {} -func (x *Product) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[122] +func (x *SyncActionMessageRange) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[135] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13717,44 +15027,57 @@ func (x *Product) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Product.ProtoReflect.Descriptor instead. -func (*Product) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{122} +// Deprecated: Use SyncActionMessageRange.ProtoReflect.Descriptor instead. +func (*SyncActionMessageRange) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{135} } -func (x *Product) GetProductId() string { - if x != nil && x.ProductId != nil { - return *x.ProductId +func (x *SyncActionMessageRange) GetLastMessageTimestamp() int64 { + if x != nil && x.LastMessageTimestamp != nil { + return *x.LastMessageTimestamp } - return "" + return 0 } -type ProductSection struct { +func (x *SyncActionMessageRange) GetLastSystemMessageTimestamp() int64 { + if x != nil && x.LastSystemMessageTimestamp != nil { + return *x.LastSystemMessageTimestamp + } + return 0 +} + +func (x *SyncActionMessageRange) GetMessages() []*SyncActionMessage { + if x != nil { + return x.Messages + } + return nil +} + +type StarAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` - Products []*Product `protobuf:"bytes,2,rep,name=products" json:"products,omitempty"` + Starred *bool `protobuf:"varint,1,opt,name=starred" json:"starred,omitempty"` } -func (x *ProductSection) Reset() { - *x = ProductSection{} +func (x *StarAction) Reset() { + *x = StarAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[123] + mi := &file_binary_proto_def_proto_msgTypes[136] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ProductSection) String() string { +func (x *StarAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ProductSection) ProtoMessage() {} +func (*StarAction) ProtoMessage() {} -func (x *ProductSection) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[123] +func (x *StarAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[136] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13765,51 +15088,43 @@ func (x *ProductSection) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ProductSection.ProtoReflect.Descriptor instead. -func (*ProductSection) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{123} -} - -func (x *ProductSection) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title - } - return "" +// Deprecated: Use StarAction.ProtoReflect.Descriptor instead. +func (*StarAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{136} } -func (x *ProductSection) GetProducts() []*Product { - if x != nil { - return x.Products +func (x *StarAction) GetStarred() bool { + if x != nil && x.Starred != nil { + return *x.Starred } - return nil + return false } -type ProductListHeaderImage struct { +type SecurityNotificationSetting struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ProductId *string `protobuf:"bytes,1,opt,name=productId" json:"productId,omitempty"` - JpegThumbnail []byte `protobuf:"bytes,2,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` + ShowNotification *bool `protobuf:"varint,1,opt,name=showNotification" json:"showNotification,omitempty"` } -func (x *ProductListHeaderImage) Reset() { - *x = ProductListHeaderImage{} +func (x *SecurityNotificationSetting) Reset() { + *x = SecurityNotificationSetting{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[124] + mi := &file_binary_proto_def_proto_msgTypes[137] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ProductListHeaderImage) String() string { +func (x *SecurityNotificationSetting) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ProductListHeaderImage) ProtoMessage() {} +func (*SecurityNotificationSetting) ProtoMessage() {} -func (x *ProductListHeaderImage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[124] +func (x *SecurityNotificationSetting) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[137] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13820,52 +15135,43 @@ func (x *ProductListHeaderImage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ProductListHeaderImage.ProtoReflect.Descriptor instead. -func (*ProductListHeaderImage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{124} -} - -func (x *ProductListHeaderImage) GetProductId() string { - if x != nil && x.ProductId != nil { - return *x.ProductId - } - return "" +// Deprecated: Use SecurityNotificationSetting.ProtoReflect.Descriptor instead. +func (*SecurityNotificationSetting) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{137} } -func (x *ProductListHeaderImage) GetJpegThumbnail() []byte { - if x != nil { - return x.JpegThumbnail +func (x *SecurityNotificationSetting) GetShowNotification() bool { + if x != nil && x.ShowNotification != nil { + return *x.ShowNotification } - return nil + return false } -type ProductListInfo struct { +type RecentStickerWeightsAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ProductSections []*ProductSection `protobuf:"bytes,1,rep,name=productSections" json:"productSections,omitempty"` - HeaderImage *ProductListHeaderImage `protobuf:"bytes,2,opt,name=headerImage" json:"headerImage,omitempty"` - BusinessOwnerJid *string `protobuf:"bytes,3,opt,name=businessOwnerJid" json:"businessOwnerJid,omitempty"` + Weights []*RecentStickerWeight `protobuf:"bytes,1,rep,name=weights" json:"weights,omitempty"` } -func (x *ProductListInfo) Reset() { - *x = ProductListInfo{} +func (x *RecentStickerWeightsAction) Reset() { + *x = RecentStickerWeightsAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[125] + mi := &file_binary_proto_def_proto_msgTypes[138] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ProductListInfo) String() string { +func (x *RecentStickerWeightsAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ProductListInfo) ProtoMessage() {} +func (*RecentStickerWeightsAction) ProtoMessage() {} -func (x *ProductListInfo) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[125] +func (x *RecentStickerWeightsAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[138] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13876,64 +15182,49 @@ func (x *ProductListInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ProductListInfo.ProtoReflect.Descriptor instead. -func (*ProductListInfo) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{125} -} - -func (x *ProductListInfo) GetProductSections() []*ProductSection { - if x != nil { - return x.ProductSections - } - return nil +// Deprecated: Use RecentStickerWeightsAction.ProtoReflect.Descriptor instead. +func (*RecentStickerWeightsAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{138} } -func (x *ProductListInfo) GetHeaderImage() *ProductListHeaderImage { +func (x *RecentStickerWeightsAction) GetWeights() []*RecentStickerWeight { if x != nil { - return x.HeaderImage + return x.Weights } return nil } -func (x *ProductListInfo) GetBusinessOwnerJid() string { - if x != nil && x.BusinessOwnerJid != nil { - return *x.BusinessOwnerJid - } - return "" -} - -type ListMessage struct { +type RecentStickerMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` - Description *string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` - ButtonText *string `protobuf:"bytes,3,opt,name=buttonText" json:"buttonText,omitempty"` - ListType *ListMessage_ListMessageListType `protobuf:"varint,4,opt,name=listType,enum=proto.ListMessage_ListMessageListType" json:"listType,omitempty"` - Sections []*Section `protobuf:"bytes,5,rep,name=sections" json:"sections,omitempty"` - ProductListInfo *ProductListInfo `protobuf:"bytes,6,opt,name=productListInfo" json:"productListInfo,omitempty"` - FooterText *string `protobuf:"bytes,7,opt,name=footerText" json:"footerText,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,8,opt,name=contextInfo" json:"contextInfo,omitempty"` + DirectPath *string `protobuf:"bytes,1,opt,name=directPath" json:"directPath,omitempty"` + EncFilehash *string `protobuf:"bytes,2,opt,name=encFilehash" json:"encFilehash,omitempty"` + MediaKey *string `protobuf:"bytes,3,opt,name=mediaKey" json:"mediaKey,omitempty"` + StanzaId *string `protobuf:"bytes,4,opt,name=stanzaId" json:"stanzaId,omitempty"` + ChatJid *string `protobuf:"bytes,5,opt,name=chatJid" json:"chatJid,omitempty"` + Participant *string `protobuf:"bytes,6,opt,name=participant" json:"participant,omitempty"` + IsSentByMe *bool `protobuf:"varint,7,opt,name=isSentByMe" json:"isSentByMe,omitempty"` } -func (x *ListMessage) Reset() { - *x = ListMessage{} +func (x *RecentStickerMetadata) Reset() { + *x = RecentStickerMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[126] + mi := &file_binary_proto_def_proto_msgTypes[139] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListMessage) String() string { +func (x *RecentStickerMetadata) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListMessage) ProtoMessage() {} +func (*RecentStickerMetadata) ProtoMessage() {} -func (x *ListMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[126] +func (x *RecentStickerMetadata) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[139] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13944,92 +15235,85 @@ func (x *ListMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListMessage.ProtoReflect.Descriptor instead. -func (*ListMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{126} +// Deprecated: Use RecentStickerMetadata.ProtoReflect.Descriptor instead. +func (*RecentStickerMetadata) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{139} } -func (x *ListMessage) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title +func (x *RecentStickerMetadata) GetDirectPath() string { + if x != nil && x.DirectPath != nil { + return *x.DirectPath } return "" } -func (x *ListMessage) GetDescription() string { - if x != nil && x.Description != nil { - return *x.Description +func (x *RecentStickerMetadata) GetEncFilehash() string { + if x != nil && x.EncFilehash != nil { + return *x.EncFilehash } return "" } -func (x *ListMessage) GetButtonText() string { - if x != nil && x.ButtonText != nil { - return *x.ButtonText +func (x *RecentStickerMetadata) GetMediaKey() string { + if x != nil && x.MediaKey != nil { + return *x.MediaKey } return "" } -func (x *ListMessage) GetListType() ListMessage_ListMessageListType { - if x != nil && x.ListType != nil { - return *x.ListType - } - return ListMessage_UNKNOWN -} - -func (x *ListMessage) GetSections() []*Section { - if x != nil { - return x.Sections +func (x *RecentStickerMetadata) GetStanzaId() string { + if x != nil && x.StanzaId != nil { + return *x.StanzaId } - return nil + return "" } -func (x *ListMessage) GetProductListInfo() *ProductListInfo { - if x != nil { - return x.ProductListInfo +func (x *RecentStickerMetadata) GetChatJid() string { + if x != nil && x.ChatJid != nil { + return *x.ChatJid } - return nil + return "" } -func (x *ListMessage) GetFooterText() string { - if x != nil && x.FooterText != nil { - return *x.FooterText +func (x *RecentStickerMetadata) GetParticipant() string { + if x != nil && x.Participant != nil { + return *x.Participant } return "" } -func (x *ListMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo +func (x *RecentStickerMetadata) GetIsSentByMe() bool { + if x != nil && x.IsSentByMe != nil { + return *x.IsSentByMe } - return nil + return false } -type SingleSelectReply struct { +type RecentEmojiWeightsAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - SelectedRowId *string `protobuf:"bytes,1,opt,name=selectedRowId" json:"selectedRowId,omitempty"` + Weights []*RecentEmojiWeight `protobuf:"bytes,1,rep,name=weights" json:"weights,omitempty"` } -func (x *SingleSelectReply) Reset() { - *x = SingleSelectReply{} +func (x *RecentEmojiWeightsAction) Reset() { + *x = RecentEmojiWeightsAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[127] + mi := &file_binary_proto_def_proto_msgTypes[140] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *SingleSelectReply) String() string { +func (x *RecentEmojiWeightsAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SingleSelectReply) ProtoMessage() {} +func (*RecentEmojiWeightsAction) ProtoMessage() {} -func (x *SingleSelectReply) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[127] +func (x *RecentEmojiWeightsAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[140] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14040,47 +15324,47 @@ func (x *SingleSelectReply) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SingleSelectReply.ProtoReflect.Descriptor instead. -func (*SingleSelectReply) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{127} +// Deprecated: Use RecentEmojiWeightsAction.ProtoReflect.Descriptor instead. +func (*RecentEmojiWeightsAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{140} } -func (x *SingleSelectReply) GetSelectedRowId() string { - if x != nil && x.SelectedRowId != nil { - return *x.SelectedRowId +func (x *RecentEmojiWeightsAction) GetWeights() []*RecentEmojiWeight { + if x != nil { + return x.Weights } - return "" + return nil } -type ListResponseMessage struct { +type QuickReplyAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` - ListType *ListResponseMessage_ListResponseMessageListType `protobuf:"varint,2,opt,name=listType,enum=proto.ListResponseMessage_ListResponseMessageListType" json:"listType,omitempty"` - SingleSelectReply *SingleSelectReply `protobuf:"bytes,3,opt,name=singleSelectReply" json:"singleSelectReply,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,4,opt,name=contextInfo" json:"contextInfo,omitempty"` - Description *string `protobuf:"bytes,5,opt,name=description" json:"description,omitempty"` + Shortcut *string `protobuf:"bytes,1,opt,name=shortcut" json:"shortcut,omitempty"` + Message *string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` + Keywords []string `protobuf:"bytes,3,rep,name=keywords" json:"keywords,omitempty"` + Count *int32 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` + Deleted *bool `protobuf:"varint,5,opt,name=deleted" json:"deleted,omitempty"` } -func (x *ListResponseMessage) Reset() { - *x = ListResponseMessage{} +func (x *QuickReplyAction) Reset() { + *x = QuickReplyAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[128] + mi := &file_binary_proto_def_proto_msgTypes[141] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListResponseMessage) String() string { +func (x *QuickReplyAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListResponseMessage) ProtoMessage() {} +func (*QuickReplyAction) ProtoMessage() {} -func (x *ListResponseMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[128] +func (x *QuickReplyAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[141] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14091,79 +15375,71 @@ func (x *ListResponseMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListResponseMessage.ProtoReflect.Descriptor instead. -func (*ListResponseMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{128} +// Deprecated: Use QuickReplyAction.ProtoReflect.Descriptor instead. +func (*QuickReplyAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{141} } -func (x *ListResponseMessage) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title +func (x *QuickReplyAction) GetShortcut() string { + if x != nil && x.Shortcut != nil { + return *x.Shortcut } return "" } -func (x *ListResponseMessage) GetListType() ListResponseMessage_ListResponseMessageListType { - if x != nil && x.ListType != nil { - return *x.ListType +func (x *QuickReplyAction) GetMessage() string { + if x != nil && x.Message != nil { + return *x.Message } - return ListResponseMessage_UNKNOWN + return "" } -func (x *ListResponseMessage) GetSingleSelectReply() *SingleSelectReply { +func (x *QuickReplyAction) GetKeywords() []string { if x != nil { - return x.SingleSelectReply + return x.Keywords } return nil } -func (x *ListResponseMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo +func (x *QuickReplyAction) GetCount() int32 { + if x != nil && x.Count != nil { + return *x.Count } - return nil + return 0 } -func (x *ListResponseMessage) GetDescription() string { - if x != nil && x.Description != nil { - return *x.Description +func (x *QuickReplyAction) GetDeleted() bool { + if x != nil && x.Deleted != nil { + return *x.Deleted } - return "" + return false } -type Header struct { +type PushNameSetting struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Title *string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` - Subtitle *string `protobuf:"bytes,2,opt,name=subtitle" json:"subtitle,omitempty"` - HasMediaAttachment *bool `protobuf:"varint,5,opt,name=hasMediaAttachment" json:"hasMediaAttachment,omitempty"` - // Types that are assignable to Media: - // *Header_DocumentMessage - // *Header_ImageMessage - // *Header_JpegThumbnail - // *Header_VideoMessage - Media isHeader_Media `protobuf_oneof:"media"` + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` } -func (x *Header) Reset() { - *x = Header{} +func (x *PushNameSetting) Reset() { + *x = PushNameSetting{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[129] + mi := &file_binary_proto_def_proto_msgTypes[142] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Header) String() string { +func (x *PushNameSetting) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Header) ProtoMessage() {} +func (*PushNameSetting) ProtoMessage() {} -func (x *Header) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[129] +func (x *PushNameSetting) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[142] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14174,120 +15450,43 @@ func (x *Header) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Header.ProtoReflect.Descriptor instead. -func (*Header) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{129} -} - -func (x *Header) GetTitle() string { - if x != nil && x.Title != nil { - return *x.Title - } - return "" +// Deprecated: Use PushNameSetting.ProtoReflect.Descriptor instead. +func (*PushNameSetting) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{142} } -func (x *Header) GetSubtitle() string { - if x != nil && x.Subtitle != nil { - return *x.Subtitle +func (x *PushNameSetting) GetName() string { + if x != nil && x.Name != nil { + return *x.Name } return "" } -func (x *Header) GetHasMediaAttachment() bool { - if x != nil && x.HasMediaAttachment != nil { - return *x.HasMediaAttachment - } - return false -} - -func (m *Header) GetMedia() isHeader_Media { - if m != nil { - return m.Media - } - return nil -} - -func (x *Header) GetDocumentMessage() *DocumentMessage { - if x, ok := x.GetMedia().(*Header_DocumentMessage); ok { - return x.DocumentMessage - } - return nil -} - -func (x *Header) GetImageMessage() *ImageMessage { - if x, ok := x.GetMedia().(*Header_ImageMessage); ok { - return x.ImageMessage - } - return nil -} - -func (x *Header) GetJpegThumbnail() []byte { - if x, ok := x.GetMedia().(*Header_JpegThumbnail); ok { - return x.JpegThumbnail - } - return nil -} - -func (x *Header) GetVideoMessage() *VideoMessage { - if x, ok := x.GetMedia().(*Header_VideoMessage); ok { - return x.VideoMessage - } - return nil -} - -type isHeader_Media interface { - isHeader_Media() -} - -type Header_DocumentMessage struct { - DocumentMessage *DocumentMessage `protobuf:"bytes,3,opt,name=documentMessage,oneof"` -} - -type Header_ImageMessage struct { - ImageMessage *ImageMessage `protobuf:"bytes,4,opt,name=imageMessage,oneof"` -} - -type Header_JpegThumbnail struct { - JpegThumbnail []byte `protobuf:"bytes,6,opt,name=jpegThumbnail,oneof"` -} - -type Header_VideoMessage struct { - VideoMessage *VideoMessage `protobuf:"bytes,7,opt,name=videoMessage,oneof"` -} - -func (*Header_DocumentMessage) isHeader_Media() {} - -func (*Header_ImageMessage) isHeader_Media() {} - -func (*Header_JpegThumbnail) isHeader_Media() {} - -func (*Header_VideoMessage) isHeader_Media() {} - -type Body struct { +type PrimaryFeature struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Text *string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"` + Flags []string `protobuf:"bytes,1,rep,name=flags" json:"flags,omitempty"` } -func (x *Body) Reset() { - *x = Body{} +func (x *PrimaryFeature) Reset() { + *x = PrimaryFeature{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[130] + mi := &file_binary_proto_def_proto_msgTypes[143] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Body) String() string { +func (x *PrimaryFeature) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Body) ProtoMessage() {} +func (*PrimaryFeature) ProtoMessage() {} -func (x *Body) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[130] +func (x *PrimaryFeature) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[143] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14298,43 +15497,43 @@ func (x *Body) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Body.ProtoReflect.Descriptor instead. -func (*Body) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{130} +// Deprecated: Use PrimaryFeature.ProtoReflect.Descriptor instead. +func (*PrimaryFeature) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{143} } -func (x *Body) GetText() string { - if x != nil && x.Text != nil { - return *x.Text +func (x *PrimaryFeature) GetFlags() []string { + if x != nil { + return x.Flags } - return "" + return nil } -type Footer struct { +type PinAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Text *string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"` + Pinned *bool `protobuf:"varint,1,opt,name=pinned" json:"pinned,omitempty"` } -func (x *Footer) Reset() { - *x = Footer{} +func (x *PinAction) Reset() { + *x = PinAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[131] + mi := &file_binary_proto_def_proto_msgTypes[144] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Footer) String() string { +func (x *PinAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Footer) ProtoMessage() {} +func (*PinAction) ProtoMessage() {} -func (x *Footer) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[131] +func (x *PinAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[144] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14345,45 +15544,44 @@ func (x *Footer) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Footer.ProtoReflect.Descriptor instead. -func (*Footer) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{131} +// Deprecated: Use PinAction.ProtoReflect.Descriptor instead. +func (*PinAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{144} } -func (x *Footer) GetText() string { - if x != nil && x.Text != nil { - return *x.Text +func (x *PinAction) GetPinned() bool { + if x != nil && x.Pinned != nil { + return *x.Pinned } - return "" + return false } -type ShopMessage struct { +type MuteAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` - Surface *ShopMessage_ShopMessageSurface `protobuf:"varint,2,opt,name=surface,enum=proto.ShopMessage_ShopMessageSurface" json:"surface,omitempty"` - MessageVersion *int32 `protobuf:"varint,3,opt,name=messageVersion" json:"messageVersion,omitempty"` + Muted *bool `protobuf:"varint,1,opt,name=muted" json:"muted,omitempty"` + MuteEndTimestamp *int64 `protobuf:"varint,2,opt,name=muteEndTimestamp" json:"muteEndTimestamp,omitempty"` } -func (x *ShopMessage) Reset() { - *x = ShopMessage{} +func (x *MuteAction) Reset() { + *x = MuteAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[132] + mi := &file_binary_proto_def_proto_msgTypes[145] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ShopMessage) String() string { +func (x *MuteAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ShopMessage) ProtoMessage() {} +func (*MuteAction) ProtoMessage() {} -func (x *ShopMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[132] +func (x *MuteAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[145] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14394,59 +15592,51 @@ func (x *ShopMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ShopMessage.ProtoReflect.Descriptor instead. -func (*ShopMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{132} -} - -func (x *ShopMessage) GetId() string { - if x != nil && x.Id != nil { - return *x.Id - } - return "" +// Deprecated: Use MuteAction.ProtoReflect.Descriptor instead. +func (*MuteAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{145} } -func (x *ShopMessage) GetSurface() ShopMessage_ShopMessageSurface { - if x != nil && x.Surface != nil { - return *x.Surface +func (x *MuteAction) GetMuted() bool { + if x != nil && x.Muted != nil { + return *x.Muted } - return ShopMessage_UNKNOWN_SURFACE + return false } -func (x *ShopMessage) GetMessageVersion() int32 { - if x != nil && x.MessageVersion != nil { - return *x.MessageVersion +func (x *MuteAction) GetMuteEndTimestamp() int64 { + if x != nil && x.MuteEndTimestamp != nil { + return *x.MuteEndTimestamp } return 0 } -type CollectionMessage struct { +type MarkChatAsReadAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - BizJid *string `protobuf:"bytes,1,opt,name=bizJid" json:"bizJid,omitempty"` - Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` - MessageVersion *int32 `protobuf:"varint,3,opt,name=messageVersion" json:"messageVersion,omitempty"` + Read *bool `protobuf:"varint,1,opt,name=read" json:"read,omitempty"` + MessageRange *SyncActionMessageRange `protobuf:"bytes,2,opt,name=messageRange" json:"messageRange,omitempty"` } -func (x *CollectionMessage) Reset() { - *x = CollectionMessage{} +func (x *MarkChatAsReadAction) Reset() { + *x = MarkChatAsReadAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[133] + mi := &file_binary_proto_def_proto_msgTypes[146] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CollectionMessage) String() string { +func (x *MarkChatAsReadAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CollectionMessage) ProtoMessage() {} +func (*MarkChatAsReadAction) ProtoMessage() {} -func (x *CollectionMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[133] +func (x *MarkChatAsReadAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[146] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14457,58 +15647,50 @@ func (x *CollectionMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CollectionMessage.ProtoReflect.Descriptor instead. -func (*CollectionMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{133} -} - -func (x *CollectionMessage) GetBizJid() string { - if x != nil && x.BizJid != nil { - return *x.BizJid - } - return "" +// Deprecated: Use MarkChatAsReadAction.ProtoReflect.Descriptor instead. +func (*MarkChatAsReadAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{146} } -func (x *CollectionMessage) GetId() string { - if x != nil && x.Id != nil { - return *x.Id +func (x *MarkChatAsReadAction) GetRead() bool { + if x != nil && x.Read != nil { + return *x.Read } - return "" + return false } -func (x *CollectionMessage) GetMessageVersion() int32 { - if x != nil && x.MessageVersion != nil { - return *x.MessageVersion +func (x *MarkChatAsReadAction) GetMessageRange() *SyncActionMessageRange { + if x != nil { + return x.MessageRange } - return 0 + return nil } -type NativeFlowButton struct { +type LocaleSetting struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - ButtonParamsJson *string `protobuf:"bytes,2,opt,name=buttonParamsJson" json:"buttonParamsJson,omitempty"` + Locale *string `protobuf:"bytes,1,opt,name=locale" json:"locale,omitempty"` } -func (x *NativeFlowButton) Reset() { - *x = NativeFlowButton{} +func (x *LocaleSetting) Reset() { + *x = LocaleSetting{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[134] + mi := &file_binary_proto_def_proto_msgTypes[147] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *NativeFlowButton) String() string { +func (x *LocaleSetting) String() string { return protoimpl.X.MessageStringOf(x) } -func (*NativeFlowButton) ProtoMessage() {} +func (*LocaleSetting) ProtoMessage() {} -func (x *NativeFlowButton) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[134] +func (x *LocaleSetting) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[147] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14519,52 +15701,46 @@ func (x *NativeFlowButton) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NativeFlowButton.ProtoReflect.Descriptor instead. -func (*NativeFlowButton) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{134} -} - -func (x *NativeFlowButton) GetName() string { - if x != nil && x.Name != nil { - return *x.Name - } - return "" +// Deprecated: Use LocaleSetting.ProtoReflect.Descriptor instead. +func (*LocaleSetting) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{147} } -func (x *NativeFlowButton) GetButtonParamsJson() string { - if x != nil && x.ButtonParamsJson != nil { - return *x.ButtonParamsJson +func (x *LocaleSetting) GetLocale() string { + if x != nil && x.Locale != nil { + return *x.Locale } return "" } -type NativeFlowMessage struct { +type LabelEditAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Buttons []*NativeFlowButton `protobuf:"bytes,1,rep,name=buttons" json:"buttons,omitempty"` - MessageParamsJson *string `protobuf:"bytes,2,opt,name=messageParamsJson" json:"messageParamsJson,omitempty"` - MessageVersion *int32 `protobuf:"varint,3,opt,name=messageVersion" json:"messageVersion,omitempty"` + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Color *int32 `protobuf:"varint,2,opt,name=color" json:"color,omitempty"` + PredefinedId *int32 `protobuf:"varint,3,opt,name=predefinedId" json:"predefinedId,omitempty"` + Deleted *bool `protobuf:"varint,4,opt,name=deleted" json:"deleted,omitempty"` } -func (x *NativeFlowMessage) Reset() { - *x = NativeFlowMessage{} +func (x *LabelEditAction) Reset() { + *x = LabelEditAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[135] + mi := &file_binary_proto_def_proto_msgTypes[148] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *NativeFlowMessage) String() string { +func (x *LabelEditAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*NativeFlowMessage) ProtoMessage() {} +func (*LabelEditAction) ProtoMessage() {} -func (x *NativeFlowMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[135] +func (x *LabelEditAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[148] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14575,65 +15751,64 @@ func (x *NativeFlowMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NativeFlowMessage.ProtoReflect.Descriptor instead. -func (*NativeFlowMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{135} +// Deprecated: Use LabelEditAction.ProtoReflect.Descriptor instead. +func (*LabelEditAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{148} } -func (x *NativeFlowMessage) GetButtons() []*NativeFlowButton { - if x != nil { - return x.Buttons +func (x *LabelEditAction) GetName() string { + if x != nil && x.Name != nil { + return *x.Name } - return nil + return "" } -func (x *NativeFlowMessage) GetMessageParamsJson() string { - if x != nil && x.MessageParamsJson != nil { - return *x.MessageParamsJson +func (x *LabelEditAction) GetColor() int32 { + if x != nil && x.Color != nil { + return *x.Color } - return "" + return 0 } -func (x *NativeFlowMessage) GetMessageVersion() int32 { - if x != nil && x.MessageVersion != nil { - return *x.MessageVersion +func (x *LabelEditAction) GetPredefinedId() int32 { + if x != nil && x.PredefinedId != nil { + return *x.PredefinedId } return 0 } -type InteractiveMessage struct { +func (x *LabelEditAction) GetDeleted() bool { + if x != nil && x.Deleted != nil { + return *x.Deleted + } + return false +} + +type LabelAssociationAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Body *Body `protobuf:"bytes,2,opt,name=body" json:"body,omitempty"` - Footer *Footer `protobuf:"bytes,3,opt,name=footer" json:"footer,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,15,opt,name=contextInfo" json:"contextInfo,omitempty"` - // Types that are assignable to InteractiveMessage: - // *InteractiveMessage_ShopStorefrontMessage - // *InteractiveMessage_CollectionMessage - // *InteractiveMessage_NativeFlowMessage - InteractiveMessage isInteractiveMessage_InteractiveMessage `protobuf_oneof:"interactiveMessage"` + Labeled *bool `protobuf:"varint,1,opt,name=labeled" json:"labeled,omitempty"` } -func (x *InteractiveMessage) Reset() { - *x = InteractiveMessage{} +func (x *LabelAssociationAction) Reset() { + *x = LabelAssociationAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[136] + mi := &file_binary_proto_def_proto_msgTypes[149] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *InteractiveMessage) String() string { +func (x *LabelAssociationAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*InteractiveMessage) ProtoMessage() {} +func (*LabelAssociationAction) ProtoMessage() {} -func (x *InteractiveMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[136] +func (x *LabelAssociationAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[149] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14644,121 +15819,97 @@ func (x *InteractiveMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use InteractiveMessage.ProtoReflect.Descriptor instead. -func (*InteractiveMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{136} -} - -func (x *InteractiveMessage) GetHeader() *Header { - if x != nil { - return x.Header - } - return nil +// Deprecated: Use LabelAssociationAction.ProtoReflect.Descriptor instead. +func (*LabelAssociationAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{149} } -func (x *InteractiveMessage) GetBody() *Body { - if x != nil { - return x.Body +func (x *LabelAssociationAction) GetLabeled() bool { + if x != nil && x.Labeled != nil { + return *x.Labeled } - return nil + return false } -func (x *InteractiveMessage) GetFooter() *Footer { - if x != nil { - return x.Footer - } - return nil -} +type KeyExpiration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *InteractiveMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo - } - return nil + ExpiredKeyEpoch *int32 `protobuf:"varint,1,opt,name=expiredKeyEpoch" json:"expiredKeyEpoch,omitempty"` } -func (m *InteractiveMessage) GetInteractiveMessage() isInteractiveMessage_InteractiveMessage { - if m != nil { - return m.InteractiveMessage +func (x *KeyExpiration) Reset() { + *x = KeyExpiration{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[150] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *InteractiveMessage) GetShopStorefrontMessage() *ShopMessage { - if x, ok := x.GetInteractiveMessage().(*InteractiveMessage_ShopStorefrontMessage); ok { - return x.ShopStorefrontMessage - } - return nil +func (x *KeyExpiration) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *InteractiveMessage) GetCollectionMessage() *CollectionMessage { - if x, ok := x.GetInteractiveMessage().(*InteractiveMessage_CollectionMessage); ok { - return x.CollectionMessage - } - return nil -} +func (*KeyExpiration) ProtoMessage() {} -func (x *InteractiveMessage) GetNativeFlowMessage() *NativeFlowMessage { - if x, ok := x.GetInteractiveMessage().(*InteractiveMessage_NativeFlowMessage); ok { - return x.NativeFlowMessage +func (x *KeyExpiration) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[150] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil -} - -type isInteractiveMessage_InteractiveMessage interface { - isInteractiveMessage_InteractiveMessage() -} - -type InteractiveMessage_ShopStorefrontMessage struct { - ShopStorefrontMessage *ShopMessage `protobuf:"bytes,4,opt,name=shopStorefrontMessage,oneof"` + return mi.MessageOf(x) } -type InteractiveMessage_CollectionMessage struct { - CollectionMessage *CollectionMessage `protobuf:"bytes,5,opt,name=collectionMessage,oneof"` +// Deprecated: Use KeyExpiration.ProtoReflect.Descriptor instead. +func (*KeyExpiration) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{150} } -type InteractiveMessage_NativeFlowMessage struct { - NativeFlowMessage *NativeFlowMessage `protobuf:"bytes,6,opt,name=nativeFlowMessage,oneof"` +func (x *KeyExpiration) GetExpiredKeyEpoch() int32 { + if x != nil && x.ExpiredKeyEpoch != nil { + return *x.ExpiredKeyEpoch + } + return 0 } -func (*InteractiveMessage_ShopStorefrontMessage) isInteractiveMessage_InteractiveMessage() {} - -func (*InteractiveMessage_CollectionMessage) isInteractiveMessage_InteractiveMessage() {} - -func (*InteractiveMessage_NativeFlowMessage) isInteractiveMessage_InteractiveMessage() {} - -type GroupInviteMessage struct { +type FavoriteStickerAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - GroupJid *string `protobuf:"bytes,1,opt,name=groupJid" json:"groupJid,omitempty"` - InviteCode *string `protobuf:"bytes,2,opt,name=inviteCode" json:"inviteCode,omitempty"` - InviteExpiration *int64 `protobuf:"varint,3,opt,name=inviteExpiration" json:"inviteExpiration,omitempty"` - GroupName *string `protobuf:"bytes,4,opt,name=groupName" json:"groupName,omitempty"` - JpegThumbnail []byte `protobuf:"bytes,5,opt,name=jpegThumbnail" json:"jpegThumbnail,omitempty"` - Caption *string `protobuf:"bytes,6,opt,name=caption" json:"caption,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,7,opt,name=contextInfo" json:"contextInfo,omitempty"` - GroupType *GroupInviteMessage_GroupInviteMessageGroupType `protobuf:"varint,8,opt,name=groupType,enum=proto.GroupInviteMessage_GroupInviteMessageGroupType" json:"groupType,omitempty"` + DirectPath *string `protobuf:"bytes,1,opt,name=directPath" json:"directPath,omitempty"` + LastUploadTimestamp *string `protobuf:"bytes,2,opt,name=lastUploadTimestamp" json:"lastUploadTimestamp,omitempty"` + Handle *string `protobuf:"bytes,3,opt,name=handle" json:"handle,omitempty"` + EncFilehash *string `protobuf:"bytes,4,opt,name=encFilehash" json:"encFilehash,omitempty"` + StickerHashWithoutMeta *string `protobuf:"bytes,5,opt,name=stickerHashWithoutMeta" json:"stickerHashWithoutMeta,omitempty"` + MediaKey *string `protobuf:"bytes,6,opt,name=mediaKey" json:"mediaKey,omitempty"` + MediaKeyTimestamp *int64 `protobuf:"varint,7,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` + IsFavorite *bool `protobuf:"varint,8,opt,name=isFavorite" json:"isFavorite,omitempty"` } -func (x *GroupInviteMessage) Reset() { - *x = GroupInviteMessage{} +func (x *FavoriteStickerAction) Reset() { + *x = FavoriteStickerAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[137] + mi := &file_binary_proto_def_proto_msgTypes[151] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GroupInviteMessage) String() string { +func (x *FavoriteStickerAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GroupInviteMessage) ProtoMessage() {} +func (*FavoriteStickerAction) ProtoMessage() {} -func (x *GroupInviteMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[137] +func (x *FavoriteStickerAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[151] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14769,94 +15920,93 @@ func (x *GroupInviteMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GroupInviteMessage.ProtoReflect.Descriptor instead. -func (*GroupInviteMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{137} +// Deprecated: Use FavoriteStickerAction.ProtoReflect.Descriptor instead. +func (*FavoriteStickerAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{151} } -func (x *GroupInviteMessage) GetGroupJid() string { - if x != nil && x.GroupJid != nil { - return *x.GroupJid +func (x *FavoriteStickerAction) GetDirectPath() string { + if x != nil && x.DirectPath != nil { + return *x.DirectPath } return "" } -func (x *GroupInviteMessage) GetInviteCode() string { - if x != nil && x.InviteCode != nil { - return *x.InviteCode +func (x *FavoriteStickerAction) GetLastUploadTimestamp() string { + if x != nil && x.LastUploadTimestamp != nil { + return *x.LastUploadTimestamp } return "" } -func (x *GroupInviteMessage) GetInviteExpiration() int64 { - if x != nil && x.InviteExpiration != nil { - return *x.InviteExpiration +func (x *FavoriteStickerAction) GetHandle() string { + if x != nil && x.Handle != nil { + return *x.Handle } - return 0 + return "" } -func (x *GroupInviteMessage) GetGroupName() string { - if x != nil && x.GroupName != nil { - return *x.GroupName +func (x *FavoriteStickerAction) GetEncFilehash() string { + if x != nil && x.EncFilehash != nil { + return *x.EncFilehash } return "" } -func (x *GroupInviteMessage) GetJpegThumbnail() []byte { - if x != nil { - return x.JpegThumbnail +func (x *FavoriteStickerAction) GetStickerHashWithoutMeta() string { + if x != nil && x.StickerHashWithoutMeta != nil { + return *x.StickerHashWithoutMeta } - return nil + return "" } -func (x *GroupInviteMessage) GetCaption() string { - if x != nil && x.Caption != nil { - return *x.Caption +func (x *FavoriteStickerAction) GetMediaKey() string { + if x != nil && x.MediaKey != nil { + return *x.MediaKey } return "" } -func (x *GroupInviteMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo +func (x *FavoriteStickerAction) GetMediaKeyTimestamp() int64 { + if x != nil && x.MediaKeyTimestamp != nil { + return *x.MediaKeyTimestamp } - return nil + return 0 } -func (x *GroupInviteMessage) GetGroupType() GroupInviteMessage_GroupInviteMessageGroupType { - if x != nil && x.GroupType != nil { - return *x.GroupType +func (x *FavoriteStickerAction) GetIsFavorite() bool { + if x != nil && x.IsFavorite != nil { + return *x.IsFavorite } - return GroupInviteMessage_DEFAULT + return false } -type DeviceSentMessage struct { +type DeleteMessageForMeAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DestinationJid *string `protobuf:"bytes,1,opt,name=destinationJid" json:"destinationJid,omitempty"` - Message *Message `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` - Phash *string `protobuf:"bytes,3,opt,name=phash" json:"phash,omitempty"` + DeleteMedia *bool `protobuf:"varint,1,opt,name=deleteMedia" json:"deleteMedia,omitempty"` + MessageTimestamp *int64 `protobuf:"varint,2,opt,name=messageTimestamp" json:"messageTimestamp,omitempty"` } -func (x *DeviceSentMessage) Reset() { - *x = DeviceSentMessage{} +func (x *DeleteMessageForMeAction) Reset() { + *x = DeleteMessageForMeAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[138] + mi := &file_binary_proto_def_proto_msgTypes[152] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DeviceSentMessage) String() string { +func (x *DeleteMessageForMeAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeviceSentMessage) ProtoMessage() {} +func (*DeleteMessageForMeAction) ProtoMessage() {} -func (x *DeviceSentMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[138] +func (x *DeleteMessageForMeAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[152] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14867,57 +16017,50 @@ func (x *DeviceSentMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeviceSentMessage.ProtoReflect.Descriptor instead. -func (*DeviceSentMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{138} -} - -func (x *DeviceSentMessage) GetDestinationJid() string { - if x != nil && x.DestinationJid != nil { - return *x.DestinationJid - } - return "" +// Deprecated: Use DeleteMessageForMeAction.ProtoReflect.Descriptor instead. +func (*DeleteMessageForMeAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{152} } -func (x *DeviceSentMessage) GetMessage() *Message { - if x != nil { - return x.Message +func (x *DeleteMessageForMeAction) GetDeleteMedia() bool { + if x != nil && x.DeleteMedia != nil { + return *x.DeleteMedia } - return nil + return false } -func (x *DeviceSentMessage) GetPhash() string { - if x != nil && x.Phash != nil { - return *x.Phash +func (x *DeleteMessageForMeAction) GetMessageTimestamp() int64 { + if x != nil && x.MessageTimestamp != nil { + return *x.MessageTimestamp } - return "" + return 0 } -type FutureProofMessage struct { +type DeleteChatAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Message *Message `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` + MessageRange *SyncActionMessageRange `protobuf:"bytes,1,opt,name=messageRange" json:"messageRange,omitempty"` } -func (x *FutureProofMessage) Reset() { - *x = FutureProofMessage{} +func (x *DeleteChatAction) Reset() { + *x = DeleteChatAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[139] + mi := &file_binary_proto_def_proto_msgTypes[153] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FutureProofMessage) String() string { +func (x *DeleteChatAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FutureProofMessage) ProtoMessage() {} +func (*DeleteChatAction) ProtoMessage() {} -func (x *FutureProofMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[139] +func (x *DeleteChatAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[153] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14928,43 +16071,44 @@ func (x *FutureProofMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FutureProofMessage.ProtoReflect.Descriptor instead. -func (*FutureProofMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{139} +// Deprecated: Use DeleteChatAction.ProtoReflect.Descriptor instead. +func (*DeleteChatAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{153} } -func (x *FutureProofMessage) GetMessage() *Message { +func (x *DeleteChatAction) GetMessageRange() *SyncActionMessageRange { if x != nil { - return x.Message + return x.MessageRange } return nil } -type ButtonText struct { +type ContactAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DisplayText *string `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` + FullName *string `protobuf:"bytes,1,opt,name=fullName" json:"fullName,omitempty"` + FirstName *string `protobuf:"bytes,2,opt,name=firstName" json:"firstName,omitempty"` } -func (x *ButtonText) Reset() { - *x = ButtonText{} +func (x *ContactAction) Reset() { + *x = ContactAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[140] + mi := &file_binary_proto_def_proto_msgTypes[154] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ButtonText) String() string { +func (x *ContactAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ButtonText) ProtoMessage() {} +func (*ContactAction) ProtoMessage() {} -func (x *ButtonText) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[140] +func (x *ContactAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[154] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14975,44 +16119,50 @@ func (x *ButtonText) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ButtonText.ProtoReflect.Descriptor instead. -func (*ButtonText) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{140} +// Deprecated: Use ContactAction.ProtoReflect.Descriptor instead. +func (*ContactAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{154} } -func (x *ButtonText) GetDisplayText() string { - if x != nil && x.DisplayText != nil { - return *x.DisplayText +func (x *ContactAction) GetFullName() string { + if x != nil && x.FullName != nil { + return *x.FullName } return "" } -type NativeFlowInfo struct { +func (x *ContactAction) GetFirstName() string { + if x != nil && x.FirstName != nil { + return *x.FirstName + } + return "" +} + +type ClearChatAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - ParamsJson *string `protobuf:"bytes,2,opt,name=paramsJson" json:"paramsJson,omitempty"` + MessageRange *SyncActionMessageRange `protobuf:"bytes,1,opt,name=messageRange" json:"messageRange,omitempty"` } -func (x *NativeFlowInfo) Reset() { - *x = NativeFlowInfo{} +func (x *ClearChatAction) Reset() { + *x = ClearChatAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[141] + mi := &file_binary_proto_def_proto_msgTypes[155] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *NativeFlowInfo) String() string { +func (x *ClearChatAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*NativeFlowInfo) ProtoMessage() {} +func (*ClearChatAction) ProtoMessage() {} -func (x *NativeFlowInfo) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[141] +func (x *ClearChatAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[155] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15023,53 +16173,44 @@ func (x *NativeFlowInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NativeFlowInfo.ProtoReflect.Descriptor instead. -func (*NativeFlowInfo) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{141} -} - -func (x *NativeFlowInfo) GetName() string { - if x != nil && x.Name != nil { - return *x.Name - } - return "" +// Deprecated: Use ClearChatAction.ProtoReflect.Descriptor instead. +func (*ClearChatAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{155} } -func (x *NativeFlowInfo) GetParamsJson() string { - if x != nil && x.ParamsJson != nil { - return *x.ParamsJson +func (x *ClearChatAction) GetMessageRange() *SyncActionMessageRange { + if x != nil { + return x.MessageRange } - return "" + return nil } -type Button struct { +type ArchiveChatAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ButtonId *string `protobuf:"bytes,1,opt,name=buttonId" json:"buttonId,omitempty"` - ButtonText *ButtonText `protobuf:"bytes,2,opt,name=buttonText" json:"buttonText,omitempty"` - Type *Button_ButtonType `protobuf:"varint,3,opt,name=type,enum=proto.Button_ButtonType" json:"type,omitempty"` - NativeFlowInfo *NativeFlowInfo `protobuf:"bytes,4,opt,name=nativeFlowInfo" json:"nativeFlowInfo,omitempty"` + Archived *bool `protobuf:"varint,1,opt,name=archived" json:"archived,omitempty"` + MessageRange *SyncActionMessageRange `protobuf:"bytes,2,opt,name=messageRange" json:"messageRange,omitempty"` } -func (x *Button) Reset() { - *x = Button{} +func (x *ArchiveChatAction) Reset() { + *x = ArchiveChatAction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[142] + mi := &file_binary_proto_def_proto_msgTypes[156] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Button) String() string { +func (x *ArchiveChatAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Button) ProtoMessage() {} +func (*ArchiveChatAction) ProtoMessage() {} -func (x *Button) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[142] +func (x *ArchiveChatAction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[156] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15080,75 +16221,50 @@ func (x *Button) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Button.ProtoReflect.Descriptor instead. -func (*Button) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{142} -} - -func (x *Button) GetButtonId() string { - if x != nil && x.ButtonId != nil { - return *x.ButtonId - } - return "" -} - -func (x *Button) GetButtonText() *ButtonText { - if x != nil { - return x.ButtonText - } - return nil +// Deprecated: Use ArchiveChatAction.ProtoReflect.Descriptor instead. +func (*ArchiveChatAction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{156} } -func (x *Button) GetType() Button_ButtonType { - if x != nil && x.Type != nil { - return *x.Type +func (x *ArchiveChatAction) GetArchived() bool { + if x != nil && x.Archived != nil { + return *x.Archived } - return Button_UNKNOWN + return false } -func (x *Button) GetNativeFlowInfo() *NativeFlowInfo { +func (x *ArchiveChatAction) GetMessageRange() *SyncActionMessageRange { if x != nil { - return x.NativeFlowInfo + return x.MessageRange } return nil } -type ButtonsMessage struct { +type AndroidUnsupportedActions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ContentText *string `protobuf:"bytes,6,opt,name=contentText" json:"contentText,omitempty"` - FooterText *string `protobuf:"bytes,7,opt,name=footerText" json:"footerText,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,8,opt,name=contextInfo" json:"contextInfo,omitempty"` - Buttons []*Button `protobuf:"bytes,9,rep,name=buttons" json:"buttons,omitempty"` - HeaderType *ButtonsMessage_ButtonsMessageHeaderType `protobuf:"varint,10,opt,name=headerType,enum=proto.ButtonsMessage_ButtonsMessageHeaderType" json:"headerType,omitempty"` - // Types that are assignable to Header: - // *ButtonsMessage_Text - // *ButtonsMessage_DocumentMessage - // *ButtonsMessage_ImageMessage - // *ButtonsMessage_VideoMessage - // *ButtonsMessage_LocationMessage - Header isButtonsMessage_Header `protobuf_oneof:"header"` + Allowed *bool `protobuf:"varint,1,opt,name=allowed" json:"allowed,omitempty"` } -func (x *ButtonsMessage) Reset() { - *x = ButtonsMessage{} +func (x *AndroidUnsupportedActions) Reset() { + *x = AndroidUnsupportedActions{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[143] + mi := &file_binary_proto_def_proto_msgTypes[157] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ButtonsMessage) String() string { +func (x *AndroidUnsupportedActions) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ButtonsMessage) ProtoMessage() {} +func (*AndroidUnsupportedActions) ProtoMessage() {} -func (x *ButtonsMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[143] +func (x *AndroidUnsupportedActions) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[157] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15159,152 +16275,46 @@ func (x *ButtonsMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ButtonsMessage.ProtoReflect.Descriptor instead. -func (*ButtonsMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{143} -} - -func (x *ButtonsMessage) GetContentText() string { - if x != nil && x.ContentText != nil { - return *x.ContentText - } - return "" -} - -func (x *ButtonsMessage) GetFooterText() string { - if x != nil && x.FooterText != nil { - return *x.FooterText - } - return "" -} - -func (x *ButtonsMessage) GetContextInfo() *ContextInfo { - if x != nil { - return x.ContextInfo - } - return nil -} - -func (x *ButtonsMessage) GetButtons() []*Button { - if x != nil { - return x.Buttons - } - return nil -} - -func (x *ButtonsMessage) GetHeaderType() ButtonsMessage_ButtonsMessageHeaderType { - if x != nil && x.HeaderType != nil { - return *x.HeaderType - } - return ButtonsMessage_UNKNOWN -} - -func (m *ButtonsMessage) GetHeader() isButtonsMessage_Header { - if m != nil { - return m.Header - } - return nil -} - -func (x *ButtonsMessage) GetText() string { - if x, ok := x.GetHeader().(*ButtonsMessage_Text); ok { - return x.Text - } - return "" -} - -func (x *ButtonsMessage) GetDocumentMessage() *DocumentMessage { - if x, ok := x.GetHeader().(*ButtonsMessage_DocumentMessage); ok { - return x.DocumentMessage - } - return nil -} - -func (x *ButtonsMessage) GetImageMessage() *ImageMessage { - if x, ok := x.GetHeader().(*ButtonsMessage_ImageMessage); ok { - return x.ImageMessage - } - return nil -} - -func (x *ButtonsMessage) GetVideoMessage() *VideoMessage { - if x, ok := x.GetHeader().(*ButtonsMessage_VideoMessage); ok { - return x.VideoMessage - } - return nil +// Deprecated: Use AndroidUnsupportedActions.ProtoReflect.Descriptor instead. +func (*AndroidUnsupportedActions) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{157} } -func (x *ButtonsMessage) GetLocationMessage() *LocationMessage { - if x, ok := x.GetHeader().(*ButtonsMessage_LocationMessage); ok { - return x.LocationMessage +func (x *AndroidUnsupportedActions) GetAllowed() bool { + if x != nil && x.Allowed != nil { + return *x.Allowed } - return nil -} - -type isButtonsMessage_Header interface { - isButtonsMessage_Header() -} - -type ButtonsMessage_Text struct { - Text string `protobuf:"bytes,1,opt,name=text,oneof"` -} - -type ButtonsMessage_DocumentMessage struct { - DocumentMessage *DocumentMessage `protobuf:"bytes,2,opt,name=documentMessage,oneof"` -} - -type ButtonsMessage_ImageMessage struct { - ImageMessage *ImageMessage `protobuf:"bytes,3,opt,name=imageMessage,oneof"` -} - -type ButtonsMessage_VideoMessage struct { - VideoMessage *VideoMessage `protobuf:"bytes,4,opt,name=videoMessage,oneof"` -} - -type ButtonsMessage_LocationMessage struct { - LocationMessage *LocationMessage `protobuf:"bytes,5,opt,name=locationMessage,oneof"` + return false } -func (*ButtonsMessage_Text) isButtonsMessage_Header() {} - -func (*ButtonsMessage_DocumentMessage) isButtonsMessage_Header() {} - -func (*ButtonsMessage_ImageMessage) isButtonsMessage_Header() {} - -func (*ButtonsMessage_VideoMessage) isButtonsMessage_Header() {} - -func (*ButtonsMessage_LocationMessage) isButtonsMessage_Header() {} - -type ButtonsResponseMessage struct { +type SyncActionData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - SelectedButtonId *string `protobuf:"bytes,1,opt,name=selectedButtonId" json:"selectedButtonId,omitempty"` - ContextInfo *ContextInfo `protobuf:"bytes,3,opt,name=contextInfo" json:"contextInfo,omitempty"` - Type *ButtonsResponseMessage_ButtonsResponseMessageType `protobuf:"varint,4,opt,name=type,enum=proto.ButtonsResponseMessage_ButtonsResponseMessageType" json:"type,omitempty"` - // Types that are assignable to Response: - // *ButtonsResponseMessage_SelectedDisplayText - Response isButtonsResponseMessage_Response `protobuf_oneof:"response"` + Index []byte `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` + Value *SyncActionValue `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` + Padding []byte `protobuf:"bytes,3,opt,name=padding" json:"padding,omitempty"` + Version *int32 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"` } -func (x *ButtonsResponseMessage) Reset() { - *x = ButtonsResponseMessage{} +func (x *SyncActionData) Reset() { + *x = SyncActionData{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[144] + mi := &file_binary_proto_def_proto_msgTypes[158] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ButtonsResponseMessage) String() string { +func (x *SyncActionData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ButtonsResponseMessage) ProtoMessage() {} +func (*SyncActionData) ProtoMessage() {} -func (x *ButtonsResponseMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[144] +func (x *SyncActionData) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[158] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15315,84 +16325,65 @@ func (x *ButtonsResponseMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ButtonsResponseMessage.ProtoReflect.Descriptor instead. -func (*ButtonsResponseMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{144} -} - -func (x *ButtonsResponseMessage) GetSelectedButtonId() string { - if x != nil && x.SelectedButtonId != nil { - return *x.SelectedButtonId - } - return "" +// Deprecated: Use SyncActionData.ProtoReflect.Descriptor instead. +func (*SyncActionData) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{158} } -func (x *ButtonsResponseMessage) GetContextInfo() *ContextInfo { +func (x *SyncActionData) GetIndex() []byte { if x != nil { - return x.ContextInfo + return x.Index } return nil } -func (x *ButtonsResponseMessage) GetType() ButtonsResponseMessage_ButtonsResponseMessageType { - if x != nil && x.Type != nil { - return *x.Type +func (x *SyncActionData) GetValue() *SyncActionValue { + if x != nil { + return x.Value } - return ButtonsResponseMessage_UNKNOWN + return nil } -func (m *ButtonsResponseMessage) GetResponse() isButtonsResponseMessage_Response { - if m != nil { - return m.Response +func (x *SyncActionData) GetPadding() []byte { + if x != nil { + return x.Padding } return nil } -func (x *ButtonsResponseMessage) GetSelectedDisplayText() string { - if x, ok := x.GetResponse().(*ButtonsResponseMessage_SelectedDisplayText); ok { - return x.SelectedDisplayText +func (x *SyncActionData) GetVersion() int32 { + if x != nil && x.Version != nil { + return *x.Version } - return "" -} - -type isButtonsResponseMessage_Response interface { - isButtonsResponseMessage_Response() -} - -type ButtonsResponseMessage_SelectedDisplayText struct { - SelectedDisplayText string `protobuf:"bytes,2,opt,name=selectedDisplayText,oneof"` + return 0 } -func (*ButtonsResponseMessage_SelectedDisplayText) isButtonsResponseMessage_Response() {} - -type ReactionMessage struct { +type RecentStickerWeight struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` - Text *string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` - GroupingKey *string `protobuf:"bytes,3,opt,name=groupingKey" json:"groupingKey,omitempty"` - SenderTimestampMs *int64 `protobuf:"varint,4,opt,name=senderTimestampMs" json:"senderTimestampMs,omitempty"` + Filehash *string `protobuf:"bytes,1,opt,name=filehash" json:"filehash,omitempty"` + Weight *float32 `protobuf:"fixed32,2,opt,name=weight" json:"weight,omitempty"` } -func (x *ReactionMessage) Reset() { - *x = ReactionMessage{} +func (x *RecentStickerWeight) Reset() { + *x = RecentStickerWeight{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[145] + mi := &file_binary_proto_def_proto_msgTypes[159] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ReactionMessage) String() string { +func (x *RecentStickerWeight) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ReactionMessage) ProtoMessage() {} +func (*RecentStickerWeight) ProtoMessage() {} -func (x *ReactionMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[145] +func (x *RecentStickerWeight) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[159] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15403,66 +16394,51 @@ func (x *ReactionMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ReactionMessage.ProtoReflect.Descriptor instead. -func (*ReactionMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{145} -} - -func (x *ReactionMessage) GetKey() *MessageKey { - if x != nil { - return x.Key - } - return nil -} - -func (x *ReactionMessage) GetText() string { - if x != nil && x.Text != nil { - return *x.Text - } - return "" +// Deprecated: Use RecentStickerWeight.ProtoReflect.Descriptor instead. +func (*RecentStickerWeight) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{159} } -func (x *ReactionMessage) GetGroupingKey() string { - if x != nil && x.GroupingKey != nil { - return *x.GroupingKey +func (x *RecentStickerWeight) GetFilehash() string { + if x != nil && x.Filehash != nil { + return *x.Filehash } return "" } -func (x *ReactionMessage) GetSenderTimestampMs() int64 { - if x != nil && x.SenderTimestampMs != nil { - return *x.SenderTimestampMs +func (x *RecentStickerWeight) GetWeight() float32 { + if x != nil && x.Weight != nil { + return *x.Weight } return 0 } -type StickerSyncRMRMessage struct { +type RecentEmojiWeight struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Filehash []string `protobuf:"bytes,1,rep,name=filehash" json:"filehash,omitempty"` - RmrSource *string `protobuf:"bytes,2,opt,name=rmrSource" json:"rmrSource,omitempty"` - RequestTimestamp *int64 `protobuf:"varint,3,opt,name=requestTimestamp" json:"requestTimestamp,omitempty"` + Emoji *string `protobuf:"bytes,1,opt,name=emoji" json:"emoji,omitempty"` + Weight *float32 `protobuf:"fixed32,2,opt,name=weight" json:"weight,omitempty"` } -func (x *StickerSyncRMRMessage) Reset() { - *x = StickerSyncRMRMessage{} +func (x *RecentEmojiWeight) Reset() { + *x = RecentEmojiWeight{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[146] + mi := &file_binary_proto_def_proto_msgTypes[160] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *StickerSyncRMRMessage) String() string { +func (x *RecentEmojiWeight) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StickerSyncRMRMessage) ProtoMessage() {} +func (*RecentEmojiWeight) ProtoMessage() {} -func (x *StickerSyncRMRMessage) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[146] +func (x *RecentEmojiWeight) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[160] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15473,95 +16449,52 @@ func (x *StickerSyncRMRMessage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StickerSyncRMRMessage.ProtoReflect.Descriptor instead. -func (*StickerSyncRMRMessage) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{146} -} - -func (x *StickerSyncRMRMessage) GetFilehash() []string { - if x != nil { - return x.Filehash - } - return nil +// Deprecated: Use RecentEmojiWeight.ProtoReflect.Descriptor instead. +func (*RecentEmojiWeight) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{160} } -func (x *StickerSyncRMRMessage) GetRmrSource() string { - if x != nil && x.RmrSource != nil { - return *x.RmrSource +func (x *RecentEmojiWeight) GetEmoji() string { + if x != nil && x.Emoji != nil { + return *x.Emoji } return "" } -func (x *StickerSyncRMRMessage) GetRequestTimestamp() int64 { - if x != nil && x.RequestTimestamp != nil { - return *x.RequestTimestamp +func (x *RecentEmojiWeight) GetWeight() float32 { + if x != nil && x.Weight != nil { + return *x.Weight } return 0 } -type Message struct { +type VerifiedNameCertificate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Conversation *string `protobuf:"bytes,1,opt,name=conversation" json:"conversation,omitempty"` - SenderKeyDistributionMessage *SenderKeyDistributionMessage `protobuf:"bytes,2,opt,name=senderKeyDistributionMessage" json:"senderKeyDistributionMessage,omitempty"` - ImageMessage *ImageMessage `protobuf:"bytes,3,opt,name=imageMessage" json:"imageMessage,omitempty"` - ContactMessage *ContactMessage `protobuf:"bytes,4,opt,name=contactMessage" json:"contactMessage,omitempty"` - LocationMessage *LocationMessage `protobuf:"bytes,5,opt,name=locationMessage" json:"locationMessage,omitempty"` - ExtendedTextMessage *ExtendedTextMessage `protobuf:"bytes,6,opt,name=extendedTextMessage" json:"extendedTextMessage,omitempty"` - DocumentMessage *DocumentMessage `protobuf:"bytes,7,opt,name=documentMessage" json:"documentMessage,omitempty"` - AudioMessage *AudioMessage `protobuf:"bytes,8,opt,name=audioMessage" json:"audioMessage,omitempty"` - VideoMessage *VideoMessage `protobuf:"bytes,9,opt,name=videoMessage" json:"videoMessage,omitempty"` - Call *Call `protobuf:"bytes,10,opt,name=call" json:"call,omitempty"` - Chat *Chat `protobuf:"bytes,11,opt,name=chat" json:"chat,omitempty"` - ProtocolMessage *ProtocolMessage `protobuf:"bytes,12,opt,name=protocolMessage" json:"protocolMessage,omitempty"` - ContactsArrayMessage *ContactsArrayMessage `protobuf:"bytes,13,opt,name=contactsArrayMessage" json:"contactsArrayMessage,omitempty"` - HighlyStructuredMessage *HighlyStructuredMessage `protobuf:"bytes,14,opt,name=highlyStructuredMessage" json:"highlyStructuredMessage,omitempty"` - FastRatchetKeySenderKeyDistributionMessage *SenderKeyDistributionMessage `protobuf:"bytes,15,opt,name=fastRatchetKeySenderKeyDistributionMessage" json:"fastRatchetKeySenderKeyDistributionMessage,omitempty"` - SendPaymentMessage *SendPaymentMessage `protobuf:"bytes,16,opt,name=sendPaymentMessage" json:"sendPaymentMessage,omitempty"` - LiveLocationMessage *LiveLocationMessage `protobuf:"bytes,18,opt,name=liveLocationMessage" json:"liveLocationMessage,omitempty"` - RequestPaymentMessage *RequestPaymentMessage `protobuf:"bytes,22,opt,name=requestPaymentMessage" json:"requestPaymentMessage,omitempty"` - DeclinePaymentRequestMessage *DeclinePaymentRequestMessage `protobuf:"bytes,23,opt,name=declinePaymentRequestMessage" json:"declinePaymentRequestMessage,omitempty"` - CancelPaymentRequestMessage *CancelPaymentRequestMessage `protobuf:"bytes,24,opt,name=cancelPaymentRequestMessage" json:"cancelPaymentRequestMessage,omitempty"` - TemplateMessage *TemplateMessage `protobuf:"bytes,25,opt,name=templateMessage" json:"templateMessage,omitempty"` - StickerMessage *StickerMessage `protobuf:"bytes,26,opt,name=stickerMessage" json:"stickerMessage,omitempty"` - GroupInviteMessage *GroupInviteMessage `protobuf:"bytes,28,opt,name=groupInviteMessage" json:"groupInviteMessage,omitempty"` - TemplateButtonReplyMessage *TemplateButtonReplyMessage `protobuf:"bytes,29,opt,name=templateButtonReplyMessage" json:"templateButtonReplyMessage,omitempty"` - ProductMessage *ProductMessage `protobuf:"bytes,30,opt,name=productMessage" json:"productMessage,omitempty"` - DeviceSentMessage *DeviceSentMessage `protobuf:"bytes,31,opt,name=deviceSentMessage" json:"deviceSentMessage,omitempty"` - MessageContextInfo *MessageContextInfo `protobuf:"bytes,35,opt,name=messageContextInfo" json:"messageContextInfo,omitempty"` - ListMessage *ListMessage `protobuf:"bytes,36,opt,name=listMessage" json:"listMessage,omitempty"` - ViewOnceMessage *FutureProofMessage `protobuf:"bytes,37,opt,name=viewOnceMessage" json:"viewOnceMessage,omitempty"` - OrderMessage *OrderMessage `protobuf:"bytes,38,opt,name=orderMessage" json:"orderMessage,omitempty"` - ListResponseMessage *ListResponseMessage `protobuf:"bytes,39,opt,name=listResponseMessage" json:"listResponseMessage,omitempty"` - EphemeralMessage *FutureProofMessage `protobuf:"bytes,40,opt,name=ephemeralMessage" json:"ephemeralMessage,omitempty"` - InvoiceMessage *InvoiceMessage `protobuf:"bytes,41,opt,name=invoiceMessage" json:"invoiceMessage,omitempty"` - ButtonsMessage *ButtonsMessage `protobuf:"bytes,42,opt,name=buttonsMessage" json:"buttonsMessage,omitempty"` - ButtonsResponseMessage *ButtonsResponseMessage `protobuf:"bytes,43,opt,name=buttonsResponseMessage" json:"buttonsResponseMessage,omitempty"` - PaymentInviteMessage *PaymentInviteMessage `protobuf:"bytes,44,opt,name=paymentInviteMessage" json:"paymentInviteMessage,omitempty"` - InteractiveMessage *InteractiveMessage `protobuf:"bytes,45,opt,name=interactiveMessage" json:"interactiveMessage,omitempty"` - ReactionMessage *ReactionMessage `protobuf:"bytes,46,opt,name=reactionMessage" json:"reactionMessage,omitempty"` - StickerSyncRmrMessage *StickerSyncRMRMessage `protobuf:"bytes,47,opt,name=stickerSyncRmrMessage" json:"stickerSyncRmrMessage,omitempty"` + Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` + ServerSignature []byte `protobuf:"bytes,3,opt,name=serverSignature" json:"serverSignature,omitempty"` } -func (x *Message) Reset() { - *x = Message{} +func (x *VerifiedNameCertificate) Reset() { + *x = VerifiedNameCertificate{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[147] + mi := &file_binary_proto_def_proto_msgTypes[161] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Message) String() string { +func (x *VerifiedNameCertificate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Message) ProtoMessage() {} +func (*VerifiedNameCertificate) ProtoMessage() {} -func (x *Message) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[147] +func (x *VerifiedNameCertificate) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[161] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15572,310 +16505,62 @@ func (x *Message) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Message.ProtoReflect.Descriptor instead. -func (*Message) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{147} -} - -func (x *Message) GetConversation() string { - if x != nil && x.Conversation != nil { - return *x.Conversation - } - return "" -} - -func (x *Message) GetSenderKeyDistributionMessage() *SenderKeyDistributionMessage { - if x != nil { - return x.SenderKeyDistributionMessage - } - return nil -} - -func (x *Message) GetImageMessage() *ImageMessage { - if x != nil { - return x.ImageMessage - } - return nil -} - -func (x *Message) GetContactMessage() *ContactMessage { - if x != nil { - return x.ContactMessage - } - return nil -} - -func (x *Message) GetLocationMessage() *LocationMessage { - if x != nil { - return x.LocationMessage - } - return nil -} - -func (x *Message) GetExtendedTextMessage() *ExtendedTextMessage { - if x != nil { - return x.ExtendedTextMessage - } - return nil -} - -func (x *Message) GetDocumentMessage() *DocumentMessage { - if x != nil { - return x.DocumentMessage - } - return nil -} - -func (x *Message) GetAudioMessage() *AudioMessage { - if x != nil { - return x.AudioMessage - } - return nil -} - -func (x *Message) GetVideoMessage() *VideoMessage { - if x != nil { - return x.VideoMessage - } - return nil -} - -func (x *Message) GetCall() *Call { - if x != nil { - return x.Call - } - return nil -} - -func (x *Message) GetChat() *Chat { - if x != nil { - return x.Chat - } - return nil -} - -func (x *Message) GetProtocolMessage() *ProtocolMessage { - if x != nil { - return x.ProtocolMessage - } - return nil -} - -func (x *Message) GetContactsArrayMessage() *ContactsArrayMessage { - if x != nil { - return x.ContactsArrayMessage - } - return nil -} - -func (x *Message) GetHighlyStructuredMessage() *HighlyStructuredMessage { - if x != nil { - return x.HighlyStructuredMessage - } - return nil -} - -func (x *Message) GetFastRatchetKeySenderKeyDistributionMessage() *SenderKeyDistributionMessage { - if x != nil { - return x.FastRatchetKeySenderKeyDistributionMessage - } - return nil -} - -func (x *Message) GetSendPaymentMessage() *SendPaymentMessage { - if x != nil { - return x.SendPaymentMessage - } - return nil -} - -func (x *Message) GetLiveLocationMessage() *LiveLocationMessage { - if x != nil { - return x.LiveLocationMessage - } - return nil -} - -func (x *Message) GetRequestPaymentMessage() *RequestPaymentMessage { - if x != nil { - return x.RequestPaymentMessage - } - return nil -} - -func (x *Message) GetDeclinePaymentRequestMessage() *DeclinePaymentRequestMessage { - if x != nil { - return x.DeclinePaymentRequestMessage - } - return nil -} - -func (x *Message) GetCancelPaymentRequestMessage() *CancelPaymentRequestMessage { - if x != nil { - return x.CancelPaymentRequestMessage - } - return nil -} - -func (x *Message) GetTemplateMessage() *TemplateMessage { - if x != nil { - return x.TemplateMessage - } - return nil -} - -func (x *Message) GetStickerMessage() *StickerMessage { - if x != nil { - return x.StickerMessage - } - return nil -} - -func (x *Message) GetGroupInviteMessage() *GroupInviteMessage { - if x != nil { - return x.GroupInviteMessage - } - return nil -} - -func (x *Message) GetTemplateButtonReplyMessage() *TemplateButtonReplyMessage { - if x != nil { - return x.TemplateButtonReplyMessage - } - return nil -} - -func (x *Message) GetProductMessage() *ProductMessage { - if x != nil { - return x.ProductMessage - } - return nil -} - -func (x *Message) GetDeviceSentMessage() *DeviceSentMessage { - if x != nil { - return x.DeviceSentMessage - } - return nil -} - -func (x *Message) GetMessageContextInfo() *MessageContextInfo { - if x != nil { - return x.MessageContextInfo - } - return nil -} - -func (x *Message) GetListMessage() *ListMessage { - if x != nil { - return x.ListMessage - } - return nil -} - -func (x *Message) GetViewOnceMessage() *FutureProofMessage { - if x != nil { - return x.ViewOnceMessage - } - return nil -} - -func (x *Message) GetOrderMessage() *OrderMessage { - if x != nil { - return x.OrderMessage - } - return nil -} - -func (x *Message) GetListResponseMessage() *ListResponseMessage { - if x != nil { - return x.ListResponseMessage - } - return nil -} - -func (x *Message) GetEphemeralMessage() *FutureProofMessage { - if x != nil { - return x.EphemeralMessage - } - return nil -} - -func (x *Message) GetInvoiceMessage() *InvoiceMessage { - if x != nil { - return x.InvoiceMessage - } - return nil -} - -func (x *Message) GetButtonsMessage() *ButtonsMessage { - if x != nil { - return x.ButtonsMessage - } - return nil -} - -func (x *Message) GetButtonsResponseMessage() *ButtonsResponseMessage { - if x != nil { - return x.ButtonsResponseMessage - } - return nil -} - -func (x *Message) GetPaymentInviteMessage() *PaymentInviteMessage { - if x != nil { - return x.PaymentInviteMessage - } - return nil +// Deprecated: Use VerifiedNameCertificate.ProtoReflect.Descriptor instead. +func (*VerifiedNameCertificate) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{161} } -func (x *Message) GetInteractiveMessage() *InteractiveMessage { +func (x *VerifiedNameCertificate) GetDetails() []byte { if x != nil { - return x.InteractiveMessage + return x.Details } return nil } -func (x *Message) GetReactionMessage() *ReactionMessage { +func (x *VerifiedNameCertificate) GetSignature() []byte { if x != nil { - return x.ReactionMessage + return x.Signature } return nil } -func (x *Message) GetStickerSyncRmrMessage() *StickerSyncRMRMessage { +func (x *VerifiedNameCertificate) GetServerSignature() []byte { if x != nil { - return x.StickerSyncRmrMessage + return x.ServerSignature } return nil } -type ActionLink struct { +// Renamed from VerifiedNameCertificate$Details +type VerifiedNameDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` - ButtonTitle *string `protobuf:"bytes,2,opt,name=buttonTitle" json:"buttonTitle,omitempty"` + Serial *uint64 `protobuf:"varint,1,opt,name=serial" json:"serial,omitempty"` + Issuer *string `protobuf:"bytes,2,opt,name=issuer" json:"issuer,omitempty"` + VerifiedName *string `protobuf:"bytes,4,opt,name=verifiedName" json:"verifiedName,omitempty"` + LocalizedNames []*LocalizedName `protobuf:"bytes,8,rep,name=localizedNames" json:"localizedNames,omitempty"` + IssueTime *uint64 `protobuf:"varint,10,opt,name=issueTime" json:"issueTime,omitempty"` } -func (x *ActionLink) Reset() { - *x = ActionLink{} +func (x *VerifiedNameDetails) Reset() { + *x = VerifiedNameDetails{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[148] + mi := &file_binary_proto_def_proto_msgTypes[162] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ActionLink) String() string { +func (x *VerifiedNameDetails) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ActionLink) ProtoMessage() {} +func (*VerifiedNameDetails) ProtoMessage() {} -func (x *ActionLink) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[148] +func (x *VerifiedNameDetails) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[162] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15886,102 +16571,73 @@ func (x *ActionLink) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ActionLink.ProtoReflect.Descriptor instead. -func (*ActionLink) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{148} +// Deprecated: Use VerifiedNameDetails.ProtoReflect.Descriptor instead. +func (*VerifiedNameDetails) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{162} } -func (x *ActionLink) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url +func (x *VerifiedNameDetails) GetSerial() uint64 { + if x != nil && x.Serial != nil { + return *x.Serial } - return "" + return 0 } -func (x *ActionLink) GetButtonTitle() string { - if x != nil && x.ButtonTitle != nil { - return *x.ButtonTitle +func (x *VerifiedNameDetails) GetIssuer() string { + if x != nil && x.Issuer != nil { + return *x.Issuer } return "" } -type DisappearingMode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Initiator *DisappearingMode_DisappearingModeInitiator `protobuf:"varint,1,opt,name=initiator,enum=proto.DisappearingMode_DisappearingModeInitiator" json:"initiator,omitempty"` -} - -func (x *DisappearingMode) Reset() { - *x = DisappearingMode{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[149] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *VerifiedNameDetails) GetVerifiedName() string { + if x != nil && x.VerifiedName != nil { + return *x.VerifiedName } + return "" } -func (x *DisappearingMode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DisappearingMode) ProtoMessage() {} - -func (x *DisappearingMode) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[149] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *VerifiedNameDetails) GetLocalizedNames() []*LocalizedName { + if x != nil { + return x.LocalizedNames } - return mi.MessageOf(x) -} - -// Deprecated: Use DisappearingMode.ProtoReflect.Descriptor instead. -func (*DisappearingMode) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{149} + return nil } -func (x *DisappearingMode) GetInitiator() DisappearingMode_DisappearingModeInitiator { - if x != nil && x.Initiator != nil { - return *x.Initiator +func (x *VerifiedNameDetails) GetIssueTime() uint64 { + if x != nil && x.IssueTime != nil { + return *x.IssueTime } - return DisappearingMode_CHANGED_IN_CHAT + return 0 } -// Renamed from MediaData -type PBMediaData struct { +type LocalizedName struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MediaKey []byte `protobuf:"bytes,1,opt,name=mediaKey" json:"mediaKey,omitempty"` - MediaKeyTimestamp *int64 `protobuf:"varint,2,opt,name=mediaKeyTimestamp" json:"mediaKeyTimestamp,omitempty"` - FileSha256 []byte `protobuf:"bytes,3,opt,name=fileSha256" json:"fileSha256,omitempty"` - FileEncSha256 []byte `protobuf:"bytes,4,opt,name=fileEncSha256" json:"fileEncSha256,omitempty"` - DirectPath *string `protobuf:"bytes,5,opt,name=directPath" json:"directPath,omitempty"` + Lg *string `protobuf:"bytes,1,opt,name=lg" json:"lg,omitempty"` + Lc *string `protobuf:"bytes,2,opt,name=lc" json:"lc,omitempty"` + VerifiedName *string `protobuf:"bytes,3,opt,name=verifiedName" json:"verifiedName,omitempty"` } -func (x *PBMediaData) Reset() { - *x = PBMediaData{} +func (x *LocalizedName) Reset() { + *x = LocalizedName{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[150] + mi := &file_binary_proto_def_proto_msgTypes[163] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *PBMediaData) String() string { +func (x *LocalizedName) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PBMediaData) ProtoMessage() {} +func (*LocalizedName) ProtoMessage() {} -func (x *PBMediaData) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[150] +func (x *LocalizedName) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[163] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15992,80 +16648,64 @@ func (x *PBMediaData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PBMediaData.ProtoReflect.Descriptor instead. -func (*PBMediaData) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{150} -} - -func (x *PBMediaData) GetMediaKey() []byte { - if x != nil { - return x.MediaKey - } - return nil -} - -func (x *PBMediaData) GetMediaKeyTimestamp() int64 { - if x != nil && x.MediaKeyTimestamp != nil { - return *x.MediaKeyTimestamp - } - return 0 +// Deprecated: Use LocalizedName.ProtoReflect.Descriptor instead. +func (*LocalizedName) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{163} } -func (x *PBMediaData) GetFileSha256() []byte { - if x != nil { - return x.FileSha256 +func (x *LocalizedName) GetLg() string { + if x != nil && x.Lg != nil { + return *x.Lg } - return nil + return "" } -func (x *PBMediaData) GetFileEncSha256() []byte { - if x != nil { - return x.FileEncSha256 +func (x *LocalizedName) GetLc() string { + if x != nil && x.Lc != nil { + return *x.Lc } - return nil + return "" } -func (x *PBMediaData) GetDirectPath() string { - if x != nil && x.DirectPath != nil { - return *x.DirectPath +func (x *LocalizedName) GetVerifiedName() string { + if x != nil && x.VerifiedName != nil { + return *x.VerifiedName } return "" } -type PaymentBackground struct { +type BizIdentityInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` - FileLength *uint64 `protobuf:"varint,2,opt,name=fileLength" json:"fileLength,omitempty"` - Width *uint32 `protobuf:"varint,3,opt,name=width" json:"width,omitempty"` - Height *uint32 `protobuf:"varint,4,opt,name=height" json:"height,omitempty"` - Mimetype *string `protobuf:"bytes,5,opt,name=mimetype" json:"mimetype,omitempty"` - PlaceholderArgb *uint32 `protobuf:"fixed32,6,opt,name=placeholderArgb" json:"placeholderArgb,omitempty"` - TextArgb *uint32 `protobuf:"fixed32,7,opt,name=textArgb" json:"textArgb,omitempty"` - SubtextArgb *uint32 `protobuf:"fixed32,8,opt,name=subtextArgb" json:"subtextArgb,omitempty"` - MediaData *PBMediaData `protobuf:"bytes,9,opt,name=mediaData" json:"mediaData,omitempty"` - Type *PaymentBackground_PaymentBackgroundType `protobuf:"varint,10,opt,name=type,enum=proto.PaymentBackground_PaymentBackgroundType" json:"type,omitempty"` + Vlevel *BizIdentityInfo_BizIdentityInfoVerifiedLevelValue `protobuf:"varint,1,opt,name=vlevel,enum=proto.BizIdentityInfo_BizIdentityInfoVerifiedLevelValue" json:"vlevel,omitempty"` + VnameCert *VerifiedNameCertificate `protobuf:"bytes,2,opt,name=vnameCert" json:"vnameCert,omitempty"` + Signed *bool `protobuf:"varint,3,opt,name=signed" json:"signed,omitempty"` + Revoked *bool `protobuf:"varint,4,opt,name=revoked" json:"revoked,omitempty"` + HostStorage *BizIdentityInfo_BizIdentityInfoHostStorageType `protobuf:"varint,5,opt,name=hostStorage,enum=proto.BizIdentityInfo_BizIdentityInfoHostStorageType" json:"hostStorage,omitempty"` + ActualActors *BizIdentityInfo_BizIdentityInfoActualActorsType `protobuf:"varint,6,opt,name=actualActors,enum=proto.BizIdentityInfo_BizIdentityInfoActualActorsType" json:"actualActors,omitempty"` + PrivacyModeTs *uint64 `protobuf:"varint,7,opt,name=privacyModeTs" json:"privacyModeTs,omitempty"` + FeatureControls *uint64 `protobuf:"varint,8,opt,name=featureControls" json:"featureControls,omitempty"` } -func (x *PaymentBackground) Reset() { - *x = PaymentBackground{} +func (x *BizIdentityInfo) Reset() { + *x = BizIdentityInfo{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[151] + mi := &file_binary_proto_def_proto_msgTypes[164] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *PaymentBackground) String() string { +func (x *BizIdentityInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PaymentBackground) ProtoMessage() {} +func (*BizIdentityInfo) ProtoMessage() {} -func (x *PaymentBackground) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[151] +func (x *BizIdentityInfo) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[164] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16076,108 +16716,93 @@ func (x *PaymentBackground) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PaymentBackground.ProtoReflect.Descriptor instead. -func (*PaymentBackground) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{151} +// Deprecated: Use BizIdentityInfo.ProtoReflect.Descriptor instead. +func (*BizIdentityInfo) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{164} } -func (x *PaymentBackground) GetId() string { - if x != nil && x.Id != nil { - return *x.Id +func (x *BizIdentityInfo) GetVlevel() BizIdentityInfo_BizIdentityInfoVerifiedLevelValue { + if x != nil && x.Vlevel != nil { + return *x.Vlevel } - return "" + return BizIdentityInfo_UNKNOWN } -func (x *PaymentBackground) GetFileLength() uint64 { - if x != nil && x.FileLength != nil { - return *x.FileLength +func (x *BizIdentityInfo) GetVnameCert() *VerifiedNameCertificate { + if x != nil { + return x.VnameCert } - return 0 + return nil } -func (x *PaymentBackground) GetWidth() uint32 { - if x != nil && x.Width != nil { - return *x.Width +func (x *BizIdentityInfo) GetSigned() bool { + if x != nil && x.Signed != nil { + return *x.Signed } - return 0 + return false } -func (x *PaymentBackground) GetHeight() uint32 { - if x != nil && x.Height != nil { - return *x.Height +func (x *BizIdentityInfo) GetRevoked() bool { + if x != nil && x.Revoked != nil { + return *x.Revoked } - return 0 + return false } -func (x *PaymentBackground) GetMimetype() string { - if x != nil && x.Mimetype != nil { - return *x.Mimetype +func (x *BizIdentityInfo) GetHostStorage() BizIdentityInfo_BizIdentityInfoHostStorageType { + if x != nil && x.HostStorage != nil { + return *x.HostStorage } - return "" + return BizIdentityInfo_ON_PREMISE } -func (x *PaymentBackground) GetPlaceholderArgb() uint32 { - if x != nil && x.PlaceholderArgb != nil { - return *x.PlaceholderArgb +func (x *BizIdentityInfo) GetActualActors() BizIdentityInfo_BizIdentityInfoActualActorsType { + if x != nil && x.ActualActors != nil { + return *x.ActualActors } - return 0 + return BizIdentityInfo_SELF } -func (x *PaymentBackground) GetTextArgb() uint32 { - if x != nil && x.TextArgb != nil { - return *x.TextArgb +func (x *BizIdentityInfo) GetPrivacyModeTs() uint64 { + if x != nil && x.PrivacyModeTs != nil { + return *x.PrivacyModeTs } return 0 } -func (x *PaymentBackground) GetSubtextArgb() uint32 { - if x != nil && x.SubtextArgb != nil { - return *x.SubtextArgb +func (x *BizIdentityInfo) GetFeatureControls() uint64 { + if x != nil && x.FeatureControls != nil { + return *x.FeatureControls } return 0 } -func (x *PaymentBackground) GetMediaData() *PBMediaData { - if x != nil { - return x.MediaData - } - return nil -} - -func (x *PaymentBackground) GetType() PaymentBackground_PaymentBackgroundType { - if x != nil && x.Type != nil { - return *x.Type - } - return PaymentBackground_UNKNOWN -} - -type Money struct { +type BizAccountPayload struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Value *int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` - Offset *uint32 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"` - CurrencyCode *string `protobuf:"bytes,3,opt,name=currencyCode" json:"currencyCode,omitempty"` + VnameCert *VerifiedNameCertificate `protobuf:"bytes,1,opt,name=vnameCert" json:"vnameCert,omitempty"` + BizAcctLinkInfo []byte `protobuf:"bytes,2,opt,name=bizAcctLinkInfo" json:"bizAcctLinkInfo,omitempty"` } -func (x *Money) Reset() { - *x = Money{} +func (x *BizAccountPayload) Reset() { + *x = BizAccountPayload{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[152] + mi := &file_binary_proto_def_proto_msgTypes[165] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Money) String() string { +func (x *BizAccountPayload) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Money) ProtoMessage() {} +func (*BizAccountPayload) ProtoMessage() {} -func (x *Money) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[152] +func (x *BizAccountPayload) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[165] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16188,58 +16813,54 @@ func (x *Money) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Money.ProtoReflect.Descriptor instead. -func (*Money) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{152} -} - -func (x *Money) GetValue() int64 { - if x != nil && x.Value != nil { - return *x.Value - } - return 0 +// Deprecated: Use BizAccountPayload.ProtoReflect.Descriptor instead. +func (*BizAccountPayload) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{165} } -func (x *Money) GetOffset() uint32 { - if x != nil && x.Offset != nil { - return *x.Offset +func (x *BizAccountPayload) GetVnameCert() *VerifiedNameCertificate { + if x != nil { + return x.VnameCert } - return 0 + return nil } -func (x *Money) GetCurrencyCode() string { - if x != nil && x.CurrencyCode != nil { - return *x.CurrencyCode +func (x *BizAccountPayload) GetBizAcctLinkInfo() []byte { + if x != nil { + return x.BizAcctLinkInfo } - return "" + return nil } -type HydratedQuickReplyButton struct { +type BizAccountLinkInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DisplayText *string `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` - Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` + WhatsappBizAcctFbid *uint64 `protobuf:"varint,1,opt,name=whatsappBizAcctFbid" json:"whatsappBizAcctFbid,omitempty"` + WhatsappAcctNumber *string `protobuf:"bytes,2,opt,name=whatsappAcctNumber" json:"whatsappAcctNumber,omitempty"` + IssueTime *uint64 `protobuf:"varint,3,opt,name=issueTime" json:"issueTime,omitempty"` + HostStorage *BizAccountLinkInfo_BizAccountLinkInfoHostStorageType `protobuf:"varint,4,opt,name=hostStorage,enum=proto.BizAccountLinkInfo_BizAccountLinkInfoHostStorageType" json:"hostStorage,omitempty"` + AccountType *BizAccountLinkInfo_BizAccountLinkInfoAccountType `protobuf:"varint,5,opt,name=accountType,enum=proto.BizAccountLinkInfo_BizAccountLinkInfoAccountType" json:"accountType,omitempty"` } -func (x *HydratedQuickReplyButton) Reset() { - *x = HydratedQuickReplyButton{} +func (x *BizAccountLinkInfo) Reset() { + *x = BizAccountLinkInfo{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[153] + mi := &file_binary_proto_def_proto_msgTypes[166] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HydratedQuickReplyButton) String() string { +func (x *BizAccountLinkInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HydratedQuickReplyButton) ProtoMessage() {} +func (*BizAccountLinkInfo) ProtoMessage() {} -func (x *HydratedQuickReplyButton) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[153] +func (x *BizAccountLinkInfo) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[166] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16250,51 +16871,72 @@ func (x *HydratedQuickReplyButton) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HydratedQuickReplyButton.ProtoReflect.Descriptor instead. -func (*HydratedQuickReplyButton) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{153} +// Deprecated: Use BizAccountLinkInfo.ProtoReflect.Descriptor instead. +func (*BizAccountLinkInfo) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{166} } -func (x *HydratedQuickReplyButton) GetDisplayText() string { - if x != nil && x.DisplayText != nil { - return *x.DisplayText +func (x *BizAccountLinkInfo) GetWhatsappBizAcctFbid() uint64 { + if x != nil && x.WhatsappBizAcctFbid != nil { + return *x.WhatsappBizAcctFbid } - return "" + return 0 } -func (x *HydratedQuickReplyButton) GetId() string { - if x != nil && x.Id != nil { - return *x.Id +func (x *BizAccountLinkInfo) GetWhatsappAcctNumber() string { + if x != nil && x.WhatsappAcctNumber != nil { + return *x.WhatsappAcctNumber } return "" } -type HydratedURLButton struct { +func (x *BizAccountLinkInfo) GetIssueTime() uint64 { + if x != nil && x.IssueTime != nil { + return *x.IssueTime + } + return 0 +} + +func (x *BizAccountLinkInfo) GetHostStorage() BizAccountLinkInfo_BizAccountLinkInfoHostStorageType { + if x != nil && x.HostStorage != nil { + return *x.HostStorage + } + return BizAccountLinkInfo_ON_PREMISE +} + +func (x *BizAccountLinkInfo) GetAccountType() BizAccountLinkInfo_BizAccountLinkInfoAccountType { + if x != nil && x.AccountType != nil { + return *x.AccountType + } + return BizAccountLinkInfo_ENTERPRISE +} + +type NoiseCertificate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DisplayText *string `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` - Url *string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` + Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` } -func (x *HydratedURLButton) Reset() { - *x = HydratedURLButton{} +func (x *NoiseCertificate) Reset() { + *x = NoiseCertificate{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[154] + mi := &file_binary_proto_def_proto_msgTypes[167] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HydratedURLButton) String() string { +func (x *NoiseCertificate) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HydratedURLButton) ProtoMessage() {} +func (*NoiseCertificate) ProtoMessage() {} -func (x *HydratedURLButton) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[154] +func (x *NoiseCertificate) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[167] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16305,51 +16947,55 @@ func (x *HydratedURLButton) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HydratedURLButton.ProtoReflect.Descriptor instead. -func (*HydratedURLButton) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{154} +// Deprecated: Use NoiseCertificate.ProtoReflect.Descriptor instead. +func (*NoiseCertificate) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{167} } -func (x *HydratedURLButton) GetDisplayText() string { - if x != nil && x.DisplayText != nil { - return *x.DisplayText +func (x *NoiseCertificate) GetDetails() []byte { + if x != nil { + return x.Details } - return "" + return nil } -func (x *HydratedURLButton) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url +func (x *NoiseCertificate) GetSignature() []byte { + if x != nil { + return x.Signature } - return "" + return nil } -type HydratedCallButton struct { +// Renamed from NoiseCertificate$Details +type NoiseCertificateDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DisplayText *string `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` - PhoneNumber *string `protobuf:"bytes,2,opt,name=phoneNumber" json:"phoneNumber,omitempty"` + Serial *uint32 `protobuf:"varint,1,opt,name=serial" json:"serial,omitempty"` + Issuer *string `protobuf:"bytes,2,opt,name=issuer" json:"issuer,omitempty"` + Expires *uint64 `protobuf:"varint,3,opt,name=expires" json:"expires,omitempty"` + Subject *string `protobuf:"bytes,4,opt,name=subject" json:"subject,omitempty"` + Key []byte `protobuf:"bytes,5,opt,name=key" json:"key,omitempty"` } -func (x *HydratedCallButton) Reset() { - *x = HydratedCallButton{} +func (x *NoiseCertificateDetails) Reset() { + *x = NoiseCertificateDetails{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[155] + mi := &file_binary_proto_def_proto_msgTypes[168] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HydratedCallButton) String() string { +func (x *NoiseCertificateDetails) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HydratedCallButton) ProtoMessage() {} +func (*NoiseCertificateDetails) ProtoMessage() {} -func (x *HydratedCallButton) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[155] +func (x *NoiseCertificateDetails) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[168] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16360,55 +17006,73 @@ func (x *HydratedCallButton) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HydratedCallButton.ProtoReflect.Descriptor instead. -func (*HydratedCallButton) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{155} +// Deprecated: Use NoiseCertificateDetails.ProtoReflect.Descriptor instead. +func (*NoiseCertificateDetails) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{168} } -func (x *HydratedCallButton) GetDisplayText() string { - if x != nil && x.DisplayText != nil { - return *x.DisplayText +func (x *NoiseCertificateDetails) GetSerial() uint32 { + if x != nil && x.Serial != nil { + return *x.Serial + } + return 0 +} + +func (x *NoiseCertificateDetails) GetIssuer() string { + if x != nil && x.Issuer != nil { + return *x.Issuer } return "" } -func (x *HydratedCallButton) GetPhoneNumber() string { - if x != nil && x.PhoneNumber != nil { - return *x.PhoneNumber +func (x *NoiseCertificateDetails) GetExpires() uint64 { + if x != nil && x.Expires != nil { + return *x.Expires + } + return 0 +} + +func (x *NoiseCertificateDetails) GetSubject() string { + if x != nil && x.Subject != nil { + return *x.Subject } return "" } -type HydratedTemplateButton struct { +func (x *NoiseCertificateDetails) GetKey() []byte { + if x != nil { + return x.Key + } + return nil +} + +type HandshakeMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Index *uint32 `protobuf:"varint,4,opt,name=index" json:"index,omitempty"` - // Types that are assignable to HydratedButton: - // *HydratedTemplateButton_QuickReplyButton - // *HydratedTemplateButton_UrlButton - // *HydratedTemplateButton_CallButton - HydratedButton isHydratedTemplateButton_HydratedButton `protobuf_oneof:"hydratedButton"` + ClientHello *ClientHello `protobuf:"bytes,2,opt,name=clientHello" json:"clientHello,omitempty"` + ServerHello *ServerHello `protobuf:"bytes,3,opt,name=serverHello" json:"serverHello,omitempty"` + ClientFinish *ClientFinish `protobuf:"bytes,4,opt,name=clientFinish" json:"clientFinish,omitempty"` } -func (x *HydratedTemplateButton) Reset() { - *x = HydratedTemplateButton{} +func (x *HandshakeMessage) Reset() { + *x = HandshakeMessage{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[156] + mi := &file_binary_proto_def_proto_msgTypes[169] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *HydratedTemplateButton) String() string { +func (x *HandshakeMessage) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HydratedTemplateButton) ProtoMessage() {} +func (*HandshakeMessage) ProtoMessage() {} -func (x *HydratedTemplateButton) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[156] +func (x *HandshakeMessage) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[169] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16419,94 +17083,59 @@ func (x *HydratedTemplateButton) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HydratedTemplateButton.ProtoReflect.Descriptor instead. -func (*HydratedTemplateButton) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{156} -} - -func (x *HydratedTemplateButton) GetIndex() uint32 { - if x != nil && x.Index != nil { - return *x.Index - } - return 0 -} - -func (m *HydratedTemplateButton) GetHydratedButton() isHydratedTemplateButton_HydratedButton { - if m != nil { - return m.HydratedButton - } - return nil +// Deprecated: Use HandshakeMessage.ProtoReflect.Descriptor instead. +func (*HandshakeMessage) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{169} } -func (x *HydratedTemplateButton) GetQuickReplyButton() *HydratedQuickReplyButton { - if x, ok := x.GetHydratedButton().(*HydratedTemplateButton_QuickReplyButton); ok { - return x.QuickReplyButton +func (x *HandshakeMessage) GetClientHello() *ClientHello { + if x != nil { + return x.ClientHello } return nil } -func (x *HydratedTemplateButton) GetUrlButton() *HydratedURLButton { - if x, ok := x.GetHydratedButton().(*HydratedTemplateButton_UrlButton); ok { - return x.UrlButton +func (x *HandshakeMessage) GetServerHello() *ServerHello { + if x != nil { + return x.ServerHello } return nil } -func (x *HydratedTemplateButton) GetCallButton() *HydratedCallButton { - if x, ok := x.GetHydratedButton().(*HydratedTemplateButton_CallButton); ok { - return x.CallButton +func (x *HandshakeMessage) GetClientFinish() *ClientFinish { + if x != nil { + return x.ClientFinish } return nil } -type isHydratedTemplateButton_HydratedButton interface { - isHydratedTemplateButton_HydratedButton() -} - -type HydratedTemplateButton_QuickReplyButton struct { - QuickReplyButton *HydratedQuickReplyButton `protobuf:"bytes,1,opt,name=quickReplyButton,oneof"` -} - -type HydratedTemplateButton_UrlButton struct { - UrlButton *HydratedURLButton `protobuf:"bytes,2,opt,name=urlButton,oneof"` -} - -type HydratedTemplateButton_CallButton struct { - CallButton *HydratedCallButton `protobuf:"bytes,3,opt,name=callButton,oneof"` -} - -func (*HydratedTemplateButton_QuickReplyButton) isHydratedTemplateButton_HydratedButton() {} - -func (*HydratedTemplateButton_UrlButton) isHydratedTemplateButton_HydratedButton() {} - -func (*HydratedTemplateButton_CallButton) isHydratedTemplateButton_HydratedButton() {} - -type QuickReplyButton struct { +type ServerHello struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DisplayText *HighlyStructuredMessage `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` - Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` + Ephemeral []byte `protobuf:"bytes,1,opt,name=ephemeral" json:"ephemeral,omitempty"` + Static []byte `protobuf:"bytes,2,opt,name=static" json:"static,omitempty"` + Payload []byte `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"` } -func (x *QuickReplyButton) Reset() { - *x = QuickReplyButton{} +func (x *ServerHello) Reset() { + *x = ServerHello{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[157] + mi := &file_binary_proto_def_proto_msgTypes[170] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QuickReplyButton) String() string { +func (x *ServerHello) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QuickReplyButton) ProtoMessage() {} +func (*ServerHello) ProtoMessage() {} -func (x *QuickReplyButton) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[157] +func (x *ServerHello) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[170] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16517,51 +17146,59 @@ func (x *QuickReplyButton) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use QuickReplyButton.ProtoReflect.Descriptor instead. -func (*QuickReplyButton) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{157} +// Deprecated: Use ServerHello.ProtoReflect.Descriptor instead. +func (*ServerHello) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{170} } -func (x *QuickReplyButton) GetDisplayText() *HighlyStructuredMessage { +func (x *ServerHello) GetEphemeral() []byte { if x != nil { - return x.DisplayText + return x.Ephemeral } return nil } -func (x *QuickReplyButton) GetId() string { - if x != nil && x.Id != nil { - return *x.Id +func (x *ServerHello) GetStatic() []byte { + if x != nil { + return x.Static } - return "" + return nil } -type URLButton struct { +func (x *ServerHello) GetPayload() []byte { + if x != nil { + return x.Payload + } + return nil +} + +type ClientHello struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DisplayText *HighlyStructuredMessage `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` - Url *HighlyStructuredMessage `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` + Ephemeral []byte `protobuf:"bytes,1,opt,name=ephemeral" json:"ephemeral,omitempty"` + Static []byte `protobuf:"bytes,2,opt,name=static" json:"static,omitempty"` + Payload []byte `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"` } -func (x *URLButton) Reset() { - *x = URLButton{} +func (x *ClientHello) Reset() { + *x = ClientHello{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[158] + mi := &file_binary_proto_def_proto_msgTypes[171] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *URLButton) String() string { +func (x *ClientHello) String() string { return protoimpl.X.MessageStringOf(x) } -func (*URLButton) ProtoMessage() {} +func (*ClientHello) ProtoMessage() {} -func (x *URLButton) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[158] +func (x *ClientHello) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[171] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16572,51 +17209,58 @@ func (x *URLButton) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use URLButton.ProtoReflect.Descriptor instead. -func (*URLButton) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{158} +// Deprecated: Use ClientHello.ProtoReflect.Descriptor instead. +func (*ClientHello) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{171} } -func (x *URLButton) GetDisplayText() *HighlyStructuredMessage { +func (x *ClientHello) GetEphemeral() []byte { if x != nil { - return x.DisplayText + return x.Ephemeral } return nil } -func (x *URLButton) GetUrl() *HighlyStructuredMessage { +func (x *ClientHello) GetStatic() []byte { if x != nil { - return x.Url + return x.Static } return nil } -type CallButton struct { +func (x *ClientHello) GetPayload() []byte { + if x != nil { + return x.Payload + } + return nil +} + +type ClientFinish struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DisplayText *HighlyStructuredMessage `protobuf:"bytes,1,opt,name=displayText" json:"displayText,omitempty"` - PhoneNumber *HighlyStructuredMessage `protobuf:"bytes,2,opt,name=phoneNumber" json:"phoneNumber,omitempty"` + Static []byte `protobuf:"bytes,1,opt,name=static" json:"static,omitempty"` + Payload []byte `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"` } -func (x *CallButton) Reset() { - *x = CallButton{} +func (x *ClientFinish) Reset() { + *x = ClientFinish{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[159] + mi := &file_binary_proto_def_proto_msgTypes[172] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CallButton) String() string { +func (x *ClientFinish) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CallButton) ProtoMessage() {} +func (*ClientFinish) ProtoMessage() {} -func (x *CallButton) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[159] +func (x *ClientFinish) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[172] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16627,55 +17271,72 @@ func (x *CallButton) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CallButton.ProtoReflect.Descriptor instead. -func (*CallButton) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{159} +// Deprecated: Use ClientFinish.ProtoReflect.Descriptor instead. +func (*ClientFinish) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{172} } -func (x *CallButton) GetDisplayText() *HighlyStructuredMessage { +func (x *ClientFinish) GetStatic() []byte { if x != nil { - return x.DisplayText + return x.Static } return nil } -func (x *CallButton) GetPhoneNumber() *HighlyStructuredMessage { +func (x *ClientFinish) GetPayload() []byte { if x != nil { - return x.PhoneNumber + return x.Payload } return nil } -type TemplateButton struct { +type ClientPayload struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Index *uint32 `protobuf:"varint,4,opt,name=index" json:"index,omitempty"` - // Types that are assignable to Button: - // *TemplateButton_QuickReplyButton - // *TemplateButton_UrlButton - // *TemplateButton_CallButton - Button isTemplateButton_Button `protobuf_oneof:"button"` + Username *uint64 `protobuf:"varint,1,opt,name=username" json:"username,omitempty"` + Passive *bool `protobuf:"varint,3,opt,name=passive" json:"passive,omitempty"` + UserAgent *UserAgent `protobuf:"bytes,5,opt,name=userAgent" json:"userAgent,omitempty"` + WebInfo *WebInfo `protobuf:"bytes,6,opt,name=webInfo" json:"webInfo,omitempty"` + PushName *string `protobuf:"bytes,7,opt,name=pushName" json:"pushName,omitempty"` + SessionId *int32 `protobuf:"fixed32,9,opt,name=sessionId" json:"sessionId,omitempty"` + ShortConnect *bool `protobuf:"varint,10,opt,name=shortConnect" json:"shortConnect,omitempty"` + ConnectType *ClientPayload_ClientPayloadConnectType `protobuf:"varint,12,opt,name=connectType,enum=proto.ClientPayload_ClientPayloadConnectType" json:"connectType,omitempty"` + ConnectReason *ClientPayload_ClientPayloadConnectReason `protobuf:"varint,13,opt,name=connectReason,enum=proto.ClientPayload_ClientPayloadConnectReason" json:"connectReason,omitempty"` + Shards []int32 `protobuf:"varint,14,rep,name=shards" json:"shards,omitempty"` + DnsSource *DNSSource `protobuf:"bytes,15,opt,name=dnsSource" json:"dnsSource,omitempty"` + ConnectAttemptCount *uint32 `protobuf:"varint,16,opt,name=connectAttemptCount" json:"connectAttemptCount,omitempty"` + Device *uint32 `protobuf:"varint,18,opt,name=device" json:"device,omitempty"` + RegData *CompanionRegData `protobuf:"bytes,19,opt,name=regData" json:"regData,omitempty"` + Product *ClientPayload_ClientPayloadProduct `protobuf:"varint,20,opt,name=product,enum=proto.ClientPayload_ClientPayloadProduct" json:"product,omitempty"` + FbCat []byte `protobuf:"bytes,21,opt,name=fbCat" json:"fbCat,omitempty"` + FbUserAgent []byte `protobuf:"bytes,22,opt,name=fbUserAgent" json:"fbUserAgent,omitempty"` + Oc *bool `protobuf:"varint,23,opt,name=oc" json:"oc,omitempty"` + Lc *int32 `protobuf:"varint,24,opt,name=lc" json:"lc,omitempty"` + IosAppExtension *ClientPayload_ClientPayloadIOSAppExtension `protobuf:"varint,30,opt,name=iosAppExtension,enum=proto.ClientPayload_ClientPayloadIOSAppExtension" json:"iosAppExtension,omitempty"` + FbAppId *uint64 `protobuf:"varint,31,opt,name=fbAppId" json:"fbAppId,omitempty"` + FbDeviceId []byte `protobuf:"bytes,32,opt,name=fbDeviceId" json:"fbDeviceId,omitempty"` + Pull *bool `protobuf:"varint,33,opt,name=pull" json:"pull,omitempty"` } -func (x *TemplateButton) Reset() { - *x = TemplateButton{} +func (x *ClientPayload) Reset() { + *x = ClientPayload{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[160] + mi := &file_binary_proto_def_proto_msgTypes[173] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *TemplateButton) String() string { +func (x *ClientPayload) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TemplateButton) ProtoMessage() {} +func (*ClientPayload) ProtoMessage() {} -func (x *TemplateButton) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[160] +func (x *ClientPayload) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[173] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16686,159 +17347,200 @@ func (x *TemplateButton) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TemplateButton.ProtoReflect.Descriptor instead. -func (*TemplateButton) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{160} +// Deprecated: Use ClientPayload.ProtoReflect.Descriptor instead. +func (*ClientPayload) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{173} } -func (x *TemplateButton) GetIndex() uint32 { - if x != nil && x.Index != nil { - return *x.Index +func (x *ClientPayload) GetUsername() uint64 { + if x != nil && x.Username != nil { + return *x.Username } return 0 } -func (m *TemplateButton) GetButton() isTemplateButton_Button { - if m != nil { - return m.Button +func (x *ClientPayload) GetPassive() bool { + if x != nil && x.Passive != nil { + return *x.Passive } - return nil + return false } -func (x *TemplateButton) GetQuickReplyButton() *QuickReplyButton { - if x, ok := x.GetButton().(*TemplateButton_QuickReplyButton); ok { - return x.QuickReplyButton +func (x *ClientPayload) GetUserAgent() *UserAgent { + if x != nil { + return x.UserAgent } return nil } -func (x *TemplateButton) GetUrlButton() *URLButton { - if x, ok := x.GetButton().(*TemplateButton_UrlButton); ok { - return x.UrlButton +func (x *ClientPayload) GetWebInfo() *WebInfo { + if x != nil { + return x.WebInfo } return nil } -func (x *TemplateButton) GetCallButton() *CallButton { - if x, ok := x.GetButton().(*TemplateButton_CallButton); ok { - return x.CallButton +func (x *ClientPayload) GetPushName() string { + if x != nil && x.PushName != nil { + return *x.PushName } - return nil + return "" } -type isTemplateButton_Button interface { - isTemplateButton_Button() +func (x *ClientPayload) GetSessionId() int32 { + if x != nil && x.SessionId != nil { + return *x.SessionId + } + return 0 } -type TemplateButton_QuickReplyButton struct { - QuickReplyButton *QuickReplyButton `protobuf:"bytes,1,opt,name=quickReplyButton,oneof"` +func (x *ClientPayload) GetShortConnect() bool { + if x != nil && x.ShortConnect != nil { + return *x.ShortConnect + } + return false } -type TemplateButton_UrlButton struct { - UrlButton *URLButton `protobuf:"bytes,2,opt,name=urlButton,oneof"` +func (x *ClientPayload) GetConnectType() ClientPayload_ClientPayloadConnectType { + if x != nil && x.ConnectType != nil { + return *x.ConnectType + } + return ClientPayload_CELLULAR_UNKNOWN } -type TemplateButton_CallButton struct { - CallButton *CallButton `protobuf:"bytes,3,opt,name=callButton,oneof"` +func (x *ClientPayload) GetConnectReason() ClientPayload_ClientPayloadConnectReason { + if x != nil && x.ConnectReason != nil { + return *x.ConnectReason + } + return ClientPayload_PUSH } -func (*TemplateButton_QuickReplyButton) isTemplateButton_Button() {} - -func (*TemplateButton_UrlButton) isTemplateButton_Button() {} +func (x *ClientPayload) GetShards() []int32 { + if x != nil { + return x.Shards + } + return nil +} -func (*TemplateButton_CallButton) isTemplateButton_Button() {} +func (x *ClientPayload) GetDnsSource() *DNSSource { + if x != nil { + return x.DnsSource + } + return nil +} -type Location struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *ClientPayload) GetConnectAttemptCount() uint32 { + if x != nil && x.ConnectAttemptCount != nil { + return *x.ConnectAttemptCount + } + return 0 +} - DegreesLatitude *float64 `protobuf:"fixed64,1,opt,name=degreesLatitude" json:"degreesLatitude,omitempty"` - DegreesLongitude *float64 `protobuf:"fixed64,2,opt,name=degreesLongitude" json:"degreesLongitude,omitempty"` - Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` +func (x *ClientPayload) GetDevice() uint32 { + if x != nil && x.Device != nil { + return *x.Device + } + return 0 } -func (x *Location) Reset() { - *x = Location{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[161] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ClientPayload) GetRegData() *CompanionRegData { + if x != nil { + return x.RegData } + return nil } -func (x *Location) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ClientPayload) GetProduct() ClientPayload_ClientPayloadProduct { + if x != nil && x.Product != nil { + return *x.Product + } + return ClientPayload_WHATSAPP } -func (*Location) ProtoMessage() {} +func (x *ClientPayload) GetFbCat() []byte { + if x != nil { + return x.FbCat + } + return nil +} -func (x *Location) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[161] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ClientPayload) GetFbUserAgent() []byte { + if x != nil { + return x.FbUserAgent } - return mi.MessageOf(x) + return nil } -// Deprecated: Use Location.ProtoReflect.Descriptor instead. -func (*Location) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{161} +func (x *ClientPayload) GetOc() bool { + if x != nil && x.Oc != nil { + return *x.Oc + } + return false } -func (x *Location) GetDegreesLatitude() float64 { - if x != nil && x.DegreesLatitude != nil { - return *x.DegreesLatitude +func (x *ClientPayload) GetLc() int32 { + if x != nil && x.Lc != nil { + return *x.Lc } return 0 } -func (x *Location) GetDegreesLongitude() float64 { - if x != nil && x.DegreesLongitude != nil { - return *x.DegreesLongitude +func (x *ClientPayload) GetIosAppExtension() ClientPayload_ClientPayloadIOSAppExtension { + if x != nil && x.IosAppExtension != nil { + return *x.IosAppExtension + } + return ClientPayload_SHARE_EXTENSION +} + +func (x *ClientPayload) GetFbAppId() uint64 { + if x != nil && x.FbAppId != nil { + return *x.FbAppId } return 0 } -func (x *Location) GetName() string { - if x != nil && x.Name != nil { - return *x.Name +func (x *ClientPayload) GetFbDeviceId() []byte { + if x != nil { + return x.FbDeviceId } - return "" + return nil } -type Point struct { +func (x *ClientPayload) GetPull() bool { + if x != nil && x.Pull != nil { + return *x.Pull + } + return false +} + +type WebInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - XDeprecated *int32 `protobuf:"varint,1,opt,name=xDeprecated" json:"xDeprecated,omitempty"` - YDeprecated *int32 `protobuf:"varint,2,opt,name=yDeprecated" json:"yDeprecated,omitempty"` - X *float64 `protobuf:"fixed64,3,opt,name=x" json:"x,omitempty"` - Y *float64 `protobuf:"fixed64,4,opt,name=y" json:"y,omitempty"` + RefToken *string `protobuf:"bytes,1,opt,name=refToken" json:"refToken,omitempty"` + Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` + WebdPayload *WebdPayload `protobuf:"bytes,3,opt,name=webdPayload" json:"webdPayload,omitempty"` + WebSubPlatform *WebInfo_WebInfoWebSubPlatform `protobuf:"varint,4,opt,name=webSubPlatform,enum=proto.WebInfo_WebInfoWebSubPlatform" json:"webSubPlatform,omitempty"` } -func (x *Point) Reset() { - *x = Point{} +func (x *WebInfo) Reset() { + *x = WebInfo{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[162] + mi := &file_binary_proto_def_proto_msgTypes[174] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Point) String() string { +func (x *WebInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Point) ProtoMessage() {} +func (*WebInfo) ProtoMessage() {} -func (x *Point) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[162] +func (x *WebInfo) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[174] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16849,67 +17551,74 @@ func (x *Point) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Point.ProtoReflect.Descriptor instead. -func (*Point) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{162} +// Deprecated: Use WebInfo.ProtoReflect.Descriptor instead. +func (*WebInfo) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{174} } -func (x *Point) GetXDeprecated() int32 { - if x != nil && x.XDeprecated != nil { - return *x.XDeprecated +func (x *WebInfo) GetRefToken() string { + if x != nil && x.RefToken != nil { + return *x.RefToken } - return 0 + return "" } -func (x *Point) GetYDeprecated() int32 { - if x != nil && x.YDeprecated != nil { - return *x.YDeprecated +func (x *WebInfo) GetVersion() string { + if x != nil && x.Version != nil { + return *x.Version } - return 0 + return "" } -func (x *Point) GetX() float64 { - if x != nil && x.X != nil { - return *x.X +func (x *WebInfo) GetWebdPayload() *WebdPayload { + if x != nil { + return x.WebdPayload } - return 0 + return nil } -func (x *Point) GetY() float64 { - if x != nil && x.Y != nil { - return *x.Y +func (x *WebInfo) GetWebSubPlatform() WebInfo_WebInfoWebSubPlatform { + if x != nil && x.WebSubPlatform != nil { + return *x.WebSubPlatform } - return 0 + return WebInfo_WEB_BROWSER } -type CompanionProps struct { +type WebdPayload struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Os *string `protobuf:"bytes,1,opt,name=os" json:"os,omitempty"` - Version *AppVersion `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` - PlatformType *CompanionProps_CompanionPropsPlatformType `protobuf:"varint,3,opt,name=platformType,enum=proto.CompanionProps_CompanionPropsPlatformType" json:"platformType,omitempty"` - RequireFullSync *bool `protobuf:"varint,4,opt,name=requireFullSync" json:"requireFullSync,omitempty"` + UsesParticipantInKey *bool `protobuf:"varint,1,opt,name=usesParticipantInKey" json:"usesParticipantInKey,omitempty"` + SupportsStarredMessages *bool `protobuf:"varint,2,opt,name=supportsStarredMessages" json:"supportsStarredMessages,omitempty"` + SupportsDocumentMessages *bool `protobuf:"varint,3,opt,name=supportsDocumentMessages" json:"supportsDocumentMessages,omitempty"` + SupportsUrlMessages *bool `protobuf:"varint,4,opt,name=supportsUrlMessages" json:"supportsUrlMessages,omitempty"` + SupportsMediaRetry *bool `protobuf:"varint,5,opt,name=supportsMediaRetry" json:"supportsMediaRetry,omitempty"` + SupportsE2EImage *bool `protobuf:"varint,6,opt,name=supportsE2EImage" json:"supportsE2EImage,omitempty"` + SupportsE2EVideo *bool `protobuf:"varint,7,opt,name=supportsE2EVideo" json:"supportsE2EVideo,omitempty"` + SupportsE2EAudio *bool `protobuf:"varint,8,opt,name=supportsE2EAudio" json:"supportsE2EAudio,omitempty"` + SupportsE2EDocument *bool `protobuf:"varint,9,opt,name=supportsE2EDocument" json:"supportsE2EDocument,omitempty"` + DocumentTypes *string `protobuf:"bytes,10,opt,name=documentTypes" json:"documentTypes,omitempty"` + Features []byte `protobuf:"bytes,11,opt,name=features" json:"features,omitempty"` } -func (x *CompanionProps) Reset() { - *x = CompanionProps{} +func (x *WebdPayload) Reset() { + *x = WebdPayload{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[163] + mi := &file_binary_proto_def_proto_msgTypes[175] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CompanionProps) String() string { +func (x *WebdPayload) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CompanionProps) ProtoMessage() {} +func (*WebdPayload) ProtoMessage() {} -func (x *CompanionProps) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[163] +func (x *WebdPayload) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[175] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16920,122 +17629,125 @@ func (x *CompanionProps) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CompanionProps.ProtoReflect.Descriptor instead. -func (*CompanionProps) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{163} +// Deprecated: Use WebdPayload.ProtoReflect.Descriptor instead. +func (*WebdPayload) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{175} } -func (x *CompanionProps) GetOs() string { - if x != nil && x.Os != nil { - return *x.Os +func (x *WebdPayload) GetUsesParticipantInKey() bool { + if x != nil && x.UsesParticipantInKey != nil { + return *x.UsesParticipantInKey } - return "" + return false } -func (x *CompanionProps) GetVersion() *AppVersion { - if x != nil { - return x.Version +func (x *WebdPayload) GetSupportsStarredMessages() bool { + if x != nil && x.SupportsStarredMessages != nil { + return *x.SupportsStarredMessages } - return nil + return false } -func (x *CompanionProps) GetPlatformType() CompanionProps_CompanionPropsPlatformType { - if x != nil && x.PlatformType != nil { - return *x.PlatformType +func (x *WebdPayload) GetSupportsDocumentMessages() bool { + if x != nil && x.SupportsDocumentMessages != nil { + return *x.SupportsDocumentMessages } - return CompanionProps_UNKNOWN + return false } -func (x *CompanionProps) GetRequireFullSync() bool { - if x != nil && x.RequireFullSync != nil { - return *x.RequireFullSync +func (x *WebdPayload) GetSupportsUrlMessages() bool { + if x != nil && x.SupportsUrlMessages != nil { + return *x.SupportsUrlMessages } return false } -type ADVSignedDeviceIdentityHMAC struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"` - Hmac []byte `protobuf:"bytes,2,opt,name=hmac" json:"hmac,omitempty"` +func (x *WebdPayload) GetSupportsMediaRetry() bool { + if x != nil && x.SupportsMediaRetry != nil { + return *x.SupportsMediaRetry + } + return false } -func (x *ADVSignedDeviceIdentityHMAC) Reset() { - *x = ADVSignedDeviceIdentityHMAC{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[164] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *WebdPayload) GetSupportsE2EImage() bool { + if x != nil && x.SupportsE2EImage != nil { + return *x.SupportsE2EImage } + return false } -func (x *ADVSignedDeviceIdentityHMAC) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *WebdPayload) GetSupportsE2EVideo() bool { + if x != nil && x.SupportsE2EVideo != nil { + return *x.SupportsE2EVideo + } + return false } -func (*ADVSignedDeviceIdentityHMAC) ProtoMessage() {} - -func (x *ADVSignedDeviceIdentityHMAC) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[164] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *WebdPayload) GetSupportsE2EAudio() bool { + if x != nil && x.SupportsE2EAudio != nil { + return *x.SupportsE2EAudio } - return mi.MessageOf(x) + return false } -// Deprecated: Use ADVSignedDeviceIdentityHMAC.ProtoReflect.Descriptor instead. -func (*ADVSignedDeviceIdentityHMAC) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{164} +func (x *WebdPayload) GetSupportsE2EDocument() bool { + if x != nil && x.SupportsE2EDocument != nil { + return *x.SupportsE2EDocument + } + return false } -func (x *ADVSignedDeviceIdentityHMAC) GetDetails() []byte { - if x != nil { - return x.Details +func (x *WebdPayload) GetDocumentTypes() string { + if x != nil && x.DocumentTypes != nil { + return *x.DocumentTypes } - return nil + return "" } -func (x *ADVSignedDeviceIdentityHMAC) GetHmac() []byte { +func (x *WebdPayload) GetFeatures() []byte { if x != nil { - return x.Hmac + return x.Features } return nil } -type ADVSignedDeviceIdentity struct { +type UserAgent struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"` - AccountSignatureKey []byte `protobuf:"bytes,2,opt,name=accountSignatureKey" json:"accountSignatureKey,omitempty"` - AccountSignature []byte `protobuf:"bytes,3,opt,name=accountSignature" json:"accountSignature,omitempty"` - DeviceSignature []byte `protobuf:"bytes,4,opt,name=deviceSignature" json:"deviceSignature,omitempty"` + Platform *UserAgent_UserAgentPlatform `protobuf:"varint,1,opt,name=platform,enum=proto.UserAgent_UserAgentPlatform" json:"platform,omitempty"` + AppVersion *AppVersion `protobuf:"bytes,2,opt,name=appVersion" json:"appVersion,omitempty"` + Mcc *string `protobuf:"bytes,3,opt,name=mcc" json:"mcc,omitempty"` + Mnc *string `protobuf:"bytes,4,opt,name=mnc" json:"mnc,omitempty"` + OsVersion *string `protobuf:"bytes,5,opt,name=osVersion" json:"osVersion,omitempty"` + Manufacturer *string `protobuf:"bytes,6,opt,name=manufacturer" json:"manufacturer,omitempty"` + Device *string `protobuf:"bytes,7,opt,name=device" json:"device,omitempty"` + OsBuildNumber *string `protobuf:"bytes,8,opt,name=osBuildNumber" json:"osBuildNumber,omitempty"` + PhoneId *string `protobuf:"bytes,9,opt,name=phoneId" json:"phoneId,omitempty"` + ReleaseChannel *UserAgent_UserAgentReleaseChannel `protobuf:"varint,10,opt,name=releaseChannel,enum=proto.UserAgent_UserAgentReleaseChannel" json:"releaseChannel,omitempty"` + LocaleLanguageIso6391 *string `protobuf:"bytes,11,opt,name=localeLanguageIso6391" json:"localeLanguageIso6391,omitempty"` + LocaleCountryIso31661Alpha2 *string `protobuf:"bytes,12,opt,name=localeCountryIso31661Alpha2" json:"localeCountryIso31661Alpha2,omitempty"` + DeviceBoard *string `protobuf:"bytes,13,opt,name=deviceBoard" json:"deviceBoard,omitempty"` } -func (x *ADVSignedDeviceIdentity) Reset() { - *x = ADVSignedDeviceIdentity{} +func (x *UserAgent) Reset() { + *x = UserAgent{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[165] + mi := &file_binary_proto_def_proto_msgTypes[176] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ADVSignedDeviceIdentity) String() string { +func (x *UserAgent) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ADVSignedDeviceIdentity) ProtoMessage() {} +func (*UserAgent) ProtoMessage() {} -func (x *ADVSignedDeviceIdentity) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[165] +func (x *UserAgent) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[176] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17046,128 +17758,128 @@ func (x *ADVSignedDeviceIdentity) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ADVSignedDeviceIdentity.ProtoReflect.Descriptor instead. -func (*ADVSignedDeviceIdentity) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{165} +// Deprecated: Use UserAgent.ProtoReflect.Descriptor instead. +func (*UserAgent) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{176} } -func (x *ADVSignedDeviceIdentity) GetDetails() []byte { - if x != nil { - return x.Details +func (x *UserAgent) GetPlatform() UserAgent_UserAgentPlatform { + if x != nil && x.Platform != nil { + return *x.Platform } - return nil + return UserAgent_ANDROID } -func (x *ADVSignedDeviceIdentity) GetAccountSignatureKey() []byte { +func (x *UserAgent) GetAppVersion() *AppVersion { if x != nil { - return x.AccountSignatureKey + return x.AppVersion } return nil } -func (x *ADVSignedDeviceIdentity) GetAccountSignature() []byte { - if x != nil { - return x.AccountSignature +func (x *UserAgent) GetMcc() string { + if x != nil && x.Mcc != nil { + return *x.Mcc } - return nil + return "" } -func (x *ADVSignedDeviceIdentity) GetDeviceSignature() []byte { - if x != nil { - return x.DeviceSignature +func (x *UserAgent) GetMnc() string { + if x != nil && x.Mnc != nil { + return *x.Mnc } - return nil + return "" } -type ADVDeviceIdentity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RawId *uint32 `protobuf:"varint,1,opt,name=rawId" json:"rawId,omitempty"` - Timestamp *uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` - KeyIndex *uint32 `protobuf:"varint,3,opt,name=keyIndex" json:"keyIndex,omitempty"` +func (x *UserAgent) GetOsVersion() string { + if x != nil && x.OsVersion != nil { + return *x.OsVersion + } + return "" } -func (x *ADVDeviceIdentity) Reset() { - *x = ADVDeviceIdentity{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[166] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *UserAgent) GetManufacturer() string { + if x != nil && x.Manufacturer != nil { + return *x.Manufacturer } + return "" } -func (x *ADVDeviceIdentity) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *UserAgent) GetDevice() string { + if x != nil && x.Device != nil { + return *x.Device + } + return "" } -func (*ADVDeviceIdentity) ProtoMessage() {} +func (x *UserAgent) GetOsBuildNumber() string { + if x != nil && x.OsBuildNumber != nil { + return *x.OsBuildNumber + } + return "" +} -func (x *ADVDeviceIdentity) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[166] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *UserAgent) GetPhoneId() string { + if x != nil && x.PhoneId != nil { + return *x.PhoneId } - return mi.MessageOf(x) + return "" } -// Deprecated: Use ADVDeviceIdentity.ProtoReflect.Descriptor instead. -func (*ADVDeviceIdentity) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{166} +func (x *UserAgent) GetReleaseChannel() UserAgent_UserAgentReleaseChannel { + if x != nil && x.ReleaseChannel != nil { + return *x.ReleaseChannel + } + return UserAgent_RELEASE } -func (x *ADVDeviceIdentity) GetRawId() uint32 { - if x != nil && x.RawId != nil { - return *x.RawId +func (x *UserAgent) GetLocaleLanguageIso6391() string { + if x != nil && x.LocaleLanguageIso6391 != nil { + return *x.LocaleLanguageIso6391 } - return 0 + return "" } -func (x *ADVDeviceIdentity) GetTimestamp() uint64 { - if x != nil && x.Timestamp != nil { - return *x.Timestamp +func (x *UserAgent) GetLocaleCountryIso31661Alpha2() string { + if x != nil && x.LocaleCountryIso31661Alpha2 != nil { + return *x.LocaleCountryIso31661Alpha2 } - return 0 + return "" } -func (x *ADVDeviceIdentity) GetKeyIndex() uint32 { - if x != nil && x.KeyIndex != nil { - return *x.KeyIndex +func (x *UserAgent) GetDeviceBoard() string { + if x != nil && x.DeviceBoard != nil { + return *x.DeviceBoard } - return 0 + return "" } -type ADVSignedKeyIndexList struct { +type DNSSource struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"` - AccountSignature []byte `protobuf:"bytes,2,opt,name=accountSignature" json:"accountSignature,omitempty"` + DnsMethod *DNSSource_DNSSourceDNSResolutionMethod `protobuf:"varint,15,opt,name=dnsMethod,enum=proto.DNSSource_DNSSourceDNSResolutionMethod" json:"dnsMethod,omitempty"` + AppCached *bool `protobuf:"varint,16,opt,name=appCached" json:"appCached,omitempty"` } -func (x *ADVSignedKeyIndexList) Reset() { - *x = ADVSignedKeyIndexList{} +func (x *DNSSource) Reset() { + *x = DNSSource{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[167] + mi := &file_binary_proto_def_proto_msgTypes[177] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ADVSignedKeyIndexList) String() string { +func (x *DNSSource) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ADVSignedKeyIndexList) ProtoMessage() {} +func (*DNSSource) ProtoMessage() {} -func (x *ADVSignedKeyIndexList) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[167] +func (x *DNSSource) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[177] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17178,53 +17890,57 @@ func (x *ADVSignedKeyIndexList) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ADVSignedKeyIndexList.ProtoReflect.Descriptor instead. -func (*ADVSignedKeyIndexList) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{167} +// Deprecated: Use DNSSource.ProtoReflect.Descriptor instead. +func (*DNSSource) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{177} } -func (x *ADVSignedKeyIndexList) GetDetails() []byte { - if x != nil { - return x.Details +func (x *DNSSource) GetDnsMethod() DNSSource_DNSSourceDNSResolutionMethod { + if x != nil && x.DnsMethod != nil { + return *x.DnsMethod } - return nil + return DNSSource_SYSTEM } -func (x *ADVSignedKeyIndexList) GetAccountSignature() []byte { - if x != nil { - return x.AccountSignature +func (x *DNSSource) GetAppCached() bool { + if x != nil && x.AppCached != nil { + return *x.AppCached } - return nil + return false } -type ADVKeyIndexList struct { +type CompanionRegData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - RawId *uint32 `protobuf:"varint,1,opt,name=rawId" json:"rawId,omitempty"` - Timestamp *uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` - CurrentIndex *uint32 `protobuf:"varint,3,opt,name=currentIndex" json:"currentIndex,omitempty"` - ValidIndexes []uint32 `protobuf:"varint,4,rep,packed,name=validIndexes" json:"validIndexes,omitempty"` + ERegid []byte `protobuf:"bytes,1,opt,name=eRegid" json:"eRegid,omitempty"` + EKeytype []byte `protobuf:"bytes,2,opt,name=eKeytype" json:"eKeytype,omitempty"` + EIdent []byte `protobuf:"bytes,3,opt,name=eIdent" json:"eIdent,omitempty"` + ESkeyId []byte `protobuf:"bytes,4,opt,name=eSkeyId" json:"eSkeyId,omitempty"` + ESkeyVal []byte `protobuf:"bytes,5,opt,name=eSkeyVal" json:"eSkeyVal,omitempty"` + ESkeySig []byte `protobuf:"bytes,6,opt,name=eSkeySig" json:"eSkeySig,omitempty"` + BuildHash []byte `protobuf:"bytes,7,opt,name=buildHash" json:"buildHash,omitempty"` + CompanionProps []byte `protobuf:"bytes,8,opt,name=companionProps" json:"companionProps,omitempty"` } -func (x *ADVKeyIndexList) Reset() { - *x = ADVKeyIndexList{} +func (x *CompanionRegData) Reset() { + *x = CompanionRegData{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[168] + mi := &file_binary_proto_def_proto_msgTypes[178] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ADVKeyIndexList) String() string { +func (x *CompanionRegData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ADVKeyIndexList) ProtoMessage() {} +func (*CompanionRegData) ProtoMessage() {} -func (x *ADVKeyIndexList) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[168] +func (x *CompanionRegData) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[178] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17235,67 +17951,95 @@ func (x *ADVKeyIndexList) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ADVKeyIndexList.ProtoReflect.Descriptor instead. -func (*ADVKeyIndexList) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{168} +// Deprecated: Use CompanionRegData.ProtoReflect.Descriptor instead. +func (*CompanionRegData) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{178} } -func (x *ADVKeyIndexList) GetRawId() uint32 { - if x != nil && x.RawId != nil { - return *x.RawId +func (x *CompanionRegData) GetERegid() []byte { + if x != nil { + return x.ERegid } - return 0 + return nil } -func (x *ADVKeyIndexList) GetTimestamp() uint64 { - if x != nil && x.Timestamp != nil { - return *x.Timestamp +func (x *CompanionRegData) GetEKeytype() []byte { + if x != nil { + return x.EKeytype } - return 0 + return nil } -func (x *ADVKeyIndexList) GetCurrentIndex() uint32 { - if x != nil && x.CurrentIndex != nil { - return *x.CurrentIndex +func (x *CompanionRegData) GetEIdent() []byte { + if x != nil { + return x.EIdent } - return 0 + return nil } -func (x *ADVKeyIndexList) GetValidIndexes() []uint32 { +func (x *CompanionRegData) GetESkeyId() []byte { if x != nil { - return x.ValidIndexes + return x.ESkeyId } return nil } -type MessageKey struct { +func (x *CompanionRegData) GetESkeyVal() []byte { + if x != nil { + return x.ESkeyVal + } + return nil +} + +func (x *CompanionRegData) GetESkeySig() []byte { + if x != nil { + return x.ESkeySig + } + return nil +} + +func (x *CompanionRegData) GetBuildHash() []byte { + if x != nil { + return x.BuildHash + } + return nil +} + +func (x *CompanionRegData) GetCompanionProps() []byte { + if x != nil { + return x.CompanionProps + } + return nil +} + +type WebNotificationsInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - RemoteJid *string `protobuf:"bytes,1,opt,name=remoteJid" json:"remoteJid,omitempty"` - FromMe *bool `protobuf:"varint,2,opt,name=fromMe" json:"fromMe,omitempty"` - Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` - Participant *string `protobuf:"bytes,4,opt,name=participant" json:"participant,omitempty"` + Timestamp *uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` + UnreadChats *uint32 `protobuf:"varint,3,opt,name=unreadChats" json:"unreadChats,omitempty"` + NotifyMessageCount *uint32 `protobuf:"varint,4,opt,name=notifyMessageCount" json:"notifyMessageCount,omitempty"` + NotifyMessages []*WebMessageInfo `protobuf:"bytes,5,rep,name=notifyMessages" json:"notifyMessages,omitempty"` } -func (x *MessageKey) Reset() { - *x = MessageKey{} +func (x *WebNotificationsInfo) Reset() { + *x = WebNotificationsInfo{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[169] + mi := &file_binary_proto_def_proto_msgTypes[179] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MessageKey) String() string { +func (x *WebNotificationsInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MessageKey) ProtoMessage() {} +func (*WebNotificationsInfo) ProtoMessage() {} -func (x *MessageKey) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[169] +func (x *WebNotificationsInfo) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[179] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17306,68 +18050,100 @@ func (x *MessageKey) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MessageKey.ProtoReflect.Descriptor instead. -func (*MessageKey) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{169} +// Deprecated: Use WebNotificationsInfo.ProtoReflect.Descriptor instead. +func (*WebNotificationsInfo) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{179} } -func (x *MessageKey) GetRemoteJid() string { - if x != nil && x.RemoteJid != nil { - return *x.RemoteJid +func (x *WebNotificationsInfo) GetTimestamp() uint64 { + if x != nil && x.Timestamp != nil { + return *x.Timestamp } - return "" + return 0 } -func (x *MessageKey) GetFromMe() bool { - if x != nil && x.FromMe != nil { - return *x.FromMe +func (x *WebNotificationsInfo) GetUnreadChats() uint32 { + if x != nil && x.UnreadChats != nil { + return *x.UnreadChats } - return false + return 0 } -func (x *MessageKey) GetId() string { - if x != nil && x.Id != nil { - return *x.Id +func (x *WebNotificationsInfo) GetNotifyMessageCount() uint32 { + if x != nil && x.NotifyMessageCount != nil { + return *x.NotifyMessageCount } - return "" + return 0 } -func (x *MessageKey) GetParticipant() string { - if x != nil && x.Participant != nil { - return *x.Participant +func (x *WebNotificationsInfo) GetNotifyMessages() []*WebMessageInfo { + if x != nil { + return x.NotifyMessages } - return "" + return nil } -type Reaction struct { +type WebMessageInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` - Text *string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` - GroupingKey *string `protobuf:"bytes,3,opt,name=groupingKey" json:"groupingKey,omitempty"` - SenderTimestampMs *int64 `protobuf:"varint,4,opt,name=senderTimestampMs" json:"senderTimestampMs,omitempty"` - Unread *bool `protobuf:"varint,5,opt,name=unread" json:"unread,omitempty"` + Key *MessageKey `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` + Message *Message `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` + MessageTimestamp *uint64 `protobuf:"varint,3,opt,name=messageTimestamp" json:"messageTimestamp,omitempty"` + Status *WebMessageInfo_WebMessageInfoStatus `protobuf:"varint,4,opt,name=status,enum=proto.WebMessageInfo_WebMessageInfoStatus" json:"status,omitempty"` + Participant *string `protobuf:"bytes,5,opt,name=participant" json:"participant,omitempty"` + MessageC2STimestamp *uint64 `protobuf:"varint,6,opt,name=messageC2STimestamp" json:"messageC2STimestamp,omitempty"` + Ignore *bool `protobuf:"varint,16,opt,name=ignore" json:"ignore,omitempty"` + Starred *bool `protobuf:"varint,17,opt,name=starred" json:"starred,omitempty"` + Broadcast *bool `protobuf:"varint,18,opt,name=broadcast" json:"broadcast,omitempty"` + PushName *string `protobuf:"bytes,19,opt,name=pushName" json:"pushName,omitempty"` + MediaCiphertextSha256 []byte `protobuf:"bytes,20,opt,name=mediaCiphertextSha256" json:"mediaCiphertextSha256,omitempty"` + Multicast *bool `protobuf:"varint,21,opt,name=multicast" json:"multicast,omitempty"` + UrlText *bool `protobuf:"varint,22,opt,name=urlText" json:"urlText,omitempty"` + UrlNumber *bool `protobuf:"varint,23,opt,name=urlNumber" json:"urlNumber,omitempty"` + MessageStubType *WebMessageInfo_WebMessageInfoStubType `protobuf:"varint,24,opt,name=messageStubType,enum=proto.WebMessageInfo_WebMessageInfoStubType" json:"messageStubType,omitempty"` + ClearMedia *bool `protobuf:"varint,25,opt,name=clearMedia" json:"clearMedia,omitempty"` + MessageStubParameters []string `protobuf:"bytes,26,rep,name=messageStubParameters" json:"messageStubParameters,omitempty"` + Duration *uint32 `protobuf:"varint,27,opt,name=duration" json:"duration,omitempty"` + Labels []string `protobuf:"bytes,28,rep,name=labels" json:"labels,omitempty"` + PaymentInfo *PaymentInfo `protobuf:"bytes,29,opt,name=paymentInfo" json:"paymentInfo,omitempty"` + FinalLiveLocation *LiveLocationMessage `protobuf:"bytes,30,opt,name=finalLiveLocation" json:"finalLiveLocation,omitempty"` + QuotedPaymentInfo *PaymentInfo `protobuf:"bytes,31,opt,name=quotedPaymentInfo" json:"quotedPaymentInfo,omitempty"` + EphemeralStartTimestamp *uint64 `protobuf:"varint,32,opt,name=ephemeralStartTimestamp" json:"ephemeralStartTimestamp,omitempty"` + EphemeralDuration *uint32 `protobuf:"varint,33,opt,name=ephemeralDuration" json:"ephemeralDuration,omitempty"` + EphemeralOffToOn *bool `protobuf:"varint,34,opt,name=ephemeralOffToOn" json:"ephemeralOffToOn,omitempty"` + EphemeralOutOfSync *bool `protobuf:"varint,35,opt,name=ephemeralOutOfSync" json:"ephemeralOutOfSync,omitempty"` + BizPrivacyStatus *WebMessageInfo_WebMessageInfoBizPrivacyStatus `protobuf:"varint,36,opt,name=bizPrivacyStatus,enum=proto.WebMessageInfo_WebMessageInfoBizPrivacyStatus" json:"bizPrivacyStatus,omitempty"` + VerifiedBizName *string `protobuf:"bytes,37,opt,name=verifiedBizName" json:"verifiedBizName,omitempty"` + MediaData *MediaData `protobuf:"bytes,38,opt,name=mediaData" json:"mediaData,omitempty"` + PhotoChange *PhotoChange `protobuf:"bytes,39,opt,name=photoChange" json:"photoChange,omitempty"` + UserReceipt []*UserReceipt `protobuf:"bytes,40,rep,name=userReceipt" json:"userReceipt,omitempty"` + Reactions []*Reaction `protobuf:"bytes,41,rep,name=reactions" json:"reactions,omitempty"` + QuotedStickerData *MediaData `protobuf:"bytes,42,opt,name=quotedStickerData" json:"quotedStickerData,omitempty"` + FutureproofData []byte `protobuf:"bytes,43,opt,name=futureproofData" json:"futureproofData,omitempty"` + StatusPsa *StatusPSA `protobuf:"bytes,44,opt,name=statusPsa" json:"statusPsa,omitempty"` + PollUpdates []*PollUpdate `protobuf:"bytes,45,rep,name=pollUpdates" json:"pollUpdates,omitempty"` + PollAdditionalMetadata *PollAdditionalMetadata `protobuf:"bytes,46,opt,name=pollAdditionalMetadata" json:"pollAdditionalMetadata,omitempty"` } -func (x *Reaction) Reset() { - *x = Reaction{} +func (x *WebMessageInfo) Reset() { + *x = WebMessageInfo{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[170] + mi := &file_binary_proto_def_proto_msgTypes[180] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Reaction) String() string { +func (x *WebMessageInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Reaction) ProtoMessage() {} +func (*WebMessageInfo) ProtoMessage() {} -func (x *Reaction) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[170] +func (x *WebMessageInfo) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[180] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17378,296 +18154,268 @@ func (x *Reaction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Reaction.ProtoReflect.Descriptor instead. -func (*Reaction) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{170} +// Deprecated: Use WebMessageInfo.ProtoReflect.Descriptor instead. +func (*WebMessageInfo) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{180} } -func (x *Reaction) GetKey() *MessageKey { +func (x *WebMessageInfo) GetKey() *MessageKey { if x != nil { return x.Key } return nil } -func (x *Reaction) GetText() string { - if x != nil && x.Text != nil { - return *x.Text +func (x *WebMessageInfo) GetMessage() *Message { + if x != nil { + return x.Message } - return "" + return nil } -func (x *Reaction) GetGroupingKey() string { - if x != nil && x.GroupingKey != nil { - return *x.GroupingKey +func (x *WebMessageInfo) GetMessageTimestamp() uint64 { + if x != nil && x.MessageTimestamp != nil { + return *x.MessageTimestamp + } + return 0 +} + +func (x *WebMessageInfo) GetStatus() WebMessageInfo_WebMessageInfoStatus { + if x != nil && x.Status != nil { + return *x.Status + } + return WebMessageInfo_ERROR +} + +func (x *WebMessageInfo) GetParticipant() string { + if x != nil && x.Participant != nil { + return *x.Participant } return "" } -func (x *Reaction) GetSenderTimestampMs() int64 { - if x != nil && x.SenderTimestampMs != nil { - return *x.SenderTimestampMs +func (x *WebMessageInfo) GetMessageC2STimestamp() uint64 { + if x != nil && x.MessageC2STimestamp != nil { + return *x.MessageC2STimestamp } return 0 } -func (x *Reaction) GetUnread() bool { - if x != nil && x.Unread != nil { - return *x.Unread +func (x *WebMessageInfo) GetIgnore() bool { + if x != nil && x.Ignore != nil { + return *x.Ignore } return false } -type UserReceipt struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *WebMessageInfo) GetStarred() bool { + if x != nil && x.Starred != nil { + return *x.Starred + } + return false +} - UserJid *string `protobuf:"bytes,1,req,name=userJid" json:"userJid,omitempty"` - ReceiptTimestamp *int64 `protobuf:"varint,2,opt,name=receiptTimestamp" json:"receiptTimestamp,omitempty"` - ReadTimestamp *int64 `protobuf:"varint,3,opt,name=readTimestamp" json:"readTimestamp,omitempty"` - PlayedTimestamp *int64 `protobuf:"varint,4,opt,name=playedTimestamp" json:"playedTimestamp,omitempty"` - PendingDeviceJid []string `protobuf:"bytes,5,rep,name=pendingDeviceJid" json:"pendingDeviceJid,omitempty"` - DeliveredDeviceJid []string `protobuf:"bytes,6,rep,name=deliveredDeviceJid" json:"deliveredDeviceJid,omitempty"` +func (x *WebMessageInfo) GetBroadcast() bool { + if x != nil && x.Broadcast != nil { + return *x.Broadcast + } + return false } -func (x *UserReceipt) Reset() { - *x = UserReceipt{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[171] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *WebMessageInfo) GetPushName() string { + if x != nil && x.PushName != nil { + return *x.PushName } + return "" } -func (x *UserReceipt) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *WebMessageInfo) GetMediaCiphertextSha256() []byte { + if x != nil { + return x.MediaCiphertextSha256 + } + return nil } -func (*UserReceipt) ProtoMessage() {} +func (x *WebMessageInfo) GetMulticast() bool { + if x != nil && x.Multicast != nil { + return *x.Multicast + } + return false +} -func (x *UserReceipt) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[171] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *WebMessageInfo) GetUrlText() bool { + if x != nil && x.UrlText != nil { + return *x.UrlText } - return mi.MessageOf(x) + return false } -// Deprecated: Use UserReceipt.ProtoReflect.Descriptor instead. -func (*UserReceipt) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{171} +func (x *WebMessageInfo) GetUrlNumber() bool { + if x != nil && x.UrlNumber != nil { + return *x.UrlNumber + } + return false } -func (x *UserReceipt) GetUserJid() string { - if x != nil && x.UserJid != nil { - return *x.UserJid +func (x *WebMessageInfo) GetMessageStubType() WebMessageInfo_WebMessageInfoStubType { + if x != nil && x.MessageStubType != nil { + return *x.MessageStubType } - return "" + return WebMessageInfo_UNKNOWN } -func (x *UserReceipt) GetReceiptTimestamp() int64 { - if x != nil && x.ReceiptTimestamp != nil { - return *x.ReceiptTimestamp +func (x *WebMessageInfo) GetClearMedia() bool { + if x != nil && x.ClearMedia != nil { + return *x.ClearMedia } - return 0 + return false } -func (x *UserReceipt) GetReadTimestamp() int64 { - if x != nil && x.ReadTimestamp != nil { - return *x.ReadTimestamp +func (x *WebMessageInfo) GetMessageStubParameters() []string { + if x != nil { + return x.MessageStubParameters } - return 0 + return nil } -func (x *UserReceipt) GetPlayedTimestamp() int64 { - if x != nil && x.PlayedTimestamp != nil { - return *x.PlayedTimestamp +func (x *WebMessageInfo) GetDuration() uint32 { + if x != nil && x.Duration != nil { + return *x.Duration } return 0 } -func (x *UserReceipt) GetPendingDeviceJid() []string { +func (x *WebMessageInfo) GetLabels() []string { if x != nil { - return x.PendingDeviceJid + return x.Labels } return nil } -func (x *UserReceipt) GetDeliveredDeviceJid() []string { +func (x *WebMessageInfo) GetPaymentInfo() *PaymentInfo { if x != nil { - return x.DeliveredDeviceJid + return x.PaymentInfo } return nil } -type StatusPSA struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CampaignId *string `protobuf:"bytes,44,req,name=campaignId" json:"campaignId,omitempty"` - CampaignExpirationTimestamp *uint64 `protobuf:"varint,45,opt,name=campaignExpirationTimestamp" json:"campaignExpirationTimestamp,omitempty"` -} - -func (x *StatusPSA) Reset() { - *x = StatusPSA{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[172] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *WebMessageInfo) GetFinalLiveLocation() *LiveLocationMessage { + if x != nil { + return x.FinalLiveLocation } + return nil } -func (x *StatusPSA) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatusPSA) ProtoMessage() {} - -func (x *StatusPSA) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[172] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *WebMessageInfo) GetQuotedPaymentInfo() *PaymentInfo { + if x != nil { + return x.QuotedPaymentInfo } - return mi.MessageOf(x) -} - -// Deprecated: Use StatusPSA.ProtoReflect.Descriptor instead. -func (*StatusPSA) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{172} + return nil } -func (x *StatusPSA) GetCampaignId() string { - if x != nil && x.CampaignId != nil { - return *x.CampaignId +func (x *WebMessageInfo) GetEphemeralStartTimestamp() uint64 { + if x != nil && x.EphemeralStartTimestamp != nil { + return *x.EphemeralStartTimestamp } - return "" + return 0 } -func (x *StatusPSA) GetCampaignExpirationTimestamp() uint64 { - if x != nil && x.CampaignExpirationTimestamp != nil { - return *x.CampaignExpirationTimestamp +func (x *WebMessageInfo) GetEphemeralDuration() uint32 { + if x != nil && x.EphemeralDuration != nil { + return *x.EphemeralDuration } return 0 } -type PhotoChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OldPhoto []byte `protobuf:"bytes,1,opt,name=oldPhoto" json:"oldPhoto,omitempty"` - NewPhoto []byte `protobuf:"bytes,2,opt,name=newPhoto" json:"newPhoto,omitempty"` - NewPhotoId *uint32 `protobuf:"varint,3,opt,name=newPhotoId" json:"newPhotoId,omitempty"` -} - -func (x *PhotoChange) Reset() { - *x = PhotoChange{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[173] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *WebMessageInfo) GetEphemeralOffToOn() bool { + if x != nil && x.EphemeralOffToOn != nil { + return *x.EphemeralOffToOn } + return false } -func (x *PhotoChange) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *WebMessageInfo) GetEphemeralOutOfSync() bool { + if x != nil && x.EphemeralOutOfSync != nil { + return *x.EphemeralOutOfSync + } + return false } -func (*PhotoChange) ProtoMessage() {} - -func (x *PhotoChange) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[173] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *WebMessageInfo) GetBizPrivacyStatus() WebMessageInfo_WebMessageInfoBizPrivacyStatus { + if x != nil && x.BizPrivacyStatus != nil { + return *x.BizPrivacyStatus } - return mi.MessageOf(x) + return WebMessageInfo_E2EE } -// Deprecated: Use PhotoChange.ProtoReflect.Descriptor instead. -func (*PhotoChange) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{173} +func (x *WebMessageInfo) GetVerifiedBizName() string { + if x != nil && x.VerifiedBizName != nil { + return *x.VerifiedBizName + } + return "" } -func (x *PhotoChange) GetOldPhoto() []byte { +func (x *WebMessageInfo) GetMediaData() *MediaData { if x != nil { - return x.OldPhoto + return x.MediaData } return nil } -func (x *PhotoChange) GetNewPhoto() []byte { +func (x *WebMessageInfo) GetPhotoChange() *PhotoChange { if x != nil { - return x.NewPhoto + return x.PhotoChange } return nil } -func (x *PhotoChange) GetNewPhotoId() uint32 { - if x != nil && x.NewPhotoId != nil { - return *x.NewPhotoId +func (x *WebMessageInfo) GetUserReceipt() []*UserReceipt { + if x != nil { + return x.UserReceipt } - return 0 + return nil } -type MediaData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LocalPath *string `protobuf:"bytes,1,opt,name=localPath" json:"localPath,omitempty"` +func (x *WebMessageInfo) GetReactions() []*Reaction { + if x != nil { + return x.Reactions + } + return nil } -func (x *MediaData) Reset() { - *x = MediaData{} - if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[174] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *WebMessageInfo) GetQuotedStickerData() *MediaData { + if x != nil { + return x.QuotedStickerData } + return nil } -func (x *MediaData) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *WebMessageInfo) GetFutureproofData() []byte { + if x != nil { + return x.FutureproofData + } + return nil } -func (*MediaData) ProtoMessage() {} - -func (x *MediaData) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[174] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *WebMessageInfo) GetStatusPsa() *StatusPSA { + if x != nil { + return x.StatusPsa } - return mi.MessageOf(x) + return nil } -// Deprecated: Use MediaData.ProtoReflect.Descriptor instead. -func (*MediaData) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{174} +func (x *WebMessageInfo) GetPollUpdates() []*PollUpdate { + if x != nil { + return x.PollUpdates + } + return nil } -func (x *MediaData) GetLocalPath() string { - if x != nil && x.LocalPath != nil { - return *x.LocalPath +func (x *WebMessageInfo) GetPollAdditionalMetadata() *PollAdditionalMetadata { + if x != nil { + return x.PollAdditionalMetadata } - return "" + return nil } type WebFeatures struct { @@ -17725,7 +18473,7 @@ type WebFeatures struct { func (x *WebFeatures) Reset() { *x = WebFeatures{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[175] + mi := &file_binary_proto_def_proto_msgTypes[181] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -17738,7 +18486,7 @@ func (x *WebFeatures) String() string { func (*WebFeatures) ProtoMessage() {} func (x *WebFeatures) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[175] + mi := &file_binary_proto_def_proto_msgTypes[181] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17751,7 +18499,7 @@ func (x *WebFeatures) ProtoReflect() protoreflect.Message { // Deprecated: Use WebFeatures.ProtoReflect.Descriptor instead. func (*WebFeatures) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{175} + return file_binary_proto_def_proto_rawDescGZIP(), []int{181} } func (x *WebFeatures) GetLabelsDisplay() WebFeatures_WebFeaturesFlag { @@ -18069,34 +18817,36 @@ func (x *WebFeatures) GetNoDeleteMessageTimeLimit() WebFeatures_WebFeaturesFlag return WebFeatures_NOT_STARTED } -type NotificationMessageInfo struct { +type UserReceipt struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` - Message *Message `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` - MessageTimestamp *uint64 `protobuf:"varint,3,opt,name=messageTimestamp" json:"messageTimestamp,omitempty"` - Participant *string `protobuf:"bytes,4,opt,name=participant" json:"participant,omitempty"` + UserJid *string `protobuf:"bytes,1,req,name=userJid" json:"userJid,omitempty"` + ReceiptTimestamp *int64 `protobuf:"varint,2,opt,name=receiptTimestamp" json:"receiptTimestamp,omitempty"` + ReadTimestamp *int64 `protobuf:"varint,3,opt,name=readTimestamp" json:"readTimestamp,omitempty"` + PlayedTimestamp *int64 `protobuf:"varint,4,opt,name=playedTimestamp" json:"playedTimestamp,omitempty"` + PendingDeviceJid []string `protobuf:"bytes,5,rep,name=pendingDeviceJid" json:"pendingDeviceJid,omitempty"` + DeliveredDeviceJid []string `protobuf:"bytes,6,rep,name=deliveredDeviceJid" json:"deliveredDeviceJid,omitempty"` } -func (x *NotificationMessageInfo) Reset() { - *x = NotificationMessageInfo{} +func (x *UserReceipt) Reset() { + *x = UserReceipt{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[176] + mi := &file_binary_proto_def_proto_msgTypes[182] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *NotificationMessageInfo) String() string { +func (x *UserReceipt) String() string { return protoimpl.X.MessageStringOf(x) } -func (*NotificationMessageInfo) ProtoMessage() {} +func (*UserReceipt) ProtoMessage() {} -func (x *NotificationMessageInfo) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[176] +func (x *UserReceipt) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[182] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18107,67 +18857,137 @@ func (x *NotificationMessageInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NotificationMessageInfo.ProtoReflect.Descriptor instead. -func (*NotificationMessageInfo) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{176} +// Deprecated: Use UserReceipt.ProtoReflect.Descriptor instead. +func (*UserReceipt) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{182} } -func (x *NotificationMessageInfo) GetKey() *MessageKey { +func (x *UserReceipt) GetUserJid() string { + if x != nil && x.UserJid != nil { + return *x.UserJid + } + return "" +} + +func (x *UserReceipt) GetReceiptTimestamp() int64 { + if x != nil && x.ReceiptTimestamp != nil { + return *x.ReceiptTimestamp + } + return 0 +} + +func (x *UserReceipt) GetReadTimestamp() int64 { + if x != nil && x.ReadTimestamp != nil { + return *x.ReadTimestamp + } + return 0 +} + +func (x *UserReceipt) GetPlayedTimestamp() int64 { + if x != nil && x.PlayedTimestamp != nil { + return *x.PlayedTimestamp + } + return 0 +} + +func (x *UserReceipt) GetPendingDeviceJid() []string { if x != nil { - return x.Key + return x.PendingDeviceJid } return nil } -func (x *NotificationMessageInfo) GetMessage() *Message { +func (x *UserReceipt) GetDeliveredDeviceJid() []string { if x != nil { - return x.Message + return x.DeliveredDeviceJid } return nil } -func (x *NotificationMessageInfo) GetMessageTimestamp() uint64 { - if x != nil && x.MessageTimestamp != nil { - return *x.MessageTimestamp +type StatusPSA struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CampaignId *string `protobuf:"bytes,44,req,name=campaignId" json:"campaignId,omitempty"` + CampaignExpirationTimestamp *uint64 `protobuf:"varint,45,opt,name=campaignExpirationTimestamp" json:"campaignExpirationTimestamp,omitempty"` +} + +func (x *StatusPSA) Reset() { + *x = StatusPSA{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[183] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (x *NotificationMessageInfo) GetParticipant() string { - if x != nil && x.Participant != nil { - return *x.Participant +func (x *StatusPSA) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatusPSA) ProtoMessage() {} + +func (x *StatusPSA) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[183] + 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 StatusPSA.ProtoReflect.Descriptor instead. +func (*StatusPSA) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{183} +} + +func (x *StatusPSA) GetCampaignId() string { + if x != nil && x.CampaignId != nil { + return *x.CampaignId } return "" } -type WebNotificationsInfo struct { +func (x *StatusPSA) GetCampaignExpirationTimestamp() uint64 { + if x != nil && x.CampaignExpirationTimestamp != nil { + return *x.CampaignExpirationTimestamp + } + return 0 +} + +type Reaction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Timestamp *uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` - UnreadChats *uint32 `protobuf:"varint,3,opt,name=unreadChats" json:"unreadChats,omitempty"` - NotifyMessageCount *uint32 `protobuf:"varint,4,opt,name=notifyMessageCount" json:"notifyMessageCount,omitempty"` - NotifyMessages []*WebMessageInfo `protobuf:"bytes,5,rep,name=notifyMessages" json:"notifyMessages,omitempty"` + Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` + Text *string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` + GroupingKey *string `protobuf:"bytes,3,opt,name=groupingKey" json:"groupingKey,omitempty"` + SenderTimestampMs *int64 `protobuf:"varint,4,opt,name=senderTimestampMs" json:"senderTimestampMs,omitempty"` + Unread *bool `protobuf:"varint,5,opt,name=unread" json:"unread,omitempty"` } -func (x *WebNotificationsInfo) Reset() { - *x = WebNotificationsInfo{} +func (x *Reaction) Reset() { + *x = Reaction{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[177] + mi := &file_binary_proto_def_proto_msgTypes[184] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *WebNotificationsInfo) String() string { +func (x *Reaction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WebNotificationsInfo) ProtoMessage() {} +func (*Reaction) ProtoMessage() {} -func (x *WebNotificationsInfo) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[177] +func (x *Reaction) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[184] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18178,39 +18998,211 @@ func (x *WebNotificationsInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WebNotificationsInfo.ProtoReflect.Descriptor instead. -func (*WebNotificationsInfo) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{177} +// Deprecated: Use Reaction.ProtoReflect.Descriptor instead. +func (*Reaction) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{184} } -func (x *WebNotificationsInfo) GetTimestamp() uint64 { - if x != nil && x.Timestamp != nil { - return *x.Timestamp +func (x *Reaction) GetKey() *MessageKey { + if x != nil { + return x.Key } - return 0 + return nil } -func (x *WebNotificationsInfo) GetUnreadChats() uint32 { - if x != nil && x.UnreadChats != nil { - return *x.UnreadChats +func (x *Reaction) GetText() string { + if x != nil && x.Text != nil { + return *x.Text } - return 0 + return "" } -func (x *WebNotificationsInfo) GetNotifyMessageCount() uint32 { - if x != nil && x.NotifyMessageCount != nil { - return *x.NotifyMessageCount +func (x *Reaction) GetGroupingKey() string { + if x != nil && x.GroupingKey != nil { + return *x.GroupingKey + } + return "" +} + +func (x *Reaction) GetSenderTimestampMs() int64 { + if x != nil && x.SenderTimestampMs != nil { + return *x.SenderTimestampMs } return 0 } -func (x *WebNotificationsInfo) GetNotifyMessages() []*WebMessageInfo { +func (x *Reaction) GetUnread() bool { + if x != nil && x.Unread != nil { + return *x.Unread + } + return false +} + +type PollUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PollUpdateMessageKey *MessageKey `protobuf:"bytes,1,opt,name=pollUpdateMessageKey" json:"pollUpdateMessageKey,omitempty"` + PollUpdateMessage *PollUpdateMessageContent `protobuf:"bytes,2,opt,name=pollUpdateMessage" json:"pollUpdateMessage,omitempty"` +} + +func (x *PollUpdate) Reset() { + *x = PollUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[185] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PollUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollUpdate) ProtoMessage() {} + +func (x *PollUpdate) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[185] + 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 PollUpdate.ProtoReflect.Descriptor instead. +func (*PollUpdate) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{185} +} + +func (x *PollUpdate) GetPollUpdateMessageKey() *MessageKey { if x != nil { - return x.NotifyMessages + return x.PollUpdateMessageKey + } + return nil +} + +func (x *PollUpdate) GetPollUpdateMessage() *PollUpdateMessageContent { + if x != nil { + return x.PollUpdateMessage } return nil } +type PollAdditionalMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PollInvalidated *bool `protobuf:"varint,1,opt,name=pollInvalidated" json:"pollInvalidated,omitempty"` +} + +func (x *PollAdditionalMetadata) Reset() { + *x = PollAdditionalMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[186] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PollAdditionalMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollAdditionalMetadata) ProtoMessage() {} + +func (x *PollAdditionalMetadata) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[186] + 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 PollAdditionalMetadata.ProtoReflect.Descriptor instead. +func (*PollAdditionalMetadata) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{186} +} + +func (x *PollAdditionalMetadata) GetPollInvalidated() bool { + if x != nil && x.PollInvalidated != nil { + return *x.PollInvalidated + } + return false +} + +type PhotoChange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OldPhoto []byte `protobuf:"bytes,1,opt,name=oldPhoto" json:"oldPhoto,omitempty"` + NewPhoto []byte `protobuf:"bytes,2,opt,name=newPhoto" json:"newPhoto,omitempty"` + NewPhotoId *uint32 `protobuf:"varint,3,opt,name=newPhotoId" json:"newPhotoId,omitempty"` +} + +func (x *PhotoChange) Reset() { + *x = PhotoChange{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[187] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PhotoChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PhotoChange) ProtoMessage() {} + +func (x *PhotoChange) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[187] + 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 PhotoChange.ProtoReflect.Descriptor instead. +func (*PhotoChange) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{187} +} + +func (x *PhotoChange) GetOldPhoto() []byte { + if x != nil { + return x.OldPhoto + } + return nil +} + +func (x *PhotoChange) GetNewPhoto() []byte { + if x != nil { + return x.NewPhoto + } + return nil +} + +func (x *PhotoChange) GetNewPhotoId() uint32 { + if x != nil && x.NewPhotoId != nil { + return *x.NewPhotoId + } + return 0 +} + type PaymentInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -18234,7 +19226,7 @@ type PaymentInfo struct { func (x *PaymentInfo) Reset() { *x = PaymentInfo{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[178] + mi := &file_binary_proto_def_proto_msgTypes[188] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -18247,7 +19239,7 @@ func (x *PaymentInfo) String() string { func (*PaymentInfo) ProtoMessage() {} func (x *PaymentInfo) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[178] + mi := &file_binary_proto_def_proto_msgTypes[188] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18260,7 +19252,7 @@ func (x *PaymentInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use PaymentInfo.ProtoReflect.Descriptor instead. func (*PaymentInfo) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{178} + return file_binary_proto_def_proto_rawDescGZIP(), []int{188} } func (x *PaymentInfo) GetCurrencyDeprecated() PaymentInfo_PaymentInfoCurrency { @@ -18354,65 +19346,34 @@ func (x *PaymentInfo) GetExchangeAmount() *Money { return nil } -type WebMessageInfo struct { +type NotificationMessageInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key *MessageKey `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` - Message *Message `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` - MessageTimestamp *uint64 `protobuf:"varint,3,opt,name=messageTimestamp" json:"messageTimestamp,omitempty"` - Status *WebMessageInfo_WebMessageInfoStatus `protobuf:"varint,4,opt,name=status,enum=proto.WebMessageInfo_WebMessageInfoStatus" json:"status,omitempty"` - Participant *string `protobuf:"bytes,5,opt,name=participant" json:"participant,omitempty"` - MessageC2STimestamp *uint64 `protobuf:"varint,6,opt,name=messageC2STimestamp" json:"messageC2STimestamp,omitempty"` - Ignore *bool `protobuf:"varint,16,opt,name=ignore" json:"ignore,omitempty"` - Starred *bool `protobuf:"varint,17,opt,name=starred" json:"starred,omitempty"` - Broadcast *bool `protobuf:"varint,18,opt,name=broadcast" json:"broadcast,omitempty"` - PushName *string `protobuf:"bytes,19,opt,name=pushName" json:"pushName,omitempty"` - MediaCiphertextSha256 []byte `protobuf:"bytes,20,opt,name=mediaCiphertextSha256" json:"mediaCiphertextSha256,omitempty"` - Multicast *bool `protobuf:"varint,21,opt,name=multicast" json:"multicast,omitempty"` - UrlText *bool `protobuf:"varint,22,opt,name=urlText" json:"urlText,omitempty"` - UrlNumber *bool `protobuf:"varint,23,opt,name=urlNumber" json:"urlNumber,omitempty"` - MessageStubType *WebMessageInfo_WebMessageInfoStubType `protobuf:"varint,24,opt,name=messageStubType,enum=proto.WebMessageInfo_WebMessageInfoStubType" json:"messageStubType,omitempty"` - ClearMedia *bool `protobuf:"varint,25,opt,name=clearMedia" json:"clearMedia,omitempty"` - MessageStubParameters []string `protobuf:"bytes,26,rep,name=messageStubParameters" json:"messageStubParameters,omitempty"` - Duration *uint32 `protobuf:"varint,27,opt,name=duration" json:"duration,omitempty"` - Labels []string `protobuf:"bytes,28,rep,name=labels" json:"labels,omitempty"` - PaymentInfo *PaymentInfo `protobuf:"bytes,29,opt,name=paymentInfo" json:"paymentInfo,omitempty"` - FinalLiveLocation *LiveLocationMessage `protobuf:"bytes,30,opt,name=finalLiveLocation" json:"finalLiveLocation,omitempty"` - QuotedPaymentInfo *PaymentInfo `protobuf:"bytes,31,opt,name=quotedPaymentInfo" json:"quotedPaymentInfo,omitempty"` - EphemeralStartTimestamp *uint64 `protobuf:"varint,32,opt,name=ephemeralStartTimestamp" json:"ephemeralStartTimestamp,omitempty"` - EphemeralDuration *uint32 `protobuf:"varint,33,opt,name=ephemeralDuration" json:"ephemeralDuration,omitempty"` - EphemeralOffToOn *bool `protobuf:"varint,34,opt,name=ephemeralOffToOn" json:"ephemeralOffToOn,omitempty"` - EphemeralOutOfSync *bool `protobuf:"varint,35,opt,name=ephemeralOutOfSync" json:"ephemeralOutOfSync,omitempty"` - BizPrivacyStatus *WebMessageInfo_WebMessageInfoBizPrivacyStatus `protobuf:"varint,36,opt,name=bizPrivacyStatus,enum=proto.WebMessageInfo_WebMessageInfoBizPrivacyStatus" json:"bizPrivacyStatus,omitempty"` - VerifiedBizName *string `protobuf:"bytes,37,opt,name=verifiedBizName" json:"verifiedBizName,omitempty"` - MediaData *MediaData `protobuf:"bytes,38,opt,name=mediaData" json:"mediaData,omitempty"` - PhotoChange *PhotoChange `protobuf:"bytes,39,opt,name=photoChange" json:"photoChange,omitempty"` - UserReceipt []*UserReceipt `protobuf:"bytes,40,rep,name=userReceipt" json:"userReceipt,omitempty"` - Reactions []*Reaction `protobuf:"bytes,41,rep,name=reactions" json:"reactions,omitempty"` - QuotedStickerData *MediaData `protobuf:"bytes,42,opt,name=quotedStickerData" json:"quotedStickerData,omitempty"` - FutureproofData []byte `protobuf:"bytes,43,opt,name=futureproofData" json:"futureproofData,omitempty"` - StatusPsa *StatusPSA `protobuf:"bytes,44,opt,name=statusPsa" json:"statusPsa,omitempty"` + Key *MessageKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` + Message *Message `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` + MessageTimestamp *uint64 `protobuf:"varint,3,opt,name=messageTimestamp" json:"messageTimestamp,omitempty"` + Participant *string `protobuf:"bytes,4,opt,name=participant" json:"participant,omitempty"` } -func (x *WebMessageInfo) Reset() { - *x = WebMessageInfo{} +func (x *NotificationMessageInfo) Reset() { + *x = NotificationMessageInfo{} if protoimpl.UnsafeEnabled { - mi := &file_binary_proto_def_proto_msgTypes[179] + mi := &file_binary_proto_def_proto_msgTypes[189] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *WebMessageInfo) String() string { +func (x *NotificationMessageInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WebMessageInfo) ProtoMessage() {} +func (*NotificationMessageInfo) ProtoMessage() {} -func (x *WebMessageInfo) ProtoReflect() protoreflect.Message { - mi := &file_binary_proto_def_proto_msgTypes[179] +func (x *NotificationMessageInfo) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[189] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18423,256 +19384,86 @@ func (x *WebMessageInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WebMessageInfo.ProtoReflect.Descriptor instead. -func (*WebMessageInfo) Descriptor() ([]byte, []int) { - return file_binary_proto_def_proto_rawDescGZIP(), []int{179} +// Deprecated: Use NotificationMessageInfo.ProtoReflect.Descriptor instead. +func (*NotificationMessageInfo) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{189} } -func (x *WebMessageInfo) GetKey() *MessageKey { +func (x *NotificationMessageInfo) GetKey() *MessageKey { if x != nil { return x.Key } return nil } -func (x *WebMessageInfo) GetMessage() *Message { +func (x *NotificationMessageInfo) GetMessage() *Message { if x != nil { return x.Message } return nil } -func (x *WebMessageInfo) GetMessageTimestamp() uint64 { +func (x *NotificationMessageInfo) GetMessageTimestamp() uint64 { if x != nil && x.MessageTimestamp != nil { return *x.MessageTimestamp } return 0 } -func (x *WebMessageInfo) GetStatus() WebMessageInfo_WebMessageInfoStatus { - if x != nil && x.Status != nil { - return *x.Status - } - return WebMessageInfo_ERROR -} - -func (x *WebMessageInfo) GetParticipant() string { +func (x *NotificationMessageInfo) GetParticipant() string { if x != nil && x.Participant != nil { return *x.Participant } return "" } -func (x *WebMessageInfo) GetMessageC2STimestamp() uint64 { - if x != nil && x.MessageC2STimestamp != nil { - return *x.MessageC2STimestamp - } - return 0 -} - -func (x *WebMessageInfo) GetIgnore() bool { - if x != nil && x.Ignore != nil { - return *x.Ignore - } - return false -} - -func (x *WebMessageInfo) GetStarred() bool { - if x != nil && x.Starred != nil { - return *x.Starred - } - return false -} - -func (x *WebMessageInfo) GetBroadcast() bool { - if x != nil && x.Broadcast != nil { - return *x.Broadcast - } - return false -} - -func (x *WebMessageInfo) GetPushName() string { - if x != nil && x.PushName != nil { - return *x.PushName - } - return "" -} - -func (x *WebMessageInfo) GetMediaCiphertextSha256() []byte { - if x != nil { - return x.MediaCiphertextSha256 - } - return nil -} - -func (x *WebMessageInfo) GetMulticast() bool { - if x != nil && x.Multicast != nil { - return *x.Multicast - } - return false -} - -func (x *WebMessageInfo) GetUrlText() bool { - if x != nil && x.UrlText != nil { - return *x.UrlText - } - return false -} - -func (x *WebMessageInfo) GetUrlNumber() bool { - if x != nil && x.UrlNumber != nil { - return *x.UrlNumber - } - return false -} - -func (x *WebMessageInfo) GetMessageStubType() WebMessageInfo_WebMessageInfoStubType { - if x != nil && x.MessageStubType != nil { - return *x.MessageStubType - } - return WebMessageInfo_UNKNOWN -} - -func (x *WebMessageInfo) GetClearMedia() bool { - if x != nil && x.ClearMedia != nil { - return *x.ClearMedia - } - return false -} - -func (x *WebMessageInfo) GetMessageStubParameters() []string { - if x != nil { - return x.MessageStubParameters - } - return nil -} - -func (x *WebMessageInfo) GetDuration() uint32 { - if x != nil && x.Duration != nil { - return *x.Duration - } - return 0 -} - -func (x *WebMessageInfo) GetLabels() []string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *WebMessageInfo) GetPaymentInfo() *PaymentInfo { - if x != nil { - return x.PaymentInfo - } - return nil -} - -func (x *WebMessageInfo) GetFinalLiveLocation() *LiveLocationMessage { - if x != nil { - return x.FinalLiveLocation - } - return nil -} +type MediaData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *WebMessageInfo) GetQuotedPaymentInfo() *PaymentInfo { - if x != nil { - return x.QuotedPaymentInfo - } - return nil + LocalPath *string `protobuf:"bytes,1,opt,name=localPath" json:"localPath,omitempty"` } -func (x *WebMessageInfo) GetEphemeralStartTimestamp() uint64 { - if x != nil && x.EphemeralStartTimestamp != nil { - return *x.EphemeralStartTimestamp +func (x *MediaData) Reset() { + *x = MediaData{} + if protoimpl.UnsafeEnabled { + mi := &file_binary_proto_def_proto_msgTypes[190] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (x *WebMessageInfo) GetEphemeralDuration() uint32 { - if x != nil && x.EphemeralDuration != nil { - return *x.EphemeralDuration - } - return 0 +func (x *MediaData) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *WebMessageInfo) GetEphemeralOffToOn() bool { - if x != nil && x.EphemeralOffToOn != nil { - return *x.EphemeralOffToOn - } - return false -} +func (*MediaData) ProtoMessage() {} -func (x *WebMessageInfo) GetEphemeralOutOfSync() bool { - if x != nil && x.EphemeralOutOfSync != nil { - return *x.EphemeralOutOfSync +func (x *MediaData) ProtoReflect() protoreflect.Message { + mi := &file_binary_proto_def_proto_msgTypes[190] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false + return mi.MessageOf(x) } -func (x *WebMessageInfo) GetBizPrivacyStatus() WebMessageInfo_WebMessageInfoBizPrivacyStatus { - if x != nil && x.BizPrivacyStatus != nil { - return *x.BizPrivacyStatus - } - return WebMessageInfo_E2EE +// Deprecated: Use MediaData.ProtoReflect.Descriptor instead. +func (*MediaData) Descriptor() ([]byte, []int) { + return file_binary_proto_def_proto_rawDescGZIP(), []int{190} } -func (x *WebMessageInfo) GetVerifiedBizName() string { - if x != nil && x.VerifiedBizName != nil { - return *x.VerifiedBizName +func (x *MediaData) GetLocalPath() string { + if x != nil && x.LocalPath != nil { + return *x.LocalPath } return "" } -func (x *WebMessageInfo) GetMediaData() *MediaData { - if x != nil { - return x.MediaData - } - return nil -} - -func (x *WebMessageInfo) GetPhotoChange() *PhotoChange { - if x != nil { - return x.PhotoChange - } - return nil -} - -func (x *WebMessageInfo) GetUserReceipt() []*UserReceipt { - if x != nil { - return x.UserReceipt - } - return nil -} - -func (x *WebMessageInfo) GetReactions() []*Reaction { - if x != nil { - return x.Reactions - } - return nil -} - -func (x *WebMessageInfo) GetQuotedStickerData() *MediaData { - if x != nil { - return x.QuotedStickerData - } - return nil -} - -func (x *WebMessageInfo) GetFutureproofData() []byte { - if x != nil { - return x.FutureproofData - } - return nil -} - -func (x *WebMessageInfo) GetStatusPsa() *StatusPSA { - if x != nil { - return x.StatusPsa - } - return nil -} - var File_binary_proto_def_proto protoreflect.FileDescriptor //go:embed def.pb.raw @@ -18691,584 +19482,611 @@ func file_binary_proto_def_proto_rawDescGZIP() []byte { } var file_binary_proto_def_proto_enumTypes = make([]protoimpl.EnumInfo, 50) -var file_binary_proto_def_proto_msgTypes = make([]protoimpl.MessageInfo, 180) +var file_binary_proto_def_proto_msgTypes = make([]protoimpl.MessageInfo, 191) var file_binary_proto_def_proto_goTypes = []interface{}{ (MediaVisibility)(0), // 0: proto.MediaVisibility - (UserAgent_UserAgentPlatform)(0), // 1: proto.UserAgent.UserAgentPlatform - (UserAgent_UserAgentReleaseChannel)(0), // 2: proto.UserAgent.UserAgentReleaseChannel - (WebInfo_WebInfoWebSubPlatform)(0), // 3: proto.WebInfo.WebInfoWebSubPlatform - (DNSSource_DNSSourceDNSResolutionMethod)(0), // 4: proto.DNSSource.DNSSourceDNSResolutionMethod - (ClientPayload_ClientPayloadConnectType)(0), // 5: proto.ClientPayload.ClientPayloadConnectType - (ClientPayload_ClientPayloadConnectReason)(0), // 6: proto.ClientPayload.ClientPayloadConnectReason - (ClientPayload_ClientPayloadProduct)(0), // 7: proto.ClientPayload.ClientPayloadProduct - (ClientPayload_ClientPayloadIOSAppExtension)(0), // 8: proto.ClientPayload.ClientPayloadIOSAppExtension - (BizIdentityInfo_BizIdentityInfoVerifiedLevelValue)(0), // 9: proto.BizIdentityInfo.BizIdentityInfoVerifiedLevelValue - (BizIdentityInfo_BizIdentityInfoHostStorageType)(0), // 10: proto.BizIdentityInfo.BizIdentityInfoHostStorageType - (BizIdentityInfo_BizIdentityInfoActualActorsType)(0), // 11: proto.BizIdentityInfo.BizIdentityInfoActualActorsType - (BizAccountLinkInfo_BizAccountLinkInfoHostStorageType)(0), // 12: proto.BizAccountLinkInfo.BizAccountLinkInfoHostStorageType - (BizAccountLinkInfo_BizAccountLinkInfoAccountType)(0), // 13: proto.BizAccountLinkInfo.BizAccountLinkInfoAccountType - (SyncdMutation_SyncdMutationSyncdOperation)(0), // 14: proto.SyncdMutation.SyncdMutationSyncdOperation - (MediaRetryNotification_MediaRetryNotificationResultType)(0), // 15: proto.MediaRetryNotification.MediaRetryNotificationResultType - (GroupParticipant_GroupParticipantRank)(0), // 16: proto.GroupParticipant.GroupParticipantRank - (Conversation_ConversationEndOfHistoryTransferType)(0), // 17: proto.Conversation.ConversationEndOfHistoryTransferType - (HistorySync_HistorySyncHistorySyncType)(0), // 18: proto.HistorySync.HistorySyncHistorySyncType - (AdReplyInfo_AdReplyInfoMediaType)(0), // 19: proto.AdReplyInfo.AdReplyInfoMediaType - (ExternalAdReplyInfo_ExternalAdReplyInfoMediaType)(0), // 20: proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType - (InvoiceMessage_InvoiceMessageAttachmentType)(0), // 21: proto.InvoiceMessage.InvoiceMessageAttachmentType - (ExtendedTextMessage_ExtendedTextMessageFontType)(0), // 22: proto.ExtendedTextMessage.ExtendedTextMessageFontType - (ExtendedTextMessage_ExtendedTextMessagePreviewType)(0), // 23: proto.ExtendedTextMessage.ExtendedTextMessagePreviewType - (ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType)(0), // 24: proto.ExtendedTextMessage.ExtendedTextMessageInviteLinkGroupType - (VideoMessage_VideoMessageAttribution)(0), // 25: proto.VideoMessage.VideoMessageAttribution - (ProtocolMessage_ProtocolMessageType)(0), // 26: proto.ProtocolMessage.ProtocolMessageType - (HistorySyncNotification_HistorySyncNotificationHistorySyncType)(0), // 27: proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType - (HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType)(0), // 28: proto.HSMDateTimeComponent.HSMDateTimeComponentDayOfWeekType - (HSMDateTimeComponent_HSMDateTimeComponentCalendarType)(0), // 29: proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType - (PaymentInviteMessage_PaymentInviteMessageServiceType)(0), // 30: proto.PaymentInviteMessage.PaymentInviteMessageServiceType - (OrderMessage_OrderMessageOrderStatus)(0), // 31: proto.OrderMessage.OrderMessageOrderStatus - (OrderMessage_OrderMessageOrderSurface)(0), // 32: proto.OrderMessage.OrderMessageOrderSurface - (ListMessage_ListMessageListType)(0), // 33: proto.ListMessage.ListMessageListType - (ListResponseMessage_ListResponseMessageListType)(0), // 34: proto.ListResponseMessage.ListResponseMessageListType - (ShopMessage_ShopMessageSurface)(0), // 35: proto.ShopMessage.ShopMessageSurface - (GroupInviteMessage_GroupInviteMessageGroupType)(0), // 36: proto.GroupInviteMessage.GroupInviteMessageGroupType - (Button_ButtonType)(0), // 37: proto.Button.ButtonType - (ButtonsMessage_ButtonsMessageHeaderType)(0), // 38: proto.ButtonsMessage.ButtonsMessageHeaderType - (ButtonsResponseMessage_ButtonsResponseMessageType)(0), // 39: proto.ButtonsResponseMessage.ButtonsResponseMessageType - (DisappearingMode_DisappearingModeInitiator)(0), // 40: proto.DisappearingMode.DisappearingModeInitiator - (PaymentBackground_PaymentBackgroundType)(0), // 41: proto.PaymentBackground.PaymentBackgroundType - (CompanionProps_CompanionPropsPlatformType)(0), // 42: proto.CompanionProps.CompanionPropsPlatformType - (WebFeatures_WebFeaturesFlag)(0), // 43: proto.WebFeatures.WebFeaturesFlag - (PaymentInfo_PaymentInfoCurrency)(0), // 44: proto.PaymentInfo.PaymentInfoCurrency - (PaymentInfo_PaymentInfoStatus)(0), // 45: proto.PaymentInfo.PaymentInfoStatus - (PaymentInfo_PaymentInfoTxnStatus)(0), // 46: proto.PaymentInfo.PaymentInfoTxnStatus - (WebMessageInfo_WebMessageInfoStatus)(0), // 47: proto.WebMessageInfo.WebMessageInfoStatus - (WebMessageInfo_WebMessageInfoStubType)(0), // 48: proto.WebMessageInfo.WebMessageInfoStubType - (WebMessageInfo_WebMessageInfoBizPrivacyStatus)(0), // 49: proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus - (*AppVersion)(nil), // 50: proto.AppVersion - (*UserAgent)(nil), // 51: proto.UserAgent - (*WebdPayload)(nil), // 52: proto.WebdPayload - (*WebInfo)(nil), // 53: proto.WebInfo - (*DNSSource)(nil), // 54: proto.DNSSource - (*CompanionRegData)(nil), // 55: proto.CompanionRegData - (*ClientPayload)(nil), // 56: proto.ClientPayload - (*NoiseCertificateDetails)(nil), // 57: proto.NoiseCertificateDetails - (*NoiseCertificate)(nil), // 58: proto.NoiseCertificate - (*ClientHello)(nil), // 59: proto.ClientHello - (*ServerHello)(nil), // 60: proto.ServerHello - (*ClientFinish)(nil), // 61: proto.ClientFinish - (*HandshakeMessage)(nil), // 62: proto.HandshakeMessage - (*BizIdentityInfo)(nil), // 63: proto.BizIdentityInfo - (*BizAccountLinkInfo)(nil), // 64: proto.BizAccountLinkInfo - (*BizAccountPayload)(nil), // 65: proto.BizAccountPayload - (*VerifiedNameDetails)(nil), // 66: proto.VerifiedNameDetails - (*VerifiedNameCertificate)(nil), // 67: proto.VerifiedNameCertificate - (*LocalizedName)(nil), // 68: proto.LocalizedName - (*SyncActionData)(nil), // 69: proto.SyncActionData - (*StarAction)(nil), // 70: proto.StarAction - (*ContactAction)(nil), // 71: proto.ContactAction - (*MuteAction)(nil), // 72: proto.MuteAction - (*PinAction)(nil), // 73: proto.PinAction - (*SecurityNotificationSetting)(nil), // 74: proto.SecurityNotificationSetting - (*PushNameSetting)(nil), // 75: proto.PushNameSetting - (*LocaleSetting)(nil), // 76: proto.LocaleSetting - (*QuickReplyAction)(nil), // 77: proto.QuickReplyAction - (*LabelAssociationAction)(nil), // 78: proto.LabelAssociationAction - (*LabelEditAction)(nil), // 79: proto.LabelEditAction - (*RecentStickerWeightsAction)(nil), // 80: proto.RecentStickerWeightsAction - (*RecentStickerMetadata)(nil), // 81: proto.RecentStickerMetadata - (*RecentEmojiWeightsAction)(nil), // 82: proto.RecentEmojiWeightsAction - (*FavoriteStickerAction)(nil), // 83: proto.FavoriteStickerAction - (*ArchiveChatAction)(nil), // 84: proto.ArchiveChatAction - (*DeleteMessageForMeAction)(nil), // 85: proto.DeleteMessageForMeAction - (*MarkChatAsReadAction)(nil), // 86: proto.MarkChatAsReadAction - (*ClearChatAction)(nil), // 87: proto.ClearChatAction - (*DeleteChatAction)(nil), // 88: proto.DeleteChatAction - (*UnarchiveChatsSetting)(nil), // 89: proto.UnarchiveChatsSetting - (*SyncActionMessageRange)(nil), // 90: proto.SyncActionMessageRange - (*SyncActionMessage)(nil), // 91: proto.SyncActionMessage - (*KeyExpiration)(nil), // 92: proto.KeyExpiration - (*PrimaryFeature)(nil), // 93: proto.PrimaryFeature - (*AndroidUnsupportedActions)(nil), // 94: proto.AndroidUnsupportedActions - (*SyncActionValue)(nil), // 95: proto.SyncActionValue - (*RecentEmojiWeight)(nil), // 96: proto.RecentEmojiWeight - (*RecentStickerWeight)(nil), // 97: proto.RecentStickerWeight - (*SyncdPatch)(nil), // 98: proto.SyncdPatch - (*SyncdMutation)(nil), // 99: proto.SyncdMutation - (*SyncdMutations)(nil), // 100: proto.SyncdMutations - (*SyncdSnapshot)(nil), // 101: proto.SyncdSnapshot - (*ExternalBlobReference)(nil), // 102: proto.ExternalBlobReference - (*SyncdRecord)(nil), // 103: proto.SyncdRecord - (*KeyId)(nil), // 104: proto.KeyId - (*SyncdValue)(nil), // 105: proto.SyncdValue - (*SyncdIndex)(nil), // 106: proto.SyncdIndex - (*ExitCode)(nil), // 107: proto.ExitCode - (*SyncdVersion)(nil), // 108: proto.SyncdVersion - (*ServerErrorReceipt)(nil), // 109: proto.ServerErrorReceipt - (*MediaRetryNotification)(nil), // 110: proto.MediaRetryNotification - (*MsgOpaqueData)(nil), // 111: proto.MsgOpaqueData - (*MsgRowOpaqueData)(nil), // 112: proto.MsgRowOpaqueData - (*GlobalSettings)(nil), // 113: proto.GlobalSettings - (*WallpaperSettings)(nil), // 114: proto.WallpaperSettings - (*GroupParticipant)(nil), // 115: proto.GroupParticipant - (*Pushname)(nil), // 116: proto.Pushname - (*HistorySyncMsg)(nil), // 117: proto.HistorySyncMsg - (*Conversation)(nil), // 118: proto.Conversation - (*HistorySync)(nil), // 119: proto.HistorySync - (*EphemeralSetting)(nil), // 120: proto.EphemeralSetting - (*InteractiveAnnotation)(nil), // 121: proto.InteractiveAnnotation - (*DeviceListMetadata)(nil), // 122: proto.DeviceListMetadata - (*MessageContextInfo)(nil), // 123: proto.MessageContextInfo - (*AdReplyInfo)(nil), // 124: proto.AdReplyInfo - (*ExternalAdReplyInfo)(nil), // 125: proto.ExternalAdReplyInfo - (*ContextInfo)(nil), // 126: proto.ContextInfo - (*SenderKeyDistributionMessage)(nil), // 127: proto.SenderKeyDistributionMessage - (*ImageMessage)(nil), // 128: proto.ImageMessage - (*InvoiceMessage)(nil), // 129: proto.InvoiceMessage - (*ContactMessage)(nil), // 130: proto.ContactMessage - (*LocationMessage)(nil), // 131: proto.LocationMessage - (*ExtendedTextMessage)(nil), // 132: proto.ExtendedTextMessage - (*DocumentMessage)(nil), // 133: proto.DocumentMessage - (*AudioMessage)(nil), // 134: proto.AudioMessage - (*VideoMessage)(nil), // 135: proto.VideoMessage - (*Call)(nil), // 136: proto.Call - (*Chat)(nil), // 137: proto.Chat - (*ProtocolMessage)(nil), // 138: proto.ProtocolMessage - (*HistorySyncNotification)(nil), // 139: proto.HistorySyncNotification - (*AppStateSyncKey)(nil), // 140: proto.AppStateSyncKey - (*AppStateSyncKeyId)(nil), // 141: proto.AppStateSyncKeyId - (*AppStateSyncKeyFingerprint)(nil), // 142: proto.AppStateSyncKeyFingerprint - (*AppStateSyncKeyData)(nil), // 143: proto.AppStateSyncKeyData - (*AppStateSyncKeyShare)(nil), // 144: proto.AppStateSyncKeyShare - (*AppStateSyncKeyRequest)(nil), // 145: proto.AppStateSyncKeyRequest - (*AppStateFatalExceptionNotification)(nil), // 146: proto.AppStateFatalExceptionNotification - (*InitialSecurityNotificationSettingSync)(nil), // 147: proto.InitialSecurityNotificationSettingSync - (*ContactsArrayMessage)(nil), // 148: proto.ContactsArrayMessage - (*HSMCurrency)(nil), // 149: proto.HSMCurrency - (*HSMDateTimeComponent)(nil), // 150: proto.HSMDateTimeComponent - (*HSMDateTimeUnixEpoch)(nil), // 151: proto.HSMDateTimeUnixEpoch - (*HSMDateTime)(nil), // 152: proto.HSMDateTime - (*HSMLocalizableParameter)(nil), // 153: proto.HSMLocalizableParameter - (*HighlyStructuredMessage)(nil), // 154: proto.HighlyStructuredMessage - (*SendPaymentMessage)(nil), // 155: proto.SendPaymentMessage - (*RequestPaymentMessage)(nil), // 156: proto.RequestPaymentMessage - (*DeclinePaymentRequestMessage)(nil), // 157: proto.DeclinePaymentRequestMessage - (*CancelPaymentRequestMessage)(nil), // 158: proto.CancelPaymentRequestMessage - (*PaymentInviteMessage)(nil), // 159: proto.PaymentInviteMessage - (*LiveLocationMessage)(nil), // 160: proto.LiveLocationMessage - (*StickerMessage)(nil), // 161: proto.StickerMessage - (*FourRowTemplate)(nil), // 162: proto.FourRowTemplate - (*HydratedFourRowTemplate)(nil), // 163: proto.HydratedFourRowTemplate - (*TemplateMessage)(nil), // 164: proto.TemplateMessage - (*TemplateButtonReplyMessage)(nil), // 165: proto.TemplateButtonReplyMessage - (*CatalogSnapshot)(nil), // 166: proto.CatalogSnapshot - (*ProductSnapshot)(nil), // 167: proto.ProductSnapshot - (*ProductMessage)(nil), // 168: proto.ProductMessage - (*OrderMessage)(nil), // 169: proto.OrderMessage - (*Row)(nil), // 170: proto.Row - (*Section)(nil), // 171: proto.Section - (*Product)(nil), // 172: proto.Product - (*ProductSection)(nil), // 173: proto.ProductSection - (*ProductListHeaderImage)(nil), // 174: proto.ProductListHeaderImage - (*ProductListInfo)(nil), // 175: proto.ProductListInfo - (*ListMessage)(nil), // 176: proto.ListMessage - (*SingleSelectReply)(nil), // 177: proto.SingleSelectReply - (*ListResponseMessage)(nil), // 178: proto.ListResponseMessage - (*Header)(nil), // 179: proto.Header - (*Body)(nil), // 180: proto.Body - (*Footer)(nil), // 181: proto.Footer - (*ShopMessage)(nil), // 182: proto.ShopMessage - (*CollectionMessage)(nil), // 183: proto.CollectionMessage - (*NativeFlowButton)(nil), // 184: proto.NativeFlowButton - (*NativeFlowMessage)(nil), // 185: proto.NativeFlowMessage - (*InteractiveMessage)(nil), // 186: proto.InteractiveMessage - (*GroupInviteMessage)(nil), // 187: proto.GroupInviteMessage - (*DeviceSentMessage)(nil), // 188: proto.DeviceSentMessage - (*FutureProofMessage)(nil), // 189: proto.FutureProofMessage - (*ButtonText)(nil), // 190: proto.ButtonText - (*NativeFlowInfo)(nil), // 191: proto.NativeFlowInfo - (*Button)(nil), // 192: proto.Button - (*ButtonsMessage)(nil), // 193: proto.ButtonsMessage - (*ButtonsResponseMessage)(nil), // 194: proto.ButtonsResponseMessage - (*ReactionMessage)(nil), // 195: proto.ReactionMessage - (*StickerSyncRMRMessage)(nil), // 196: proto.StickerSyncRMRMessage - (*Message)(nil), // 197: proto.Message - (*ActionLink)(nil), // 198: proto.ActionLink - (*DisappearingMode)(nil), // 199: proto.DisappearingMode - (*PBMediaData)(nil), // 200: proto.PBMediaData - (*PaymentBackground)(nil), // 201: proto.PaymentBackground - (*Money)(nil), // 202: proto.Money - (*HydratedQuickReplyButton)(nil), // 203: proto.HydratedQuickReplyButton - (*HydratedURLButton)(nil), // 204: proto.HydratedURLButton - (*HydratedCallButton)(nil), // 205: proto.HydratedCallButton - (*HydratedTemplateButton)(nil), // 206: proto.HydratedTemplateButton - (*QuickReplyButton)(nil), // 207: proto.QuickReplyButton - (*URLButton)(nil), // 208: proto.URLButton - (*CallButton)(nil), // 209: proto.CallButton - (*TemplateButton)(nil), // 210: proto.TemplateButton - (*Location)(nil), // 211: proto.Location - (*Point)(nil), // 212: proto.Point - (*CompanionProps)(nil), // 213: proto.CompanionProps - (*ADVSignedDeviceIdentityHMAC)(nil), // 214: proto.ADVSignedDeviceIdentityHMAC - (*ADVSignedDeviceIdentity)(nil), // 215: proto.ADVSignedDeviceIdentity - (*ADVDeviceIdentity)(nil), // 216: proto.ADVDeviceIdentity - (*ADVSignedKeyIndexList)(nil), // 217: proto.ADVSignedKeyIndexList - (*ADVKeyIndexList)(nil), // 218: proto.ADVKeyIndexList - (*MessageKey)(nil), // 219: proto.MessageKey - (*Reaction)(nil), // 220: proto.Reaction - (*UserReceipt)(nil), // 221: proto.UserReceipt - (*StatusPSA)(nil), // 222: proto.StatusPSA - (*PhotoChange)(nil), // 223: proto.PhotoChange - (*MediaData)(nil), // 224: proto.MediaData - (*WebFeatures)(nil), // 225: proto.WebFeatures - (*NotificationMessageInfo)(nil), // 226: proto.NotificationMessageInfo - (*WebNotificationsInfo)(nil), // 227: proto.WebNotificationsInfo - (*PaymentInfo)(nil), // 228: proto.PaymentInfo - (*WebMessageInfo)(nil), // 229: proto.WebMessageInfo + (CompanionProps_CompanionPropsPlatformType)(0), // 1: proto.CompanionProps.CompanionPropsPlatformType + (ProtocolMessage_ProtocolMessageType)(0), // 2: proto.ProtocolMessage.ProtocolMessageType + (PaymentInviteMessage_PaymentInviteMessageServiceType)(0), // 3: proto.PaymentInviteMessage.PaymentInviteMessageServiceType + (OrderMessage_OrderMessageOrderStatus)(0), // 4: proto.OrderMessage.OrderMessageOrderStatus + (OrderMessage_OrderMessageOrderSurface)(0), // 5: proto.OrderMessage.OrderMessageOrderSurface + (ListResponseMessage_ListResponseMessageListType)(0), // 6: proto.ListResponseMessage.ListResponseMessageListType + (ListMessage_ListMessageListType)(0), // 7: proto.ListMessage.ListMessageListType + (InvoiceMessage_InvoiceMessageAttachmentType)(0), // 8: proto.InvoiceMessage.InvoiceMessageAttachmentType + (ShopMessage_ShopMessageSurface)(0), // 9: proto.ShopMessage.ShopMessageSurface + (HistorySyncNotification_HistorySyncNotificationHistorySyncType)(0), // 10: proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType + (HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType)(0), // 11: proto.HSMDateTimeComponent.HSMDateTimeComponentDayOfWeekType + (HSMDateTimeComponent_HSMDateTimeComponentCalendarType)(0), // 12: proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType + (GroupInviteMessage_GroupInviteMessageGroupType)(0), // 13: proto.GroupInviteMessage.GroupInviteMessageGroupType + (ExtendedTextMessage_ExtendedTextMessageFontType)(0), // 14: proto.ExtendedTextMessage.ExtendedTextMessageFontType + (ExtendedTextMessage_ExtendedTextMessagePreviewType)(0), // 15: proto.ExtendedTextMessage.ExtendedTextMessagePreviewType + (ExtendedTextMessage_ExtendedTextMessageInviteLinkGroupType)(0), // 16: proto.ExtendedTextMessage.ExtendedTextMessageInviteLinkGroupType + (ButtonsResponseMessage_ButtonsResponseMessageType)(0), // 17: proto.ButtonsResponseMessage.ButtonsResponseMessageType + (ButtonsMessage_ButtonsMessageHeaderType)(0), // 18: proto.ButtonsMessage.ButtonsMessageHeaderType + (Button_ButtonType)(0), // 19: proto.Button.ButtonType + (DisappearingMode_DisappearingModeInitiator)(0), // 20: proto.DisappearingMode.DisappearingModeInitiator + (ExternalAdReplyInfo_ExternalAdReplyInfoMediaType)(0), // 21: proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType + (AdReplyInfo_AdReplyInfoMediaType)(0), // 22: proto.AdReplyInfo.AdReplyInfoMediaType + (PaymentBackground_PaymentBackgroundType)(0), // 23: proto.PaymentBackground.PaymentBackgroundType + (VideoMessage_VideoMessageAttribution)(0), // 24: proto.VideoMessage.VideoMessageAttribution + (HistorySync_HistorySyncHistorySyncType)(0), // 25: proto.HistorySync.HistorySyncHistorySyncType + (GroupParticipant_GroupParticipantRank)(0), // 26: proto.GroupParticipant.GroupParticipantRank + (Conversation_ConversationEndOfHistoryTransferType)(0), // 27: proto.Conversation.ConversationEndOfHistoryTransferType + (MediaRetryNotification_MediaRetryNotificationResultType)(0), // 28: proto.MediaRetryNotification.MediaRetryNotificationResultType + (SyncdMutation_SyncdMutationSyncdOperation)(0), // 29: proto.SyncdMutation.SyncdMutationSyncdOperation + (BizIdentityInfo_BizIdentityInfoVerifiedLevelValue)(0), // 30: proto.BizIdentityInfo.BizIdentityInfoVerifiedLevelValue + (BizIdentityInfo_BizIdentityInfoHostStorageType)(0), // 31: proto.BizIdentityInfo.BizIdentityInfoHostStorageType + (BizIdentityInfo_BizIdentityInfoActualActorsType)(0), // 32: proto.BizIdentityInfo.BizIdentityInfoActualActorsType + (BizAccountLinkInfo_BizAccountLinkInfoHostStorageType)(0), // 33: proto.BizAccountLinkInfo.BizAccountLinkInfoHostStorageType + (BizAccountLinkInfo_BizAccountLinkInfoAccountType)(0), // 34: proto.BizAccountLinkInfo.BizAccountLinkInfoAccountType + (ClientPayload_ClientPayloadConnectType)(0), // 35: proto.ClientPayload.ClientPayloadConnectType + (ClientPayload_ClientPayloadConnectReason)(0), // 36: proto.ClientPayload.ClientPayloadConnectReason + (ClientPayload_ClientPayloadProduct)(0), // 37: proto.ClientPayload.ClientPayloadProduct + (ClientPayload_ClientPayloadIOSAppExtension)(0), // 38: proto.ClientPayload.ClientPayloadIOSAppExtension + (WebInfo_WebInfoWebSubPlatform)(0), // 39: proto.WebInfo.WebInfoWebSubPlatform + (UserAgent_UserAgentPlatform)(0), // 40: proto.UserAgent.UserAgentPlatform + (UserAgent_UserAgentReleaseChannel)(0), // 41: proto.UserAgent.UserAgentReleaseChannel + (DNSSource_DNSSourceDNSResolutionMethod)(0), // 42: proto.DNSSource.DNSSourceDNSResolutionMethod + (WebMessageInfo_WebMessageInfoStatus)(0), // 43: proto.WebMessageInfo.WebMessageInfoStatus + (WebMessageInfo_WebMessageInfoStubType)(0), // 44: proto.WebMessageInfo.WebMessageInfoStubType + (WebMessageInfo_WebMessageInfoBizPrivacyStatus)(0), // 45: proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus + (WebFeatures_WebFeaturesFlag)(0), // 46: proto.WebFeatures.WebFeaturesFlag + (PaymentInfo_PaymentInfoCurrency)(0), // 47: proto.PaymentInfo.PaymentInfoCurrency + (PaymentInfo_PaymentInfoStatus)(0), // 48: proto.PaymentInfo.PaymentInfoStatus + (PaymentInfo_PaymentInfoTxnStatus)(0), // 49: proto.PaymentInfo.PaymentInfoTxnStatus + (*ADVSignedKeyIndexList)(nil), // 50: proto.ADVSignedKeyIndexList + (*ADVSignedDeviceIdentity)(nil), // 51: proto.ADVSignedDeviceIdentity + (*ADVSignedDeviceIdentityHMAC)(nil), // 52: proto.ADVSignedDeviceIdentityHMAC + (*ADVKeyIndexList)(nil), // 53: proto.ADVKeyIndexList + (*ADVDeviceIdentity)(nil), // 54: proto.ADVDeviceIdentity + (*CompanionProps)(nil), // 55: proto.CompanionProps + (*AppVersion)(nil), // 56: proto.AppVersion + (*StickerMessage)(nil), // 57: proto.StickerMessage + (*SenderKeyDistributionMessage)(nil), // 58: proto.SenderKeyDistributionMessage + (*SendPaymentMessage)(nil), // 59: proto.SendPaymentMessage + (*RequestPaymentMessage)(nil), // 60: proto.RequestPaymentMessage + (*ReactionMessage)(nil), // 61: proto.ReactionMessage + (*ProtocolMessage)(nil), // 62: proto.ProtocolMessage + (*ProductMessage)(nil), // 63: proto.ProductMessage + (*ProductSnapshot)(nil), // 64: proto.ProductSnapshot + (*CatalogSnapshot)(nil), // 65: proto.CatalogSnapshot + (*PaymentInviteMessage)(nil), // 66: proto.PaymentInviteMessage + (*OrderMessage)(nil), // 67: proto.OrderMessage + (*LocationMessage)(nil), // 68: proto.LocationMessage + (*LiveLocationMessage)(nil), // 69: proto.LiveLocationMessage + (*ListResponseMessage)(nil), // 70: proto.ListResponseMessage + (*SingleSelectReply)(nil), // 71: proto.SingleSelectReply + (*ListMessage)(nil), // 72: proto.ListMessage + (*Section)(nil), // 73: proto.Section + (*Row)(nil), // 74: proto.Row + (*Product)(nil), // 75: proto.Product + (*ProductSection)(nil), // 76: proto.ProductSection + (*ProductListInfo)(nil), // 77: proto.ProductListInfo + (*ProductListHeaderImage)(nil), // 78: proto.ProductListHeaderImage + (*InvoiceMessage)(nil), // 79: proto.InvoiceMessage + (*InteractiveResponseMessage)(nil), // 80: proto.InteractiveResponseMessage + (*NativeFlowResponseMessage)(nil), // 81: proto.NativeFlowResponseMessage + (*InteractiveResponseMessageBody)(nil), // 82: proto.InteractiveResponseMessageBody + (*InteractiveMessage)(nil), // 83: proto.InteractiveMessage + (*ShopMessage)(nil), // 84: proto.ShopMessage + (*NativeFlowMessage)(nil), // 85: proto.NativeFlowMessage + (*NativeFlowButton)(nil), // 86: proto.NativeFlowButton + (*Header)(nil), // 87: proto.Header + (*Footer)(nil), // 88: proto.Footer + (*CollectionMessage)(nil), // 89: proto.CollectionMessage + (*InteractiveMessageBody)(nil), // 90: proto.InteractiveMessageBody + (*InitialSecurityNotificationSettingSync)(nil), // 91: proto.InitialSecurityNotificationSettingSync + (*ImageMessage)(nil), // 92: proto.ImageMessage + (*HistorySyncNotification)(nil), // 93: proto.HistorySyncNotification + (*HighlyStructuredMessage)(nil), // 94: proto.HighlyStructuredMessage + (*HSMLocalizableParameter)(nil), // 95: proto.HSMLocalizableParameter + (*HSMDateTime)(nil), // 96: proto.HSMDateTime + (*HSMDateTimeUnixEpoch)(nil), // 97: proto.HSMDateTimeUnixEpoch + (*HSMDateTimeComponent)(nil), // 98: proto.HSMDateTimeComponent + (*HSMCurrency)(nil), // 99: proto.HSMCurrency + (*GroupInviteMessage)(nil), // 100: proto.GroupInviteMessage + (*FutureProofMessage)(nil), // 101: proto.FutureProofMessage + (*ExtendedTextMessage)(nil), // 102: proto.ExtendedTextMessage + (*DocumentMessage)(nil), // 103: proto.DocumentMessage + (*DeviceSentMessage)(nil), // 104: proto.DeviceSentMessage + (*DeclinePaymentRequestMessage)(nil), // 105: proto.DeclinePaymentRequestMessage + (*ContactsArrayMessage)(nil), // 106: proto.ContactsArrayMessage + (*ContactMessage)(nil), // 107: proto.ContactMessage + (*Chat)(nil), // 108: proto.Chat + (*CancelPaymentRequestMessage)(nil), // 109: proto.CancelPaymentRequestMessage + (*Call)(nil), // 110: proto.Call + (*ButtonsResponseMessage)(nil), // 111: proto.ButtonsResponseMessage + (*ButtonsMessage)(nil), // 112: proto.ButtonsMessage + (*Button)(nil), // 113: proto.Button + (*NativeFlowInfo)(nil), // 114: proto.NativeFlowInfo + (*ButtonText)(nil), // 115: proto.ButtonText + (*AudioMessage)(nil), // 116: proto.AudioMessage + (*AppStateSyncKey)(nil), // 117: proto.AppStateSyncKey + (*AppStateSyncKeyShare)(nil), // 118: proto.AppStateSyncKeyShare + (*AppStateSyncKeyRequest)(nil), // 119: proto.AppStateSyncKeyRequest + (*AppStateSyncKeyId)(nil), // 120: proto.AppStateSyncKeyId + (*AppStateSyncKeyFingerprint)(nil), // 121: proto.AppStateSyncKeyFingerprint + (*AppStateSyncKeyData)(nil), // 122: proto.AppStateSyncKeyData + (*AppStateFatalExceptionNotification)(nil), // 123: proto.AppStateFatalExceptionNotification + (*Location)(nil), // 124: proto.Location + (*InteractiveAnnotation)(nil), // 125: proto.InteractiveAnnotation + (*HydratedTemplateButton)(nil), // 126: proto.HydratedTemplateButton + (*HydratedURLButton)(nil), // 127: proto.HydratedURLButton + (*HydratedQuickReplyButton)(nil), // 128: proto.HydratedQuickReplyButton + (*HydratedCallButton)(nil), // 129: proto.HydratedCallButton + (*DisappearingMode)(nil), // 130: proto.DisappearingMode + (*DeviceListMetadata)(nil), // 131: proto.DeviceListMetadata + (*ContextInfo)(nil), // 132: proto.ContextInfo + (*ExternalAdReplyInfo)(nil), // 133: proto.ExternalAdReplyInfo + (*AdReplyInfo)(nil), // 134: proto.AdReplyInfo + (*ActionLink)(nil), // 135: proto.ActionLink + (*TemplateButton)(nil), // 136: proto.TemplateButton + (*URLButton)(nil), // 137: proto.URLButton + (*QuickReplyButton)(nil), // 138: proto.QuickReplyButton + (*CallButton)(nil), // 139: proto.CallButton + (*PollUpdateMessage)(nil), // 140: proto.PollUpdateMessage + (*PollUpdateMessageContent)(nil), // 141: proto.PollUpdateMessageContent + (*PollVoteMessage)(nil), // 142: proto.PollVoteMessage + (*PollCreationMessage)(nil), // 143: proto.PollCreationMessage + (*Option)(nil), // 144: proto.Option + (*Point)(nil), // 145: proto.Point + (*PaymentBackground)(nil), // 146: proto.PaymentBackground + (*PBMediaData)(nil), // 147: proto.PBMediaData + (*Money)(nil), // 148: proto.Money + (*Message)(nil), // 149: proto.Message + (*MessageContextInfo)(nil), // 150: proto.MessageContextInfo + (*VideoMessage)(nil), // 151: proto.VideoMessage + (*TemplateMessage)(nil), // 152: proto.TemplateMessage + (*HydratedFourRowTemplate)(nil), // 153: proto.HydratedFourRowTemplate + (*FourRowTemplate)(nil), // 154: proto.FourRowTemplate + (*TemplateButtonReplyMessage)(nil), // 155: proto.TemplateButtonReplyMessage + (*StickerSyncRMRMessage)(nil), // 156: proto.StickerSyncRMRMessage + (*EphemeralSetting)(nil), // 157: proto.EphemeralSetting + (*WallpaperSettings)(nil), // 158: proto.WallpaperSettings + (*Pushname)(nil), // 159: proto.Pushname + (*HistorySync)(nil), // 160: proto.HistorySync + (*HistorySyncMsg)(nil), // 161: proto.HistorySyncMsg + (*GroupParticipant)(nil), // 162: proto.GroupParticipant + (*GlobalSettings)(nil), // 163: proto.GlobalSettings + (*Conversation)(nil), // 164: proto.Conversation + (*AutoDownloadSettings)(nil), // 165: proto.AutoDownloadSettings + (*MsgRowOpaqueData)(nil), // 166: proto.MsgRowOpaqueData + (*MsgOpaqueData)(nil), // 167: proto.MsgOpaqueData + (*ServerErrorReceipt)(nil), // 168: proto.ServerErrorReceipt + (*MediaRetryNotification)(nil), // 169: proto.MediaRetryNotification + (*MessageKey)(nil), // 170: proto.MessageKey + (*SyncdVersion)(nil), // 171: proto.SyncdVersion + (*SyncdValue)(nil), // 172: proto.SyncdValue + (*SyncdSnapshot)(nil), // 173: proto.SyncdSnapshot + (*SyncdRecord)(nil), // 174: proto.SyncdRecord + (*SyncdPatch)(nil), // 175: proto.SyncdPatch + (*SyncdMutations)(nil), // 176: proto.SyncdMutations + (*SyncdMutation)(nil), // 177: proto.SyncdMutation + (*SyncdIndex)(nil), // 178: proto.SyncdIndex + (*KeyId)(nil), // 179: proto.KeyId + (*ExternalBlobReference)(nil), // 180: proto.ExternalBlobReference + (*ExitCode)(nil), // 181: proto.ExitCode + (*SyncActionValue)(nil), // 182: proto.SyncActionValue + (*UnarchiveChatsSetting)(nil), // 183: proto.UnarchiveChatsSetting + (*SyncActionMessage)(nil), // 184: proto.SyncActionMessage + (*SyncActionMessageRange)(nil), // 185: proto.SyncActionMessageRange + (*StarAction)(nil), // 186: proto.StarAction + (*SecurityNotificationSetting)(nil), // 187: proto.SecurityNotificationSetting + (*RecentStickerWeightsAction)(nil), // 188: proto.RecentStickerWeightsAction + (*RecentStickerMetadata)(nil), // 189: proto.RecentStickerMetadata + (*RecentEmojiWeightsAction)(nil), // 190: proto.RecentEmojiWeightsAction + (*QuickReplyAction)(nil), // 191: proto.QuickReplyAction + (*PushNameSetting)(nil), // 192: proto.PushNameSetting + (*PrimaryFeature)(nil), // 193: proto.PrimaryFeature + (*PinAction)(nil), // 194: proto.PinAction + (*MuteAction)(nil), // 195: proto.MuteAction + (*MarkChatAsReadAction)(nil), // 196: proto.MarkChatAsReadAction + (*LocaleSetting)(nil), // 197: proto.LocaleSetting + (*LabelEditAction)(nil), // 198: proto.LabelEditAction + (*LabelAssociationAction)(nil), // 199: proto.LabelAssociationAction + (*KeyExpiration)(nil), // 200: proto.KeyExpiration + (*FavoriteStickerAction)(nil), // 201: proto.FavoriteStickerAction + (*DeleteMessageForMeAction)(nil), // 202: proto.DeleteMessageForMeAction + (*DeleteChatAction)(nil), // 203: proto.DeleteChatAction + (*ContactAction)(nil), // 204: proto.ContactAction + (*ClearChatAction)(nil), // 205: proto.ClearChatAction + (*ArchiveChatAction)(nil), // 206: proto.ArchiveChatAction + (*AndroidUnsupportedActions)(nil), // 207: proto.AndroidUnsupportedActions + (*SyncActionData)(nil), // 208: proto.SyncActionData + (*RecentStickerWeight)(nil), // 209: proto.RecentStickerWeight + (*RecentEmojiWeight)(nil), // 210: proto.RecentEmojiWeight + (*VerifiedNameCertificate)(nil), // 211: proto.VerifiedNameCertificate + (*VerifiedNameDetails)(nil), // 212: proto.VerifiedNameDetails + (*LocalizedName)(nil), // 213: proto.LocalizedName + (*BizIdentityInfo)(nil), // 214: proto.BizIdentityInfo + (*BizAccountPayload)(nil), // 215: proto.BizAccountPayload + (*BizAccountLinkInfo)(nil), // 216: proto.BizAccountLinkInfo + (*NoiseCertificate)(nil), // 217: proto.NoiseCertificate + (*NoiseCertificateDetails)(nil), // 218: proto.NoiseCertificateDetails + (*HandshakeMessage)(nil), // 219: proto.HandshakeMessage + (*ServerHello)(nil), // 220: proto.ServerHello + (*ClientHello)(nil), // 221: proto.ClientHello + (*ClientFinish)(nil), // 222: proto.ClientFinish + (*ClientPayload)(nil), // 223: proto.ClientPayload + (*WebInfo)(nil), // 224: proto.WebInfo + (*WebdPayload)(nil), // 225: proto.WebdPayload + (*UserAgent)(nil), // 226: proto.UserAgent + (*DNSSource)(nil), // 227: proto.DNSSource + (*CompanionRegData)(nil), // 228: proto.CompanionRegData + (*WebNotificationsInfo)(nil), // 229: proto.WebNotificationsInfo + (*WebMessageInfo)(nil), // 230: proto.WebMessageInfo + (*WebFeatures)(nil), // 231: proto.WebFeatures + (*UserReceipt)(nil), // 232: proto.UserReceipt + (*StatusPSA)(nil), // 233: proto.StatusPSA + (*Reaction)(nil), // 234: proto.Reaction + (*PollUpdate)(nil), // 235: proto.PollUpdate + (*PollAdditionalMetadata)(nil), // 236: proto.PollAdditionalMetadata + (*PhotoChange)(nil), // 237: proto.PhotoChange + (*PaymentInfo)(nil), // 238: proto.PaymentInfo + (*NotificationMessageInfo)(nil), // 239: proto.NotificationMessageInfo + (*MediaData)(nil), // 240: proto.MediaData } var file_binary_proto_def_proto_depIdxs = []int32{ - 1, // 0: proto.UserAgent.platform:type_name -> proto.UserAgent.UserAgentPlatform - 50, // 1: proto.UserAgent.appVersion:type_name -> proto.AppVersion - 2, // 2: proto.UserAgent.releaseChannel:type_name -> proto.UserAgent.UserAgentReleaseChannel - 52, // 3: proto.WebInfo.webdPayload:type_name -> proto.WebdPayload - 3, // 4: proto.WebInfo.webSubPlatform:type_name -> proto.WebInfo.WebInfoWebSubPlatform - 4, // 5: proto.DNSSource.dnsMethod:type_name -> proto.DNSSource.DNSSourceDNSResolutionMethod - 51, // 6: proto.ClientPayload.userAgent:type_name -> proto.UserAgent - 53, // 7: proto.ClientPayload.webInfo:type_name -> proto.WebInfo - 5, // 8: proto.ClientPayload.connectType:type_name -> proto.ClientPayload.ClientPayloadConnectType - 6, // 9: proto.ClientPayload.connectReason:type_name -> proto.ClientPayload.ClientPayloadConnectReason - 54, // 10: proto.ClientPayload.dnsSource:type_name -> proto.DNSSource - 55, // 11: proto.ClientPayload.regData:type_name -> proto.CompanionRegData - 7, // 12: proto.ClientPayload.product:type_name -> proto.ClientPayload.ClientPayloadProduct - 8, // 13: proto.ClientPayload.iosAppExtension:type_name -> proto.ClientPayload.ClientPayloadIOSAppExtension - 59, // 14: proto.HandshakeMessage.clientHello:type_name -> proto.ClientHello - 60, // 15: proto.HandshakeMessage.serverHello:type_name -> proto.ServerHello - 61, // 16: proto.HandshakeMessage.clientFinish:type_name -> proto.ClientFinish - 9, // 17: proto.BizIdentityInfo.vlevel:type_name -> proto.BizIdentityInfo.BizIdentityInfoVerifiedLevelValue - 67, // 18: proto.BizIdentityInfo.vnameCert:type_name -> proto.VerifiedNameCertificate - 10, // 19: proto.BizIdentityInfo.hostStorage:type_name -> proto.BizIdentityInfo.BizIdentityInfoHostStorageType - 11, // 20: proto.BizIdentityInfo.actualActors:type_name -> proto.BizIdentityInfo.BizIdentityInfoActualActorsType - 12, // 21: proto.BizAccountLinkInfo.hostStorage:type_name -> proto.BizAccountLinkInfo.BizAccountLinkInfoHostStorageType - 13, // 22: proto.BizAccountLinkInfo.accountType:type_name -> proto.BizAccountLinkInfo.BizAccountLinkInfoAccountType - 67, // 23: proto.BizAccountPayload.vnameCert:type_name -> proto.VerifiedNameCertificate - 68, // 24: proto.VerifiedNameDetails.localizedNames:type_name -> proto.LocalizedName - 95, // 25: proto.SyncActionData.value:type_name -> proto.SyncActionValue - 97, // 26: proto.RecentStickerWeightsAction.weights:type_name -> proto.RecentStickerWeight - 96, // 27: proto.RecentEmojiWeightsAction.weights:type_name -> proto.RecentEmojiWeight - 90, // 28: proto.ArchiveChatAction.messageRange:type_name -> proto.SyncActionMessageRange - 90, // 29: proto.MarkChatAsReadAction.messageRange:type_name -> proto.SyncActionMessageRange - 90, // 30: proto.ClearChatAction.messageRange:type_name -> proto.SyncActionMessageRange - 90, // 31: proto.DeleteChatAction.messageRange:type_name -> proto.SyncActionMessageRange - 91, // 32: proto.SyncActionMessageRange.messages:type_name -> proto.SyncActionMessage - 219, // 33: proto.SyncActionMessage.key:type_name -> proto.MessageKey - 70, // 34: proto.SyncActionValue.starAction:type_name -> proto.StarAction - 71, // 35: proto.SyncActionValue.contactAction:type_name -> proto.ContactAction - 72, // 36: proto.SyncActionValue.muteAction:type_name -> proto.MuteAction - 73, // 37: proto.SyncActionValue.pinAction:type_name -> proto.PinAction - 74, // 38: proto.SyncActionValue.securityNotificationSetting:type_name -> proto.SecurityNotificationSetting - 75, // 39: proto.SyncActionValue.pushNameSetting:type_name -> proto.PushNameSetting - 77, // 40: proto.SyncActionValue.quickReplyAction:type_name -> proto.QuickReplyAction - 80, // 41: proto.SyncActionValue.recentStickerWeightsAction:type_name -> proto.RecentStickerWeightsAction - 81, // 42: proto.SyncActionValue.recentStickerMetadata:type_name -> proto.RecentStickerMetadata - 82, // 43: proto.SyncActionValue.recentEmojiWeightsAction:type_name -> proto.RecentEmojiWeightsAction - 79, // 44: proto.SyncActionValue.labelEditAction:type_name -> proto.LabelEditAction - 78, // 45: proto.SyncActionValue.labelAssociationAction:type_name -> proto.LabelAssociationAction - 76, // 46: proto.SyncActionValue.localeSetting:type_name -> proto.LocaleSetting - 84, // 47: proto.SyncActionValue.archiveChatAction:type_name -> proto.ArchiveChatAction - 85, // 48: proto.SyncActionValue.deleteMessageForMeAction:type_name -> proto.DeleteMessageForMeAction - 92, // 49: proto.SyncActionValue.keyExpiration:type_name -> proto.KeyExpiration - 86, // 50: proto.SyncActionValue.markChatAsReadAction:type_name -> proto.MarkChatAsReadAction - 87, // 51: proto.SyncActionValue.clearChatAction:type_name -> proto.ClearChatAction - 88, // 52: proto.SyncActionValue.deleteChatAction:type_name -> proto.DeleteChatAction - 89, // 53: proto.SyncActionValue.unarchiveChatsSetting:type_name -> proto.UnarchiveChatsSetting - 93, // 54: proto.SyncActionValue.primaryFeature:type_name -> proto.PrimaryFeature - 83, // 55: proto.SyncActionValue.favoriteStickerAction:type_name -> proto.FavoriteStickerAction - 94, // 56: proto.SyncActionValue.androidUnsupportedActions:type_name -> proto.AndroidUnsupportedActions - 108, // 57: proto.SyncdPatch.version:type_name -> proto.SyncdVersion - 99, // 58: proto.SyncdPatch.mutations:type_name -> proto.SyncdMutation - 102, // 59: proto.SyncdPatch.externalMutations:type_name -> proto.ExternalBlobReference - 104, // 60: proto.SyncdPatch.keyId:type_name -> proto.KeyId - 107, // 61: proto.SyncdPatch.exitCode:type_name -> proto.ExitCode - 14, // 62: proto.SyncdMutation.operation:type_name -> proto.SyncdMutation.SyncdMutationSyncdOperation - 103, // 63: proto.SyncdMutation.record:type_name -> proto.SyncdRecord - 99, // 64: proto.SyncdMutations.mutations:type_name -> proto.SyncdMutation - 108, // 65: proto.SyncdSnapshot.version:type_name -> proto.SyncdVersion - 103, // 66: proto.SyncdSnapshot.records:type_name -> proto.SyncdRecord - 104, // 67: proto.SyncdSnapshot.keyId:type_name -> proto.KeyId - 106, // 68: proto.SyncdRecord.index:type_name -> proto.SyncdIndex - 105, // 69: proto.SyncdRecord.value:type_name -> proto.SyncdValue - 104, // 70: proto.SyncdRecord.keyId:type_name -> proto.KeyId - 15, // 71: proto.MediaRetryNotification.result:type_name -> proto.MediaRetryNotification.MediaRetryNotificationResultType - 111, // 72: proto.MsgRowOpaqueData.currentMsg:type_name -> proto.MsgOpaqueData - 111, // 73: proto.MsgRowOpaqueData.quotedMsg:type_name -> proto.MsgOpaqueData - 114, // 74: proto.GlobalSettings.lightThemeWallpaper:type_name -> proto.WallpaperSettings - 0, // 75: proto.GlobalSettings.mediaVisibility:type_name -> proto.MediaVisibility - 114, // 76: proto.GlobalSettings.darkThemeWallpaper:type_name -> proto.WallpaperSettings - 16, // 77: proto.GroupParticipant.rank:type_name -> proto.GroupParticipant.GroupParticipantRank - 229, // 78: proto.HistorySyncMsg.message:type_name -> proto.WebMessageInfo - 117, // 79: proto.Conversation.messages:type_name -> proto.HistorySyncMsg - 17, // 80: proto.Conversation.endOfHistoryTransferType:type_name -> proto.Conversation.ConversationEndOfHistoryTransferType - 199, // 81: proto.Conversation.disappearingMode:type_name -> proto.DisappearingMode - 115, // 82: proto.Conversation.participant:type_name -> proto.GroupParticipant - 114, // 83: proto.Conversation.wallpaper:type_name -> proto.WallpaperSettings - 0, // 84: proto.Conversation.mediaVisibility:type_name -> proto.MediaVisibility - 18, // 85: proto.HistorySync.syncType:type_name -> proto.HistorySync.HistorySyncHistorySyncType - 118, // 86: proto.HistorySync.conversations:type_name -> proto.Conversation - 229, // 87: proto.HistorySync.statusV3Messages:type_name -> proto.WebMessageInfo - 116, // 88: proto.HistorySync.pushnames:type_name -> proto.Pushname - 113, // 89: proto.HistorySync.globalSettings:type_name -> proto.GlobalSettings - 212, // 90: proto.InteractiveAnnotation.polygonVertices:type_name -> proto.Point - 211, // 91: proto.InteractiveAnnotation.location:type_name -> proto.Location - 122, // 92: proto.MessageContextInfo.deviceListMetadata:type_name -> proto.DeviceListMetadata - 19, // 93: proto.AdReplyInfo.mediaType:type_name -> proto.AdReplyInfo.AdReplyInfoMediaType - 20, // 94: proto.ExternalAdReplyInfo.mediaType:type_name -> proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType - 197, // 95: proto.ContextInfo.quotedMessage:type_name -> proto.Message - 124, // 96: proto.ContextInfo.quotedAd:type_name -> proto.AdReplyInfo - 219, // 97: proto.ContextInfo.placeholderKey:type_name -> proto.MessageKey - 125, // 98: proto.ContextInfo.externalAdReply:type_name -> proto.ExternalAdReplyInfo - 199, // 99: proto.ContextInfo.disappearingMode:type_name -> proto.DisappearingMode - 198, // 100: proto.ContextInfo.actionLink:type_name -> proto.ActionLink - 121, // 101: proto.ImageMessage.interactiveAnnotations:type_name -> proto.InteractiveAnnotation - 126, // 102: proto.ImageMessage.contextInfo:type_name -> proto.ContextInfo - 21, // 103: proto.InvoiceMessage.attachmentType:type_name -> proto.InvoiceMessage.InvoiceMessageAttachmentType - 126, // 104: proto.ContactMessage.contextInfo:type_name -> proto.ContextInfo - 126, // 105: proto.LocationMessage.contextInfo:type_name -> proto.ContextInfo - 22, // 106: proto.ExtendedTextMessage.font:type_name -> proto.ExtendedTextMessage.ExtendedTextMessageFontType - 23, // 107: proto.ExtendedTextMessage.previewType:type_name -> proto.ExtendedTextMessage.ExtendedTextMessagePreviewType - 126, // 108: proto.ExtendedTextMessage.contextInfo:type_name -> proto.ContextInfo - 24, // 109: proto.ExtendedTextMessage.inviteLinkGroupType:type_name -> proto.ExtendedTextMessage.ExtendedTextMessageInviteLinkGroupType - 126, // 110: proto.DocumentMessage.contextInfo:type_name -> proto.ContextInfo - 126, // 111: proto.AudioMessage.contextInfo:type_name -> proto.ContextInfo - 121, // 112: proto.VideoMessage.interactiveAnnotations:type_name -> proto.InteractiveAnnotation - 126, // 113: proto.VideoMessage.contextInfo:type_name -> proto.ContextInfo - 25, // 114: proto.VideoMessage.gifAttribution:type_name -> proto.VideoMessage.VideoMessageAttribution - 219, // 115: proto.ProtocolMessage.key:type_name -> proto.MessageKey - 26, // 116: proto.ProtocolMessage.type:type_name -> proto.ProtocolMessage.ProtocolMessageType - 139, // 117: proto.ProtocolMessage.historySyncNotification:type_name -> proto.HistorySyncNotification - 144, // 118: proto.ProtocolMessage.appStateSyncKeyShare:type_name -> proto.AppStateSyncKeyShare - 145, // 119: proto.ProtocolMessage.appStateSyncKeyRequest:type_name -> proto.AppStateSyncKeyRequest - 147, // 120: proto.ProtocolMessage.initialSecurityNotificationSettingSync:type_name -> proto.InitialSecurityNotificationSettingSync - 146, // 121: proto.ProtocolMessage.appStateFatalExceptionNotification:type_name -> proto.AppStateFatalExceptionNotification - 199, // 122: proto.ProtocolMessage.disappearingMode:type_name -> proto.DisappearingMode - 27, // 123: proto.HistorySyncNotification.syncType:type_name -> proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType - 141, // 124: proto.AppStateSyncKey.keyId:type_name -> proto.AppStateSyncKeyId - 143, // 125: proto.AppStateSyncKey.keyData:type_name -> proto.AppStateSyncKeyData - 142, // 126: proto.AppStateSyncKeyData.fingerprint:type_name -> proto.AppStateSyncKeyFingerprint - 140, // 127: proto.AppStateSyncKeyShare.keys:type_name -> proto.AppStateSyncKey - 141, // 128: proto.AppStateSyncKeyRequest.keyIds:type_name -> proto.AppStateSyncKeyId - 130, // 129: proto.ContactsArrayMessage.contacts:type_name -> proto.ContactMessage - 126, // 130: proto.ContactsArrayMessage.contextInfo:type_name -> proto.ContextInfo - 28, // 131: proto.HSMDateTimeComponent.dayOfWeek:type_name -> proto.HSMDateTimeComponent.HSMDateTimeComponentDayOfWeekType - 29, // 132: proto.HSMDateTimeComponent.calendar:type_name -> proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType - 150, // 133: proto.HSMDateTime.component:type_name -> proto.HSMDateTimeComponent - 151, // 134: proto.HSMDateTime.unixEpoch:type_name -> proto.HSMDateTimeUnixEpoch - 149, // 135: proto.HSMLocalizableParameter.currency:type_name -> proto.HSMCurrency - 152, // 136: proto.HSMLocalizableParameter.dateTime:type_name -> proto.HSMDateTime - 153, // 137: proto.HighlyStructuredMessage.localizableParams:type_name -> proto.HSMLocalizableParameter - 164, // 138: proto.HighlyStructuredMessage.hydratedHsm:type_name -> proto.TemplateMessage - 197, // 139: proto.SendPaymentMessage.noteMessage:type_name -> proto.Message - 219, // 140: proto.SendPaymentMessage.requestMessageKey:type_name -> proto.MessageKey - 201, // 141: proto.SendPaymentMessage.background:type_name -> proto.PaymentBackground - 197, // 142: proto.RequestPaymentMessage.noteMessage:type_name -> proto.Message - 202, // 143: proto.RequestPaymentMessage.amount:type_name -> proto.Money - 201, // 144: proto.RequestPaymentMessage.background:type_name -> proto.PaymentBackground - 219, // 145: proto.DeclinePaymentRequestMessage.key:type_name -> proto.MessageKey - 219, // 146: proto.CancelPaymentRequestMessage.key:type_name -> proto.MessageKey - 30, // 147: proto.PaymentInviteMessage.serviceType:type_name -> proto.PaymentInviteMessage.PaymentInviteMessageServiceType - 126, // 148: proto.LiveLocationMessage.contextInfo:type_name -> proto.ContextInfo - 126, // 149: proto.StickerMessage.contextInfo:type_name -> proto.ContextInfo - 154, // 150: proto.FourRowTemplate.content:type_name -> proto.HighlyStructuredMessage - 154, // 151: proto.FourRowTemplate.footer:type_name -> proto.HighlyStructuredMessage - 210, // 152: proto.FourRowTemplate.buttons:type_name -> proto.TemplateButton - 133, // 153: proto.FourRowTemplate.documentMessage:type_name -> proto.DocumentMessage - 154, // 154: proto.FourRowTemplate.highlyStructuredMessage:type_name -> proto.HighlyStructuredMessage - 128, // 155: proto.FourRowTemplate.imageMessage:type_name -> proto.ImageMessage - 135, // 156: proto.FourRowTemplate.videoMessage:type_name -> proto.VideoMessage - 131, // 157: proto.FourRowTemplate.locationMessage:type_name -> proto.LocationMessage - 206, // 158: proto.HydratedFourRowTemplate.hydratedButtons:type_name -> proto.HydratedTemplateButton - 133, // 159: proto.HydratedFourRowTemplate.documentMessage:type_name -> proto.DocumentMessage - 128, // 160: proto.HydratedFourRowTemplate.imageMessage:type_name -> proto.ImageMessage - 135, // 161: proto.HydratedFourRowTemplate.videoMessage:type_name -> proto.VideoMessage - 131, // 162: proto.HydratedFourRowTemplate.locationMessage:type_name -> proto.LocationMessage - 126, // 163: proto.TemplateMessage.contextInfo:type_name -> proto.ContextInfo - 163, // 164: proto.TemplateMessage.hydratedTemplate:type_name -> proto.HydratedFourRowTemplate - 162, // 165: proto.TemplateMessage.fourRowTemplate:type_name -> proto.FourRowTemplate - 163, // 166: proto.TemplateMessage.hydratedFourRowTemplate:type_name -> proto.HydratedFourRowTemplate - 126, // 167: proto.TemplateButtonReplyMessage.contextInfo:type_name -> proto.ContextInfo - 128, // 168: proto.CatalogSnapshot.catalogImage:type_name -> proto.ImageMessage - 128, // 169: proto.ProductSnapshot.productImage:type_name -> proto.ImageMessage - 167, // 170: proto.ProductMessage.product:type_name -> proto.ProductSnapshot - 166, // 171: proto.ProductMessage.catalog:type_name -> proto.CatalogSnapshot - 126, // 172: proto.ProductMessage.contextInfo:type_name -> proto.ContextInfo - 31, // 173: proto.OrderMessage.status:type_name -> proto.OrderMessage.OrderMessageOrderStatus - 32, // 174: proto.OrderMessage.surface:type_name -> proto.OrderMessage.OrderMessageOrderSurface - 126, // 175: proto.OrderMessage.contextInfo:type_name -> proto.ContextInfo - 170, // 176: proto.Section.rows:type_name -> proto.Row - 172, // 177: proto.ProductSection.products:type_name -> proto.Product - 173, // 178: proto.ProductListInfo.productSections:type_name -> proto.ProductSection - 174, // 179: proto.ProductListInfo.headerImage:type_name -> proto.ProductListHeaderImage - 33, // 180: proto.ListMessage.listType:type_name -> proto.ListMessage.ListMessageListType - 171, // 181: proto.ListMessage.sections:type_name -> proto.Section - 175, // 182: proto.ListMessage.productListInfo:type_name -> proto.ProductListInfo - 126, // 183: proto.ListMessage.contextInfo:type_name -> proto.ContextInfo - 34, // 184: proto.ListResponseMessage.listType:type_name -> proto.ListResponseMessage.ListResponseMessageListType - 177, // 185: proto.ListResponseMessage.singleSelectReply:type_name -> proto.SingleSelectReply - 126, // 186: proto.ListResponseMessage.contextInfo:type_name -> proto.ContextInfo - 133, // 187: proto.Header.documentMessage:type_name -> proto.DocumentMessage - 128, // 188: proto.Header.imageMessage:type_name -> proto.ImageMessage - 135, // 189: proto.Header.videoMessage:type_name -> proto.VideoMessage - 35, // 190: proto.ShopMessage.surface:type_name -> proto.ShopMessage.ShopMessageSurface - 184, // 191: proto.NativeFlowMessage.buttons:type_name -> proto.NativeFlowButton - 179, // 192: proto.InteractiveMessage.header:type_name -> proto.Header - 180, // 193: proto.InteractiveMessage.body:type_name -> proto.Body - 181, // 194: proto.InteractiveMessage.footer:type_name -> proto.Footer - 126, // 195: proto.InteractiveMessage.contextInfo:type_name -> proto.ContextInfo - 182, // 196: proto.InteractiveMessage.shopStorefrontMessage:type_name -> proto.ShopMessage - 183, // 197: proto.InteractiveMessage.collectionMessage:type_name -> proto.CollectionMessage - 185, // 198: proto.InteractiveMessage.nativeFlowMessage:type_name -> proto.NativeFlowMessage - 126, // 199: proto.GroupInviteMessage.contextInfo:type_name -> proto.ContextInfo - 36, // 200: proto.GroupInviteMessage.groupType:type_name -> proto.GroupInviteMessage.GroupInviteMessageGroupType - 197, // 201: proto.DeviceSentMessage.message:type_name -> proto.Message - 197, // 202: proto.FutureProofMessage.message:type_name -> proto.Message - 190, // 203: proto.Button.buttonText:type_name -> proto.ButtonText - 37, // 204: proto.Button.type:type_name -> proto.Button.ButtonType - 191, // 205: proto.Button.nativeFlowInfo:type_name -> proto.NativeFlowInfo - 126, // 206: proto.ButtonsMessage.contextInfo:type_name -> proto.ContextInfo - 192, // 207: proto.ButtonsMessage.buttons:type_name -> proto.Button - 38, // 208: proto.ButtonsMessage.headerType:type_name -> proto.ButtonsMessage.ButtonsMessageHeaderType - 133, // 209: proto.ButtonsMessage.documentMessage:type_name -> proto.DocumentMessage - 128, // 210: proto.ButtonsMessage.imageMessage:type_name -> proto.ImageMessage - 135, // 211: proto.ButtonsMessage.videoMessage:type_name -> proto.VideoMessage - 131, // 212: proto.ButtonsMessage.locationMessage:type_name -> proto.LocationMessage - 126, // 213: proto.ButtonsResponseMessage.contextInfo:type_name -> proto.ContextInfo - 39, // 214: proto.ButtonsResponseMessage.type:type_name -> proto.ButtonsResponseMessage.ButtonsResponseMessageType - 219, // 215: proto.ReactionMessage.key:type_name -> proto.MessageKey - 127, // 216: proto.Message.senderKeyDistributionMessage:type_name -> proto.SenderKeyDistributionMessage - 128, // 217: proto.Message.imageMessage:type_name -> proto.ImageMessage - 130, // 218: proto.Message.contactMessage:type_name -> proto.ContactMessage - 131, // 219: proto.Message.locationMessage:type_name -> proto.LocationMessage - 132, // 220: proto.Message.extendedTextMessage:type_name -> proto.ExtendedTextMessage - 133, // 221: proto.Message.documentMessage:type_name -> proto.DocumentMessage - 134, // 222: proto.Message.audioMessage:type_name -> proto.AudioMessage - 135, // 223: proto.Message.videoMessage:type_name -> proto.VideoMessage - 136, // 224: proto.Message.call:type_name -> proto.Call - 137, // 225: proto.Message.chat:type_name -> proto.Chat - 138, // 226: proto.Message.protocolMessage:type_name -> proto.ProtocolMessage - 148, // 227: proto.Message.contactsArrayMessage:type_name -> proto.ContactsArrayMessage - 154, // 228: proto.Message.highlyStructuredMessage:type_name -> proto.HighlyStructuredMessage - 127, // 229: proto.Message.fastRatchetKeySenderKeyDistributionMessage:type_name -> proto.SenderKeyDistributionMessage - 155, // 230: proto.Message.sendPaymentMessage:type_name -> proto.SendPaymentMessage - 160, // 231: proto.Message.liveLocationMessage:type_name -> proto.LiveLocationMessage - 156, // 232: proto.Message.requestPaymentMessage:type_name -> proto.RequestPaymentMessage - 157, // 233: proto.Message.declinePaymentRequestMessage:type_name -> proto.DeclinePaymentRequestMessage - 158, // 234: proto.Message.cancelPaymentRequestMessage:type_name -> proto.CancelPaymentRequestMessage - 164, // 235: proto.Message.templateMessage:type_name -> proto.TemplateMessage - 161, // 236: proto.Message.stickerMessage:type_name -> proto.StickerMessage - 187, // 237: proto.Message.groupInviteMessage:type_name -> proto.GroupInviteMessage - 165, // 238: proto.Message.templateButtonReplyMessage:type_name -> proto.TemplateButtonReplyMessage - 168, // 239: proto.Message.productMessage:type_name -> proto.ProductMessage - 188, // 240: proto.Message.deviceSentMessage:type_name -> proto.DeviceSentMessage - 123, // 241: proto.Message.messageContextInfo:type_name -> proto.MessageContextInfo - 176, // 242: proto.Message.listMessage:type_name -> proto.ListMessage - 189, // 243: proto.Message.viewOnceMessage:type_name -> proto.FutureProofMessage - 169, // 244: proto.Message.orderMessage:type_name -> proto.OrderMessage - 178, // 245: proto.Message.listResponseMessage:type_name -> proto.ListResponseMessage - 189, // 246: proto.Message.ephemeralMessage:type_name -> proto.FutureProofMessage - 129, // 247: proto.Message.invoiceMessage:type_name -> proto.InvoiceMessage - 193, // 248: proto.Message.buttonsMessage:type_name -> proto.ButtonsMessage - 194, // 249: proto.Message.buttonsResponseMessage:type_name -> proto.ButtonsResponseMessage - 159, // 250: proto.Message.paymentInviteMessage:type_name -> proto.PaymentInviteMessage - 186, // 251: proto.Message.interactiveMessage:type_name -> proto.InteractiveMessage - 195, // 252: proto.Message.reactionMessage:type_name -> proto.ReactionMessage - 196, // 253: proto.Message.stickerSyncRmrMessage:type_name -> proto.StickerSyncRMRMessage - 40, // 254: proto.DisappearingMode.initiator:type_name -> proto.DisappearingMode.DisappearingModeInitiator - 200, // 255: proto.PaymentBackground.mediaData:type_name -> proto.PBMediaData - 41, // 256: proto.PaymentBackground.type:type_name -> proto.PaymentBackground.PaymentBackgroundType - 203, // 257: proto.HydratedTemplateButton.quickReplyButton:type_name -> proto.HydratedQuickReplyButton - 204, // 258: proto.HydratedTemplateButton.urlButton:type_name -> proto.HydratedURLButton - 205, // 259: proto.HydratedTemplateButton.callButton:type_name -> proto.HydratedCallButton - 154, // 260: proto.QuickReplyButton.displayText:type_name -> proto.HighlyStructuredMessage - 154, // 261: proto.URLButton.displayText:type_name -> proto.HighlyStructuredMessage - 154, // 262: proto.URLButton.url:type_name -> proto.HighlyStructuredMessage - 154, // 263: proto.CallButton.displayText:type_name -> proto.HighlyStructuredMessage - 154, // 264: proto.CallButton.phoneNumber:type_name -> proto.HighlyStructuredMessage - 207, // 265: proto.TemplateButton.quickReplyButton:type_name -> proto.QuickReplyButton - 208, // 266: proto.TemplateButton.urlButton:type_name -> proto.URLButton - 209, // 267: proto.TemplateButton.callButton:type_name -> proto.CallButton - 50, // 268: proto.CompanionProps.version:type_name -> proto.AppVersion - 42, // 269: proto.CompanionProps.platformType:type_name -> proto.CompanionProps.CompanionPropsPlatformType - 219, // 270: proto.Reaction.key:type_name -> proto.MessageKey - 43, // 271: proto.WebFeatures.labelsDisplay:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 272: proto.WebFeatures.voipIndividualOutgoing:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 273: proto.WebFeatures.groupsV3:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 274: proto.WebFeatures.groupsV3Create:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 275: proto.WebFeatures.changeNumberV2:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 276: proto.WebFeatures.queryStatusV3Thumbnail:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 277: proto.WebFeatures.liveLocations:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 278: proto.WebFeatures.queryVname:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 279: proto.WebFeatures.voipIndividualIncoming:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 280: proto.WebFeatures.quickRepliesQuery:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 281: proto.WebFeatures.payments:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 282: proto.WebFeatures.stickerPackQuery:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 283: proto.WebFeatures.liveLocationsFinal:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 284: proto.WebFeatures.labelsEdit:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 285: proto.WebFeatures.mediaUpload:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 286: proto.WebFeatures.mediaUploadRichQuickReplies:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 287: proto.WebFeatures.vnameV2:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 288: proto.WebFeatures.videoPlaybackUrl:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 289: proto.WebFeatures.statusRanking:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 290: proto.WebFeatures.voipIndividualVideo:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 291: proto.WebFeatures.thirdPartyStickers:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 292: proto.WebFeatures.frequentlyForwardedSetting:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 293: proto.WebFeatures.groupsV4JoinPermission:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 294: proto.WebFeatures.recentStickers:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 295: proto.WebFeatures.catalog:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 296: proto.WebFeatures.starredStickers:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 297: proto.WebFeatures.voipGroupCall:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 298: proto.WebFeatures.templateMessage:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 299: proto.WebFeatures.templateMessageInteractivity:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 300: proto.WebFeatures.ephemeralMessages:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 301: proto.WebFeatures.e2ENotificationSync:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 302: proto.WebFeatures.recentStickersV2:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 303: proto.WebFeatures.recentStickersV3:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 304: proto.WebFeatures.userNotice:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 305: proto.WebFeatures.support:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 306: proto.WebFeatures.groupUiiCleanup:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 307: proto.WebFeatures.groupDogfoodingInternalOnly:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 308: proto.WebFeatures.settingsSync:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 309: proto.WebFeatures.archiveV2:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 310: proto.WebFeatures.ephemeralAllowGroupMembers:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 311: proto.WebFeatures.ephemeral24HDuration:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 312: proto.WebFeatures.mdForceUpgrade:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 313: proto.WebFeatures.disappearingMode:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 314: proto.WebFeatures.externalMdOptInAvailable:type_name -> proto.WebFeatures.WebFeaturesFlag - 43, // 315: proto.WebFeatures.noDeleteMessageTimeLimit:type_name -> proto.WebFeatures.WebFeaturesFlag - 219, // 316: proto.NotificationMessageInfo.key:type_name -> proto.MessageKey - 197, // 317: proto.NotificationMessageInfo.message:type_name -> proto.Message - 229, // 318: proto.WebNotificationsInfo.notifyMessages:type_name -> proto.WebMessageInfo - 44, // 319: proto.PaymentInfo.currencyDeprecated:type_name -> proto.PaymentInfo.PaymentInfoCurrency - 45, // 320: proto.PaymentInfo.status:type_name -> proto.PaymentInfo.PaymentInfoStatus - 219, // 321: proto.PaymentInfo.requestMessageKey:type_name -> proto.MessageKey - 46, // 322: proto.PaymentInfo.txnStatus:type_name -> proto.PaymentInfo.PaymentInfoTxnStatus - 202, // 323: proto.PaymentInfo.primaryAmount:type_name -> proto.Money - 202, // 324: proto.PaymentInfo.exchangeAmount:type_name -> proto.Money - 219, // 325: proto.WebMessageInfo.key:type_name -> proto.MessageKey - 197, // 326: proto.WebMessageInfo.message:type_name -> proto.Message - 47, // 327: proto.WebMessageInfo.status:type_name -> proto.WebMessageInfo.WebMessageInfoStatus - 48, // 328: proto.WebMessageInfo.messageStubType:type_name -> proto.WebMessageInfo.WebMessageInfoStubType - 228, // 329: proto.WebMessageInfo.paymentInfo:type_name -> proto.PaymentInfo - 160, // 330: proto.WebMessageInfo.finalLiveLocation:type_name -> proto.LiveLocationMessage - 228, // 331: proto.WebMessageInfo.quotedPaymentInfo:type_name -> proto.PaymentInfo - 49, // 332: proto.WebMessageInfo.bizPrivacyStatus:type_name -> proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus - 224, // 333: proto.WebMessageInfo.mediaData:type_name -> proto.MediaData - 223, // 334: proto.WebMessageInfo.photoChange:type_name -> proto.PhotoChange - 221, // 335: proto.WebMessageInfo.userReceipt:type_name -> proto.UserReceipt - 220, // 336: proto.WebMessageInfo.reactions:type_name -> proto.Reaction - 224, // 337: proto.WebMessageInfo.quotedStickerData:type_name -> proto.MediaData - 222, // 338: proto.WebMessageInfo.statusPsa:type_name -> proto.StatusPSA - 339, // [339:339] is the sub-list for method output_type - 339, // [339:339] is the sub-list for method input_type - 339, // [339:339] is the sub-list for extension type_name - 339, // [339:339] is the sub-list for extension extendee - 0, // [0:339] is the sub-list for field type_name + 56, // 0: proto.CompanionProps.version:type_name -> proto.AppVersion + 1, // 1: proto.CompanionProps.platformType:type_name -> proto.CompanionProps.CompanionPropsPlatformType + 132, // 2: proto.StickerMessage.contextInfo:type_name -> proto.ContextInfo + 149, // 3: proto.SendPaymentMessage.noteMessage:type_name -> proto.Message + 170, // 4: proto.SendPaymentMessage.requestMessageKey:type_name -> proto.MessageKey + 146, // 5: proto.SendPaymentMessage.background:type_name -> proto.PaymentBackground + 149, // 6: proto.RequestPaymentMessage.noteMessage:type_name -> proto.Message + 148, // 7: proto.RequestPaymentMessage.amount:type_name -> proto.Money + 146, // 8: proto.RequestPaymentMessage.background:type_name -> proto.PaymentBackground + 170, // 9: proto.ReactionMessage.key:type_name -> proto.MessageKey + 170, // 10: proto.ProtocolMessage.key:type_name -> proto.MessageKey + 2, // 11: proto.ProtocolMessage.type:type_name -> proto.ProtocolMessage.ProtocolMessageType + 93, // 12: proto.ProtocolMessage.historySyncNotification:type_name -> proto.HistorySyncNotification + 118, // 13: proto.ProtocolMessage.appStateSyncKeyShare:type_name -> proto.AppStateSyncKeyShare + 119, // 14: proto.ProtocolMessage.appStateSyncKeyRequest:type_name -> proto.AppStateSyncKeyRequest + 91, // 15: proto.ProtocolMessage.initialSecurityNotificationSettingSync:type_name -> proto.InitialSecurityNotificationSettingSync + 123, // 16: proto.ProtocolMessage.appStateFatalExceptionNotification:type_name -> proto.AppStateFatalExceptionNotification + 130, // 17: proto.ProtocolMessage.disappearingMode:type_name -> proto.DisappearingMode + 64, // 18: proto.ProductMessage.product:type_name -> proto.ProductSnapshot + 65, // 19: proto.ProductMessage.catalog:type_name -> proto.CatalogSnapshot + 132, // 20: proto.ProductMessage.contextInfo:type_name -> proto.ContextInfo + 92, // 21: proto.ProductSnapshot.productImage:type_name -> proto.ImageMessage + 92, // 22: proto.CatalogSnapshot.catalogImage:type_name -> proto.ImageMessage + 3, // 23: proto.PaymentInviteMessage.serviceType:type_name -> proto.PaymentInviteMessage.PaymentInviteMessageServiceType + 4, // 24: proto.OrderMessage.status:type_name -> proto.OrderMessage.OrderMessageOrderStatus + 5, // 25: proto.OrderMessage.surface:type_name -> proto.OrderMessage.OrderMessageOrderSurface + 132, // 26: proto.OrderMessage.contextInfo:type_name -> proto.ContextInfo + 132, // 27: proto.LocationMessage.contextInfo:type_name -> proto.ContextInfo + 132, // 28: proto.LiveLocationMessage.contextInfo:type_name -> proto.ContextInfo + 6, // 29: proto.ListResponseMessage.listType:type_name -> proto.ListResponseMessage.ListResponseMessageListType + 71, // 30: proto.ListResponseMessage.singleSelectReply:type_name -> proto.SingleSelectReply + 132, // 31: proto.ListResponseMessage.contextInfo:type_name -> proto.ContextInfo + 7, // 32: proto.ListMessage.listType:type_name -> proto.ListMessage.ListMessageListType + 73, // 33: proto.ListMessage.sections:type_name -> proto.Section + 77, // 34: proto.ListMessage.productListInfo:type_name -> proto.ProductListInfo + 132, // 35: proto.ListMessage.contextInfo:type_name -> proto.ContextInfo + 74, // 36: proto.Section.rows:type_name -> proto.Row + 75, // 37: proto.ProductSection.products:type_name -> proto.Product + 76, // 38: proto.ProductListInfo.productSections:type_name -> proto.ProductSection + 78, // 39: proto.ProductListInfo.headerImage:type_name -> proto.ProductListHeaderImage + 8, // 40: proto.InvoiceMessage.attachmentType:type_name -> proto.InvoiceMessage.InvoiceMessageAttachmentType + 82, // 41: proto.InteractiveResponseMessage.body:type_name -> proto.InteractiveResponseMessageBody + 132, // 42: proto.InteractiveResponseMessage.contextInfo:type_name -> proto.ContextInfo + 81, // 43: proto.InteractiveResponseMessage.nativeFlowResponseMessage:type_name -> proto.NativeFlowResponseMessage + 87, // 44: proto.InteractiveMessage.header:type_name -> proto.Header + 90, // 45: proto.InteractiveMessage.body:type_name -> proto.InteractiveMessageBody + 88, // 46: proto.InteractiveMessage.footer:type_name -> proto.Footer + 132, // 47: proto.InteractiveMessage.contextInfo:type_name -> proto.ContextInfo + 84, // 48: proto.InteractiveMessage.shopStorefrontMessage:type_name -> proto.ShopMessage + 89, // 49: proto.InteractiveMessage.collectionMessage:type_name -> proto.CollectionMessage + 85, // 50: proto.InteractiveMessage.nativeFlowMessage:type_name -> proto.NativeFlowMessage + 9, // 51: proto.ShopMessage.surface:type_name -> proto.ShopMessage.ShopMessageSurface + 86, // 52: proto.NativeFlowMessage.buttons:type_name -> proto.NativeFlowButton + 103, // 53: proto.Header.documentMessage:type_name -> proto.DocumentMessage + 92, // 54: proto.Header.imageMessage:type_name -> proto.ImageMessage + 151, // 55: proto.Header.videoMessage:type_name -> proto.VideoMessage + 125, // 56: proto.ImageMessage.interactiveAnnotations:type_name -> proto.InteractiveAnnotation + 132, // 57: proto.ImageMessage.contextInfo:type_name -> proto.ContextInfo + 10, // 58: proto.HistorySyncNotification.syncType:type_name -> proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType + 95, // 59: proto.HighlyStructuredMessage.localizableParams:type_name -> proto.HSMLocalizableParameter + 152, // 60: proto.HighlyStructuredMessage.hydratedHsm:type_name -> proto.TemplateMessage + 99, // 61: proto.HSMLocalizableParameter.currency:type_name -> proto.HSMCurrency + 96, // 62: proto.HSMLocalizableParameter.dateTime:type_name -> proto.HSMDateTime + 98, // 63: proto.HSMDateTime.component:type_name -> proto.HSMDateTimeComponent + 97, // 64: proto.HSMDateTime.unixEpoch:type_name -> proto.HSMDateTimeUnixEpoch + 11, // 65: proto.HSMDateTimeComponent.dayOfWeek:type_name -> proto.HSMDateTimeComponent.HSMDateTimeComponentDayOfWeekType + 12, // 66: proto.HSMDateTimeComponent.calendar:type_name -> proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType + 132, // 67: proto.GroupInviteMessage.contextInfo:type_name -> proto.ContextInfo + 13, // 68: proto.GroupInviteMessage.groupType:type_name -> proto.GroupInviteMessage.GroupInviteMessageGroupType + 149, // 69: proto.FutureProofMessage.message:type_name -> proto.Message + 14, // 70: proto.ExtendedTextMessage.font:type_name -> proto.ExtendedTextMessage.ExtendedTextMessageFontType + 15, // 71: proto.ExtendedTextMessage.previewType:type_name -> proto.ExtendedTextMessage.ExtendedTextMessagePreviewType + 132, // 72: proto.ExtendedTextMessage.contextInfo:type_name -> proto.ContextInfo + 16, // 73: proto.ExtendedTextMessage.inviteLinkGroupType:type_name -> proto.ExtendedTextMessage.ExtendedTextMessageInviteLinkGroupType + 132, // 74: proto.DocumentMessage.contextInfo:type_name -> proto.ContextInfo + 149, // 75: proto.DeviceSentMessage.message:type_name -> proto.Message + 170, // 76: proto.DeclinePaymentRequestMessage.key:type_name -> proto.MessageKey + 107, // 77: proto.ContactsArrayMessage.contacts:type_name -> proto.ContactMessage + 132, // 78: proto.ContactsArrayMessage.contextInfo:type_name -> proto.ContextInfo + 132, // 79: proto.ContactMessage.contextInfo:type_name -> proto.ContextInfo + 170, // 80: proto.CancelPaymentRequestMessage.key:type_name -> proto.MessageKey + 132, // 81: proto.ButtonsResponseMessage.contextInfo:type_name -> proto.ContextInfo + 17, // 82: proto.ButtonsResponseMessage.type:type_name -> proto.ButtonsResponseMessage.ButtonsResponseMessageType + 132, // 83: proto.ButtonsMessage.contextInfo:type_name -> proto.ContextInfo + 113, // 84: proto.ButtonsMessage.buttons:type_name -> proto.Button + 18, // 85: proto.ButtonsMessage.headerType:type_name -> proto.ButtonsMessage.ButtonsMessageHeaderType + 103, // 86: proto.ButtonsMessage.documentMessage:type_name -> proto.DocumentMessage + 92, // 87: proto.ButtonsMessage.imageMessage:type_name -> proto.ImageMessage + 151, // 88: proto.ButtonsMessage.videoMessage:type_name -> proto.VideoMessage + 68, // 89: proto.ButtonsMessage.locationMessage:type_name -> proto.LocationMessage + 115, // 90: proto.Button.buttonText:type_name -> proto.ButtonText + 19, // 91: proto.Button.type:type_name -> proto.Button.ButtonType + 114, // 92: proto.Button.nativeFlowInfo:type_name -> proto.NativeFlowInfo + 132, // 93: proto.AudioMessage.contextInfo:type_name -> proto.ContextInfo + 120, // 94: proto.AppStateSyncKey.keyId:type_name -> proto.AppStateSyncKeyId + 122, // 95: proto.AppStateSyncKey.keyData:type_name -> proto.AppStateSyncKeyData + 117, // 96: proto.AppStateSyncKeyShare.keys:type_name -> proto.AppStateSyncKey + 120, // 97: proto.AppStateSyncKeyRequest.keyIds:type_name -> proto.AppStateSyncKeyId + 121, // 98: proto.AppStateSyncKeyData.fingerprint:type_name -> proto.AppStateSyncKeyFingerprint + 145, // 99: proto.InteractiveAnnotation.polygonVertices:type_name -> proto.Point + 124, // 100: proto.InteractiveAnnotation.location:type_name -> proto.Location + 128, // 101: proto.HydratedTemplateButton.quickReplyButton:type_name -> proto.HydratedQuickReplyButton + 127, // 102: proto.HydratedTemplateButton.urlButton:type_name -> proto.HydratedURLButton + 129, // 103: proto.HydratedTemplateButton.callButton:type_name -> proto.HydratedCallButton + 20, // 104: proto.DisappearingMode.initiator:type_name -> proto.DisappearingMode.DisappearingModeInitiator + 149, // 105: proto.ContextInfo.quotedMessage:type_name -> proto.Message + 134, // 106: proto.ContextInfo.quotedAd:type_name -> proto.AdReplyInfo + 170, // 107: proto.ContextInfo.placeholderKey:type_name -> proto.MessageKey + 133, // 108: proto.ContextInfo.externalAdReply:type_name -> proto.ExternalAdReplyInfo + 130, // 109: proto.ContextInfo.disappearingMode:type_name -> proto.DisappearingMode + 135, // 110: proto.ContextInfo.actionLink:type_name -> proto.ActionLink + 21, // 111: proto.ExternalAdReplyInfo.mediaType:type_name -> proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType + 22, // 112: proto.AdReplyInfo.mediaType:type_name -> proto.AdReplyInfo.AdReplyInfoMediaType + 138, // 113: proto.TemplateButton.quickReplyButton:type_name -> proto.QuickReplyButton + 137, // 114: proto.TemplateButton.urlButton:type_name -> proto.URLButton + 139, // 115: proto.TemplateButton.callButton:type_name -> proto.CallButton + 94, // 116: proto.URLButton.displayText:type_name -> proto.HighlyStructuredMessage + 94, // 117: proto.URLButton.url:type_name -> proto.HighlyStructuredMessage + 94, // 118: proto.QuickReplyButton.displayText:type_name -> proto.HighlyStructuredMessage + 94, // 119: proto.CallButton.displayText:type_name -> proto.HighlyStructuredMessage + 94, // 120: proto.CallButton.phoneNumber:type_name -> proto.HighlyStructuredMessage + 170, // 121: proto.PollUpdateMessage.pollCreationMessageKey:type_name -> proto.MessageKey + 142, // 122: proto.PollUpdateMessageContent.voteMessage:type_name -> proto.PollVoteMessage + 144, // 123: proto.PollCreationMessage.options:type_name -> proto.Option + 147, // 124: proto.PaymentBackground.mediaData:type_name -> proto.PBMediaData + 23, // 125: proto.PaymentBackground.type:type_name -> proto.PaymentBackground.PaymentBackgroundType + 58, // 126: proto.Message.senderKeyDistributionMessage:type_name -> proto.SenderKeyDistributionMessage + 92, // 127: proto.Message.imageMessage:type_name -> proto.ImageMessage + 107, // 128: proto.Message.contactMessage:type_name -> proto.ContactMessage + 68, // 129: proto.Message.locationMessage:type_name -> proto.LocationMessage + 102, // 130: proto.Message.extendedTextMessage:type_name -> proto.ExtendedTextMessage + 103, // 131: proto.Message.documentMessage:type_name -> proto.DocumentMessage + 116, // 132: proto.Message.audioMessage:type_name -> proto.AudioMessage + 151, // 133: proto.Message.videoMessage:type_name -> proto.VideoMessage + 110, // 134: proto.Message.call:type_name -> proto.Call + 108, // 135: proto.Message.chat:type_name -> proto.Chat + 62, // 136: proto.Message.protocolMessage:type_name -> proto.ProtocolMessage + 106, // 137: proto.Message.contactsArrayMessage:type_name -> proto.ContactsArrayMessage + 94, // 138: proto.Message.highlyStructuredMessage:type_name -> proto.HighlyStructuredMessage + 58, // 139: proto.Message.fastRatchetKeySenderKeyDistributionMessage:type_name -> proto.SenderKeyDistributionMessage + 59, // 140: proto.Message.sendPaymentMessage:type_name -> proto.SendPaymentMessage + 69, // 141: proto.Message.liveLocationMessage:type_name -> proto.LiveLocationMessage + 60, // 142: proto.Message.requestPaymentMessage:type_name -> proto.RequestPaymentMessage + 105, // 143: proto.Message.declinePaymentRequestMessage:type_name -> proto.DeclinePaymentRequestMessage + 109, // 144: proto.Message.cancelPaymentRequestMessage:type_name -> proto.CancelPaymentRequestMessage + 152, // 145: proto.Message.templateMessage:type_name -> proto.TemplateMessage + 57, // 146: proto.Message.stickerMessage:type_name -> proto.StickerMessage + 100, // 147: proto.Message.groupInviteMessage:type_name -> proto.GroupInviteMessage + 155, // 148: proto.Message.templateButtonReplyMessage:type_name -> proto.TemplateButtonReplyMessage + 63, // 149: proto.Message.productMessage:type_name -> proto.ProductMessage + 104, // 150: proto.Message.deviceSentMessage:type_name -> proto.DeviceSentMessage + 150, // 151: proto.Message.messageContextInfo:type_name -> proto.MessageContextInfo + 72, // 152: proto.Message.listMessage:type_name -> proto.ListMessage + 101, // 153: proto.Message.viewOnceMessage:type_name -> proto.FutureProofMessage + 67, // 154: proto.Message.orderMessage:type_name -> proto.OrderMessage + 70, // 155: proto.Message.listResponseMessage:type_name -> proto.ListResponseMessage + 101, // 156: proto.Message.ephemeralMessage:type_name -> proto.FutureProofMessage + 79, // 157: proto.Message.invoiceMessage:type_name -> proto.InvoiceMessage + 112, // 158: proto.Message.buttonsMessage:type_name -> proto.ButtonsMessage + 111, // 159: proto.Message.buttonsResponseMessage:type_name -> proto.ButtonsResponseMessage + 66, // 160: proto.Message.paymentInviteMessage:type_name -> proto.PaymentInviteMessage + 83, // 161: proto.Message.interactiveMessage:type_name -> proto.InteractiveMessage + 61, // 162: proto.Message.reactionMessage:type_name -> proto.ReactionMessage + 156, // 163: proto.Message.stickerSyncRmrMessage:type_name -> proto.StickerSyncRMRMessage + 80, // 164: proto.Message.interactiveResponseMessage:type_name -> proto.InteractiveResponseMessage + 143, // 165: proto.Message.pollCreationMessage:type_name -> proto.PollCreationMessage + 140, // 166: proto.Message.pollUpdateMessage:type_name -> proto.PollUpdateMessage + 131, // 167: proto.MessageContextInfo.deviceListMetadata:type_name -> proto.DeviceListMetadata + 125, // 168: proto.VideoMessage.interactiveAnnotations:type_name -> proto.InteractiveAnnotation + 132, // 169: proto.VideoMessage.contextInfo:type_name -> proto.ContextInfo + 24, // 170: proto.VideoMessage.gifAttribution:type_name -> proto.VideoMessage.VideoMessageAttribution + 132, // 171: proto.TemplateMessage.contextInfo:type_name -> proto.ContextInfo + 153, // 172: proto.TemplateMessage.hydratedTemplate:type_name -> proto.HydratedFourRowTemplate + 154, // 173: proto.TemplateMessage.fourRowTemplate:type_name -> proto.FourRowTemplate + 153, // 174: proto.TemplateMessage.hydratedFourRowTemplate:type_name -> proto.HydratedFourRowTemplate + 126, // 175: proto.HydratedFourRowTemplate.hydratedButtons:type_name -> proto.HydratedTemplateButton + 103, // 176: proto.HydratedFourRowTemplate.documentMessage:type_name -> proto.DocumentMessage + 92, // 177: proto.HydratedFourRowTemplate.imageMessage:type_name -> proto.ImageMessage + 151, // 178: proto.HydratedFourRowTemplate.videoMessage:type_name -> proto.VideoMessage + 68, // 179: proto.HydratedFourRowTemplate.locationMessage:type_name -> proto.LocationMessage + 94, // 180: proto.FourRowTemplate.content:type_name -> proto.HighlyStructuredMessage + 94, // 181: proto.FourRowTemplate.footer:type_name -> proto.HighlyStructuredMessage + 136, // 182: proto.FourRowTemplate.buttons:type_name -> proto.TemplateButton + 103, // 183: proto.FourRowTemplate.documentMessage:type_name -> proto.DocumentMessage + 94, // 184: proto.FourRowTemplate.highlyStructuredMessage:type_name -> proto.HighlyStructuredMessage + 92, // 185: proto.FourRowTemplate.imageMessage:type_name -> proto.ImageMessage + 151, // 186: proto.FourRowTemplate.videoMessage:type_name -> proto.VideoMessage + 68, // 187: proto.FourRowTemplate.locationMessage:type_name -> proto.LocationMessage + 132, // 188: proto.TemplateButtonReplyMessage.contextInfo:type_name -> proto.ContextInfo + 25, // 189: proto.HistorySync.syncType:type_name -> proto.HistorySync.HistorySyncHistorySyncType + 164, // 190: proto.HistorySync.conversations:type_name -> proto.Conversation + 230, // 191: proto.HistorySync.statusV3Messages:type_name -> proto.WebMessageInfo + 159, // 192: proto.HistorySync.pushnames:type_name -> proto.Pushname + 163, // 193: proto.HistorySync.globalSettings:type_name -> proto.GlobalSettings + 230, // 194: proto.HistorySyncMsg.message:type_name -> proto.WebMessageInfo + 26, // 195: proto.GroupParticipant.rank:type_name -> proto.GroupParticipant.GroupParticipantRank + 158, // 196: proto.GlobalSettings.lightThemeWallpaper:type_name -> proto.WallpaperSettings + 0, // 197: proto.GlobalSettings.mediaVisibility:type_name -> proto.MediaVisibility + 158, // 198: proto.GlobalSettings.darkThemeWallpaper:type_name -> proto.WallpaperSettings + 165, // 199: proto.GlobalSettings.autoDownloadWiFi:type_name -> proto.AutoDownloadSettings + 165, // 200: proto.GlobalSettings.autoDownloadCellular:type_name -> proto.AutoDownloadSettings + 165, // 201: proto.GlobalSettings.autoDownloadRoaming:type_name -> proto.AutoDownloadSettings + 161, // 202: proto.Conversation.messages:type_name -> proto.HistorySyncMsg + 27, // 203: proto.Conversation.endOfHistoryTransferType:type_name -> proto.Conversation.ConversationEndOfHistoryTransferType + 130, // 204: proto.Conversation.disappearingMode:type_name -> proto.DisappearingMode + 162, // 205: proto.Conversation.participant:type_name -> proto.GroupParticipant + 158, // 206: proto.Conversation.wallpaper:type_name -> proto.WallpaperSettings + 0, // 207: proto.Conversation.mediaVisibility:type_name -> proto.MediaVisibility + 167, // 208: proto.MsgRowOpaqueData.currentMsg:type_name -> proto.MsgOpaqueData + 167, // 209: proto.MsgRowOpaqueData.quotedMsg:type_name -> proto.MsgOpaqueData + 28, // 210: proto.MediaRetryNotification.result:type_name -> proto.MediaRetryNotification.MediaRetryNotificationResultType + 171, // 211: proto.SyncdSnapshot.version:type_name -> proto.SyncdVersion + 174, // 212: proto.SyncdSnapshot.records:type_name -> proto.SyncdRecord + 179, // 213: proto.SyncdSnapshot.keyId:type_name -> proto.KeyId + 178, // 214: proto.SyncdRecord.index:type_name -> proto.SyncdIndex + 172, // 215: proto.SyncdRecord.value:type_name -> proto.SyncdValue + 179, // 216: proto.SyncdRecord.keyId:type_name -> proto.KeyId + 171, // 217: proto.SyncdPatch.version:type_name -> proto.SyncdVersion + 177, // 218: proto.SyncdPatch.mutations:type_name -> proto.SyncdMutation + 180, // 219: proto.SyncdPatch.externalMutations:type_name -> proto.ExternalBlobReference + 179, // 220: proto.SyncdPatch.keyId:type_name -> proto.KeyId + 181, // 221: proto.SyncdPatch.exitCode:type_name -> proto.ExitCode + 177, // 222: proto.SyncdMutations.mutations:type_name -> proto.SyncdMutation + 29, // 223: proto.SyncdMutation.operation:type_name -> proto.SyncdMutation.SyncdMutationSyncdOperation + 174, // 224: proto.SyncdMutation.record:type_name -> proto.SyncdRecord + 186, // 225: proto.SyncActionValue.starAction:type_name -> proto.StarAction + 204, // 226: proto.SyncActionValue.contactAction:type_name -> proto.ContactAction + 195, // 227: proto.SyncActionValue.muteAction:type_name -> proto.MuteAction + 194, // 228: proto.SyncActionValue.pinAction:type_name -> proto.PinAction + 187, // 229: proto.SyncActionValue.securityNotificationSetting:type_name -> proto.SecurityNotificationSetting + 192, // 230: proto.SyncActionValue.pushNameSetting:type_name -> proto.PushNameSetting + 191, // 231: proto.SyncActionValue.quickReplyAction:type_name -> proto.QuickReplyAction + 188, // 232: proto.SyncActionValue.recentStickerWeightsAction:type_name -> proto.RecentStickerWeightsAction + 189, // 233: proto.SyncActionValue.recentStickerMetadata:type_name -> proto.RecentStickerMetadata + 190, // 234: proto.SyncActionValue.recentEmojiWeightsAction:type_name -> proto.RecentEmojiWeightsAction + 198, // 235: proto.SyncActionValue.labelEditAction:type_name -> proto.LabelEditAction + 199, // 236: proto.SyncActionValue.labelAssociationAction:type_name -> proto.LabelAssociationAction + 197, // 237: proto.SyncActionValue.localeSetting:type_name -> proto.LocaleSetting + 206, // 238: proto.SyncActionValue.archiveChatAction:type_name -> proto.ArchiveChatAction + 202, // 239: proto.SyncActionValue.deleteMessageForMeAction:type_name -> proto.DeleteMessageForMeAction + 200, // 240: proto.SyncActionValue.keyExpiration:type_name -> proto.KeyExpiration + 196, // 241: proto.SyncActionValue.markChatAsReadAction:type_name -> proto.MarkChatAsReadAction + 205, // 242: proto.SyncActionValue.clearChatAction:type_name -> proto.ClearChatAction + 203, // 243: proto.SyncActionValue.deleteChatAction:type_name -> proto.DeleteChatAction + 183, // 244: proto.SyncActionValue.unarchiveChatsSetting:type_name -> proto.UnarchiveChatsSetting + 193, // 245: proto.SyncActionValue.primaryFeature:type_name -> proto.PrimaryFeature + 201, // 246: proto.SyncActionValue.favoriteStickerAction:type_name -> proto.FavoriteStickerAction + 207, // 247: proto.SyncActionValue.androidUnsupportedActions:type_name -> proto.AndroidUnsupportedActions + 170, // 248: proto.SyncActionMessage.key:type_name -> proto.MessageKey + 184, // 249: proto.SyncActionMessageRange.messages:type_name -> proto.SyncActionMessage + 209, // 250: proto.RecentStickerWeightsAction.weights:type_name -> proto.RecentStickerWeight + 210, // 251: proto.RecentEmojiWeightsAction.weights:type_name -> proto.RecentEmojiWeight + 185, // 252: proto.MarkChatAsReadAction.messageRange:type_name -> proto.SyncActionMessageRange + 185, // 253: proto.DeleteChatAction.messageRange:type_name -> proto.SyncActionMessageRange + 185, // 254: proto.ClearChatAction.messageRange:type_name -> proto.SyncActionMessageRange + 185, // 255: proto.ArchiveChatAction.messageRange:type_name -> proto.SyncActionMessageRange + 182, // 256: proto.SyncActionData.value:type_name -> proto.SyncActionValue + 213, // 257: proto.VerifiedNameDetails.localizedNames:type_name -> proto.LocalizedName + 30, // 258: proto.BizIdentityInfo.vlevel:type_name -> proto.BizIdentityInfo.BizIdentityInfoVerifiedLevelValue + 211, // 259: proto.BizIdentityInfo.vnameCert:type_name -> proto.VerifiedNameCertificate + 31, // 260: proto.BizIdentityInfo.hostStorage:type_name -> proto.BizIdentityInfo.BizIdentityInfoHostStorageType + 32, // 261: proto.BizIdentityInfo.actualActors:type_name -> proto.BizIdentityInfo.BizIdentityInfoActualActorsType + 211, // 262: proto.BizAccountPayload.vnameCert:type_name -> proto.VerifiedNameCertificate + 33, // 263: proto.BizAccountLinkInfo.hostStorage:type_name -> proto.BizAccountLinkInfo.BizAccountLinkInfoHostStorageType + 34, // 264: proto.BizAccountLinkInfo.accountType:type_name -> proto.BizAccountLinkInfo.BizAccountLinkInfoAccountType + 221, // 265: proto.HandshakeMessage.clientHello:type_name -> proto.ClientHello + 220, // 266: proto.HandshakeMessage.serverHello:type_name -> proto.ServerHello + 222, // 267: proto.HandshakeMessage.clientFinish:type_name -> proto.ClientFinish + 226, // 268: proto.ClientPayload.userAgent:type_name -> proto.UserAgent + 224, // 269: proto.ClientPayload.webInfo:type_name -> proto.WebInfo + 35, // 270: proto.ClientPayload.connectType:type_name -> proto.ClientPayload.ClientPayloadConnectType + 36, // 271: proto.ClientPayload.connectReason:type_name -> proto.ClientPayload.ClientPayloadConnectReason + 227, // 272: proto.ClientPayload.dnsSource:type_name -> proto.DNSSource + 228, // 273: proto.ClientPayload.regData:type_name -> proto.CompanionRegData + 37, // 274: proto.ClientPayload.product:type_name -> proto.ClientPayload.ClientPayloadProduct + 38, // 275: proto.ClientPayload.iosAppExtension:type_name -> proto.ClientPayload.ClientPayloadIOSAppExtension + 225, // 276: proto.WebInfo.webdPayload:type_name -> proto.WebdPayload + 39, // 277: proto.WebInfo.webSubPlatform:type_name -> proto.WebInfo.WebInfoWebSubPlatform + 40, // 278: proto.UserAgent.platform:type_name -> proto.UserAgent.UserAgentPlatform + 56, // 279: proto.UserAgent.appVersion:type_name -> proto.AppVersion + 41, // 280: proto.UserAgent.releaseChannel:type_name -> proto.UserAgent.UserAgentReleaseChannel + 42, // 281: proto.DNSSource.dnsMethod:type_name -> proto.DNSSource.DNSSourceDNSResolutionMethod + 230, // 282: proto.WebNotificationsInfo.notifyMessages:type_name -> proto.WebMessageInfo + 170, // 283: proto.WebMessageInfo.key:type_name -> proto.MessageKey + 149, // 284: proto.WebMessageInfo.message:type_name -> proto.Message + 43, // 285: proto.WebMessageInfo.status:type_name -> proto.WebMessageInfo.WebMessageInfoStatus + 44, // 286: proto.WebMessageInfo.messageStubType:type_name -> proto.WebMessageInfo.WebMessageInfoStubType + 238, // 287: proto.WebMessageInfo.paymentInfo:type_name -> proto.PaymentInfo + 69, // 288: proto.WebMessageInfo.finalLiveLocation:type_name -> proto.LiveLocationMessage + 238, // 289: proto.WebMessageInfo.quotedPaymentInfo:type_name -> proto.PaymentInfo + 45, // 290: proto.WebMessageInfo.bizPrivacyStatus:type_name -> proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus + 240, // 291: proto.WebMessageInfo.mediaData:type_name -> proto.MediaData + 237, // 292: proto.WebMessageInfo.photoChange:type_name -> proto.PhotoChange + 232, // 293: proto.WebMessageInfo.userReceipt:type_name -> proto.UserReceipt + 234, // 294: proto.WebMessageInfo.reactions:type_name -> proto.Reaction + 240, // 295: proto.WebMessageInfo.quotedStickerData:type_name -> proto.MediaData + 233, // 296: proto.WebMessageInfo.statusPsa:type_name -> proto.StatusPSA + 235, // 297: proto.WebMessageInfo.pollUpdates:type_name -> proto.PollUpdate + 236, // 298: proto.WebMessageInfo.pollAdditionalMetadata:type_name -> proto.PollAdditionalMetadata + 46, // 299: proto.WebFeatures.labelsDisplay:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 300: proto.WebFeatures.voipIndividualOutgoing:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 301: proto.WebFeatures.groupsV3:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 302: proto.WebFeatures.groupsV3Create:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 303: proto.WebFeatures.changeNumberV2:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 304: proto.WebFeatures.queryStatusV3Thumbnail:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 305: proto.WebFeatures.liveLocations:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 306: proto.WebFeatures.queryVname:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 307: proto.WebFeatures.voipIndividualIncoming:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 308: proto.WebFeatures.quickRepliesQuery:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 309: proto.WebFeatures.payments:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 310: proto.WebFeatures.stickerPackQuery:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 311: proto.WebFeatures.liveLocationsFinal:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 312: proto.WebFeatures.labelsEdit:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 313: proto.WebFeatures.mediaUpload:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 314: proto.WebFeatures.mediaUploadRichQuickReplies:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 315: proto.WebFeatures.vnameV2:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 316: proto.WebFeatures.videoPlaybackUrl:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 317: proto.WebFeatures.statusRanking:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 318: proto.WebFeatures.voipIndividualVideo:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 319: proto.WebFeatures.thirdPartyStickers:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 320: proto.WebFeatures.frequentlyForwardedSetting:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 321: proto.WebFeatures.groupsV4JoinPermission:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 322: proto.WebFeatures.recentStickers:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 323: proto.WebFeatures.catalog:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 324: proto.WebFeatures.starredStickers:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 325: proto.WebFeatures.voipGroupCall:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 326: proto.WebFeatures.templateMessage:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 327: proto.WebFeatures.templateMessageInteractivity:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 328: proto.WebFeatures.ephemeralMessages:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 329: proto.WebFeatures.e2ENotificationSync:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 330: proto.WebFeatures.recentStickersV2:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 331: proto.WebFeatures.recentStickersV3:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 332: proto.WebFeatures.userNotice:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 333: proto.WebFeatures.support:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 334: proto.WebFeatures.groupUiiCleanup:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 335: proto.WebFeatures.groupDogfoodingInternalOnly:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 336: proto.WebFeatures.settingsSync:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 337: proto.WebFeatures.archiveV2:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 338: proto.WebFeatures.ephemeralAllowGroupMembers:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 339: proto.WebFeatures.ephemeral24HDuration:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 340: proto.WebFeatures.mdForceUpgrade:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 341: proto.WebFeatures.disappearingMode:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 342: proto.WebFeatures.externalMdOptInAvailable:type_name -> proto.WebFeatures.WebFeaturesFlag + 46, // 343: proto.WebFeatures.noDeleteMessageTimeLimit:type_name -> proto.WebFeatures.WebFeaturesFlag + 170, // 344: proto.Reaction.key:type_name -> proto.MessageKey + 170, // 345: proto.PollUpdate.pollUpdateMessageKey:type_name -> proto.MessageKey + 141, // 346: proto.PollUpdate.pollUpdateMessage:type_name -> proto.PollUpdateMessageContent + 47, // 347: proto.PaymentInfo.currencyDeprecated:type_name -> proto.PaymentInfo.PaymentInfoCurrency + 48, // 348: proto.PaymentInfo.status:type_name -> proto.PaymentInfo.PaymentInfoStatus + 170, // 349: proto.PaymentInfo.requestMessageKey:type_name -> proto.MessageKey + 49, // 350: proto.PaymentInfo.txnStatus:type_name -> proto.PaymentInfo.PaymentInfoTxnStatus + 148, // 351: proto.PaymentInfo.primaryAmount:type_name -> proto.Money + 148, // 352: proto.PaymentInfo.exchangeAmount:type_name -> proto.Money + 170, // 353: proto.NotificationMessageInfo.key:type_name -> proto.MessageKey + 149, // 354: proto.NotificationMessageInfo.message:type_name -> proto.Message + 355, // [355:355] is the sub-list for method output_type + 355, // [355:355] is the sub-list for method input_type + 355, // [355:355] is the sub-list for extension type_name + 355, // [355:355] is the sub-list for extension extendee + 0, // [0:355] is the sub-list for field type_name } func init() { file_binary_proto_def_proto_init() } @@ -19278,7 +20096,7 @@ func file_binary_proto_def_proto_init() { } if !protoimpl.UnsafeEnabled { file_binary_proto_def_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppVersion); i { + switch v := v.(*ADVSignedKeyIndexList); i { case 0: return &v.state case 1: @@ -19290,7 +20108,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserAgent); i { + switch v := v.(*ADVSignedDeviceIdentity); i { case 0: return &v.state case 1: @@ -19302,7 +20120,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WebdPayload); i { + switch v := v.(*ADVSignedDeviceIdentityHMAC); i { case 0: return &v.state case 1: @@ -19314,7 +20132,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WebInfo); i { + switch v := v.(*ADVKeyIndexList); i { case 0: return &v.state case 1: @@ -19326,7 +20144,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DNSSource); i { + switch v := v.(*ADVDeviceIdentity); i { case 0: return &v.state case 1: @@ -19338,7 +20156,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompanionRegData); i { + switch v := v.(*CompanionProps); i { case 0: return &v.state case 1: @@ -19350,7 +20168,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClientPayload); i { + switch v := v.(*AppVersion); i { case 0: return &v.state case 1: @@ -19362,7 +20180,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NoiseCertificateDetails); i { + switch v := v.(*StickerMessage); i { case 0: return &v.state case 1: @@ -19374,7 +20192,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NoiseCertificate); i { + switch v := v.(*SenderKeyDistributionMessage); i { case 0: return &v.state case 1: @@ -19386,7 +20204,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClientHello); i { + switch v := v.(*SendPaymentMessage); i { case 0: return &v.state case 1: @@ -19398,7 +20216,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerHello); i { + switch v := v.(*RequestPaymentMessage); i { case 0: return &v.state case 1: @@ -19410,7 +20228,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClientFinish); i { + switch v := v.(*ReactionMessage); i { case 0: return &v.state case 1: @@ -19422,7 +20240,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HandshakeMessage); i { + switch v := v.(*ProtocolMessage); i { case 0: return &v.state case 1: @@ -19434,7 +20252,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BizIdentityInfo); i { + switch v := v.(*ProductMessage); i { case 0: return &v.state case 1: @@ -19446,7 +20264,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BizAccountLinkInfo); i { + switch v := v.(*ProductSnapshot); i { case 0: return &v.state case 1: @@ -19458,7 +20276,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BizAccountPayload); i { + switch v := v.(*CatalogSnapshot); i { case 0: return &v.state case 1: @@ -19470,7 +20288,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifiedNameDetails); i { + switch v := v.(*PaymentInviteMessage); i { case 0: return &v.state case 1: @@ -19482,7 +20300,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifiedNameCertificate); i { + switch v := v.(*OrderMessage); i { case 0: return &v.state case 1: @@ -19494,7 +20312,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LocalizedName); i { + switch v := v.(*LocationMessage); i { case 0: return &v.state case 1: @@ -19506,7 +20324,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncActionData); i { + switch v := v.(*LiveLocationMessage); i { case 0: return &v.state case 1: @@ -19518,7 +20336,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StarAction); i { + switch v := v.(*ListResponseMessage); i { case 0: return &v.state case 1: @@ -19530,7 +20348,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContactAction); i { + switch v := v.(*SingleSelectReply); i { case 0: return &v.state case 1: @@ -19542,7 +20360,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MuteAction); i { + switch v := v.(*ListMessage); i { case 0: return &v.state case 1: @@ -19554,7 +20372,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PinAction); i { + switch v := v.(*Section); i { case 0: return &v.state case 1: @@ -19566,7 +20384,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SecurityNotificationSetting); i { + switch v := v.(*Row); i { case 0: return &v.state case 1: @@ -19578,7 +20396,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushNameSetting); i { + switch v := v.(*Product); i { case 0: return &v.state case 1: @@ -19590,7 +20408,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LocaleSetting); i { + switch v := v.(*ProductSection); i { case 0: return &v.state case 1: @@ -19602,7 +20420,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuickReplyAction); i { + switch v := v.(*ProductListInfo); i { case 0: return &v.state case 1: @@ -19614,7 +20432,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LabelAssociationAction); i { + switch v := v.(*ProductListHeaderImage); i { case 0: return &v.state case 1: @@ -19626,7 +20444,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LabelEditAction); i { + switch v := v.(*InvoiceMessage); i { case 0: return &v.state case 1: @@ -19638,7 +20456,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RecentStickerWeightsAction); i { + switch v := v.(*InteractiveResponseMessage); i { case 0: return &v.state case 1: @@ -19650,7 +20468,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RecentStickerMetadata); i { + switch v := v.(*NativeFlowResponseMessage); i { case 0: return &v.state case 1: @@ -19662,7 +20480,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RecentEmojiWeightsAction); i { + switch v := v.(*InteractiveResponseMessageBody); i { case 0: return &v.state case 1: @@ -19674,7 +20492,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FavoriteStickerAction); i { + switch v := v.(*InteractiveMessage); i { case 0: return &v.state case 1: @@ -19686,7 +20504,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArchiveChatAction); i { + switch v := v.(*ShopMessage); i { case 0: return &v.state case 1: @@ -19698,7 +20516,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteMessageForMeAction); i { + switch v := v.(*NativeFlowMessage); i { case 0: return &v.state case 1: @@ -19710,7 +20528,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MarkChatAsReadAction); i { + switch v := v.(*NativeFlowButton); i { case 0: return &v.state case 1: @@ -19722,7 +20540,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearChatAction); i { + switch v := v.(*Header); i { case 0: return &v.state case 1: @@ -19734,7 +20552,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteChatAction); i { + switch v := v.(*Footer); i { case 0: return &v.state case 1: @@ -19746,7 +20564,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnarchiveChatsSetting); i { + switch v := v.(*CollectionMessage); i { case 0: return &v.state case 1: @@ -19758,7 +20576,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncActionMessageRange); i { + switch v := v.(*InteractiveMessageBody); i { case 0: return &v.state case 1: @@ -19770,7 +20588,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncActionMessage); i { + switch v := v.(*InitialSecurityNotificationSettingSync); i { case 0: return &v.state case 1: @@ -19782,7 +20600,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyExpiration); i { + switch v := v.(*ImageMessage); i { case 0: return &v.state case 1: @@ -19794,7 +20612,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrimaryFeature); i { + switch v := v.(*HistorySyncNotification); i { case 0: return &v.state case 1: @@ -19806,7 +20624,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AndroidUnsupportedActions); i { + switch v := v.(*HighlyStructuredMessage); i { case 0: return &v.state case 1: @@ -19818,7 +20636,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncActionValue); i { + switch v := v.(*HSMLocalizableParameter); i { case 0: return &v.state case 1: @@ -19830,7 +20648,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RecentEmojiWeight); i { + switch v := v.(*HSMDateTime); i { case 0: return &v.state case 1: @@ -19842,7 +20660,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RecentStickerWeight); i { + switch v := v.(*HSMDateTimeUnixEpoch); i { case 0: return &v.state case 1: @@ -19854,7 +20672,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncdPatch); i { + switch v := v.(*HSMDateTimeComponent); i { case 0: return &v.state case 1: @@ -19866,7 +20684,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncdMutation); i { + switch v := v.(*HSMCurrency); i { case 0: return &v.state case 1: @@ -19878,7 +20696,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncdMutations); i { + switch v := v.(*GroupInviteMessage); i { case 0: return &v.state case 1: @@ -19890,7 +20708,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncdSnapshot); i { + switch v := v.(*FutureProofMessage); i { case 0: return &v.state case 1: @@ -19902,7 +20720,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExternalBlobReference); i { + switch v := v.(*ExtendedTextMessage); i { case 0: return &v.state case 1: @@ -19914,7 +20732,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncdRecord); i { + switch v := v.(*DocumentMessage); i { case 0: return &v.state case 1: @@ -19926,7 +20744,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyId); i { + switch v := v.(*DeviceSentMessage); i { case 0: return &v.state case 1: @@ -19938,7 +20756,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncdValue); i { + switch v := v.(*DeclinePaymentRequestMessage); i { case 0: return &v.state case 1: @@ -19950,7 +20768,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncdIndex); i { + switch v := v.(*ContactsArrayMessage); i { case 0: return &v.state case 1: @@ -19962,7 +20780,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExitCode); i { + switch v := v.(*ContactMessage); i { case 0: return &v.state case 1: @@ -19974,7 +20792,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncdVersion); i { + switch v := v.(*Chat); i { case 0: return &v.state case 1: @@ -19986,7 +20804,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerErrorReceipt); i { + switch v := v.(*CancelPaymentRequestMessage); i { case 0: return &v.state case 1: @@ -19998,7 +20816,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MediaRetryNotification); i { + switch v := v.(*Call); i { case 0: return &v.state case 1: @@ -20010,7 +20828,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOpaqueData); i { + switch v := v.(*ButtonsResponseMessage); i { case 0: return &v.state case 1: @@ -20022,7 +20840,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRowOpaqueData); i { + switch v := v.(*ButtonsMessage); i { case 0: return &v.state case 1: @@ -20034,7 +20852,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GlobalSettings); i { + switch v := v.(*Button); i { case 0: return &v.state case 1: @@ -20046,7 +20864,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WallpaperSettings); i { + switch v := v.(*NativeFlowInfo); i { case 0: return &v.state case 1: @@ -20058,7 +20876,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupParticipant); i { + switch v := v.(*ButtonText); i { case 0: return &v.state case 1: @@ -20070,7 +20888,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Pushname); i { + switch v := v.(*AudioMessage); i { case 0: return &v.state case 1: @@ -20082,7 +20900,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistorySyncMsg); i { + switch v := v.(*AppStateSyncKey); i { case 0: return &v.state case 1: @@ -20094,7 +20912,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Conversation); i { + switch v := v.(*AppStateSyncKeyShare); i { case 0: return &v.state case 1: @@ -20106,7 +20924,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistorySync); i { + switch v := v.(*AppStateSyncKeyRequest); i { case 0: return &v.state case 1: @@ -20118,7 +20936,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EphemeralSetting); i { + switch v := v.(*AppStateSyncKeyId); i { case 0: return &v.state case 1: @@ -20130,7 +20948,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InteractiveAnnotation); i { + switch v := v.(*AppStateSyncKeyFingerprint); i { case 0: return &v.state case 1: @@ -20142,7 +20960,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeviceListMetadata); i { + switch v := v.(*AppStateSyncKeyData); i { case 0: return &v.state case 1: @@ -20154,7 +20972,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MessageContextInfo); i { + switch v := v.(*AppStateFatalExceptionNotification); i { case 0: return &v.state case 1: @@ -20166,7 +20984,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdReplyInfo); i { + switch v := v.(*Location); i { case 0: return &v.state case 1: @@ -20178,7 +20996,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExternalAdReplyInfo); i { + switch v := v.(*InteractiveAnnotation); i { case 0: return &v.state case 1: @@ -20190,7 +21008,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContextInfo); i { + switch v := v.(*HydratedTemplateButton); i { case 0: return &v.state case 1: @@ -20202,7 +21020,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SenderKeyDistributionMessage); i { + switch v := v.(*HydratedURLButton); i { case 0: return &v.state case 1: @@ -20214,7 +21032,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImageMessage); i { + switch v := v.(*HydratedQuickReplyButton); i { case 0: return &v.state case 1: @@ -20226,7 +21044,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvoiceMessage); i { + switch v := v.(*HydratedCallButton); i { case 0: return &v.state case 1: @@ -20238,7 +21056,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContactMessage); i { + switch v := v.(*DisappearingMode); i { case 0: return &v.state case 1: @@ -20250,7 +21068,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LocationMessage); i { + switch v := v.(*DeviceListMetadata); i { case 0: return &v.state case 1: @@ -20262,7 +21080,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtendedTextMessage); i { + switch v := v.(*ContextInfo); i { case 0: return &v.state case 1: @@ -20274,7 +21092,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DocumentMessage); i { + switch v := v.(*ExternalAdReplyInfo); i { case 0: return &v.state case 1: @@ -20286,7 +21104,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AudioMessage); i { + switch v := v.(*AdReplyInfo); i { case 0: return &v.state case 1: @@ -20298,7 +21116,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VideoMessage); i { + switch v := v.(*ActionLink); i { case 0: return &v.state case 1: @@ -20310,7 +21128,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Call); i { + switch v := v.(*TemplateButton); i { case 0: return &v.state case 1: @@ -20322,7 +21140,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Chat); i { + switch v := v.(*URLButton); i { case 0: return &v.state case 1: @@ -20334,7 +21152,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProtocolMessage); i { + switch v := v.(*QuickReplyButton); i { case 0: return &v.state case 1: @@ -20346,7 +21164,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistorySyncNotification); i { + switch v := v.(*CallButton); i { case 0: return &v.state case 1: @@ -20358,7 +21176,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppStateSyncKey); i { + switch v := v.(*PollUpdateMessage); i { case 0: return &v.state case 1: @@ -20370,7 +21188,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppStateSyncKeyId); i { + switch v := v.(*PollUpdateMessageContent); i { case 0: return &v.state case 1: @@ -20382,7 +21200,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppStateSyncKeyFingerprint); i { + switch v := v.(*PollVoteMessage); i { case 0: return &v.state case 1: @@ -20394,7 +21212,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppStateSyncKeyData); i { + switch v := v.(*PollCreationMessage); i { case 0: return &v.state case 1: @@ -20406,7 +21224,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppStateSyncKeyShare); i { + switch v := v.(*Option); i { case 0: return &v.state case 1: @@ -20418,7 +21236,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppStateSyncKeyRequest); i { + switch v := v.(*Point); i { case 0: return &v.state case 1: @@ -20430,7 +21248,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppStateFatalExceptionNotification); i { + switch v := v.(*PaymentBackground); i { case 0: return &v.state case 1: @@ -20442,7 +21260,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitialSecurityNotificationSettingSync); i { + switch v := v.(*PBMediaData); i { case 0: return &v.state case 1: @@ -20454,7 +21272,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContactsArrayMessage); i { + switch v := v.(*Money); i { case 0: return &v.state case 1: @@ -20466,7 +21284,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HSMCurrency); i { + switch v := v.(*Message); i { case 0: return &v.state case 1: @@ -20478,7 +21296,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HSMDateTimeComponent); i { + switch v := v.(*MessageContextInfo); i { case 0: return &v.state case 1: @@ -20490,7 +21308,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HSMDateTimeUnixEpoch); i { + switch v := v.(*VideoMessage); i { case 0: return &v.state case 1: @@ -20502,7 +21320,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HSMDateTime); i { + switch v := v.(*TemplateMessage); i { case 0: return &v.state case 1: @@ -20514,7 +21332,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HSMLocalizableParameter); i { + switch v := v.(*HydratedFourRowTemplate); i { case 0: return &v.state case 1: @@ -20526,7 +21344,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HighlyStructuredMessage); i { + switch v := v.(*FourRowTemplate); i { case 0: return &v.state case 1: @@ -20538,7 +21356,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendPaymentMessage); i { + switch v := v.(*TemplateButtonReplyMessage); i { case 0: return &v.state case 1: @@ -20550,7 +21368,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestPaymentMessage); i { + switch v := v.(*StickerSyncRMRMessage); i { case 0: return &v.state case 1: @@ -20562,7 +21380,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeclinePaymentRequestMessage); i { + switch v := v.(*EphemeralSetting); i { case 0: return &v.state case 1: @@ -20574,7 +21392,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelPaymentRequestMessage); i { + switch v := v.(*WallpaperSettings); i { case 0: return &v.state case 1: @@ -20586,7 +21404,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PaymentInviteMessage); i { + switch v := v.(*Pushname); i { case 0: return &v.state case 1: @@ -20598,7 +21416,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiveLocationMessage); i { + switch v := v.(*HistorySync); i { case 0: return &v.state case 1: @@ -20610,7 +21428,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StickerMessage); i { + switch v := v.(*HistorySyncMsg); i { case 0: return &v.state case 1: @@ -20622,7 +21440,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FourRowTemplate); i { + switch v := v.(*GroupParticipant); i { case 0: return &v.state case 1: @@ -20634,7 +21452,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HydratedFourRowTemplate); i { + switch v := v.(*GlobalSettings); i { case 0: return &v.state case 1: @@ -20646,7 +21464,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TemplateMessage); i { + switch v := v.(*Conversation); i { case 0: return &v.state case 1: @@ -20658,7 +21476,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TemplateButtonReplyMessage); i { + switch v := v.(*AutoDownloadSettings); i { case 0: return &v.state case 1: @@ -20670,7 +21488,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CatalogSnapshot); i { + switch v := v.(*MsgRowOpaqueData); i { case 0: return &v.state case 1: @@ -20682,7 +21500,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProductSnapshot); i { + switch v := v.(*MsgOpaqueData); i { case 0: return &v.state case 1: @@ -20694,7 +21512,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProductMessage); i { + switch v := v.(*ServerErrorReceipt); i { case 0: return &v.state case 1: @@ -20706,7 +21524,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrderMessage); i { + switch v := v.(*MediaRetryNotification); i { case 0: return &v.state case 1: @@ -20718,7 +21536,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Row); i { + switch v := v.(*MessageKey); i { case 0: return &v.state case 1: @@ -20730,7 +21548,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Section); i { + switch v := v.(*SyncdVersion); i { case 0: return &v.state case 1: @@ -20742,7 +21560,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Product); i { + switch v := v.(*SyncdValue); i { case 0: return &v.state case 1: @@ -20754,7 +21572,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProductSection); i { + switch v := v.(*SyncdSnapshot); i { case 0: return &v.state case 1: @@ -20766,7 +21584,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProductListHeaderImage); i { + switch v := v.(*SyncdRecord); i { case 0: return &v.state case 1: @@ -20778,7 +21596,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProductListInfo); i { + switch v := v.(*SyncdPatch); i { case 0: return &v.state case 1: @@ -20790,7 +21608,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListMessage); i { + switch v := v.(*SyncdMutations); i { case 0: return &v.state case 1: @@ -20802,7 +21620,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SingleSelectReply); i { + switch v := v.(*SyncdMutation); i { case 0: return &v.state case 1: @@ -20814,7 +21632,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListResponseMessage); i { + switch v := v.(*SyncdIndex); i { case 0: return &v.state case 1: @@ -20826,7 +21644,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Header); i { + switch v := v.(*KeyId); i { case 0: return &v.state case 1: @@ -20838,7 +21656,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Body); i { + switch v := v.(*ExternalBlobReference); i { case 0: return &v.state case 1: @@ -20850,7 +21668,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Footer); i { + switch v := v.(*ExitCode); i { case 0: return &v.state case 1: @@ -20862,7 +21680,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShopMessage); i { + switch v := v.(*SyncActionValue); i { case 0: return &v.state case 1: @@ -20874,7 +21692,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CollectionMessage); i { + switch v := v.(*UnarchiveChatsSetting); i { case 0: return &v.state case 1: @@ -20886,7 +21704,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NativeFlowButton); i { + switch v := v.(*SyncActionMessage); i { case 0: return &v.state case 1: @@ -20898,7 +21716,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NativeFlowMessage); i { + switch v := v.(*SyncActionMessageRange); i { case 0: return &v.state case 1: @@ -20910,7 +21728,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InteractiveMessage); i { + switch v := v.(*StarAction); i { case 0: return &v.state case 1: @@ -20922,7 +21740,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupInviteMessage); i { + switch v := v.(*SecurityNotificationSetting); i { case 0: return &v.state case 1: @@ -20934,7 +21752,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeviceSentMessage); i { + switch v := v.(*RecentStickerWeightsAction); i { case 0: return &v.state case 1: @@ -20946,7 +21764,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FutureProofMessage); i { + switch v := v.(*RecentStickerMetadata); i { case 0: return &v.state case 1: @@ -20958,7 +21776,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ButtonText); i { + switch v := v.(*RecentEmojiWeightsAction); i { case 0: return &v.state case 1: @@ -20970,7 +21788,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NativeFlowInfo); i { + switch v := v.(*QuickReplyAction); i { case 0: return &v.state case 1: @@ -20982,7 +21800,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Button); i { + switch v := v.(*PushNameSetting); i { case 0: return &v.state case 1: @@ -20994,7 +21812,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[143].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ButtonsMessage); i { + switch v := v.(*PrimaryFeature); i { case 0: return &v.state case 1: @@ -21006,7 +21824,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[144].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ButtonsResponseMessage); i { + switch v := v.(*PinAction); i { case 0: return &v.state case 1: @@ -21018,7 +21836,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[145].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReactionMessage); i { + switch v := v.(*MuteAction); i { case 0: return &v.state case 1: @@ -21030,7 +21848,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StickerSyncRMRMessage); i { + switch v := v.(*MarkChatAsReadAction); i { case 0: return &v.state case 1: @@ -21042,7 +21860,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[147].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Message); i { + switch v := v.(*LocaleSetting); i { case 0: return &v.state case 1: @@ -21054,7 +21872,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[148].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActionLink); i { + switch v := v.(*LabelEditAction); i { case 0: return &v.state case 1: @@ -21066,7 +21884,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[149].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DisappearingMode); i { + switch v := v.(*LabelAssociationAction); i { case 0: return &v.state case 1: @@ -21078,7 +21896,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[150].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PBMediaData); i { + switch v := v.(*KeyExpiration); i { case 0: return &v.state case 1: @@ -21090,7 +21908,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[151].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PaymentBackground); i { + switch v := v.(*FavoriteStickerAction); i { case 0: return &v.state case 1: @@ -21102,7 +21920,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[152].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Money); i { + switch v := v.(*DeleteMessageForMeAction); i { case 0: return &v.state case 1: @@ -21114,7 +21932,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[153].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HydratedQuickReplyButton); i { + switch v := v.(*DeleteChatAction); i { case 0: return &v.state case 1: @@ -21126,7 +21944,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[154].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HydratedURLButton); i { + switch v := v.(*ContactAction); i { case 0: return &v.state case 1: @@ -21138,7 +21956,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[155].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HydratedCallButton); i { + switch v := v.(*ClearChatAction); i { case 0: return &v.state case 1: @@ -21150,7 +21968,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[156].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HydratedTemplateButton); i { + switch v := v.(*ArchiveChatAction); i { case 0: return &v.state case 1: @@ -21162,7 +21980,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[157].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuickReplyButton); i { + switch v := v.(*AndroidUnsupportedActions); i { case 0: return &v.state case 1: @@ -21174,7 +21992,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[158].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*URLButton); i { + switch v := v.(*SyncActionData); i { case 0: return &v.state case 1: @@ -21186,7 +22004,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[159].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CallButton); i { + switch v := v.(*RecentStickerWeight); i { case 0: return &v.state case 1: @@ -21198,7 +22016,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[160].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TemplateButton); i { + switch v := v.(*RecentEmojiWeight); i { case 0: return &v.state case 1: @@ -21210,7 +22028,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[161].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Location); i { + switch v := v.(*VerifiedNameCertificate); i { case 0: return &v.state case 1: @@ -21222,7 +22040,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[162].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Point); i { + switch v := v.(*VerifiedNameDetails); i { case 0: return &v.state case 1: @@ -21234,7 +22052,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[163].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompanionProps); i { + switch v := v.(*LocalizedName); i { case 0: return &v.state case 1: @@ -21246,7 +22064,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[164].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ADVSignedDeviceIdentityHMAC); i { + switch v := v.(*BizIdentityInfo); i { case 0: return &v.state case 1: @@ -21258,7 +22076,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[165].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ADVSignedDeviceIdentity); i { + switch v := v.(*BizAccountPayload); i { case 0: return &v.state case 1: @@ -21270,7 +22088,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[166].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ADVDeviceIdentity); i { + switch v := v.(*BizAccountLinkInfo); i { case 0: return &v.state case 1: @@ -21282,7 +22100,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[167].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ADVSignedKeyIndexList); i { + switch v := v.(*NoiseCertificate); i { case 0: return &v.state case 1: @@ -21294,7 +22112,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[168].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ADVKeyIndexList); i { + switch v := v.(*NoiseCertificateDetails); i { case 0: return &v.state case 1: @@ -21306,7 +22124,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[169].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MessageKey); i { + switch v := v.(*HandshakeMessage); i { case 0: return &v.state case 1: @@ -21318,7 +22136,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[170].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Reaction); i { + switch v := v.(*ServerHello); i { case 0: return &v.state case 1: @@ -21330,7 +22148,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[171].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserReceipt); i { + switch v := v.(*ClientHello); i { case 0: return &v.state case 1: @@ -21342,7 +22160,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[172].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusPSA); i { + switch v := v.(*ClientFinish); i { case 0: return &v.state case 1: @@ -21354,7 +22172,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[173].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PhotoChange); i { + switch v := v.(*ClientPayload); i { case 0: return &v.state case 1: @@ -21366,7 +22184,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[174].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MediaData); i { + switch v := v.(*WebInfo); i { case 0: return &v.state case 1: @@ -21378,7 +22196,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[175].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WebFeatures); i { + switch v := v.(*WebdPayload); i { case 0: return &v.state case 1: @@ -21390,7 +22208,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[176].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NotificationMessageInfo); i { + switch v := v.(*UserAgent); i { case 0: return &v.state case 1: @@ -21402,7 +22220,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[177].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WebNotificationsInfo); i { + switch v := v.(*DNSSource); i { case 0: return &v.state case 1: @@ -21414,7 +22232,7 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[178].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PaymentInfo); i { + switch v := v.(*CompanionRegData); i { case 0: return &v.state case 1: @@ -21426,6 +22244,18 @@ func file_binary_proto_def_proto_init() { } } file_binary_proto_def_proto_msgTypes[179].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WebNotificationsInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_binary_proto_def_proto_msgTypes[180].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WebMessageInfo); i { case 0: return &v.state @@ -21437,74 +22267,200 @@ func file_binary_proto_def_proto_init() { return nil } } + file_binary_proto_def_proto_msgTypes[181].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WebFeatures); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_binary_proto_def_proto_msgTypes[182].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserReceipt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_binary_proto_def_proto_msgTypes[183].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatusPSA); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_binary_proto_def_proto_msgTypes[184].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Reaction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_binary_proto_def_proto_msgTypes[185].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_binary_proto_def_proto_msgTypes[186].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollAdditionalMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_binary_proto_def_proto_msgTypes[187].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PhotoChange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_binary_proto_def_proto_msgTypes[188].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PaymentInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_binary_proto_def_proto_msgTypes[189].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotificationMessageInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_binary_proto_def_proto_msgTypes[190].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MediaData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - file_binary_proto_def_proto_msgTypes[71].OneofWrappers = []interface{}{ - (*InteractiveAnnotation_Location)(nil), - } - file_binary_proto_def_proto_msgTypes[102].OneofWrappers = []interface{}{ - (*HSMDateTime_Component)(nil), - (*HSMDateTime_UnixEpoch)(nil), - } - file_binary_proto_def_proto_msgTypes[103].OneofWrappers = []interface{}{ - (*HSMLocalizableParameter_Currency)(nil), - (*HSMLocalizableParameter_DateTime)(nil), - } - file_binary_proto_def_proto_msgTypes[112].OneofWrappers = []interface{}{ - (*FourRowTemplate_DocumentMessage)(nil), - (*FourRowTemplate_HighlyStructuredMessage)(nil), - (*FourRowTemplate_ImageMessage)(nil), - (*FourRowTemplate_VideoMessage)(nil), - (*FourRowTemplate_LocationMessage)(nil), - } - file_binary_proto_def_proto_msgTypes[113].OneofWrappers = []interface{}{ - (*HydratedFourRowTemplate_DocumentMessage)(nil), - (*HydratedFourRowTemplate_HydratedTitleText)(nil), - (*HydratedFourRowTemplate_ImageMessage)(nil), - (*HydratedFourRowTemplate_VideoMessage)(nil), - (*HydratedFourRowTemplate_LocationMessage)(nil), + file_binary_proto_def_proto_msgTypes[30].OneofWrappers = []interface{}{ + (*InteractiveResponseMessage_NativeFlowResponseMessage)(nil), } - file_binary_proto_def_proto_msgTypes[114].OneofWrappers = []interface{}{ - (*TemplateMessage_FourRowTemplate)(nil), - (*TemplateMessage_HydratedFourRowTemplate)(nil), + file_binary_proto_def_proto_msgTypes[33].OneofWrappers = []interface{}{ + (*InteractiveMessage_ShopStorefrontMessage)(nil), + (*InteractiveMessage_CollectionMessage)(nil), + (*InteractiveMessage_NativeFlowMessage)(nil), } - file_binary_proto_def_proto_msgTypes[129].OneofWrappers = []interface{}{ + file_binary_proto_def_proto_msgTypes[37].OneofWrappers = []interface{}{ (*Header_DocumentMessage)(nil), (*Header_ImageMessage)(nil), (*Header_JpegThumbnail)(nil), (*Header_VideoMessage)(nil), } - file_binary_proto_def_proto_msgTypes[136].OneofWrappers = []interface{}{ - (*InteractiveMessage_ShopStorefrontMessage)(nil), - (*InteractiveMessage_CollectionMessage)(nil), - (*InteractiveMessage_NativeFlowMessage)(nil), + file_binary_proto_def_proto_msgTypes[45].OneofWrappers = []interface{}{ + (*HSMLocalizableParameter_Currency)(nil), + (*HSMLocalizableParameter_DateTime)(nil), } - file_binary_proto_def_proto_msgTypes[143].OneofWrappers = []interface{}{ + file_binary_proto_def_proto_msgTypes[46].OneofWrappers = []interface{}{ + (*HSMDateTime_Component)(nil), + (*HSMDateTime_UnixEpoch)(nil), + } + file_binary_proto_def_proto_msgTypes[61].OneofWrappers = []interface{}{ + (*ButtonsResponseMessage_SelectedDisplayText)(nil), + } + file_binary_proto_def_proto_msgTypes[62].OneofWrappers = []interface{}{ (*ButtonsMessage_Text)(nil), (*ButtonsMessage_DocumentMessage)(nil), (*ButtonsMessage_ImageMessage)(nil), (*ButtonsMessage_VideoMessage)(nil), (*ButtonsMessage_LocationMessage)(nil), } - file_binary_proto_def_proto_msgTypes[144].OneofWrappers = []interface{}{ - (*ButtonsResponseMessage_SelectedDisplayText)(nil), + file_binary_proto_def_proto_msgTypes[75].OneofWrappers = []interface{}{ + (*InteractiveAnnotation_Location)(nil), } - file_binary_proto_def_proto_msgTypes[156].OneofWrappers = []interface{}{ + file_binary_proto_def_proto_msgTypes[76].OneofWrappers = []interface{}{ (*HydratedTemplateButton_QuickReplyButton)(nil), (*HydratedTemplateButton_UrlButton)(nil), (*HydratedTemplateButton_CallButton)(nil), } - file_binary_proto_def_proto_msgTypes[160].OneofWrappers = []interface{}{ + file_binary_proto_def_proto_msgTypes[86].OneofWrappers = []interface{}{ (*TemplateButton_QuickReplyButton)(nil), (*TemplateButton_UrlButton)(nil), (*TemplateButton_CallButton)(nil), } + file_binary_proto_def_proto_msgTypes[91].OneofWrappers = []interface{}{ + (*PollUpdateMessageContent_VoteMessage)(nil), + } + file_binary_proto_def_proto_msgTypes[102].OneofWrappers = []interface{}{ + (*TemplateMessage_FourRowTemplate)(nil), + (*TemplateMessage_HydratedFourRowTemplate)(nil), + } + file_binary_proto_def_proto_msgTypes[103].OneofWrappers = []interface{}{ + (*HydratedFourRowTemplate_DocumentMessage)(nil), + (*HydratedFourRowTemplate_HydratedTitleText)(nil), + (*HydratedFourRowTemplate_ImageMessage)(nil), + (*HydratedFourRowTemplate_VideoMessage)(nil), + (*HydratedFourRowTemplate_LocationMessage)(nil), + } + file_binary_proto_def_proto_msgTypes[104].OneofWrappers = []interface{}{ + (*FourRowTemplate_DocumentMessage)(nil), + (*FourRowTemplate_HighlyStructuredMessage)(nil), + (*FourRowTemplate_ImageMessage)(nil), + (*FourRowTemplate_VideoMessage)(nil), + (*FourRowTemplate_LocationMessage)(nil), + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_binary_proto_def_proto_rawDesc, NumEnums: 50, - NumMessages: 180, + NumMessages: 191, NumExtensions: 0, NumServices: 0, }, diff --git a/vendor/go.mau.fi/whatsmeow/binary/proto/def.pb.raw b/vendor/go.mau.fi/whatsmeow/binary/proto/def.pb.raw Binary files differindex e2c23d47..020745ed 100644 --- a/vendor/go.mau.fi/whatsmeow/binary/proto/def.pb.raw +++ b/vendor/go.mau.fi/whatsmeow/binary/proto/def.pb.raw diff --git a/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto b/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto index 652d4a30..8ce9b2a2 100644 --- a/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto +++ b/vendor/go.mau.fi/whatsmeow/binary/proto/def.proto @@ -1,731 +1,388 @@ syntax = "proto2"; package proto; -message AppVersion { - optional uint32 primary = 1; - optional uint32 secondary = 2; - optional uint32 tertiary = 3; - optional uint32 quaternary = 4; - optional uint32 quinary = 5; -} - -message UserAgent { - enum UserAgentPlatform { - ANDROID = 0; - IOS = 1; - WINDOWS_PHONE = 2; - BLACKBERRY = 3; - BLACKBERRYX = 4; - S40 = 5; - S60 = 6; - PYTHON_CLIENT = 7; - TIZEN = 8; - ENTERPRISE = 9; - SMB_ANDROID = 10; - KAIOS = 11; - SMB_IOS = 12; - WINDOWS = 13; - WEB = 14; - PORTAL = 15; - GREEN_ANDROID = 16; - GREEN_IPHONE = 17; - BLUE_ANDROID = 18; - BLUE_IPHONE = 19; - FBLITE_ANDROID = 20; - MLITE_ANDROID = 21; - IGLITE_ANDROID = 22; - PAGE = 23; - MACOS = 24; - OCULUS_MSG = 25; - OCULUS_CALL = 26; - MILAN = 27; - CAPI = 28; - } - optional UserAgentPlatform platform = 1; - optional AppVersion appVersion = 2; - optional string mcc = 3; - optional string mnc = 4; - optional string osVersion = 5; - optional string manufacturer = 6; - optional string device = 7; - optional string osBuildNumber = 8; - optional string phoneId = 9; - enum UserAgentReleaseChannel { - RELEASE = 0; - BETA = 1; - ALPHA = 2; - DEBUG = 3; - } - optional UserAgentReleaseChannel releaseChannel = 10; - optional string localeLanguageIso6391 = 11; - optional string localeCountryIso31661Alpha2 = 12; - optional string deviceBoard = 13; -} - -message WebdPayload { - optional bool usesParticipantInKey = 1; - optional bool supportsStarredMessages = 2; - optional bool supportsDocumentMessages = 3; - optional bool supportsUrlMessages = 4; - optional bool supportsMediaRetry = 5; - optional bool supportsE2EImage = 6; - optional bool supportsE2EVideo = 7; - optional bool supportsE2EAudio = 8; - optional bool supportsE2EDocument = 9; - optional string documentTypes = 10; - optional bytes features = 11; -} - -message WebInfo { - optional string refToken = 1; - optional string version = 2; - optional WebdPayload webdPayload = 3; - enum WebInfoWebSubPlatform { - WEB_BROWSER = 0; - APP_STORE = 1; - WIN_STORE = 2; - DARWIN = 3; - WIN32 = 4; - } - optional WebInfoWebSubPlatform webSubPlatform = 4; -} - -message DNSSource { - enum DNSSourceDNSResolutionMethod { - SYSTEM = 0; - GOOGLE = 1; - HARDCODED = 2; - OVERRIDE = 3; - FALLBACK = 4; - } - optional DNSSourceDNSResolutionMethod dnsMethod = 15; - optional bool appCached = 16; -} - -message CompanionRegData { - optional bytes eRegid = 1; - optional bytes eKeytype = 2; - optional bytes eIdent = 3; - optional bytes eSkeyId = 4; - optional bytes eSkeyVal = 5; - optional bytes eSkeySig = 6; - optional bytes buildHash = 7; - optional bytes companionProps = 8; -} - -message ClientPayload { - optional uint64 username = 1; - optional bool passive = 3; - optional UserAgent userAgent = 5; - optional WebInfo webInfo = 6; - optional string pushName = 7; - optional sfixed32 sessionId = 9; - optional bool shortConnect = 10; - enum ClientPayloadConnectType { - CELLULAR_UNKNOWN = 0; - WIFI_UNKNOWN = 1; - CELLULAR_EDGE = 100; - CELLULAR_IDEN = 101; - CELLULAR_UMTS = 102; - CELLULAR_EVDO = 103; - CELLULAR_GPRS = 104; - CELLULAR_HSDPA = 105; - CELLULAR_HSUPA = 106; - CELLULAR_HSPA = 107; - CELLULAR_CDMA = 108; - CELLULAR_1XRTT = 109; - CELLULAR_EHRPD = 110; - CELLULAR_LTE = 111; - CELLULAR_HSPAP = 112; - } - optional ClientPayloadConnectType connectType = 12; - enum ClientPayloadConnectReason { - PUSH = 0; - USER_ACTIVATED = 1; - SCHEDULED = 2; - ERROR_RECONNECT = 3; - NETWORK_SWITCH = 4; - PING_RECONNECT = 5; - } - optional ClientPayloadConnectReason connectReason = 13; - repeated int32 shards = 14; - optional DNSSource dnsSource = 15; - optional uint32 connectAttemptCount = 16; - optional uint32 device = 18; - optional CompanionRegData regData = 19; - enum ClientPayloadProduct { - WHATSAPP = 0; - MESSENGER = 1; - } - optional ClientPayloadProduct product = 20; - optional bytes fbCat = 21; - optional bytes fbUserAgent = 22; - optional bool oc = 23; - optional int32 lc = 24; - enum ClientPayloadIOSAppExtension { - SHARE_EXTENSION = 0; - SERVICE_EXTENSION = 1; - INTENTS_EXTENSION = 2; - } - optional ClientPayloadIOSAppExtension iosAppExtension = 30; - optional uint64 fbAppId = 31; - optional bytes fbDeviceId = 32; -} - -// Renamed from Details -message NoiseCertificateDetails { - optional uint32 serial = 1; - optional string issuer = 2; - optional uint64 expires = 3; - optional string subject = 4; - optional bytes key = 5; -} - -message NoiseCertificate { +message ADVSignedKeyIndexList { optional bytes details = 1; - optional bytes signature = 2; + optional bytes accountSignature = 2; } -message ClientHello { - optional bytes ephemeral = 1; - optional bytes static = 2; - optional bytes payload = 3; +message ADVSignedDeviceIdentity { + optional bytes details = 1; + optional bytes accountSignatureKey = 2; + optional bytes accountSignature = 3; + optional bytes deviceSignature = 4; } -message ServerHello { - optional bytes ephemeral = 1; - optional bytes static = 2; - optional bytes payload = 3; +message ADVSignedDeviceIdentityHMAC { + optional bytes details = 1; + optional bytes hmac = 2; } -message ClientFinish { - optional bytes static = 1; - optional bytes payload = 2; +message ADVKeyIndexList { + optional uint32 rawId = 1; + optional uint64 timestamp = 2; + optional uint32 currentIndex = 3; + repeated uint32 validIndexes = 4 [packed=true]; } -message HandshakeMessage { - optional ClientHello clientHello = 2; - optional ServerHello serverHello = 3; - optional ClientFinish clientFinish = 4; +message ADVDeviceIdentity { + optional uint32 rawId = 1; + optional uint64 timestamp = 2; + optional uint32 keyIndex = 3; } -message BizIdentityInfo { - enum BizIdentityInfoVerifiedLevelValue { +message CompanionProps { + optional string os = 1; + optional AppVersion version = 2; + enum CompanionPropsPlatformType { UNKNOWN = 0; - LOW = 1; - HIGH = 2; - } - optional BizIdentityInfoVerifiedLevelValue vlevel = 1; - optional VerifiedNameCertificate vnameCert = 2; - optional bool signed = 3; - optional bool revoked = 4; - enum BizIdentityInfoHostStorageType { - ON_PREMISE = 0; - FACEBOOK = 1; - } - optional BizIdentityInfoHostStorageType hostStorage = 5; - enum BizIdentityInfoActualActorsType { - SELF = 0; - BSP = 1; - } - optional BizIdentityInfoActualActorsType actualActors = 6; - optional uint64 privacyModeTs = 7; - optional uint64 featureControls = 8; -} - -message BizAccountLinkInfo { - optional uint64 whatsappBizAcctFbid = 1; - optional string whatsappAcctNumber = 2; - optional uint64 issueTime = 3; - enum BizAccountLinkInfoHostStorageType { - ON_PREMISE = 0; - FACEBOOK = 1; - } - optional BizAccountLinkInfoHostStorageType hostStorage = 4; - enum BizAccountLinkInfoAccountType { - ENTERPRISE = 0; + CHROME = 1; + FIREFOX = 2; + IE = 3; + OPERA = 4; + SAFARI = 5; + EDGE = 6; + DESKTOP = 7; + IPAD = 8; + ANDROID_TABLET = 9; + OHANA = 10; + ALOHA = 11; + CATALINA = 12; } - optional BizAccountLinkInfoAccountType accountType = 5; -} - -message BizAccountPayload { - optional VerifiedNameCertificate vnameCert = 1; - optional bytes bizAcctLinkInfo = 2; -} - -// Renamed from Details -message VerifiedNameDetails { - optional uint64 serial = 1; - optional string issuer = 2; - optional string verifiedName = 4; - repeated LocalizedName localizedNames = 8; - optional uint64 issueTime = 10; -} - -message VerifiedNameCertificate { - optional bytes details = 1; - optional bytes signature = 2; - optional bytes serverSignature = 3; -} - -message LocalizedName { - optional string lg = 1; - optional string lc = 2; - optional string verifiedName = 3; -} - -message SyncActionData { - optional bytes index = 1; - optional SyncActionValue value = 2; - optional bytes padding = 3; - optional int32 version = 4; -} - -message StarAction { - optional bool starred = 1; -} - -message ContactAction { - optional string fullName = 1; - optional string firstName = 2; -} - -message MuteAction { - optional bool muted = 1; - optional int64 muteEndTimestamp = 2; -} - -message PinAction { - optional bool pinned = 1; -} - -message SecurityNotificationSetting { - optional bool showNotification = 1; -} - -message PushNameSetting { - optional string name = 1; -} - -message LocaleSetting { - optional string locale = 1; -} - -message QuickReplyAction { - optional string shortcut = 1; - optional string message = 2; - repeated string keywords = 3; - optional int32 count = 4; - optional bool deleted = 5; -} - -message LabelAssociationAction { - optional bool labeled = 1; -} - -message LabelEditAction { - optional string name = 1; - optional int32 color = 2; - optional int32 predefinedId = 3; - optional bool deleted = 4; -} - -message RecentStickerWeightsAction { - repeated RecentStickerWeight weights = 1; -} - -message RecentStickerMetadata { - optional string directPath = 1; - optional string encFilehash = 2; - optional string mediaKey = 3; - optional string stanzaId = 4; - optional string chatJid = 5; - optional string participant = 6; - optional bool isSentByMe = 7; -} - -message RecentEmojiWeightsAction { - repeated RecentEmojiWeight weights = 1; -} - -message FavoriteStickerAction { - optional string directPath = 1; - optional string lastUploadTimestamp = 2; - optional string handle = 3; - optional string encFilehash = 4; - optional string stickerHashWithoutMeta = 5; - optional string mediaKey = 6; - optional int64 mediaKeyTimestamp = 7; - optional bool isFavorite = 8; -} - -message ArchiveChatAction { - optional bool archived = 1; - optional SyncActionMessageRange messageRange = 2; + optional CompanionPropsPlatformType platformType = 3; + optional bool requireFullSync = 4; } -message DeleteMessageForMeAction { - optional bool deleteMedia = 1; - optional int64 messageTimestamp = 2; +message AppVersion { + optional uint32 primary = 1; + optional uint32 secondary = 2; + optional uint32 tertiary = 3; + optional uint32 quaternary = 4; + optional uint32 quinary = 5; } -message MarkChatAsReadAction { - optional bool read = 1; - optional SyncActionMessageRange messageRange = 2; +message StickerMessage { + optional string url = 1; + optional bytes fileSha256 = 2; + optional bytes fileEncSha256 = 3; + optional bytes mediaKey = 4; + optional string mimetype = 5; + optional uint32 height = 6; + optional uint32 width = 7; + optional string directPath = 8; + optional uint64 fileLength = 9; + optional int64 mediaKeyTimestamp = 10; + optional uint32 firstFrameLength = 11; + optional bytes firstFrameSidecar = 12; + optional bool isAnimated = 13; + optional bytes pngThumbnail = 16; + optional ContextInfo contextInfo = 17; } -message ClearChatAction { - optional SyncActionMessageRange messageRange = 1; +message SenderKeyDistributionMessage { + optional string groupId = 1; + optional bytes axolotlSenderKeyDistributionMessage = 2; } -message DeleteChatAction { - optional SyncActionMessageRange messageRange = 1; +message SendPaymentMessage { + optional Message noteMessage = 2; + optional MessageKey requestMessageKey = 3; + optional PaymentBackground background = 4; } -message UnarchiveChatsSetting { - optional bool unarchiveChats = 1; +message RequestPaymentMessage { + optional Message noteMessage = 4; + optional string currencyCodeIso4217 = 1; + optional uint64 amount1000 = 2; + optional string requestFrom = 3; + optional int64 expiryTimestamp = 5; + optional Money amount = 6; + optional PaymentBackground background = 7; } -message SyncActionMessageRange { - optional int64 lastMessageTimestamp = 1; - optional int64 lastSystemMessageTimestamp = 2; - repeated SyncActionMessage messages = 3; +message ReactionMessage { + optional MessageKey key = 1; + optional string text = 2; + optional string groupingKey = 3; + optional int64 senderTimestampMs = 4; } -message SyncActionMessage { +message ProtocolMessage { optional MessageKey key = 1; - optional int64 timestamp = 2; + enum ProtocolMessageType { + REVOKE = 0; + EPHEMERAL_SETTING = 3; + EPHEMERAL_SYNC_RESPONSE = 4; + HISTORY_SYNC_NOTIFICATION = 5; + APP_STATE_SYNC_KEY_SHARE = 6; + APP_STATE_SYNC_KEY_REQUEST = 7; + MSG_FANOUT_BACKFILL_REQUEST = 8; + INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = 9; + APP_STATE_FATAL_EXCEPTION_NOTIFICATION = 10; + } + optional ProtocolMessageType type = 2; + optional uint32 ephemeralExpiration = 4; + optional int64 ephemeralSettingTimestamp = 5; + optional HistorySyncNotification historySyncNotification = 6; + optional AppStateSyncKeyShare appStateSyncKeyShare = 7; + optional AppStateSyncKeyRequest appStateSyncKeyRequest = 8; + optional InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; + optional AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; + optional DisappearingMode disappearingMode = 11; } -message KeyExpiration { - optional int32 expiredKeyEpoch = 1; +message ProductMessage { + optional ProductSnapshot product = 1; + optional string businessOwnerJid = 2; + optional CatalogSnapshot catalog = 4; + optional string body = 5; + optional string footer = 6; + optional ContextInfo contextInfo = 17; } -message PrimaryFeature { - repeated string flags = 1; +message ProductSnapshot { + optional ImageMessage productImage = 1; + optional string productId = 2; + optional string title = 3; + optional string description = 4; + optional string currencyCode = 5; + optional int64 priceAmount1000 = 6; + optional string retailerId = 7; + optional string url = 8; + optional uint32 productImageCount = 9; + optional string firstImageId = 11; + optional int64 salePriceAmount1000 = 12; } -message AndroidUnsupportedActions { - optional bool allowed = 1; +message CatalogSnapshot { + optional ImageMessage catalogImage = 1; + optional string title = 2; + optional string description = 3; } -message SyncActionValue { - optional int64 timestamp = 1; - optional StarAction starAction = 2; - optional ContactAction contactAction = 3; - optional MuteAction muteAction = 4; - optional PinAction pinAction = 5; - optional SecurityNotificationSetting securityNotificationSetting = 6; - optional PushNameSetting pushNameSetting = 7; - optional QuickReplyAction quickReplyAction = 8; - optional RecentStickerWeightsAction recentStickerWeightsAction = 9; - optional RecentStickerMetadata recentStickerMetadata = 10; - optional RecentEmojiWeightsAction recentEmojiWeightsAction = 11; - optional LabelEditAction labelEditAction = 14; - optional LabelAssociationAction labelAssociationAction = 15; - optional LocaleSetting localeSetting = 16; - optional ArchiveChatAction archiveChatAction = 17; - optional DeleteMessageForMeAction deleteMessageForMeAction = 18; - optional KeyExpiration keyExpiration = 19; - optional MarkChatAsReadAction markChatAsReadAction = 20; - optional ClearChatAction clearChatAction = 21; - optional DeleteChatAction deleteChatAction = 22; - optional UnarchiveChatsSetting unarchiveChatsSetting = 23; - optional PrimaryFeature primaryFeature = 24; - optional FavoriteStickerAction favoriteStickerAction = 25; - optional AndroidUnsupportedActions androidUnsupportedActions = 26; +message PaymentInviteMessage { + enum PaymentInviteMessageServiceType { + UNKNOWN = 0; + FBPAY = 1; + NOVI = 2; + UPI = 3; + } + optional PaymentInviteMessageServiceType serviceType = 1; + optional int64 expiryTimestamp = 2; } -message RecentEmojiWeight { - optional string emoji = 1; - optional float weight = 2; +message OrderMessage { + optional string orderId = 1; + optional bytes thumbnail = 2; + optional int32 itemCount = 3; + enum OrderMessageOrderStatus { + INQUIRY = 1; + } + optional OrderMessageOrderStatus status = 4; + enum OrderMessageOrderSurface { + CATALOG = 1; + } + optional OrderMessageOrderSurface surface = 5; + optional string message = 6; + optional string orderTitle = 7; + optional string sellerJid = 8; + optional string token = 9; + optional int64 totalAmount1000 = 10; + optional string totalCurrencyCode = 11; + optional ContextInfo contextInfo = 17; } -message RecentStickerWeight { - optional string filehash = 1; - optional float weight = 2; +message LocationMessage { + optional double degreesLatitude = 1; + optional double degreesLongitude = 2; + optional string name = 3; + optional string address = 4; + optional string url = 5; + optional bool isLive = 6; + optional uint32 accuracyInMeters = 7; + optional float speedInMps = 8; + optional uint32 degreesClockwiseFromMagneticNorth = 9; + optional string comment = 11; + optional bytes jpegThumbnail = 16; + optional ContextInfo contextInfo = 17; } -message SyncdPatch { - optional SyncdVersion version = 1; - repeated SyncdMutation mutations = 2; - optional ExternalBlobReference externalMutations = 3; - optional bytes snapshotMac = 4; - optional bytes patchMac = 5; - optional KeyId keyId = 6; - optional ExitCode exitCode = 7; - optional uint32 deviceIndex = 8; +message LiveLocationMessage { + optional double degreesLatitude = 1; + optional double degreesLongitude = 2; + optional uint32 accuracyInMeters = 3; + optional float speedInMps = 4; + optional uint32 degreesClockwiseFromMagneticNorth = 5; + optional string caption = 6; + optional int64 sequenceNumber = 7; + optional uint32 timeOffset = 8; + optional bytes jpegThumbnail = 16; + optional ContextInfo contextInfo = 17; } -message SyncdMutation { - enum SyncdMutationSyncdOperation { - SET = 0; - REMOVE = 1; +message ListResponseMessage { + optional string title = 1; + enum ListResponseMessageListType { + UNKNOWN = 0; + SINGLE_SELECT = 1; } - optional SyncdMutationSyncdOperation operation = 1; - optional SyncdRecord record = 2; -} - -message SyncdMutations { - repeated SyncdMutation mutations = 1; -} - -message SyncdSnapshot { - optional SyncdVersion version = 1; - repeated SyncdRecord records = 2; - optional bytes mac = 3; - optional KeyId keyId = 4; + optional ListResponseMessageListType listType = 2; + optional SingleSelectReply singleSelectReply = 3; + optional ContextInfo contextInfo = 4; + optional string description = 5; } -message ExternalBlobReference { - optional bytes mediaKey = 1; - optional string directPath = 2; - optional string handle = 3; - optional uint64 fileSizeBytes = 4; - optional bytes fileSha256 = 5; - optional bytes fileEncSha256 = 6; +message SingleSelectReply { + optional string selectedRowId = 1; } -message SyncdRecord { - optional SyncdIndex index = 1; - optional SyncdValue value = 2; - optional KeyId keyId = 3; +message ListMessage { + optional string title = 1; + optional string description = 2; + optional string buttonText = 3; + enum ListMessageListType { + UNKNOWN = 0; + SINGLE_SELECT = 1; + PRODUCT_LIST = 2; + } + optional ListMessageListType listType = 4; + repeated Section sections = 5; + optional ProductListInfo productListInfo = 6; + optional string footerText = 7; + optional ContextInfo contextInfo = 8; } -message KeyId { - optional bytes id = 1; +message Section { + optional string title = 1; + repeated Row rows = 2; } -message SyncdValue { - optional bytes blob = 1; +message Row { + optional string title = 1; + optional string description = 2; + optional string rowId = 3; } -message SyncdIndex { - optional bytes blob = 1; +message Product { + optional string productId = 1; } -message ExitCode { - optional uint64 code = 1; - optional string text = 2; +message ProductSection { + optional string title = 1; + repeated Product products = 2; } -message SyncdVersion { - optional uint64 version = 1; +message ProductListInfo { + repeated ProductSection productSections = 1; + optional ProductListHeaderImage headerImage = 2; + optional string businessOwnerJid = 3; } -message ServerErrorReceipt { - optional string stanzaId = 1; +message ProductListHeaderImage { + optional string productId = 1; + optional bytes jpegThumbnail = 2; } -message MediaRetryNotification { - optional string stanzaId = 1; - optional string directPath = 2; - enum MediaRetryNotificationResultType { - GENERAL_ERROR = 0; - SUCCESS = 1; - NOT_FOUND = 2; - DECRYPTION_ERROR = 3; +message InvoiceMessage { + optional string note = 1; + optional string token = 2; + enum InvoiceMessageAttachmentType { + IMAGE = 0; + PDF = 1; } - optional MediaRetryNotificationResultType result = 3; -} - -message MsgOpaqueData { - optional string body = 1; - optional string caption = 3; - optional double lng = 5; - optional double lat = 7; - optional int32 paymentAmount1000 = 8; - optional string paymentNoteMsgBody = 9; - optional string canonicalUrl = 10; - optional string matchedText = 11; - optional string title = 12; - optional string description = 13; - optional bytes futureproofBuffer = 14; - optional string clientUrl = 15; - optional string loc = 16; + optional InvoiceMessageAttachmentType attachmentType = 3; + optional string attachmentMimetype = 4; + optional bytes attachmentMediaKey = 5; + optional int64 attachmentMediaKeyTimestamp = 6; + optional bytes attachmentFileSha256 = 7; + optional bytes attachmentFileEncSha256 = 8; + optional string attachmentDirectPath = 9; + optional bytes attachmentJpegThumbnail = 10; } -message MsgRowOpaqueData { - optional MsgOpaqueData currentMsg = 1; - optional MsgOpaqueData quotedMsg = 2; +message InteractiveResponseMessage { + optional InteractiveResponseMessageBody body = 1; + optional ContextInfo contextInfo = 15; + oneof interactiveResponseMessage { + NativeFlowResponseMessage nativeFlowResponseMessage = 2; + } } -message GlobalSettings { - optional WallpaperSettings lightThemeWallpaper = 1; - optional MediaVisibility mediaVisibility = 2; - optional WallpaperSettings darkThemeWallpaper = 3; +message NativeFlowResponseMessage { + optional string name = 1; + optional string paramsJson = 2; + optional int32 version = 3; } -message WallpaperSettings { - optional string filename = 1; - optional uint32 opacity = 2; +// Renamed from Message$InteractiveResponseMessage$Body +message InteractiveResponseMessageBody { + optional string text = 1; } -message GroupParticipant { - required string userJid = 1; - enum GroupParticipantRank { - REGULAR = 0; - ADMIN = 1; - SUPERADMIN = 2; +message InteractiveMessage { + optional Header header = 1; + optional InteractiveMessageBody body = 2; + optional Footer footer = 3; + optional ContextInfo contextInfo = 15; + oneof interactiveMessage { + ShopMessage shopStorefrontMessage = 4; + CollectionMessage collectionMessage = 5; + NativeFlowMessage nativeFlowMessage = 6; } - optional GroupParticipantRank rank = 2; } -message Pushname { +message ShopMessage { optional string id = 1; - optional string pushname = 2; -} - -message HistorySyncMsg { - optional WebMessageInfo message = 1; - optional uint64 msgOrderId = 2; -} - -message Conversation { - required string id = 1; - repeated HistorySyncMsg messages = 2; - optional string newJid = 3; - optional string oldJid = 4; - optional uint64 lastMsgTimestamp = 5; - optional uint32 unreadCount = 6; - optional bool readOnly = 7; - optional bool endOfHistoryTransfer = 8; - optional uint32 ephemeralExpiration = 9; - optional int64 ephemeralSettingTimestamp = 10; - enum ConversationEndOfHistoryTransferType { - COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0; - COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1; + enum ShopMessageSurface { + UNKNOWN_SURFACE = 0; + FB = 1; + IG = 2; + WA = 3; } - optional ConversationEndOfHistoryTransferType endOfHistoryTransferType = 11; - optional uint64 conversationTimestamp = 12; - optional string name = 13; - optional string pHash = 14; - optional bool notSpam = 15; - optional bool archived = 16; - optional DisappearingMode disappearingMode = 17; - optional uint32 unreadMentionCount = 18; - optional bool markedAsUnread = 19; - repeated GroupParticipant participant = 20; - optional bytes tcToken = 21; - optional uint64 tcTokenTimestamp = 22; - optional bytes contactPrimaryIdentityKey = 23; - optional uint32 pinned = 24; - optional uint64 muteEndTime = 25; - optional WallpaperSettings wallpaper = 26; - optional MediaVisibility mediaVisibility = 27; - optional uint64 tcTokenSenderTimestamp = 28; - optional bool suspended = 29; + optional ShopMessageSurface surface = 2; + optional int32 messageVersion = 3; } -message HistorySync { - enum HistorySyncHistorySyncType { - INITIAL_BOOTSTRAP = 0; - INITIAL_STATUS_V3 = 1; - FULL = 2; - RECENT = 3; - PUSH_NAME = 4; - } - required HistorySyncHistorySyncType syncType = 1; - repeated Conversation conversations = 2; - repeated WebMessageInfo statusV3Messages = 3; - optional uint32 chunkOrder = 5; - optional uint32 progress = 6; - repeated Pushname pushnames = 7; - optional GlobalSettings globalSettings = 8; - optional bytes threadIdUserSecret = 9; - optional uint32 threadDsTimeframeOffset = 10; +message NativeFlowMessage { + repeated NativeFlowButton buttons = 1; + optional string messageParamsJson = 2; + optional int32 messageVersion = 3; } -enum MediaVisibility { - DEFAULT = 0; - OFF = 1; - ON = 2; -} -message EphemeralSetting { - optional sfixed32 duration = 1; - optional sfixed64 timestamp = 2; +message NativeFlowButton { + optional string name = 1; + optional string buttonParamsJson = 2; } -message InteractiveAnnotation { - repeated Point polygonVertices = 1; - oneof action { - Location location = 2; +message Header { + optional string title = 1; + optional string subtitle = 2; + optional bool hasMediaAttachment = 5; + oneof media { + DocumentMessage documentMessage = 3; + ImageMessage imageMessage = 4; + bytes jpegThumbnail = 6; + VideoMessage videoMessage = 7; } } -message DeviceListMetadata { - optional bytes senderKeyHash = 1; - optional uint64 senderTimestamp = 2; - repeated uint32 senderKeyIndexes = 3 [packed=true]; - optional bytes recipientKeyHash = 8; - optional uint64 recipientTimestamp = 9; - repeated uint32 recipientKeyIndexes = 10 [packed=true]; -} - -message MessageContextInfo { - optional DeviceListMetadata deviceListMetadata = 1; - optional int32 deviceListMetadataVersion = 2; -} - -message AdReplyInfo { - optional string advertiserName = 1; - enum AdReplyInfoMediaType { - NONE = 0; - IMAGE = 1; - VIDEO = 2; - } - optional AdReplyInfoMediaType mediaType = 2; - optional bytes jpegThumbnail = 16; - optional string caption = 17; +message Footer { + optional string text = 1; } -message ExternalAdReplyInfo { - optional string title = 1; - optional string body = 2; - enum ExternalAdReplyInfoMediaType { - NONE = 0; - IMAGE = 1; - VIDEO = 2; - } - optional ExternalAdReplyInfoMediaType mediaType = 3; - optional string thumbnailUrl = 4; - optional string mediaUrl = 5; - optional bytes thumbnail = 6; - optional string sourceType = 7; - optional string sourceId = 8; - optional string sourceUrl = 9; - optional bool containsAutoReply = 10; +message CollectionMessage { + optional string bizJid = 1; + optional string id = 2; + optional int32 messageVersion = 3; } -message ContextInfo { - optional string stanzaId = 1; - optional string participant = 2; - optional Message quotedMessage = 3; - optional string remoteJid = 4; - repeated string mentionedJid = 15; - optional string conversionSource = 18; - optional bytes conversionData = 19; - optional uint32 conversionDelaySeconds = 20; - optional uint32 forwardingScore = 21; - optional bool isForwarded = 22; - optional AdReplyInfo quotedAd = 23; - optional MessageKey placeholderKey = 24; - optional uint32 expiration = 25; - optional int64 ephemeralSettingTimestamp = 26; - optional bytes ephemeralSharedSecret = 27; - optional ExternalAdReplyInfo externalAdReply = 28; - optional string entryPointConversionSource = 29; - optional string entryPointConversionApp = 30; - optional uint32 entryPointConversionDelaySeconds = 31; - optional DisappearingMode disappearingMode = 32; - optional ActionLink actionLink = 33; - optional string groupSubject = 34; - optional string parentGroupJid = 35; +// Renamed from Message$InteractiveMessage$Body +message InteractiveMessageBody { + optional string text = 1; } -message SenderKeyDistributionMessage { - optional string groupId = 1; - optional bytes axolotlSenderKeyDistributionMessage = 2; +message InitialSecurityNotificationSettingSync { + optional bool securityNotificationEnabled = 1; } message ImageMessage { @@ -757,42 +414,100 @@ message ImageMessage { optional string staticUrl = 29; } -message InvoiceMessage { - optional string note = 1; - optional string token = 2; - enum InvoiceMessageAttachmentType { - IMAGE = 0; - PDF = 1; +message HistorySyncNotification { + optional bytes fileSha256 = 1; + optional uint64 fileLength = 2; + optional bytes mediaKey = 3; + optional bytes fileEncSha256 = 4; + optional string directPath = 5; + enum HistorySyncNotificationHistorySyncType { + INITIAL_BOOTSTRAP = 0; + INITIAL_STATUS_V3 = 1; + FULL = 2; + RECENT = 3; + PUSH_NAME = 4; } - optional InvoiceMessageAttachmentType attachmentType = 3; - optional string attachmentMimetype = 4; - optional bytes attachmentMediaKey = 5; - optional int64 attachmentMediaKeyTimestamp = 6; - optional bytes attachmentFileSha256 = 7; - optional bytes attachmentFileEncSha256 = 8; - optional string attachmentDirectPath = 9; - optional bytes attachmentJpegThumbnail = 10; + optional HistorySyncNotificationHistorySyncType syncType = 6; + optional uint32 chunkOrder = 7; + optional string originalMessageId = 8; } -message ContactMessage { - optional string displayName = 1; - optional string vcard = 16; - optional ContextInfo contextInfo = 17; +message HighlyStructuredMessage { + optional string namespace = 1; + optional string elementName = 2; + repeated string params = 3; + optional string fallbackLg = 4; + optional string fallbackLc = 5; + repeated HSMLocalizableParameter localizableParams = 6; + optional string deterministicLg = 7; + optional string deterministicLc = 8; + optional TemplateMessage hydratedHsm = 9; } -message LocationMessage { - optional double degreesLatitude = 1; - optional double degreesLongitude = 2; - optional string name = 3; - optional string address = 4; - optional string url = 5; - optional bool isLive = 6; - optional uint32 accuracyInMeters = 7; - optional float speedInMps = 8; - optional uint32 degreesClockwiseFromMagneticNorth = 9; - optional string comment = 11; - optional bytes jpegThumbnail = 16; - optional ContextInfo contextInfo = 17; +message HSMLocalizableParameter { + optional string default = 1; + oneof paramOneof { + HSMCurrency currency = 2; + HSMDateTime dateTime = 3; + } +} + +message HSMDateTime { + oneof datetimeOneof { + HSMDateTimeComponent component = 1; + HSMDateTimeUnixEpoch unixEpoch = 2; + } +} + +message HSMDateTimeUnixEpoch { + optional int64 timestamp = 1; +} + +message HSMDateTimeComponent { + enum HSMDateTimeComponentDayOfWeekType { + MONDAY = 1; + TUESDAY = 2; + WEDNESDAY = 3; + THURSDAY = 4; + FRIDAY = 5; + SATURDAY = 6; + SUNDAY = 7; + } + optional HSMDateTimeComponentDayOfWeekType dayOfWeek = 1; + optional uint32 year = 2; + optional uint32 month = 3; + optional uint32 dayOfMonth = 4; + optional uint32 hour = 5; + optional uint32 minute = 6; + enum HSMDateTimeComponentCalendarType { + GREGORIAN = 1; + SOLAR_HIJRI = 2; + } + optional HSMDateTimeComponentCalendarType calendar = 7; +} + +message HSMCurrency { + optional string currencyCode = 1; + optional int64 amount1000 = 2; +} + +message GroupInviteMessage { + optional string groupJid = 1; + optional string inviteCode = 2; + optional int64 inviteExpiration = 3; + optional string groupName = 4; + optional bytes jpegThumbnail = 5; + optional string caption = 6; + optional ContextInfo contextInfo = 7; + enum GroupInviteMessageGroupType { + DEFAULT = 0; + PARENT = 1; + } + optional GroupInviteMessageGroupType groupType = 8; +} + +message FutureProofMessage { + optional Message message = 1; } message ExtendedTextMessage { @@ -856,51 +571,35 @@ message DocumentMessage { optional uint32 thumbnailWidth = 19; } -message AudioMessage { - optional string url = 1; - optional string mimetype = 2; - optional bytes fileSha256 = 3; - optional uint64 fileLength = 4; - optional uint32 seconds = 5; - optional bool ptt = 6; - optional bytes mediaKey = 7; - optional bytes fileEncSha256 = 8; - optional string directPath = 9; - optional int64 mediaKeyTimestamp = 10; +message DeviceSentMessage { + optional string destinationJid = 1; + optional Message message = 2; + optional string phash = 3; +} + +message DeclinePaymentRequestMessage { + optional MessageKey key = 1; +} + +message ContactsArrayMessage { + optional string displayName = 1; + repeated ContactMessage contacts = 2; optional ContextInfo contextInfo = 17; - optional bytes streamingSidecar = 18; - optional bytes waveform = 19; } -message VideoMessage { - optional string url = 1; - optional string mimetype = 2; - optional bytes fileSha256 = 3; - optional uint64 fileLength = 4; - optional uint32 seconds = 5; - optional bytes mediaKey = 6; - optional string caption = 7; - optional bool gifPlayback = 8; - optional uint32 height = 9; - optional uint32 width = 10; - optional bytes fileEncSha256 = 11; - repeated InteractiveAnnotation interactiveAnnotations = 12; - optional string directPath = 13; - optional int64 mediaKeyTimestamp = 14; - optional bytes jpegThumbnail = 16; +message ContactMessage { + optional string displayName = 1; + optional string vcard = 16; optional ContextInfo contextInfo = 17; - optional bytes streamingSidecar = 18; - enum VideoMessageAttribution { - NONE = 0; - GIPHY = 1; - TENOR = 2; - } - optional VideoMessageAttribution gifAttribution = 19; - optional bool viewOnce = 20; - optional string thumbnailDirectPath = 21; - optional bytes thumbnailSha256 = 22; - optional bytes thumbnailEncSha256 = 23; - optional string staticUrl = 24; +} + +message Chat { + optional string displayName = 1; + optional string id = 2; +} + +message CancelPaymentRequestMessage { + optional MessageKey key = 1; } message Call { @@ -910,51 +609,78 @@ message Call { optional uint32 conversionDelaySeconds = 4; } -message Chat { - optional string displayName = 1; - optional string id = 2; +message ButtonsResponseMessage { + optional string selectedButtonId = 1; + optional ContextInfo contextInfo = 3; + enum ButtonsResponseMessageType { + UNKNOWN = 0; + DISPLAY_TEXT = 1; + } + optional ButtonsResponseMessageType type = 4; + oneof response { + string selectedDisplayText = 2; + } } -message ProtocolMessage { - optional MessageKey key = 1; - enum ProtocolMessageType { - REVOKE = 0; - EPHEMERAL_SETTING = 3; - EPHEMERAL_SYNC_RESPONSE = 4; - HISTORY_SYNC_NOTIFICATION = 5; - APP_STATE_SYNC_KEY_SHARE = 6; - APP_STATE_SYNC_KEY_REQUEST = 7; - MSG_FANOUT_BACKFILL_REQUEST = 8; - INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = 9; - APP_STATE_FATAL_EXCEPTION_NOTIFICATION = 10; +message ButtonsMessage { + optional string contentText = 6; + optional string footerText = 7; + optional ContextInfo contextInfo = 8; + repeated Button buttons = 9; + enum ButtonsMessageHeaderType { + UNKNOWN = 0; + EMPTY = 1; + TEXT = 2; + DOCUMENT = 3; + IMAGE = 4; + VIDEO = 5; + LOCATION = 6; + } + optional ButtonsMessageHeaderType headerType = 10; + oneof header { + string text = 1; + DocumentMessage documentMessage = 2; + ImageMessage imageMessage = 3; + VideoMessage videoMessage = 4; + LocationMessage locationMessage = 5; } - optional ProtocolMessageType type = 2; - optional uint32 ephemeralExpiration = 4; - optional int64 ephemeralSettingTimestamp = 5; - optional HistorySyncNotification historySyncNotification = 6; - optional AppStateSyncKeyShare appStateSyncKeyShare = 7; - optional AppStateSyncKeyRequest appStateSyncKeyRequest = 8; - optional InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; - optional AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; - optional DisappearingMode disappearingMode = 11; } -message HistorySyncNotification { - optional bytes fileSha256 = 1; - optional uint64 fileLength = 2; - optional bytes mediaKey = 3; - optional bytes fileEncSha256 = 4; - optional string directPath = 5; - enum HistorySyncNotificationHistorySyncType { - INITIAL_BOOTSTRAP = 0; - INITIAL_STATUS_V3 = 1; - FULL = 2; - RECENT = 3; - PUSH_NAME = 4; +message Button { + optional string buttonId = 1; + optional ButtonText buttonText = 2; + enum ButtonType { + UNKNOWN = 0; + RESPONSE = 1; + NATIVE_FLOW = 2; } - optional HistorySyncNotificationHistorySyncType syncType = 6; - optional uint32 chunkOrder = 7; - optional string originalMessageId = 8; + optional ButtonType type = 3; + optional NativeFlowInfo nativeFlowInfo = 4; +} + +message NativeFlowInfo { + optional string name = 1; + optional string paramsJson = 2; +} + +message ButtonText { + optional string displayText = 1; +} + +message AudioMessage { + optional string url = 1; + optional string mimetype = 2; + optional bytes fileSha256 = 3; + optional uint64 fileLength = 4; + optional uint32 seconds = 5; + optional bool ptt = 6; + optional bytes mediaKey = 7; + optional bytes fileEncSha256 = 8; + optional string directPath = 9; + optional int64 mediaKeyTimestamp = 10; + optional ContextInfo contextInfo = 17; + optional bytes streamingSidecar = 18; + optional bytes waveform = 19; } message AppStateSyncKey { @@ -962,6 +688,14 @@ message AppStateSyncKey { optional AppStateSyncKeyData keyData = 2; } +message AppStateSyncKeyShare { + repeated AppStateSyncKey keys = 1; +} + +message AppStateSyncKeyRequest { + repeated AppStateSyncKeyId keyIds = 1; +} + message AppStateSyncKeyId { optional bytes keyId = 1; } @@ -978,164 +712,307 @@ message AppStateSyncKeyData { optional int64 timestamp = 3; } -message AppStateSyncKeyShare { - repeated AppStateSyncKey keys = 1; +message AppStateFatalExceptionNotification { + repeated string collectionNames = 1; + optional int64 timestamp = 2; } -message AppStateSyncKeyRequest { - repeated AppStateSyncKeyId keyIds = 1; +message Location { + optional double degreesLatitude = 1; + optional double degreesLongitude = 2; + optional string name = 3; } -message AppStateFatalExceptionNotification { - repeated string collectionNames = 1; - optional int64 timestamp = 2; +message InteractiveAnnotation { + repeated Point polygonVertices = 1; + oneof action { + Location location = 2; + } } -message InitialSecurityNotificationSettingSync { - optional bool securityNotificationEnabled = 1; +message HydratedTemplateButton { + optional uint32 index = 4; + oneof hydratedButton { + HydratedQuickReplyButton quickReplyButton = 1; + HydratedURLButton urlButton = 2; + HydratedCallButton callButton = 3; + } } -message ContactsArrayMessage { - optional string displayName = 1; - repeated ContactMessage contacts = 2; - optional ContextInfo contextInfo = 17; +message HydratedURLButton { + optional string displayText = 1; + optional string url = 2; } -message HSMCurrency { - optional string currencyCode = 1; - optional int64 amount1000 = 2; +message HydratedQuickReplyButton { + optional string displayText = 1; + optional string id = 2; } -message HSMDateTimeComponent { - enum HSMDateTimeComponentDayOfWeekType { - MONDAY = 1; - TUESDAY = 2; - WEDNESDAY = 3; - THURSDAY = 4; - FRIDAY = 5; - SATURDAY = 6; - SUNDAY = 7; - } - optional HSMDateTimeComponentDayOfWeekType dayOfWeek = 1; - optional uint32 year = 2; - optional uint32 month = 3; - optional uint32 dayOfMonth = 4; - optional uint32 hour = 5; - optional uint32 minute = 6; - enum HSMDateTimeComponentCalendarType { - GREGORIAN = 1; - SOLAR_HIJRI = 2; +message HydratedCallButton { + optional string displayText = 1; + optional string phoneNumber = 2; +} + +message DisappearingMode { + enum DisappearingModeInitiator { + CHANGED_IN_CHAT = 0; + INITIATED_BY_ME = 1; + INITIATED_BY_OTHER = 2; } - optional HSMDateTimeComponentCalendarType calendar = 7; + optional DisappearingModeInitiator initiator = 1; } -message HSMDateTimeUnixEpoch { - optional int64 timestamp = 1; +message DeviceListMetadata { + optional bytes senderKeyHash = 1; + optional uint64 senderTimestamp = 2; + repeated uint32 senderKeyIndexes = 3 [packed=true]; + optional bytes recipientKeyHash = 8; + optional uint64 recipientTimestamp = 9; + repeated uint32 recipientKeyIndexes = 10 [packed=true]; } -message HSMDateTime { - oneof datetimeOneof { - HSMDateTimeComponent component = 1; - HSMDateTimeUnixEpoch unixEpoch = 2; +message ContextInfo { + optional string stanzaId = 1; + optional string participant = 2; + optional Message quotedMessage = 3; + optional string remoteJid = 4; + repeated string mentionedJid = 15; + optional string conversionSource = 18; + optional bytes conversionData = 19; + optional uint32 conversionDelaySeconds = 20; + optional uint32 forwardingScore = 21; + optional bool isForwarded = 22; + optional AdReplyInfo quotedAd = 23; + optional MessageKey placeholderKey = 24; + optional uint32 expiration = 25; + optional int64 ephemeralSettingTimestamp = 26; + optional bytes ephemeralSharedSecret = 27; + optional ExternalAdReplyInfo externalAdReply = 28; + optional string entryPointConversionSource = 29; + optional string entryPointConversionApp = 30; + optional uint32 entryPointConversionDelaySeconds = 31; + optional DisappearingMode disappearingMode = 32; + optional ActionLink actionLink = 33; + optional string groupSubject = 34; + optional string parentGroupJid = 35; +} + +message ExternalAdReplyInfo { + optional string title = 1; + optional string body = 2; + enum ExternalAdReplyInfoMediaType { + NONE = 0; + IMAGE = 1; + VIDEO = 2; } + optional ExternalAdReplyInfoMediaType mediaType = 3; + optional string thumbnailUrl = 4; + optional string mediaUrl = 5; + optional bytes thumbnail = 6; + optional string sourceType = 7; + optional string sourceId = 8; + optional string sourceUrl = 9; + optional bool containsAutoReply = 10; + optional bool renderLargerThumbnail = 11; + optional bool showAdAttribution = 12; } -message HSMLocalizableParameter { - optional string default = 1; - oneof paramOneof { - HSMCurrency currency = 2; - HSMDateTime dateTime = 3; +message AdReplyInfo { + optional string advertiserName = 1; + enum AdReplyInfoMediaType { + NONE = 0; + IMAGE = 1; + VIDEO = 2; } + optional AdReplyInfoMediaType mediaType = 2; + optional bytes jpegThumbnail = 16; + optional string caption = 17; } -message HighlyStructuredMessage { - optional string namespace = 1; - optional string elementName = 2; - repeated string params = 3; - optional string fallbackLg = 4; - optional string fallbackLc = 5; - repeated HSMLocalizableParameter localizableParams = 6; - optional string deterministicLg = 7; - optional string deterministicLc = 8; - optional TemplateMessage hydratedHsm = 9; +message ActionLink { + optional string url = 1; + optional string buttonTitle = 2; } -message SendPaymentMessage { - optional Message noteMessage = 2; - optional MessageKey requestMessageKey = 3; - optional PaymentBackground background = 4; +message TemplateButton { + optional uint32 index = 4; + oneof button { + QuickReplyButton quickReplyButton = 1; + URLButton urlButton = 2; + CallButton callButton = 3; + } } -message RequestPaymentMessage { - optional Message noteMessage = 4; - optional string currencyCodeIso4217 = 1; - optional uint64 amount1000 = 2; - optional string requestFrom = 3; - optional int64 expiryTimestamp = 5; - optional Money amount = 6; - optional PaymentBackground background = 7; +message URLButton { + optional HighlyStructuredMessage displayText = 1; + optional HighlyStructuredMessage url = 2; } -message DeclinePaymentRequestMessage { - optional MessageKey key = 1; +message QuickReplyButton { + optional HighlyStructuredMessage displayText = 1; + optional string id = 2; } -message CancelPaymentRequestMessage { - optional MessageKey key = 1; +message CallButton { + optional HighlyStructuredMessage displayText = 1; + optional HighlyStructuredMessage phoneNumber = 2; } -message PaymentInviteMessage { - enum PaymentInviteMessageServiceType { +message PollUpdateMessage { + optional MessageKey pollCreationMessageKey = 1; + optional bytes encPayload = 2; + optional bytes encIv = 3; +} + +message PollUpdateMessageContent { + oneof update { + PollVoteMessage voteMessage = 1; + } +} + +message PollVoteMessage { + repeated bytes selectedOptions = 1; + optional int64 senderTimestampMs = 2; +} + +message PollCreationMessage { + optional bytes encKey = 1; + optional string name = 2; + repeated Option options = 3; + optional uint32 selectableOptionsCount = 4; +} + +message Option { + optional string optionName = 1; +} + +message Point { + optional int32 xDeprecated = 1; + optional int32 yDeprecated = 2; + optional double x = 3; + optional double y = 4; +} + +message PaymentBackground { + optional string id = 1; + optional uint64 fileLength = 2; + optional uint32 width = 3; + optional uint32 height = 4; + optional string mimetype = 5; + optional fixed32 placeholderArgb = 6; + optional fixed32 textArgb = 7; + optional fixed32 subtextArgb = 8; + optional PBMediaData mediaData = 9; + enum PaymentBackgroundType { UNKNOWN = 0; - FBPAY = 1; - NOVI = 2; - UPI = 3; + DEFAULT = 1; } - optional PaymentInviteMessageServiceType serviceType = 1; - optional int64 expiryTimestamp = 2; + optional PaymentBackgroundType type = 10; } -message LiveLocationMessage { - optional double degreesLatitude = 1; - optional double degreesLongitude = 2; - optional uint32 accuracyInMeters = 3; - optional float speedInMps = 4; - optional uint32 degreesClockwiseFromMagneticNorth = 5; - optional string caption = 6; - optional int64 sequenceNumber = 7; - optional uint32 timeOffset = 8; - optional bytes jpegThumbnail = 16; - optional ContextInfo contextInfo = 17; +// Renamed from PaymentBackground$MediaData +message PBMediaData { + optional bytes mediaKey = 1; + optional int64 mediaKeyTimestamp = 2; + optional bytes fileSha256 = 3; + optional bytes fileEncSha256 = 4; + optional string directPath = 5; } -message StickerMessage { +message Money { + optional int64 value = 1; + optional uint32 offset = 2; + optional string currencyCode = 3; +} + +message Message { + optional string conversation = 1; + optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2; + optional ImageMessage imageMessage = 3; + optional ContactMessage contactMessage = 4; + optional LocationMessage locationMessage = 5; + optional ExtendedTextMessage extendedTextMessage = 6; + optional DocumentMessage documentMessage = 7; + optional AudioMessage audioMessage = 8; + optional VideoMessage videoMessage = 9; + optional Call call = 10; + optional Chat chat = 11; + optional ProtocolMessage protocolMessage = 12; + optional ContactsArrayMessage contactsArrayMessage = 13; + optional HighlyStructuredMessage highlyStructuredMessage = 14; + optional SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; + optional SendPaymentMessage sendPaymentMessage = 16; + optional LiveLocationMessage liveLocationMessage = 18; + optional RequestPaymentMessage requestPaymentMessage = 22; + optional DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; + optional CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; + optional TemplateMessage templateMessage = 25; + optional StickerMessage stickerMessage = 26; + optional GroupInviteMessage groupInviteMessage = 28; + optional TemplateButtonReplyMessage templateButtonReplyMessage = 29; + optional ProductMessage productMessage = 30; + optional DeviceSentMessage deviceSentMessage = 31; + optional MessageContextInfo messageContextInfo = 35; + optional ListMessage listMessage = 36; + optional FutureProofMessage viewOnceMessage = 37; + optional OrderMessage orderMessage = 38; + optional ListResponseMessage listResponseMessage = 39; + optional FutureProofMessage ephemeralMessage = 40; + optional InvoiceMessage invoiceMessage = 41; + optional ButtonsMessage buttonsMessage = 42; + optional ButtonsResponseMessage buttonsResponseMessage = 43; + optional PaymentInviteMessage paymentInviteMessage = 44; + optional InteractiveMessage interactiveMessage = 45; + optional ReactionMessage reactionMessage = 46; + optional StickerSyncRMRMessage stickerSyncRmrMessage = 47; + optional InteractiveResponseMessage interactiveResponseMessage = 48; + optional PollCreationMessage pollCreationMessage = 49; + optional PollUpdateMessage pollUpdateMessage = 50; +} + +message MessageContextInfo { + optional DeviceListMetadata deviceListMetadata = 1; + optional int32 deviceListMetadataVersion = 2; +} + +message VideoMessage { optional string url = 1; - optional bytes fileSha256 = 2; - optional bytes fileEncSha256 = 3; - optional bytes mediaKey = 4; - optional string mimetype = 5; - optional uint32 height = 6; - optional uint32 width = 7; - optional string directPath = 8; - optional uint64 fileLength = 9; - optional int64 mediaKeyTimestamp = 10; - optional uint32 firstFrameLength = 11; - optional bytes firstFrameSidecar = 12; - optional bool isAnimated = 13; - optional bytes pngThumbnail = 16; + optional string mimetype = 2; + optional bytes fileSha256 = 3; + optional uint64 fileLength = 4; + optional uint32 seconds = 5; + optional bytes mediaKey = 6; + optional string caption = 7; + optional bool gifPlayback = 8; + optional uint32 height = 9; + optional uint32 width = 10; + optional bytes fileEncSha256 = 11; + repeated InteractiveAnnotation interactiveAnnotations = 12; + optional string directPath = 13; + optional int64 mediaKeyTimestamp = 14; + optional bytes jpegThumbnail = 16; optional ContextInfo contextInfo = 17; + optional bytes streamingSidecar = 18; + enum VideoMessageAttribution { + NONE = 0; + GIPHY = 1; + TENOR = 2; + } + optional VideoMessageAttribution gifAttribution = 19; + optional bool viewOnce = 20; + optional string thumbnailDirectPath = 21; + optional bytes thumbnailSha256 = 22; + optional bytes thumbnailEncSha256 = 23; + optional string staticUrl = 24; } -message FourRowTemplate { - optional HighlyStructuredMessage content = 6; - optional HighlyStructuredMessage footer = 7; - repeated TemplateButton buttons = 8; - oneof title { - DocumentMessage documentMessage = 1; - HighlyStructuredMessage highlyStructuredMessage = 2; - ImageMessage imageMessage = 3; - VideoMessage videoMessage = 4; - LocationMessage locationMessage = 5; +message TemplateMessage { + optional ContextInfo contextInfo = 3; + optional HydratedFourRowTemplate hydratedTemplate = 4; + oneof format { + FourRowTemplate fourRowTemplate = 1; + HydratedFourRowTemplate hydratedFourRowTemplate = 2; } } @@ -1153,12 +1030,16 @@ message HydratedFourRowTemplate { } } -message TemplateMessage { - optional ContextInfo contextInfo = 3; - optional HydratedFourRowTemplate hydratedTemplate = 4; - oneof format { - FourRowTemplate fourRowTemplate = 1; - HydratedFourRowTemplate hydratedFourRowTemplate = 2; +message FourRowTemplate { + optional HighlyStructuredMessage content = 6; + optional HighlyStructuredMessage footer = 7; + repeated TemplateButton buttons = 8; + oneof title { + DocumentMessage documentMessage = 1; + HighlyStructuredMessage highlyStructuredMessage = 2; + ImageMessage imageMessage = 3; + VideoMessage videoMessage = 4; + LocationMessage locationMessage = 5; } } @@ -1169,584 +1050,685 @@ message TemplateButtonReplyMessage { optional uint32 selectedIndex = 4; } -message CatalogSnapshot { - optional ImageMessage catalogImage = 1; - optional string title = 2; - optional string description = 3; +message StickerSyncRMRMessage { + repeated string filehash = 1; + optional string rmrSource = 2; + optional int64 requestTimestamp = 3; } -message ProductSnapshot { - optional ImageMessage productImage = 1; - optional string productId = 2; - optional string title = 3; - optional string description = 4; - optional string currencyCode = 5; - optional int64 priceAmount1000 = 6; - optional string retailerId = 7; - optional string url = 8; - optional uint32 productImageCount = 9; - optional string firstImageId = 11; - optional int64 salePriceAmount1000 = 12; +message EphemeralSetting { + optional sfixed32 duration = 1; + optional sfixed64 timestamp = 2; } -message ProductMessage { - optional ProductSnapshot product = 1; - optional string businessOwnerJid = 2; - optional CatalogSnapshot catalog = 4; - optional string body = 5; - optional string footer = 6; - optional ContextInfo contextInfo = 17; +message WallpaperSettings { + optional string filename = 1; + optional uint32 opacity = 2; } -message OrderMessage { - optional string orderId = 1; - optional bytes thumbnail = 2; - optional int32 itemCount = 3; - enum OrderMessageOrderStatus { - INQUIRY = 1; +message Pushname { + optional string id = 1; + optional string pushname = 2; +} + +enum MediaVisibility { + DEFAULT = 0; + OFF = 1; + ON = 2; +} +message HistorySync { + enum HistorySyncHistorySyncType { + INITIAL_BOOTSTRAP = 0; + INITIAL_STATUS_V3 = 1; + FULL = 2; + RECENT = 3; + PUSH_NAME = 4; } - optional OrderMessageOrderStatus status = 4; - enum OrderMessageOrderSurface { - CATALOG = 1; + required HistorySyncHistorySyncType syncType = 1; + repeated Conversation conversations = 2; + repeated WebMessageInfo statusV3Messages = 3; + optional uint32 chunkOrder = 5; + optional uint32 progress = 6; + repeated Pushname pushnames = 7; + optional GlobalSettings globalSettings = 8; + optional bytes threadIdUserSecret = 9; + optional uint32 threadDsTimeframeOffset = 10; +} + +message HistorySyncMsg { + optional WebMessageInfo message = 1; + optional uint64 msgOrderId = 2; +} + +message GroupParticipant { + required string userJid = 1; + enum GroupParticipantRank { + REGULAR = 0; + ADMIN = 1; + SUPERADMIN = 2; } - optional OrderMessageOrderSurface surface = 5; - optional string message = 6; - optional string orderTitle = 7; - optional string sellerJid = 8; - optional string token = 9; - optional int64 totalAmount1000 = 10; - optional string totalCurrencyCode = 11; - optional ContextInfo contextInfo = 17; + optional GroupParticipantRank rank = 2; } -message Row { - optional string title = 1; - optional string description = 2; - optional string rowId = 3; +message GlobalSettings { + optional WallpaperSettings lightThemeWallpaper = 1; + optional MediaVisibility mediaVisibility = 2; + optional WallpaperSettings darkThemeWallpaper = 3; + optional AutoDownloadSettings autoDownloadWiFi = 4; + optional AutoDownloadSettings autoDownloadCellular = 5; + optional AutoDownloadSettings autoDownloadRoaming = 6; + optional bool showIndividualNotificationsPreview = 7; + optional bool showGroupNotificationsPreview = 8; } -message Section { - optional string title = 1; - repeated Row rows = 2; +message Conversation { + required string id = 1; + repeated HistorySyncMsg messages = 2; + optional string newJid = 3; + optional string oldJid = 4; + optional uint64 lastMsgTimestamp = 5; + optional uint32 unreadCount = 6; + optional bool readOnly = 7; + optional bool endOfHistoryTransfer = 8; + optional uint32 ephemeralExpiration = 9; + optional int64 ephemeralSettingTimestamp = 10; + enum ConversationEndOfHistoryTransferType { + COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0; + COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1; + } + optional ConversationEndOfHistoryTransferType endOfHistoryTransferType = 11; + optional uint64 conversationTimestamp = 12; + optional string name = 13; + optional string pHash = 14; + optional bool notSpam = 15; + optional bool archived = 16; + optional DisappearingMode disappearingMode = 17; + optional uint32 unreadMentionCount = 18; + optional bool markedAsUnread = 19; + repeated GroupParticipant participant = 20; + optional bytes tcToken = 21; + optional uint64 tcTokenTimestamp = 22; + optional bytes contactPrimaryIdentityKey = 23; + optional uint32 pinned = 24; + optional uint64 muteEndTime = 25; + optional WallpaperSettings wallpaper = 26; + optional MediaVisibility mediaVisibility = 27; + optional uint64 tcTokenSenderTimestamp = 28; + optional bool suspended = 29; } -message Product { - optional string productId = 1; +message AutoDownloadSettings { + optional bool downloadImages = 1; + optional bool downloadAudio = 2; + optional bool downloadVideo = 3; + optional bool downloadDocuments = 4; } -message ProductSection { - optional string title = 1; - repeated Product products = 2; +message MsgRowOpaqueData { + optional MsgOpaqueData currentMsg = 1; + optional MsgOpaqueData quotedMsg = 2; } -message ProductListHeaderImage { - optional string productId = 1; - optional bytes jpegThumbnail = 2; +message MsgOpaqueData { + optional string body = 1; + optional string caption = 3; + optional double lng = 5; + optional bool isLive = 6; + optional double lat = 7; + optional int32 paymentAmount1000 = 8; + optional string paymentNoteMsgBody = 9; + optional string canonicalUrl = 10; + optional string matchedText = 11; + optional string title = 12; + optional string description = 13; + optional bytes futureproofBuffer = 14; + optional string clientUrl = 15; + optional string loc = 16; } -message ProductListInfo { - repeated ProductSection productSections = 1; - optional ProductListHeaderImage headerImage = 2; - optional string businessOwnerJid = 3; +message ServerErrorReceipt { + optional string stanzaId = 1; } -message ListMessage { - optional string title = 1; - optional string description = 2; - optional string buttonText = 3; - enum ListMessageListType { - UNKNOWN = 0; - SINGLE_SELECT = 1; - PRODUCT_LIST = 2; +message MediaRetryNotification { + optional string stanzaId = 1; + optional string directPath = 2; + enum MediaRetryNotificationResultType { + GENERAL_ERROR = 0; + SUCCESS = 1; + NOT_FOUND = 2; + DECRYPTION_ERROR = 3; } - optional ListMessageListType listType = 4; - repeated Section sections = 5; - optional ProductListInfo productListInfo = 6; - optional string footerText = 7; - optional ContextInfo contextInfo = 8; + optional MediaRetryNotificationResultType result = 3; } -message SingleSelectReply { - optional string selectedRowId = 1; +message MessageKey { + optional string remoteJid = 1; + optional bool fromMe = 2; + optional string id = 3; + optional string participant = 4; } -message ListResponseMessage { - optional string title = 1; - enum ListResponseMessageListType { - UNKNOWN = 0; - SINGLE_SELECT = 1; - } - optional ListResponseMessageListType listType = 2; - optional SingleSelectReply singleSelectReply = 3; - optional ContextInfo contextInfo = 4; - optional string description = 5; +// Duplicate type omitted +//message MessageKey { +// optional string remoteJid = 1; +// optional bool fromMe = 2; +// optional string id = 3; +// optional string participant = 4; +//} + +message SyncdVersion { + optional uint64 version = 1; } -message Header { - optional string title = 1; - optional string subtitle = 2; - optional bool hasMediaAttachment = 5; - oneof media { - DocumentMessage documentMessage = 3; - ImageMessage imageMessage = 4; - bytes jpegThumbnail = 6; - VideoMessage videoMessage = 7; - } +message SyncdValue { + optional bytes blob = 1; } -message Body { - optional string text = 1; +message SyncdSnapshot { + optional SyncdVersion version = 1; + repeated SyncdRecord records = 2; + optional bytes mac = 3; + optional KeyId keyId = 4; } -message Footer { - optional string text = 1; +message SyncdRecord { + optional SyncdIndex index = 1; + optional SyncdValue value = 2; + optional KeyId keyId = 3; } -message ShopMessage { - optional string id = 1; - enum ShopMessageSurface { - UNKNOWN_SURFACE = 0; - FB = 1; - IG = 2; - WA = 3; +message SyncdPatch { + optional SyncdVersion version = 1; + repeated SyncdMutation mutations = 2; + optional ExternalBlobReference externalMutations = 3; + optional bytes snapshotMac = 4; + optional bytes patchMac = 5; + optional KeyId keyId = 6; + optional ExitCode exitCode = 7; + optional uint32 deviceIndex = 8; +} + +message SyncdMutations { + repeated SyncdMutation mutations = 1; +} + +message SyncdMutation { + enum SyncdMutationSyncdOperation { + SET = 0; + REMOVE = 1; } - optional ShopMessageSurface surface = 2; - optional int32 messageVersion = 3; + optional SyncdMutationSyncdOperation operation = 1; + optional SyncdRecord record = 2; } -message CollectionMessage { - optional string bizJid = 1; - optional string id = 2; - optional int32 messageVersion = 3; +message SyncdIndex { + optional bytes blob = 1; } -message NativeFlowButton { - optional string name = 1; - optional string buttonParamsJson = 2; +message KeyId { + optional bytes id = 1; } -message NativeFlowMessage { - repeated NativeFlowButton buttons = 1; - optional string messageParamsJson = 2; - optional int32 messageVersion = 3; +message ExternalBlobReference { + optional bytes mediaKey = 1; + optional string directPath = 2; + optional string handle = 3; + optional uint64 fileSizeBytes = 4; + optional bytes fileSha256 = 5; + optional bytes fileEncSha256 = 6; } -message InteractiveMessage { - optional Header header = 1; - optional Body body = 2; - optional Footer footer = 3; - optional ContextInfo contextInfo = 15; - oneof interactiveMessage { - ShopMessage shopStorefrontMessage = 4; - CollectionMessage collectionMessage = 5; - NativeFlowMessage nativeFlowMessage = 6; - } +message ExitCode { + optional uint64 code = 1; + optional string text = 2; } -message GroupInviteMessage { - optional string groupJid = 1; - optional string inviteCode = 2; - optional int64 inviteExpiration = 3; - optional string groupName = 4; - optional bytes jpegThumbnail = 5; - optional string caption = 6; - optional ContextInfo contextInfo = 7; - enum GroupInviteMessageGroupType { - DEFAULT = 0; - PARENT = 1; - } - optional GroupInviteMessageGroupType groupType = 8; +message SyncActionValue { + optional int64 timestamp = 1; + optional StarAction starAction = 2; + optional ContactAction contactAction = 3; + optional MuteAction muteAction = 4; + optional PinAction pinAction = 5; + optional SecurityNotificationSetting securityNotificationSetting = 6; + optional PushNameSetting pushNameSetting = 7; + optional QuickReplyAction quickReplyAction = 8; + optional RecentStickerWeightsAction recentStickerWeightsAction = 9; + optional RecentStickerMetadata recentStickerMetadata = 10; + optional RecentEmojiWeightsAction recentEmojiWeightsAction = 11; + optional LabelEditAction labelEditAction = 14; + optional LabelAssociationAction labelAssociationAction = 15; + optional LocaleSetting localeSetting = 16; + optional ArchiveChatAction archiveChatAction = 17; + optional DeleteMessageForMeAction deleteMessageForMeAction = 18; + optional KeyExpiration keyExpiration = 19; + optional MarkChatAsReadAction markChatAsReadAction = 20; + optional ClearChatAction clearChatAction = 21; + optional DeleteChatAction deleteChatAction = 22; + optional UnarchiveChatsSetting unarchiveChatsSetting = 23; + optional PrimaryFeature primaryFeature = 24; + optional FavoriteStickerAction favoriteStickerAction = 25; + optional AndroidUnsupportedActions androidUnsupportedActions = 26; } -message DeviceSentMessage { - optional string destinationJid = 1; - optional Message message = 2; - optional string phash = 3; +message UnarchiveChatsSetting { + optional bool unarchiveChats = 1; } -message FutureProofMessage { - optional Message message = 1; +message SyncActionMessage { + optional MessageKey key = 1; + optional int64 timestamp = 2; } -message ButtonText { - optional string displayText = 1; +message SyncActionMessageRange { + optional int64 lastMessageTimestamp = 1; + optional int64 lastSystemMessageTimestamp = 2; + repeated SyncActionMessage messages = 3; } -message NativeFlowInfo { - optional string name = 1; - optional string paramsJson = 2; +message StarAction { + optional bool starred = 1; } -message Button { - optional string buttonId = 1; - optional ButtonText buttonText = 2; - enum ButtonType { - UNKNOWN = 0; - RESPONSE = 1; - NATIVE_FLOW = 2; - } - optional ButtonType type = 3; - optional NativeFlowInfo nativeFlowInfo = 4; +message SecurityNotificationSetting { + optional bool showNotification = 1; } -message ButtonsMessage { - optional string contentText = 6; - optional string footerText = 7; - optional ContextInfo contextInfo = 8; - repeated Button buttons = 9; - enum ButtonsMessageHeaderType { - UNKNOWN = 0; - EMPTY = 1; - TEXT = 2; - DOCUMENT = 3; - IMAGE = 4; - VIDEO = 5; - LOCATION = 6; - } - optional ButtonsMessageHeaderType headerType = 10; - oneof header { - string text = 1; - DocumentMessage documentMessage = 2; - ImageMessage imageMessage = 3; - VideoMessage videoMessage = 4; - LocationMessage locationMessage = 5; - } +message RecentStickerWeightsAction { + repeated RecentStickerWeight weights = 1; } -message ButtonsResponseMessage { - optional string selectedButtonId = 1; - optional ContextInfo contextInfo = 3; - enum ButtonsResponseMessageType { - UNKNOWN = 0; - DISPLAY_TEXT = 1; - } - optional ButtonsResponseMessageType type = 4; - oneof response { - string selectedDisplayText = 2; - } +message RecentStickerMetadata { + optional string directPath = 1; + optional string encFilehash = 2; + optional string mediaKey = 3; + optional string stanzaId = 4; + optional string chatJid = 5; + optional string participant = 6; + optional bool isSentByMe = 7; } -message ReactionMessage { - optional MessageKey key = 1; - optional string text = 2; - optional string groupingKey = 3; - optional int64 senderTimestampMs = 4; +message RecentEmojiWeightsAction { + repeated RecentEmojiWeight weights = 1; } -message StickerSyncRMRMessage { - repeated string filehash = 1; - optional string rmrSource = 2; - optional int64 requestTimestamp = 3; +message QuickReplyAction { + optional string shortcut = 1; + optional string message = 2; + repeated string keywords = 3; + optional int32 count = 4; + optional bool deleted = 5; } -message Message { - optional string conversation = 1; - optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2; - optional ImageMessage imageMessage = 3; - optional ContactMessage contactMessage = 4; - optional LocationMessage locationMessage = 5; - optional ExtendedTextMessage extendedTextMessage = 6; - optional DocumentMessage documentMessage = 7; - optional AudioMessage audioMessage = 8; - optional VideoMessage videoMessage = 9; - optional Call call = 10; - optional Chat chat = 11; - optional ProtocolMessage protocolMessage = 12; - optional ContactsArrayMessage contactsArrayMessage = 13; - optional HighlyStructuredMessage highlyStructuredMessage = 14; - optional SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; - optional SendPaymentMessage sendPaymentMessage = 16; - optional LiveLocationMessage liveLocationMessage = 18; - optional RequestPaymentMessage requestPaymentMessage = 22; - optional DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; - optional CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; - optional TemplateMessage templateMessage = 25; - optional StickerMessage stickerMessage = 26; - optional GroupInviteMessage groupInviteMessage = 28; - optional TemplateButtonReplyMessage templateButtonReplyMessage = 29; - optional ProductMessage productMessage = 30; - optional DeviceSentMessage deviceSentMessage = 31; - optional MessageContextInfo messageContextInfo = 35; - optional ListMessage listMessage = 36; - optional FutureProofMessage viewOnceMessage = 37; - optional OrderMessage orderMessage = 38; - optional ListResponseMessage listResponseMessage = 39; - optional FutureProofMessage ephemeralMessage = 40; - optional InvoiceMessage invoiceMessage = 41; - optional ButtonsMessage buttonsMessage = 42; - optional ButtonsResponseMessage buttonsResponseMessage = 43; - optional PaymentInviteMessage paymentInviteMessage = 44; - optional InteractiveMessage interactiveMessage = 45; - optional ReactionMessage reactionMessage = 46; - optional StickerSyncRMRMessage stickerSyncRmrMessage = 47; +message PushNameSetting { + optional string name = 1; } -message ActionLink { - optional string url = 1; - optional string buttonTitle = 2; +message PrimaryFeature { + repeated string flags = 1; } -message DisappearingMode { - enum DisappearingModeInitiator { - CHANGED_IN_CHAT = 0; - INITIATED_BY_ME = 1; - INITIATED_BY_OTHER = 2; - } - optional DisappearingModeInitiator initiator = 1; +message PinAction { + optional bool pinned = 1; } -// Renamed from MediaData -message PBMediaData { - optional bytes mediaKey = 1; - optional int64 mediaKeyTimestamp = 2; - optional bytes fileSha256 = 3; - optional bytes fileEncSha256 = 4; - optional string directPath = 5; +message MuteAction { + optional bool muted = 1; + optional int64 muteEndTimestamp = 2; } -message PaymentBackground { - optional string id = 1; - optional uint64 fileLength = 2; - optional uint32 width = 3; - optional uint32 height = 4; - optional string mimetype = 5; - optional fixed32 placeholderArgb = 6; - optional fixed32 textArgb = 7; - optional fixed32 subtextArgb = 8; - optional PBMediaData mediaData = 9; - enum PaymentBackgroundType { - UNKNOWN = 0; - DEFAULT = 1; - } - optional PaymentBackgroundType type = 10; +message MarkChatAsReadAction { + optional bool read = 1; + optional SyncActionMessageRange messageRange = 2; } -message Money { - optional int64 value = 1; - optional uint32 offset = 2; - optional string currencyCode = 3; +message LocaleSetting { + optional string locale = 1; } -message HydratedQuickReplyButton { - optional string displayText = 1; - optional string id = 2; +message LabelEditAction { + optional string name = 1; + optional int32 color = 2; + optional int32 predefinedId = 3; + optional bool deleted = 4; } -message HydratedURLButton { - optional string displayText = 1; - optional string url = 2; +message LabelAssociationAction { + optional bool labeled = 1; } -message HydratedCallButton { - optional string displayText = 1; - optional string phoneNumber = 2; +message KeyExpiration { + optional int32 expiredKeyEpoch = 1; } -message HydratedTemplateButton { - optional uint32 index = 4; - oneof hydratedButton { - HydratedQuickReplyButton quickReplyButton = 1; - HydratedURLButton urlButton = 2; - HydratedCallButton callButton = 3; - } +message FavoriteStickerAction { + optional string directPath = 1; + optional string lastUploadTimestamp = 2; + optional string handle = 3; + optional string encFilehash = 4; + optional string stickerHashWithoutMeta = 5; + optional string mediaKey = 6; + optional int64 mediaKeyTimestamp = 7; + optional bool isFavorite = 8; } -message QuickReplyButton { - optional HighlyStructuredMessage displayText = 1; - optional string id = 2; +message DeleteMessageForMeAction { + optional bool deleteMedia = 1; + optional int64 messageTimestamp = 2; } -message URLButton { - optional HighlyStructuredMessage displayText = 1; - optional HighlyStructuredMessage url = 2; +message DeleteChatAction { + optional SyncActionMessageRange messageRange = 1; } -message CallButton { - optional HighlyStructuredMessage displayText = 1; - optional HighlyStructuredMessage phoneNumber = 2; +message ContactAction { + optional string fullName = 1; + optional string firstName = 2; } -message TemplateButton { - optional uint32 index = 4; - oneof button { - QuickReplyButton quickReplyButton = 1; - URLButton urlButton = 2; - CallButton callButton = 3; - } +message ClearChatAction { + optional SyncActionMessageRange messageRange = 1; } -message Location { - optional double degreesLatitude = 1; - optional double degreesLongitude = 2; - optional string name = 3; +message ArchiveChatAction { + optional bool archived = 1; + optional SyncActionMessageRange messageRange = 2; } -message Point { - optional int32 xDeprecated = 1; - optional int32 yDeprecated = 2; - optional double x = 3; - optional double y = 4; +message AndroidUnsupportedActions { + optional bool allowed = 1; } -// Duplicate type omitted -//message AppVersion { -// optional uint32 primary = 1; -// optional uint32 secondary = 2; -// optional uint32 tertiary = 3; -// optional uint32 quaternary = 4; -// optional uint32 quinary = 5; -//} +message SyncActionData { + optional bytes index = 1; + optional SyncActionValue value = 2; + optional bytes padding = 3; + optional int32 version = 4; +} -message CompanionProps { - optional string os = 1; - optional AppVersion version = 2; - enum CompanionPropsPlatformType { +message RecentStickerWeight { + optional string filehash = 1; + optional float weight = 2; +} + +message RecentEmojiWeight { + optional string emoji = 1; + optional float weight = 2; +} + +message VerifiedNameCertificate { + optional bytes details = 1; + optional bytes signature = 2; + optional bytes serverSignature = 3; +} + +// Renamed from VerifiedNameCertificate$Details +message VerifiedNameDetails { + optional uint64 serial = 1; + optional string issuer = 2; + optional string verifiedName = 4; + repeated LocalizedName localizedNames = 8; + optional uint64 issueTime = 10; +} + +message LocalizedName { + optional string lg = 1; + optional string lc = 2; + optional string verifiedName = 3; +} + +message BizIdentityInfo { + enum BizIdentityInfoVerifiedLevelValue { UNKNOWN = 0; - CHROME = 1; - FIREFOX = 2; - IE = 3; - OPERA = 4; - SAFARI = 5; - EDGE = 6; - DESKTOP = 7; - IPAD = 8; - ANDROID_TABLET = 9; - OHANA = 10; - ALOHA = 11; - CATALINA = 12; + LOW = 1; + HIGH = 2; } - optional CompanionPropsPlatformType platformType = 3; - optional bool requireFullSync = 4; + optional BizIdentityInfoVerifiedLevelValue vlevel = 1; + optional VerifiedNameCertificate vnameCert = 2; + optional bool signed = 3; + optional bool revoked = 4; + enum BizIdentityInfoHostStorageType { + ON_PREMISE = 0; + FACEBOOK = 1; + } + optional BizIdentityInfoHostStorageType hostStorage = 5; + enum BizIdentityInfoActualActorsType { + SELF = 0; + BSP = 1; + } + optional BizIdentityInfoActualActorsType actualActors = 6; + optional uint64 privacyModeTs = 7; + optional uint64 featureControls = 8; } -message ADVSignedDeviceIdentityHMAC { - optional bytes details = 1; - optional bytes hmac = 2; +message BizAccountPayload { + optional VerifiedNameCertificate vnameCert = 1; + optional bytes bizAcctLinkInfo = 2; } -message ADVSignedDeviceIdentity { +message BizAccountLinkInfo { + optional uint64 whatsappBizAcctFbid = 1; + optional string whatsappAcctNumber = 2; + optional uint64 issueTime = 3; + enum BizAccountLinkInfoHostStorageType { + ON_PREMISE = 0; + FACEBOOK = 1; + } + optional BizAccountLinkInfoHostStorageType hostStorage = 4; + enum BizAccountLinkInfoAccountType { + ENTERPRISE = 0; + } + optional BizAccountLinkInfoAccountType accountType = 5; +} + +message NoiseCertificate { optional bytes details = 1; - optional bytes accountSignatureKey = 2; - optional bytes accountSignature = 3; - optional bytes deviceSignature = 4; + optional bytes signature = 2; } -message ADVDeviceIdentity { - optional uint32 rawId = 1; - optional uint64 timestamp = 2; - optional uint32 keyIndex = 3; +// Renamed from NoiseCertificate$Details +message NoiseCertificateDetails { + optional uint32 serial = 1; + optional string issuer = 2; + optional uint64 expires = 3; + optional string subject = 4; + optional bytes key = 5; } -message ADVSignedKeyIndexList { - optional bytes details = 1; - optional bytes accountSignature = 2; +message HandshakeMessage { + optional ClientHello clientHello = 2; + optional ServerHello serverHello = 3; + optional ClientFinish clientFinish = 4; } -message ADVKeyIndexList { - optional uint32 rawId = 1; - optional uint64 timestamp = 2; - optional uint32 currentIndex = 3; - repeated uint32 validIndexes = 4 [packed=true]; +message ServerHello { + optional bytes ephemeral = 1; + optional bytes static = 2; + optional bytes payload = 3; } -message MessageKey { - optional string remoteJid = 1; - optional bool fromMe = 2; - optional string id = 3; - optional string participant = 4; +message ClientHello { + optional bytes ephemeral = 1; + optional bytes static = 2; + optional bytes payload = 3; } -message Reaction { - optional MessageKey key = 1; - optional string text = 2; - optional string groupingKey = 3; - optional int64 senderTimestampMs = 4; - optional bool unread = 5; +message ClientFinish { + optional bytes static = 1; + optional bytes payload = 2; } -message UserReceipt { - required string userJid = 1; - optional int64 receiptTimestamp = 2; - optional int64 readTimestamp = 3; - optional int64 playedTimestamp = 4; - repeated string pendingDeviceJid = 5; - repeated string deliveredDeviceJid = 6; +message ClientPayload { + optional uint64 username = 1; + optional bool passive = 3; + optional UserAgent userAgent = 5; + optional WebInfo webInfo = 6; + optional string pushName = 7; + optional sfixed32 sessionId = 9; + optional bool shortConnect = 10; + enum ClientPayloadConnectType { + CELLULAR_UNKNOWN = 0; + WIFI_UNKNOWN = 1; + CELLULAR_EDGE = 100; + CELLULAR_IDEN = 101; + CELLULAR_UMTS = 102; + CELLULAR_EVDO = 103; + CELLULAR_GPRS = 104; + CELLULAR_HSDPA = 105; + CELLULAR_HSUPA = 106; + CELLULAR_HSPA = 107; + CELLULAR_CDMA = 108; + CELLULAR_1XRTT = 109; + CELLULAR_EHRPD = 110; + CELLULAR_LTE = 111; + CELLULAR_HSPAP = 112; + } + optional ClientPayloadConnectType connectType = 12; + enum ClientPayloadConnectReason { + PUSH = 0; + USER_ACTIVATED = 1; + SCHEDULED = 2; + ERROR_RECONNECT = 3; + NETWORK_SWITCH = 4; + PING_RECONNECT = 5; + } + optional ClientPayloadConnectReason connectReason = 13; + repeated int32 shards = 14; + optional DNSSource dnsSource = 15; + optional uint32 connectAttemptCount = 16; + optional uint32 device = 18; + optional CompanionRegData regData = 19; + enum ClientPayloadProduct { + WHATSAPP = 0; + MESSENGER = 1; + } + optional ClientPayloadProduct product = 20; + optional bytes fbCat = 21; + optional bytes fbUserAgent = 22; + optional bool oc = 23; + optional int32 lc = 24; + enum ClientPayloadIOSAppExtension { + SHARE_EXTENSION = 0; + SERVICE_EXTENSION = 1; + INTENTS_EXTENSION = 2; + } + optional ClientPayloadIOSAppExtension iosAppExtension = 30; + optional uint64 fbAppId = 31; + optional bytes fbDeviceId = 32; + optional bool pull = 33; } -message StatusPSA { - required string campaignId = 44; - optional uint64 campaignExpirationTimestamp = 45; +message WebInfo { + optional string refToken = 1; + optional string version = 2; + optional WebdPayload webdPayload = 3; + enum WebInfoWebSubPlatform { + WEB_BROWSER = 0; + APP_STORE = 1; + WIN_STORE = 2; + DARWIN = 3; + WIN32 = 4; + } + optional WebInfoWebSubPlatform webSubPlatform = 4; } -message PhotoChange { - optional bytes oldPhoto = 1; - optional bytes newPhoto = 2; - optional uint32 newPhotoId = 3; +message WebdPayload { + optional bool usesParticipantInKey = 1; + optional bool supportsStarredMessages = 2; + optional bool supportsDocumentMessages = 3; + optional bool supportsUrlMessages = 4; + optional bool supportsMediaRetry = 5; + optional bool supportsE2EImage = 6; + optional bool supportsE2EVideo = 7; + optional bool supportsE2EAudio = 8; + optional bool supportsE2EDocument = 9; + optional string documentTypes = 10; + optional bytes features = 11; } -message MediaData { - optional string localPath = 1; +message UserAgent { + enum UserAgentPlatform { + ANDROID = 0; + IOS = 1; + WINDOWS_PHONE = 2; + BLACKBERRY = 3; + BLACKBERRYX = 4; + S40 = 5; + S60 = 6; + PYTHON_CLIENT = 7; + TIZEN = 8; + ENTERPRISE = 9; + SMB_ANDROID = 10; + KAIOS = 11; + SMB_IOS = 12; + WINDOWS = 13; + WEB = 14; + PORTAL = 15; + GREEN_ANDROID = 16; + GREEN_IPHONE = 17; + BLUE_ANDROID = 18; + BLUE_IPHONE = 19; + FBLITE_ANDROID = 20; + MLITE_ANDROID = 21; + IGLITE_ANDROID = 22; + PAGE = 23; + MACOS = 24; + OCULUS_MSG = 25; + OCULUS_CALL = 26; + MILAN = 27; + CAPI = 28; + } + optional UserAgentPlatform platform = 1; + optional AppVersion appVersion = 2; + optional string mcc = 3; + optional string mnc = 4; + optional string osVersion = 5; + optional string manufacturer = 6; + optional string device = 7; + optional string osBuildNumber = 8; + optional string phoneId = 9; + enum UserAgentReleaseChannel { + RELEASE = 0; + BETA = 1; + ALPHA = 2; + DEBUG = 3; + } + optional UserAgentReleaseChannel releaseChannel = 10; + optional string localeLanguageIso6391 = 11; + optional string localeCountryIso31661Alpha2 = 12; + optional string deviceBoard = 13; } -message WebFeatures { - enum WebFeaturesFlag { - NOT_STARTED = 0; - FORCE_UPGRADE = 1; - DEVELOPMENT = 2; - PRODUCTION = 3; +// Duplicate type omitted +//message AppVersion { +// optional uint32 primary = 1; +// optional uint32 secondary = 2; +// optional uint32 tertiary = 3; +// optional uint32 quaternary = 4; +// optional uint32 quinary = 5; +//} + +message DNSSource { + enum DNSSourceDNSResolutionMethod { + SYSTEM = 0; + GOOGLE = 1; + HARDCODED = 2; + OVERRIDE = 3; + FALLBACK = 4; } - optional WebFeaturesFlag labelsDisplay = 1; - optional WebFeaturesFlag voipIndividualOutgoing = 2; - optional WebFeaturesFlag groupsV3 = 3; - optional WebFeaturesFlag groupsV3Create = 4; - optional WebFeaturesFlag changeNumberV2 = 5; - optional WebFeaturesFlag queryStatusV3Thumbnail = 6; - optional WebFeaturesFlag liveLocations = 7; - optional WebFeaturesFlag queryVname = 8; - optional WebFeaturesFlag voipIndividualIncoming = 9; - optional WebFeaturesFlag quickRepliesQuery = 10; - optional WebFeaturesFlag payments = 11; - optional WebFeaturesFlag stickerPackQuery = 12; - optional WebFeaturesFlag liveLocationsFinal = 13; - optional WebFeaturesFlag labelsEdit = 14; - optional WebFeaturesFlag mediaUpload = 15; - optional WebFeaturesFlag mediaUploadRichQuickReplies = 18; - optional WebFeaturesFlag vnameV2 = 19; - optional WebFeaturesFlag videoPlaybackUrl = 20; - optional WebFeaturesFlag statusRanking = 21; - optional WebFeaturesFlag voipIndividualVideo = 22; - optional WebFeaturesFlag thirdPartyStickers = 23; - optional WebFeaturesFlag frequentlyForwardedSetting = 24; - optional WebFeaturesFlag groupsV4JoinPermission = 25; - optional WebFeaturesFlag recentStickers = 26; - optional WebFeaturesFlag catalog = 27; - optional WebFeaturesFlag starredStickers = 28; - optional WebFeaturesFlag voipGroupCall = 29; - optional WebFeaturesFlag templateMessage = 30; - optional WebFeaturesFlag templateMessageInteractivity = 31; - optional WebFeaturesFlag ephemeralMessages = 32; - optional WebFeaturesFlag e2ENotificationSync = 33; - optional WebFeaturesFlag recentStickersV2 = 34; - optional WebFeaturesFlag recentStickersV3 = 36; - optional WebFeaturesFlag userNotice = 37; - optional WebFeaturesFlag support = 39; - optional WebFeaturesFlag groupUiiCleanup = 40; - optional WebFeaturesFlag groupDogfoodingInternalOnly = 41; - optional WebFeaturesFlag settingsSync = 42; - optional WebFeaturesFlag archiveV2 = 43; - optional WebFeaturesFlag ephemeralAllowGroupMembers = 44; - optional WebFeaturesFlag ephemeral24HDuration = 45; - optional WebFeaturesFlag mdForceUpgrade = 46; - optional WebFeaturesFlag disappearingMode = 47; - optional WebFeaturesFlag externalMdOptInAvailable = 48; - optional WebFeaturesFlag noDeleteMessageTimeLimit = 49; + optional DNSSourceDNSResolutionMethod dnsMethod = 15; + optional bool appCached = 16; } -message NotificationMessageInfo { - optional MessageKey key = 1; - optional Message message = 2; - optional uint64 messageTimestamp = 3; - optional string participant = 4; +message CompanionRegData { + optional bytes eRegid = 1; + optional bytes eKeytype = 2; + optional bytes eIdent = 3; + optional bytes eSkeyId = 4; + optional bytes eSkeyVal = 5; + optional bytes eSkeySig = 6; + optional bytes buildHash = 7; + optional bytes companionProps = 8; } message WebNotificationsInfo { @@ -1756,71 +1738,6 @@ message WebNotificationsInfo { repeated WebMessageInfo notifyMessages = 5; } -message PaymentInfo { - enum PaymentInfoCurrency { - UNKNOWN_CURRENCY = 0; - INR = 1; - } - optional PaymentInfoCurrency currencyDeprecated = 1; - optional uint64 amount1000 = 2; - optional string receiverJid = 3; - enum PaymentInfoStatus { - UNKNOWN_STATUS = 0; - PROCESSING = 1; - SENT = 2; - NEED_TO_ACCEPT = 3; - COMPLETE = 4; - COULD_NOT_COMPLETE = 5; - REFUNDED = 6; - EXPIRED = 7; - REJECTED = 8; - CANCELLED = 9; - WAITING_FOR_PAYER = 10; - WAITING = 11; - } - optional PaymentInfoStatus status = 4; - optional uint64 transactionTimestamp = 5; - optional MessageKey requestMessageKey = 6; - optional uint64 expiryTimestamp = 7; - optional bool futureproofed = 8; - optional string currency = 9; - enum PaymentInfoTxnStatus { - UNKNOWN = 0; - PENDING_SETUP = 1; - PENDING_RECEIVER_SETUP = 2; - INIT = 3; - SUCCESS = 4; - COMPLETED = 5; - FAILED = 6; - FAILED_RISK = 7; - FAILED_PROCESSING = 8; - FAILED_RECEIVER_PROCESSING = 9; - FAILED_DA = 10; - FAILED_DA_FINAL = 11; - REFUNDED_TXN = 12; - REFUND_FAILED = 13; - REFUND_FAILED_PROCESSING = 14; - REFUND_FAILED_DA = 15; - EXPIRED_TXN = 16; - AUTH_CANCELED = 17; - AUTH_CANCEL_FAILED_PROCESSING = 18; - AUTH_CANCEL_FAILED = 19; - COLLECT_INIT = 20; - COLLECT_SUCCESS = 21; - COLLECT_FAILED = 22; - COLLECT_FAILED_RISK = 23; - COLLECT_REJECTED = 24; - COLLECT_EXPIRED = 25; - COLLECT_CANCELED = 26; - COLLECT_CANCELLING = 27; - IN_REVIEW = 28; - } - optional PaymentInfoTxnStatus txnStatus = 10; - optional bool useNoviFiatFormat = 11; - optional Money primaryAmount = 12; - optional Money exchangeAmount = 13; -} - message WebMessageInfo { required MessageKey key = 1; optional Message message = 2; @@ -1979,6 +1896,9 @@ message WebMessageInfo { E2E_DEVICE_FETCH_FAILED = 131; ADMIN_REVOKE = 132; GROUP_INVITE_LINK_GROWTH_LOCKED = 133; + COMMUNITY_LINK_PARENT_GROUP = 134; + COMMUNITY_LINK_SIBLING_GROUP = 135; + COMMUNITY_LINK_SUB_GROUP = 136; } optional WebMessageInfoStubType messageStubType = 24; optional bool clearMedia = 25; @@ -2007,5 +1927,174 @@ message WebMessageInfo { optional MediaData quotedStickerData = 42; optional bytes futureproofData = 43; optional StatusPSA statusPsa = 44; + repeated PollUpdate pollUpdates = 45; + optional PollAdditionalMetadata pollAdditionalMetadata = 46; +} + +message WebFeatures { + enum WebFeaturesFlag { + NOT_STARTED = 0; + FORCE_UPGRADE = 1; + DEVELOPMENT = 2; + PRODUCTION = 3; + } + optional WebFeaturesFlag labelsDisplay = 1; + optional WebFeaturesFlag voipIndividualOutgoing = 2; + optional WebFeaturesFlag groupsV3 = 3; + optional WebFeaturesFlag groupsV3Create = 4; + optional WebFeaturesFlag changeNumberV2 = 5; + optional WebFeaturesFlag queryStatusV3Thumbnail = 6; + optional WebFeaturesFlag liveLocations = 7; + optional WebFeaturesFlag queryVname = 8; + optional WebFeaturesFlag voipIndividualIncoming = 9; + optional WebFeaturesFlag quickRepliesQuery = 10; + optional WebFeaturesFlag payments = 11; + optional WebFeaturesFlag stickerPackQuery = 12; + optional WebFeaturesFlag liveLocationsFinal = 13; + optional WebFeaturesFlag labelsEdit = 14; + optional WebFeaturesFlag mediaUpload = 15; + optional WebFeaturesFlag mediaUploadRichQuickReplies = 18; + optional WebFeaturesFlag vnameV2 = 19; + optional WebFeaturesFlag videoPlaybackUrl = 20; + optional WebFeaturesFlag statusRanking = 21; + optional WebFeaturesFlag voipIndividualVideo = 22; + optional WebFeaturesFlag thirdPartyStickers = 23; + optional WebFeaturesFlag frequentlyForwardedSetting = 24; + optional WebFeaturesFlag groupsV4JoinPermission = 25; + optional WebFeaturesFlag recentStickers = 26; + optional WebFeaturesFlag catalog = 27; + optional WebFeaturesFlag starredStickers = 28; + optional WebFeaturesFlag voipGroupCall = 29; + optional WebFeaturesFlag templateMessage = 30; + optional WebFeaturesFlag templateMessageInteractivity = 31; + optional WebFeaturesFlag ephemeralMessages = 32; + optional WebFeaturesFlag e2ENotificationSync = 33; + optional WebFeaturesFlag recentStickersV2 = 34; + optional WebFeaturesFlag recentStickersV3 = 36; + optional WebFeaturesFlag userNotice = 37; + optional WebFeaturesFlag support = 39; + optional WebFeaturesFlag groupUiiCleanup = 40; + optional WebFeaturesFlag groupDogfoodingInternalOnly = 41; + optional WebFeaturesFlag settingsSync = 42; + optional WebFeaturesFlag archiveV2 = 43; + optional WebFeaturesFlag ephemeralAllowGroupMembers = 44; + optional WebFeaturesFlag ephemeral24HDuration = 45; + optional WebFeaturesFlag mdForceUpgrade = 46; + optional WebFeaturesFlag disappearingMode = 47; + optional WebFeaturesFlag externalMdOptInAvailable = 48; + optional WebFeaturesFlag noDeleteMessageTimeLimit = 49; +} + +message UserReceipt { + required string userJid = 1; + optional int64 receiptTimestamp = 2; + optional int64 readTimestamp = 3; + optional int64 playedTimestamp = 4; + repeated string pendingDeviceJid = 5; + repeated string deliveredDeviceJid = 6; +} + +message StatusPSA { + required string campaignId = 44; + optional uint64 campaignExpirationTimestamp = 45; +} + +message Reaction { + optional MessageKey key = 1; + optional string text = 2; + optional string groupingKey = 3; + optional int64 senderTimestampMs = 4; + optional bool unread = 5; +} + +message PollUpdate { + optional MessageKey pollUpdateMessageKey = 1; + optional PollUpdateMessageContent pollUpdateMessage = 2; +} + +message PollAdditionalMetadata { + optional bool pollInvalidated = 1; +} + +message PhotoChange { + optional bytes oldPhoto = 1; + optional bytes newPhoto = 2; + optional uint32 newPhotoId = 3; +} + +message PaymentInfo { + enum PaymentInfoCurrency { + UNKNOWN_CURRENCY = 0; + INR = 1; + } + optional PaymentInfoCurrency currencyDeprecated = 1; + optional uint64 amount1000 = 2; + optional string receiverJid = 3; + enum PaymentInfoStatus { + UNKNOWN_STATUS = 0; + PROCESSING = 1; + SENT = 2; + NEED_TO_ACCEPT = 3; + COMPLETE = 4; + COULD_NOT_COMPLETE = 5; + REFUNDED = 6; + EXPIRED = 7; + REJECTED = 8; + CANCELLED = 9; + WAITING_FOR_PAYER = 10; + WAITING = 11; + } + optional PaymentInfoStatus status = 4; + optional uint64 transactionTimestamp = 5; + optional MessageKey requestMessageKey = 6; + optional uint64 expiryTimestamp = 7; + optional bool futureproofed = 8; + optional string currency = 9; + enum PaymentInfoTxnStatus { + UNKNOWN = 0; + PENDING_SETUP = 1; + PENDING_RECEIVER_SETUP = 2; + INIT = 3; + SUCCESS = 4; + COMPLETED = 5; + FAILED = 6; + FAILED_RISK = 7; + FAILED_PROCESSING = 8; + FAILED_RECEIVER_PROCESSING = 9; + FAILED_DA = 10; + FAILED_DA_FINAL = 11; + REFUNDED_TXN = 12; + REFUND_FAILED = 13; + REFUND_FAILED_PROCESSING = 14; + REFUND_FAILED_DA = 15; + EXPIRED_TXN = 16; + AUTH_CANCELED = 17; + AUTH_CANCEL_FAILED_PROCESSING = 18; + AUTH_CANCEL_FAILED = 19; + COLLECT_INIT = 20; + COLLECT_SUCCESS = 21; + COLLECT_FAILED = 22; + COLLECT_FAILED_RISK = 23; + COLLECT_REJECTED = 24; + COLLECT_EXPIRED = 25; + COLLECT_CANCELED = 26; + COLLECT_CANCELLING = 27; + IN_REVIEW = 28; + } + optional PaymentInfoTxnStatus txnStatus = 10; + optional bool useNoviFiatFormat = 11; + optional Money primaryAmount = 12; + optional Money exchangeAmount = 13; +} + +message NotificationMessageInfo { + optional MessageKey key = 1; + optional Message message = 2; + optional uint64 messageTimestamp = 3; + optional string participant = 4; +} + +message MediaData { + optional string localPath = 1; } diff --git a/vendor/go.mau.fi/whatsmeow/binary/token/token.go b/vendor/go.mau.fi/whatsmeow/binary/token/token.go index bea1d8d4..3a8ee5a4 100644 --- a/vendor/go.mau.fi/whatsmeow/binary/token/token.go +++ b/vendor/go.mau.fi/whatsmeow/binary/token/token.go @@ -15,6 +15,10 @@ var ( } ) +// DictVersion is the version number of the token lists above. +// It's sent when connecting to the websocket so the server knows which tokens are supported. +const DictVersion = 2 + type doubleByteTokenIndex struct { dictionary byte index byte diff --git a/vendor/go.mau.fi/whatsmeow/client.go b/vendor/go.mau.fi/whatsmeow/client.go index 52ed0773..f37b2a25 100644 --- a/vendor/go.mau.fi/whatsmeow/client.go +++ b/vendor/go.mau.fi/whatsmeow/client.go @@ -13,6 +13,8 @@ import ( "encoding/hex" "errors" "fmt" + "net/http" + "net/url" "runtime/debug" "sync" "sync/atomic" @@ -56,6 +58,8 @@ type Client struct { LastSuccessfulConnect time.Time AutoReconnectErrors int + sendActiveReceipts uint32 + // EmitAppStateEventsOnFullSync can be set to true if you want to get app state events emitted // even when re-syncing the whole state. EmitAppStateEventsOnFullSync bool @@ -100,6 +104,9 @@ type Client struct { uniqueID string idCounter uint32 + + proxy socket.Proxy + http *http.Client } // Size of buffer for the channel that all incoming XML nodes go through. @@ -128,6 +135,10 @@ func NewClient(deviceStore *store.Device, log waLog.Logger) *Client { randomBytes := make([]byte, 2) _, _ = rand.Read(randomBytes) cli := &Client{ + http: &http.Client{ + Transport: (http.DefaultTransport.(*http.Transport)).Clone(), + }, + proxy: http.ProxyFromEnvironment, Store: deviceStore, Log: log, recvLog: log.Sub("Recv"), @@ -159,10 +170,46 @@ func NewClient(deviceStore *store.Device, log waLog.Logger) *Client { "stream:error": cli.handleStreamError, "iq": cli.handleIQ, "ib": cli.handleIB, + // Apparently there's also an <error> node which can have a code=479 and means "Invalid stanza sent (smax-invalid)" } return cli } +// SetProxyAddress is a helper method that parses a URL string and calls SetProxy. +// +// Returns an error if url.Parse fails to parse the given address. +func (cli *Client) SetProxyAddress(addr string) error { + parsed, err := url.Parse(addr) + if err != nil { + return err + } + cli.SetProxy(http.ProxyURL(parsed)) + return nil +} + +// SetProxy sets the proxy to use for WhatsApp web websocket connections and media uploads/downloads. +// +// Must be called before Connect() to take effect in the websocket connection. +// If you want to change the proxy after connecting, you must call Disconnect() and then Connect() again manually. +// +// By default, the client will find the proxy from the https_proxy environment variable like Go's net/http does. +// +// To disable reading proxy info from environment variables, explicitly set the proxy to nil: +// cli.SetProxy(nil) +// +// To use a different proxy for the websocket and media, pass a function that checks the request path or headers: +// cli.SetProxy(func(r *http.Request) (*url.URL, error) { +// if r.URL.Host == "web.whatsapp.com" && r.URL.Path == "/ws/chat" { +// return websocketProxyURL, nil +// } else { +// return mediaProxyURL, nil +// } +// }) +func (cli *Client) SetProxy(proxy socket.Proxy) { + cli.proxy = proxy + cli.http.Transport.(*http.Transport).Proxy = proxy +} + // Connect connects the client to the WhatsApp web websocket. After connection, it will either // authenticate if there's data in the device store, or emit a QREvent to set up a new link. func (cli *Client) Connect() error { @@ -177,7 +224,7 @@ func (cli *Client) Connect() error { } cli.resetExpectedDisconnect() - fs := socket.NewFrameSocket(cli.Log.Sub("Socket"), socket.WAConnHeader) + fs := socket.NewFrameSocket(cli.Log.Sub("Socket"), socket.WAConnHeader, cli.proxy) if err := fs.Connect(); err != nil { fs.Close(0) return err @@ -313,29 +360,29 @@ func (cli *Client) Logout() error { // // All registered event handlers will receive all events. You should use a type switch statement to // filter the events you want: -// func myEventHandler(evt interface{}) { -// switch v := evt.(type) { -// case *events.Message: -// fmt.Println("Received a message!") -// case *events.Receipt: -// fmt.Println("Received a receipt!") -// } -// } +// func myEventHandler(evt interface{}) { +// switch v := evt.(type) { +// case *events.Message: +// fmt.Println("Received a message!") +// case *events.Receipt: +// fmt.Println("Received a receipt!") +// } +// } // // If you want to access the Client instance inside the event handler, the recommended way is to // wrap the whole handler in another struct: -// type MyClient struct { -// WAClient *whatsmeow.Client -// eventHandlerID uint32 -// } +// type MyClient struct { +// WAClient *whatsmeow.Client +// eventHandlerID uint32 +// } // -// func (mycli *MyClient) register() { -// mycli.eventHandlerID = mycli.WAClient.AddEventHandler(mycli.myEventHandler) -// } +// func (mycli *MyClient) register() { +// mycli.eventHandlerID = mycli.WAClient.AddEventHandler(mycli.myEventHandler) +// } // -// func (mycli *MyClient) myEventHandler(evt interface{}) { -// // Handle event and access mycli.WAClient -// } +// func (mycli *MyClient) myEventHandler(evt interface{}) { +// // Handle event and access mycli.WAClient +// } func (cli *Client) AddEventHandler(handler EventHandler) uint32 { nextID := atomic.AddUint32(&nextHandlerID, 1) cli.eventHandlersLock.Lock() @@ -350,11 +397,11 @@ func (cli *Client) AddEventHandler(handler EventHandler) uint32 { // N.B. Do not run this directly from an event handler. That would cause a deadlock because the // event dispatcher holds a read lock on the event handler list, and this method wants a write lock // on the same list. Instead run it in a goroutine: -// func (mycli *MyClient) myEventHandler(evt interface{}) { -// if noLongerWantEvents { -// go mycli.WAClient.RemoveEventHandler(mycli.eventHandlerID) -// } -// } +// func (mycli *MyClient) myEventHandler(evt interface{}) { +// if noLongerWantEvents { +// go mycli.WAClient.RemoveEventHandler(mycli.eventHandlerID) +// } +// } func (cli *Client) RemoveEventHandler(id uint32) bool { cli.eventHandlersLock.Lock() defer cli.eventHandlersLock.Unlock() diff --git a/vendor/go.mau.fi/whatsmeow/connectionevents.go b/vendor/go.mau.fi/whatsmeow/connectionevents.go index c1a6e764..82a39184 100644 --- a/vendor/go.mau.fi/whatsmeow/connectionevents.go +++ b/vendor/go.mau.fi/whatsmeow/connectionevents.go @@ -33,7 +33,7 @@ func (cli *Client) handleStreamError(node *waBinary.Node) { case code == "401" && conflictType == "device_removed": cli.expectDisconnect() cli.Log.Infof("Got device removed stream error, sending LoggedOut event and deleting session") - go cli.dispatchEvent(&events.LoggedOut{OnConnect: false}) + go cli.dispatchEvent(&events.LoggedOut{OnConnect: false, Reason: events.ConnectFailureLoggedOut}) err := cli.Store.Delete() if err != nil { cli.Log.Warnf("Failed to delete store after device_removed error: %v", err) @@ -77,17 +77,30 @@ func (cli *Client) handleIB(node *waBinary.Node) { func (cli *Client) handleConnectFailure(node *waBinary.Node) { ag := node.AttrGetter() - reason := ag.String("reason") - if reason == "401" { - cli.expectDisconnect() - cli.Log.Infof("Got 401 connect failure, sending LoggedOut event and deleting session") - go cli.dispatchEvent(&events.LoggedOut{OnConnect: true}) + reason := events.ConnectFailureReason(ag.Int("reason")) + cli.expectDisconnect() + if reason.IsLoggedOut() { + cli.Log.Infof("Got %s connect failure, sending LoggedOut event and deleting session", reason) + go cli.dispatchEvent(&events.LoggedOut{OnConnect: true, Reason: reason}) err := cli.Store.Delete() if err != nil { - cli.Log.Warnf("Failed to delete store after 401 failure: %v", err) + cli.Log.Warnf("Failed to delete store after %d failure: %v", int(reason), err) + } + } else if reason == events.ConnectFailureTempBanned { + cli.Log.Warnf("Temporary ban connect failure: %s", node.XMLString()) + expiryTimeUnix := ag.Int64("expire") + var expiryTime time.Time + if expiryTimeUnix > 0 { + expiryTime = time.Unix(expiryTimeUnix, 0) } + go cli.dispatchEvent(&events.TemporaryBan{ + Code: events.TempBanReason(ag.Int("code")), + Expire: expiryTime, + }) + } else if reason == events.ConnectFailureClientOutdated { + cli.Log.Errorf("Client outdated (405) connect failure") + go cli.dispatchEvent(&events.ClientOutdated{}) } else { - cli.expectDisconnect() cli.Log.Warnf("Unknown connect failure: %s", node.XMLString()) go cli.dispatchEvent(&events.ConnectFailure{Reason: reason, Raw: node}) } diff --git a/vendor/go.mau.fi/whatsmeow/download.go b/vendor/go.mau.fi/whatsmeow/download.go index 502c4ee8..dd4aade0 100644 --- a/vendor/go.mau.fi/whatsmeow/download.go +++ b/vendor/go.mau.fi/whatsmeow/download.go @@ -18,6 +18,7 @@ import ( "google.golang.org/protobuf/reflect/protoreflect" waProto "go.mau.fi/whatsmeow/binary/proto" + "go.mau.fi/whatsmeow/socket" "go.mau.fi/whatsmeow/util/cbcutil" "go.mau.fi/whatsmeow/util/hkdfutil" ) @@ -34,9 +35,14 @@ const ( MediaDocument MediaType = "WhatsApp Document Keys" MediaHistory MediaType = "WhatsApp History Keys" MediaAppState MediaType = "WhatsApp App State Keys" + + MediaLinkThumbnail MediaType = "WhatsApp Link Thumbnail Keys" ) // DownloadableMessage represents a protobuf message that contains attachment info. +// +// All of the downloadable messages inside a Message struct implement this interface +// (ImageMessage, VideoMessage, AudioMessage, DocumentMessage, StickerMessage). type DownloadableMessage interface { proto.Message GetDirectPath() string @@ -45,15 +51,27 @@ type DownloadableMessage interface { GetFileEncSha256() []byte } +// DownloadableThumbnail represents a protobuf message that contains a thumbnail attachment. +// +// This is primarily meant for link preview thumbnails in ExtendedTextMessage. +type DownloadableThumbnail interface { + proto.Message + GetThumbnailDirectPath() string + GetThumbnailSha256() []byte + GetThumbnailEncSha256() []byte + GetMediaKey() []byte +} + // All the message types that are intended to be downloadable var ( - _ DownloadableMessage = (*waProto.ImageMessage)(nil) - _ DownloadableMessage = (*waProto.AudioMessage)(nil) - _ DownloadableMessage = (*waProto.VideoMessage)(nil) - _ DownloadableMessage = (*waProto.DocumentMessage)(nil) - _ DownloadableMessage = (*waProto.StickerMessage)(nil) - _ DownloadableMessage = (*waProto.HistorySyncNotification)(nil) - _ DownloadableMessage = (*waProto.ExternalBlobReference)(nil) + _ DownloadableMessage = (*waProto.ImageMessage)(nil) + _ DownloadableMessage = (*waProto.AudioMessage)(nil) + _ DownloadableMessage = (*waProto.VideoMessage)(nil) + _ DownloadableMessage = (*waProto.DocumentMessage)(nil) + _ DownloadableMessage = (*waProto.StickerMessage)(nil) + _ DownloadableMessage = (*waProto.HistorySyncNotification)(nil) + _ DownloadableMessage = (*waProto.ExternalBlobReference)(nil) + _ DownloadableThumbnail = (*waProto.ExtendedTextMessage)(nil) ) type downloadableMessageWithLength interface { @@ -82,6 +100,10 @@ var classToMediaType = map[protoreflect.Name]MediaType{ "ExternalBlobReference": MediaAppState, } +var classToThumbnailMediaType = map[protoreflect.Name]MediaType{ + "ExtendedTextMessage": MediaLinkThumbnail, +} + var mediaTypeToMMSType = map[MediaType]string{ MediaImage: "image", MediaAudio: "audio", @@ -89,17 +111,29 @@ var mediaTypeToMMSType = map[MediaType]string{ MediaDocument: "document", MediaHistory: "md-msg-hist", MediaAppState: "md-app-state", + + MediaLinkThumbnail: "thumbnail-link", } // DownloadAny loops through the downloadable parts of the given message and downloads the first non-nil item. func (cli *Client) DownloadAny(msg *waProto.Message) (data []byte, err error) { - downloadables := []DownloadableMessage{msg.GetImageMessage(), msg.GetAudioMessage(), msg.GetVideoMessage(), msg.GetDocumentMessage(), msg.GetStickerMessage()} - for _, downloadable := range downloadables { - if downloadable != nil { - return cli.Download(downloadable) - } + if msg == nil { + return nil, ErrNothingDownloadableFound + } + switch { + case msg.ImageMessage != nil: + return cli.Download(msg.ImageMessage) + case msg.VideoMessage != nil: + return cli.Download(msg.VideoMessage) + case msg.AudioMessage != nil: + return cli.Download(msg.AudioMessage) + case msg.DocumentMessage != nil: + return cli.Download(msg.DocumentMessage) + case msg.StickerMessage != nil: + return cli.Download(msg.StickerMessage) + default: + return nil, ErrNothingDownloadableFound } - return nil, ErrNothingDownloadableFound } func getSize(msg DownloadableMessage) int { @@ -113,30 +147,63 @@ func getSize(msg DownloadableMessage) int { } } +// DownloadThumbnail downloads a thumbnail from a message. +// +// This is primarily intended for downloading link preview thumbnails, which are in ExtendedTextMessage: +// var msg *waProto.Message +// ... +// thumbnailImageBytes, err := cli.DownloadThumbnail(msg.GetExtendedTextMessage()) +func (cli *Client) DownloadThumbnail(msg DownloadableThumbnail) ([]byte, error) { + mediaType, ok := classToThumbnailMediaType[msg.ProtoReflect().Descriptor().Name()] + if !ok { + return nil, fmt.Errorf("%w '%s'", ErrUnknownMediaType, string(msg.ProtoReflect().Descriptor().Name())) + } else if len(msg.GetThumbnailDirectPath()) > 0 { + return cli.DownloadMediaWithPath(msg.GetThumbnailDirectPath(), msg.GetThumbnailEncSha256(), msg.GetThumbnailSha256(), msg.GetMediaKey(), -1, mediaType, mediaTypeToMMSType[mediaType]) + } else { + return nil, ErrNoURLPresent + } +} + +// GetMediaType returns the MediaType value corresponding to the given protobuf message. +func GetMediaType(msg DownloadableMessage) MediaType { + return classToMediaType[msg.ProtoReflect().Descriptor().Name()] +} + // Download downloads the attachment from the given protobuf message. -func (cli *Client) Download(msg DownloadableMessage) (data []byte, err error) { +// +// The attachment is a specific part of a Message protobuf struct, not the message itself, e.g. +// var msg *waProto.Message +// ... +// imageData, err := cli.Download(msg.GetImageMessage()) +// +// You can also use DownloadAny to download the first non-nil sub-message. +func (cli *Client) Download(msg DownloadableMessage) ([]byte, error) { mediaType, ok := classToMediaType[msg.ProtoReflect().Descriptor().Name()] if !ok { return nil, fmt.Errorf("%w '%s'", ErrUnknownMediaType, string(msg.ProtoReflect().Descriptor().Name())) } urlable, ok := msg.(downloadableMessageWithURL) if ok && len(urlable.GetUrl()) > 0 { - return downloadAndDecrypt(urlable.GetUrl(), msg.GetMediaKey(), mediaType, getSize(msg), msg.GetFileEncSha256(), msg.GetFileSha256()) + return cli.downloadAndDecrypt(urlable.GetUrl(), msg.GetMediaKey(), mediaType, getSize(msg), msg.GetFileEncSha256(), msg.GetFileSha256()) } else if len(msg.GetDirectPath()) > 0 { - return cli.downloadMediaWithPath(msg.GetDirectPath(), msg.GetFileEncSha256(), msg.GetFileSha256(), msg.GetMediaKey(), getSize(msg), mediaType, mediaTypeToMMSType[mediaType]) + return cli.DownloadMediaWithPath(msg.GetDirectPath(), msg.GetFileEncSha256(), msg.GetFileSha256(), msg.GetMediaKey(), getSize(msg), mediaType, mediaTypeToMMSType[mediaType]) } else { return nil, ErrNoURLPresent } } -func (cli *Client) downloadMediaWithPath(directPath string, encFileHash, fileHash, mediaKey []byte, fileLength int, mediaType MediaType, mmsType string) (data []byte, err error) { +// DownloadMediaWithPath downloads an attachment by manually specifying the path and encryption details. +func (cli *Client) DownloadMediaWithPath(directPath string, encFileHash, fileHash, mediaKey []byte, fileLength int, mediaType MediaType, mmsType string) (data []byte, err error) { err = cli.refreshMediaConn(false) if err != nil { return nil, fmt.Errorf("failed to refresh media connections: %w", err) } + if len(mmsType) == 0 { + mmsType = mediaTypeToMMSType[mediaType] + } for i, host := range cli.mediaConn.Hosts { mediaURL := fmt.Sprintf("https://%s%s&hash=%s&mms-type=%s&__wa-mms=", host.Hostname, directPath, base64.URLEncoding.EncodeToString(encFileHash), mmsType) - data, err = downloadAndDecrypt(mediaURL, mediaKey, mediaType, fileLength, encFileHash, fileHash) + data, err = cli.downloadAndDecrypt(mediaURL, mediaKey, mediaType, fileLength, encFileHash, fileHash) // TODO there are probably some errors that shouldn't retry if err != nil { if i >= len(cli.mediaConn.Hosts)-1 { @@ -148,10 +215,10 @@ func (cli *Client) downloadMediaWithPath(directPath string, encFileHash, fileHas return } -func downloadAndDecrypt(url string, mediaKey []byte, appInfo MediaType, fileLength int, fileEncSha256, fileSha256 []byte) (data []byte, err error) { +func (cli *Client) downloadAndDecrypt(url string, mediaKey []byte, appInfo MediaType, fileLength int, fileEncSha256, fileSha256 []byte) (data []byte, err error) { iv, cipherKey, macKey, _ := getMediaKeys(mediaKey, appInfo) var ciphertext, mac []byte - if ciphertext, mac, err = downloadEncryptedMedia(url, fileEncSha256); err != nil { + if ciphertext, mac, err = cli.downloadEncryptedMedia(url, fileEncSha256); err != nil { } else if err = validateMedia(iv, ciphertext, macKey, mac); err != nil { @@ -170,9 +237,17 @@ func getMediaKeys(mediaKey []byte, appInfo MediaType) (iv, cipherKey, macKey, re return mediaKeyExpanded[:16], mediaKeyExpanded[16:48], mediaKeyExpanded[48:80], mediaKeyExpanded[80:] } -func downloadEncryptedMedia(url string, checksum []byte) (file, mac []byte, err error) { +func (cli *Client) downloadEncryptedMedia(url string, checksum []byte) (file, mac []byte, err error) { + var req *http.Request + req, err = http.NewRequest(http.MethodGet, url, nil) + if err != nil { + err = fmt.Errorf("failed to prepare request: %w", err) + return + } + req.Header.Set("Origin", socket.Origin) + req.Header.Set("Referer", socket.Origin+"/") var resp *http.Response - resp, err = http.Get(url) + resp, err = cli.http.Do(req) if err != nil { return } diff --git a/vendor/go.mau.fi/whatsmeow/errors.go b/vendor/go.mau.fi/whatsmeow/errors.go index 584aa76f..8b68bd0e 100644 --- a/vendor/go.mau.fi/whatsmeow/errors.go +++ b/vendor/go.mau.fi/whatsmeow/errors.go @@ -45,6 +45,8 @@ var ( ErrInviteLinkRevoked = errors.New("that group invite link has been revoked") // ErrBusinessMessageLinkNotFound is returned by ResolveBusinessMessageLink if the link doesn't exist or has been revoked. ErrBusinessMessageLinkNotFound = errors.New("that business message link does not exist or has been revoked") + // ErrInvalidImageFormat is returned by SetGroupPhoto if the given photo is not in the correct format. + ErrInvalidImageFormat = errors.New("the given data is not a valid image") ) // Some errors that Client.SendMessage can return diff --git a/vendor/go.mau.fi/whatsmeow/group.go b/vendor/go.mau.fi/whatsmeow/group.go index 947b11b4..34e3603f 100644 --- a/vendor/go.mau.fi/whatsmeow/group.go +++ b/vendor/go.mau.fi/whatsmeow/group.go @@ -106,6 +106,40 @@ func (cli *Client) UpdateGroupParticipants(jid types.JID, participantChanges map return resp, nil } +// SetGroupPhoto updates the group picture/icon of the given group on WhatsApp. +// The avatar should be a JPEG photo, other formats may be rejected with ErrInvalidImageFormat. +// The bytes can be nil to remove the photo. Returns the new picture ID. +func (cli *Client) SetGroupPhoto(jid types.JID, avatar []byte) (string, error) { + var content interface{} + if avatar != nil { + content = []waBinary.Node{{ + Tag: "picture", + Attrs: waBinary.Attrs{"type": "image"}, + Content: avatar, + }} + } + resp, err := cli.sendIQ(infoQuery{ + Namespace: "w:profile:picture", + Type: iqSet, + To: types.ServerJID, + Target: jid, + Content: content, + }) + if errors.Is(err, ErrIQNotAcceptable) { + return "", wrapIQError(ErrInvalidImageFormat, err) + } else if err != nil { + return "", err + } + if avatar == nil { + return "remove", nil + } + pictureID, ok := resp.GetChildByTag("picture").Attrs["id"].(string) + if !ok { + return "", fmt.Errorf("didn't find picture ID in response") + } + return pictureID, nil +} + // SetGroupName updates the name (subject) of the given group on WhatsApp. func (cli *Client) SetGroupName(jid types.JID, name string) error { _, err := cli.sendGroupIQ(iqSet, jid, waBinary.Node{ @@ -385,7 +419,8 @@ func (cli *Client) parseGroupNode(groupNode *waBinary.Node) (*types.GroupInfo, e case "description": body, bodyOK := child.GetOptionalChildByTag("body") if bodyOK { - group.Topic, _ = body.Content.(string) + topicBytes, _ := body.Content.([]byte) + group.Topic = string(topicBytes) group.TopicID = childAG.String("id") group.TopicSetBy = childAG.OptionalJIDOrEmpty("participant") group.TopicSetAt = time.Unix(childAG.Int64("t"), 0) diff --git a/vendor/go.mau.fi/whatsmeow/mediaretry.go b/vendor/go.mau.fi/whatsmeow/mediaretry.go new file mode 100644 index 00000000..c392b907 --- /dev/null +++ b/vendor/go.mau.fi/whatsmeow/mediaretry.go @@ -0,0 +1,163 @@ +// Copyright (c) 2022 Tulir Asokan +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +package whatsmeow + +import ( + "crypto/aes" + "crypto/cipher" + "crypto/rand" + "fmt" + "time" + + "google.golang.org/protobuf/proto" + + waBinary "go.mau.fi/whatsmeow/binary" + waProto "go.mau.fi/whatsmeow/binary/proto" + "go.mau.fi/whatsmeow/types" + "go.mau.fi/whatsmeow/types/events" + "go.mau.fi/whatsmeow/util/hkdfutil" +) + +func getMediaRetryKey(mediaKey []byte) (cipherKey []byte) { + return hkdfutil.SHA256(mediaKey, nil, []byte("WhatsApp Media Retry Notification"), 32) +} + +func prepareMediaRetryGCM(mediaKey []byte) (cipher.AEAD, error) { + block, err := aes.NewCipher(getMediaRetryKey(mediaKey)) + if err != nil { + return nil, fmt.Errorf("failed to initialize AES cipher: %w", err) + } + gcm, err := cipher.NewGCM(block) + if err != nil { + return nil, fmt.Errorf("failed to initialize GCM: %w", err) + } + return gcm, nil +} + +func encryptMediaRetryReceipt(messageID types.MessageID, mediaKey []byte) (ciphertext, iv []byte, err error) { + receipt := &waProto.ServerErrorReceipt{ + StanzaId: proto.String(messageID), + } + var plaintext []byte + plaintext, err = proto.Marshal(receipt) + if err != nil { + err = fmt.Errorf("failed to marshal payload: %w", err) + return + } + var gcm cipher.AEAD + gcm, err = prepareMediaRetryGCM(mediaKey) + if err != nil { + return + } + iv = make([]byte, 12) + _, err = rand.Read(iv) + if err != nil { + panic(err) + } + ciphertext = gcm.Seal(plaintext[:0], iv, plaintext, []byte(messageID)) + return +} + +// SendMediaRetryReceipt sends a request to the phone to re-upload the media in a message. +// +// The response will come as an *events.MediaRetry. The response will then have to be decrypted +// using DecryptMediaRetryNotification and the same media key passed here. +func (cli *Client) SendMediaRetryReceipt(message *types.MessageInfo, mediaKey []byte) error { + ciphertext, iv, err := encryptMediaRetryReceipt(message.ID, mediaKey) + if err != nil { + return fmt.Errorf("failed to prepare encrypted retry receipt: %w", err) + } + + rmrAttrs := waBinary.Attrs{ + "jid": message.Chat, + "from_me": message.IsFromMe, + } + if message.IsGroup { + rmrAttrs["participant"] = message.Sender + } + + encryptedRequest := []waBinary.Node{ + {Tag: "enc_p", Content: ciphertext}, + {Tag: "enc_iv", Content: iv}, + } + + err = cli.sendNode(waBinary.Node{ + Tag: "receipt", + Attrs: waBinary.Attrs{ + "id": message.ID, + "to": cli.Store.ID.ToNonAD(), + "type": "server-error", + }, + Content: []waBinary.Node{ + {Tag: "encrypt", Content: encryptedRequest}, + {Tag: "rmr", Attrs: rmrAttrs}, + }, + }) + if err != nil { + return err + } + return nil +} + +// DecryptMediaRetryNotification decrypts a media retry notification using the media key. +func DecryptMediaRetryNotification(evt *events.MediaRetry, mediaKey []byte) (*waProto.MediaRetryNotification, error) { + gcm, err := prepareMediaRetryGCM(mediaKey) + if err != nil { + return nil, err + } + plaintext, err := gcm.Open(nil, evt.IV, evt.Ciphertext, []byte(evt.MessageID)) + if err != nil { + return nil, fmt.Errorf("failed to decrypt notification: %w", err) + } + var notif waProto.MediaRetryNotification + err = proto.Unmarshal(plaintext, ¬if) + if err != nil { + return nil, fmt.Errorf("failed to unmarshal notification (invalid encryption key?): %w", err) + } + return ¬if, nil +} + +func parseMediaRetryNotification(node *waBinary.Node) (*events.MediaRetry, error) { + ag := node.AttrGetter() + var evt events.MediaRetry + evt.Timestamp = time.Unix(ag.Int64("t"), 0) + evt.MessageID = types.MessageID(ag.String("id")) + if !ag.OK() { + return nil, ag.Error() + } + rmr, ok := node.GetOptionalChildByTag("rmr") + if !ok { + return nil, &ElementMissingError{Tag: "rmr", In: "retry notification"} + } + rmrAG := rmr.AttrGetter() + evt.ChatID = rmrAG.JID("jid") + evt.FromMe = rmrAG.Bool("from_me") + evt.SenderID = rmrAG.OptionalJIDOrEmpty("participant") + if !rmrAG.OK() { + return nil, fmt.Errorf("missing attributes in <rmr> tag: %w", rmrAG.Error()) + } + + evt.Ciphertext, ok = node.GetChildByTag("encrypt", "enc_p").Content.([]byte) + if !ok { + return nil, &ElementMissingError{Tag: "enc_p", In: fmt.Sprintf("retry notification %s", evt.MessageID)} + } + evt.IV, ok = node.GetChildByTag("encrypt", "enc_iv").Content.([]byte) + if !ok { + return nil, &ElementMissingError{Tag: "enc_iv", In: fmt.Sprintf("retry notification %s", evt.MessageID)} + } + return &evt, nil +} + +func (cli *Client) handleMediaRetryNotification(node *waBinary.Node) { + // TODO handle errors (e.g. <error code="2"/>) + evt, err := parseMediaRetryNotification(node) + if err != nil { + cli.Log.Warnf("Failed to parse media retry notification: %v", err) + return + } + cli.dispatchEvent(evt) +} diff --git a/vendor/go.mau.fi/whatsmeow/message.go b/vendor/go.mau.fi/whatsmeow/message.go index f8906142..3238ba90 100644 --- a/vendor/go.mau.fi/whatsmeow/message.go +++ b/vendor/go.mau.fi/whatsmeow/message.go @@ -283,6 +283,7 @@ func (cli *Client) handleHistorySyncNotification(notif *waProto.HistorySyncNotif } func (cli *Client) handleAppStateSyncKeyShare(keys *waProto.AppStateSyncKeyShare) { + cli.Log.Debugf("Got %d new app state keys", len(keys.GetKeys())) for _, key := range keys.GetKeys() { marshaledFingerprint, err := proto.Marshal(key.GetKeyData().GetFingerprint()) if err != nil { @@ -365,7 +366,7 @@ func (cli *Client) handleDecryptedMessage(info *types.MessageInfo, msg *waProto. } func (cli *Client) sendProtocolMessageReceipt(id, msgType string) { - if len(id) == 0 { + if len(id) == 0 || cli.Store.ID == nil { return } err := cli.sendNode(waBinary.Node{ diff --git a/vendor/go.mau.fi/whatsmeow/notification.go b/vendor/go.mau.fi/whatsmeow/notification.go index 43ab69ce..c05fd4cb 100644 --- a/vendor/go.mau.fi/whatsmeow/notification.go +++ b/vendor/go.mau.fi/whatsmeow/notification.go @@ -199,6 +199,9 @@ func (cli *Client) handleNotification(node *waBinary.Node) { } case "picture": go cli.handlePictureNotification(node) + case "mediaretry": + go cli.handleMediaRetryNotification(node) + // Other types: business, disappearing_mode, server, status, pay, psa, privacy_token default: cli.Log.Debugf("Unhandled notification with type %s", notifType) } diff --git a/vendor/go.mau.fi/whatsmeow/presence.go b/vendor/go.mau.fi/whatsmeow/presence.go index e308717b..8de1969a 100644 --- a/vendor/go.mau.fi/whatsmeow/presence.go +++ b/vendor/go.mau.fi/whatsmeow/presence.go @@ -7,6 +7,7 @@ package whatsmeow import ( + "sync/atomic" "time" waBinary "go.mau.fi/whatsmeow/binary" @@ -23,12 +24,14 @@ func (cli *Client) handleChatState(node *waBinary.Node) { } else { child := node.GetChildren()[0] presence := types.ChatPresence(child.Tag) - if presence != types.ChatPresenceComposing && presence != types.ChatPresenceRecording && presence != types.ChatPresencePaused { + if presence != types.ChatPresenceComposing && presence != types.ChatPresencePaused { cli.Log.Warnf("Unrecognized chat presence state %s", child.Tag) } + media := types.ChatPresenceMedia(child.AttrGetter().OptionalString("media")) cli.dispatchEvent(&events.ChatPresence{ MessageSource: source, State: presence, + Media: media, }) } } @@ -62,6 +65,11 @@ func (cli *Client) SendPresence(state types.Presence) error { if len(cli.Store.PushName) == 0 { return ErrNoPushName } + if state == types.PresenceAvailable { + atomic.CompareAndSwapUint32(&cli.sendActiveReceipts, 0, 1) + } else { + atomic.CompareAndSwapUint32(&cli.sendActiveReceipts, 1, 0) + } return cli.sendNode(waBinary.Node{ Tag: "presence", Attrs: waBinary.Attrs{ @@ -89,13 +97,21 @@ func (cli *Client) SubscribePresence(jid types.JID) error { } // SendChatPresence updates the user's typing status in a specific chat. -func (cli *Client) SendChatPresence(state types.ChatPresence, jid types.JID) error { +// +// The media parameter can be set to indicate the user is recording media (like a voice message) rather than typing a text message. +func (cli *Client) SendChatPresence(jid types.JID, state types.ChatPresence, media types.ChatPresenceMedia) error { + content := []waBinary.Node{{Tag: string(state)}} + if state == types.ChatPresenceComposing && len(media) > 0 { + content[0].Attrs = waBinary.Attrs{ + "media": string(media), + } + } return cli.sendNode(waBinary.Node{ Tag: "chatstate", Attrs: waBinary.Attrs{ "from": *cli.Store.ID, "to": jid, }, - Content: []waBinary.Node{{Tag: string(state)}}, + Content: content, }) } diff --git a/vendor/go.mau.fi/whatsmeow/qrchan.go b/vendor/go.mau.fi/whatsmeow/qrchan.go index c96b2188..0aea93c9 100644 --- a/vendor/go.mau.fi/whatsmeow/qrchan.go +++ b/vendor/go.mau.fi/whatsmeow/qrchan.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Tulir Asokan +// Copyright (c) 2022 Tulir Asokan // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -36,6 +36,8 @@ var ( // QRChannelErrUnexpectedEvent is emitted from GetQRChannel if an unexpected connection event is received, // as that likely means that the pairing has already happened before the channel was set up. QRChannelErrUnexpectedEvent = QRChannelItem{Event: "err-unexpected-state"} + // QRChannelClientOutdated is emitted from GetQRChannel if events.ClientOutdated is received. + QRChannelClientOutdated = QRChannelItem{Event: "err-client-outdated"} // QRChannelScannedWithoutMultidevice is emitted from GetQRChannel if events.QRScannedWithoutMultidevice is received. QRChannelScannedWithoutMultidevice = QRChannelItem{Event: "err-scanned-without-multidevice"} ) @@ -117,6 +119,8 @@ func (qrc *qrChannel) handleEvent(rawEvt interface{}) { qrc.log.Debugf("QR code scanned without multidevice enabled") qrc.output <- QRChannelScannedWithoutMultidevice return + case *events.ClientOutdated: + outputType = QRChannelClientOutdated case *events.PairSuccess: outputType = QRChannelSuccess case *events.PairError: @@ -126,7 +130,7 @@ func (qrc *qrChannel) handleEvent(rawEvt interface{}) { } case *events.Disconnected: outputType = QRChannelTimeout - case *events.Connected, *events.ConnectFailure, *events.LoggedOut: + case *events.Connected, *events.ConnectFailure, *events.LoggedOut, *events.TemporaryBan: outputType = QRChannelErrUnexpectedEvent default: return diff --git a/vendor/go.mau.fi/whatsmeow/receipt.go b/vendor/go.mau.fi/whatsmeow/receipt.go index dec03c5d..0f74926b 100644 --- a/vendor/go.mau.fi/whatsmeow/receipt.go +++ b/vendor/go.mau.fi/whatsmeow/receipt.go @@ -8,6 +8,7 @@ package whatsmeow import ( "fmt" + "sync/atomic" "time" waBinary "go.mau.fi/whatsmeow/binary" @@ -123,13 +124,35 @@ func (cli *Client) MarkRead(ids []types.MessageID, timestamp time.Time, chat, se return cli.sendNode(node) } +// SetForceActiveDeliveryReceipts will force the client to send normal delivery +// receipts (which will show up as the two gray ticks on WhatsApp), even if the +// client isn't marked as online. +// +// By default, clients that haven't been marked as online will send delivery +// receipts with type="inactive", which is transmitted to the sender, but not +// rendered in the official WhatsApp apps. This is consistent with how WhatsApp +// web works when it's not in the foreground. +// +// To mark the client as online, use +// cli.SendPresence(types.PresenceAvailable) +// +// Note that if you turn this off (i.e. call SetForceActiveDeliveryReceipts(false)), +// receipts will act like the client is offline until SendPresence is called again. +func (cli *Client) SetForceActiveDeliveryReceipts(active bool) { + if active { + atomic.StoreUint32(&cli.sendActiveReceipts, 2) + } else { + atomic.StoreUint32(&cli.sendActiveReceipts, 0) + } +} + func (cli *Client) sendMessageReceipt(info *types.MessageInfo) { attrs := waBinary.Attrs{ "id": info.ID, } if info.IsFromMe { attrs["type"] = "sender" - } else { + } else if atomic.LoadUint32(&cli.sendActiveReceipts) == 0 { attrs["type"] = "inactive" } attrs["to"] = info.Chat @@ -137,6 +160,9 @@ func (cli *Client) sendMessageReceipt(info *types.MessageInfo) { attrs["participant"] = info.Sender } else if info.IsFromMe { attrs["recipient"] = info.Sender + } else { + // Override the to attribute with the JID version with a device number + attrs["to"] = info.Sender } err := cli.sendNode(waBinary.Node{ Tag: "receipt", diff --git a/vendor/go.mau.fi/whatsmeow/request.go b/vendor/go.mau.fi/whatsmeow/request.go index 62ef3477..dc693983 100644 --- a/vendor/go.mau.fi/whatsmeow/request.go +++ b/vendor/go.mau.fi/whatsmeow/request.go @@ -78,6 +78,7 @@ type infoQuery struct { Namespace string Type infoQueryType To types.JID + Target types.JID ID string Content interface{} @@ -98,6 +99,9 @@ func (cli *Client) sendIQAsync(query infoQuery) (<-chan *waBinary.Node, error) { if !query.To.IsEmpty() { attrs["to"] = query.To } + if !query.Target.IsEmpty() { + attrs["target"] = query.Target + } err := cli.sendNode(waBinary.Node{ Tag: "iq", Attrs: attrs, @@ -116,7 +120,7 @@ func (cli *Client) sendIQ(query infoQuery) (*waBinary.Node, error) { return nil, err } if query.Timeout == 0 { - query.Timeout = 1 * time.Minute + query.Timeout = 75 * time.Second } if query.Context == nil { query.Context = context.Background() diff --git a/vendor/go.mau.fi/whatsmeow/send.go b/vendor/go.mau.fi/whatsmeow/send.go index fb4653e2..a3eae666 100644 --- a/vendor/go.mau.fi/whatsmeow/send.go +++ b/vendor/go.mau.fi/whatsmeow/send.go @@ -30,6 +30,9 @@ import ( ) // GenerateMessageID generates a random string that can be used as a message ID on WhatsApp. +// +// msgID := whatsmeow.GenerateMessageID() +// cli.SendMessage(targetJID, msgID, &waProto.Message{...}) func GenerateMessageID() types.MessageID { id := make([]byte, 16) _, err := rand.Read(id) @@ -46,6 +49,20 @@ func GenerateMessageID() types.MessageID { // // This method will wait for the server to acknowledge the message before returning. // The return value is the timestamp of the message from the server. +// +// The message itself can contain anything you want (within the protobuf schema). +// e.g. for a simple text message, use the Conversation field: +// cli.SendMessage(targetJID, "", &waProto.Message{ +// Conversation: proto.String("Hello, World!"), +// }) +// +// Things like replies, mentioning users and the "forwarded" flag are stored in ContextInfo, +// which can be put in ExtendedTextMessage and any of the media message types. +// +// For uploading and sending media/attachments, see the Upload method. +// +// For other message types, you'll have to figure it out yourself. Looking at the protobuf schema +// in binary/proto/def.proto may be useful to find out all the allowed fields. func (cli *Client) SendMessage(to types.JID, id types.MessageID, message *waProto.Message) (time.Time, error) { if to.AD { return time.Time{}, ErrRecipientADJID @@ -210,7 +227,7 @@ func (cli *Client) prepareMessageNode(to types.JID, id types.MessageID, message Content: participantNodes, }}, } - if message.ProtocolMessage != nil && message.GetProtocolMessage().GetType() == waProto.ProtocolMessage_REVOKE { + if message.ProtocolMessage != nil && message.GetProtocolMessage().GetType() == waProto.ProtocolMessage_REVOKE && message.GetProtocolMessage().GetKey() != nil { node.Attrs["edit"] = "7" } if includeIdentity { diff --git a/vendor/go.mau.fi/whatsmeow/socket/constants.go b/vendor/go.mau.fi/whatsmeow/socket/constants.go index 88e9a90b..8b8b690e 100644 --- a/vendor/go.mau.fi/whatsmeow/socket/constants.go +++ b/vendor/go.mau.fi/whatsmeow/socket/constants.go @@ -10,7 +10,11 @@ // The Client struct in the top-level whatsmeow package handles everything. package socket -import "errors" +import ( + "errors" + + "go.mau.fi/whatsmeow/binary/token" +) const ( // Origin is the Origin header for all WhatsApp websocket connections @@ -22,11 +26,10 @@ const ( const ( NoiseStartPattern = "Noise_XX_25519_AESGCM_SHA256\x00\x00\x00\x00" - WADictVersion = 2 - WAMagicValue = 5 + WAMagicValue = 5 ) -var WAConnHeader = []byte{'W', 'A', WAMagicValue, WADictVersion} +var WAConnHeader = []byte{'W', 'A', WAMagicValue, token.DictVersion} const ( FrameMaxSize = 2 << 23 diff --git a/vendor/go.mau.fi/whatsmeow/socket/framesocket.go b/vendor/go.mau.fi/whatsmeow/socket/framesocket.go index 2bcb21b5..2d7e4ad2 100644 --- a/vendor/go.mau.fi/whatsmeow/socket/framesocket.go +++ b/vendor/go.mau.fi/whatsmeow/socket/framesocket.go @@ -11,6 +11,7 @@ import ( "errors" "fmt" "net/http" + "net/url" "sync" "time" @@ -19,6 +20,8 @@ import ( waLog "go.mau.fi/whatsmeow/util/log" ) +type Proxy = func(*http.Request) (*url.URL, error) + type FrameSocket struct { conn *websocket.Conn ctx context.Context @@ -31,6 +34,7 @@ type FrameSocket struct { WriteTimeout time.Duration Header []byte + Proxy Proxy incomingLength int receivedLength int @@ -38,12 +42,14 @@ type FrameSocket struct { partialHeader []byte } -func NewFrameSocket(log waLog.Logger, header []byte) *FrameSocket { +func NewFrameSocket(log waLog.Logger, header []byte, proxy Proxy) *FrameSocket { return &FrameSocket{ conn: nil, log: log, Header: header, Frames: make(chan []byte), + + Proxy: proxy, } } @@ -92,7 +98,9 @@ func (fs *FrameSocket) Connect() error { return ErrSocketAlreadyOpen } ctx, cancel := context.WithCancel(context.Background()) - dialer := websocket.Dialer{} + dialer := websocket.Dialer{ + Proxy: fs.Proxy, + } headers := http.Header{"Origin": []string{Origin}} fs.log.Debugf("Dialing %s", URL) diff --git a/vendor/go.mau.fi/whatsmeow/store/clientpayload.go b/vendor/go.mau.fi/whatsmeow/store/clientpayload.go index 81519ee2..675719a2 100644 --- a/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +++ b/vendor/go.mau.fi/whatsmeow/store/clientpayload.go @@ -20,36 +20,98 @@ import ( waProto "go.mau.fi/whatsmeow/binary/proto" ) +// WAVersionContainer is a container for a WhatsApp web version number. +type WAVersionContainer [3]uint32 + +// ParseVersion parses a version string (three dot-separated numbers) into a WAVersionContainer. +func ParseVersion(version string) (parsed WAVersionContainer, err error) { + var part1, part2, part3 int + if parts := strings.Split(version, "."); len(parts) != 3 { + err = fmt.Errorf("'%s' doesn't contain three dot-separated parts", version) + } else if part1, err = strconv.Atoi(parts[0]); err != nil { + err = fmt.Errorf("first part of '%s' is not a number: %w", version, err) + } else if part2, err = strconv.Atoi(parts[1]); err != nil { + err = fmt.Errorf("second part of '%s' is not a number: %w", version, err) + } else if part3, err = strconv.Atoi(parts[2]); err != nil { + err = fmt.Errorf("third part of '%s' is not a number: %w", version, err) + } else { + parsed = WAVersionContainer{uint32(part1), uint32(part2), uint32(part3)} + } + return +} + +func (vc WAVersionContainer) LessThan(other WAVersionContainer) bool { + return vc[0] < other[0] || + (vc[0] == other[0] && vc[1] < other[1]) || + (vc[0] == other[0] && vc[1] == other[1] && vc[2] < other[2]) +} + +// IsZero returns true if the version is zero. +func (vc WAVersionContainer) IsZero() bool { + return vc == [3]uint32{0, 0, 0} +} + +// String returns the version number as a dot-separated string. +func (vc WAVersionContainer) String() string { + parts := make([]string, len(vc)) + for i, part := range vc { + parts[i] = strconv.Itoa(int(part)) + } + return strings.Join(parts, ".") +} + +// Hash returns the md5 hash of the String representation of this version. +func (vc WAVersionContainer) Hash() [16]byte { + return md5.Sum([]byte(vc.String())) +} + +func (vc WAVersionContainer) ProtoAppVersion() *waProto.AppVersion { + return &waProto.AppVersion{ + Primary: &vc[0], + Secondary: &vc[1], + Tertiary: &vc[2], + } +} + // waVersion is the WhatsApp web client version -var waVersion = []uint32{2, 2202, 9} +var waVersion = WAVersionContainer{2, 2208, 7} // waVersionHash is the md5 hash of a dot-separated waVersion var waVersionHash [16]byte func init() { - waVersionParts := make([]string, len(waVersion)) - for i, part := range waVersion { - waVersionParts[i] = strconv.Itoa(int(part)) + waVersionHash = waVersion.Hash() +} + +// GetWAVersion gets the current WhatsApp web client version. +func GetWAVersion() WAVersionContainer { + return waVersion +} + +// SetWAVersion sets the current WhatsApp web client version. +// +// In general, you should keep the library up-to-date instead of using this, +// as there may be code changes that are necessary too (like protobuf schema changes). +func SetWAVersion(version WAVersionContainer) { + if version.IsZero() { + return } - waVersionString := strings.Join(waVersionParts, ".") - waVersionHash = md5.Sum([]byte(waVersionString)) + waVersion = version + waVersionHash = version.Hash() } var BaseClientPayload = &waProto.ClientPayload{ UserAgent: &waProto.UserAgent{ Platform: waProto.UserAgent_WEB.Enum(), ReleaseChannel: waProto.UserAgent_RELEASE.Enum(), - AppVersion: &waProto.AppVersion{ - Primary: &waVersion[0], - Secondary: &waVersion[1], - Tertiary: &waVersion[2], - }, - Mcc: proto.String("000"), - Mnc: proto.String("000"), - OsVersion: proto.String("0.1.0"), - Manufacturer: proto.String(""), - Device: proto.String("Desktop"), - OsBuildNumber: proto.String("0.1.0"), + AppVersion: waVersion.ProtoAppVersion(), + Mcc: proto.String("000"), + Mnc: proto.String("000"), + OsVersion: proto.String("0.1.0"), + Manufacturer: proto.String(""), + Device: proto.String("Desktop"), + OsBuildNumber: proto.String("0.1.0"), + LocaleLanguageIso6391: proto.String("en"), LocaleCountryIso31661Alpha2: proto.String("en"), }, diff --git a/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go b/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go index ad1eea7e..01ec2056 100644 --- a/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +++ b/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Tulir Asokan +// Copyright (c) 2022 Tulir Asokan // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -349,15 +349,15 @@ func (s *SQLStore) putAppStateMutationMACs(tx execable, name string, version uin values[0] = s.JID values[1] = name values[2] = version + placeholderSyntax := "($1, $2, $3, $%d, $%d)" + if s.dialect == "sqlite3" { + placeholderSyntax = "(?1, ?2, ?3, ?%d, ?%d)" + } for i, mutation := range mutations { baseIndex := 3 + i*2 values[baseIndex] = mutation.IndexMAC values[baseIndex+1] = mutation.ValueMAC - if s.dialect == "sqlite3" { - queryParts[i] = fmt.Sprintf("(?1, ?2, ?3, ?%d, ?%d)", baseIndex+1, baseIndex+2) - } else { - queryParts[i] = fmt.Sprintf("($1, $2, $3, $%d, $%d)", baseIndex+1, baseIndex+2) - } + queryParts[i] = fmt.Sprintf(placeholderSyntax, baseIndex+1, baseIndex+2) } _, err := tx.Exec(putAppStateMutationMACsQuery+strings.Join(queryParts, ","), values...) return err @@ -426,7 +426,12 @@ func (s *SQLStore) GetAppStateMutationMAC(name string, indexMAC []byte) (valueMA const ( putContactNameQuery = ` INSERT INTO whatsmeow_contacts (our_jid, their_jid, first_name, full_name) VALUES ($1, $2, $3, $4) - ON CONFLICT (our_jid, their_jid) DO UPDATE SET first_name=$3, full_name=$4 + ON CONFLICT (our_jid, their_jid) DO UPDATE SET first_name=excluded.first_name, full_name=excluded.full_name + ` + putManyContactNamesQuery = ` + INSERT INTO whatsmeow_contacts (our_jid, their_jid, first_name, full_name) + VALUES %s + ON CONFLICT (our_jid, their_jid) DO UPDATE SET first_name=excluded.first_name, full_name=excluded.full_name ` putPushNameQuery = ` INSERT INTO whatsmeow_contacts (our_jid, their_jid, push_name) VALUES ($1, $2, $3) @@ -504,6 +509,77 @@ func (s *SQLStore) PutContactName(user types.JID, firstName, fullName string) er return nil } +const contactBatchSize = 300 + +func (s *SQLStore) putContactNamesBatch(tx execable, contacts []store.ContactEntry) error { + values := make([]interface{}, 1, 1+len(contacts)*3) + queryParts := make([]string, 0, len(contacts)) + values[0] = s.JID + placeholderSyntax := "($1, $%d, $%d, $%d)" + if s.dialect == "sqlite3" { + placeholderSyntax = "(?1, ?%d, ?%d, ?%d)" + } + i := 0 + handledContacts := make(map[types.JID]struct{}, len(contacts)) + for _, contact := range contacts { + if contact.JID.IsEmpty() { + s.log.Warnf("Empty contact info in mass insert: %+v", contact) + continue + } + // The whole query will break if there are duplicates, so make sure there aren't any duplicates + _, alreadyHandled := handledContacts[contact.JID] + if alreadyHandled { + s.log.Warnf("Duplicate contact info for %s in mass insert", contact.JID) + continue + } + handledContacts[contact.JID] = struct{}{} + baseIndex := i*3 + 1 + values = append(values, contact.JID.String(), contact.FirstName, contact.FullName) + queryParts = append(queryParts, fmt.Sprintf(placeholderSyntax, baseIndex+1, baseIndex+2, baseIndex+3)) + i++ + } + _, err := tx.Exec(fmt.Sprintf(putManyContactNamesQuery, strings.Join(queryParts, ",")), values...) + return err +} + +func (s *SQLStore) PutAllContactNames(contacts []store.ContactEntry) error { + if len(contacts) > contactBatchSize { + tx, err := s.db.Begin() + if err != nil { + return fmt.Errorf("failed to start transaction: %w", err) + } + for i := 0; i < len(contacts); i += contactBatchSize { + var contactSlice []store.ContactEntry + if len(contacts) > i+contactBatchSize { + contactSlice = contacts[i : i+contactBatchSize] + } else { + contactSlice = contacts[i:] + } + err = s.putContactNamesBatch(tx, contactSlice) + if err != nil { + _ = tx.Rollback() + return err + } + } + err = tx.Commit() + if err != nil { + return fmt.Errorf("failed to commit transaction: %w", err) + } + } else if len(contacts) > 0 { + err := s.putContactNamesBatch(s.db, contacts) + if err != nil { + return err + } + } else { + return nil + } + s.contactCacheLock.Lock() + // Just clear the cache, fetching pushnames and business names would be too much effort + s.contactCache = make(map[types.JID]*types.ContactInfo) + s.contactCacheLock.Unlock() + return nil +} + func (s *SQLStore) getContact(user types.JID) (*types.ContactInfo, error) { cached, ok := s.contactCache[user] if ok { diff --git a/vendor/go.mau.fi/whatsmeow/store/store.go b/vendor/go.mau.fi/whatsmeow/store/store.go index 65624b9f..67fe38fa 100644 --- a/vendor/go.mau.fi/whatsmeow/store/store.go +++ b/vendor/go.mau.fi/whatsmeow/store/store.go @@ -1,4 +1,4 @@ -// Copyright (c) 2021 Tulir Asokan +// Copyright (c) 2022 Tulir Asokan // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -71,10 +71,17 @@ type AppStateStore interface { GetAppStateMutationMAC(name string, indexMAC []byte) (valueMAC []byte, err error) } +type ContactEntry struct { + JID types.JID + FirstName string + FullName string +} + type ContactStore interface { PutPushName(user types.JID, pushName string) (bool, string, error) PutBusinessName(user types.JID, businessName string) error PutContactName(user types.JID, fullName, firstName string) error + PutAllContactNames(contacts []ContactEntry) error GetContact(user types.JID) (types.ContactInfo, error) GetAllContacts() (map[types.JID]types.ContactInfo, error) } diff --git a/vendor/go.mau.fi/whatsmeow/types/events/appstate.go b/vendor/go.mau.fi/whatsmeow/types/events/appstate.go index 720a940c..324d8895 100644 --- a/vendor/go.mau.fi/whatsmeow/types/events/appstate.go +++ b/vendor/go.mau.fi/whatsmeow/types/events/appstate.go @@ -76,6 +76,14 @@ type Archive struct { Action *waProto.ArchiveChatAction // The current archival status of the chat. } +// MarkChatAsRead is emitted when a whole chat is marked as read or unread from another device. +type MarkChatAsRead struct { + JID types.JID // The chat which was marked as read or unread. + Timestamp time.Time // The time when the marking happened. + + Action *waProto.MarkChatAsReadAction // Whether the chat was marked as read or unread, and info about the most recent messages. +} + // PushNameSetting is emitted when the user's push name is changed from another device. type PushNameSetting struct { Timestamp time.Time // The time when the push name was changed. diff --git a/vendor/go.mau.fi/whatsmeow/types/events/events.go b/vendor/go.mau.fi/whatsmeow/types/events/events.go index 7a43082c..933969e2 100644 --- a/vendor/go.mau.fi/whatsmeow/types/events/events.go +++ b/vendor/go.mau.fi/whatsmeow/types/events/events.go @@ -62,6 +62,8 @@ type LoggedOut struct { // OnConnect is true if the event was triggered by a connect failure message. // If it's false, the event was triggered by a stream:error message. OnConnect bool + // If OnConnect is true, then this field contains the reason code. + Reason ConnectFailureReason } // StreamReplaced is emitted when the client is disconnected by another client connecting with the same keys. @@ -70,14 +72,96 @@ type LoggedOut struct { // or otherwise try to connect twice with the same session. type StreamReplaced struct{} +// TempBanReason is an error code included in temp ban error events. +type TempBanReason int + +const ( + TempBanBlockedByUsers TempBanReason = 101 + TempBanSentToTooManyPeople TempBanReason = 102 + TempBanCreatedTooManyGroups TempBanReason = 103 + TempBanSentTooManySameMessage TempBanReason = 104 + TempBanBroadcastList TempBanReason = 106 +) + +var tempBanReasonMessage = map[TempBanReason]string{ + TempBanBlockedByUsers: "too many people blocked you", + TempBanSentToTooManyPeople: "you sent too many messages to people who don't have you in their address books", + TempBanCreatedTooManyGroups: "you created too many groups with people who don't have you in their address books", + TempBanSentTooManySameMessage: "you sent the same message to too many people", + TempBanBroadcastList: "you sent too many messages to a broadcast list", +} + +// String returns the reason code and a human-readable description of the ban reason. +func (tbr TempBanReason) String() string { + msg, ok := tempBanReasonMessage[tbr] + if !ok { + msg = "you may have violated the terms of service (unknown error)" + } + return fmt.Sprintf("%d: %s", int(tbr), msg) +} + +// TemporaryBan is emitted when there's a connection failure with the ConnectFailureTempBanned reason code. +type TemporaryBan struct { + Code TempBanReason + Expire time.Time +} + +func (tb *TemporaryBan) String() string { + if tb.Expire.IsZero() { + return fmt.Sprintf("You've been temporarily banned: %v", tb.Code) + } + return fmt.Sprintf("You've been temporarily banned: %v. The ban expires at %v", tb.Code, tb.Expire) +} + +// ConnectFailureReason is an error code included in connection failure events. +type ConnectFailureReason int + +const ( + ConnectFailureLoggedOut ConnectFailureReason = 401 + ConnectFailureTempBanned ConnectFailureReason = 402 + ConnectFailureBanned ConnectFailureReason = 403 + ConnectFailureUnknownLogout ConnectFailureReason = 406 + + ConnectFailureClientOutdated ConnectFailureReason = 405 + ConnectFailureBadUserAgent ConnectFailureReason = 409 + + // 400, 500 and 501 are also existing codes, but the meaning is unknown +) + +var connectFailureReasonMessage = map[ConnectFailureReason]string{ + ConnectFailureLoggedOut: "logged out from another device", + ConnectFailureTempBanned: "account temporarily banned", + ConnectFailureBanned: "account banned from WhatsApp", + ConnectFailureUnknownLogout: "logged out for unknown reason", + ConnectFailureClientOutdated: "client is out of date", + ConnectFailureBadUserAgent: "client user agent was rejected", +} + +// IsLoggedOut returns true if the client should delete session data due to this connect failure. +func (cfr ConnectFailureReason) IsLoggedOut() bool { + return cfr == ConnectFailureLoggedOut || cfr == ConnectFailureBanned || cfr == ConnectFailureUnknownLogout +} + +// String returns the reason code and a short human-readable description of the error. +func (cfr ConnectFailureReason) String() string { + msg, ok := connectFailureReasonMessage[cfr] + if !ok { + msg = "unknown error" + } + return fmt.Sprintf("%d: %s", int(cfr), msg) +} + // ConnectFailure is emitted when the WhatsApp server sends a <failure> node with an unknown reason. // -// Known reasons are handled internally and emitted as different events (e.g. LoggedOut). +// Known reasons are handled internally and emitted as different events (e.g. LoggedOut and TemporaryBan). type ConnectFailure struct { - Reason string + Reason ConnectFailureReason Raw *waBinary.Node } +// ClientOutdated is emitted when the WhatsApp server rejects the connection with the ConnectFailureClientOutdated code. +type ClientOutdated struct{} + // StreamError is emitted when the WhatsApp server sends a <stream:error> node with an unknown code. // // Known codes are handled internally and emitted as different events (e.g. LoggedOut). @@ -165,7 +249,8 @@ type Receipt struct { // client.SendPresence(types.PresenceAvailable) type ChatPresence struct { types.MessageSource - State types.ChatPresence + State types.ChatPresence // The current state, either composing or paused + Media types.ChatPresenceMedia // When composing, the type of message } // Presence is emitted when a presence update is received. @@ -261,3 +346,16 @@ type OfflineSyncPreview struct { type OfflineSyncCompleted struct { Count int } + +// MediaRetry is emitted when the phone sends a response to a media retry request. +type MediaRetry struct { + Ciphertext []byte + IV []byte + + Timestamp time.Time // The time of the response. + + MessageID types.MessageID // The ID of the message. + ChatID types.JID // The chat ID where the message was sent. + SenderID types.JID // The user who sent the message. Only present in groups. + FromMe bool // Whether the message was sent by the current user or someone else. +} diff --git a/vendor/go.mau.fi/whatsmeow/types/jid.go b/vendor/go.mau.fi/whatsmeow/types/jid.go index d203c224..4f54f03d 100644 --- a/vendor/go.mau.fi/whatsmeow/types/jid.go +++ b/vendor/go.mau.fi/whatsmeow/types/jid.go @@ -155,6 +155,21 @@ func (jid JID) String() string { } } +// MarshalText implements encoding.TextMarshaler for JID +func (jid JID) MarshalText() ([]byte, error) { + return []byte(jid.String()), nil +} + +// UnmarshalText implements encoding.TextUnmarshaler for JID +func (jid *JID) UnmarshalText(val []byte) error { + out, err := ParseJID(string(val)) + if err != nil { + return err + } + *jid = out + return nil +} + // IsEmpty returns true if the JID has no server (which is required for all JIDs). func (jid JID) IsEmpty() bool { return len(jid.Server) == 0 diff --git a/vendor/go.mau.fi/whatsmeow/types/presence.go b/vendor/go.mau.fi/whatsmeow/types/presence.go index 190f5eeb..a59f7426 100644 --- a/vendor/go.mau.fi/whatsmeow/types/presence.go +++ b/vendor/go.mau.fi/whatsmeow/types/presence.go @@ -17,6 +17,12 @@ type ChatPresence string const ( ChatPresenceComposing ChatPresence = "composing" - ChatPresenceRecording ChatPresence = "recording" ChatPresencePaused ChatPresence = "paused" ) + +type ChatPresenceMedia string + +const ( + ChatPresenceMediaText ChatPresenceMedia = "" + ChatPresenceMediaAudio ChatPresenceMedia = "audio" +) diff --git a/vendor/go.mau.fi/whatsmeow/update.go b/vendor/go.mau.fi/whatsmeow/update.go new file mode 100644 index 00000000..ec94aa2f --- /dev/null +++ b/vendor/go.mau.fi/whatsmeow/update.go @@ -0,0 +1,81 @@ +// Copyright (c) 2022 Tulir Asokan +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +package whatsmeow + +import ( + "encoding/json" + "fmt" + "io" + "net/http" + "net/url" + + "go.mau.fi/whatsmeow/socket" + "go.mau.fi/whatsmeow/store" +) + +// CheckUpdateResponse is the data returned by CheckUpdate. +type CheckUpdateResponse struct { + IsBroken bool + IsBelowSoft bool + IsBelowHard bool + CurrentVersion string + + ParsedVersion store.WAVersionContainer `json:"-"` +} + +// CheckUpdateURL is the base URL to check for WhatsApp web updates. +const CheckUpdateURL = "https://web.whatsapp.com/check-update" + +// CheckUpdate asks the WhatsApp servers if there is an update available +// (using the HTTP client and proxy settings of this whatsmeow Client instance). +func (cli *Client) CheckUpdate() (respData CheckUpdateResponse, err error) { + return CheckUpdate(http.DefaultClient) +} + +// CheckUpdate asks the WhatsApp servers if there is an update available. +func CheckUpdate(httpClient *http.Client) (respData CheckUpdateResponse, err error) { + var reqURL *url.URL + reqURL, err = url.Parse(CheckUpdateURL) + if err != nil { + err = fmt.Errorf("failed to parse check update URL: %w", err) + return + } + q := reqURL.Query() + q.Set("version", store.GetWAVersion().String()) + q.Set("platform", "web") + reqURL.RawQuery = q.Encode() + var req *http.Request + req, err = http.NewRequest(http.MethodGet, reqURL.String(), nil) + if err != nil { + err = fmt.Errorf("failed to prepare request: %w", err) + return + } + req.Header.Set("Origin", socket.Origin) + req.Header.Set("Referer", socket.Origin+"/") + var resp *http.Response + resp, err = httpClient.Do(req) + if err != nil { + err = fmt.Errorf("failed to send request: %w", err) + return + } + defer resp.Body.Close() + if resp.StatusCode != 200 { + body, _ := io.ReadAll(resp.Body) + err = fmt.Errorf("unexpected response with status %d: %s", resp.StatusCode, body) + return + } + err = json.NewDecoder(resp.Body).Decode(&respData) + if err != nil { + err = fmt.Errorf("failed to decode response body (status %d): %w", resp.StatusCode, err) + return + } + respData.ParsedVersion, err = store.ParseVersion(respData.CurrentVersion) + if err != nil { + err = fmt.Errorf("failed to parse version string: %w", err) + } + return +} diff --git a/vendor/go.mau.fi/whatsmeow/upload.go b/vendor/go.mau.fi/whatsmeow/upload.go index 5f3605ab..6de805c6 100644 --- a/vendor/go.mau.fi/whatsmeow/upload.go +++ b/vendor/go.mau.fi/whatsmeow/upload.go @@ -24,16 +24,41 @@ import ( // UploadResponse contains the data from the attachment upload, which can be put into a message to send the attachment. type UploadResponse struct { - URL string - DirectPath string + URL string `json:"url"` + DirectPath string `json:"direct_path"` - MediaKey []byte - FileEncSHA256 []byte - FileSHA256 []byte - FileLength uint64 + MediaKey []byte `json:"-"` + FileEncSHA256 []byte `json:"-"` + FileSHA256 []byte `json:"-"` + FileLength uint64 `json:"-"` } // Upload uploads the given attachment to WhatsApp servers. +// +// You should copy the fields in the response to the corresponding fields in a protobuf message. +// +// For example, to send an image: +// resp, err := cli.Upload(context.Background(), yourImageBytes, whatsmeow.MediaImage) +// // handle error +// +// imageMsg := &waProto.ImageMessage{ +// Caption: proto.String("Hello, world!"), +// Mimetype: proto.String("image/png"), // replace this with the actual mime type +// // you can also optionally add other fields like ContextInfo and JpegThumbnail here +// +// Url: &resp.URL, +// DirectPath: &uploaded.DirectPath, +// MediaKey: resp.MediaKey, +// FileEncSha256: resp.FileEncSHA256, +// FileSha256: resp.FileSha256, +// FileLength: &resp.FileLength, +// } +// _, err = cli.SendMessage(targetJID, "", &waProto.Message{ +// ImageMessage: imageMsg, +// }) +// // handle error again +// +// The same applies to the other message types like DocumentMessage, just replace the struct type and Message field name. func (cli *Client) Upload(ctx context.Context, plaintext []byte, appInfo MediaType) (resp UploadResponse, err error) { resp.FileLength = uint64(len(plaintext)) resp.MediaKey = make([]byte, 32) @@ -92,7 +117,7 @@ func (cli *Client) Upload(ctx context.Context, plaintext []byte, appInfo MediaTy req.Header.Set("Referer", socket.Origin+"/") var httpResp *http.Response - httpResp, err = http.DefaultClient.Do(req) + httpResp, err = cli.http.Do(req) if err != nil { err = fmt.Errorf("failed to execute request: %w", err) } else if httpResp.StatusCode != http.StatusOK { |