2020-07-13 23:59:20 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2023-11-09 18:59:01 +00:00
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.31.0
|
|
|
|
// protoc v4.24.4
|
2020-07-13 23:59:20 +00:00
|
|
|
// source: emoji_reaction.proto
|
|
|
|
|
|
|
|
package protobuf
|
|
|
|
|
|
|
|
import (
|
2023-11-09 18:59:01 +00:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2020-07-13 23:59:20 +00:00
|
|
|
)
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2020-07-13 23:59:20 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Enum value maps for EmojiReaction_Type.
|
|
|
|
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",
|
|
|
|
}
|
|
|
|
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,
|
|
|
|
}
|
|
|
|
)
|
2023-10-12 15:45:23 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x EmojiReaction_Type) Enum() *EmojiReaction_Type {
|
|
|
|
p := new(EmojiReaction_Type)
|
|
|
|
*p = x
|
|
|
|
return p
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
|
|
|
|
2023-10-31 14:20:40 +00:00
|
|
|
func (x EmojiReaction_Type) String() string {
|
2023-11-09 18:59:01 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (EmojiReaction_Type) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_emoji_reaction_proto_enumTypes[0].Descriptor()
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (EmojiReaction_Type) Type() protoreflect.EnumType {
|
|
|
|
return &file_emoji_reaction_proto_enumTypes[0]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x EmojiReaction_Type) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use EmojiReaction_Type.Descriptor instead.
|
2020-07-13 23:59:20 +00:00
|
|
|
func (EmojiReaction_Type) EnumDescriptor() ([]byte, []int) {
|
2023-11-09 18:59:01 +00:00
|
|
|
return file_emoji_reaction_proto_rawDescGZIP(), []int{0, 0}
|
2020-07-13 23:59:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type EmojiReaction struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-07-27 12:27:48 +00:00
|
|
|
// clock Lamport timestamp of the chat message
|
|
|
|
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
|
|
|
// chat_id the ID of the chat the message belongs to, for query efficiency the chat_id is stored in the db even though the
|
|
|
|
// target message also stores the chat_id
|
|
|
|
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
|
|
|
// message_id the ID of the target message that the user wishes to react to
|
|
|
|
MessageId string `protobuf:"bytes,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
|
|
|
// message_type is (somewhat confusingly) the ID of the type of chat the message belongs to
|
|
|
|
MessageType MessageType `protobuf:"varint,4,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"`
|
|
|
|
// type the ID of the emoji the user wishes to react with
|
|
|
|
Type EmojiReaction_Type `protobuf:"varint,5,opt,name=type,proto3,enum=protobuf.EmojiReaction_Type" json:"type,omitempty"`
|
|
|
|
// whether this is a rectraction of a previously sent emoji
|
2020-11-18 09:16:51 +00:00
|
|
|
Retracted bool `protobuf:"varint,6,opt,name=retracted,proto3" json:"retracted,omitempty"`
|
|
|
|
// Grant for organisation chat messages
|
2023-11-09 18:59:01 +00:00
|
|
|
Grant []byte `protobuf:"bytes,7,opt,name=grant,proto3" json:"grant,omitempty"`
|
2020-07-13 23:59:20 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *EmojiReaction) Reset() {
|
|
|
|
*x = EmojiReaction{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_emoji_reaction_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-07-13 23:59:20 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *EmojiReaction) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*EmojiReaction) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EmojiReaction) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_emoji_reaction_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-10-25 13:03:26 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use EmojiReaction.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EmojiReaction) Descriptor() ([]byte, []int) {
|
|
|
|
return file_emoji_reaction_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2023-10-31 14:20:40 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *EmojiReaction) GetClock() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Clock
|
2020-07-13 23:59:20 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *EmojiReaction) GetChatId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ChatId
|
2020-07-24 13:50:37 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *EmojiReaction) GetMessageId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.MessageId
|
2020-07-13 23:59:20 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *EmojiReaction) GetMessageType() MessageType {
|
|
|
|
if x != nil {
|
|
|
|
return x.MessageType
|
2020-07-25 11:13:23 +00:00
|
|
|
}
|
|
|
|
return MessageType_UNKNOWN_MESSAGE_TYPE
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *EmojiReaction) GetType() EmojiReaction_Type {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
2020-07-13 23:59:20 +00:00
|
|
|
}
|
|
|
|
return EmojiReaction_UNKNOWN_EMOJI_REACTION_TYPE
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *EmojiReaction) GetRetracted() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Retracted
|
2020-07-13 23:59:20 +00:00
|
|
|
}
|
2020-07-27 12:27:48 +00:00
|
|
|
return false
|
2020-07-13 23:59:20 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *EmojiReaction) GetGrant() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Grant
|
2020-11-18 09:16:51 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
var File_emoji_reaction_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_emoji_reaction_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x14, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
|
|
|
0x1a, 0x0b, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xef, 0x02,
|
|
|
|
0x0a, 0x0d, 0x45, 0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,
|
|
|
|
0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05,
|
|
|
|
0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x1d,
|
|
|
|
0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x38, 0x0a,
|
|
|
|
0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20,
|
|
|
|
0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d,
|
|
|
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73,
|
|
|
|
0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
|
|
|
|
0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
|
|
|
0x2e, 0x45, 0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54,
|
|
|
|
0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x74,
|
|
|
|
0x72, 0x61, 0x63, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65,
|
|
|
|
0x74, 0x72, 0x61, 0x63, 0x74, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74,
|
|
|
|
0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x70, 0x0a,
|
|
|
|
0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
|
|
|
|
0x5f, 0x45, 0x4d, 0x4f, 0x4a, 0x49, 0x5f, 0x52, 0x45, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
|
|
|
|
0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x4f, 0x56, 0x45, 0x10, 0x01,
|
|
|
|
0x12, 0x0d, 0x0a, 0x09, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x55, 0x50, 0x10, 0x02, 0x12,
|
|
|
|
0x0f, 0x0a, 0x0b, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x03,
|
|
|
|
0x12, 0x09, 0x0a, 0x05, 0x4c, 0x41, 0x55, 0x47, 0x48, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x53,
|
|
|
|
0x41, 0x44, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4e, 0x47, 0x52, 0x59, 0x10, 0x06, 0x42,
|
|
|
|
0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_emoji_reaction_proto_rawDescOnce sync.Once
|
|
|
|
file_emoji_reaction_proto_rawDescData = file_emoji_reaction_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_emoji_reaction_proto_rawDescGZIP() []byte {
|
|
|
|
file_emoji_reaction_proto_rawDescOnce.Do(func() {
|
|
|
|
file_emoji_reaction_proto_rawDescData = protoimpl.X.CompressGZIP(file_emoji_reaction_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_emoji_reaction_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
|
|
|
var file_emoji_reaction_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
|
|
var file_emoji_reaction_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
|
|
var file_emoji_reaction_proto_goTypes = []interface{}{
|
|
|
|
(EmojiReaction_Type)(0), // 0: protobuf.EmojiReaction.Type
|
|
|
|
(*EmojiReaction)(nil), // 1: protobuf.EmojiReaction
|
|
|
|
(MessageType)(0), // 2: protobuf.MessageType
|
|
|
|
}
|
|
|
|
var file_emoji_reaction_proto_depIdxs = []int32{
|
|
|
|
2, // 0: protobuf.EmojiReaction.message_type:type_name -> protobuf.MessageType
|
|
|
|
0, // 1: protobuf.EmojiReaction.type:type_name -> protobuf.EmojiReaction.Type
|
|
|
|
2, // [2:2] is the sub-list for method output_type
|
|
|
|
2, // [2:2] is the sub-list for method input_type
|
|
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
|
|
0, // [0:2] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_emoji_reaction_proto_init() }
|
|
|
|
func file_emoji_reaction_proto_init() {
|
|
|
|
if File_emoji_reaction_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
file_enums_proto_init()
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_emoji_reaction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*EmojiReaction); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_emoji_reaction_proto_rawDesc,
|
|
|
|
NumEnums: 1,
|
|
|
|
NumMessages: 1,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
|
|
|
GoTypes: file_emoji_reaction_proto_goTypes,
|
|
|
|
DependencyIndexes: file_emoji_reaction_proto_depIdxs,
|
|
|
|
EnumInfos: file_emoji_reaction_proto_enumTypes,
|
|
|
|
MessageInfos: file_emoji_reaction_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_emoji_reaction_proto = out.File
|
|
|
|
file_emoji_reaction_proto_rawDesc = nil
|
|
|
|
file_emoji_reaction_proto_goTypes = nil
|
|
|
|
file_emoji_reaction_proto_depIdxs = nil
|
2020-07-13 23:59:20 +00:00
|
|
|
}
|