// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.19.4 // source: broadcast.proto package pb 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 User struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UId int64 `protobuf:"varint,1,opt,name=uId,proto3" json:"uId,omitempty"` //用户id Uname string `protobuf:"bytes,2,opt,name=uname,proto3" json:"uname,omitempty"` //用户名 } func (x *User) Reset() { *x = User{} if protoimpl.UnsafeEnabled { mi := &file_broadcast_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *User) String() string { return protoimpl.X.MessageStringOf(x) } func (*User) ProtoMessage() {} func (x *User) ProtoReflect() protoreflect.Message { mi := &file_broadcast_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 User.ProtoReflect.Descriptor instead. func (*User) Descriptor() ([]byte, []int) { return file_broadcast_proto_rawDescGZIP(), []int{0} } func (x *User) GetUId() int64 { if x != nil { return x.UId } return 0 } func (x *User) GetUname() string { if x != nil { return x.Uname } return "" } type JoinGame struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` } func (x *JoinGame) Reset() { *x = JoinGame{} if protoimpl.UnsafeEnabled { mi := &file_broadcast_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *JoinGame) String() string { return protoimpl.X.MessageStringOf(x) } func (*JoinGame) ProtoMessage() {} func (x *JoinGame) ProtoReflect() protoreflect.Message { mi := &file_broadcast_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 JoinGame.ProtoReflect.Descriptor instead. func (*JoinGame) Descriptor() ([]byte, []int) { return file_broadcast_proto_rawDescGZIP(), []int{1} } func (x *JoinGame) GetUser() *User { if x != nil { return x.User } return nil } type CreateUnit struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Unit string `protobuf:"bytes,2,opt,name=unit,proto3" json:"unit,omitempty"` //1-步兵,2-骑兵,3-弓箭手,4-法师 } func (x *CreateUnit) Reset() { *x = CreateUnit{} if protoimpl.UnsafeEnabled { mi := &file_broadcast_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CreateUnit) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateUnit) ProtoMessage() {} func (x *CreateUnit) ProtoReflect() protoreflect.Message { mi := &file_broadcast_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 CreateUnit.ProtoReflect.Descriptor instead. func (*CreateUnit) Descriptor() ([]byte, []int) { return file_broadcast_proto_rawDescGZIP(), []int{2} } func (x *CreateUnit) GetUser() *User { if x != nil { return x.User } return nil } func (x *CreateUnit) GetUnit() string { if x != nil { return x.Unit } return "" } type Move struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Line string `protobuf:"bytes,2,opt,name=line,proto3" json:"line,omitempty"` //1-上,2-中,3-下 } func (x *Move) Reset() { *x = Move{} if protoimpl.UnsafeEnabled { mi := &file_broadcast_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Move) String() string { return protoimpl.X.MessageStringOf(x) } func (*Move) ProtoMessage() {} func (x *Move) ProtoReflect() protoreflect.Message { mi := &file_broadcast_proto_msgTypes[3] 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 Move.ProtoReflect.Descriptor instead. func (*Move) Descriptor() ([]byte, []int) { return file_broadcast_proto_rawDescGZIP(), []int{3} } func (x *Move) GetUser() *User { if x != nil { return x.User } return nil } func (x *Move) GetLine() string { if x != nil { return x.Line } return "" } type Outbreak struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` } func (x *Outbreak) Reset() { *x = Outbreak{} if protoimpl.UnsafeEnabled { mi := &file_broadcast_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Outbreak) String() string { return protoimpl.X.MessageStringOf(x) } func (*Outbreak) ProtoMessage() {} func (x *Outbreak) ProtoReflect() protoreflect.Message { mi := &file_broadcast_proto_msgTypes[4] 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 Outbreak.ProtoReflect.Descriptor instead. func (*Outbreak) Descriptor() ([]byte, []int) { return file_broadcast_proto_rawDescGZIP(), []int{4} } func (x *Outbreak) GetUser() *User { if x != nil { return x.User } return nil } type Gift struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields 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"` } func (x *Gift) Reset() { *x = Gift{} if protoimpl.UnsafeEnabled { mi := &file_broadcast_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Gift) String() string { return protoimpl.X.MessageStringOf(x) } func (*Gift) ProtoMessage() {} func (x *Gift) ProtoReflect() protoreflect.Message { mi := &file_broadcast_proto_msgTypes[5] 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 Gift.ProtoReflect.Descriptor instead. func (*Gift) Descriptor() ([]byte, []int) { return file_broadcast_proto_rawDescGZIP(), []int{5} } func (x *Gift) GetUser() *User { if x != nil { return x.User } return nil } func (x *Gift) GetGiftId() int32 { if x != nil { return x.GiftId } return 0 } func (x *Gift) GetTotalCoin() int64 { if x != nil { return x.TotalCoin } return 0 } type Wai struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` } func (x *Wai) Reset() { *x = Wai{} if protoimpl.UnsafeEnabled { mi := &file_broadcast_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Wai) String() string { return protoimpl.X.MessageStringOf(x) } func (*Wai) ProtoMessage() {} func (x *Wai) ProtoReflect() protoreflect.Message { mi := &file_broadcast_proto_msgTypes[6] 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 Wai.ProtoReflect.Descriptor instead. func (*Wai) Descriptor() ([]byte, []int) { return file_broadcast_proto_rawDescGZIP(), []int{6} } func (x *Wai) GetUser() *User { if x != nil { return x.User } return nil } var File_broadcast_proto protoreflect.FileDescriptor var file_broadcast_proto_rawDesc = []byte{ 0x0a, 0x0f, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x2e, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x75, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x28, 0x0a, 0x08, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 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, 0x22, 0x3e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x6e, 0x69, 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, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x22, 0x38, 0x0a, 0x04, 0x4d, 0x6f, 0x76, 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, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 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, } var ( file_broadcast_proto_rawDescOnce sync.Once file_broadcast_proto_rawDescData = file_broadcast_proto_rawDesc ) func file_broadcast_proto_rawDescGZIP() []byte { file_broadcast_proto_rawDescOnce.Do(func() { file_broadcast_proto_rawDescData = protoimpl.X.CompressGZIP(file_broadcast_proto_rawDescData) }) return file_broadcast_proto_rawDescData } var file_broadcast_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_broadcast_proto_goTypes = []interface{}{ (*User)(nil), // 0: pb.User (*JoinGame)(nil), // 1: pb.JoinGame (*CreateUnit)(nil), // 2: pb.CreateUnit (*Move)(nil), // 3: pb.Move (*Outbreak)(nil), // 4: pb.Outbreak (*Gift)(nil), // 5: pb.Gift (*Wai)(nil), // 6: pb.Wai } var file_broadcast_proto_depIdxs = []int32{ 0, // 0: pb.JoinGame.user:type_name -> pb.User 0, // 1: pb.CreateUnit.user:type_name -> pb.User 0, // 2: pb.Move.user:type_name -> pb.User 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 } func init() { file_broadcast_proto_init() } func file_broadcast_proto_init() { if File_broadcast_proto != nil { return } if !protoimpl.UnsafeEnabled { file_broadcast_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*User); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_broadcast_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*JoinGame); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_broadcast_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateUnit); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_broadcast_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Move); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_broadcast_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Outbreak); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_broadcast_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Gift); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_broadcast_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Wai); 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_broadcast_proto_rawDesc, NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 0, }, GoTypes: file_broadcast_proto_goTypes, DependencyIndexes: file_broadcast_proto_depIdxs, MessageInfos: file_broadcast_proto_msgTypes, }.Build() File_broadcast_proto = out.File file_broadcast_proto_rawDesc = nil file_broadcast_proto_goTypes = nil file_broadcast_proto_depIdxs = nil }