mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
200 lines
3.9 KiB
Go
200 lines
3.9 KiB
Go
// Code generated by yaprotoc. DO NOT EDIT.
|
|
// source: channel/MsgResponsesSvr.proto
|
|
|
|
package channel
|
|
|
|
import (
|
|
"github.com/pkg/errors"
|
|
"github.com/segmentio/encoding/proto"
|
|
)
|
|
|
|
type BatchGetMsgRspCountReq struct {
|
|
GuildMsgList []*GuildMsg `protobuf:"bytes,1,rep"`
|
|
}
|
|
|
|
func (x *BatchGetMsgRspCountReq) Marshal() ([]byte, error) {
|
|
if x == nil {
|
|
return nil, errors.New("nil message")
|
|
}
|
|
return proto.Marshal(x)
|
|
}
|
|
|
|
type BatchGetMsgRspCountRsp struct {
|
|
GuildMsgInfoList []*GuildMsgInfo `protobuf:"bytes,1,rep"`
|
|
}
|
|
|
|
func (x *BatchGetMsgRspCountRsp) Marshal() ([]byte, error) {
|
|
if x == nil {
|
|
return nil, errors.New("nil message")
|
|
}
|
|
return proto.Marshal(x)
|
|
}
|
|
|
|
type ChannelMsgInfo struct {
|
|
ChannelId *uint64 `protobuf:"varint,1,opt"`
|
|
RespData []*MsgRespData `protobuf:"bytes,2,rep"`
|
|
}
|
|
|
|
func (x *ChannelMsgInfo) GetChannelId() uint64 {
|
|
if x != nil && x.ChannelId != nil {
|
|
return *x.ChannelId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ChannelMsgInfo) Marshal() ([]byte, error) {
|
|
if x == nil {
|
|
return nil, errors.New("nil message")
|
|
}
|
|
return proto.Marshal(x)
|
|
}
|
|
|
|
type EmojiReaction struct {
|
|
EmojiId *string `protobuf:"bytes,1,opt"`
|
|
EmojiType *uint64 `protobuf:"varint,2,opt"`
|
|
Cnt *uint64 `protobuf:"varint,3,opt"`
|
|
IsClicked *bool `protobuf:"varint,4,opt"`
|
|
}
|
|
|
|
func (x *EmojiReaction) GetEmojiId() string {
|
|
if x != nil && x.EmojiId != nil {
|
|
return *x.EmojiId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EmojiReaction) GetEmojiType() uint64 {
|
|
if x != nil && x.EmojiType != nil {
|
|
return *x.EmojiType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EmojiReaction) GetCnt() uint64 {
|
|
if x != nil && x.Cnt != nil {
|
|
return *x.Cnt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EmojiReaction) GetIsClicked() bool {
|
|
if x != nil && x.IsClicked != nil {
|
|
return *x.IsClicked
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *EmojiReaction) Marshal() ([]byte, error) {
|
|
if x == nil {
|
|
return nil, errors.New("nil message")
|
|
}
|
|
return proto.Marshal(x)
|
|
}
|
|
|
|
type GuildMsg struct {
|
|
GuildId *uint64 `protobuf:"varint,1,opt"`
|
|
ChannelMsgList []*SvrChannelMsg `protobuf:"bytes,2,rep"`
|
|
}
|
|
|
|
func (x *GuildMsg) GetGuildId() uint64 {
|
|
if x != nil && x.GuildId != nil {
|
|
return *x.GuildId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GuildMsg) Marshal() ([]byte, error) {
|
|
if x == nil {
|
|
return nil, errors.New("nil message")
|
|
}
|
|
return proto.Marshal(x)
|
|
}
|
|
|
|
type GuildMsgInfo struct {
|
|
GuildId *uint64 `protobuf:"varint,1,opt"`
|
|
ChannelMsgInfoList []*ChannelMsgInfo `protobuf:"bytes,2,rep"`
|
|
}
|
|
|
|
func (x *GuildMsgInfo) GetGuildId() uint64 {
|
|
if x != nil && x.GuildId != nil {
|
|
return *x.GuildId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GuildMsgInfo) Marshal() ([]byte, error) {
|
|
if x == nil {
|
|
return nil, errors.New("nil message")
|
|
}
|
|
return proto.Marshal(x)
|
|
}
|
|
|
|
type MsgCnt struct {
|
|
Id *MsgId `protobuf:"bytes,1,opt"`
|
|
EmojiReaction []*EmojiReaction `protobuf:"bytes,2,rep"`
|
|
}
|
|
|
|
func (x *MsgCnt) Marshal() ([]byte, error) {
|
|
if x == nil {
|
|
return nil, errors.New("nil message")
|
|
}
|
|
return proto.Marshal(x)
|
|
}
|
|
|
|
type MsgId struct {
|
|
Version *uint64 `protobuf:"varint,1,opt"`
|
|
Seq *uint64 `protobuf:"varint,2,opt"`
|
|
}
|
|
|
|
func (x *MsgId) GetVersion() uint64 {
|
|
if x != nil && x.Version != nil {
|
|
return *x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MsgId) GetSeq() uint64 {
|
|
if x != nil && x.Seq != nil {
|
|
return *x.Seq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MsgId) Marshal() ([]byte, error) {
|
|
if x == nil {
|
|
return nil, errors.New("nil message")
|
|
}
|
|
return proto.Marshal(x)
|
|
}
|
|
|
|
type MsgRespData struct {
|
|
Id *MsgId `protobuf:"bytes,1,opt"`
|
|
Cnt []byte `protobuf:"bytes,2,opt"`
|
|
}
|
|
|
|
func (x *MsgRespData) Marshal() ([]byte, error) {
|
|
if x == nil {
|
|
return nil, errors.New("nil message")
|
|
}
|
|
return proto.Marshal(x)
|
|
}
|
|
|
|
type SvrChannelMsg struct {
|
|
ChannelId *uint64 `protobuf:"varint,1,opt"`
|
|
Id []*MsgId `protobuf:"bytes,2,rep"`
|
|
}
|
|
|
|
func (x *SvrChannelMsg) GetChannelId() uint64 {
|
|
if x != nil && x.ChannelId != nil {
|
|
return *x.ChannelId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SvrChannelMsg) Marshal() ([]byte, error) {
|
|
if x == nil {
|
|
return nil, errors.New("nil message")
|
|
}
|
|
return proto.Marshal(x)
|
|
}
|