2019-12-02 15:34:05 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: chat_message.proto
|
|
|
|
|
|
|
|
package protobuf
|
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
2020-02-10 11:22:37 +00:00
|
|
|
proto "github.com/golang/protobuf/proto"
|
2020-03-09 07:55:58 +00:00
|
|
|
math "math"
|
2019-12-02 15:34:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
2020-05-13 13:16:17 +00:00
|
|
|
type ImageMessage_ImageType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
ImageMessage_UNKNOWN_IMAGE_TYPE ImageMessage_ImageType = 0
|
|
|
|
ImageMessage_PNG ImageMessage_ImageType = 1
|
|
|
|
ImageMessage_JPEG ImageMessage_ImageType = 2
|
|
|
|
ImageMessage_WEBP ImageMessage_ImageType = 3
|
|
|
|
ImageMessage_GIF ImageMessage_ImageType = 4
|
|
|
|
)
|
|
|
|
|
|
|
|
var ImageMessage_ImageType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_IMAGE_TYPE",
|
|
|
|
1: "PNG",
|
|
|
|
2: "JPEG",
|
|
|
|
3: "WEBP",
|
|
|
|
4: "GIF",
|
|
|
|
}
|
|
|
|
|
|
|
|
var ImageMessage_ImageType_value = map[string]int32{
|
|
|
|
"UNKNOWN_IMAGE_TYPE": 0,
|
|
|
|
"PNG": 1,
|
|
|
|
"JPEG": 2,
|
|
|
|
"WEBP": 3,
|
|
|
|
"GIF": 4,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x ImageMessage_ImageType) String() string {
|
|
|
|
return proto.EnumName(ImageMessage_ImageType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ImageMessage_ImageType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_263952f55fd35689, []int{1, 0}
|
|
|
|
}
|
|
|
|
|
2020-06-17 18:55:49 +00:00
|
|
|
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}
|
|
|
|
}
|
|
|
|
|
2019-12-02 15:34:05 +00:00
|
|
|
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
|
2020-01-10 18:59:01 +00:00
|
|
|
ChatMessage_TRANSACTION_COMMAND ChatMessage_ContentType = 5
|
2020-01-28 11:16:28 +00:00
|
|
|
// Only local
|
|
|
|
ChatMessage_SYSTEM_MESSAGE_CONTENT_PRIVATE_GROUP ChatMessage_ContentType = 6
|
2020-05-13 13:16:17 +00:00
|
|
|
ChatMessage_IMAGE ChatMessage_ContentType = 7
|
2020-06-17 18:55:49 +00:00
|
|
|
ChatMessage_AUDIO ChatMessage_ContentType = 8
|
2019-12-02 15:34:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var ChatMessage_ContentType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_CONTENT_TYPE",
|
|
|
|
1: "TEXT_PLAIN",
|
|
|
|
2: "STICKER",
|
|
|
|
3: "STATUS",
|
|
|
|
4: "EMOJI",
|
2020-01-10 18:59:01 +00:00
|
|
|
5: "TRANSACTION_COMMAND",
|
2020-01-28 11:16:28 +00:00
|
|
|
6: "SYSTEM_MESSAGE_CONTENT_PRIVATE_GROUP",
|
2020-05-13 13:16:17 +00:00
|
|
|
7: "IMAGE",
|
2020-06-17 18:55:49 +00:00
|
|
|
8: "AUDIO",
|
2019-12-02 15:34:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var ChatMessage_ContentType_value = map[string]int32{
|
2020-01-28 11:16:28 +00:00
|
|
|
"UNKNOWN_CONTENT_TYPE": 0,
|
|
|
|
"TEXT_PLAIN": 1,
|
|
|
|
"STICKER": 2,
|
|
|
|
"STATUS": 3,
|
|
|
|
"EMOJI": 4,
|
|
|
|
"TRANSACTION_COMMAND": 5,
|
|
|
|
"SYSTEM_MESSAGE_CONTENT_PRIVATE_GROUP": 6,
|
2020-05-13 13:16:17 +00:00
|
|
|
"IMAGE": 7,
|
2020-06-17 18:55:49 +00:00
|
|
|
"AUDIO": 8,
|
2019-12-02 15:34:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x ChatMessage_ContentType) String() string {
|
|
|
|
return proto.EnumName(ChatMessage_ContentType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ChatMessage_ContentType) EnumDescriptor() ([]byte, []int) {
|
2020-07-25 11:13:23 +00:00
|
|
|
return fileDescriptor_263952f55fd35689, []int{3, 0}
|
2019-12-02 15:34:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2020-05-13 13:16:17 +00:00
|
|
|
type ImageMessage struct {
|
|
|
|
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
|
|
Type ImageMessage_ImageType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.ImageMessage_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() ImageMessage_ImageType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return ImageMessage_UNKNOWN_IMAGE_TYPE
|
|
|
|
}
|
|
|
|
|
2020-06-17 18:55:49 +00:00
|
|
|
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"`
|
2020-06-23 14:30:39 +00:00
|
|
|
DurationMs uint64 `protobuf:"varint,3,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
|
2020-06-17 18:55:49 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2020-06-23 14:30:39 +00:00
|
|
|
func (m *AudioMessage) GetDurationMs() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.DurationMs
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-12-02 15:34:05 +00:00
|
|
|
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"`
|
2020-03-09 07:55:58 +00:00
|
|
|
// Id of the message that we are replying to
|
2019-12-02 15:34:05 +00:00
|
|
|
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)
|
2020-07-25 11:13:23 +00:00
|
|
|
MessageType MessageType `protobuf:"varint,7,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"`
|
2019-12-02 15:34:05 +00:00
|
|
|
// 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
|
2020-05-13 13:16:17 +00:00
|
|
|
// *ChatMessage_Image
|
2020-06-17 18:55:49 +00:00
|
|
|
// *ChatMessage_Audio
|
2019-12-02 15:34:05 +00:00
|
|
|
Payload isChatMessage_Payload `protobuf_oneof:"payload"`
|
|
|
|
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) {
|
2020-07-13 23:59:20 +00:00
|
|
|
return fileDescriptor_263952f55fd35689, []int{3}
|
2019-12-02 15:34:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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 ""
|
|
|
|
}
|
|
|
|
|
2020-07-25 11:13:23 +00:00
|
|
|
func (m *ChatMessage) GetMessageType() MessageType {
|
2019-12-02 15:34:05 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.MessageType
|
|
|
|
}
|
2020-07-25 11:13:23 +00:00
|
|
|
return MessageType_UNKNOWN_MESSAGE_TYPE
|
2019-12-02 15:34:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
2020-05-13 13:16:17 +00:00
|
|
|
type ChatMessage_Image struct {
|
|
|
|
Image *ImageMessage `protobuf:"bytes,10,opt,name=image,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
2020-06-17 18:55:49 +00:00
|
|
|
type ChatMessage_Audio struct {
|
|
|
|
Audio *AudioMessage `protobuf:"bytes,11,opt,name=audio,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
2019-12-02 15:34:05 +00:00
|
|
|
func (*ChatMessage_Sticker) isChatMessage_Payload() {}
|
|
|
|
|
2020-05-13 13:16:17 +00:00
|
|
|
func (*ChatMessage_Image) isChatMessage_Payload() {}
|
|
|
|
|
2020-06-17 18:55:49 +00:00
|
|
|
func (*ChatMessage_Audio) isChatMessage_Payload() {}
|
|
|
|
|
2019-12-02 15:34:05 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2020-05-13 13:16:17 +00:00
|
|
|
func (m *ChatMessage) GetImage() *ImageMessage {
|
|
|
|
if x, ok := m.GetPayload().(*ChatMessage_Image); ok {
|
|
|
|
return x.Image
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-17 18:55:49 +00:00
|
|
|
func (m *ChatMessage) GetAudio() *AudioMessage {
|
|
|
|
if x, ok := m.GetPayload().(*ChatMessage_Audio); ok {
|
|
|
|
return x.Audio
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-12-02 15:34:05 +00:00
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
|
|
func (*ChatMessage) XXX_OneofWrappers() []interface{} {
|
|
|
|
return []interface{}{
|
|
|
|
(*ChatMessage_Sticker)(nil),
|
2020-05-13 13:16:17 +00:00
|
|
|
(*ChatMessage_Image)(nil),
|
2020-06-17 18:55:49 +00:00
|
|
|
(*ChatMessage_Audio)(nil),
|
2019-12-02 15:34:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2020-05-13 13:16:17 +00:00
|
|
|
proto.RegisterEnum("protobuf.ImageMessage_ImageType", ImageMessage_ImageType_name, ImageMessage_ImageType_value)
|
2020-06-17 18:55:49 +00:00
|
|
|
proto.RegisterEnum("protobuf.AudioMessage_AudioType", AudioMessage_AudioType_name, AudioMessage_AudioType_value)
|
2019-12-02 15:34:05 +00:00
|
|
|
proto.RegisterEnum("protobuf.ChatMessage_ContentType", ChatMessage_ContentType_name, ChatMessage_ContentType_value)
|
|
|
|
proto.RegisterType((*StickerMessage)(nil), "protobuf.StickerMessage")
|
2020-05-13 13:16:17 +00:00
|
|
|
proto.RegisterType((*ImageMessage)(nil), "protobuf.ImageMessage")
|
2020-06-17 18:55:49 +00:00
|
|
|
proto.RegisterType((*AudioMessage)(nil), "protobuf.AudioMessage")
|
2019-12-02 15:34:05 +00:00
|
|
|
proto.RegisterType((*ChatMessage)(nil), "protobuf.ChatMessage")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("chat_message.proto", fileDescriptor_263952f55fd35689) }
|
|
|
|
|
|
|
|
var fileDescriptor_263952f55fd35689 = []byte{
|
2020-07-25 11:13:23 +00:00
|
|
|
// 618 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x4f, 0x6f, 0x9b, 0x4e,
|
|
|
|
0x10, 0x0d, 0x36, 0x18, 0x33, 0x58, 0xd1, 0x6a, 0x7f, 0xf9, 0x25, 0xb4, 0xaa, 0x54, 0x17, 0xf5,
|
|
|
|
0xe0, 0x93, 0x0f, 0x69, 0x2a, 0xe5, 0x4a, 0x1c, 0xea, 0x90, 0x14, 0x8c, 0x96, 0x75, 0xd3, 0x9c,
|
|
|
|
0x10, 0xc1, 0xdb, 0xd8, 0x4a, 0xf8, 0x23, 0xb3, 0x96, 0x9a, 0x6b, 0xbf, 0x4d, 0xef, 0x55, 0x3f,
|
|
|
|
0x5f, 0xb5, 0x4b, 0x08, 0xb4, 0xea, 0xad, 0x27, 0x66, 0x66, 0xdf, 0x5b, 0xde, 0xcc, 0xbc, 0x05,
|
|
|
|
0x9c, 0xae, 0x13, 0x1e, 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