waMsgApplication

package
v2.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsumerApplicationVersion    = 1
	ArmadilloApplicationVersion   = 1
	MultiDeviceApplicationVersion = 1 // TODO: check
)

Variables

View Source
var (
	MessageApplication_Metadata_ThreadType_name = map[int32]string{
		0: "DEFAULT",
		1: "VANISH_MODE",
		2: "DISAPPEARING_MESSAGES",
	}
	MessageApplication_Metadata_ThreadType_value = map[string]int32{
		"DEFAULT":               0,
		"VANISH_MODE":           1,
		"DISAPPEARING_MESSAGES": 2,
	}
)

Enum value maps for MessageApplication_Metadata_ThreadType.

View Source
var File_waMsgApplication_WAMsgApplication_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MessageApplication

type MessageApplication struct {
	Payload  *MessageApplication_Payload  `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
	Metadata *MessageApplication_Metadata `protobuf:"bytes,2,opt,name=metadata" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageApplication) Descriptor deprecated

func (*MessageApplication) Descriptor() ([]byte, []int)

Deprecated: Use MessageApplication.ProtoReflect.Descriptor instead.

func (*MessageApplication) GetMetadata

func (*MessageApplication) GetPayload

func (*MessageApplication) ProtoMessage

func (*MessageApplication) ProtoMessage()

func (*MessageApplication) ProtoReflect

func (x *MessageApplication) ProtoReflect() protoreflect.Message

func (*MessageApplication) Reset

func (x *MessageApplication) Reset()

func (*MessageApplication) String

func (x *MessageApplication) String() string

type MessageApplication_ApplicationData

type MessageApplication_ApplicationData struct {
	// contains filtered or unexported fields
}

func (*MessageApplication_ApplicationData) Descriptor deprecated

func (*MessageApplication_ApplicationData) Descriptor() ([]byte, []int)

Deprecated: Use MessageApplication_ApplicationData.ProtoReflect.Descriptor instead.

func (*MessageApplication_ApplicationData) ProtoMessage

func (*MessageApplication_ApplicationData) ProtoMessage()

func (*MessageApplication_ApplicationData) ProtoReflect

func (*MessageApplication_ApplicationData) Reset

func (*MessageApplication_ApplicationData) String

type MessageApplication_Content

type MessageApplication_Content struct {
	// contains filtered or unexported fields
}

func (*MessageApplication_Content) Descriptor deprecated

func (*MessageApplication_Content) Descriptor() ([]byte, []int)

Deprecated: Use MessageApplication_Content.ProtoReflect.Descriptor instead.

func (*MessageApplication_Content) ProtoMessage

func (*MessageApplication_Content) ProtoMessage()

func (*MessageApplication_Content) ProtoReflect

func (*MessageApplication_Content) Reset

func (x *MessageApplication_Content) Reset()

func (*MessageApplication_Content) String

func (x *MessageApplication_Content) String() string

type MessageApplication_EphemeralSetting

type MessageApplication_EphemeralSetting struct {
	EphemeralExpiration       *uint32 `protobuf:"varint,2,opt,name=ephemeralExpiration" json:"ephemeralExpiration,omitempty"`
	EphemeralSettingTimestamp *int64  `protobuf:"varint,3,opt,name=ephemeralSettingTimestamp" json:"ephemeralSettingTimestamp,omitempty"`
	IsEphemeralSettingReset   *bool   `protobuf:"varint,4,opt,name=isEphemeralSettingReset" json:"isEphemeralSettingReset,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageApplication_EphemeralSetting) Descriptor deprecated

func (*MessageApplication_EphemeralSetting) Descriptor() ([]byte, []int)

Deprecated: Use MessageApplication_EphemeralSetting.ProtoReflect.Descriptor instead.

func (*MessageApplication_EphemeralSetting) GetEphemeralExpiration

func (x *MessageApplication_EphemeralSetting) GetEphemeralExpiration() uint32

func (*MessageApplication_EphemeralSetting) GetEphemeralSettingTimestamp

func (x *MessageApplication_EphemeralSetting) GetEphemeralSettingTimestamp() int64

func (*MessageApplication_EphemeralSetting) GetIsEphemeralSettingReset

func (x *MessageApplication_EphemeralSetting) GetIsEphemeralSettingReset() bool

func (*MessageApplication_EphemeralSetting) ProtoMessage

func (*MessageApplication_EphemeralSetting) ProtoMessage()

func (*MessageApplication_EphemeralSetting) ProtoReflect

func (*MessageApplication_EphemeralSetting) Reset

func (*MessageApplication_EphemeralSetting) String

type MessageApplication_Metadata

type MessageApplication_Metadata struct {

	// Types that are assignable to Ephemeral:
	//
	//	*MessageApplication_Metadata_ChatEphemeralSetting
	//	*MessageApplication_Metadata_EphemeralSettingList
	//	*MessageApplication_Metadata_EphemeralSharedSecret
	Ephemeral                 isMessageApplication_Metadata_Ephemeral    `protobuf_oneof:"ephemeral"`
	ForwardingScore           *uint32                                    `protobuf:"varint,5,opt,name=forwardingScore" json:"forwardingScore,omitempty"`
	IsForwarded               *bool                                      `protobuf:"varint,6,opt,name=isForwarded" json:"isForwarded,omitempty"`
	BusinessMetadata          *waCommon.SubProtocol                      `protobuf:"bytes,7,opt,name=businessMetadata" json:"businessMetadata,omitempty"`
	FrankingKey               []byte                                     `protobuf:"bytes,8,opt,name=frankingKey" json:"frankingKey,omitempty"`
	FrankingVersion           *int32                                     `protobuf:"varint,9,opt,name=frankingVersion" json:"frankingVersion,omitempty"`
	QuotedMessage             *MessageApplication_Metadata_QuotedMessage `protobuf:"bytes,10,opt,name=quotedMessage" json:"quotedMessage,omitempty"`
	ThreadType                *MessageApplication_Metadata_ThreadType    `` /* 129-byte string literal not displayed */
	ReadonlyMetadataDataclass *string                                    `protobuf:"bytes,12,opt,name=readonlyMetadataDataclass" json:"readonlyMetadataDataclass,omitempty"`
	GroupID                   *string                                    `protobuf:"bytes,13,opt,name=groupID" json:"groupID,omitempty"`
	GroupSize                 *uint32                                    `protobuf:"varint,14,opt,name=groupSize" json:"groupSize,omitempty"`
	GroupIndex                *uint32                                    `protobuf:"varint,15,opt,name=groupIndex" json:"groupIndex,omitempty"`
	BotResponseID             *string                                    `protobuf:"bytes,16,opt,name=botResponseID" json:"botResponseID,omitempty"`
	CollapsibleID             *string                                    `protobuf:"bytes,17,opt,name=collapsibleID" json:"collapsibleID,omitempty"`
	SecondaryOtid             *string                                    `protobuf:"bytes,18,opt,name=secondaryOtid" json:"secondaryOtid,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageApplication_Metadata) Descriptor deprecated

func (*MessageApplication_Metadata) Descriptor() ([]byte, []int)

Deprecated: Use MessageApplication_Metadata.ProtoReflect.Descriptor instead.

func (*MessageApplication_Metadata) GetBotResponseID

func (x *MessageApplication_Metadata) GetBotResponseID() string

func (*MessageApplication_Metadata) GetBusinessMetadata

func (x *MessageApplication_Metadata) GetBusinessMetadata() *waCommon.SubProtocol

func (*MessageApplication_Metadata) GetChatEphemeralSetting

func (*MessageApplication_Metadata) GetCollapsibleID

func (x *MessageApplication_Metadata) GetCollapsibleID() string

func (*MessageApplication_Metadata) GetEphemeral

func (m *MessageApplication_Metadata) GetEphemeral() isMessageApplication_Metadata_Ephemeral

func (*MessageApplication_Metadata) GetEphemeralSettingList

func (*MessageApplication_Metadata) GetEphemeralSharedSecret

func (x *MessageApplication_Metadata) GetEphemeralSharedSecret() []byte

func (*MessageApplication_Metadata) GetForwardingScore

func (x *MessageApplication_Metadata) GetForwardingScore() uint32

func (*MessageApplication_Metadata) GetFrankingKey

func (x *MessageApplication_Metadata) GetFrankingKey() []byte

func (*MessageApplication_Metadata) GetFrankingVersion

func (x *MessageApplication_Metadata) GetFrankingVersion() int32

func (*MessageApplication_Metadata) GetGroupID

func (x *MessageApplication_Metadata) GetGroupID() string

func (*MessageApplication_Metadata) GetGroupIndex

func (x *MessageApplication_Metadata) GetGroupIndex() uint32

func (*MessageApplication_Metadata) GetGroupSize

func (x *MessageApplication_Metadata) GetGroupSize() uint32

func (*MessageApplication_Metadata) GetIsForwarded

func (x *MessageApplication_Metadata) GetIsForwarded() bool

func (*MessageApplication_Metadata) GetQuotedMessage

func (*MessageApplication_Metadata) GetReadonlyMetadataDataclass

func (x *MessageApplication_Metadata) GetReadonlyMetadataDataclass() string

func (*MessageApplication_Metadata) GetSecondaryOtid

func (x *MessageApplication_Metadata) GetSecondaryOtid() string

func (*MessageApplication_Metadata) GetThreadType

func (*MessageApplication_Metadata) ProtoMessage

func (*MessageApplication_Metadata) ProtoMessage()

func (*MessageApplication_Metadata) ProtoReflect

func (*MessageApplication_Metadata) Reset

func (x *MessageApplication_Metadata) Reset()

func (*MessageApplication_Metadata) String

func (x *MessageApplication_Metadata) String() string

type MessageApplication_Metadata_ChatEphemeralSetting

type MessageApplication_Metadata_ChatEphemeralSetting struct {
	ChatEphemeralSetting *MessageApplication_EphemeralSetting `protobuf:"bytes,1,opt,name=chatEphemeralSetting,oneof"`
}

type MessageApplication_Metadata_EphemeralSettingList

type MessageApplication_Metadata_EphemeralSettingList struct {
	EphemeralSettingList *MessageApplication_Metadata_EphemeralSettingMap `protobuf:"bytes,2,opt,name=ephemeralSettingList,oneof"`
}

type MessageApplication_Metadata_EphemeralSettingMap

type MessageApplication_Metadata_EphemeralSettingMap struct {
	ChatJID          *string                              `protobuf:"bytes,1,opt,name=chatJID" json:"chatJID,omitempty"`
	EphemeralSetting *MessageApplication_EphemeralSetting `protobuf:"bytes,2,opt,name=ephemeralSetting" json:"ephemeralSetting,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageApplication_Metadata_EphemeralSettingMap) Descriptor deprecated

Deprecated: Use MessageApplication_Metadata_EphemeralSettingMap.ProtoReflect.Descriptor instead.

func (*MessageApplication_Metadata_EphemeralSettingMap) GetChatJID

func (*MessageApplication_Metadata_EphemeralSettingMap) GetEphemeralSetting

func (*MessageApplication_Metadata_EphemeralSettingMap) ProtoMessage

func (*MessageApplication_Metadata_EphemeralSettingMap) ProtoReflect

func (*MessageApplication_Metadata_EphemeralSettingMap) Reset

func (*MessageApplication_Metadata_EphemeralSettingMap) String

type MessageApplication_Metadata_EphemeralSharedSecret

type MessageApplication_Metadata_EphemeralSharedSecret struct {
	EphemeralSharedSecret []byte `protobuf:"bytes,3,opt,name=ephemeralSharedSecret,oneof"`
}

type MessageApplication_Metadata_QuotedMessage

type MessageApplication_Metadata_QuotedMessage struct {
	StanzaID    *string                     `protobuf:"bytes,1,opt,name=stanzaID" json:"stanzaID,omitempty"`
	RemoteJID   *string                     `protobuf:"bytes,2,opt,name=remoteJID" json:"remoteJID,omitempty"`
	Participant *string                     `protobuf:"bytes,3,opt,name=participant" json:"participant,omitempty"`
	Payload     *MessageApplication_Payload `protobuf:"bytes,4,opt,name=payload" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageApplication_Metadata_QuotedMessage) Descriptor deprecated

func (*MessageApplication_Metadata_QuotedMessage) Descriptor() ([]byte, []int)

Deprecated: Use MessageApplication_Metadata_QuotedMessage.ProtoReflect.Descriptor instead.

func (*MessageApplication_Metadata_QuotedMessage) GetParticipant

func (*MessageApplication_Metadata_QuotedMessage) GetPayload

func (*MessageApplication_Metadata_QuotedMessage) GetRemoteJID

func (*MessageApplication_Metadata_QuotedMessage) GetStanzaID

func (*MessageApplication_Metadata_QuotedMessage) ProtoMessage

func (*MessageApplication_Metadata_QuotedMessage) ProtoReflect

func (*MessageApplication_Metadata_QuotedMessage) Reset

func (*MessageApplication_Metadata_QuotedMessage) String

type MessageApplication_Metadata_ThreadType

type MessageApplication_Metadata_ThreadType int32
const (
	MessageApplication_Metadata_DEFAULT               MessageApplication_Metadata_ThreadType = 0
	MessageApplication_Metadata_VANISH_MODE           MessageApplication_Metadata_ThreadType = 1
	MessageApplication_Metadata_DISAPPEARING_MESSAGES MessageApplication_Metadata_ThreadType = 2
)

func (MessageApplication_Metadata_ThreadType) Descriptor

func (MessageApplication_Metadata_ThreadType) Enum

func (MessageApplication_Metadata_ThreadType) EnumDescriptor deprecated

func (MessageApplication_Metadata_ThreadType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MessageApplication_Metadata_ThreadType.Descriptor instead.

func (MessageApplication_Metadata_ThreadType) Number

func (MessageApplication_Metadata_ThreadType) String

func (MessageApplication_Metadata_ThreadType) Type

func (*MessageApplication_Metadata_ThreadType) UnmarshalJSON deprecated

func (x *MessageApplication_Metadata_ThreadType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type MessageApplication_Payload

type MessageApplication_Payload struct {

	// Types that are assignable to Content:
	//
	//	*MessageApplication_Payload_CoreContent
	//	*MessageApplication_Payload_Signal
	//	*MessageApplication_Payload_ApplicationData
	//	*MessageApplication_Payload_SubProtocol
	Content isMessageApplication_Payload_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

func (*MessageApplication_Payload) Descriptor deprecated

func (*MessageApplication_Payload) Descriptor() ([]byte, []int)

Deprecated: Use MessageApplication_Payload.ProtoReflect.Descriptor instead.

func (*MessageApplication_Payload) GetApplicationData

func (*MessageApplication_Payload) GetContent

func (m *MessageApplication_Payload) GetContent() isMessageApplication_Payload_Content

func (*MessageApplication_Payload) GetCoreContent

func (*MessageApplication_Payload) GetSignal

func (*MessageApplication_Payload) GetSubProtocol

func (*MessageApplication_Payload) ProtoMessage

func (*MessageApplication_Payload) ProtoMessage()

func (*MessageApplication_Payload) ProtoReflect

func (*MessageApplication_Payload) Reset

func (x *MessageApplication_Payload) Reset()

func (*MessageApplication_Payload) String

func (x *MessageApplication_Payload) String() string

type MessageApplication_Payload_ApplicationData

type MessageApplication_Payload_ApplicationData struct {
	ApplicationData *MessageApplication_ApplicationData `protobuf:"bytes,3,opt,name=applicationData,oneof"`
}

type MessageApplication_Payload_CoreContent

type MessageApplication_Payload_CoreContent struct {
	CoreContent *MessageApplication_Content `protobuf:"bytes,1,opt,name=coreContent,oneof"`
}

type MessageApplication_Payload_Signal

type MessageApplication_Payload_Signal struct {
	Signal *MessageApplication_Signal `protobuf:"bytes,2,opt,name=signal,oneof"`
}

type MessageApplication_Payload_SubProtocol

type MessageApplication_Payload_SubProtocol struct {
	SubProtocol *MessageApplication_SubProtocolPayload `protobuf:"bytes,4,opt,name=subProtocol,oneof"`
}

type MessageApplication_Signal

type MessageApplication_Signal struct {
	// contains filtered or unexported fields
}

func (*MessageApplication_Signal) Descriptor deprecated

func (*MessageApplication_Signal) Descriptor() ([]byte, []int)

Deprecated: Use MessageApplication_Signal.ProtoReflect.Descriptor instead.

func (*MessageApplication_Signal) ProtoMessage

func (*MessageApplication_Signal) ProtoMessage()

func (*MessageApplication_Signal) ProtoReflect

func (*MessageApplication_Signal) Reset

func (x *MessageApplication_Signal) Reset()

func (*MessageApplication_Signal) String

func (x *MessageApplication_Signal) String() string

type MessageApplication_SubProtocolPayload

type MessageApplication_SubProtocolPayload struct {

	// Types that are assignable to SubProtocol:
	//
	//	*MessageApplication_SubProtocolPayload_ConsumerMessage
	//	*MessageApplication_SubProtocolPayload_BusinessMessage
	//	*MessageApplication_SubProtocolPayload_PaymentMessage
	//	*MessageApplication_SubProtocolPayload_MultiDevice
	//	*MessageApplication_SubProtocolPayload_Voip
	//	*MessageApplication_SubProtocolPayload_Armadillo
	SubProtocol isMessageApplication_SubProtocolPayload_SubProtocol `protobuf_oneof:"subProtocol"`
	FutureProof *waCommon.FutureProofBehavior                       `protobuf:"varint,1,opt,name=futureProof,enum=WACommon.FutureProofBehavior" json:"futureProof,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageApplication_SubProtocolPayload) Descriptor deprecated

func (*MessageApplication_SubProtocolPayload) Descriptor() ([]byte, []int)

Deprecated: Use MessageApplication_SubProtocolPayload.ProtoReflect.Descriptor instead.

func (*MessageApplication_SubProtocolPayload) GetArmadillo

func (*MessageApplication_SubProtocolPayload) GetBusinessMessage

func (*MessageApplication_SubProtocolPayload) GetConsumerMessage

func (*MessageApplication_SubProtocolPayload) GetFutureProof

func (*MessageApplication_SubProtocolPayload) GetMultiDevice

func (*MessageApplication_SubProtocolPayload) GetPaymentMessage

func (*MessageApplication_SubProtocolPayload) GetSubProtocol

func (m *MessageApplication_SubProtocolPayload) GetSubProtocol() isMessageApplication_SubProtocolPayload_SubProtocol

func (*MessageApplication_SubProtocolPayload) GetVoip

func (*MessageApplication_SubProtocolPayload) ProtoMessage

func (*MessageApplication_SubProtocolPayload) ProtoMessage()

func (*MessageApplication_SubProtocolPayload) ProtoReflect

func (*MessageApplication_SubProtocolPayload) Reset

func (*MessageApplication_SubProtocolPayload) String

type MessageApplication_SubProtocolPayload_Armadillo

type MessageApplication_SubProtocolPayload_Armadillo struct {
	Armadillo *waCommon.SubProtocol `protobuf:"bytes,7,opt,name=armadillo,oneof"`
}

func (*MessageApplication_SubProtocolPayload_Armadillo) Decode

func (*MessageApplication_SubProtocolPayload_Armadillo) Set

type MessageApplication_SubProtocolPayload_BusinessMessage

type MessageApplication_SubProtocolPayload_BusinessMessage struct {
	BusinessMessage *waCommon.SubProtocol `protobuf:"bytes,3,opt,name=businessMessage,oneof"`
}

type MessageApplication_SubProtocolPayload_ConsumerMessage

type MessageApplication_SubProtocolPayload_ConsumerMessage struct {
	ConsumerMessage *waCommon.SubProtocol `protobuf:"bytes,2,opt,name=consumerMessage,oneof"`
}

func (*MessageApplication_SubProtocolPayload_ConsumerMessage) Decode

func (*MessageApplication_SubProtocolPayload_ConsumerMessage) Set

type MessageApplication_SubProtocolPayload_MultiDevice

type MessageApplication_SubProtocolPayload_MultiDevice struct {
	MultiDevice *waCommon.SubProtocol `protobuf:"bytes,5,opt,name=multiDevice,oneof"`
}

func (*MessageApplication_SubProtocolPayload_MultiDevice) Decode

func (*MessageApplication_SubProtocolPayload_MultiDevice) Set

type MessageApplication_SubProtocolPayload_PaymentMessage

type MessageApplication_SubProtocolPayload_PaymentMessage struct {
	PaymentMessage *waCommon.SubProtocol `protobuf:"bytes,4,opt,name=paymentMessage,oneof"`
}

type MessageApplication_SubProtocolPayload_Voip

type MessageApplication_SubProtocolPayload_Voip struct {
	Voip *waCommon.SubProtocol `protobuf:"bytes,6,opt,name=voip,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL