1208 lines
43 KiB
Go
1208 lines
43 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: chat_message.proto
|
|
|
|
package protobuf
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type AudioMessage_AudioType int32
|
|
|
|
const (
|
|
AudioMessage_UNKNOWN_AUDIO_TYPE AudioMessage_AudioType = 0
|
|
AudioMessage_AAC AudioMessage_AudioType = 1
|
|
AudioMessage_AMR AudioMessage_AudioType = 2
|
|
)
|
|
|
|
var AudioMessage_AudioType_name = map[int32]string{
|
|
0: "UNKNOWN_AUDIO_TYPE",
|
|
1: "AAC",
|
|
2: "AMR",
|
|
}
|
|
|
|
var AudioMessage_AudioType_value = map[string]int32{
|
|
"UNKNOWN_AUDIO_TYPE": 0,
|
|
"AAC": 1,
|
|
"AMR": 2,
|
|
}
|
|
|
|
func (x AudioMessage_AudioType) String() string {
|
|
return proto.EnumName(AudioMessage_AudioType_name, int32(x))
|
|
}
|
|
|
|
func (AudioMessage_AudioType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{2, 0}
|
|
}
|
|
|
|
type ChatMessage_ContentType int32
|
|
|
|
const (
|
|
ChatMessage_UNKNOWN_CONTENT_TYPE ChatMessage_ContentType = 0
|
|
ChatMessage_TEXT_PLAIN ChatMessage_ContentType = 1
|
|
ChatMessage_STICKER ChatMessage_ContentType = 2
|
|
ChatMessage_STATUS ChatMessage_ContentType = 3
|
|
ChatMessage_EMOJI ChatMessage_ContentType = 4
|
|
ChatMessage_TRANSACTION_COMMAND ChatMessage_ContentType = 5
|
|
// Only local
|
|
ChatMessage_SYSTEM_MESSAGE_CONTENT_PRIVATE_GROUP ChatMessage_ContentType = 6
|
|
ChatMessage_IMAGE ChatMessage_ContentType = 7
|
|
ChatMessage_AUDIO ChatMessage_ContentType = 8
|
|
ChatMessage_COMMUNITY ChatMessage_ContentType = 9
|
|
// Only local
|
|
ChatMessage_SYSTEM_MESSAGE_GAP ChatMessage_ContentType = 10
|
|
ChatMessage_CONTACT_REQUEST ChatMessage_ContentType = 11
|
|
ChatMessage_DISCORD_MESSAGE ChatMessage_ContentType = 12
|
|
ChatMessage_IDENTITY_VERIFICATION ChatMessage_ContentType = 13
|
|
)
|
|
|
|
var ChatMessage_ContentType_name = map[int32]string{
|
|
0: "UNKNOWN_CONTENT_TYPE",
|
|
1: "TEXT_PLAIN",
|
|
2: "STICKER",
|
|
3: "STATUS",
|
|
4: "EMOJI",
|
|
5: "TRANSACTION_COMMAND",
|
|
6: "SYSTEM_MESSAGE_CONTENT_PRIVATE_GROUP",
|
|
7: "IMAGE",
|
|
8: "AUDIO",
|
|
9: "COMMUNITY",
|
|
10: "SYSTEM_MESSAGE_GAP",
|
|
11: "CONTACT_REQUEST",
|
|
12: "DISCORD_MESSAGE",
|
|
13: "IDENTITY_VERIFICATION",
|
|
}
|
|
|
|
var ChatMessage_ContentType_value = map[string]int32{
|
|
"UNKNOWN_CONTENT_TYPE": 0,
|
|
"TEXT_PLAIN": 1,
|
|
"STICKER": 2,
|
|
"STATUS": 3,
|
|
"EMOJI": 4,
|
|
"TRANSACTION_COMMAND": 5,
|
|
"SYSTEM_MESSAGE_CONTENT_PRIVATE_GROUP": 6,
|
|
"IMAGE": 7,
|
|
"AUDIO": 8,
|
|
"COMMUNITY": 9,
|
|
"SYSTEM_MESSAGE_GAP": 10,
|
|
"CONTACT_REQUEST": 11,
|
|
"DISCORD_MESSAGE": 12,
|
|
"IDENTITY_VERIFICATION": 13,
|
|
}
|
|
|
|
func (x ChatMessage_ContentType) String() string {
|
|
return proto.EnumName(ChatMessage_ContentType_name, int32(x))
|
|
}
|
|
|
|
func (ChatMessage_ContentType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{10, 0}
|
|
}
|
|
|
|
type StickerMessage struct {
|
|
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
Pack int32 `protobuf:"varint,2,opt,name=pack,proto3" json:"pack,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *StickerMessage) Reset() { *m = StickerMessage{} }
|
|
func (m *StickerMessage) String() string { return proto.CompactTextString(m) }
|
|
func (*StickerMessage) ProtoMessage() {}
|
|
func (*StickerMessage) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{0}
|
|
}
|
|
|
|
func (m *StickerMessage) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_StickerMessage.Unmarshal(m, b)
|
|
}
|
|
func (m *StickerMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_StickerMessage.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *StickerMessage) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StickerMessage.Merge(m, src)
|
|
}
|
|
func (m *StickerMessage) XXX_Size() int {
|
|
return xxx_messageInfo_StickerMessage.Size(m)
|
|
}
|
|
func (m *StickerMessage) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_StickerMessage.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_StickerMessage proto.InternalMessageInfo
|
|
|
|
func (m *StickerMessage) GetHash() string {
|
|
if m != nil {
|
|
return m.Hash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *StickerMessage) GetPack() int32 {
|
|
if m != nil {
|
|
return m.Pack
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ImageMessage struct {
|
|
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
Type ImageType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.ImageType" json:"type,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ImageMessage) Reset() { *m = ImageMessage{} }
|
|
func (m *ImageMessage) String() string { return proto.CompactTextString(m) }
|
|
func (*ImageMessage) ProtoMessage() {}
|
|
func (*ImageMessage) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{1}
|
|
}
|
|
|
|
func (m *ImageMessage) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ImageMessage.Unmarshal(m, b)
|
|
}
|
|
func (m *ImageMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ImageMessage.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ImageMessage) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ImageMessage.Merge(m, src)
|
|
}
|
|
func (m *ImageMessage) XXX_Size() int {
|
|
return xxx_messageInfo_ImageMessage.Size(m)
|
|
}
|
|
func (m *ImageMessage) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ImageMessage.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ImageMessage proto.InternalMessageInfo
|
|
|
|
func (m *ImageMessage) GetPayload() []byte {
|
|
if m != nil {
|
|
return m.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ImageMessage) GetType() ImageType {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return ImageType_UNKNOWN_IMAGE_TYPE
|
|
}
|
|
|
|
type AudioMessage struct {
|
|
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
Type AudioMessage_AudioType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.AudioMessage_AudioType" json:"type,omitempty"`
|
|
DurationMs uint64 `protobuf:"varint,3,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AudioMessage) Reset() { *m = AudioMessage{} }
|
|
func (m *AudioMessage) String() string { return proto.CompactTextString(m) }
|
|
func (*AudioMessage) ProtoMessage() {}
|
|
func (*AudioMessage) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{2}
|
|
}
|
|
|
|
func (m *AudioMessage) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AudioMessage.Unmarshal(m, b)
|
|
}
|
|
func (m *AudioMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AudioMessage.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AudioMessage) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AudioMessage.Merge(m, src)
|
|
}
|
|
func (m *AudioMessage) XXX_Size() int {
|
|
return xxx_messageInfo_AudioMessage.Size(m)
|
|
}
|
|
func (m *AudioMessage) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AudioMessage.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AudioMessage proto.InternalMessageInfo
|
|
|
|
func (m *AudioMessage) GetPayload() []byte {
|
|
if m != nil {
|
|
return m.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AudioMessage) GetType() AudioMessage_AudioType {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return AudioMessage_UNKNOWN_AUDIO_TYPE
|
|
}
|
|
|
|
func (m *AudioMessage) GetDurationMs() uint64 {
|
|
if m != nil {
|
|
return m.DurationMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditMessage struct {
|
|
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
|
// Text of the message
|
|
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
|
|
ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
|
MessageId string `protobuf:"bytes,4,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
|
// Grant for community edit messages
|
|
Grant []byte `protobuf:"bytes,5,opt,name=grant,proto3" json:"grant,omitempty"`
|
|
// The type of message (public/one-to-one/private-group-chat)
|
|
MessageType MessageType `protobuf:"varint,6,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"`
|
|
ContentType ChatMessage_ContentType `protobuf:"varint,7,opt,name=content_type,json=contentType,proto3,enum=protobuf.ChatMessage_ContentType" json:"content_type,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EditMessage) Reset() { *m = EditMessage{} }
|
|
func (m *EditMessage) String() string { return proto.CompactTextString(m) }
|
|
func (*EditMessage) ProtoMessage() {}
|
|
func (*EditMessage) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{3}
|
|
}
|
|
|
|
func (m *EditMessage) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_EditMessage.Unmarshal(m, b)
|
|
}
|
|
func (m *EditMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_EditMessage.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *EditMessage) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EditMessage.Merge(m, src)
|
|
}
|
|
func (m *EditMessage) XXX_Size() int {
|
|
return xxx_messageInfo_EditMessage.Size(m)
|
|
}
|
|
func (m *EditMessage) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EditMessage.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EditMessage proto.InternalMessageInfo
|
|
|
|
func (m *EditMessage) GetClock() uint64 {
|
|
if m != nil {
|
|
return m.Clock
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *EditMessage) GetText() string {
|
|
if m != nil {
|
|
return m.Text
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EditMessage) GetChatId() string {
|
|
if m != nil {
|
|
return m.ChatId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EditMessage) GetMessageId() string {
|
|
if m != nil {
|
|
return m.MessageId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EditMessage) GetGrant() []byte {
|
|
if m != nil {
|
|
return m.Grant
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *EditMessage) GetMessageType() MessageType {
|
|
if m != nil {
|
|
return m.MessageType
|
|
}
|
|
return MessageType_UNKNOWN_MESSAGE_TYPE
|
|
}
|
|
|
|
func (m *EditMessage) GetContentType() ChatMessage_ContentType {
|
|
if m != nil {
|
|
return m.ContentType
|
|
}
|
|
return ChatMessage_UNKNOWN_CONTENT_TYPE
|
|
}
|
|
|
|
type DeleteMessage struct {
|
|
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
|
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
|
MessageId string `protobuf:"bytes,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
|
// Grant for community delete messages
|
|
Grant []byte `protobuf:"bytes,4,opt,name=grant,proto3" json:"grant,omitempty"`
|
|
// The type of message (public/one-to-one/private-group-chat)
|
|
MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"`
|
|
DeletedBy string `protobuf:"bytes,6,opt,name=deleted_by,json=deletedBy,proto3" json:"deleted_by,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DeleteMessage) Reset() { *m = DeleteMessage{} }
|
|
func (m *DeleteMessage) String() string { return proto.CompactTextString(m) }
|
|
func (*DeleteMessage) ProtoMessage() {}
|
|
func (*DeleteMessage) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{4}
|
|
}
|
|
|
|
func (m *DeleteMessage) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeleteMessage.Unmarshal(m, b)
|
|
}
|
|
func (m *DeleteMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeleteMessage.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DeleteMessage) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeleteMessage.Merge(m, src)
|
|
}
|
|
func (m *DeleteMessage) XXX_Size() int {
|
|
return xxx_messageInfo_DeleteMessage.Size(m)
|
|
}
|
|
func (m *DeleteMessage) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeleteMessage.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeleteMessage proto.InternalMessageInfo
|
|
|
|
func (m *DeleteMessage) GetClock() uint64 {
|
|
if m != nil {
|
|
return m.Clock
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *DeleteMessage) GetChatId() string {
|
|
if m != nil {
|
|
return m.ChatId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteMessage) GetMessageId() string {
|
|
if m != nil {
|
|
return m.MessageId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteMessage) GetGrant() []byte {
|
|
if m != nil {
|
|
return m.Grant
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DeleteMessage) GetMessageType() MessageType {
|
|
if m != nil {
|
|
return m.MessageType
|
|
}
|
|
return MessageType_UNKNOWN_MESSAGE_TYPE
|
|
}
|
|
|
|
func (m *DeleteMessage) GetDeletedBy() string {
|
|
if m != nil {
|
|
return m.DeletedBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteForMeMessage struct {
|
|
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
|
MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DeleteForMeMessage) Reset() { *m = DeleteForMeMessage{} }
|
|
func (m *DeleteForMeMessage) String() string { return proto.CompactTextString(m) }
|
|
func (*DeleteForMeMessage) ProtoMessage() {}
|
|
func (*DeleteForMeMessage) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{5}
|
|
}
|
|
|
|
func (m *DeleteForMeMessage) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeleteForMeMessage.Unmarshal(m, b)
|
|
}
|
|
func (m *DeleteForMeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeleteForMeMessage.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DeleteForMeMessage) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeleteForMeMessage.Merge(m, src)
|
|
}
|
|
func (m *DeleteForMeMessage) XXX_Size() int {
|
|
return xxx_messageInfo_DeleteForMeMessage.Size(m)
|
|
}
|
|
func (m *DeleteForMeMessage) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeleteForMeMessage.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeleteForMeMessage proto.InternalMessageInfo
|
|
|
|
func (m *DeleteForMeMessage) GetClock() uint64 {
|
|
if m != nil {
|
|
return m.Clock
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *DeleteForMeMessage) GetMessageId() string {
|
|
if m != nil {
|
|
return m.MessageId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DiscordMessage struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
TimestampEdited string `protobuf:"bytes,4,opt,name=timestampEdited,proto3" json:"timestampEdited,omitempty"`
|
|
Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
|
|
Author *DiscordMessageAuthor `protobuf:"bytes,6,opt,name=author,proto3" json:"author,omitempty"`
|
|
Reference *DiscordMessageReference `protobuf:"bytes,7,opt,name=reference,proto3" json:"reference,omitempty"`
|
|
Attachments []*DiscordMessageAttachment `protobuf:"bytes,8,rep,name=attachments,proto3" json:"attachments,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DiscordMessage) Reset() { *m = DiscordMessage{} }
|
|
func (m *DiscordMessage) String() string { return proto.CompactTextString(m) }
|
|
func (*DiscordMessage) ProtoMessage() {}
|
|
func (*DiscordMessage) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{6}
|
|
}
|
|
|
|
func (m *DiscordMessage) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DiscordMessage.Unmarshal(m, b)
|
|
}
|
|
func (m *DiscordMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DiscordMessage.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DiscordMessage) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DiscordMessage.Merge(m, src)
|
|
}
|
|
func (m *DiscordMessage) XXX_Size() int {
|
|
return xxx_messageInfo_DiscordMessage.Size(m)
|
|
}
|
|
func (m *DiscordMessage) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DiscordMessage.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DiscordMessage proto.InternalMessageInfo
|
|
|
|
func (m *DiscordMessage) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessage) GetType() string {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessage) GetTimestamp() string {
|
|
if m != nil {
|
|
return m.Timestamp
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessage) GetTimestampEdited() string {
|
|
if m != nil {
|
|
return m.TimestampEdited
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessage) GetContent() string {
|
|
if m != nil {
|
|
return m.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessage) GetAuthor() *DiscordMessageAuthor {
|
|
if m != nil {
|
|
return m.Author
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DiscordMessage) GetReference() *DiscordMessageReference {
|
|
if m != nil {
|
|
return m.Reference
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DiscordMessage) GetAttachments() []*DiscordMessageAttachment {
|
|
if m != nil {
|
|
return m.Attachments
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DiscordMessageAuthor struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Discriminator string `protobuf:"bytes,3,opt,name=discriminator,proto3" json:"discriminator,omitempty"`
|
|
Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"`
|
|
AvatarUrl string `protobuf:"bytes,5,opt,name=avatarUrl,proto3" json:"avatarUrl,omitempty"`
|
|
AvatarImagePayload []byte `protobuf:"bytes,6,opt,name=avatarImagePayload,proto3" json:"avatarImagePayload,omitempty"`
|
|
LocalUrl string `protobuf:"bytes,7,opt,name=localUrl,proto3" json:"localUrl,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DiscordMessageAuthor) Reset() { *m = DiscordMessageAuthor{} }
|
|
func (m *DiscordMessageAuthor) String() string { return proto.CompactTextString(m) }
|
|
func (*DiscordMessageAuthor) ProtoMessage() {}
|
|
func (*DiscordMessageAuthor) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{7}
|
|
}
|
|
|
|
func (m *DiscordMessageAuthor) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DiscordMessageAuthor.Unmarshal(m, b)
|
|
}
|
|
func (m *DiscordMessageAuthor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DiscordMessageAuthor.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DiscordMessageAuthor) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DiscordMessageAuthor.Merge(m, src)
|
|
}
|
|
func (m *DiscordMessageAuthor) XXX_Size() int {
|
|
return xxx_messageInfo_DiscordMessageAuthor.Size(m)
|
|
}
|
|
func (m *DiscordMessageAuthor) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DiscordMessageAuthor.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DiscordMessageAuthor proto.InternalMessageInfo
|
|
|
|
func (m *DiscordMessageAuthor) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageAuthor) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageAuthor) GetDiscriminator() string {
|
|
if m != nil {
|
|
return m.Discriminator
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageAuthor) GetNickname() string {
|
|
if m != nil {
|
|
return m.Nickname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageAuthor) GetAvatarUrl() string {
|
|
if m != nil {
|
|
return m.AvatarUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageAuthor) GetAvatarImagePayload() []byte {
|
|
if m != nil {
|
|
return m.AvatarImagePayload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DiscordMessageAuthor) GetLocalUrl() string {
|
|
if m != nil {
|
|
return m.LocalUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DiscordMessageReference struct {
|
|
MessageId string `protobuf:"bytes,1,opt,name=messageId,proto3" json:"messageId,omitempty"`
|
|
ChannelId string `protobuf:"bytes,2,opt,name=channelId,proto3" json:"channelId,omitempty"`
|
|
GuildId string `protobuf:"bytes,3,opt,name=guildId,proto3" json:"guildId,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DiscordMessageReference) Reset() { *m = DiscordMessageReference{} }
|
|
func (m *DiscordMessageReference) String() string { return proto.CompactTextString(m) }
|
|
func (*DiscordMessageReference) ProtoMessage() {}
|
|
func (*DiscordMessageReference) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{8}
|
|
}
|
|
|
|
func (m *DiscordMessageReference) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DiscordMessageReference.Unmarshal(m, b)
|
|
}
|
|
func (m *DiscordMessageReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DiscordMessageReference.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DiscordMessageReference) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DiscordMessageReference.Merge(m, src)
|
|
}
|
|
func (m *DiscordMessageReference) XXX_Size() int {
|
|
return xxx_messageInfo_DiscordMessageReference.Size(m)
|
|
}
|
|
func (m *DiscordMessageReference) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DiscordMessageReference.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DiscordMessageReference proto.InternalMessageInfo
|
|
|
|
func (m *DiscordMessageReference) GetMessageId() string {
|
|
if m != nil {
|
|
return m.MessageId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageReference) GetChannelId() string {
|
|
if m != nil {
|
|
return m.ChannelId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageReference) GetGuildId() string {
|
|
if m != nil {
|
|
return m.GuildId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DiscordMessageAttachment struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
MessageId string `protobuf:"bytes,2,opt,name=messageId,proto3" json:"messageId,omitempty"`
|
|
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
|
|
FileName string `protobuf:"bytes,4,opt,name=fileName,proto3" json:"fileName,omitempty"`
|
|
FileSizeBytes uint64 `protobuf:"varint,5,opt,name=fileSizeBytes,proto3" json:"fileSizeBytes,omitempty"`
|
|
ContentType string `protobuf:"bytes,6,opt,name=contentType,proto3" json:"contentType,omitempty"`
|
|
Payload []byte `protobuf:"bytes,7,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
LocalUrl string `protobuf:"bytes,8,opt,name=localUrl,proto3" json:"localUrl,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DiscordMessageAttachment) Reset() { *m = DiscordMessageAttachment{} }
|
|
func (m *DiscordMessageAttachment) String() string { return proto.CompactTextString(m) }
|
|
func (*DiscordMessageAttachment) ProtoMessage() {}
|
|
func (*DiscordMessageAttachment) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{9}
|
|
}
|
|
|
|
func (m *DiscordMessageAttachment) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DiscordMessageAttachment.Unmarshal(m, b)
|
|
}
|
|
func (m *DiscordMessageAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DiscordMessageAttachment.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DiscordMessageAttachment) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DiscordMessageAttachment.Merge(m, src)
|
|
}
|
|
func (m *DiscordMessageAttachment) XXX_Size() int {
|
|
return xxx_messageInfo_DiscordMessageAttachment.Size(m)
|
|
}
|
|
func (m *DiscordMessageAttachment) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DiscordMessageAttachment.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DiscordMessageAttachment proto.InternalMessageInfo
|
|
|
|
func (m *DiscordMessageAttachment) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageAttachment) GetMessageId() string {
|
|
if m != nil {
|
|
return m.MessageId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageAttachment) GetUrl() string {
|
|
if m != nil {
|
|
return m.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageAttachment) GetFileName() string {
|
|
if m != nil {
|
|
return m.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageAttachment) GetFileSizeBytes() uint64 {
|
|
if m != nil {
|
|
return m.FileSizeBytes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *DiscordMessageAttachment) GetContentType() string {
|
|
if m != nil {
|
|
return m.ContentType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DiscordMessageAttachment) GetPayload() []byte {
|
|
if m != nil {
|
|
return m.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DiscordMessageAttachment) GetLocalUrl() string {
|
|
if m != nil {
|
|
return m.LocalUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ChatMessage struct {
|
|
// Lamport timestamp of the chat message
|
|
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
|
// Unix timestamps in milliseconds, currently not used as we use whisper as
|
|
// more reliable, but here so that we don't rely on it
|
|
Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
// Text of the message
|
|
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
|
|
// Id of the message that we are replying to
|
|
ResponseTo string `protobuf:"bytes,4,opt,name=response_to,json=responseTo,proto3" json:"response_to,omitempty"`
|
|
// Ens name of the sender
|
|
EnsName string `protobuf:"bytes,5,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"`
|
|
// Chat id, this field is symmetric for public-chats and private group chats,
|
|
// but asymmetric in case of one-to-ones, as the sender will use the chat-id
|
|
// of the received, while the receiver will use the chat-id of the sender.
|
|
// Probably should be the concatenation of sender-pk & receiver-pk in
|
|
// alphabetical order
|
|
ChatId string `protobuf:"bytes,6,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
|
// The type of message (public/one-to-one/private-group-chat)
|
|
MessageType MessageType `protobuf:"varint,7,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"`
|
|
// The type of the content of the message
|
|
ContentType ChatMessage_ContentType `protobuf:"varint,8,opt,name=content_type,json=contentType,proto3,enum=protobuf.ChatMessage_ContentType" json:"content_type,omitempty"`
|
|
// Types that are valid to be assigned to Payload:
|
|
//
|
|
// *ChatMessage_Sticker
|
|
// *ChatMessage_Image
|
|
// *ChatMessage_Audio
|
|
// *ChatMessage_Community
|
|
// *ChatMessage_DiscordMessage
|
|
Payload isChatMessage_Payload `protobuf_oneof:"payload"`
|
|
// Grant for community chat messages
|
|
Grant []byte `protobuf:"bytes,13,opt,name=grant,proto3" json:"grant,omitempty"`
|
|
// Message author's display name, introduced in version 1
|
|
DisplayName string `protobuf:"bytes,14,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
|
SentContactRequestSignature *ContactRequestSignature `protobuf:"bytes,15,opt,name=sent_contact_request_signature,json=sentContactRequestSignature,proto3" json:"sent_contact_request_signature,omitempty"`
|
|
ReceivedContactRequestSignature *ContactRequestSignature `protobuf:"bytes,16,opt,name=received_contact_request_signature,json=receivedContactRequestSignature,proto3" json:"received_contact_request_signature,omitempty"`
|
|
ContactMessage bool `protobuf:"varint,17,opt,name=contact_message,json=contactMessage,proto3" json:"contact_message,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ChatMessage) Reset() { *m = ChatMessage{} }
|
|
func (m *ChatMessage) String() string { return proto.CompactTextString(m) }
|
|
func (*ChatMessage) ProtoMessage() {}
|
|
func (*ChatMessage) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{10}
|
|
}
|
|
|
|
func (m *ChatMessage) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ChatMessage.Unmarshal(m, b)
|
|
}
|
|
func (m *ChatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ChatMessage.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ChatMessage) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ChatMessage.Merge(m, src)
|
|
}
|
|
func (m *ChatMessage) XXX_Size() int {
|
|
return xxx_messageInfo_ChatMessage.Size(m)
|
|
}
|
|
func (m *ChatMessage) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ChatMessage.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ChatMessage proto.InternalMessageInfo
|
|
|
|
func (m *ChatMessage) GetClock() uint64 {
|
|
if m != nil {
|
|
return m.Clock
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChatMessage) GetTimestamp() uint64 {
|
|
if m != nil {
|
|
return m.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChatMessage) GetText() string {
|
|
if m != nil {
|
|
return m.Text
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChatMessage) GetResponseTo() string {
|
|
if m != nil {
|
|
return m.ResponseTo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChatMessage) GetEnsName() string {
|
|
if m != nil {
|
|
return m.EnsName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChatMessage) GetChatId() string {
|
|
if m != nil {
|
|
return m.ChatId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChatMessage) GetMessageType() MessageType {
|
|
if m != nil {
|
|
return m.MessageType
|
|
}
|
|
return MessageType_UNKNOWN_MESSAGE_TYPE
|
|
}
|
|
|
|
func (m *ChatMessage) GetContentType() ChatMessage_ContentType {
|
|
if m != nil {
|
|
return m.ContentType
|
|
}
|
|
return ChatMessage_UNKNOWN_CONTENT_TYPE
|
|
}
|
|
|
|
type isChatMessage_Payload interface {
|
|
isChatMessage_Payload()
|
|
}
|
|
|
|
type ChatMessage_Sticker struct {
|
|
Sticker *StickerMessage `protobuf:"bytes,9,opt,name=sticker,proto3,oneof"`
|
|
}
|
|
|
|
type ChatMessage_Image struct {
|
|
Image *ImageMessage `protobuf:"bytes,10,opt,name=image,proto3,oneof"`
|
|
}
|
|
|
|
type ChatMessage_Audio struct {
|
|
Audio *AudioMessage `protobuf:"bytes,11,opt,name=audio,proto3,oneof"`
|
|
}
|
|
|
|
type ChatMessage_Community struct {
|
|
Community []byte `protobuf:"bytes,12,opt,name=community,proto3,oneof"`
|
|
}
|
|
|
|
type ChatMessage_DiscordMessage struct {
|
|
DiscordMessage *DiscordMessage `protobuf:"bytes,99,opt,name=discord_message,json=discordMessage,proto3,oneof"`
|
|
}
|
|
|
|
func (*ChatMessage_Sticker) isChatMessage_Payload() {}
|
|
|
|
func (*ChatMessage_Image) isChatMessage_Payload() {}
|
|
|
|
func (*ChatMessage_Audio) isChatMessage_Payload() {}
|
|
|
|
func (*ChatMessage_Community) isChatMessage_Payload() {}
|
|
|
|
func (*ChatMessage_DiscordMessage) isChatMessage_Payload() {}
|
|
|
|
func (m *ChatMessage) GetPayload() isChatMessage_Payload {
|
|
if m != nil {
|
|
return m.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ChatMessage) GetSticker() *StickerMessage {
|
|
if x, ok := m.GetPayload().(*ChatMessage_Sticker); ok {
|
|
return x.Sticker
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ChatMessage) GetImage() *ImageMessage {
|
|
if x, ok := m.GetPayload().(*ChatMessage_Image); ok {
|
|
return x.Image
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ChatMessage) GetAudio() *AudioMessage {
|
|
if x, ok := m.GetPayload().(*ChatMessage_Audio); ok {
|
|
return x.Audio
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ChatMessage) GetCommunity() []byte {
|
|
if x, ok := m.GetPayload().(*ChatMessage_Community); ok {
|
|
return x.Community
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ChatMessage) GetDiscordMessage() *DiscordMessage {
|
|
if x, ok := m.GetPayload().(*ChatMessage_DiscordMessage); ok {
|
|
return x.DiscordMessage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ChatMessage) GetGrant() []byte {
|
|
if m != nil {
|
|
return m.Grant
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ChatMessage) GetDisplayName() string {
|
|
if m != nil {
|
|
return m.DisplayName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChatMessage) GetSentContactRequestSignature() *ContactRequestSignature {
|
|
if m != nil {
|
|
return m.SentContactRequestSignature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ChatMessage) GetReceivedContactRequestSignature() *ContactRequestSignature {
|
|
if m != nil {
|
|
return m.ReceivedContactRequestSignature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ChatMessage) GetContactMessage() bool {
|
|
if m != nil {
|
|
return m.ContactMessage
|
|
}
|
|
return false
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*ChatMessage) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*ChatMessage_Sticker)(nil),
|
|
(*ChatMessage_Image)(nil),
|
|
(*ChatMessage_Audio)(nil),
|
|
(*ChatMessage_Community)(nil),
|
|
(*ChatMessage_DiscordMessage)(nil),
|
|
}
|
|
}
|
|
|
|
type ContactRequestSignature struct {
|
|
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ContactRequestSignature) Reset() { *m = ContactRequestSignature{} }
|
|
func (m *ContactRequestSignature) String() string { return proto.CompactTextString(m) }
|
|
func (*ContactRequestSignature) ProtoMessage() {}
|
|
func (*ContactRequestSignature) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_263952f55fd35689, []int{11}
|
|
}
|
|
|
|
func (m *ContactRequestSignature) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ContactRequestSignature.Unmarshal(m, b)
|
|
}
|
|
func (m *ContactRequestSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ContactRequestSignature.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ContactRequestSignature) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ContactRequestSignature.Merge(m, src)
|
|
}
|
|
func (m *ContactRequestSignature) XXX_Size() int {
|
|
return xxx_messageInfo_ContactRequestSignature.Size(m)
|
|
}
|
|
func (m *ContactRequestSignature) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ContactRequestSignature.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ContactRequestSignature proto.InternalMessageInfo
|
|
|
|
func (m *ContactRequestSignature) GetSignature() []byte {
|
|
if m != nil {
|
|
return m.Signature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ContactRequestSignature) GetTimestamp() uint64 {
|
|
if m != nil {
|
|
return m.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("protobuf.AudioMessage_AudioType", AudioMessage_AudioType_name, AudioMessage_AudioType_value)
|
|
proto.RegisterEnum("protobuf.ChatMessage_ContentType", ChatMessage_ContentType_name, ChatMessage_ContentType_value)
|
|
proto.RegisterType((*StickerMessage)(nil), "protobuf.StickerMessage")
|
|
proto.RegisterType((*ImageMessage)(nil), "protobuf.ImageMessage")
|
|
proto.RegisterType((*AudioMessage)(nil), "protobuf.AudioMessage")
|
|
proto.RegisterType((*EditMessage)(nil), "protobuf.EditMessage")
|
|
proto.RegisterType((*DeleteMessage)(nil), "protobuf.DeleteMessage")
|
|
proto.RegisterType((*DeleteForMeMessage)(nil), "protobuf.DeleteForMeMessage")
|
|
proto.RegisterType((*DiscordMessage)(nil), "protobuf.DiscordMessage")
|
|
proto.RegisterType((*DiscordMessageAuthor)(nil), "protobuf.DiscordMessageAuthor")
|
|
proto.RegisterType((*DiscordMessageReference)(nil), "protobuf.DiscordMessageReference")
|
|
proto.RegisterType((*DiscordMessageAttachment)(nil), "protobuf.DiscordMessageAttachment")
|
|
proto.RegisterType((*ChatMessage)(nil), "protobuf.ChatMessage")
|
|
proto.RegisterType((*ContactRequestSignature)(nil), "protobuf.ContactRequestSignature")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("chat_message.proto", fileDescriptor_263952f55fd35689)
|
|
}
|
|
|
|
var fileDescriptor_263952f55fd35689 = []byte{
|
|
// 1258 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdb, 0x8e, 0xdb, 0x44,
|
|
0x18, 0xde, 0x9c, 0xe3, 0xdf, 0xd9, 0xac, 0x99, 0x1e, 0xd6, 0x2d, 0x3d, 0xa4, 0x56, 0xa5, 0xe6,
|
|
0x2a, 0x48, 0xa5, 0xa0, 0x4a, 0x5c, 0x20, 0x6f, 0xe2, 0x6e, 0x4d, 0x49, 0xb2, 0x1d, 0x3b, 0x85,
|
|
0xe5, 0xc6, 0x72, 0xed, 0xd9, 0x8d, 0xb5, 0x89, 0x1d, 0xec, 0x49, 0x45, 0xb8, 0xe7, 0x92, 0x77,
|
|
0xe0, 0x29, 0x78, 0x0a, 0x6e, 0x79, 0x05, 0x9e, 0x80, 0x07, 0x40, 0x33, 0xf6, 0xc4, 0x76, 0x68,
|
|
0xb6, 0x55, 0xaf, 0x3c, 0xff, 0xef, 0xff, 0xf8, 0xfd, 0x87, 0x19, 0x40, 0xde, 0xdc, 0xa5, 0xce,
|
|
0x92, 0x24, 0x89, 0x7b, 0x49, 0x06, 0xab, 0x38, 0xa2, 0x11, 0x6a, 0xf3, 0xcf, 0xdb, 0xf5, 0xc5,
|
|
0x5d, 0x99, 0x84, 0xeb, 0x65, 0x92, 0xb2, 0xb5, 0xe7, 0xd0, 0xb5, 0x68, 0xe0, 0x5d, 0x91, 0x78,
|
|
0x9c, 0x8a, 0x23, 0x04, 0xf5, 0xb9, 0x9b, 0xcc, 0xd5, 0x4a, 0xaf, 0xd2, 0x97, 0x30, 0x3f, 0x33,
|
|
0xde, 0xca, 0xf5, 0xae,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