auth.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  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. CsId string `protobuf:"bytes,1,opt,name=cs_id,json=csId,proto3" json:"cs_id,omitempty"`
  110. }
  111. func (x *CsAuthReq) Reset() {
  112. *x = CsAuthReq{}
  113. if protoimpl.UnsafeEnabled {
  114. mi := &file_pb_auth_proto_msgTypes[2]
  115. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  116. ms.StoreMessageInfo(mi)
  117. }
  118. }
  119. func (x *CsAuthReq) String() string {
  120. return protoimpl.X.MessageStringOf(x)
  121. }
  122. func (*CsAuthReq) ProtoMessage() {}
  123. func (x *CsAuthReq) ProtoReflect() protoreflect.Message {
  124. mi := &file_pb_auth_proto_msgTypes[2]
  125. if protoimpl.UnsafeEnabled && x != nil {
  126. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  127. if ms.LoadMessageInfo() == nil {
  128. ms.StoreMessageInfo(mi)
  129. }
  130. return ms
  131. }
  132. return mi.MessageOf(x)
  133. }
  134. // Deprecated: Use CsAuthReq.ProtoReflect.Descriptor instead.
  135. func (*CsAuthReq) Descriptor() ([]byte, []int) {
  136. return file_pb_auth_proto_rawDescGZIP(), []int{2}
  137. }
  138. func (x *CsAuthReq) GetCsId() string {
  139. if x != nil {
  140. return x.CsId
  141. }
  142. return ""
  143. }
  144. type CheckAuthReq struct {
  145. state protoimpl.MessageState
  146. sizeCache protoimpl.SizeCache
  147. unknownFields protoimpl.UnknownFields
  148. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  149. }
  150. func (x *CheckAuthReq) Reset() {
  151. *x = CheckAuthReq{}
  152. if protoimpl.UnsafeEnabled {
  153. mi := &file_pb_auth_proto_msgTypes[3]
  154. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  155. ms.StoreMessageInfo(mi)
  156. }
  157. }
  158. func (x *CheckAuthReq) String() string {
  159. return protoimpl.X.MessageStringOf(x)
  160. }
  161. func (*CheckAuthReq) ProtoMessage() {}
  162. func (x *CheckAuthReq) ProtoReflect() protoreflect.Message {
  163. mi := &file_pb_auth_proto_msgTypes[3]
  164. if protoimpl.UnsafeEnabled && x != nil {
  165. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  166. if ms.LoadMessageInfo() == nil {
  167. ms.StoreMessageInfo(mi)
  168. }
  169. return ms
  170. }
  171. return mi.MessageOf(x)
  172. }
  173. // Deprecated: Use CheckAuthReq.ProtoReflect.Descriptor instead.
  174. func (*CheckAuthReq) Descriptor() ([]byte, []int) {
  175. return file_pb_auth_proto_rawDescGZIP(), []int{3}
  176. }
  177. func (x *CheckAuthReq) GetToken() string {
  178. if x != nil {
  179. return x.Token
  180. }
  181. return ""
  182. }
  183. type AuthResp struct {
  184. state protoimpl.MessageState
  185. sizeCache protoimpl.SizeCache
  186. unknownFields protoimpl.UnknownFields
  187. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  188. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  189. Data *structpb.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  190. }
  191. func (x *AuthResp) Reset() {
  192. *x = AuthResp{}
  193. if protoimpl.UnsafeEnabled {
  194. mi := &file_pb_auth_proto_msgTypes[4]
  195. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  196. ms.StoreMessageInfo(mi)
  197. }
  198. }
  199. func (x *AuthResp) String() string {
  200. return protoimpl.X.MessageStringOf(x)
  201. }
  202. func (*AuthResp) ProtoMessage() {}
  203. func (x *AuthResp) ProtoReflect() protoreflect.Message {
  204. mi := &file_pb_auth_proto_msgTypes[4]
  205. if protoimpl.UnsafeEnabled && x != nil {
  206. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  207. if ms.LoadMessageInfo() == nil {
  208. ms.StoreMessageInfo(mi)
  209. }
  210. return ms
  211. }
  212. return mi.MessageOf(x)
  213. }
  214. // Deprecated: Use AuthResp.ProtoReflect.Descriptor instead.
  215. func (*AuthResp) Descriptor() ([]byte, []int) {
  216. return file_pb_auth_proto_rawDescGZIP(), []int{4}
  217. }
  218. func (x *AuthResp) GetCode() int64 {
  219. if x != nil {
  220. return x.Code
  221. }
  222. return 0
  223. }
  224. func (x *AuthResp) GetMsg() string {
  225. if x != nil {
  226. return x.Msg
  227. }
  228. return ""
  229. }
  230. func (x *AuthResp) GetData() *structpb.Struct {
  231. if x != nil {
  232. return x.Data
  233. }
  234. return nil
  235. }
  236. var File_pb_auth_proto protoreflect.FileDescriptor
  237. var file_pb_auth_proto_rawDesc = []byte{
  238. 0x0a, 0x0d, 0x70, 0x62, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  239. 0x02, 0x70, 0x62, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
  240. 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  241. 0x6f, 0x22, 0x36, 0x0a, 0x07, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x2b, 0x0a, 0x04,
  242. 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f,
  243. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72,
  244. 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x45, 0x0a, 0x0d, 0x50, 0x6c, 0x61,
  245. 0x79, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c,
  246. 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
  247. 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x6d, 0x65, 0x5f,
  248. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x6d, 0x65, 0x49, 0x64,
  249. 0x22, 0x20, 0x0a, 0x09, 0x43, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x13, 0x0a,
  250. 0x05, 0x63, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x73,
  251. 0x49, 0x64, 0x22, 0x24, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52,
  252. 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
  253. 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5d, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68,
  254. 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
  255. 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18,
  256. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61,
  257. 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  258. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63,
  259. 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x89, 0x01, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68,
  260. 0x12, 0x2d, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11,
  261. 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65,
  262. 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12,
  263. 0x25, 0x0a, 0x06, 0x63, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x43,
  264. 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75,
  265. 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x09, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x41,
  266. 0x75, 0x74, 0x68, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75,
  267. 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52,
  268. 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
  269. 0x74, 0x6f, 0x33,
  270. }
  271. var (
  272. file_pb_auth_proto_rawDescOnce sync.Once
  273. file_pb_auth_proto_rawDescData = file_pb_auth_proto_rawDesc
  274. )
  275. func file_pb_auth_proto_rawDescGZIP() []byte {
  276. file_pb_auth_proto_rawDescOnce.Do(func() {
  277. file_pb_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_auth_proto_rawDescData)
  278. })
  279. return file_pb_auth_proto_rawDescData
  280. }
  281. var file_pb_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  282. var file_pb_auth_proto_goTypes = []interface{}{
  283. (*AuthReq)(nil), // 0: pb.AuthReq
  284. (*PlayerAuthReq)(nil), // 1: pb.PlayerAuthReq
  285. (*CsAuthReq)(nil), // 2: pb.CsAuthReq
  286. (*CheckAuthReq)(nil), // 3: pb.CheckAuthReq
  287. (*AuthResp)(nil), // 4: pb.AuthResp
  288. (*structpb.Struct)(nil), // 5: google.protobuf.Struct
  289. }
  290. var file_pb_auth_proto_depIdxs = []int32{
  291. 5, // 0: pb.AuthReq.data:type_name -> google.protobuf.Struct
  292. 5, // 1: pb.AuthResp.data:type_name -> google.protobuf.Struct
  293. 1, // 2: pb.Auth.playerAuth:input_type -> pb.PlayerAuthReq
  294. 2, // 3: pb.Auth.csAuth:input_type -> pb.CsAuthReq
  295. 3, // 4: pb.Auth.checkAuth:input_type -> pb.CheckAuthReq
  296. 4, // 5: pb.Auth.playerAuth:output_type -> pb.AuthResp
  297. 4, // 6: pb.Auth.csAuth:output_type -> pb.AuthResp
  298. 4, // 7: pb.Auth.checkAuth:output_type -> pb.AuthResp
  299. 5, // [5:8] is the sub-list for method output_type
  300. 2, // [2:5] is the sub-list for method input_type
  301. 2, // [2:2] is the sub-list for extension type_name
  302. 2, // [2:2] is the sub-list for extension extendee
  303. 0, // [0:2] is the sub-list for field type_name
  304. }
  305. func init() { file_pb_auth_proto_init() }
  306. func file_pb_auth_proto_init() {
  307. if File_pb_auth_proto != nil {
  308. return
  309. }
  310. if !protoimpl.UnsafeEnabled {
  311. file_pb_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  312. switch v := v.(*AuthReq); i {
  313. case 0:
  314. return &v.state
  315. case 1:
  316. return &v.sizeCache
  317. case 2:
  318. return &v.unknownFields
  319. default:
  320. return nil
  321. }
  322. }
  323. file_pb_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  324. switch v := v.(*PlayerAuthReq); i {
  325. case 0:
  326. return &v.state
  327. case 1:
  328. return &v.sizeCache
  329. case 2:
  330. return &v.unknownFields
  331. default:
  332. return nil
  333. }
  334. }
  335. file_pb_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  336. switch v := v.(*CsAuthReq); i {
  337. case 0:
  338. return &v.state
  339. case 1:
  340. return &v.sizeCache
  341. case 2:
  342. return &v.unknownFields
  343. default:
  344. return nil
  345. }
  346. }
  347. file_pb_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  348. switch v := v.(*CheckAuthReq); i {
  349. case 0:
  350. return &v.state
  351. case 1:
  352. return &v.sizeCache
  353. case 2:
  354. return &v.unknownFields
  355. default:
  356. return nil
  357. }
  358. }
  359. file_pb_auth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  360. switch v := v.(*AuthResp); i {
  361. case 0:
  362. return &v.state
  363. case 1:
  364. return &v.sizeCache
  365. case 2:
  366. return &v.unknownFields
  367. default:
  368. return nil
  369. }
  370. }
  371. }
  372. type x struct{}
  373. out := protoimpl.TypeBuilder{
  374. File: protoimpl.DescBuilder{
  375. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  376. RawDescriptor: file_pb_auth_proto_rawDesc,
  377. NumEnums: 0,
  378. NumMessages: 5,
  379. NumExtensions: 0,
  380. NumServices: 1,
  381. },
  382. GoTypes: file_pb_auth_proto_goTypes,
  383. DependencyIndexes: file_pb_auth_proto_depIdxs,
  384. MessageInfos: file_pb_auth_proto_msgTypes,
  385. }.Build()
  386. File_pb_auth_proto = out.File
  387. file_pb_auth_proto_rawDesc = nil
  388. file_pb_auth_proto_goTypes = nil
  389. file_pb_auth_proto_depIdxs = nil
  390. }