gateway.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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/gateway.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 PlayerLoginReq 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 *PlayerLoginReq) Reset() {
  27. *x = PlayerLoginReq{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_pb_gateway_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *PlayerLoginReq) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*PlayerLoginReq) ProtoMessage() {}
  38. func (x *PlayerLoginReq) ProtoReflect() protoreflect.Message {
  39. mi := &file_pb_gateway_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 PlayerLoginReq.ProtoReflect.Descriptor instead.
  50. func (*PlayerLoginReq) Descriptor() ([]byte, []int) {
  51. return file_pb_gateway_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *PlayerLoginReq) GetPlayerId() string {
  54. if x != nil {
  55. return x.PlayerId
  56. }
  57. return ""
  58. }
  59. func (x *PlayerLoginReq) GetGameId() string {
  60. if x != nil {
  61. return x.GameId
  62. }
  63. return ""
  64. }
  65. type CsLoginReq struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
  70. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  71. }
  72. func (x *CsLoginReq) Reset() {
  73. *x = CsLoginReq{}
  74. if protoimpl.UnsafeEnabled {
  75. mi := &file_pb_gateway_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. }
  80. func (x *CsLoginReq) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*CsLoginReq) ProtoMessage() {}
  84. func (x *CsLoginReq) ProtoReflect() protoreflect.Message {
  85. mi := &file_pb_gateway_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 CsLoginReq.ProtoReflect.Descriptor instead.
  96. func (*CsLoginReq) Descriptor() ([]byte, []int) {
  97. return file_pb_gateway_proto_rawDescGZIP(), []int{1}
  98. }
  99. func (x *CsLoginReq) GetUserName() string {
  100. if x != nil {
  101. return x.UserName
  102. }
  103. return ""
  104. }
  105. func (x *CsLoginReq) GetPassword() string {
  106. if x != nil {
  107. return x.Password
  108. }
  109. return ""
  110. }
  111. type LoginResp struct {
  112. state protoimpl.MessageState
  113. sizeCache protoimpl.SizeCache
  114. unknownFields protoimpl.UnknownFields
  115. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
  116. AccessExpire int64 `protobuf:"varint,2,opt,name=access_expire,json=accessExpire,proto3" json:"access_expire,omitempty"`
  117. RefreshAfter int64 `protobuf:"varint,3,opt,name=refresh_after,json=refreshAfter,proto3" json:"refresh_after,omitempty"`
  118. Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
  119. }
  120. func (x *LoginResp) Reset() {
  121. *x = LoginResp{}
  122. if protoimpl.UnsafeEnabled {
  123. mi := &file_pb_gateway_proto_msgTypes[2]
  124. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  125. ms.StoreMessageInfo(mi)
  126. }
  127. }
  128. func (x *LoginResp) String() string {
  129. return protoimpl.X.MessageStringOf(x)
  130. }
  131. func (*LoginResp) ProtoMessage() {}
  132. func (x *LoginResp) ProtoReflect() protoreflect.Message {
  133. mi := &file_pb_gateway_proto_msgTypes[2]
  134. if protoimpl.UnsafeEnabled && x != nil {
  135. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  136. if ms.LoadMessageInfo() == nil {
  137. ms.StoreMessageInfo(mi)
  138. }
  139. return ms
  140. }
  141. return mi.MessageOf(x)
  142. }
  143. // Deprecated: Use LoginResp.ProtoReflect.Descriptor instead.
  144. func (*LoginResp) Descriptor() ([]byte, []int) {
  145. return file_pb_gateway_proto_rawDescGZIP(), []int{2}
  146. }
  147. func (x *LoginResp) GetAccessToken() string {
  148. if x != nil {
  149. return x.AccessToken
  150. }
  151. return ""
  152. }
  153. func (x *LoginResp) GetAccessExpire() int64 {
  154. if x != nil {
  155. return x.AccessExpire
  156. }
  157. return 0
  158. }
  159. func (x *LoginResp) GetRefreshAfter() int64 {
  160. if x != nil {
  161. return x.RefreshAfter
  162. }
  163. return 0
  164. }
  165. func (x *LoginResp) GetUrl() string {
  166. if x != nil {
  167. return x.Url
  168. }
  169. return ""
  170. }
  171. var File_pb_gateway_proto protoreflect.FileDescriptor
  172. var file_pb_gateway_proto_rawDesc = []byte{
  173. 0x0a, 0x10, 0x70, 0x62, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f,
  174. 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x46, 0x0a, 0x0e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72,
  175. 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x79,
  176. 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61,
  177. 0x79, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x69, 0x64,
  178. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x22, 0x45,
  179. 0x0a, 0x0a, 0x43, 0x73, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09,
  180. 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  181. 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73,
  182. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73,
  183. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x8a, 0x01, 0x0a, 0x09, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52,
  184. 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f,
  185. 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73,
  186. 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
  187. 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x61,
  188. 0x63, 0x63, 0x65, 0x73, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72,
  189. 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01,
  190. 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x41, 0x66, 0x74, 0x65, 0x72,
  191. 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
  192. 0x72, 0x6c, 0x32, 0x65, 0x0a, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x30, 0x0a,
  193. 0x0b, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x12, 0x2e, 0x70,
  194. 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71,
  195. 0x1a, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12,
  196. 0x28, 0x0a, 0x07, 0x63, 0x73, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
  197. 0x43, 0x73, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x0d, 0x2e, 0x70, 0x62, 0x2e,
  198. 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
  199. 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  200. }
  201. var (
  202. file_pb_gateway_proto_rawDescOnce sync.Once
  203. file_pb_gateway_proto_rawDescData = file_pb_gateway_proto_rawDesc
  204. )
  205. func file_pb_gateway_proto_rawDescGZIP() []byte {
  206. file_pb_gateway_proto_rawDescOnce.Do(func() {
  207. file_pb_gateway_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_gateway_proto_rawDescData)
  208. })
  209. return file_pb_gateway_proto_rawDescData
  210. }
  211. var file_pb_gateway_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  212. var file_pb_gateway_proto_goTypes = []interface{}{
  213. (*PlayerLoginReq)(nil), // 0: pb.PlayerLoginReq
  214. (*CsLoginReq)(nil), // 1: pb.CsLoginReq
  215. (*LoginResp)(nil), // 2: pb.LoginResp
  216. }
  217. var file_pb_gateway_proto_depIdxs = []int32{
  218. 0, // 0: pb.gateway.playerLogin:input_type -> pb.PlayerLoginReq
  219. 1, // 1: pb.gateway.csLogin:input_type -> pb.CsLoginReq
  220. 2, // 2: pb.gateway.playerLogin:output_type -> pb.LoginResp
  221. 2, // 3: pb.gateway.csLogin:output_type -> pb.LoginResp
  222. 2, // [2:4] is the sub-list for method output_type
  223. 0, // [0:2] is the sub-list for method input_type
  224. 0, // [0:0] is the sub-list for extension type_name
  225. 0, // [0:0] is the sub-list for extension extendee
  226. 0, // [0:0] is the sub-list for field type_name
  227. }
  228. func init() { file_pb_gateway_proto_init() }
  229. func file_pb_gateway_proto_init() {
  230. if File_pb_gateway_proto != nil {
  231. return
  232. }
  233. if !protoimpl.UnsafeEnabled {
  234. file_pb_gateway_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  235. switch v := v.(*PlayerLoginReq); i {
  236. case 0:
  237. return &v.state
  238. case 1:
  239. return &v.sizeCache
  240. case 2:
  241. return &v.unknownFields
  242. default:
  243. return nil
  244. }
  245. }
  246. file_pb_gateway_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  247. switch v := v.(*CsLoginReq); i {
  248. case 0:
  249. return &v.state
  250. case 1:
  251. return &v.sizeCache
  252. case 2:
  253. return &v.unknownFields
  254. default:
  255. return nil
  256. }
  257. }
  258. file_pb_gateway_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  259. switch v := v.(*LoginResp); i {
  260. case 0:
  261. return &v.state
  262. case 1:
  263. return &v.sizeCache
  264. case 2:
  265. return &v.unknownFields
  266. default:
  267. return nil
  268. }
  269. }
  270. }
  271. type x struct{}
  272. out := protoimpl.TypeBuilder{
  273. File: protoimpl.DescBuilder{
  274. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  275. RawDescriptor: file_pb_gateway_proto_rawDesc,
  276. NumEnums: 0,
  277. NumMessages: 3,
  278. NumExtensions: 0,
  279. NumServices: 1,
  280. },
  281. GoTypes: file_pb_gateway_proto_goTypes,
  282. DependencyIndexes: file_pb_gateway_proto_depIdxs,
  283. MessageInfos: file_pb_gateway_proto_msgTypes,
  284. }.Build()
  285. File_pb_gateway_proto = out.File
  286. file_pb_gateway_proto_rawDesc = nil
  287. file_pb_gateway_proto_goTypes = nil
  288. file_pb_gateway_proto_depIdxs = nil
  289. }