@ -1,10 +1,10 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.2 8.0
// protoc-gen-go v1.2 7.1
// protoc v3.19.4
// source: broadcast.proto
package pb
package pb Push
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
@ -286,7 +286,9 @@ type Gift struct {
User * User ` protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" `
GiftId int32 ` protobuf:"varint,2,opt,name=giftId,proto3" json:"giftId,omitempty" `
TotalCoin int64 ` protobuf:"varint,3,opt,name=totalCoin,proto3" json:"totalCoin,omitempty" `
GiftName string ` protobuf:"bytes,3,opt,name=giftName,proto3" json:"giftName,omitempty" `
TotalCoin int64 ` protobuf:"varint,4,opt,name=totalCoin,proto3" json:"totalCoin,omitempty" `
SendTime int64 ` protobuf:"varint,5,opt,name=sendTime,proto3" json:"sendTime,omitempty" `
}
func ( x * Gift ) Reset ( ) {
@ -335,6 +337,13 @@ func (x *Gift) GetGiftId() int32 {
return 0
}
func ( x * Gift ) GetGiftName ( ) string {
if x != nil {
return x . GiftName
}
return ""
}
func ( x * Gift ) GetTotalCoin ( ) int64 {
if x != nil {
return x . TotalCoin
@ -342,6 +351,13 @@ func (x *Gift) GetTotalCoin() int64 {
return 0
}
func ( x * Gift ) GetSendTime ( ) int64 {
if x != nil {
return x . SendTime
}
return 0
}
type Wai struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
@ -389,6 +405,116 @@ func (x *Wai) GetUser() *User {
return nil
}
type BuildingMode struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
User * User ` protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" `
Mode string ` protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty" `
}
func ( x * BuildingMode ) Reset ( ) {
* x = BuildingMode { }
if protoimpl . UnsafeEnabled {
mi := & file_broadcast_proto_msgTypes [ 7 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * BuildingMode ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * BuildingMode ) ProtoMessage ( ) { }
func ( x * BuildingMode ) ProtoReflect ( ) protoreflect . Message {
mi := & file_broadcast_proto_msgTypes [ 7 ]
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 BuildingMode.ProtoReflect.Descriptor instead.
func ( * BuildingMode ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_broadcast_proto_rawDescGZIP ( ) , [ ] int { 7 }
}
func ( x * BuildingMode ) GetUser ( ) * User {
if x != nil {
return x . User
}
return nil
}
func ( x * BuildingMode ) GetMode ( ) string {
if x != nil {
return x . Mode
}
return ""
}
type DanmakuMsg struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
User * User ` protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" `
Content string ` protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty" `
}
func ( x * DanmakuMsg ) Reset ( ) {
* x = DanmakuMsg { }
if protoimpl . UnsafeEnabled {
mi := & file_broadcast_proto_msgTypes [ 8 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * DanmakuMsg ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * DanmakuMsg ) ProtoMessage ( ) { }
func ( x * DanmakuMsg ) ProtoReflect ( ) protoreflect . Message {
mi := & file_broadcast_proto_msgTypes [ 8 ]
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 DanmakuMsg.ProtoReflect.Descriptor instead.
func ( * DanmakuMsg ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_broadcast_proto_rawDescGZIP ( ) , [ ] int { 8 }
}
func ( x * DanmakuMsg ) GetUser ( ) * User {
if x != nil {
return x . User
}
return nil
}
func ( x * DanmakuMsg ) GetContent ( ) string {
if x != nil {
return x . Content
}
return ""
}
var File_broadcast_proto protoreflect . FileDescriptor
var file_broadcast_proto_rawDesc = [ ] byte {
@ -409,16 +535,28 @@ var file_broadcast_proto_rawDesc = []byte{
0x01 , 0x28 , 0x09 , 0x52 , 0x04 , 0x6c , 0x69 , 0x6e , 0x65 , 0x22 , 0x28 , 0x0a , 0x08 , 0x4f , 0x75 , 0x74 ,
0x62 , 0x72 , 0x65 , 0x61 , 0x6b , 0x12 , 0x1c , 0x0a , 0x04 , 0x75 , 0x73 , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 ,
0x01 , 0x28 , 0x0b , 0x32 , 0x08 , 0x2e , 0x70 , 0x62 , 0x2e , 0x55 , 0x73 , 0x65 , 0x72 , 0x52 , 0x04 , 0x75 ,
0x73 , 0x65 , 0x72 , 0x22 , 0x5a , 0x0a , 0x04 , 0x47 , 0x69 , 0x66 , 0x74 , 0x12 , 0x1c , 0x0a , 0x04 , 0x75 ,
0x73 , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x08 , 0x2e , 0x70 , 0x62 , 0x2e , 0x55 ,
0x73 , 0x65 , 0x72 , 0x52 , 0x04 , 0x75 , 0x73 , 0x65 , 0x72 , 0x12 , 0x16 , 0x0a , 0x06 , 0x67 , 0x69 , 0x66 ,
0x74 , 0x49 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x06 , 0x67 , 0x69 , 0x66 , 0x74 , 0x49 ,
0x64 , 0x12 , 0x1c , 0x0a , 0x09 , 0x74 , 0x6f , 0x74 , 0x61 , 0x6c , 0x43 , 0x6f , 0x69 , 0x6e , 0x18 , 0x03 ,
0x20 , 0x01 , 0x28 , 0x03 , 0x52 , 0x09 , 0x74 , 0x6f , 0x74 , 0x61 , 0x6c , 0x43 , 0x6f , 0x69 , 0x6e , 0x22 ,
0x23 , 0x0a , 0x03 , 0x57 , 0x61 , 0x69 , 0x12 , 0x1c , 0x0a , 0x04 , 0x75 , 0x73 , 0x65 , 0x72 , 0x18 , 0x01 ,
0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x08 , 0x2e , 0x70 , 0x62 , 0x2e , 0x55 , 0x73 , 0x65 , 0x72 , 0x52 , 0x04 ,
0x75 , 0x73 , 0x65 , 0x72 , 0x42 , 0x05 , 0x5a , 0x03 , 0x2f , 0x70 , 0x62 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x33 ,
0x73 , 0x65 , 0x72 , 0x22 , 0x92 , 0x01 , 0x0a , 0x04 , 0x47 , 0x69 , 0x66 , 0x74 , 0x12 , 0x1c , 0x0a , 0x04 ,
0x75 , 0x73 , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x08 , 0x2e , 0x70 , 0x62 , 0x2e ,
0x55 , 0x73 , 0x65 , 0x72 , 0x52 , 0x04 , 0x75 , 0x73 , 0x65 , 0x72 , 0x12 , 0x16 , 0x0a , 0x06 , 0x67 , 0x69 ,
0x66 , 0x74 , 0x49 , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x06 , 0x67 , 0x69 , 0x66 , 0x74 ,
0x49 , 0x64 , 0x12 , 0x1a , 0x0a , 0x08 , 0x67 , 0x69 , 0x66 , 0x74 , 0x4e , 0x61 , 0x6d , 0x65 , 0x18 , 0x03 ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x67 , 0x69 , 0x66 , 0x74 , 0x4e , 0x61 , 0x6d , 0x65 , 0x12 , 0x1c ,
0x0a , 0x09 , 0x74 , 0x6f , 0x74 , 0x61 , 0x6c , 0x43 , 0x6f , 0x69 , 0x6e , 0x18 , 0x04 , 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 , 0x05 , 0x20 , 0x01 , 0x28 , 0x03 , 0x52 , 0x08 ,
0x73 , 0x65 , 0x6e , 0x64 , 0x54 , 0x69 , 0x6d , 0x65 , 0x22 , 0x23 , 0x0a , 0x03 , 0x57 , 0x61 , 0x69 , 0x12 ,
0x1c , 0x0a , 0x04 , 0x75 , 0x73 , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x08 , 0x2e ,
0x70 , 0x62 , 0x2e , 0x55 , 0x73 , 0x65 , 0x72 , 0x52 , 0x04 , 0x75 , 0x73 , 0x65 , 0x72 , 0x22 , 0x40 , 0x0a ,
0x0c , 0x42 , 0x75 , 0x69 , 0x6c , 0x64 , 0x69 , 0x6e , 0x67 , 0x4d , 0x6f , 0x64 , 0x65 , 0x12 , 0x1c , 0x0a ,
0x04 , 0x75 , 0x73 , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x08 , 0x2e , 0x70 , 0x62 ,
0x2e , 0x55 , 0x73 , 0x65 , 0x72 , 0x52 , 0x04 , 0x75 , 0x73 , 0x65 , 0x72 , 0x12 , 0x12 , 0x0a , 0x04 , 0x6d ,
0x6f , 0x64 , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x04 , 0x6d , 0x6f , 0x64 , 0x65 , 0x22 ,
0x44 , 0x0a , 0x0a , 0x44 , 0x61 , 0x6e , 0x6d , 0x61 , 0x6b , 0x75 , 0x4d , 0x73 , 0x67 , 0x12 , 0x1c , 0x0a ,
0x04 , 0x75 , 0x73 , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x08 , 0x2e , 0x70 , 0x62 ,
0x2e , 0x55 , 0x73 , 0x65 , 0x72 , 0x52 , 0x04 , 0x75 , 0x73 , 0x65 , 0x72 , 0x12 , 0x18 , 0x0a , 0x07 , 0x63 ,
0x6f , 0x6e , 0x74 , 0x65 , 0x6e , 0x74 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 , 0x63 , 0x6f ,
0x6e , 0x74 , 0x65 , 0x6e , 0x74 , 0x42 , 0x09 , 0x5a , 0x07 , 0x2f , 0x70 , 0x62 , 0x50 , 0x75 , 0x73 , 0x68 ,
0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
@ -433,7 +571,7 @@ func file_broadcast_proto_rawDescGZIP() []byte {
return file_broadcast_proto_rawDescData
}
var file_broadcast_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 7 )
var file_broadcast_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 9 )
var file_broadcast_proto_goTypes = [ ] interface { } {
( * User ) ( nil ) , // 0: pb.User
( * JoinGame ) ( nil ) , // 1: pb.JoinGame
@ -442,6 +580,8 @@ var file_broadcast_proto_goTypes = []interface{}{
( * Outbreak ) ( nil ) , // 4: pb.Outbreak
( * Gift ) ( nil ) , // 5: pb.Gift
( * Wai ) ( nil ) , // 6: pb.Wai
( * BuildingMode ) ( nil ) , // 7: pb.BuildingMode
( * DanmakuMsg ) ( nil ) , // 8: pb.DanmakuMsg
}
var file_broadcast_proto_depIdxs = [ ] int32 {
0 , // 0: pb.JoinGame.user:type_name -> pb.User
@ -450,11 +590,13 @@ var file_broadcast_proto_depIdxs = []int32{
0 , // 3: pb.Outbreak.user:type_name -> pb.User
0 , // 4: pb.Gift.user:type_name -> pb.User
0 , // 5: pb.Wai.user:type_name -> pb.User
6 , // [6:6] is the sub-list for method output_type
6 , // [6:6] is the sub-list for method input_type
6 , // [6:6] is the sub-list for extension type_name
6 , // [6:6] is the sub-list for extension extendee
0 , // [0:6] is the sub-list for field type_name
0 , // 6: pb.BuildingMode.user:type_name -> pb.User
0 , // 7: pb.DanmakuMsg.user:type_name -> pb.User
8 , // [8:8] is the sub-list for method output_type
8 , // [8:8] is the sub-list for method input_type
8 , // [8:8] is the sub-list for extension type_name
8 , // [8:8] is the sub-list for extension extendee
0 , // [0:8] is the sub-list for field type_name
}
func init ( ) { file_broadcast_proto_init ( ) }
@ -547,6 +689,30 @@ func file_broadcast_proto_init() {
return nil
}
}
file_broadcast_proto_msgTypes [ 7 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * BuildingMode ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_broadcast_proto_msgTypes [ 8 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * DanmakuMsg ) ; 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 {
@ -554,7 +720,7 @@ func file_broadcast_proto_init() {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
RawDescriptor : file_broadcast_proto_rawDesc ,
NumEnums : 0 ,
NumMessages : 7 ,
NumMessages : 9 ,
NumExtensions : 0 ,
NumServices : 0 ,
} ,