mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-04 11:17:45 +00:00
Update dependencies (#2180)
* Update dependencies * Fix whatsmeow API changes
This commit is contained in:
804
vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.go
generated
vendored
Normal file
804
vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.go
generated
vendored
Normal file
@ -0,0 +1,804 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.34.2
|
||||
// protoc v3.21.12
|
||||
// source: waCompanionReg/WAWebProtobufsCompanionReg.proto
|
||||
|
||||
package waCompanionReg
|
||||
|
||||
import (
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
|
||||
_ "embed"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type DeviceProps_PlatformType int32
|
||||
|
||||
const (
|
||||
DeviceProps_UNKNOWN DeviceProps_PlatformType = 0
|
||||
DeviceProps_CHROME DeviceProps_PlatformType = 1
|
||||
DeviceProps_FIREFOX DeviceProps_PlatformType = 2
|
||||
DeviceProps_IE DeviceProps_PlatformType = 3
|
||||
DeviceProps_OPERA DeviceProps_PlatformType = 4
|
||||
DeviceProps_SAFARI DeviceProps_PlatformType = 5
|
||||
DeviceProps_EDGE DeviceProps_PlatformType = 6
|
||||
DeviceProps_DESKTOP DeviceProps_PlatformType = 7
|
||||
DeviceProps_IPAD DeviceProps_PlatformType = 8
|
||||
DeviceProps_ANDROID_TABLET DeviceProps_PlatformType = 9
|
||||
DeviceProps_OHANA DeviceProps_PlatformType = 10
|
||||
DeviceProps_ALOHA DeviceProps_PlatformType = 11
|
||||
DeviceProps_CATALINA DeviceProps_PlatformType = 12
|
||||
DeviceProps_TCL_TV DeviceProps_PlatformType = 13
|
||||
DeviceProps_IOS_PHONE DeviceProps_PlatformType = 14
|
||||
DeviceProps_IOS_CATALYST DeviceProps_PlatformType = 15
|
||||
DeviceProps_ANDROID_PHONE DeviceProps_PlatformType = 16
|
||||
DeviceProps_ANDROID_AMBIGUOUS DeviceProps_PlatformType = 17
|
||||
DeviceProps_WEAR_OS DeviceProps_PlatformType = 18
|
||||
DeviceProps_AR_WRIST DeviceProps_PlatformType = 19
|
||||
DeviceProps_AR_DEVICE DeviceProps_PlatformType = 20
|
||||
DeviceProps_UWP DeviceProps_PlatformType = 21
|
||||
DeviceProps_VR DeviceProps_PlatformType = 22
|
||||
DeviceProps_CLOUD_API DeviceProps_PlatformType = 23
|
||||
)
|
||||
|
||||
// Enum value maps for DeviceProps_PlatformType.
|
||||
var (
|
||||
DeviceProps_PlatformType_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",
|
||||
13: "TCL_TV",
|
||||
14: "IOS_PHONE",
|
||||
15: "IOS_CATALYST",
|
||||
16: "ANDROID_PHONE",
|
||||
17: "ANDROID_AMBIGUOUS",
|
||||
18: "WEAR_OS",
|
||||
19: "AR_WRIST",
|
||||
20: "AR_DEVICE",
|
||||
21: "UWP",
|
||||
22: "VR",
|
||||
23: "CLOUD_API",
|
||||
}
|
||||
DeviceProps_PlatformType_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,
|
||||
"TCL_TV": 13,
|
||||
"IOS_PHONE": 14,
|
||||
"IOS_CATALYST": 15,
|
||||
"ANDROID_PHONE": 16,
|
||||
"ANDROID_AMBIGUOUS": 17,
|
||||
"WEAR_OS": 18,
|
||||
"AR_WRIST": 19,
|
||||
"AR_DEVICE": 20,
|
||||
"UWP": 21,
|
||||
"VR": 22,
|
||||
"CLOUD_API": 23,
|
||||
}
|
||||
)
|
||||
|
||||
func (x DeviceProps_PlatformType) Enum() *DeviceProps_PlatformType {
|
||||
p := new(DeviceProps_PlatformType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x DeviceProps_PlatformType) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (DeviceProps_PlatformType) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_waCompanionReg_WAWebProtobufsCompanionReg_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (DeviceProps_PlatformType) Type() protoreflect.EnumType {
|
||||
return &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x DeviceProps_PlatformType) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (x *DeviceProps_PlatformType) UnmarshalJSON(b []byte) error {
|
||||
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = DeviceProps_PlatformType(num)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Deprecated: Use DeviceProps_PlatformType.Descriptor instead.
|
||||
func (DeviceProps_PlatformType) EnumDescriptor() ([]byte, []int) {
|
||||
return file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescGZIP(), []int{0, 0}
|
||||
}
|
||||
|
||||
type DeviceProps struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Os *string `protobuf:"bytes,1,opt,name=os" json:"os,omitempty"`
|
||||
Version *DeviceProps_AppVersion `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
|
||||
PlatformType *DeviceProps_PlatformType `protobuf:"varint,3,opt,name=platformType,enum=WAWebProtobufsCompanionReg.DeviceProps_PlatformType" json:"platformType,omitempty"`
|
||||
RequireFullSync *bool `protobuf:"varint,4,opt,name=requireFullSync" json:"requireFullSync,omitempty"`
|
||||
HistorySyncConfig *DeviceProps_HistorySyncConfig `protobuf:"bytes,5,opt,name=historySyncConfig" json:"historySyncConfig,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DeviceProps) Reset() {
|
||||
*x = DeviceProps{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DeviceProps) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DeviceProps) ProtoMessage() {}
|
||||
|
||||
func (x *DeviceProps) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DeviceProps.ProtoReflect.Descriptor instead.
|
||||
func (*DeviceProps) Descriptor() ([]byte, []int) {
|
||||
return file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *DeviceProps) GetOs() string {
|
||||
if x != nil && x.Os != nil {
|
||||
return *x.Os
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DeviceProps) GetVersion() *DeviceProps_AppVersion {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DeviceProps) GetPlatformType() DeviceProps_PlatformType {
|
||||
if x != nil && x.PlatformType != nil {
|
||||
return *x.PlatformType
|
||||
}
|
||||
return DeviceProps_UNKNOWN
|
||||
}
|
||||
|
||||
func (x *DeviceProps) GetRequireFullSync() bool {
|
||||
if x != nil && x.RequireFullSync != nil {
|
||||
return *x.RequireFullSync
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *DeviceProps) GetHistorySyncConfig() *DeviceProps_HistorySyncConfig {
|
||||
if x != nil {
|
||||
return x.HistorySyncConfig
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CompanionEphemeralIdentity struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey" json:"publicKey,omitempty"`
|
||||
DeviceType *DeviceProps_PlatformType `protobuf:"varint,2,opt,name=deviceType,enum=WAWebProtobufsCompanionReg.DeviceProps_PlatformType" json:"deviceType,omitempty"`
|
||||
Ref *string `protobuf:"bytes,3,opt,name=ref" json:"ref,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CompanionEphemeralIdentity) Reset() {
|
||||
*x = CompanionEphemeralIdentity{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CompanionEphemeralIdentity) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CompanionEphemeralIdentity) ProtoMessage() {}
|
||||
|
||||
func (x *CompanionEphemeralIdentity) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CompanionEphemeralIdentity.ProtoReflect.Descriptor instead.
|
||||
func (*CompanionEphemeralIdentity) Descriptor() ([]byte, []int) {
|
||||
return file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *CompanionEphemeralIdentity) GetPublicKey() []byte {
|
||||
if x != nil {
|
||||
return x.PublicKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CompanionEphemeralIdentity) GetDeviceType() DeviceProps_PlatformType {
|
||||
if x != nil && x.DeviceType != nil {
|
||||
return *x.DeviceType
|
||||
}
|
||||
return DeviceProps_UNKNOWN
|
||||
}
|
||||
|
||||
func (x *CompanionEphemeralIdentity) GetRef() string {
|
||||
if x != nil && x.Ref != nil {
|
||||
return *x.Ref
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type PrimaryEphemeralIdentity struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey" json:"publicKey,omitempty"`
|
||||
}
|
||||
|
||||
func (x *PrimaryEphemeralIdentity) Reset() {
|
||||
*x = PrimaryEphemeralIdentity{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *PrimaryEphemeralIdentity) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PrimaryEphemeralIdentity) ProtoMessage() {}
|
||||
|
||||
func (x *PrimaryEphemeralIdentity) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PrimaryEphemeralIdentity.ProtoReflect.Descriptor instead.
|
||||
func (*PrimaryEphemeralIdentity) Descriptor() ([]byte, []int) {
|
||||
return file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *PrimaryEphemeralIdentity) GetPublicKey() []byte {
|
||||
if x != nil {
|
||||
return x.PublicKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type EncryptedPairingRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
EncryptedPayload []byte `protobuf:"bytes,1,opt,name=encryptedPayload" json:"encryptedPayload,omitempty"`
|
||||
IV []byte `protobuf:"bytes,2,opt,name=IV" json:"IV,omitempty"`
|
||||
}
|
||||
|
||||
func (x *EncryptedPairingRequest) Reset() {
|
||||
*x = EncryptedPairingRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *EncryptedPairingRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*EncryptedPairingRequest) ProtoMessage() {}
|
||||
|
||||
func (x *EncryptedPairingRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use EncryptedPairingRequest.ProtoReflect.Descriptor instead.
|
||||
func (*EncryptedPairingRequest) Descriptor() ([]byte, []int) {
|
||||
return file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *EncryptedPairingRequest) GetEncryptedPayload() []byte {
|
||||
if x != nil {
|
||||
return x.EncryptedPayload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *EncryptedPairingRequest) GetIV() []byte {
|
||||
if x != nil {
|
||||
return x.IV
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ClientPairingProps struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
IsChatDbLidMigrated *bool `protobuf:"varint,1,opt,name=isChatDbLidMigrated" json:"isChatDbLidMigrated,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ClientPairingProps) Reset() {
|
||||
*x = ClientPairingProps{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ClientPairingProps) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ClientPairingProps) ProtoMessage() {}
|
||||
|
||||
func (x *ClientPairingProps) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ClientPairingProps.ProtoReflect.Descriptor instead.
|
||||
func (*ClientPairingProps) Descriptor() ([]byte, []int) {
|
||||
return file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *ClientPairingProps) GetIsChatDbLidMigrated() bool {
|
||||
if x != nil && x.IsChatDbLidMigrated != nil {
|
||||
return *x.IsChatDbLidMigrated
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type DeviceProps_HistorySyncConfig struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
FullSyncDaysLimit *uint32 `protobuf:"varint,1,opt,name=fullSyncDaysLimit" json:"fullSyncDaysLimit,omitempty"`
|
||||
FullSyncSizeMbLimit *uint32 `protobuf:"varint,2,opt,name=fullSyncSizeMbLimit" json:"fullSyncSizeMbLimit,omitempty"`
|
||||
StorageQuotaMb *uint32 `protobuf:"varint,3,opt,name=storageQuotaMb" json:"storageQuotaMb,omitempty"`
|
||||
InlineInitialPayloadInE2EeMsg *bool `protobuf:"varint,4,opt,name=inlineInitialPayloadInE2EeMsg" json:"inlineInitialPayloadInE2EeMsg,omitempty"`
|
||||
RecentSyncDaysLimit *uint32 `protobuf:"varint,5,opt,name=recentSyncDaysLimit" json:"recentSyncDaysLimit,omitempty"`
|
||||
SupportCallLogHistory *bool `protobuf:"varint,6,opt,name=supportCallLogHistory" json:"supportCallLogHistory,omitempty"`
|
||||
SupportBotUserAgentChatHistory *bool `protobuf:"varint,7,opt,name=supportBotUserAgentChatHistory" json:"supportBotUserAgentChatHistory,omitempty"`
|
||||
SupportCagReactionsAndPolls *bool `protobuf:"varint,8,opt,name=supportCagReactionsAndPolls" json:"supportCagReactionsAndPolls,omitempty"`
|
||||
SupportBizHostedMsg *bool `protobuf:"varint,9,opt,name=supportBizHostedMsg" json:"supportBizHostedMsg,omitempty"`
|
||||
SupportRecentSyncChunkMessageCountTuning *bool `protobuf:"varint,10,opt,name=supportRecentSyncChunkMessageCountTuning" json:"supportRecentSyncChunkMessageCountTuning,omitempty"`
|
||||
SupportHostedGroupMsg *bool `protobuf:"varint,11,opt,name=supportHostedGroupMsg" json:"supportHostedGroupMsg,omitempty"`
|
||||
SupportFbidBotChatHistory *bool `protobuf:"varint,12,opt,name=supportFbidBotChatHistory" json:"supportFbidBotChatHistory,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) Reset() {
|
||||
*x = DeviceProps_HistorySyncConfig{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DeviceProps_HistorySyncConfig) ProtoMessage() {}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DeviceProps_HistorySyncConfig.ProtoReflect.Descriptor instead.
|
||||
func (*DeviceProps_HistorySyncConfig) Descriptor() ([]byte, []int) {
|
||||
return file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescGZIP(), []int{0, 0}
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetFullSyncDaysLimit() uint32 {
|
||||
if x != nil && x.FullSyncDaysLimit != nil {
|
||||
return *x.FullSyncDaysLimit
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetFullSyncSizeMbLimit() uint32 {
|
||||
if x != nil && x.FullSyncSizeMbLimit != nil {
|
||||
return *x.FullSyncSizeMbLimit
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetStorageQuotaMb() uint32 {
|
||||
if x != nil && x.StorageQuotaMb != nil {
|
||||
return *x.StorageQuotaMb
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetInlineInitialPayloadInE2EeMsg() bool {
|
||||
if x != nil && x.InlineInitialPayloadInE2EeMsg != nil {
|
||||
return *x.InlineInitialPayloadInE2EeMsg
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetRecentSyncDaysLimit() uint32 {
|
||||
if x != nil && x.RecentSyncDaysLimit != nil {
|
||||
return *x.RecentSyncDaysLimit
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetSupportCallLogHistory() bool {
|
||||
if x != nil && x.SupportCallLogHistory != nil {
|
||||
return *x.SupportCallLogHistory
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetSupportBotUserAgentChatHistory() bool {
|
||||
if x != nil && x.SupportBotUserAgentChatHistory != nil {
|
||||
return *x.SupportBotUserAgentChatHistory
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetSupportCagReactionsAndPolls() bool {
|
||||
if x != nil && x.SupportCagReactionsAndPolls != nil {
|
||||
return *x.SupportCagReactionsAndPolls
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetSupportBizHostedMsg() bool {
|
||||
if x != nil && x.SupportBizHostedMsg != nil {
|
||||
return *x.SupportBizHostedMsg
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetSupportRecentSyncChunkMessageCountTuning() bool {
|
||||
if x != nil && x.SupportRecentSyncChunkMessageCountTuning != nil {
|
||||
return *x.SupportRecentSyncChunkMessageCountTuning
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetSupportHostedGroupMsg() bool {
|
||||
if x != nil && x.SupportHostedGroupMsg != nil {
|
||||
return *x.SupportHostedGroupMsg
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *DeviceProps_HistorySyncConfig) GetSupportFbidBotChatHistory() bool {
|
||||
if x != nil && x.SupportFbidBotChatHistory != nil {
|
||||
return *x.SupportFbidBotChatHistory
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type DeviceProps_AppVersion struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
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 *DeviceProps_AppVersion) Reset() {
|
||||
*x = DeviceProps_AppVersion{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DeviceProps_AppVersion) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DeviceProps_AppVersion) ProtoMessage() {}
|
||||
|
||||
func (x *DeviceProps_AppVersion) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DeviceProps_AppVersion.ProtoReflect.Descriptor instead.
|
||||
func (*DeviceProps_AppVersion) Descriptor() ([]byte, []int) {
|
||||
return file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescGZIP(), []int{0, 1}
|
||||
}
|
||||
|
||||
func (x *DeviceProps_AppVersion) GetPrimary() uint32 {
|
||||
if x != nil && x.Primary != nil {
|
||||
return *x.Primary
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DeviceProps_AppVersion) GetSecondary() uint32 {
|
||||
if x != nil && x.Secondary != nil {
|
||||
return *x.Secondary
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DeviceProps_AppVersion) GetTertiary() uint32 {
|
||||
if x != nil && x.Tertiary != nil {
|
||||
return *x.Tertiary
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DeviceProps_AppVersion) GetQuaternary() uint32 {
|
||||
if x != nil && x.Quaternary != nil {
|
||||
return *x.Quaternary
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DeviceProps_AppVersion) GetQuinary() uint32 {
|
||||
if x != nil && x.Quinary != nil {
|
||||
return *x.Quinary
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_waCompanionReg_WAWebProtobufsCompanionReg_proto protoreflect.FileDescriptor
|
||||
|
||||
//go:embed WAWebProtobufsCompanionReg.pb.raw
|
||||
var file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDesc []byte
|
||||
|
||||
var (
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescOnce sync.Once
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescData = file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescGZIP() []byte {
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescOnce.Do(func() {
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescData = protoimpl.X.CompressGZIP(file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescData)
|
||||
})
|
||||
return file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_waCompanionReg_WAWebProtobufsCompanionReg_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_waCompanionReg_WAWebProtobufsCompanionReg_proto_goTypes = []any{
|
||||
(DeviceProps_PlatformType)(0), // 0: WAWebProtobufsCompanionReg.DeviceProps.PlatformType
|
||||
(*DeviceProps)(nil), // 1: WAWebProtobufsCompanionReg.DeviceProps
|
||||
(*CompanionEphemeralIdentity)(nil), // 2: WAWebProtobufsCompanionReg.CompanionEphemeralIdentity
|
||||
(*PrimaryEphemeralIdentity)(nil), // 3: WAWebProtobufsCompanionReg.PrimaryEphemeralIdentity
|
||||
(*EncryptedPairingRequest)(nil), // 4: WAWebProtobufsCompanionReg.EncryptedPairingRequest
|
||||
(*ClientPairingProps)(nil), // 5: WAWebProtobufsCompanionReg.ClientPairingProps
|
||||
(*DeviceProps_HistorySyncConfig)(nil), // 6: WAWebProtobufsCompanionReg.DeviceProps.HistorySyncConfig
|
||||
(*DeviceProps_AppVersion)(nil), // 7: WAWebProtobufsCompanionReg.DeviceProps.AppVersion
|
||||
}
|
||||
var file_waCompanionReg_WAWebProtobufsCompanionReg_proto_depIdxs = []int32{
|
||||
7, // 0: WAWebProtobufsCompanionReg.DeviceProps.version:type_name -> WAWebProtobufsCompanionReg.DeviceProps.AppVersion
|
||||
0, // 1: WAWebProtobufsCompanionReg.DeviceProps.platformType:type_name -> WAWebProtobufsCompanionReg.DeviceProps.PlatformType
|
||||
6, // 2: WAWebProtobufsCompanionReg.DeviceProps.historySyncConfig:type_name -> WAWebProtobufsCompanionReg.DeviceProps.HistorySyncConfig
|
||||
0, // 3: WAWebProtobufsCompanionReg.CompanionEphemeralIdentity.deviceType:type_name -> WAWebProtobufsCompanionReg.DeviceProps.PlatformType
|
||||
4, // [4:4] is the sub-list for method output_type
|
||||
4, // [4:4] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_waCompanionReg_WAWebProtobufsCompanionReg_proto_init() }
|
||||
func file_waCompanionReg_WAWebProtobufsCompanionReg_proto_init() {
|
||||
if File_waCompanionReg_WAWebProtobufsCompanionReg_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*DeviceProps); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*CompanionEphemeralIdentity); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*PrimaryEphemeralIdentity); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EncryptedPairingRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ClientPairingProps); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*DeviceProps_HistorySyncConfig); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*DeviceProps_AppVersion); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_waCompanionReg_WAWebProtobufsCompanionReg_proto_goTypes,
|
||||
DependencyIndexes: file_waCompanionReg_WAWebProtobufsCompanionReg_proto_depIdxs,
|
||||
EnumInfos: file_waCompanionReg_WAWebProtobufsCompanionReg_proto_enumTypes,
|
||||
MessageInfos: file_waCompanionReg_WAWebProtobufsCompanionReg_proto_msgTypes,
|
||||
}.Build()
|
||||
File_waCompanionReg_WAWebProtobufsCompanionReg_proto = out.File
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_rawDesc = nil
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_goTypes = nil
|
||||
file_waCompanionReg_WAWebProtobufsCompanionReg_proto_depIdxs = nil
|
||||
}
|
BIN
vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.raw
generated
vendored
Normal file
BIN
vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.raw
generated
vendored
Normal file
Binary file not shown.
80
vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.proto
vendored
Normal file
80
vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.proto
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
syntax = "proto2";
|
||||
package WAWebProtobufsCompanionReg;
|
||||
option go_package = "go.mau.fi/whatsmeow/proto/waCompanionReg";
|
||||
|
||||
message DeviceProps {
|
||||
enum PlatformType {
|
||||
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;
|
||||
TCL_TV = 13;
|
||||
IOS_PHONE = 14;
|
||||
IOS_CATALYST = 15;
|
||||
ANDROID_PHONE = 16;
|
||||
ANDROID_AMBIGUOUS = 17;
|
||||
WEAR_OS = 18;
|
||||
AR_WRIST = 19;
|
||||
AR_DEVICE = 20;
|
||||
UWP = 21;
|
||||
VR = 22;
|
||||
CLOUD_API = 23;
|
||||
}
|
||||
|
||||
message HistorySyncConfig {
|
||||
optional uint32 fullSyncDaysLimit = 1;
|
||||
optional uint32 fullSyncSizeMbLimit = 2;
|
||||
optional uint32 storageQuotaMb = 3;
|
||||
optional bool inlineInitialPayloadInE2EeMsg = 4;
|
||||
optional uint32 recentSyncDaysLimit = 5;
|
||||
optional bool supportCallLogHistory = 6;
|
||||
optional bool supportBotUserAgentChatHistory = 7;
|
||||
optional bool supportCagReactionsAndPolls = 8;
|
||||
optional bool supportBizHostedMsg = 9;
|
||||
optional bool supportRecentSyncChunkMessageCountTuning = 10;
|
||||
optional bool supportHostedGroupMsg = 11;
|
||||
optional bool supportFbidBotChatHistory = 12;
|
||||
}
|
||||
|
||||
message AppVersion {
|
||||
optional uint32 primary = 1;
|
||||
optional uint32 secondary = 2;
|
||||
optional uint32 tertiary = 3;
|
||||
optional uint32 quaternary = 4;
|
||||
optional uint32 quinary = 5;
|
||||
}
|
||||
|
||||
optional string os = 1;
|
||||
optional AppVersion version = 2;
|
||||
optional PlatformType platformType = 3;
|
||||
optional bool requireFullSync = 4;
|
||||
optional HistorySyncConfig historySyncConfig = 5;
|
||||
}
|
||||
|
||||
message CompanionEphemeralIdentity {
|
||||
optional bytes publicKey = 1;
|
||||
optional DeviceProps.PlatformType deviceType = 2;
|
||||
optional string ref = 3;
|
||||
}
|
||||
|
||||
message PrimaryEphemeralIdentity {
|
||||
optional bytes publicKey = 1;
|
||||
}
|
||||
|
||||
message EncryptedPairingRequest {
|
||||
optional bytes encryptedPayload = 1;
|
||||
optional bytes IV = 2;
|
||||
}
|
||||
|
||||
message ClientPairingProps {
|
||||
optional bool isChatDbLidMigrated = 1;
|
||||
}
|
Reference in New Issue
Block a user