Files
proto/proto/ss/sspb/channel.pb.go

390 lines
12 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.1
// source: channel.proto
package sspb
import (
_ "git.hlsq.asia/alex/proto/proto/ss/sscommon"
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 ChannelType int32
const (
ChannelType_CHANNEL_TYPE_UNKNOWN ChannelType = 0
ChannelType_CHANNEL_TYPE_PHYSICAL_ROOM ChannelType = 1 // 线下比赛房间频道
ChannelType_CHANNEL_TYPE_BASE_COURT ChannelType = 2 // 基础球场频道
ChannelType_CHANNEL_TYPE_HORN ChannelType = 3 // 小喇叭频道
ChannelType_CHANNEL_TYPE_WATCH_ONLINE_COMPETITION ChannelType = 4 // 观看在线比赛频道 ( 小程序端业务 )
ChannelType_CHANNEL_TYPE_TOURNAMENT ChannelType = 5 // 锦标赛
)
// Enum value maps for ChannelType.
var (
ChannelType_name = map[int32]string{
0: "CHANNEL_TYPE_UNKNOWN",
1: "CHANNEL_TYPE_PHYSICAL_ROOM",
2: "CHANNEL_TYPE_BASE_COURT",
3: "CHANNEL_TYPE_HORN",
4: "CHANNEL_TYPE_WATCH_ONLINE_COMPETITION",
5: "CHANNEL_TYPE_TOURNAMENT",
}
ChannelType_value = map[string]int32{
"CHANNEL_TYPE_UNKNOWN": 0,
"CHANNEL_TYPE_PHYSICAL_ROOM": 1,
"CHANNEL_TYPE_BASE_COURT": 2,
"CHANNEL_TYPE_HORN": 3,
"CHANNEL_TYPE_WATCH_ONLINE_COMPETITION": 4,
"CHANNEL_TYPE_TOURNAMENT": 5,
}
)
func (x ChannelType) Enum() *ChannelType {
p := new(ChannelType)
*p = x
return p
}
func (x ChannelType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ChannelType) Descriptor() protoreflect.EnumDescriptor {
return file_channel_proto_enumTypes[0].Descriptor()
}
func (ChannelType) Type() protoreflect.EnumType {
return &file_channel_proto_enumTypes[0]
}
func (x ChannelType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ChannelType.Descriptor instead.
func (ChannelType) EnumDescriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{0}
}
// MESSAGE_ID_JOIN_CHANNEL
type C2S_JoinChannel struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ChannelName string `protobuf:"bytes,1,opt,name=ChannelName,proto3" json:"ChannelName,omitempty"` // 频道名称
}
func (x *C2S_JoinChannel) Reset() {
*x = C2S_JoinChannel{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *C2S_JoinChannel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*C2S_JoinChannel) ProtoMessage() {}
func (x *C2S_JoinChannel) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 C2S_JoinChannel.ProtoReflect.Descriptor instead.
func (*C2S_JoinChannel) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{0}
}
func (x *C2S_JoinChannel) GetChannelName() string {
if x != nil {
return x.ChannelName
}
return ""
}
type S2C_JoinChannel struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *S2C_JoinChannel) Reset() {
*x = S2C_JoinChannel{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *S2C_JoinChannel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*S2C_JoinChannel) ProtoMessage() {}
func (x *S2C_JoinChannel) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 S2C_JoinChannel.ProtoReflect.Descriptor instead.
func (*S2C_JoinChannel) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{1}
}
// MESSAGE_ID_LEAVE_CHANNEL
type C2S_LeaveChannel struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ChannelName string `protobuf:"bytes,1,opt,name=ChannelName,proto3" json:"ChannelName,omitempty"` // 频道名称
}
func (x *C2S_LeaveChannel) Reset() {
*x = C2S_LeaveChannel{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *C2S_LeaveChannel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*C2S_LeaveChannel) ProtoMessage() {}
func (x *C2S_LeaveChannel) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 C2S_LeaveChannel.ProtoReflect.Descriptor instead.
func (*C2S_LeaveChannel) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{2}
}
func (x *C2S_LeaveChannel) GetChannelName() string {
if x != nil {
return x.ChannelName
}
return ""
}
type S2C_LeaveChannel struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *S2C_LeaveChannel) Reset() {
*x = S2C_LeaveChannel{}
if protoimpl.UnsafeEnabled {
mi := &file_channel_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *S2C_LeaveChannel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*S2C_LeaveChannel) ProtoMessage() {}
func (x *S2C_LeaveChannel) ProtoReflect() protoreflect.Message {
mi := &file_channel_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 S2C_LeaveChannel.ProtoReflect.Descriptor instead.
func (*S2C_LeaveChannel) Descriptor() ([]byte, []int) {
return file_channel_proto_rawDescGZIP(), []int{3}
}
var File_channel_proto protoreflect.FileDescriptor
var file_channel_proto_rawDesc = []byte{
0x0a, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x0f, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x33, 0x0a, 0x0f, 0x43, 0x32, 0x53, 0x5f, 0x4a, 0x6f, 0x69, 0x6e, 0x43, 0x68, 0x61, 0x6e,
0x6e, 0x65, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4e, 0x61,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65,
0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x32, 0x43, 0x5f, 0x4a, 0x6f, 0x69,
0x6e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0x34, 0x0a, 0x10, 0x43, 0x32, 0x53, 0x5f,
0x4c, 0x65, 0x61, 0x76, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x20, 0x0a, 0x0b,
0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0b, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x12,
0x0a, 0x10, 0x53, 0x32, 0x43, 0x5f, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e,
0x65, 0x6c, 0x2a, 0xc3, 0x01, 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x54, 0x79,
0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x54, 0x59,
0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a,
0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x48, 0x59,
0x53, 0x49, 0x43, 0x41, 0x4c, 0x5f, 0x52, 0x4f, 0x4f, 0x4d, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17,
0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x41, 0x53,
0x45, 0x5f, 0x43, 0x4f, 0x55, 0x52, 0x54, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x48, 0x41,
0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x48, 0x4f, 0x52, 0x4e, 0x10, 0x03,
0x12, 0x29, 0x0a, 0x25, 0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45,
0x5f, 0x57, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x43, 0x4f,
0x4d, 0x50, 0x45, 0x54, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x1b, 0x0a, 0x17, 0x43,
0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x4f, 0x55, 0x52,
0x4e, 0x41, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x05, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x2e,
0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, 0x61, 0x6c, 0x65, 0x78, 0x2f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x73, 0x2f, 0x73, 0x73,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_channel_proto_rawDescOnce sync.Once
file_channel_proto_rawDescData = file_channel_proto_rawDesc
)
func file_channel_proto_rawDescGZIP() []byte {
file_channel_proto_rawDescOnce.Do(func() {
file_channel_proto_rawDescData = protoimpl.X.CompressGZIP(file_channel_proto_rawDescData)
})
return file_channel_proto_rawDescData
}
var file_channel_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_channel_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_channel_proto_goTypes = []interface{}{
(ChannelType)(0), // 0: ChannelType
(*C2S_JoinChannel)(nil), // 1: C2S_JoinChannel
(*S2C_JoinChannel)(nil), // 2: S2C_JoinChannel
(*C2S_LeaveChannel)(nil), // 3: C2S_LeaveChannel
(*S2C_LeaveChannel)(nil), // 4: S2C_LeaveChannel
}
var file_channel_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_channel_proto_init() }
func file_channel_proto_init() {
if File_channel_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_channel_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*C2S_JoinChannel); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*S2C_JoinChannel); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*C2S_LeaveChannel); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_channel_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*S2C_LeaveChannel); 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_channel_proto_rawDesc,
NumEnums: 1,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_channel_proto_goTypes,
DependencyIndexes: file_channel_proto_depIdxs,
EnumInfos: file_channel_proto_enumTypes,
MessageInfos: file_channel_proto_msgTypes,
}.Build()
File_channel_proto = out.File
file_channel_proto_rawDesc = nil
file_channel_proto_goTypes = nil
file_channel_proto_depIdxs = nil
}