user_rpc.pb.go 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v5.27.2
  5. // source: user_rpc.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. // 节点状态
  20. type NodeState int32
  21. const (
  22. NodeState_Open NodeState = 0 // 开放状态,所有角色可以进入
  23. NodeState_Maintain NodeState = 1 // 维护状态,白名单角色可以进入
  24. NodeState_Closed NodeState = 2 // 关闭状态,所有角色不可进入(同时踢除所有角色)
  25. )
  26. // Enum value maps for NodeState.
  27. var (
  28. NodeState_name = map[int32]string{
  29. 0: "Open",
  30. 1: "Maintain",
  31. 2: "Closed",
  32. }
  33. NodeState_value = map[string]int32{
  34. "Open": 0,
  35. "Maintain": 1,
  36. "Closed": 2,
  37. }
  38. )
  39. func (x NodeState) Enum() *NodeState {
  40. p := new(NodeState)
  41. *p = x
  42. return p
  43. }
  44. func (x NodeState) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (NodeState) Descriptor() protoreflect.EnumDescriptor {
  48. return file_user_rpc_proto_enumTypes[0].Descriptor()
  49. }
  50. func (NodeState) Type() protoreflect.EnumType {
  51. return &file_user_rpc_proto_enumTypes[0]
  52. }
  53. func (x NodeState) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(x)
  55. }
  56. // Deprecated: Use NodeState.Descriptor instead.
  57. func (NodeState) EnumDescriptor() ([]byte, []int) {
  58. return file_user_rpc_proto_rawDescGZIP(), []int{0}
  59. }
  60. // 注册开发帐号
  61. type DevRegister struct {
  62. state protoimpl.MessageState
  63. sizeCache protoimpl.SizeCache
  64. unknownFields protoimpl.UnknownFields
  65. AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` // 帐号名
  66. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 密码
  67. Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` // ip地址
  68. }
  69. func (x *DevRegister) Reset() {
  70. *x = DevRegister{}
  71. if protoimpl.UnsafeEnabled {
  72. mi := &file_user_rpc_proto_msgTypes[0]
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. ms.StoreMessageInfo(mi)
  75. }
  76. }
  77. func (x *DevRegister) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*DevRegister) ProtoMessage() {}
  81. func (x *DevRegister) ProtoReflect() protoreflect.Message {
  82. mi := &file_user_rpc_proto_msgTypes[0]
  83. if protoimpl.UnsafeEnabled && x != nil {
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. if ms.LoadMessageInfo() == nil {
  86. ms.StoreMessageInfo(mi)
  87. }
  88. return ms
  89. }
  90. return mi.MessageOf(x)
  91. }
  92. // Deprecated: Use DevRegister.ProtoReflect.Descriptor instead.
  93. func (*DevRegister) Descriptor() ([]byte, []int) {
  94. return file_user_rpc_proto_rawDescGZIP(), []int{0}
  95. }
  96. func (x *DevRegister) GetAccountName() string {
  97. if x != nil {
  98. return x.AccountName
  99. }
  100. return ""
  101. }
  102. func (x *DevRegister) GetPassword() string {
  103. if x != nil {
  104. return x.Password
  105. }
  106. return ""
  107. }
  108. func (x *DevRegister) GetIp() string {
  109. if x != nil {
  110. return x.Ip
  111. }
  112. return ""
  113. }
  114. // 用户信息
  115. type User struct {
  116. state protoimpl.MessageState
  117. sizeCache protoimpl.SizeCache
  118. unknownFields protoimpl.UnknownFields
  119. SdkId int32 `protobuf:"varint,1,opt,name=sdkId,proto3" json:"sdkId,omitempty"` // sdk id
  120. Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` // 包id
  121. OpenId string `protobuf:"bytes,3,opt,name=openId,proto3" json:"openId,omitempty"` // sdk的openid
  122. ServerId int32 `protobuf:"varint,4,opt,name=serverId,proto3" json:"serverId,omitempty"` // 所在游戏服id
  123. Uid int64 `protobuf:"varint,5,opt,name=uid,proto3" json:"uid,omitempty"` // 用户id
  124. Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"` // 请求ip
  125. }
  126. func (x *User) Reset() {
  127. *x = User{}
  128. if protoimpl.UnsafeEnabled {
  129. mi := &file_user_rpc_proto_msgTypes[1]
  130. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  131. ms.StoreMessageInfo(mi)
  132. }
  133. }
  134. func (x *User) String() string {
  135. return protoimpl.X.MessageStringOf(x)
  136. }
  137. func (*User) ProtoMessage() {}
  138. func (x *User) ProtoReflect() protoreflect.Message {
  139. mi := &file_user_rpc_proto_msgTypes[1]
  140. if protoimpl.UnsafeEnabled && x != nil {
  141. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  142. if ms.LoadMessageInfo() == nil {
  143. ms.StoreMessageInfo(mi)
  144. }
  145. return ms
  146. }
  147. return mi.MessageOf(x)
  148. }
  149. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  150. func (*User) Descriptor() ([]byte, []int) {
  151. return file_user_rpc_proto_rawDescGZIP(), []int{1}
  152. }
  153. func (x *User) GetSdkId() int32 {
  154. if x != nil {
  155. return x.SdkId
  156. }
  157. return 0
  158. }
  159. func (x *User) GetPid() int32 {
  160. if x != nil {
  161. return x.Pid
  162. }
  163. return 0
  164. }
  165. func (x *User) GetOpenId() string {
  166. if x != nil {
  167. return x.OpenId
  168. }
  169. return ""
  170. }
  171. func (x *User) GetServerId() int32 {
  172. if x != nil {
  173. return x.ServerId
  174. }
  175. return 0
  176. }
  177. func (x *User) GetUid() int64 {
  178. if x != nil {
  179. return x.Uid
  180. }
  181. return 0
  182. }
  183. func (x *User) GetIp() string {
  184. if x != nil {
  185. return x.Ip
  186. }
  187. return ""
  188. }
  189. var File_user_rpc_proto protoreflect.FileDescriptor
  190. var file_user_rpc_proto_rawDesc = []byte{
  191. 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  192. 0x12, 0x0e, 0x6d, 0x68, 0x61, 0x79, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x62,
  193. 0x22, 0x5b, 0x0a, 0x0b, 0x44, 0x65, 0x76, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12,
  194. 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01,
  195. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d,
  196. 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20,
  197. 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a,
  198. 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x84, 0x01,
  199. 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x64, 0x6b, 0x49, 0x64, 0x18,
  200. 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x64, 0x6b, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03,
  201. 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x16,
  202. 0x0a, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  203. 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
  204. 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
  205. 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
  206. 0x03, 0x75, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
  207. 0x52, 0x02, 0x69, 0x70, 0x2a, 0x2f, 0x0a, 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74,
  208. 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x70, 0x65, 0x6e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4d,
  209. 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x6c, 0x6f,
  210. 0x73, 0x65, 0x64, 0x10, 0x02, 0x42, 0x05, 0x5a, 0x03, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
  211. 0x6f, 0x74, 0x6f, 0x33,
  212. }
  213. var (
  214. file_user_rpc_proto_rawDescOnce sync.Once
  215. file_user_rpc_proto_rawDescData = file_user_rpc_proto_rawDesc
  216. )
  217. func file_user_rpc_proto_rawDescGZIP() []byte {
  218. file_user_rpc_proto_rawDescOnce.Do(func() {
  219. file_user_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_rpc_proto_rawDescData)
  220. })
  221. return file_user_rpc_proto_rawDescData
  222. }
  223. var file_user_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  224. var file_user_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  225. var file_user_rpc_proto_goTypes = []interface{}{
  226. (NodeState)(0), // 0: mhaya.proto.pb.NodeState
  227. (*DevRegister)(nil), // 1: mhaya.proto.pb.DevRegister
  228. (*User)(nil), // 2: mhaya.proto.pb.User
  229. }
  230. var file_user_rpc_proto_depIdxs = []int32{
  231. 0, // [0:0] is the sub-list for method output_type
  232. 0, // [0:0] is the sub-list for method input_type
  233. 0, // [0:0] is the sub-list for extension type_name
  234. 0, // [0:0] is the sub-list for extension extendee
  235. 0, // [0:0] is the sub-list for field type_name
  236. }
  237. func init() { file_user_rpc_proto_init() }
  238. func file_user_rpc_proto_init() {
  239. if File_user_rpc_proto != nil {
  240. return
  241. }
  242. if !protoimpl.UnsafeEnabled {
  243. file_user_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  244. switch v := v.(*DevRegister); i {
  245. case 0:
  246. return &v.state
  247. case 1:
  248. return &v.sizeCache
  249. case 2:
  250. return &v.unknownFields
  251. default:
  252. return nil
  253. }
  254. }
  255. file_user_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  256. switch v := v.(*User); i {
  257. case 0:
  258. return &v.state
  259. case 1:
  260. return &v.sizeCache
  261. case 2:
  262. return &v.unknownFields
  263. default:
  264. return nil
  265. }
  266. }
  267. }
  268. type x struct{}
  269. out := protoimpl.TypeBuilder{
  270. File: protoimpl.DescBuilder{
  271. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  272. RawDescriptor: file_user_rpc_proto_rawDesc,
  273. NumEnums: 1,
  274. NumMessages: 2,
  275. NumExtensions: 0,
  276. NumServices: 0,
  277. },
  278. GoTypes: file_user_rpc_proto_goTypes,
  279. DependencyIndexes: file_user_rpc_proto_depIdxs,
  280. EnumInfos: file_user_rpc_proto_enumTypes,
  281. MessageInfos: file_user_rpc_proto_msgTypes,
  282. }.Build()
  283. File_user_rpc_proto = out.File
  284. file_user_rpc_proto_rawDesc = nil
  285. file_user_rpc_proto_goTypes = nil
  286. file_user_rpc_proto_depIdxs = nil
  287. }