waCommon

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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{
		0: "COMMANDTYPE_UNKNOWN",
		1: "EVERYONE",
		2: "SILENT",
		3: "AI",
	}
	Command_CommandType_value = map[string]int32{
		"COMMANDTYPE_UNKNOWN": 0,
		"EVERYONE":            1,
		"SILENT":              2,
		"AI":                  3,
	}
)

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,proto3,enum=WACommon.Command_CommandType" json:"commandType,omitempty"`
	Offset          uint32              `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Length          uint32              `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"`
	ValidationToken string              `protobuf:"bytes,4,opt,name=validationToken,proto3" 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_COMMANDTYPE_UNKNOWN Command_CommandType = 0
	Command_EVERYONE            Command_CommandType = 1
	Command_SILENT              Command_CommandType = 2
	Command_AI                  Command_CommandType = 3
)

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

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

type MessageKey

type MessageKey struct {
	RemoteJID   string `protobuf:"bytes,1,opt,name=remoteJID,proto3" json:"remoteJID,omitempty"`
	FromMe      bool   `protobuf:"varint,2,opt,name=fromMe,proto3" json:"fromMe,omitempty"`
	ID          string `protobuf:"bytes,3,opt,name=ID,proto3" json:"ID,omitempty"`
	Participant string `protobuf:"bytes,4,opt,name=participant,proto3" 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) GetParticipant

func (x *MessageKey) GetParticipant() string

func (*MessageKey) GetRemoteJID

func (x *MessageKey) GetRemoteJID() string

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,proto3" json:"text,omitempty"`
	MentionedJID []string   `protobuf:"bytes,2,rep,name=mentionedJID,proto3" json:"mentionedJID,omitempty"`
	Commands     []*Command `protobuf:"bytes,3,rep,name=commands,proto3" 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,proto3" json:"payload,omitempty"`
	Version int32  `protobuf:"varint,2,opt,name=version,proto3" 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