waCommon

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FutureProofBehavior_name = map[int32]string{
		0: "PLACEHOLDER",
		1: "NO_PLACEHOLDER",
		2: "IGNORE",
	}
	FutureProofBehavior_value = map[string]int32{
		"PLACEHOLDER":    0,
		"NO_PLACEHOLDER": 1,
		"IGNORE":         2,
	}
)

Enum value maps for FutureProofBehavior.

View Source
var (
	Command_CommandType_name = map[int32]string{
		1: "EVERYONE",
		2: "SILENT",
		3: "AI",
		4: "AI_IMAGINE",
	}
	Command_CommandType_value = map[string]int32{
		"EVERYONE":   1,
		"SILENT":     2,
		"AI":         3,
		"AI_IMAGINE": 4,
	}
)

Enum value maps for Command_CommandType.

View Source
var File_waCommon_WACommon_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Command

type Command struct {
	CommandType     *Command_CommandType `protobuf:"varint,1,opt,name=commandType,enum=WACommon.Command_CommandType" json:"commandType,omitempty"`
	Offset          *uint32              `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
	Length          *uint32              `protobuf:"varint,3,opt,name=length" json:"length,omitempty"`
	ValidationToken *string              `protobuf:"bytes,4,opt,name=validationToken" json:"validationToken,omitempty"`
	// contains filtered or unexported fields
}

func (*Command) Descriptor deprecated

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

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetCommandType

func (x *Command) GetCommandType() Command_CommandType

func (*Command) GetLength

func (x *Command) GetLength() uint32

func (*Command) GetOffset

func (x *Command) GetOffset() uint32

func (*Command) GetValidationToken

func (x *Command) GetValidationToken() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

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

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type Command_CommandType

type Command_CommandType int32
const (
	Command_EVERYONE   Command_CommandType = 1
	Command_SILENT     Command_CommandType = 2
	Command_AI         Command_CommandType = 3
	Command_AI_IMAGINE Command_CommandType = 4
)

func (Command_CommandType) Descriptor

func (Command_CommandType) Enum

func (Command_CommandType) EnumDescriptor deprecated

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

Deprecated: Use Command_CommandType.Descriptor instead.

func (Command_CommandType) Number

func (Command_CommandType) String

func (x Command_CommandType) String() string

func (Command_CommandType) Type

func (*Command_CommandType) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type FutureProofBehavior

type FutureProofBehavior int32
const (
	FutureProofBehavior_PLACEHOLDER    FutureProofBehavior = 0
	FutureProofBehavior_NO_PLACEHOLDER FutureProofBehavior = 1
	FutureProofBehavior_IGNORE         FutureProofBehavior = 2
)

func (FutureProofBehavior) Descriptor

func (FutureProofBehavior) Enum

func (FutureProofBehavior) EnumDescriptor deprecated

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

Deprecated: Use FutureProofBehavior.Descriptor instead.

func (FutureProofBehavior) Number

func (FutureProofBehavior) String

func (x FutureProofBehavior) String() string

func (FutureProofBehavior) Type

func (*FutureProofBehavior) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type MessageKey

type MessageKey struct {
	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"`
	// contains filtered or unexported fields
}

func (*MessageKey) Descriptor deprecated

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

Deprecated: Use MessageKey.ProtoReflect.Descriptor instead.

func (*MessageKey) GetFromMe

func (x *MessageKey) GetFromMe() bool

func (*MessageKey) GetID

func (x *MessageKey) GetID() string

func (*MessageKey) GetId deprecated

func (x *MessageKey) GetId() string

Deprecated: Use GetID

func (*MessageKey) GetParticipant

func (x *MessageKey) GetParticipant() string

func (*MessageKey) GetRemoteJID

func (x *MessageKey) GetRemoteJID() string

func (*MessageKey) GetRemoteJid deprecated

func (x *MessageKey) GetRemoteJid() string

Deprecated: Use GetRemoteJID

func (*MessageKey) ProtoMessage

func (*MessageKey) ProtoMessage()

func (*MessageKey) ProtoReflect

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

func (*MessageKey) Reset

func (x *MessageKey) Reset()

func (*MessageKey) String

func (x *MessageKey) String() string

type MessageText

type MessageText struct {
	Text         *string    `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
	MentionedJID []string   `protobuf:"bytes,2,rep,name=mentionedJID" json:"mentionedJID,omitempty"`
	Commands     []*Command `protobuf:"bytes,3,rep,name=commands" json:"commands,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageText) Descriptor deprecated

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

Deprecated: Use MessageText.ProtoReflect.Descriptor instead.

func (*MessageText) GetCommands

func (x *MessageText) GetCommands() []*Command

func (*MessageText) GetMentionedJID

func (x *MessageText) GetMentionedJID() []string

func (*MessageText) GetText

func (x *MessageText) GetText() string

func (*MessageText) ProtoMessage

func (*MessageText) ProtoMessage()

func (*MessageText) ProtoReflect

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

func (*MessageText) Reset

func (x *MessageText) Reset()

func (*MessageText) String

func (x *MessageText) String() string

type SubProtocol

type SubProtocol struct {
	Payload []byte `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
	Version *int32 `protobuf:"varint,2,opt,name=version" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*SubProtocol) Descriptor deprecated

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

Deprecated: Use SubProtocol.ProtoReflect.Descriptor instead.

func (*SubProtocol) GetPayload

func (x *SubProtocol) GetPayload() []byte

func (*SubProtocol) GetVersion

func (x *SubProtocol) GetVersion() int32

func (*SubProtocol) ProtoMessage

func (*SubProtocol) ProtoMessage()

func (*SubProtocol) ProtoReflect

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

func (*SubProtocol) Reset

func (x *SubProtocol) Reset()

func (*SubProtocol) String

func (x *SubProtocol) String() string

Jump to

Keyboard shortcuts

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