auth.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
  148. }
  149. func (x *CheckAuthReq) Reset() {
  150. *x = CheckAuthReq{}
  151. if protoimpl.UnsafeEnabled {
  152. mi := &file_pb_auth_proto_msgTypes[3]
  153. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  154. ms.StoreMessageInfo(mi)
  155. }
  156. }
  157. func (x *CheckAuthReq) String() string {
  158. return protoimpl.X.MessageStringOf(x)
  159. }
  160. func (*CheckAuthReq) ProtoMessage() {}
  161. func (x *CheckAuthReq) ProtoReflect() protoreflect.Message {
  162. mi := &file_pb_auth_proto_msgTypes[3]
  163. if protoimpl.UnsafeEnabled && x != nil {
  164. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  165. if ms.LoadMessageInfo() == nil {
  166. ms.StoreMessageInfo(mi)
  167. }
  168. return ms
  169. }
  170. return mi.MessageOf(x)
  171. }
  172. // Deprecated: Use CheckAuthReq.ProtoReflect.Descriptor instead.
  173. func (*CheckAuthReq) Descriptor() ([]byte, []int) {
  174. return file_pb_auth_proto_rawDescGZIP(), []int{3}
  175. }
  176. func (x *CheckAuthReq) GetAccessToken() string {
  177. if x != nil {
  178. return x.AccessToken
  179. }
  180. return ""
  181. }
  182. type CheckAuthResp struct {
  183. state protoimpl.MessageState
  184. sizeCache protoimpl.SizeCache
  185. unknownFields protoimpl.UnknownFields
  186. }
  187. func (x *CheckAuthResp) Reset() {
  188. *x = CheckAuthResp{}
  189. if protoimpl.UnsafeEnabled {
  190. mi := &file_pb_auth_proto_msgTypes[4]
  191. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  192. ms.StoreMessageInfo(mi)
  193. }
  194. }
  195. func (x *CheckAuthResp) String() string {
  196. return protoimpl.X.MessageStringOf(x)
  197. }
  198. func (*CheckAuthResp) ProtoMessage() {}
  199. func (x *CheckAuthResp) ProtoReflect() protoreflect.Message {
  200. mi := &file_pb_auth_proto_msgTypes[4]
  201. if protoimpl.UnsafeEnabled && x != nil {
  202. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  203. if ms.LoadMessageInfo() == nil {
  204. ms.StoreMessageInfo(mi)
  205. }
  206. return ms
  207. }
  208. return mi.MessageOf(x)
  209. }
  210. // Deprecated: Use CheckAuthResp.ProtoReflect.Descriptor instead.
  211. func (*CheckAuthResp) Descriptor() ([]byte, []int) {
  212. return file_pb_auth_proto_rawDescGZIP(), []int{4}
  213. }
  214. var File_pb_auth_proto protoreflect.FileDescriptor
  215. var file_pb_auth_proto_rawDesc = []byte{
  216. 0x0a, 0x0d, 0x70, 0x62, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  217. 0x02, 0x70, 0x62, 0x22, 0x45, 0x0a, 0x0d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x75, 0x74,
  218. 0x68, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69,
  219. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49,
  220. 0x64, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
  221. 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x22, 0x20, 0x0a, 0x09, 0x43, 0x73,
  222. 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x13, 0x0a, 0x05, 0x63, 0x73, 0x5f, 0x69, 0x64,
  223. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x73, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x08,
  224. 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65,
  225. 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  226. 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x31, 0x0a, 0x0c, 0x43,
  227. 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x21, 0x0a, 0x0c, 0x61,
  228. 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
  229. 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x0f,
  230. 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x32,
  231. 0x8e, 0x01, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x2d, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x79,
  232. 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x79,
  233. 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41,
  234. 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x25, 0x0a, 0x06, 0x63, 0x73, 0x41, 0x75, 0x74,
  235. 0x68, 0x12, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71,
  236. 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30,
  237. 0x0a, 0x09, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x12, 0x10, 0x2e, 0x70, 0x62,
  238. 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e,
  239. 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70,
  240. 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  241. }
  242. var (
  243. file_pb_auth_proto_rawDescOnce sync.Once
  244. file_pb_auth_proto_rawDescData = file_pb_auth_proto_rawDesc
  245. )
  246. func file_pb_auth_proto_rawDescGZIP() []byte {
  247. file_pb_auth_proto_rawDescOnce.Do(func() {
  248. file_pb_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_auth_proto_rawDescData)
  249. })
  250. return file_pb_auth_proto_rawDescData
  251. }
  252. var file_pb_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  253. var file_pb_auth_proto_goTypes = []interface{}{
  254. (*PlayerAuthReq)(nil), // 0: pb.PlayerAuthReq
  255. (*CsAuthReq)(nil), // 1: pb.CsAuthReq
  256. (*AuthResp)(nil), // 2: pb.AuthResp
  257. (*CheckAuthReq)(nil), // 3: pb.CheckAuthReq
  258. (*CheckAuthResp)(nil), // 4: pb.CheckAuthResp
  259. }
  260. var file_pb_auth_proto_depIdxs = []int32{
  261. 0, // 0: pb.Auth.playerAuth:input_type -> pb.PlayerAuthReq
  262. 1, // 1: pb.Auth.csAuth:input_type -> pb.CsAuthReq
  263. 3, // 2: pb.Auth.checkAuth:input_type -> pb.CheckAuthReq
  264. 2, // 3: pb.Auth.playerAuth:output_type -> pb.AuthResp
  265. 2, // 4: pb.Auth.csAuth:output_type -> pb.AuthResp
  266. 4, // 5: pb.Auth.checkAuth:output_type -> pb.CheckAuthResp
  267. 3, // [3:6] is the sub-list for method output_type
  268. 0, // [0:3] is the sub-list for method input_type
  269. 0, // [0:0] is the sub-list for extension type_name
  270. 0, // [0:0] is the sub-list for extension extendee
  271. 0, // [0:0] is the sub-list for field type_name
  272. }
  273. func init() { file_pb_auth_proto_init() }
  274. func file_pb_auth_proto_init() {
  275. if File_pb_auth_proto != nil {
  276. return
  277. }
  278. if !protoimpl.UnsafeEnabled {
  279. file_pb_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  280. switch v := v.(*PlayerAuthReq); i {
  281. case 0:
  282. return &v.state
  283. case 1:
  284. return &v.sizeCache
  285. case 2:
  286. return &v.unknownFields
  287. default:
  288. return nil
  289. }
  290. }
  291. file_pb_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  292. switch v := v.(*CsAuthReq); i {
  293. case 0:
  294. return &v.state
  295. case 1:
  296. return &v.sizeCache
  297. case 2:
  298. return &v.unknownFields
  299. default:
  300. return nil
  301. }
  302. }
  303. file_pb_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  304. switch v := v.(*AuthResp); i {
  305. case 0:
  306. return &v.state
  307. case 1:
  308. return &v.sizeCache
  309. case 2:
  310. return &v.unknownFields
  311. default:
  312. return nil
  313. }
  314. }
  315. file_pb_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  316. switch v := v.(*CheckAuthReq); i {
  317. case 0:
  318. return &v.state
  319. case 1:
  320. return &v.sizeCache
  321. case 2:
  322. return &v.unknownFields
  323. default:
  324. return nil
  325. }
  326. }
  327. file_pb_auth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  328. switch v := v.(*CheckAuthResp); i {
  329. case 0:
  330. return &v.state
  331. case 1:
  332. return &v.sizeCache
  333. case 2:
  334. return &v.unknownFields
  335. default:
  336. return nil
  337. }
  338. }
  339. }
  340. type x struct{}
  341. out := protoimpl.TypeBuilder{
  342. File: protoimpl.DescBuilder{
  343. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  344. RawDescriptor: file_pb_auth_proto_rawDesc,
  345. NumEnums: 0,
  346. NumMessages: 5,
  347. NumExtensions: 0,
  348. NumServices: 1,
  349. },
  350. GoTypes: file_pb_auth_proto_goTypes,
  351. DependencyIndexes: file_pb_auth_proto_depIdxs,
  352. MessageInfos: file_pb_auth_proto_msgTypes,
  353. }.Build()
  354. File_pb_auth_proto = out.File
  355. file_pb_auth_proto_rawDesc = nil
  356. file_pb_auth_proto_goTypes = nil
  357. file_pb_auth_proto_depIdxs = nil
  358. }