108 lines
2.8 KiB
Go
108 lines
2.8 KiB
Go
|
// Code generated by protoc-gen-go.
|
||
|
// source: ChatChannel.proto
|
||
|
// DO NOT EDIT!
|
||
|
|
||
|
/*
|
||
|
Package Protocol_Data_Chat is a generated protocol buffer package.
|
||
|
|
||
|
It is generated from these files:
|
||
|
ChatChannel.proto
|
||
|
|
||
|
It has these top-level messages:
|
||
|
Packet
|
||
|
ChatMessage
|
||
|
ChatAcknowledge
|
||
|
*/
|
||
|
package Protocol_Data_Chat
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
|
||
|
type Packet struct {
|
||
|
ChatMessage *ChatMessage `protobuf:"bytes,1,opt,name=chat_message" json:"chat_message,omitempty"`
|
||
|
ChatAcknowledge *ChatAcknowledge `protobuf:"bytes,2,opt,name=chat_acknowledge" json:"chat_acknowledge,omitempty"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Packet) Reset() { *m = Packet{} }
|
||
|
func (m *Packet) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Packet) ProtoMessage() {}
|
||
|
|
||
|
func (m *Packet) GetChatMessage() *ChatMessage {
|
||
|
if m != nil {
|
||
|
return m.ChatMessage
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Packet) GetChatAcknowledge() *ChatAcknowledge {
|
||
|
if m != nil {
|
||
|
return m.ChatAcknowledge
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type ChatMessage struct {
|
||
|
MessageText *string `protobuf:"bytes,1,req,name=message_text" json:"message_text,omitempty"`
|
||
|
MessageId *uint32 `protobuf:"varint,2,opt,name=message_id" json:"message_id,omitempty"`
|
||
|
TimeDelta *int64 `protobuf:"varint,3,opt,name=time_delta" json:"time_delta,omitempty"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *ChatMessage) Reset() { *m = ChatMessage{} }
|
||
|
func (m *ChatMessage) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ChatMessage) ProtoMessage() {}
|
||
|
|
||
|
func (m *ChatMessage) GetMessageText() string {
|
||
|
if m != nil && m.MessageText != nil {
|
||
|
return *m.MessageText
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ChatMessage) GetMessageId() uint32 {
|
||
|
if m != nil && m.MessageId != nil {
|
||
|
return *m.MessageId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ChatMessage) GetTimeDelta() int64 {
|
||
|
if m != nil && m.TimeDelta != nil {
|
||
|
return *m.TimeDelta
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
type ChatAcknowledge struct {
|
||
|
MessageId *uint32 `protobuf:"varint,1,opt,name=message_id" json:"message_id,omitempty"`
|
||
|
Accepted *bool `protobuf:"varint,2,opt,name=accepted,def=1" json:"accepted,omitempty"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *ChatAcknowledge) Reset() { *m = ChatAcknowledge{} }
|
||
|
func (m *ChatAcknowledge) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ChatAcknowledge) ProtoMessage() {}
|
||
|
|
||
|
const Default_ChatAcknowledge_Accepted bool = true
|
||
|
|
||
|
func (m *ChatAcknowledge) GetMessageId() uint32 {
|
||
|
if m != nil && m.MessageId != nil {
|
||
|
return *m.MessageId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ChatAcknowledge) GetAccepted() bool {
|
||
|
if m != nil && m.Accepted != nil {
|
||
|
return *m.Accepted
|
||
|
}
|
||
|
return Default_ChatAcknowledge_Accepted
|
||
|
}
|