auth.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  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. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type PlayerAuthReq struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  24. GameId string `protobuf:"bytes,2,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"`
  25. }
  26. func (x *PlayerAuthReq) Reset() {
  27. *x = PlayerAuthReq{}
  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 *PlayerAuthReq) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*PlayerAuthReq) ProtoMessage() {}
  38. func (x *PlayerAuthReq) 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 PlayerAuthReq.ProtoReflect.Descriptor instead.
  50. func (*PlayerAuthReq) Descriptor() ([]byte, []int) {
  51. return file_pb_auth_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *PlayerAuthReq) GetPlayerId() string {
  54. if x != nil {
  55. return x.PlayerId
  56. }
  57. return ""
  58. }
  59. func (x *PlayerAuthReq) GetGameId() string {
  60. if x != nil {
  61. return x.GameId
  62. }
  63. return ""
  64. }
  65. type CsAuthReq struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. CsId string `protobuf:"bytes,1,opt,name=cs_id,json=csId,proto3" json:"cs_id,omitempty"`
  70. }
  71. func (x *CsAuthReq) Reset() {
  72. *x = CsAuthReq{}
  73. if protoimpl.UnsafeEnabled {
  74. mi := &file_pb_auth_proto_msgTypes[1]
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. ms.StoreMessageInfo(mi)
  77. }
  78. }
  79. func (x *CsAuthReq) String() string {
  80. return protoimpl.X.MessageStringOf(x)
  81. }
  82. func (*CsAuthReq) ProtoMessage() {}
  83. func (x *CsAuthReq) ProtoReflect() protoreflect.Message {
  84. mi := &file_pb_auth_proto_msgTypes[1]
  85. if protoimpl.UnsafeEnabled && x != nil {
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. if ms.LoadMessageInfo() == nil {
  88. ms.StoreMessageInfo(mi)
  89. }
  90. return ms
  91. }
  92. return mi.MessageOf(x)
  93. }
  94. // Deprecated: Use CsAuthReq.ProtoReflect.Descriptor instead.
  95. func (*CsAuthReq) Descriptor() ([]byte, []int) {
  96. return file_pb_auth_proto_rawDescGZIP(), []int{1}
  97. }
  98. func (x *CsAuthReq) GetCsId() string {
  99. if x != nil {
  100. return x.CsId
  101. }
  102. return ""
  103. }
  104. type AuthResp struct {
  105. state protoimpl.MessageState
  106. sizeCache protoimpl.SizeCache
  107. unknownFields protoimpl.UnknownFields
  108. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
  109. }
  110. func (x *AuthResp) Reset() {
  111. *x = AuthResp{}
  112. if protoimpl.UnsafeEnabled {
  113. mi := &file_pb_auth_proto_msgTypes[2]
  114. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  115. ms.StoreMessageInfo(mi)
  116. }
  117. }
  118. func (x *AuthResp) String() string {
  119. return protoimpl.X.MessageStringOf(x)
  120. }
  121. func (*AuthResp) ProtoMessage() {}
  122. func (x *AuthResp) ProtoReflect() protoreflect.Message {
  123. mi := &file_pb_auth_proto_msgTypes[2]
  124. if protoimpl.UnsafeEnabled && x != nil {
  125. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  126. if ms.LoadMessageInfo() == nil {
  127. ms.StoreMessageInfo(mi)
  128. }
  129. return ms
  130. }
  131. return mi.MessageOf(x)
  132. }
  133. // Deprecated: Use AuthResp.ProtoReflect.Descriptor instead.
  134. func (*AuthResp) Descriptor() ([]byte, []int) {
  135. return file_pb_auth_proto_rawDescGZIP(), []int{2}
  136. }
  137. func (x *AuthResp) GetAccessToken() string {
  138. if x != nil {
  139. return x.AccessToken
  140. }
  141. return ""
  142. }
  143. type CheckAuthReq struct {
  144. state protoimpl.MessageState
  145. sizeCache protoimpl.SizeCache
  146. unknownFields protoimpl.UnknownFields
  147. Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
  148. AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_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) GetType() int64 {
  178. if x != nil {
  179. return x.Type
  180. }
  181. return 0
  182. }
  183. func (x *CheckAuthReq) GetAccessToken() string {
  184. if x != nil {
  185. return x.AccessToken
  186. }
  187. return ""
  188. }
  189. type CheckAuthResp struct {
  190. state protoimpl.MessageState
  191. sizeCache protoimpl.SizeCache
  192. unknownFields protoimpl.UnknownFields
  193. Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
  194. }
  195. func (x *CheckAuthResp) Reset() {
  196. *x = CheckAuthResp{}
  197. if protoimpl.UnsafeEnabled {
  198. mi := &file_pb_auth_proto_msgTypes[4]
  199. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  200. ms.StoreMessageInfo(mi)
  201. }
  202. }
  203. func (x *CheckAuthResp) String() string {
  204. return protoimpl.X.MessageStringOf(x)
  205. }
  206. func (*CheckAuthResp) ProtoMessage() {}
  207. func (x *CheckAuthResp) ProtoReflect() protoreflect.Message {
  208. mi := &file_pb_auth_proto_msgTypes[4]
  209. if protoimpl.UnsafeEnabled && x != nil {
  210. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  211. if ms.LoadMessageInfo() == nil {
  212. ms.StoreMessageInfo(mi)
  213. }
  214. return ms
  215. }
  216. return mi.MessageOf(x)
  217. }
  218. // Deprecated: Use CheckAuthResp.ProtoReflect.Descriptor instead.
  219. func (*CheckAuthResp) Descriptor() ([]byte, []int) {
  220. return file_pb_auth_proto_rawDescGZIP(), []int{4}
  221. }
  222. func (x *CheckAuthResp) GetUid() string {
  223. if x != nil {
  224. return x.Uid
  225. }
  226. return ""
  227. }
  228. var File_pb_auth_proto protoreflect.FileDescriptor
  229. var file_pb_auth_proto_rawDesc = []byte{
  230. 0x0a, 0x0d, 0x70, 0x62, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  231. 0x02, 0x70, 0x62, 0x22, 0x45, 0x0a, 0x0d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x75, 0x74,
  232. 0x68, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69,
  233. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49,
  234. 0x64, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
  235. 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x22, 0x20, 0x0a, 0x09, 0x43, 0x73,
  236. 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x13, 0x0a, 0x05, 0x63, 0x73, 0x5f, 0x69, 0x64,
  237. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x73, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x08,
  238. 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65,
  239. 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  240. 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x45, 0x0a, 0x0c, 0x43,
  241. 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x74,
  242. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
  243. 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
  244. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b,
  245. 0x65, 0x6e, 0x22, 0x21, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52,
  246. 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  247. 0x52, 0x03, 0x75, 0x69, 0x64, 0x32, 0x8e, 0x01, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x2d,
  248. 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x2e, 0x70,
  249. 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a,
  250. 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x25, 0x0a,
  251. 0x06, 0x63, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x73, 0x41,
  252. 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68,
  253. 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x09, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74,
  254. 0x68, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68,
  255. 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75,
  256. 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06,
  257. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  258. }
  259. var (
  260. file_pb_auth_proto_rawDescOnce sync.Once
  261. file_pb_auth_proto_rawDescData = file_pb_auth_proto_rawDesc
  262. )
  263. func file_pb_auth_proto_rawDescGZIP() []byte {
  264. file_pb_auth_proto_rawDescOnce.Do(func() {
  265. file_pb_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_auth_proto_rawDescData)
  266. })
  267. return file_pb_auth_proto_rawDescData
  268. }
  269. var file_pb_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  270. var file_pb_auth_proto_goTypes = []interface{}{
  271. (*PlayerAuthReq)(nil), // 0: pb.PlayerAuthReq
  272. (*CsAuthReq)(nil), // 1: pb.CsAuthReq
  273. (*AuthResp)(nil), // 2: pb.AuthResp
  274. (*CheckAuthReq)(nil), // 3: pb.CheckAuthReq
  275. (*CheckAuthResp)(nil), // 4: pb.CheckAuthResp
  276. }
  277. var file_pb_auth_proto_depIdxs = []int32{
  278. 0, // 0: pb.Auth.playerAuth:input_type -> pb.PlayerAuthReq
  279. 1, // 1: pb.Auth.csAuth:input_type -> pb.CsAuthReq
  280. 3, // 2: pb.Auth.checkAuth:input_type -> pb.CheckAuthReq
  281. 2, // 3: pb.Auth.playerAuth:output_type -> pb.AuthResp
  282. 2, // 4: pb.Auth.csAuth:output_type -> pb.AuthResp
  283. 4, // 5: pb.Auth.checkAuth:output_type -> pb.CheckAuthResp
  284. 3, // [3:6] is the sub-list for method output_type
  285. 0, // [0:3] is the sub-list for method input_type
  286. 0, // [0:0] is the sub-list for extension type_name
  287. 0, // [0:0] is the sub-list for extension extendee
  288. 0, // [0:0] is the sub-list for field type_name
  289. }
  290. func init() { file_pb_auth_proto_init() }
  291. func file_pb_auth_proto_init() {
  292. if File_pb_auth_proto != nil {
  293. return
  294. }
  295. if !protoimpl.UnsafeEnabled {
  296. file_pb_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  297. switch v := v.(*PlayerAuthReq); i {
  298. case 0:
  299. return &v.state
  300. case 1:
  301. return &v.sizeCache
  302. case 2:
  303. return &v.unknownFields
  304. default:
  305. return nil
  306. }
  307. }
  308. file_pb_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  309. switch v := v.(*CsAuthReq); i {
  310. case 0:
  311. return &v.state
  312. case 1:
  313. return &v.sizeCache
  314. case 2:
  315. return &v.unknownFields
  316. default:
  317. return nil
  318. }
  319. }
  320. file_pb_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  321. switch v := v.(*AuthResp); i {
  322. case 0:
  323. return &v.state
  324. case 1:
  325. return &v.sizeCache
  326. case 2:
  327. return &v.unknownFields
  328. default:
  329. return nil
  330. }
  331. }
  332. file_pb_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  333. switch v := v.(*CheckAuthReq); i {
  334. case 0:
  335. return &v.state
  336. case 1:
  337. return &v.sizeCache
  338. case 2:
  339. return &v.unknownFields
  340. default:
  341. return nil
  342. }
  343. }
  344. file_pb_auth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  345. switch v := v.(*CheckAuthResp); i {
  346. case 0:
  347. return &v.state
  348. case 1:
  349. return &v.sizeCache
  350. case 2:
  351. return &v.unknownFields
  352. default:
  353. return nil
  354. }
  355. }
  356. }
  357. type x struct{}
  358. out := protoimpl.TypeBuilder{
  359. File: protoimpl.DescBuilder{
  360. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  361. RawDescriptor: file_pb_auth_proto_rawDesc,
  362. NumEnums: 0,
  363. NumMessages: 5,
  364. NumExtensions: 0,
  365. NumServices: 1,
  366. },
  367. GoTypes: file_pb_auth_proto_goTypes,
  368. DependencyIndexes: file_pb_auth_proto_depIdxs,
  369. MessageInfos: file_pb_auth_proto_msgTypes,
  370. }.Build()
  371. File_pb_auth_proto = out.File
  372. file_pb_auth_proto_rawDesc = nil
  373. file_pb_auth_proto_goTypes = nil
  374. file_pb_auth_proto_depIdxs = nil
  375. }