|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.27.1
|
|
|
|
|
// protoc-gen-go v1.28.0
|
|
|
|
|
// protoc v3.19.4
|
|
|
|
|
// source: mq.proto
|
|
|
|
|
|
|
|
|
@ -20,6 +20,58 @@ const (
|
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Platform int32
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
Platform_bilibili Platform = 0 // B站
|
|
|
|
|
Platform_huya Platform = 1 // 虎牙
|
|
|
|
|
Platform_douyu Platform = 2 // 斗鱼
|
|
|
|
|
Platform_douyin Platform = 3 // 抖音
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Enum value maps for Platform.
|
|
|
|
|
var (
|
|
|
|
|
Platform_name = map[int32]string{
|
|
|
|
|
0: "bilibili",
|
|
|
|
|
1: "huya",
|
|
|
|
|
2: "douyu",
|
|
|
|
|
3: "douyin",
|
|
|
|
|
}
|
|
|
|
|
Platform_value = map[string]int32{
|
|
|
|
|
"bilibili": 0,
|
|
|
|
|
"huya": 1,
|
|
|
|
|
"douyu": 2,
|
|
|
|
|
"douyin": 3,
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (x Platform) Enum() *Platform {
|
|
|
|
|
p := new(Platform)
|
|
|
|
|
*p = x
|
|
|
|
|
return p
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x Platform) String() string {
|
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (Platform) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
|
return file_mq_proto_enumTypes[0].Descriptor()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (Platform) Type() protoreflect.EnumType {
|
|
|
|
|
return &file_mq_proto_enumTypes[0]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x Platform) Number() protoreflect.EnumNumber {
|
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use Platform.Descriptor instead.
|
|
|
|
|
func (Platform) EnumDescriptor() ([]byte, []int) {
|
|
|
|
|
return file_mq_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MqDanmaku struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
@ -238,8 +290,11 @@ var file_mq_proto_rawDesc = []byte{
|
|
|
|
|
0x61, 0x6c, 0x43, 0x6f, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x6f,
|
|
|
|
|
0x74, 0x61, 0x6c, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x54,
|
|
|
|
|
0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x54,
|
|
|
|
|
0x69, 0x6d, 0x65, 0x42, 0x07, 0x5a, 0x05, 0x2f, 0x70, 0x62, 0x4d, 0x71, 0x62, 0x06, 0x70, 0x72,
|
|
|
|
|
0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
0x69, 0x6d, 0x65, 0x2a, 0x39, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12,
|
|
|
|
|
0x0c, 0x0a, 0x08, 0x62, 0x69, 0x6c, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x10, 0x00, 0x12, 0x08, 0x0a,
|
|
|
|
|
0x04, 0x68, 0x75, 0x79, 0x61, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x64, 0x6f, 0x75, 0x79, 0x75,
|
|
|
|
|
0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x64, 0x6f, 0x75, 0x79, 0x69, 0x6e, 0x10, 0x03, 0x42, 0x07,
|
|
|
|
|
0x5a, 0x05, 0x2f, 0x70, 0x62, 0x4d, 0x71, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
@ -254,10 +309,12 @@ func file_mq_proto_rawDescGZIP() []byte {
|
|
|
|
|
return file_mq_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var file_mq_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
|
|
|
var file_mq_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
|
|
|
var file_mq_proto_goTypes = []interface{}{
|
|
|
|
|
(*MqDanmaku)(nil), // 0: pb.MqDanmaku
|
|
|
|
|
(*MqGift)(nil), // 1: pb.MqGift
|
|
|
|
|
(Platform)(0), // 0: pb.Platform
|
|
|
|
|
(*MqDanmaku)(nil), // 1: pb.MqDanmaku
|
|
|
|
|
(*MqGift)(nil), // 2: pb.MqGift
|
|
|
|
|
}
|
|
|
|
|
var file_mq_proto_depIdxs = []int32{
|
|
|
|
|
0, // [0:0] is the sub-list for method output_type
|
|
|
|
@ -303,13 +360,14 @@ func file_mq_proto_init() {
|
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: file_mq_proto_rawDesc,
|
|
|
|
|
NumEnums: 0,
|
|
|
|
|
NumEnums: 1,
|
|
|
|
|
NumMessages: 2,
|
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 0,
|
|
|
|
|
},
|
|
|
|
|
GoTypes: file_mq_proto_goTypes,
|
|
|
|
|
DependencyIndexes: file_mq_proto_depIdxs,
|
|
|
|
|
EnumInfos: file_mq_proto_enumTypes,
|
|
|
|
|
MessageInfos: file_mq_proto_msgTypes,
|
|
|
|
|
}.Build()
|
|
|
|
|
File_mq_proto = out.File
|
|
|
|
|