player.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. // TODO message结构的属性名请使用 驼峰小写字母开始
  2. // TODO enum枚举的属性名请使用 驼峰大写字母开始
  3. // Code generated by protoc-gen-go. DO NOT EDIT.
  4. // versions:
  5. // protoc-gen-go v1.26.0
  6. // protoc v5.27.2
  7. // source: player.proto
  8. package pb
  9. import (
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. reflect "reflect"
  13. sync "sync"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // 玩家属性变化
  22. type PlayerAttribute int32
  23. const (
  24. PlayerAttribute_AA_AttributeNone PlayerAttribute = 0 // 未使用
  25. )
  26. // Enum value maps for PlayerAttribute.
  27. var (
  28. PlayerAttribute_name = map[int32]string{
  29. 0: "AA_AttributeNone",
  30. }
  31. PlayerAttribute_value = map[string]int32{
  32. "AA_AttributeNone": 0,
  33. }
  34. )
  35. func (x PlayerAttribute) Enum() *PlayerAttribute {
  36. p := new(PlayerAttribute)
  37. *p = x
  38. return p
  39. }
  40. func (x PlayerAttribute) String() string {
  41. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  42. }
  43. func (PlayerAttribute) Descriptor() protoreflect.EnumDescriptor {
  44. return file_player_proto_enumTypes[0].Descriptor()
  45. }
  46. func (PlayerAttribute) Type() protoreflect.EnumType {
  47. return &file_player_proto_enumTypes[0]
  48. }
  49. func (x PlayerAttribute) Number() protoreflect.EnumNumber {
  50. return protoreflect.EnumNumber(x)
  51. }
  52. // Deprecated: Use PlayerAttribute.Descriptor instead.
  53. func (PlayerAttribute) EnumDescriptor() ([]byte, []int) {
  54. return file_player_proto_rawDescGZIP(), []int{0}
  55. }
  56. // 玩家基本信息
  57. type Player struct {
  58. state protoimpl.MessageState
  59. sizeCache protoimpl.SizeCache
  60. unknownFields protoimpl.UnknownFields
  61. PlayerId int64 `protobuf:"varint,1,opt,name=playerId,proto3" json:"playerId,omitempty"` // 玩家ID
  62. PlayerName string `protobuf:"bytes,2,opt,name=playerName,proto3" json:"playerName,omitempty"` // 玩家昵称
  63. Gender int32 `protobuf:"varint,3,opt,name=gender,proto3" json:"gender,omitempty"` // 角色性别
  64. Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"` // 角色等级
  65. CreateTime int64 `protobuf:"varint,5,opt,name=createTime,proto3" json:"createTime,omitempty"` // 创建时间
  66. Exp int64 `protobuf:"varint,6,opt,name=exp,proto3" json:"exp,omitempty"` // 经验值
  67. }
  68. func (x *Player) Reset() {
  69. *x = Player{}
  70. if protoimpl.UnsafeEnabled {
  71. mi := &file_player_proto_msgTypes[0]
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. ms.StoreMessageInfo(mi)
  74. }
  75. }
  76. func (x *Player) String() string {
  77. return protoimpl.X.MessageStringOf(x)
  78. }
  79. func (*Player) ProtoMessage() {}
  80. func (x *Player) ProtoReflect() protoreflect.Message {
  81. mi := &file_player_proto_msgTypes[0]
  82. if protoimpl.UnsafeEnabled && x != nil {
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. if ms.LoadMessageInfo() == nil {
  85. ms.StoreMessageInfo(mi)
  86. }
  87. return ms
  88. }
  89. return mi.MessageOf(x)
  90. }
  91. // Deprecated: Use Player.ProtoReflect.Descriptor instead.
  92. func (*Player) Descriptor() ([]byte, []int) {
  93. return file_player_proto_rawDescGZIP(), []int{0}
  94. }
  95. func (x *Player) GetPlayerId() int64 {
  96. if x != nil {
  97. return x.PlayerId
  98. }
  99. return 0
  100. }
  101. func (x *Player) GetPlayerName() string {
  102. if x != nil {
  103. return x.PlayerName
  104. }
  105. return ""
  106. }
  107. func (x *Player) GetGender() int32 {
  108. if x != nil {
  109. return x.Gender
  110. }
  111. return 0
  112. }
  113. func (x *Player) GetLevel() int32 {
  114. if x != nil {
  115. return x.Level
  116. }
  117. return 0
  118. }
  119. func (x *Player) GetCreateTime() int64 {
  120. if x != nil {
  121. return x.CreateTime
  122. }
  123. return 0
  124. }
  125. func (x *Player) GetExp() int64 {
  126. if x != nil {
  127. return x.Exp
  128. }
  129. return 0
  130. }
  131. // 查询角色响应
  132. type PlayerSelectResponse struct {
  133. state protoimpl.MessageState
  134. sizeCache protoimpl.SizeCache
  135. unknownFields protoimpl.UnknownFields
  136. List []*Player `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // 玩家列表
  137. }
  138. func (x *PlayerSelectResponse) Reset() {
  139. *x = PlayerSelectResponse{}
  140. if protoimpl.UnsafeEnabled {
  141. mi := &file_player_proto_msgTypes[1]
  142. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  143. ms.StoreMessageInfo(mi)
  144. }
  145. }
  146. func (x *PlayerSelectResponse) String() string {
  147. return protoimpl.X.MessageStringOf(x)
  148. }
  149. func (*PlayerSelectResponse) ProtoMessage() {}
  150. func (x *PlayerSelectResponse) ProtoReflect() protoreflect.Message {
  151. mi := &file_player_proto_msgTypes[1]
  152. if protoimpl.UnsafeEnabled && x != nil {
  153. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  154. if ms.LoadMessageInfo() == nil {
  155. ms.StoreMessageInfo(mi)
  156. }
  157. return ms
  158. }
  159. return mi.MessageOf(x)
  160. }
  161. // Deprecated: Use PlayerSelectResponse.ProtoReflect.Descriptor instead.
  162. func (*PlayerSelectResponse) Descriptor() ([]byte, []int) {
  163. return file_player_proto_rawDescGZIP(), []int{1}
  164. }
  165. func (x *PlayerSelectResponse) GetList() []*Player {
  166. if x != nil {
  167. return x.List
  168. }
  169. return nil
  170. }
  171. // 请求创建角色
  172. type PlayerCreateRequest struct {
  173. state protoimpl.MessageState
  174. sizeCache protoimpl.SizeCache
  175. unknownFields protoimpl.UnknownFields
  176. PlayerName string `protobuf:"bytes,1,opt,name=playerName,proto3" json:"playerName,omitempty"` // 玩家昵称
  177. Gender int32 `protobuf:"varint,2,opt,name=gender,proto3" json:"gender,omitempty"` // 性别(0女,1男)
  178. }
  179. func (x *PlayerCreateRequest) Reset() {
  180. *x = PlayerCreateRequest{}
  181. if protoimpl.UnsafeEnabled {
  182. mi := &file_player_proto_msgTypes[2]
  183. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  184. ms.StoreMessageInfo(mi)
  185. }
  186. }
  187. func (x *PlayerCreateRequest) String() string {
  188. return protoimpl.X.MessageStringOf(x)
  189. }
  190. func (*PlayerCreateRequest) ProtoMessage() {}
  191. func (x *PlayerCreateRequest) ProtoReflect() protoreflect.Message {
  192. mi := &file_player_proto_msgTypes[2]
  193. if protoimpl.UnsafeEnabled && x != nil {
  194. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  195. if ms.LoadMessageInfo() == nil {
  196. ms.StoreMessageInfo(mi)
  197. }
  198. return ms
  199. }
  200. return mi.MessageOf(x)
  201. }
  202. // Deprecated: Use PlayerCreateRequest.ProtoReflect.Descriptor instead.
  203. func (*PlayerCreateRequest) Descriptor() ([]byte, []int) {
  204. return file_player_proto_rawDescGZIP(), []int{2}
  205. }
  206. func (x *PlayerCreateRequest) GetPlayerName() string {
  207. if x != nil {
  208. return x.PlayerName
  209. }
  210. return ""
  211. }
  212. func (x *PlayerCreateRequest) GetGender() int32 {
  213. if x != nil {
  214. return x.Gender
  215. }
  216. return 0
  217. }
  218. // 创建角色回应
  219. type PlayerCreateResponse struct {
  220. state protoimpl.MessageState
  221. sizeCache protoimpl.SizeCache
  222. unknownFields protoimpl.UnknownFields
  223. Player *Player `protobuf:"bytes,1,opt,name=player,proto3" json:"player,omitempty"` // 玩家信息
  224. }
  225. func (x *PlayerCreateResponse) Reset() {
  226. *x = PlayerCreateResponse{}
  227. if protoimpl.UnsafeEnabled {
  228. mi := &file_player_proto_msgTypes[3]
  229. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  230. ms.StoreMessageInfo(mi)
  231. }
  232. }
  233. func (x *PlayerCreateResponse) String() string {
  234. return protoimpl.X.MessageStringOf(x)
  235. }
  236. func (*PlayerCreateResponse) ProtoMessage() {}
  237. func (x *PlayerCreateResponse) ProtoReflect() protoreflect.Message {
  238. mi := &file_player_proto_msgTypes[3]
  239. if protoimpl.UnsafeEnabled && x != nil {
  240. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  241. if ms.LoadMessageInfo() == nil {
  242. ms.StoreMessageInfo(mi)
  243. }
  244. return ms
  245. }
  246. return mi.MessageOf(x)
  247. }
  248. // Deprecated: Use PlayerCreateResponse.ProtoReflect.Descriptor instead.
  249. func (*PlayerCreateResponse) Descriptor() ([]byte, []int) {
  250. return file_player_proto_rawDescGZIP(), []int{3}
  251. }
  252. func (x *PlayerCreateResponse) GetPlayer() *Player {
  253. if x != nil {
  254. return x.Player
  255. }
  256. return nil
  257. }
  258. // 进入游戏响应
  259. type PlayerEnterResponse struct {
  260. state protoimpl.MessageState
  261. sizeCache protoimpl.SizeCache
  262. unknownFields protoimpl.UnknownFields
  263. GuideMaps map[int32]int32 `protobuf:"bytes,2,rep,name=guideMaps,proto3" json:"guideMaps,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 新手引导记录列表
  264. }
  265. func (x *PlayerEnterResponse) Reset() {
  266. *x = PlayerEnterResponse{}
  267. if protoimpl.UnsafeEnabled {
  268. mi := &file_player_proto_msgTypes[4]
  269. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  270. ms.StoreMessageInfo(mi)
  271. }
  272. }
  273. func (x *PlayerEnterResponse) String() string {
  274. return protoimpl.X.MessageStringOf(x)
  275. }
  276. func (*PlayerEnterResponse) ProtoMessage() {}
  277. func (x *PlayerEnterResponse) ProtoReflect() protoreflect.Message {
  278. mi := &file_player_proto_msgTypes[4]
  279. if protoimpl.UnsafeEnabled && x != nil {
  280. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  281. if ms.LoadMessageInfo() == nil {
  282. ms.StoreMessageInfo(mi)
  283. }
  284. return ms
  285. }
  286. return mi.MessageOf(x)
  287. }
  288. // Deprecated: Use PlayerEnterResponse.ProtoReflect.Descriptor instead.
  289. func (*PlayerEnterResponse) Descriptor() ([]byte, []int) {
  290. return file_player_proto_rawDescGZIP(), []int{4}
  291. }
  292. func (x *PlayerEnterResponse) GetGuideMaps() map[int32]int32 {
  293. if x != nil {
  294. return x.GuideMaps
  295. }
  296. return nil
  297. }
  298. var File_player_proto protoreflect.FileDescriptor
  299. var file_player_proto_rawDesc = []byte{
  300. 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02,
  301. 0x70, 0x62, 0x22, 0xa4, 0x01, 0x0a, 0x06, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1a, 0x0a,
  302. 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  303. 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61,
  304. 0x79, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70,
  305. 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e,
  306. 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65,
  307. 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
  308. 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74,
  309. 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65,
  310. 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x06,
  311. 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x78, 0x70, 0x22, 0x36, 0x0a, 0x14, 0x50, 0x6c, 0x61,
  312. 0x79, 0x65, 0x72, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  313. 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
  314. 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x04, 0x6c, 0x69, 0x73,
  315. 0x74, 0x22, 0x4d, 0x0a, 0x13, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74,
  316. 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x79,
  317. 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6c,
  318. 0x61, 0x79, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64,
  319. 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72,
  320. 0x22, 0x3a, 0x0a, 0x14, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
  321. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x70, 0x6c, 0x61, 0x79,
  322. 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c,
  323. 0x61, 0x79, 0x65, 0x72, 0x52, 0x06, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x22, 0x99, 0x01, 0x0a,
  324. 0x13, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
  325. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x67, 0x75, 0x69, 0x64, 0x65, 0x4d, 0x61, 0x70,
  326. 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61,
  327. 0x79, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  328. 0x2e, 0x47, 0x75, 0x69, 0x64, 0x65, 0x4d, 0x61, 0x70, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
  329. 0x09, 0x67, 0x75, 0x69, 0x64, 0x65, 0x4d, 0x61, 0x70, 0x73, 0x1a, 0x3c, 0x0a, 0x0e, 0x47, 0x75,
  330. 0x69, 0x64, 0x65, 0x4d, 0x61, 0x70, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
  331. 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
  332. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76,
  333. 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x27, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x79,
  334. 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x41,
  335. 0x41, 0x5f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4e, 0x6f, 0x6e, 0x65, 0x10,
  336. 0x00, 0x42, 0x05, 0x5a, 0x03, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  337. }
  338. var (
  339. file_player_proto_rawDescOnce sync.Once
  340. file_player_proto_rawDescData = file_player_proto_rawDesc
  341. )
  342. func file_player_proto_rawDescGZIP() []byte {
  343. file_player_proto_rawDescOnce.Do(func() {
  344. file_player_proto_rawDescData = protoimpl.X.CompressGZIP(file_player_proto_rawDescData)
  345. })
  346. return file_player_proto_rawDescData
  347. }
  348. var file_player_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  349. var file_player_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  350. var file_player_proto_goTypes = []interface{}{
  351. (PlayerAttribute)(0), // 0: pb.PlayerAttribute
  352. (*Player)(nil), // 1: pb.Player
  353. (*PlayerSelectResponse)(nil), // 2: pb.PlayerSelectResponse
  354. (*PlayerCreateRequest)(nil), // 3: pb.PlayerCreateRequest
  355. (*PlayerCreateResponse)(nil), // 4: pb.PlayerCreateResponse
  356. (*PlayerEnterResponse)(nil), // 5: pb.PlayerEnterResponse
  357. nil, // 6: pb.PlayerEnterResponse.GuideMapsEntry
  358. }
  359. var file_player_proto_depIdxs = []int32{
  360. 1, // 0: pb.PlayerSelectResponse.list:type_name -> pb.Player
  361. 1, // 1: pb.PlayerCreateResponse.player:type_name -> pb.Player
  362. 6, // 2: pb.PlayerEnterResponse.guideMaps:type_name -> pb.PlayerEnterResponse.GuideMapsEntry
  363. 3, // [3:3] is the sub-list for method output_type
  364. 3, // [3:3] is the sub-list for method input_type
  365. 3, // [3:3] is the sub-list for extension type_name
  366. 3, // [3:3] is the sub-list for extension extendee
  367. 0, // [0:3] is the sub-list for field type_name
  368. }
  369. func init() { file_player_proto_init() }
  370. func file_player_proto_init() {
  371. if File_player_proto != nil {
  372. return
  373. }
  374. if !protoimpl.UnsafeEnabled {
  375. file_player_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  376. switch v := v.(*Player); i {
  377. case 0:
  378. return &v.state
  379. case 1:
  380. return &v.sizeCache
  381. case 2:
  382. return &v.unknownFields
  383. default:
  384. return nil
  385. }
  386. }
  387. file_player_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  388. switch v := v.(*PlayerSelectResponse); i {
  389. case 0:
  390. return &v.state
  391. case 1:
  392. return &v.sizeCache
  393. case 2:
  394. return &v.unknownFields
  395. default:
  396. return nil
  397. }
  398. }
  399. file_player_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  400. switch v := v.(*PlayerCreateRequest); i {
  401. case 0:
  402. return &v.state
  403. case 1:
  404. return &v.sizeCache
  405. case 2:
  406. return &v.unknownFields
  407. default:
  408. return nil
  409. }
  410. }
  411. file_player_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  412. switch v := v.(*PlayerCreateResponse); i {
  413. case 0:
  414. return &v.state
  415. case 1:
  416. return &v.sizeCache
  417. case 2:
  418. return &v.unknownFields
  419. default:
  420. return nil
  421. }
  422. }
  423. file_player_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  424. switch v := v.(*PlayerEnterResponse); i {
  425. case 0:
  426. return &v.state
  427. case 1:
  428. return &v.sizeCache
  429. case 2:
  430. return &v.unknownFields
  431. default:
  432. return nil
  433. }
  434. }
  435. }
  436. type x struct{}
  437. out := protoimpl.TypeBuilder{
  438. File: protoimpl.DescBuilder{
  439. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  440. RawDescriptor: file_player_proto_rawDesc,
  441. NumEnums: 1,
  442. NumMessages: 6,
  443. NumExtensions: 0,
  444. NumServices: 0,
  445. },
  446. GoTypes: file_player_proto_goTypes,
  447. DependencyIndexes: file_player_proto_depIdxs,
  448. EnumInfos: file_player_proto_enumTypes,
  449. MessageInfos: file_player_proto_msgTypes,
  450. }.Build()
  451. File_player_proto = out.File
  452. file_player_proto_rawDesc = nil
  453. file_player_proto_goTypes = nil
  454. file_player_proto_depIdxs = nil
  455. }