auth.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.0
  4. // protoc v3.19.4
  5. // source: pb/auth.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. structpb "google.golang.org/protobuf/types/known/structpb"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type AuthReq struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Data *structpb.Struct `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  25. }
  26. func (x *AuthReq) Reset() {
  27. *x = AuthReq{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_pb_auth_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *AuthReq) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*AuthReq) ProtoMessage() {}
  38. func (x *AuthReq) ProtoReflect() protoreflect.Message {
  39. mi := &file_pb_auth_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use AuthReq.ProtoReflect.Descriptor instead.
  50. func (*AuthReq) Descriptor() ([]byte, []int) {
  51. return file_pb_auth_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *AuthReq) GetData() *structpb.Struct {
  54. if x != nil {
  55. return x.Data
  56. }
  57. return nil
  58. }
  59. type PlayerAuthReq struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  64. GameId string `protobuf:"bytes,2,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"`
  65. }
  66. func (x *PlayerAuthReq) Reset() {
  67. *x = PlayerAuthReq{}
  68. if protoimpl.UnsafeEnabled {
  69. mi := &file_pb_auth_proto_msgTypes[1]
  70. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  71. ms.StoreMessageInfo(mi)
  72. }
  73. }
  74. func (x *PlayerAuthReq) String() string {
  75. return protoimpl.X.MessageStringOf(x)
  76. }
  77. func (*PlayerAuthReq) ProtoMessage() {}
  78. func (x *PlayerAuthReq) ProtoReflect() protoreflect.Message {
  79. mi := &file_pb_auth_proto_msgTypes[1]
  80. if protoimpl.UnsafeEnabled && x != nil {
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. if ms.LoadMessageInfo() == nil {
  83. ms.StoreMessageInfo(mi)
  84. }
  85. return ms
  86. }
  87. return mi.MessageOf(x)
  88. }
  89. // Deprecated: Use PlayerAuthReq.ProtoReflect.Descriptor instead.
  90. func (*PlayerAuthReq) Descriptor() ([]byte, []int) {
  91. return file_pb_auth_proto_rawDescGZIP(), []int{1}
  92. }
  93. func (x *PlayerAuthReq) GetPlayerId() string {
  94. if x != nil {
  95. return x.PlayerId
  96. }
  97. return ""
  98. }
  99. func (x *PlayerAuthReq) GetGameId() string {
  100. if x != nil {
  101. return x.GameId
  102. }
  103. return ""
  104. }
  105. type CsAuthReq struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. Uname string `protobuf:"bytes,1,opt,name=uname,proto3" json:"uname,omitempty"`
  110. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  111. }
  112. func (x *CsAuthReq) Reset() {
  113. *x = CsAuthReq{}
  114. if protoimpl.UnsafeEnabled {
  115. mi := &file_pb_auth_proto_msgTypes[2]
  116. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  117. ms.StoreMessageInfo(mi)
  118. }
  119. }
  120. func (x *CsAuthReq) String() string {
  121. return protoimpl.X.MessageStringOf(x)
  122. }
  123. func (*CsAuthReq) ProtoMessage() {}
  124. func (x *CsAuthReq) ProtoReflect() protoreflect.Message {
  125. mi := &file_pb_auth_proto_msgTypes[2]
  126. if protoimpl.UnsafeEnabled && x != nil {
  127. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  128. if ms.LoadMessageInfo() == nil {
  129. ms.StoreMessageInfo(mi)
  130. }
  131. return ms
  132. }
  133. return mi.MessageOf(x)
  134. }
  135. // Deprecated: Use CsAuthReq.ProtoReflect.Descriptor instead.
  136. func (*CsAuthReq) Descriptor() ([]byte, []int) {
  137. return file_pb_auth_proto_rawDescGZIP(), []int{2}
  138. }
  139. func (x *CsAuthReq) GetUname() string {
  140. if x != nil {
  141. return x.Uname
  142. }
  143. return ""
  144. }
  145. func (x *CsAuthReq) GetPassword() string {
  146. if x != nil {
  147. return x.Password
  148. }
  149. return ""
  150. }
  151. type CheckAuthReq struct {
  152. state protoimpl.MessageState
  153. sizeCache protoimpl.SizeCache
  154. unknownFields protoimpl.UnknownFields
  155. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  156. }
  157. func (x *CheckAuthReq) Reset() {
  158. *x = CheckAuthReq{}
  159. if protoimpl.UnsafeEnabled {
  160. mi := &file_pb_auth_proto_msgTypes[3]
  161. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  162. ms.StoreMessageInfo(mi)
  163. }
  164. }
  165. func (x *CheckAuthReq) String() string {
  166. return protoimpl.X.MessageStringOf(x)
  167. }
  168. func (*CheckAuthReq) ProtoMessage() {}
  169. func (x *CheckAuthReq) ProtoReflect() protoreflect.Message {
  170. mi := &file_pb_auth_proto_msgTypes[3]
  171. if protoimpl.UnsafeEnabled && x != nil {
  172. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  173. if ms.LoadMessageInfo() == nil {
  174. ms.StoreMessageInfo(mi)
  175. }
  176. return ms
  177. }
  178. return mi.MessageOf(x)
  179. }
  180. // Deprecated: Use CheckAuthReq.ProtoReflect.Descriptor instead.
  181. func (*CheckAuthReq) Descriptor() ([]byte, []int) {
  182. return file_pb_auth_proto_rawDescGZIP(), []int{3}
  183. }
  184. func (x *CheckAuthReq) GetToken() string {
  185. if x != nil {
  186. return x.Token
  187. }
  188. return ""
  189. }
  190. type AuthResp struct {
  191. state protoimpl.MessageState
  192. sizeCache protoimpl.SizeCache
  193. unknownFields protoimpl.UnknownFields
  194. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  195. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  196. Data *structpb.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  197. }
  198. func (x *AuthResp) Reset() {
  199. *x = AuthResp{}
  200. if protoimpl.UnsafeEnabled {
  201. mi := &file_pb_auth_proto_msgTypes[4]
  202. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  203. ms.StoreMessageInfo(mi)
  204. }
  205. }
  206. func (x *AuthResp) String() string {
  207. return protoimpl.X.MessageStringOf(x)
  208. }
  209. func (*AuthResp) ProtoMessage() {}
  210. func (x *AuthResp) ProtoReflect() protoreflect.Message {
  211. mi := &file_pb_auth_proto_msgTypes[4]
  212. if protoimpl.UnsafeEnabled && x != nil {
  213. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  214. if ms.LoadMessageInfo() == nil {
  215. ms.StoreMessageInfo(mi)
  216. }
  217. return ms
  218. }
  219. return mi.MessageOf(x)
  220. }
  221. // Deprecated: Use AuthResp.ProtoReflect.Descriptor instead.
  222. func (*AuthResp) Descriptor() ([]byte, []int) {
  223. return file_pb_auth_proto_rawDescGZIP(), []int{4}
  224. }
  225. func (x *AuthResp) GetCode() int64 {
  226. if x != nil {
  227. return x.Code
  228. }
  229. return 0
  230. }
  231. func (x *AuthResp) GetMsg() string {
  232. if x != nil {
  233. return x.Msg
  234. }
  235. return ""
  236. }
  237. func (x *AuthResp) GetData() *structpb.Struct {
  238. if x != nil {
  239. return x.Data
  240. }
  241. return nil
  242. }
  243. var File_pb_auth_proto protoreflect.FileDescriptor
  244. var file_pb_auth_proto_rawDesc = []byte{
  245. 0x0a, 0x0d, 0x70, 0x62, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  246. 0x02, 0x70, 0x62, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
  247. 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  248. 0x6f, 0x22, 0x36, 0x0a, 0x07, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x2b, 0x0a, 0x04,
  249. 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f,
  250. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72,
  251. 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x45, 0x0a, 0x0d, 0x50, 0x6c, 0x61,
  252. 0x79, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c,
  253. 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
  254. 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x6d, 0x65, 0x5f,
  255. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x6d, 0x65, 0x49, 0x64,
  256. 0x22, 0x3d, 0x0a, 0x09, 0x43, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a,
  257. 0x05, 0x75, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x75, 0x6e,
  258. 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
  259. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22,
  260. 0x24, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12,
  261. 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  262. 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5d, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73,
  263. 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  264. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01,
  265. 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
  266. 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
  267. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04,
  268. 0x64, 0x61, 0x74, 0x61, 0x32, 0x89, 0x01, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x2d, 0x0a,
  269. 0x0a, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x2e, 0x70, 0x62,
  270. 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c,
  271. 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x25, 0x0a, 0x06,
  272. 0x63, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x73, 0x41, 0x75,
  273. 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52,
  274. 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x09, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68,
  275. 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52,
  276. 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70,
  277. 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  278. }
  279. var (
  280. file_pb_auth_proto_rawDescOnce sync.Once
  281. file_pb_auth_proto_rawDescData = file_pb_auth_proto_rawDesc
  282. )
  283. func file_pb_auth_proto_rawDescGZIP() []byte {
  284. file_pb_auth_proto_rawDescOnce.Do(func() {
  285. file_pb_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_auth_proto_rawDescData)
  286. })
  287. return file_pb_auth_proto_rawDescData
  288. }
  289. var file_pb_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  290. var file_pb_auth_proto_goTypes = []interface{}{
  291. (*AuthReq)(nil), // 0: pb.AuthReq
  292. (*PlayerAuthReq)(nil), // 1: pb.PlayerAuthReq
  293. (*CsAuthReq)(nil), // 2: pb.CsAuthReq
  294. (*CheckAuthReq)(nil), // 3: pb.CheckAuthReq
  295. (*AuthResp)(nil), // 4: pb.AuthResp
  296. (*structpb.Struct)(nil), // 5: google.protobuf.Struct
  297. }
  298. var file_pb_auth_proto_depIdxs = []int32{
  299. 5, // 0: pb.AuthReq.data:type_name -> google.protobuf.Struct
  300. 5, // 1: pb.AuthResp.data:type_name -> google.protobuf.Struct
  301. 1, // 2: pb.Auth.playerAuth:input_type -> pb.PlayerAuthReq
  302. 2, // 3: pb.Auth.csAuth:input_type -> pb.CsAuthReq
  303. 3, // 4: pb.Auth.checkAuth:input_type -> pb.CheckAuthReq
  304. 4, // 5: pb.Auth.playerAuth:output_type -> pb.AuthResp
  305. 4, // 6: pb.Auth.csAuth:output_type -> pb.AuthResp
  306. 4, // 7: pb.Auth.checkAuth:output_type -> pb.AuthResp
  307. 5, // [5:8] is the sub-list for method output_type
  308. 2, // [2:5] is the sub-list for method input_type
  309. 2, // [2:2] is the sub-list for extension type_name
  310. 2, // [2:2] is the sub-list for extension extendee
  311. 0, // [0:2] is the sub-list for field type_name
  312. }
  313. func init() { file_pb_auth_proto_init() }
  314. func file_pb_auth_proto_init() {
  315. if File_pb_auth_proto != nil {
  316. return
  317. }
  318. if !protoimpl.UnsafeEnabled {
  319. file_pb_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  320. switch v := v.(*AuthReq); i {
  321. case 0:
  322. return &v.state
  323. case 1:
  324. return &v.sizeCache
  325. case 2:
  326. return &v.unknownFields
  327. default:
  328. return nil
  329. }
  330. }
  331. file_pb_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  332. switch v := v.(*PlayerAuthReq); i {
  333. case 0:
  334. return &v.state
  335. case 1:
  336. return &v.sizeCache
  337. case 2:
  338. return &v.unknownFields
  339. default:
  340. return nil
  341. }
  342. }
  343. file_pb_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  344. switch v := v.(*CsAuthReq); i {
  345. case 0:
  346. return &v.state
  347. case 1:
  348. return &v.sizeCache
  349. case 2:
  350. return &v.unknownFields
  351. default:
  352. return nil
  353. }
  354. }
  355. file_pb_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  356. switch v := v.(*CheckAuthReq); i {
  357. case 0:
  358. return &v.state
  359. case 1:
  360. return &v.sizeCache
  361. case 2:
  362. return &v.unknownFields
  363. default:
  364. return nil
  365. }
  366. }
  367. file_pb_auth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  368. switch v := v.(*AuthResp); i {
  369. case 0:
  370. return &v.state
  371. case 1:
  372. return &v.sizeCache
  373. case 2:
  374. return &v.unknownFields
  375. default:
  376. return nil
  377. }
  378. }
  379. }
  380. type x struct{}
  381. out := protoimpl.TypeBuilder{
  382. File: protoimpl.DescBuilder{
  383. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  384. RawDescriptor: file_pb_auth_proto_rawDesc,
  385. NumEnums: 0,
  386. NumMessages: 5,
  387. NumExtensions: 0,
  388. NumServices: 1,
  389. },
  390. GoTypes: file_pb_auth_proto_goTypes,
  391. DependencyIndexes: file_pb_auth_proto_depIdxs,
  392. MessageInfos: file_pb_auth_proto_msgTypes,
  393. }.Build()
  394. File_pb_auth_proto = out.File
  395. file_pb_auth_proto_rawDesc = nil
  396. file_pb_auth_proto_goTypes = nil
  397. file_pb_auth_proto_depIdxs = nil
  398. }