You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
164 lines
5.2 KiB
164 lines
5.2 KiB
2 months ago
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||
|
// source: protocol/message.proto
|
||
|
|
||
|
package protocol
|
||
|
|
||
|
import (
|
||
|
fmt "fmt"
|
||
|
proto "github.com/gogo/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||
|
|
||
|
type Message struct {
|
||
|
Avatar string `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
||
|
FromUsername string `protobuf:"bytes,2,opt,name=fromUsername,proto3" json:"fromUsername,omitempty"`
|
||
|
From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
|
||
|
To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
|
||
|
Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
|
||
|
ContentType int32 `protobuf:"varint,6,opt,name=contentType,proto3" json:"contentType,omitempty"`
|
||
|
Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
|
||
|
MessageType int32 `protobuf:"varint,8,opt,name=messageType,proto3" json:"messageType,omitempty"`
|
||
|
Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"`
|
||
|
FileSuffix string `protobuf:"bytes,10,opt,name=fileSuffix,proto3" json:"fileSuffix,omitempty"`
|
||
|
File []byte `protobuf:"bytes,11,opt,name=file,proto3" json:"file,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Message) Reset() { *m = Message{} }
|
||
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Message) ProtoMessage() {}
|
||
|
func (*Message) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_89254f84d2f8e90f, []int{0}
|
||
|
}
|
||
|
func (m *Message) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Message.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *Message) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Message.Merge(m, src)
|
||
|
}
|
||
|
func (m *Message) XXX_Size() int {
|
||
|
return xxx_messageInfo_Message.Size(m)
|
||
|
}
|
||
|
func (m *Message) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Message.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Message proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Message) GetAvatar() string {
|
||
|
if m != nil {
|
||
|
return m.Avatar
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Message) GetFromUsername() string {
|
||
|
if m != nil {
|
||
|
return m.FromUsername
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Message) GetFrom() string {
|
||
|
if m != nil {
|
||
|
return m.From
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Message) GetTo() string {
|
||
|
if m != nil {
|
||
|
return m.To
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Message) GetContent() string {
|
||
|
if m != nil {
|
||
|
return m.Content
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Message) GetContentType() int32 {
|
||
|
if m != nil {
|
||
|
return m.ContentType
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Message) GetType() string {
|
||
|
if m != nil {
|
||
|
return m.Type
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Message) GetMessageType() int32 {
|
||
|
if m != nil {
|
||
|
return m.MessageType
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Message) GetUrl() string {
|
||
|
if m != nil {
|
||
|
return m.Url
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Message) GetFileSuffix() string {
|
||
|
if m != nil {
|
||
|
return m.FileSuffix
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Message) GetFile() []byte {
|
||
|
if m != nil {
|
||
|
return m.File
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*Message)(nil), "protocol.Message")
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("protocol/message.proto", fileDescriptor_89254f84d2f8e90f) }
|
||
|
|
||
|
var fileDescriptor_89254f84d2f8e90f = []byte{
|
||
|
// 219 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xc1, 0x4a, 0xc4, 0x30,
|
||
|
0x10, 0x86, 0x49, 0x76, 0xb7, 0xdd, 0x9d, 0x5d, 0x44, 0xe6, 0xb0, 0xcc, 0x49, 0xc2, 0x9e, 0x7a,
|
||
|
0xd2, 0x83, 0xcf, 0xe1, 0xa5, 0xea, 0x03, 0xc4, 0x32, 0x91, 0x42, 0xda, 0x94, 0x34, 0x15, 0x7d,
|
||
|
0x1c, 0xdf, 0x54, 0x32, 0x6d, 0xa1, 0xde, 0xfe, 0xff, 0xfb, 0xf8, 0x03, 0x13, 0xb8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