auth.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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 PlayerAuthReq struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
  25. GameId string `protobuf:"bytes,2,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"`
  26. }
  27. func (x *PlayerAuthReq) Reset() {
  28. *x = PlayerAuthReq{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_pb_auth_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *PlayerAuthReq) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*PlayerAuthReq) ProtoMessage() {}
  39. func (x *PlayerAuthReq) ProtoReflect() protoreflect.Message {
  40. mi := &file_pb_auth_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use PlayerAuthReq.ProtoReflect.Descriptor instead.
  51. func (*PlayerAuthReq) Descriptor() ([]byte, []int) {
  52. return file_pb_auth_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *PlayerAuthReq) GetPlayerId() string {
  55. if x != nil {
  56. return x.PlayerId
  57. }
  58. return ""
  59. }
  60. func (x *PlayerAuthReq) GetGameId() string {
  61. if x != nil {
  62. return x.GameId
  63. }
  64. return ""
  65. }
  66. type CsAuthReq struct {
  67. state protoimpl.MessageState
  68. sizeCache protoimpl.SizeCache
  69. unknownFields protoimpl.UnknownFields
  70. CsId string `protobuf:"bytes,1,opt,name=cs_id,json=csId,proto3" json:"cs_id,omitempty"`
  71. }
  72. func (x *CsAuthReq) Reset() {
  73. *x = CsAuthReq{}
  74. if protoimpl.UnsafeEnabled {
  75. mi := &file_pb_auth_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. }
  80. func (x *CsAuthReq) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*CsAuthReq) ProtoMessage() {}
  84. func (x *CsAuthReq) ProtoReflect() protoreflect.Message {
  85. mi := &file_pb_auth_proto_msgTypes[1]
  86. if protoimpl.UnsafeEnabled && x != nil {
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. if ms.LoadMessageInfo() == nil {
  89. ms.StoreMessageInfo(mi)
  90. }
  91. return ms
  92. }
  93. return mi.MessageOf(x)
  94. }
  95. // Deprecated: Use CsAuthReq.ProtoReflect.Descriptor instead.
  96. func (*CsAuthReq) Descriptor() ([]byte, []int) {
  97. return file_pb_auth_proto_rawDescGZIP(), []int{1}
  98. }
  99. func (x *CsAuthReq) GetCsId() string {
  100. if x != nil {
  101. return x.CsId
  102. }
  103. return ""
  104. }
  105. type CheckAuthReq struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
  110. }
  111. func (x *CheckAuthReq) Reset() {
  112. *x = CheckAuthReq{}
  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 *CheckAuthReq) String() string {
  120. return protoimpl.X.MessageStringOf(x)
  121. }
  122. func (*CheckAuthReq) ProtoMessage() {}
  123. func (x *CheckAuthReq) 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 CheckAuthReq.ProtoReflect.Descriptor instead.
  135. func (*CheckAuthReq) Descriptor() ([]byte, []int) {
  136. return file_pb_auth_proto_rawDescGZIP(), []int{2}
  137. }
  138. func (x *CheckAuthReq) GetAccessToken() string {
  139. if x != nil {
  140. return x.AccessToken
  141. }
  142. return ""
  143. }
  144. type AuthResp struct {
  145. state protoimpl.MessageState
  146. sizeCache protoimpl.SizeCache
  147. unknownFields protoimpl.UnknownFields
  148. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  149. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  150. Data *structpb.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  151. }
  152. func (x *AuthResp) Reset() {
  153. *x = AuthResp{}
  154. if protoimpl.UnsafeEnabled {
  155. mi := &file_pb_auth_proto_msgTypes[3]
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. ms.StoreMessageInfo(mi)
  158. }
  159. }
  160. func (x *AuthResp) String() string {
  161. return protoimpl.X.MessageStringOf(x)
  162. }
  163. func (*AuthResp) ProtoMessage() {}
  164. func (x *AuthResp) ProtoReflect() protoreflect.Message {
  165. mi := &file_pb_auth_proto_msgTypes[3]
  166. if protoimpl.UnsafeEnabled && x != nil {
  167. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  168. if ms.LoadMessageInfo() == nil {
  169. ms.StoreMessageInfo(mi)
  170. }
  171. return ms
  172. }
  173. return mi.MessageOf(x)
  174. }
  175. // Deprecated: Use AuthResp.ProtoReflect.Descriptor instead.
  176. func (*AuthResp) Descriptor() ([]byte, []int) {
  177. return file_pb_auth_proto_rawDescGZIP(), []int{3}
  178. }
  179. func (x *AuthResp) GetCode() int64 {
  180. if x != nil {
  181. return x.Code
  182. }
  183. return 0
  184. }
  185. func (x *AuthResp) GetMsg() string {
  186. if x != nil {
  187. return x.Msg
  188. }
  189. return ""
  190. }
  191. func (x *AuthResp) GetData() *structpb.Struct {
  192. if x != nil {
  193. return x.Data
  194. }
  195. return nil
  196. }
  197. var File_pb_auth_proto protoreflect.FileDescriptor
  198. var file_pb_auth_proto_rawDesc = []byte{
  199. 0x0a, 0x0d, 0x70, 0x62, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  200. 0x02, 0x70, 0x62, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
  201. 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  202. 0x6f, 0x22, 0x45, 0x0a, 0x0d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52,
  203. 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
  204. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x64, 0x12,
  205. 0x17, 0x0a, 0x07, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  206. 0x52, 0x06, 0x67, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x22, 0x20, 0x0a, 0x09, 0x43, 0x73, 0x41, 0x75,
  207. 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x13, 0x0a, 0x05, 0x63, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01,
  208. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x73, 0x49, 0x64, 0x22, 0x31, 0x0a, 0x0c, 0x43, 0x68,
  209. 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63,
  210. 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  211. 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5d, 0x0a,
  212. 0x08, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
  213. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a,
  214. 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12,
  215. 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
  216. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  217. 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x89, 0x01, 0x0a,
  218. 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x2d, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41,
  219. 0x75, 0x74, 0x68, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x41,
  220. 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68,
  221. 0x52, 0x65, 0x73, 0x70, 0x12, 0x25, 0x0a, 0x06, 0x63, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0d,
  222. 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e,
  223. 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x09, 0x63,
  224. 0x68, 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68,
  225. 0x65, 0x63, 0x6b, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e,
  226. 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62,
  227. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  228. }
  229. var (
  230. file_pb_auth_proto_rawDescOnce sync.Once
  231. file_pb_auth_proto_rawDescData = file_pb_auth_proto_rawDesc
  232. )
  233. func file_pb_auth_proto_rawDescGZIP() []byte {
  234. file_pb_auth_proto_rawDescOnce.Do(func() {
  235. file_pb_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_auth_proto_rawDescData)
  236. })
  237. return file_pb_auth_proto_rawDescData
  238. }
  239. var file_pb_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  240. var file_pb_auth_proto_goTypes = []interface{}{
  241. (*PlayerAuthReq)(nil), // 0: pb.PlayerAuthReq
  242. (*CsAuthReq)(nil), // 1: pb.CsAuthReq
  243. (*CheckAuthReq)(nil), // 2: pb.CheckAuthReq
  244. (*AuthResp)(nil), // 3: pb.AuthResp
  245. (*structpb.Struct)(nil), // 4: google.protobuf.Struct
  246. }
  247. var file_pb_auth_proto_depIdxs = []int32{
  248. 4, // 0: pb.AuthResp.data:type_name -> google.protobuf.Struct
  249. 0, // 1: pb.Auth.playerAuth:input_type -> pb.PlayerAuthReq
  250. 1, // 2: pb.Auth.csAuth:input_type -> pb.CsAuthReq
  251. 2, // 3: pb.Auth.checkAuth:input_type -> pb.CheckAuthReq
  252. 3, // 4: pb.Auth.playerAuth:output_type -> pb.AuthResp
  253. 3, // 5: pb.Auth.csAuth:output_type -> pb.AuthResp
  254. 3, // 6: pb.Auth.checkAuth:output_type -> pb.AuthResp
  255. 4, // [4:7] is the sub-list for method output_type
  256. 1, // [1:4] is the sub-list for method input_type
  257. 1, // [1:1] is the sub-list for extension type_name
  258. 1, // [1:1] is the sub-list for extension extendee
  259. 0, // [0:1] is the sub-list for field type_name
  260. }
  261. func init() { file_pb_auth_proto_init() }
  262. func file_pb_auth_proto_init() {
  263. if File_pb_auth_proto != nil {
  264. return
  265. }
  266. if !protoimpl.UnsafeEnabled {
  267. file_pb_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  268. switch v := v.(*PlayerAuthReq); i {
  269. case 0:
  270. return &v.state
  271. case 1:
  272. return &v.sizeCache
  273. case 2:
  274. return &v.unknownFields
  275. default:
  276. return nil
  277. }
  278. }
  279. file_pb_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  280. switch v := v.(*CsAuthReq); 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[2].Exporter = func(v interface{}, i int) interface{} {
  292. switch v := v.(*CheckAuthReq); 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[3].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. }
  316. type x struct{}
  317. out := protoimpl.TypeBuilder{
  318. File: protoimpl.DescBuilder{
  319. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  320. RawDescriptor: file_pb_auth_proto_rawDesc,
  321. NumEnums: 0,
  322. NumMessages: 4,
  323. NumExtensions: 0,
  324. NumServices: 1,
  325. },
  326. GoTypes: file_pb_auth_proto_goTypes,
  327. DependencyIndexes: file_pb_auth_proto_depIdxs,
  328. MessageInfos: file_pb_auth_proto_msgTypes,
  329. }.Build()
  330. File_pb_auth_proto = out.File
  331. file_pb_auth_proto_rawDesc = nil
  332. file_pb_auth_proto_goTypes = nil
  333. file_pb_auth_proto_depIdxs = nil
  334. }