Split emoji_reaction into dedicated proto

This commit is contained in:
Samuel Hawksby-Robinson 2020-07-14 00:59:20 +01:00 committed by Andrea Maria Piana
parent f16285ea0d
commit 7049dfc0b8
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
4 changed files with 264 additions and 202 deletions

View File

@ -82,46 +82,6 @@ func (AudioMessage_AudioType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_263952f55fd35689, []int{2, 0} return fileDescriptor_263952f55fd35689, []int{2, 0}
} }
type EmojiReaction_Type int32
const (
EmojiReaction_UNKNOWN_EMOJI_REACTION_TYPE EmojiReaction_Type = 0
EmojiReaction_LOVE EmojiReaction_Type = 1
EmojiReaction_THUMBS_UP EmojiReaction_Type = 2
EmojiReaction_THUMBS_DOWN EmojiReaction_Type = 3
EmojiReaction_LAUGH EmojiReaction_Type = 4
EmojiReaction_SAD EmojiReaction_Type = 5
EmojiReaction_ANGRY EmojiReaction_Type = 6
)
var EmojiReaction_Type_name = map[int32]string{
0: "UNKNOWN_EMOJI_REACTION_TYPE",
1: "LOVE",
2: "THUMBS_UP",
3: "THUMBS_DOWN",
4: "LAUGH",
5: "SAD",
6: "ANGRY",
}
var EmojiReaction_Type_value = map[string]int32{
"UNKNOWN_EMOJI_REACTION_TYPE": 0,
"LOVE": 1,
"THUMBS_UP": 2,
"THUMBS_DOWN": 3,
"LAUGH": 4,
"SAD": 5,
"ANGRY": 6,
}
func (x EmojiReaction_Type) String() string {
return proto.EnumName(EmojiReaction_Type_name, int32(x))
}
func (EmojiReaction_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_263952f55fd35689, []int{3, 0}
}
type ChatMessage_MessageType int32 type ChatMessage_MessageType int32
const ( const (
@ -154,7 +114,7 @@ func (x ChatMessage_MessageType) String() string {
} }
func (ChatMessage_MessageType) EnumDescriptor() ([]byte, []int) { func (ChatMessage_MessageType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_263952f55fd35689, []int{5, 0} return fileDescriptor_263952f55fd35689, []int{3, 0}
} }
type ChatMessage_ContentType int32 type ChatMessage_ContentType int32
@ -201,7 +161,7 @@ func (x ChatMessage_ContentType) String() string {
} }
func (ChatMessage_ContentType) EnumDescriptor() ([]byte, []int) { func (ChatMessage_ContentType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_263952f55fd35689, []int{5, 1} return fileDescriptor_263952f55fd35689, []int{3, 1}
} }
type StickerMessage struct { type StickerMessage struct {
@ -353,92 +313,6 @@ func (m *AudioMessage) GetDurationMs() uint64 {
return 0 return 0
} }
type EmojiReaction struct {
MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
Type EmojiReaction_Type `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.EmojiReaction_Type" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EmojiReaction) Reset() { *m = EmojiReaction{} }
func (m *EmojiReaction) String() string { return proto.CompactTextString(m) }
func (*EmojiReaction) ProtoMessage() {}
func (*EmojiReaction) Descriptor() ([]byte, []int) {
return fileDescriptor_263952f55fd35689, []int{3}
}
func (m *EmojiReaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EmojiReaction.Unmarshal(m, b)
}
func (m *EmojiReaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EmojiReaction.Marshal(b, m, deterministic)
}
func (m *EmojiReaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_EmojiReaction.Merge(m, src)
}
func (m *EmojiReaction) XXX_Size() int {
return xxx_messageInfo_EmojiReaction.Size(m)
}
func (m *EmojiReaction) XXX_DiscardUnknown() {
xxx_messageInfo_EmojiReaction.DiscardUnknown(m)
}
var xxx_messageInfo_EmojiReaction proto.InternalMessageInfo
func (m *EmojiReaction) GetMessageId() string {
if m != nil {
return m.MessageId
}
return ""
}
func (m *EmojiReaction) GetType() EmojiReaction_Type {
if m != nil {
return m.Type
}
return EmojiReaction_UNKNOWN_EMOJI_REACTION_TYPE
}
type EmojiReactionRetraction struct {
EmojiReactionId string `protobuf:"bytes,1,opt,name=emoji_reaction_id,json=emojiReactionId,proto3" json:"emoji_reaction_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EmojiReactionRetraction) Reset() { *m = EmojiReactionRetraction{} }
func (m *EmojiReactionRetraction) String() string { return proto.CompactTextString(m) }
func (*EmojiReactionRetraction) ProtoMessage() {}
func (*EmojiReactionRetraction) Descriptor() ([]byte, []int) {
return fileDescriptor_263952f55fd35689, []int{4}
}
func (m *EmojiReactionRetraction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EmojiReactionRetraction.Unmarshal(m, b)
}
func (m *EmojiReactionRetraction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EmojiReactionRetraction.Marshal(b, m, deterministic)
}
func (m *EmojiReactionRetraction) XXX_Merge(src proto.Message) {
xxx_messageInfo_EmojiReactionRetraction.Merge(m, src)
}
func (m *EmojiReactionRetraction) XXX_Size() int {
return xxx_messageInfo_EmojiReactionRetraction.Size(m)
}
func (m *EmojiReactionRetraction) XXX_DiscardUnknown() {
xxx_messageInfo_EmojiReactionRetraction.DiscardUnknown(m)
}
var xxx_messageInfo_EmojiReactionRetraction proto.InternalMessageInfo
func (m *EmojiReactionRetraction) GetEmojiReactionId() string {
if m != nil {
return m.EmojiReactionId
}
return ""
}
type ChatMessage struct { type ChatMessage struct {
// Lamport timestamp of the chat message // Lamport timestamp of the chat message
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
@ -474,7 +348,7 @@ func (m *ChatMessage) Reset() { *m = ChatMessage{} }
func (m *ChatMessage) String() string { return proto.CompactTextString(m) } func (m *ChatMessage) String() string { return proto.CompactTextString(m) }
func (*ChatMessage) ProtoMessage() {} func (*ChatMessage) ProtoMessage() {}
func (*ChatMessage) Descriptor() ([]byte, []int) { func (*ChatMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_263952f55fd35689, []int{5} return fileDescriptor_263952f55fd35689, []int{3}
} }
func (m *ChatMessage) XXX_Unmarshal(b []byte) error { func (m *ChatMessage) XXX_Unmarshal(b []byte) error {
@ -613,69 +487,57 @@ func (*ChatMessage) XXX_OneofWrappers() []interface{} {
func init() { func init() {
proto.RegisterEnum("protobuf.ImageMessage_ImageType", ImageMessage_ImageType_name, ImageMessage_ImageType_value) proto.RegisterEnum("protobuf.ImageMessage_ImageType", ImageMessage_ImageType_name, ImageMessage_ImageType_value)
proto.RegisterEnum("protobuf.AudioMessage_AudioType", AudioMessage_AudioType_name, AudioMessage_AudioType_value) proto.RegisterEnum("protobuf.AudioMessage_AudioType", AudioMessage_AudioType_name, AudioMessage_AudioType_value)
proto.RegisterEnum("protobuf.EmojiReaction_Type", EmojiReaction_Type_name, EmojiReaction_Type_value)
proto.RegisterEnum("protobuf.ChatMessage_MessageType", ChatMessage_MessageType_name, ChatMessage_MessageType_value) proto.RegisterEnum("protobuf.ChatMessage_MessageType", ChatMessage_MessageType_name, ChatMessage_MessageType_value)
proto.RegisterEnum("protobuf.ChatMessage_ContentType", ChatMessage_ContentType_name, ChatMessage_ContentType_value) proto.RegisterEnum("protobuf.ChatMessage_ContentType", ChatMessage_ContentType_name, ChatMessage_ContentType_value)
proto.RegisterType((*StickerMessage)(nil), "protobuf.StickerMessage") proto.RegisterType((*StickerMessage)(nil), "protobuf.StickerMessage")
proto.RegisterType((*ImageMessage)(nil), "protobuf.ImageMessage") proto.RegisterType((*ImageMessage)(nil), "protobuf.ImageMessage")
proto.RegisterType((*AudioMessage)(nil), "protobuf.AudioMessage") proto.RegisterType((*AudioMessage)(nil), "protobuf.AudioMessage")
proto.RegisterType((*EmojiReaction)(nil), "protobuf.EmojiReaction")
proto.RegisterType((*EmojiReactionRetraction)(nil), "protobuf.EmojiReactionRetraction")
proto.RegisterType((*ChatMessage)(nil), "protobuf.ChatMessage") proto.RegisterType((*ChatMessage)(nil), "protobuf.ChatMessage")
} }
func init() { proto.RegisterFile("chat_message.proto", fileDescriptor_263952f55fd35689) } func init() { proto.RegisterFile("chat_message.proto", fileDescriptor_263952f55fd35689) }
var fileDescriptor_263952f55fd35689 = []byte{ var fileDescriptor_263952f55fd35689 = []byte{
// 788 bytes of a gzipped FileDescriptorProto // 652 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcd, 0x6e, 0xa4, 0x46, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x4d, 0x6f, 0xd3, 0x40,
0x10, 0x36, 0x33, 0xcc, 0x0f, 0xc5, 0xd8, 0xdb, 0xdb, 0x59, 0xad, 0x89, 0xe2, 0x28, 0x13, 0x94, 0x10, 0xad, 0x13, 0x27, 0x8e, 0xc7, 0xa1, 0x5a, 0x96, 0xaa, 0x35, 0x52, 0x25, 0x82, 0xc5, 0x21,
0xc3, 0x28, 0x87, 0x51, 0xb4, 0xd9, 0x48, 0xb9, 0x62, 0xdc, 0x19, 0xb3, 0x6b, 0x7e, 0xd4, 0xf4, 0xa7, 0x1c, 0x4a, 0x91, 0xb8, 0xba, 0xae, 0x49, 0xdd, 0xd6, 0x1f, 0x5a, 0x6f, 0x28, 0x3d, 0x59,
0xac, 0xe3, 0x13, 0x62, 0xa1, 0xb3, 0x26, 0x5e, 0x06, 0x34, 0x60, 0x29, 0xbe, 0xe4, 0x11, 0xf2, 0xae, 0xb3, 0x34, 0x51, 0xeb, 0x0f, 0xc5, 0xae, 0x44, 0x2f, 0xfc, 0x04, 0xfe, 0x07, 0x77, 0xc4,
0x1e, 0xb9, 0x47, 0x79, 0x90, 0x3c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2, 0xf7, 0x53, 0x79, 0xc3, 0xdf, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xe2, 0xe4, 0x1c, 0xf7,
0xf2, 0x05, 0x00, 0x00,
} }

View File

@ -30,25 +30,6 @@ message AudioMessage {
} }
} }
message EmojiReaction {
string message_id = 1;
Type type = 2;
enum Type {
UNKNOWN_EMOJI_REACTION_TYPE = 0;
LOVE = 1;
THUMBS_UP = 2;
THUMBS_DOWN = 3;
LAUGH = 4;
SAD = 5;
ANGRY = 6;
}
}
message EmojiReactionRetraction {
string emoji_reaction_id = 1;
}
message ChatMessage { message ChatMessage {
// Lamport timestamp of the chat message // Lamport timestamp of the chat message
uint64 clock = 1; uint64 clock = 1;

View File

@ -0,0 +1,195 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: emoji_reaction.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 EmojiReaction_Type int32
const (
EmojiReaction_UNKNOWN_EMOJI_REACTION_TYPE EmojiReaction_Type = 0
EmojiReaction_LOVE EmojiReaction_Type = 1
EmojiReaction_THUMBS_UP EmojiReaction_Type = 2
EmojiReaction_THUMBS_DOWN EmojiReaction_Type = 3
EmojiReaction_LAUGH EmojiReaction_Type = 4
EmojiReaction_SAD EmojiReaction_Type = 5
EmojiReaction_ANGRY EmojiReaction_Type = 6
)
var EmojiReaction_Type_name = map[int32]string{
0: "UNKNOWN_EMOJI_REACTION_TYPE",
1: "LOVE",
2: "THUMBS_UP",
3: "THUMBS_DOWN",
4: "LAUGH",
5: "SAD",
6: "ANGRY",
}
var EmojiReaction_Type_value = map[string]int32{
"UNKNOWN_EMOJI_REACTION_TYPE": 0,
"LOVE": 1,
"THUMBS_UP": 2,
"THUMBS_DOWN": 3,
"LAUGH": 4,
"SAD": 5,
"ANGRY": 6,
}
func (x EmojiReaction_Type) String() string {
return proto.EnumName(EmojiReaction_Type_name, int32(x))
}
func (EmojiReaction_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0a088c907bbc7ed6, []int{0, 0}
}
type EmojiReaction 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"`
Type EmojiReaction_Type `protobuf:"varint,3,opt,name=type,proto3,enum=protobuf.EmojiReaction_Type" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EmojiReaction) Reset() { *m = EmojiReaction{} }
func (m *EmojiReaction) String() string { return proto.CompactTextString(m) }
func (*EmojiReaction) ProtoMessage() {}
func (*EmojiReaction) Descriptor() ([]byte, []int) {
return fileDescriptor_0a088c907bbc7ed6, []int{0}
}
func (m *EmojiReaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EmojiReaction.Unmarshal(m, b)
}
func (m *EmojiReaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EmojiReaction.Marshal(b, m, deterministic)
}
func (m *EmojiReaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_EmojiReaction.Merge(m, src)
}
func (m *EmojiReaction) XXX_Size() int {
return xxx_messageInfo_EmojiReaction.Size(m)
}
func (m *EmojiReaction) XXX_DiscardUnknown() {
xxx_messageInfo_EmojiReaction.DiscardUnknown(m)
}
var xxx_messageInfo_EmojiReaction proto.InternalMessageInfo
func (m *EmojiReaction) GetClock() uint64 {
if m != nil {
return m.Clock
}
return 0
}
func (m *EmojiReaction) GetMessageId() string {
if m != nil {
return m.MessageId
}
return ""
}
func (m *EmojiReaction) GetType() EmojiReaction_Type {
if m != nil {
return m.Type
}
return EmojiReaction_UNKNOWN_EMOJI_REACTION_TYPE
}
type EmojiReactionRetraction struct {
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
EmojiReactionId string `protobuf:"bytes,2,opt,name=emoji_reaction_id,json=emojiReactionId,proto3" json:"emoji_reaction_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EmojiReactionRetraction) Reset() { *m = EmojiReactionRetraction{} }
func (m *EmojiReactionRetraction) String() string { return proto.CompactTextString(m) }
func (*EmojiReactionRetraction) ProtoMessage() {}
func (*EmojiReactionRetraction) Descriptor() ([]byte, []int) {
return fileDescriptor_0a088c907bbc7ed6, []int{1}
}
func (m *EmojiReactionRetraction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EmojiReactionRetraction.Unmarshal(m, b)
}
func (m *EmojiReactionRetraction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EmojiReactionRetraction.Marshal(b, m, deterministic)
}
func (m *EmojiReactionRetraction) XXX_Merge(src proto.Message) {
xxx_messageInfo_EmojiReactionRetraction.Merge(m, src)
}
func (m *EmojiReactionRetraction) XXX_Size() int {
return xxx_messageInfo_EmojiReactionRetraction.Size(m)
}
func (m *EmojiReactionRetraction) XXX_DiscardUnknown() {
xxx_messageInfo_EmojiReactionRetraction.DiscardUnknown(m)
}
var xxx_messageInfo_EmojiReactionRetraction proto.InternalMessageInfo
func (m *EmojiReactionRetraction) GetClock() uint64 {
if m != nil {
return m.Clock
}
return 0
}
func (m *EmojiReactionRetraction) GetEmojiReactionId() string {
if m != nil {
return m.EmojiReactionId
}
return ""
}
func init() {
proto.RegisterEnum("protobuf.EmojiReaction_Type", EmojiReaction_Type_name, EmojiReaction_Type_value)
proto.RegisterType((*EmojiReaction)(nil), "protobuf.EmojiReaction")
proto.RegisterType((*EmojiReactionRetraction)(nil), "protobuf.EmojiReactionRetraction")
}
func init() {
proto.RegisterFile("emoji_reaction.proto", fileDescriptor_0a088c907bbc7ed6)
}
var fileDescriptor_0a088c907bbc7ed6 = []byte{
// 274 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0xcd, 0xcd, 0xcf,
0xca, 0x8c, 0x2f, 0x4a, 0x4d, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9,
0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x4a, 0x2f, 0x18, 0xb9, 0x78, 0x5d, 0x41, 0x4a, 0x82,
0xa0, 0x2a, 0x84, 0x44, 0xb8, 0x58, 0x93, 0x73, 0xf2, 0x93, 0xb3, 0x25, 0x18, 0x15, 0x18, 0x35,
0x58, 0x82, 0x20, 0x1c, 0x21, 0x59, 0x2e, 0xae, 0xdc, 0xd4, 0xe2, 0xe2, 0xc4, 0xf4, 0xd4, 0xf8,
0xcc, 0x14, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x4e, 0xa8, 0x88, 0x67, 0x8a, 0x90, 0x01,
0x17, 0x4b, 0x49, 0x65, 0x41, 0xaa, 0x04, 0xb3, 0x02, 0xa3, 0x06, 0x9f, 0x91, 0x8c, 0x1e, 0xcc,
0x7c, 0x3d, 0x14, 0xb3, 0xf5, 0x42, 0x2a, 0x0b, 0x52, 0x83, 0xc0, 0x2a, 0x95, 0x0a, 0xb8, 0x58,
0x40, 0x3c, 0x21, 0x79, 0x2e, 0xe9, 0x50, 0x3f, 0x6f, 0x3f, 0xff, 0x70, 0xbf, 0x78, 0x57, 0x5f,
0x7f, 0x2f, 0xcf, 0xf8, 0x20, 0x57, 0x47, 0xe7, 0x10, 0x4f, 0x7f, 0xbf, 0xf8, 0x90, 0xc8, 0x00,
0x57, 0x01, 0x06, 0x21, 0x0e, 0x2e, 0x16, 0x1f, 0xff, 0x30, 0x57, 0x01, 0x46, 0x21, 0x5e, 0x2e,
0xce, 0x10, 0x8f, 0x50, 0x5f, 0xa7, 0xe0, 0xf8, 0xd0, 0x00, 0x01, 0x26, 0x21, 0x7e, 0x2e, 0x6e,
0x28, 0xd7, 0xc5, 0x3f, 0xdc, 0x4f, 0x80, 0x59, 0x88, 0x93, 0x8b, 0xd5, 0xc7, 0x31, 0xd4, 0xdd,
0x43, 0x80, 0x45, 0x88, 0x9d, 0x8b, 0x39, 0xd8, 0xd1, 0x45, 0x80, 0x15, 0x24, 0xe6, 0xe8, 0xe7,
0x1e, 0x14, 0x29, 0xc0, 0xa6, 0x14, 0xcd, 0x25, 0x8e, 0xe2, 0x9a, 0xa0, 0xd4, 0x92, 0x22, 0xbc,
0x7e, 0xd6, 0xe2, 0x12, 0x44, 0x0d, 0x3d, 0x84, 0xd7, 0xf9, 0x53, 0x91, 0x4d, 0xf2, 0x4c, 0x49,
0x62, 0x03, 0xfb, 0xd8, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x30, 0x51, 0x1c, 0x38, 0x70, 0x01,
0x00, 0x00,
}

View File

@ -0,0 +1,24 @@
syntax = "proto3";
package protobuf;
message EmojiReaction {
uint64 clock = 1;
string message_id = 2;
Type type = 3;
enum Type {
UNKNOWN_EMOJI_REACTION_TYPE = 0;
LOVE = 1;
THUMBS_UP = 2;
THUMBS_DOWN = 3;
LAUGH = 4;
SAD = 5;
ANGRY = 6;
}
}
message EmojiReactionRetraction {
uint64 clock = 1;
string emoji_reaction_id = 2;
}