119 lines
4.0 KiB
Go
119 lines
4.0 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: pin_message.proto
|
||
|
|
||
|
package protobuf
|
||
|
|
||
|
import (
|
||
|
fmt "fmt"
|
||
|
math "math"
|
||
|
|
||
|
proto "github.com/golang/protobuf/proto"
|
||
|
)
|
||
|
|
||
|
// 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 PinMessage 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"`
|
||
|
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)
|
||
|
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:"-"`
|
||
|
}
|
||
|
|
||
|
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}
|
||
|
}
|
||
|
|
||
|
func (m *PinMessage) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_PinMessage.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *PinMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_PinMessage.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *PinMessage) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_PinMessage.Merge(m, src)
|
||
|
}
|
||
|
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
|
||
|
|
||
|
func (m *PinMessage) GetClock() uint64 {
|
||
|
if m != nil {
|
||
|
return m.Clock
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *PinMessage) GetMessageId() string {
|
||
|
if m != nil {
|
||
|
return m.MessageId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *PinMessage) GetChatId() string {
|
||
|
if m != nil {
|
||
|
return m.ChatId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *PinMessage) GetPinned() bool {
|
||
|
if m != nil {
|
||
|
return m.Pinned
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (m *PinMessage) GetMessageType() MessageType {
|
||
|
if m != nil {
|
||
|
return m.MessageType
|
||
|
}
|
||
|
return MessageType_UNKNOWN_MESSAGE_TYPE
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*PinMessage)(nil), "protobuf.PinMessage")
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterFile("pin_message.proto", fileDescriptor_b3c2ad1be7128a0a)
|
||
|
}
|
||
|
|
||
|
var fileDescriptor_b3c2ad1be7128a0a = []byte{
|
||
|
// 183 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, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00,
|
||
|
0x53, 0x49, 0xa5, 0x69, 0x52, 0xdc, 0xa9, 0x79, 0xa5, 0xb9, 0xc5, 0x10, 0x61, 0xa5, 0x35, 0x8c,
|
||
|
0x5c, 0x5c, 0x01, 0x99, 0x79, 0xbe, 0x10, 0xb5, 0x42, 0x22, 0x5c, 0xac, 0xc9, 0x39, 0xf9, 0xc9,
|
||
|
0xd9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x2c, 0x41, 0x10, 0x8e, 0x90, 0x2c, 0x17, 0x17, 0xd4, 0xb0,
|
||
|
0xf8, 0xcc, 0x14, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x4e, 0xa8, 0x88, 0x67, 0x8a, 0x90,
|
||
|
0x38, 0x17, 0x7b, 0x72, 0x46, 0x62, 0x09, 0x48, 0x8e, 0x19, 0x2c, 0xc7, 0x06, 0xe2, 0x7a, 0xa6,
|
||
|
0x08, 0x89, 0x71, 0xb1, 0x15, 0x64, 0xe6, 0xe5, 0xa5, 0xa6, 0x48, 0xb0, 0x28, 0x30, 0x6a, 0x70,
|
||
|
0x04, 0x41, 0x79, 0x42, 0x16, 0x5c, 0x3c, 0x30, 0xf3, 0x4a, 0x2a, 0x0b, 0x52, 0x25, 0x58, 0x15,
|
||
|
0x18, 0x35, 0xf8, 0x8c, 0x44, 0xf5, 0x60, 0x4e, 0xd4, 0x83, 0x3a, 0x27, 0xa4, 0xb2, 0x20, 0x35,
|
||
|
0x88, 0x3b, 0x17, 0xc1, 0x49, 0x62, 0x03, 0x2b, 0x31, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x3d,
|
||
|
0x9f, 0x5d, 0x9f, 0xe1, 0x00, 0x00, 0x00,
|
||
|
}
|