Documentation ¶
Index ¶
- Variables
- type ChatMessage
- func (*ChatMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ChatMessage) GetMessage() string
- func (x *ChatMessage) GetMessageContent() string
- func (x *ChatMessage) GetParseMessageContent() bool
- func (x *ChatMessage) GetSenderId() string
- func (x *ChatMessage) GetSenderUsername() string
- func (x *ChatMessage) GetTextComponent() string
- func (*ChatMessage) ProtoMessage()
- func (x *ChatMessage) ProtoReflect() protoreflect.Message
- func (x *ChatMessage) Reset()
- func (x *ChatMessage) String() string
- type PrivateMessage
- func (*PrivateMessage) Descriptor() ([]byte, []int)deprecated
- func (x *PrivateMessage) GetMessage() string
- func (x *PrivateMessage) GetRecipientId() string
- func (x *PrivateMessage) GetRecipientUsername() string
- func (x *PrivateMessage) GetSenderId() string
- func (x *PrivateMessage) GetSenderUsername() string
- func (x *PrivateMessage) GetSentAt() *timestamppb.Timestamp
- func (*PrivateMessage) ProtoMessage()
- func (x *PrivateMessage) ProtoReflect() protoreflect.Message
- func (x *PrivateMessage) Reset()
- func (x *PrivateMessage) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_message_handler_models_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ChatMessage ¶
type ChatMessage struct { SenderId string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` SenderUsername string `protobuf:"bytes,2,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"` // message the main party of a message containing a <content> placeholder to be replaced by the message_content Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // message_content the actual content sent by the player MessageContent string `protobuf:"bytes,4,opt,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"` ParseMessageContent bool `protobuf:"varint,5,opt,name=parse_message_content,json=parseMessageContent,proto3" json:"parse_message_content,omitempty"` // New and replacing the old message and message_content, this is a JSON serialised Minecraft TextComponent TextComponent string `protobuf:"bytes,6,opt,name=text_component,json=textComponent,proto3" json:"text_component,omitempty"` // contains filtered or unexported fields }
func (*ChatMessage) Descriptor
deprecated
func (*ChatMessage) Descriptor() ([]byte, []int)
Deprecated: Use ChatMessage.ProtoReflect.Descriptor instead.
func (*ChatMessage) GetMessage ¶
func (x *ChatMessage) GetMessage() string
func (*ChatMessage) GetMessageContent ¶
func (x *ChatMessage) GetMessageContent() string
func (*ChatMessage) GetParseMessageContent ¶
func (x *ChatMessage) GetParseMessageContent() bool
func (*ChatMessage) GetSenderId ¶
func (x *ChatMessage) GetSenderId() string
func (*ChatMessage) GetSenderUsername ¶
func (x *ChatMessage) GetSenderUsername() string
func (*ChatMessage) GetTextComponent ¶
func (x *ChatMessage) GetTextComponent() string
func (*ChatMessage) ProtoMessage ¶
func (*ChatMessage) ProtoMessage()
func (*ChatMessage) ProtoReflect ¶
func (x *ChatMessage) ProtoReflect() protoreflect.Message
func (*ChatMessage) Reset ¶
func (x *ChatMessage) Reset()
func (*ChatMessage) String ¶
func (x *ChatMessage) String() string
type PrivateMessage ¶
type PrivateMessage struct { SenderId string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` SenderUsername string `protobuf:"bytes,2,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"` RecipientId string `protobuf:"bytes,3,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"` RecipientUsername string `protobuf:"bytes,6,opt,name=recipient_username,json=recipientUsername,proto3" json:"recipient_username,omitempty"` // The message may have been modified from the original for censoring purposes Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` SentAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"` // contains filtered or unexported fields }
func (*PrivateMessage) Descriptor
deprecated
func (*PrivateMessage) Descriptor() ([]byte, []int)
Deprecated: Use PrivateMessage.ProtoReflect.Descriptor instead.
func (*PrivateMessage) GetMessage ¶
func (x *PrivateMessage) GetMessage() string
func (*PrivateMessage) GetRecipientId ¶
func (x *PrivateMessage) GetRecipientId() string
func (*PrivateMessage) GetRecipientUsername ¶
func (x *PrivateMessage) GetRecipientUsername() string
func (*PrivateMessage) GetSenderId ¶
func (x *PrivateMessage) GetSenderId() string
func (*PrivateMessage) GetSenderUsername ¶
func (x *PrivateMessage) GetSenderUsername() string
func (*PrivateMessage) GetSentAt ¶
func (x *PrivateMessage) GetSentAt() *timestamppb.Timestamp
func (*PrivateMessage) ProtoMessage ¶
func (*PrivateMessage) ProtoMessage()
func (*PrivateMessage) ProtoReflect ¶
func (x *PrivateMessage) ProtoReflect() protoreflect.Message
func (*PrivateMessage) Reset ¶
func (x *PrivateMessage) Reset()
func (*PrivateMessage) String ¶
func (x *PrivateMessage) String() string
Click to show internal directories.
Click to hide internal directories.