// Code generated by yaprotoc. DO NOT EDIT. // source: channel/common.proto package channel import ( msg "github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg" "github.com/pkg/errors" "github.com/segmentio/encoding/proto" ) type ChannelContentHead struct { Type *uint64 `protobuf:"varint,1,opt"` SubType *uint64 `protobuf:"varint,2,opt"` Random *uint64 `protobuf:"varint,3,opt"` Seq *uint64 `protobuf:"varint,4,opt"` CntSeq *uint64 `protobuf:"varint,5,opt"` Time *uint64 `protobuf:"varint,6,opt"` Meta []byte `protobuf:"bytes,7,opt"` } func (x *ChannelContentHead) GetType() uint64 { if x != nil && x.Type != nil { return *x.Type } return 0 } func (x *ChannelContentHead) GetSubType() uint64 { if x != nil && x.SubType != nil { return *x.SubType } return 0 } func (x *ChannelContentHead) GetRandom() uint64 { if x != nil && x.Random != nil { return *x.Random } return 0 } func (x *ChannelContentHead) GetSeq() uint64 { if x != nil && x.Seq != nil { return *x.Seq } return 0 } func (x *ChannelContentHead) GetCntSeq() uint64 { if x != nil && x.CntSeq != nil { return *x.CntSeq } return 0 } func (x *ChannelContentHead) GetTime() uint64 { if x != nil && x.Time != nil { return *x.Time } return 0 } func (x *ChannelContentHead) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelEvent struct { Type *uint64 `protobuf:"varint,1,opt"` Version *uint64 `protobuf:"varint,2,opt"` OpInfo *ChannelMsgOpInfo `protobuf:"bytes,3,opt"` } func (x *ChannelEvent) GetType() uint64 { if x != nil && x.Type != nil { return *x.Type } return 0 } func (x *ChannelEvent) GetVersion() uint64 { if x != nil && x.Version != nil { return *x.Version } return 0 } func (x *ChannelEvent) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelExtInfo struct { FromNick []byte `protobuf:"bytes,1,opt"` GuildName []byte `protobuf:"bytes,2,opt"` ChannelName []byte `protobuf:"bytes,3,opt"` Visibility *uint32 `protobuf:"varint,4,opt"` NotifyType *uint32 `protobuf:"varint,5,opt"` OfflineFlag *uint32 `protobuf:"varint,6,opt"` NameType *uint32 `protobuf:"varint,7,opt"` MemberName []byte `protobuf:"bytes,8,opt"` Timestamp *uint32 `protobuf:"varint,9,opt"` EventVersion *uint64 `protobuf:"varint,10,opt"` Events []*ChannelEvent `protobuf:"bytes,11,rep"` FromRoleInfo *ChannelRole `protobuf:"bytes,12,opt"` FreqLimitInfo *ChannelFreqLimitInfo `protobuf:"bytes,13,opt"` DirectMessageMember []*DirectMessageMember `protobuf:"bytes,14,rep"` } func (x *ChannelExtInfo) GetVisibility() uint32 { if x != nil && x.Visibility != nil { return *x.Visibility } return 0 } func (x *ChannelExtInfo) GetNotifyType() uint32 { if x != nil && x.NotifyType != nil { return *x.NotifyType } return 0 } func (x *ChannelExtInfo) GetOfflineFlag() uint32 { if x != nil && x.OfflineFlag != nil { return *x.OfflineFlag } return 0 } func (x *ChannelExtInfo) GetNameType() uint32 { if x != nil && x.NameType != nil { return *x.NameType } return 0 } func (x *ChannelExtInfo) GetTimestamp() uint32 { if x != nil && x.Timestamp != nil { return *x.Timestamp } return 0 } func (x *ChannelExtInfo) GetEventVersion() uint64 { if x != nil && x.EventVersion != nil { return *x.EventVersion } return 0 } func (x *ChannelExtInfo) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelFreqLimitInfo struct { IsLimited *uint32 `protobuf:"varint,1,opt"` LeftCount *uint32 `protobuf:"varint,2,opt"` LimitTimestamp *uint64 `protobuf:"varint,3,opt"` } func (x *ChannelFreqLimitInfo) GetIsLimited() uint32 { if x != nil && x.IsLimited != nil { return *x.IsLimited } return 0 } func (x *ChannelFreqLimitInfo) GetLeftCount() uint32 { if x != nil && x.LeftCount != nil { return *x.LeftCount } return 0 } func (x *ChannelFreqLimitInfo) GetLimitTimestamp() uint64 { if x != nil && x.LimitTimestamp != nil { return *x.LimitTimestamp } return 0 } func (x *ChannelFreqLimitInfo) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelInfo struct { Id *uint64 `protobuf:"varint,1,opt"` Name []byte `protobuf:"bytes,2,opt"` Color *uint32 `protobuf:"varint,3,opt"` Hoist *uint32 `protobuf:"varint,4,opt"` } func (x *ChannelInfo) GetId() uint64 { if x != nil && x.Id != nil { return *x.Id } return 0 } func (x *ChannelInfo) GetColor() uint32 { if x != nil && x.Color != nil { return *x.Color } return 0 } func (x *ChannelInfo) GetHoist() uint32 { if x != nil && x.Hoist != nil { return *x.Hoist } return 0 } func (x *ChannelInfo) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelLoginSig struct { Type *uint32 `protobuf:"varint,1,opt"` Sig []byte `protobuf:"bytes,2,opt"` Appid *uint32 `protobuf:"varint,3,opt"` } func (x *ChannelLoginSig) GetType() uint32 { if x != nil && x.Type != nil { return *x.Type } return 0 } func (x *ChannelLoginSig) GetAppid() uint32 { if x != nil && x.Appid != nil { return *x.Appid } return 0 } func (x *ChannelLoginSig) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelMeta struct { FromUin *uint64 `protobuf:"varint,1,opt"` LoginSig *ChannelLoginSig `protobuf:"bytes,2,opt"` } func (x *ChannelMeta) GetFromUin() uint64 { if x != nil && x.FromUin != nil { return *x.FromUin } return 0 } func (x *ChannelMeta) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelMsgContent struct { Head *ChannelMsgHead `protobuf:"bytes,1,opt"` CtrlHead *ChannelMsgCtrlHead `protobuf:"bytes,2,opt"` Body *msg.MessageBody `protobuf:"bytes,3,opt"` ExtInfo *ChannelExtInfo `protobuf:"bytes,4,opt"` } func (x *ChannelMsgContent) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelMsgCtrlHead struct { IncludeUin []uint64 `protobuf:"varint,1,rep"` ExcludeUin []uint64 `protobuf:"varint,2,rep"` Featureid []uint64 `protobuf:"varint,3,rep"` OfflineFlag *uint32 `protobuf:"varint,4,opt"` Visibility *uint32 `protobuf:"varint,5,opt"` CtrlFlag *uint64 `protobuf:"varint,6,opt"` Events []*ChannelEvent `protobuf:"bytes,7,rep"` Level *uint64 `protobuf:"varint,8,opt"` PersonalLevels []*PersonalLevel `protobuf:"bytes,9,rep"` GuildSyncSeq *uint64 `protobuf:"varint,10,opt"` MemberNum *uint32 `protobuf:"varint,11,opt"` ChannelType *uint32 `protobuf:"varint,12,opt"` PrivateType *uint32 `protobuf:"varint,13,opt"` } func (x *ChannelMsgCtrlHead) GetOfflineFlag() uint32 { if x != nil && x.OfflineFlag != nil { return *x.OfflineFlag } return 0 } func (x *ChannelMsgCtrlHead) GetVisibility() uint32 { if x != nil && x.Visibility != nil { return *x.Visibility } return 0 } func (x *ChannelMsgCtrlHead) GetCtrlFlag() uint64 { if x != nil && x.CtrlFlag != nil { return *x.CtrlFlag } return 0 } func (x *ChannelMsgCtrlHead) GetLevel() uint64 { if x != nil && x.Level != nil { return *x.Level } return 0 } func (x *ChannelMsgCtrlHead) GetGuildSyncSeq() uint64 { if x != nil && x.GuildSyncSeq != nil { return *x.GuildSyncSeq } return 0 } func (x *ChannelMsgCtrlHead) GetMemberNum() uint32 { if x != nil && x.MemberNum != nil { return *x.MemberNum } return 0 } func (x *ChannelMsgCtrlHead) GetChannelType() uint32 { if x != nil && x.ChannelType != nil { return *x.ChannelType } return 0 } func (x *ChannelMsgCtrlHead) GetPrivateType() uint32 { if x != nil && x.PrivateType != nil { return *x.PrivateType } return 0 } func (x *ChannelMsgCtrlHead) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelMsgHead struct { RoutingHead *ChannelRoutingHead `protobuf:"bytes,1,opt"` ContentHead *ChannelContentHead `protobuf:"bytes,2,opt"` } func (x *ChannelMsgHead) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelMsgMeta struct { AtAllSeq *uint64 `protobuf:"varint,1,opt"` } func (x *ChannelMsgMeta) GetAtAllSeq() uint64 { if x != nil && x.AtAllSeq != nil { return *x.AtAllSeq } return 0 } func (x *ChannelMsgMeta) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelMsgOpInfo struct { OperatorTinyid *uint64 `protobuf:"varint,1,opt"` OperatorRole *uint64 `protobuf:"varint,2,opt"` Reason *uint64 `protobuf:"varint,3,opt"` Timestamp *uint64 `protobuf:"varint,4,opt"` AtType *uint64 `protobuf:"varint,5,opt"` } func (x *ChannelMsgOpInfo) GetOperatorTinyid() uint64 { if x != nil && x.OperatorTinyid != nil { return *x.OperatorTinyid } return 0 } func (x *ChannelMsgOpInfo) GetOperatorRole() uint64 { if x != nil && x.OperatorRole != nil { return *x.OperatorRole } return 0 } func (x *ChannelMsgOpInfo) GetReason() uint64 { if x != nil && x.Reason != nil { return *x.Reason } return 0 } func (x *ChannelMsgOpInfo) GetTimestamp() uint64 { if x != nil && x.Timestamp != nil { return *x.Timestamp } return 0 } func (x *ChannelMsgOpInfo) GetAtType() uint64 { if x != nil && x.AtType != nil { return *x.AtType } return 0 } func (x *ChannelMsgOpInfo) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelRole struct { Id *uint64 `protobuf:"varint,1,opt"` Info []byte `protobuf:"bytes,2,opt"` Flag *uint32 `protobuf:"varint,3,opt"` } func (x *ChannelRole) GetId() uint64 { if x != nil && x.Id != nil { return *x.Id } return 0 } func (x *ChannelRole) GetFlag() uint32 { if x != nil && x.Flag != nil { return *x.Flag } return 0 } func (x *ChannelRole) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type ChannelRoutingHead struct { GuildId *uint64 `protobuf:"varint,1,opt"` ChannelId *uint64 `protobuf:"varint,2,opt"` FromUin *uint64 `protobuf:"varint,3,opt"` FromTinyid *uint64 `protobuf:"varint,4,opt"` GuildCode *uint64 `protobuf:"varint,5,opt"` FromAppid *uint64 `protobuf:"varint,6,opt"` DirectMessageFlag *uint32 `protobuf:"varint,7,opt"` } func (x *ChannelRoutingHead) GetGuildId() uint64 { if x != nil && x.GuildId != nil { return *x.GuildId } return 0 } func (x *ChannelRoutingHead) GetChannelId() uint64 { if x != nil && x.ChannelId != nil { return *x.ChannelId } return 0 } func (x *ChannelRoutingHead) GetFromUin() uint64 { if x != nil && x.FromUin != nil { return *x.FromUin } return 0 } func (x *ChannelRoutingHead) GetFromTinyid() uint64 { if x != nil && x.FromTinyid != nil { return *x.FromTinyid } return 0 } func (x *ChannelRoutingHead) GetGuildCode() uint64 { if x != nil && x.GuildCode != nil { return *x.GuildCode } return 0 } func (x *ChannelRoutingHead) GetFromAppid() uint64 { if x != nil && x.FromAppid != nil { return *x.FromAppid } return 0 } func (x *ChannelRoutingHead) GetDirectMessageFlag() uint32 { if x != nil && x.DirectMessageFlag != nil { return *x.DirectMessageFlag } return 0 } func (x *ChannelRoutingHead) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type DirectMessageMember struct { Uin *uint64 `protobuf:"varint,1,opt"` Tinyid *uint64 `protobuf:"varint,2,opt"` SourceGuildId *uint64 `protobuf:"varint,3,opt"` SourceGuildName []byte `protobuf:"bytes,4,opt"` NickName []byte `protobuf:"bytes,5,opt"` MemberName []byte `protobuf:"bytes,6,opt"` NotifyType *uint32 `protobuf:"varint,7,opt"` } func (x *DirectMessageMember) GetUin() uint64 { if x != nil && x.Uin != nil { return *x.Uin } return 0 } func (x *DirectMessageMember) GetTinyid() uint64 { if x != nil && x.Tinyid != nil { return *x.Tinyid } return 0 } func (x *DirectMessageMember) GetSourceGuildId() uint64 { if x != nil && x.SourceGuildId != nil { return *x.SourceGuildId } return 0 } func (x *DirectMessageMember) GetNotifyType() uint32 { if x != nil && x.NotifyType != nil { return *x.NotifyType } return 0 } func (x *DirectMessageMember) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) } type PersonalLevel struct { ToUin *uint64 `protobuf:"varint,1,opt"` Level *uint64 `protobuf:"varint,2,opt"` } func (x *PersonalLevel) GetToUin() uint64 { if x != nil && x.ToUin != nil { return *x.ToUin } return 0 } func (x *PersonalLevel) GetLevel() uint64 { if x != nil && x.Level != nil { return *x.Level } return 0 } func (x *PersonalLevel) Marshal() ([]byte, error) { if x == nil { return nil, errors.New("nil message") } return proto.Marshal(x) }