status-go/protocol/protobuf/emoji_reaction.pb.go

192 lines
7.2 KiB
Go
Raw Normal View History

// 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 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
Retracted bool `protobuf:"varint,6,opt,name=retracted,proto3" json:"retracted,omitempty"`
// Grant for organisation chat messages
Grant []byte `protobuf:"bytes,7,opt,name=grant,proto3" json:"grant,omitempty"` // Deprecated: Do not use.
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) GetChatId() string {
if m != nil {
return m.ChatId
}
return ""
}
func (m *EmojiReaction) GetMessageId() string {
if m != nil {
return m.MessageId
}
return ""
}
func (m *EmojiReaction) GetMessageType() MessageType {
if m != nil {
return m.MessageType
}
return MessageType_UNKNOWN_MESSAGE_TYPE
}
func (m *EmojiReaction) GetType() EmojiReaction_Type {
if m != nil {
return m.Type
}
return EmojiReaction_UNKNOWN_EMOJI_REACTION_TYPE
}
func (m *EmojiReaction) GetRetracted() bool {
if m != nil {
return m.Retracted
}
return false
}
// Deprecated: Do not use.
func (m *EmojiReaction) GetGrant() []byte {
if m != nil {
return m.Grant
}
return nil
}
func init() {
proto.RegisterEnum("protobuf.EmojiReaction_Type", EmojiReaction_Type_name, EmojiReaction_Type_value)
proto.RegisterType((*EmojiReaction)(nil), "protobuf.EmojiReaction")
}
func init() {
proto.RegisterFile("emoji_reaction.proto", fileDescriptor_0a088c907bbc7ed6)
}
var fileDescriptor_0a088c907bbc7ed6 = []byte{
// 332 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x51, 0x4f, 0x82, 0x50,
0x1c, 0xc5, 0xbb, 0x08, 0x28, 0x7f, 0xb4, 0xd8, 0x9d, 0x2d, 0x56, 0xb6, 0x98, 0x4f, 0x3c, 0x51,
0xab, 0x97, 0xb6, 0x9e, 0x30, 0x99, 0x52, 0x0a, 0xee, 0x0a, 0x39, 0x7b, 0x61, 0x08, 0x37, 0xb3,
0x42, 0x18, 0xe2, 0x83, 0x9f, 0xbb, 0x2f, 0xd0, 0xb8, 0xe8, 0x5c, 0x4f, 0xf7, 0x9e, 0xdf, 0x39,
0x67, 0xf7, 0x5c, 0x68, 0xd3, 0x24, 0xfd, 0x5a, 0x05, 0x39, 0x0d, 0xa3, 0x62, 0x95, 0xae, 0x8d,
0x2c, 0x4f, 0x8b, 0x14, 0x37, 0xd8, 0xb1, 0xd8, 0x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