mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
348 lines
11 KiB
Go
348 lines
11 KiB
Go
// 存放所有未知的结构体
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.27.1
|
|
// protoc v3.14.0
|
|
// source: unknown.proto
|
|
|
|
package channel
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type ChannelOidb0Xf5BRsp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
GuildId *uint64 `protobuf:"varint,1,opt,name=guildId" json:"guildId,omitempty"`
|
|
Bots []*GuildMemberInfo `protobuf:"bytes,4,rep,name=bots" json:"bots,omitempty"`
|
|
Members []*GuildMemberInfo `protobuf:"bytes,5,rep,name=members" json:"members,omitempty"`
|
|
AdminInfo *GuildAdminInfo `protobuf:"bytes,25,opt,name=adminInfo" json:"adminInfo,omitempty"`
|
|
}
|
|
|
|
func (x *ChannelOidb0Xf5BRsp) Reset() {
|
|
*x = ChannelOidb0Xf5BRsp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_unknown_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ChannelOidb0Xf5BRsp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChannelOidb0Xf5BRsp) ProtoMessage() {}
|
|
|
|
func (x *ChannelOidb0Xf5BRsp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_unknown_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChannelOidb0Xf5BRsp.ProtoReflect.Descriptor instead.
|
|
func (*ChannelOidb0Xf5BRsp) Descriptor() ([]byte, []int) {
|
|
return file_unknown_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ChannelOidb0Xf5BRsp) GetGuildId() uint64 {
|
|
if x != nil && x.GuildId != nil {
|
|
return *x.GuildId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ChannelOidb0Xf5BRsp) GetBots() []*GuildMemberInfo {
|
|
if x != nil {
|
|
return x.Bots
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChannelOidb0Xf5BRsp) GetMembers() []*GuildMemberInfo {
|
|
if x != nil {
|
|
return x.Members
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChannelOidb0Xf5BRsp) GetAdminInfo() *GuildAdminInfo {
|
|
if x != nil {
|
|
return x.AdminInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GuildAdminInfo struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Admins []*GuildMemberInfo `protobuf:"bytes,2,rep,name=admins" json:"admins,omitempty"`
|
|
}
|
|
|
|
func (x *GuildAdminInfo) Reset() {
|
|
*x = GuildAdminInfo{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_unknown_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GuildAdminInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GuildAdminInfo) ProtoMessage() {}
|
|
|
|
func (x *GuildAdminInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_unknown_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GuildAdminInfo.ProtoReflect.Descriptor instead.
|
|
func (*GuildAdminInfo) Descriptor() ([]byte, []int) {
|
|
return file_unknown_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GuildAdminInfo) GetAdmins() []*GuildMemberInfo {
|
|
if x != nil {
|
|
return x.Admins
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GuildMemberInfo struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Title *string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"`
|
|
Nickname *string `protobuf:"bytes,3,opt,name=nickname" json:"nickname,omitempty"`
|
|
LastSpeakTime *int64 `protobuf:"varint,4,opt,name=lastSpeakTime" json:"lastSpeakTime,omitempty"` // uncertainty
|
|
Role *int32 `protobuf:"varint,5,opt,name=role" json:"role,omitempty"` // uncertainty
|
|
TinyId *uint64 `protobuf:"varint,8,opt,name=tinyId" json:"tinyId,omitempty"`
|
|
}
|
|
|
|
func (x *GuildMemberInfo) Reset() {
|
|
*x = GuildMemberInfo{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_unknown_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GuildMemberInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GuildMemberInfo) ProtoMessage() {}
|
|
|
|
func (x *GuildMemberInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_unknown_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GuildMemberInfo.ProtoReflect.Descriptor instead.
|
|
func (*GuildMemberInfo) Descriptor() ([]byte, []int) {
|
|
return file_unknown_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GuildMemberInfo) GetTitle() string {
|
|
if x != nil && x.Title != nil {
|
|
return *x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GuildMemberInfo) GetNickname() string {
|
|
if x != nil && x.Nickname != nil {
|
|
return *x.Nickname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GuildMemberInfo) GetLastSpeakTime() int64 {
|
|
if x != nil && x.LastSpeakTime != nil {
|
|
return *x.LastSpeakTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GuildMemberInfo) GetRole() int32 {
|
|
if x != nil && x.Role != nil {
|
|
return *x.Role
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GuildMemberInfo) GetTinyId() uint64 {
|
|
if x != nil && x.TinyId != nil {
|
|
return *x.TinyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_unknown_proto protoreflect.FileDescriptor
|
|
|
|
var file_unknown_proto_rawDesc = []byte{
|
|
0x0a, 0x0d, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
|
0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0xc8, 0x01, 0x0a, 0x13, 0x43, 0x68, 0x61,
|
|
0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x66, 0x35, 0x62, 0x52, 0x73, 0x70,
|
|
0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x04, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x62, 0x6f,
|
|
0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e,
|
|
0x65, 0x6c, 0x2e, 0x47, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e,
|
|
0x66, 0x6f, 0x52, 0x04, 0x62, 0x6f, 0x74, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62,
|
|
0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x68, 0x61, 0x6e,
|
|
0x6e, 0x65, 0x6c, 0x2e, 0x47, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49,
|
|
0x6e, 0x66, 0x6f, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x35, 0x0a, 0x09,
|
|
0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
0x17, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x47, 0x75, 0x69, 0x6c, 0x64, 0x41,
|
|
0x64, 0x6d, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49,
|
|
0x6e, 0x66, 0x6f, 0x22, 0x42, 0x0a, 0x0e, 0x47, 0x75, 0x69, 0x6c, 0x64, 0x41, 0x64, 0x6d, 0x69,
|
|
0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x30, 0x0a, 0x06, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x18,
|
|
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e,
|
|
0x47, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
|
0x06, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x22, 0x95, 0x01, 0x0a, 0x0f, 0x47, 0x75, 0x69, 0x6c,
|
|
0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x74,
|
|
0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,
|
|
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a,
|
|
0x0d, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x70, 0x65, 0x61, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04,
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x70, 0x65, 0x61, 0x6b, 0x54,
|
|
0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x6e, 0x79, 0x49,
|
|
0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x74, 0x69, 0x6e, 0x79, 0x49, 0x64, 0x42,
|
|
0x0c, 0x5a, 0x0a, 0x2e, 0x2f, 0x3b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
|
|
}
|
|
|
|
var (
|
|
file_unknown_proto_rawDescOnce sync.Once
|
|
file_unknown_proto_rawDescData = file_unknown_proto_rawDesc
|
|
)
|
|
|
|
func file_unknown_proto_rawDescGZIP() []byte {
|
|
file_unknown_proto_rawDescOnce.Do(func() {
|
|
file_unknown_proto_rawDescData = protoimpl.X.CompressGZIP(file_unknown_proto_rawDescData)
|
|
})
|
|
return file_unknown_proto_rawDescData
|
|
}
|
|
|
|
var file_unknown_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_unknown_proto_goTypes = []interface{}{
|
|
(*ChannelOidb0Xf5BRsp)(nil), // 0: channel.ChannelOidb0xf5bRsp
|
|
(*GuildAdminInfo)(nil), // 1: channel.GuildAdminInfo
|
|
(*GuildMemberInfo)(nil), // 2: channel.GuildMemberInfo
|
|
}
|
|
var file_unknown_proto_depIdxs = []int32{
|
|
2, // 0: channel.ChannelOidb0xf5bRsp.bots:type_name -> channel.GuildMemberInfo
|
|
2, // 1: channel.ChannelOidb0xf5bRsp.members:type_name -> channel.GuildMemberInfo
|
|
1, // 2: channel.ChannelOidb0xf5bRsp.adminInfo:type_name -> channel.GuildAdminInfo
|
|
2, // 3: channel.GuildAdminInfo.admins:type_name -> channel.GuildMemberInfo
|
|
4, // [4:4] is the sub-list for method output_type
|
|
4, // [4:4] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_unknown_proto_init() }
|
|
func file_unknown_proto_init() {
|
|
if File_unknown_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_unknown_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ChannelOidb0Xf5BRsp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_unknown_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GuildAdminInfo); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_unknown_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GuildMemberInfo); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_unknown_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_unknown_proto_goTypes,
|
|
DependencyIndexes: file_unknown_proto_depIdxs,
|
|
MessageInfos: file_unknown_proto_msgTypes,
|
|
}.Build()
|
|
File_unknown_proto = out.File
|
|
file_unknown_proto_rawDesc = nil
|
|
file_unknown_proto_goTypes = nil
|
|
file_unknown_proto_depIdxs = nil
|
|
}
|