2021-05-14 21:22:50 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: pin_message.proto
|
|
|
|
|
|
|
|
package protobuf
|
|
|
|
|
|
|
|
import (
|
2023-08-22 17:48:42 +00:00
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
math "math"
|
2021-05-14 21:22:50 +00:00
|
|
|
)
|
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
2021-05-14 21:22:50 +00:00
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
// 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
|
2023-08-18 11:39:59 +00:00
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
type PinMessage struct {
|
2021-05-14 21:22:50 +00:00
|
|
|
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"`
|
|
|
|
ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
|
|
|
Pinned bool `protobuf:"varint,4,opt,name=pinned,proto3" json:"pinned,omitempty"`
|
|
|
|
// The type of message (public/one-to-one/private-group-chat)
|
2023-08-22 17:48:42 +00:00
|
|
|
MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-05-14 21:22:50 +00:00
|
|
|
}
|
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
func (m *PinMessage) Reset() { *m = PinMessage{} }
|
|
|
|
func (m *PinMessage) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PinMessage) ProtoMessage() {}
|
|
|
|
func (*PinMessage) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_b3c2ad1be7128a0a, []int{0}
|
2021-05-14 21:22:50 +00:00
|
|
|
}
|
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
func (m *PinMessage) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PinMessage.Unmarshal(m, b)
|
2021-05-14 21:22:50 +00:00
|
|
|
}
|
2023-08-22 17:48:42 +00:00
|
|
|
func (m *PinMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PinMessage.Marshal(b, m, deterministic)
|
2021-05-14 21:22:50 +00:00
|
|
|
}
|
2023-08-22 17:48:42 +00:00
|
|
|
func (m *PinMessage) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PinMessage.Merge(m, src)
|
2023-08-18 11:39:59 +00:00
|
|
|
}
|
2023-08-22 17:48:42 +00:00
|
|
|
func (m *PinMessage) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PinMessage.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PinMessage) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PinMessage.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PinMessage proto.InternalMessageInfo
|
2021-05-14 21:22:50 +00:00
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
func (m *PinMessage) GetClock() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Clock
|
2021-05-14 21:22:50 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
func (m *PinMessage) GetMessageId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.MessageId
|
2021-05-14 21:22:50 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
func (m *PinMessage) GetChatId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ChatId
|
2021-05-14 21:22:50 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
func (m *PinMessage) GetPinned() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Pinned
|
2021-05-14 21:22:50 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
func (m *PinMessage) GetMessageType() MessageType {
|
|
|
|
if m != nil {
|
|
|
|
return m.MessageType
|
2021-05-14 21:22:50 +00:00
|
|
|
}
|
|
|
|
return MessageType_UNKNOWN_MESSAGE_TYPE
|
|
|
|
}
|
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*PinMessage)(nil), "protobuf.PinMessage")
|
2021-05-14 21:22:50 +00:00
|
|
|
}
|
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("pin_message.proto", fileDescriptor_b3c2ad1be7128a0a)
|
2022-07-22 08:10:47 +00:00
|
|
|
}
|
2021-05-14 21:22:50 +00:00
|
|
|
|
2023-08-22 17:48:42 +00:00
|
|
|
var fileDescriptor_b3c2ad1be7128a0a = []byte{
|
|
|
|
// 192 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2c, 0xc8, 0xcc, 0x8b,
|
|
|
|
0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0x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