base.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.23.0
  4. // protoc v3.11.3
  5. // source: base.proto
  6. package base
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  21. // of the legacy proto package is being used.
  22. const _ = proto.ProtoPackageIsVersion4
  23. type ErrorCode int32
  24. const (
  25. ErrorCode_OK ErrorCode = 0
  26. )
  27. // Enum value maps for ErrorCode.
  28. var (
  29. ErrorCode_name = map[int32]string{
  30. 0: "OK",
  31. }
  32. ErrorCode_value = map[string]int32{
  33. "OK": 0,
  34. }
  35. )
  36. func (x ErrorCode) Enum() *ErrorCode {
  37. p := new(ErrorCode)
  38. *p = x
  39. return p
  40. }
  41. func (x ErrorCode) String() string {
  42. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  43. }
  44. func (ErrorCode) Descriptor() protoreflect.EnumDescriptor {
  45. return file_base_proto_enumTypes[0].Descriptor()
  46. }
  47. func (ErrorCode) Type() protoreflect.EnumType {
  48. return &file_base_proto_enumTypes[0]
  49. }
  50. func (x ErrorCode) Number() protoreflect.EnumNumber {
  51. return protoreflect.EnumNumber(x)
  52. }
  53. // Deprecated: Use ErrorCode.Descriptor instead.
  54. func (ErrorCode) EnumDescriptor() ([]byte, []int) {
  55. return file_base_proto_rawDescGZIP(), []int{0}
  56. }
  57. type DefaultRequest struct {
  58. state protoimpl.MessageState
  59. sizeCache protoimpl.SizeCache
  60. unknownFields protoimpl.UnknownFields
  61. }
  62. func (x *DefaultRequest) Reset() {
  63. *x = DefaultRequest{}
  64. if protoimpl.UnsafeEnabled {
  65. mi := &file_base_proto_msgTypes[0]
  66. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  67. ms.StoreMessageInfo(mi)
  68. }
  69. }
  70. func (x *DefaultRequest) String() string {
  71. return protoimpl.X.MessageStringOf(x)
  72. }
  73. func (*DefaultRequest) ProtoMessage() {}
  74. func (x *DefaultRequest) ProtoReflect() protoreflect.Message {
  75. mi := &file_base_proto_msgTypes[0]
  76. if protoimpl.UnsafeEnabled && x != nil {
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. if ms.LoadMessageInfo() == nil {
  79. ms.StoreMessageInfo(mi)
  80. }
  81. return ms
  82. }
  83. return mi.MessageOf(x)
  84. }
  85. // Deprecated: Use DefaultRequest.ProtoReflect.Descriptor instead.
  86. func (*DefaultRequest) Descriptor() ([]byte, []int) {
  87. return file_base_proto_rawDescGZIP(), []int{0}
  88. }
  89. type DefaultReply struct {
  90. state protoimpl.MessageState
  91. sizeCache protoimpl.SizeCache
  92. unknownFields protoimpl.UnknownFields
  93. }
  94. func (x *DefaultReply) Reset() {
  95. *x = DefaultReply{}
  96. if protoimpl.UnsafeEnabled {
  97. mi := &file_base_proto_msgTypes[1]
  98. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  99. ms.StoreMessageInfo(mi)
  100. }
  101. }
  102. func (x *DefaultReply) String() string {
  103. return protoimpl.X.MessageStringOf(x)
  104. }
  105. func (*DefaultReply) ProtoMessage() {}
  106. func (x *DefaultReply) ProtoReflect() protoreflect.Message {
  107. mi := &file_base_proto_msgTypes[1]
  108. if protoimpl.UnsafeEnabled && x != nil {
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. if ms.LoadMessageInfo() == nil {
  111. ms.StoreMessageInfo(mi)
  112. }
  113. return ms
  114. }
  115. return mi.MessageOf(x)
  116. }
  117. // Deprecated: Use DefaultReply.ProtoReflect.Descriptor instead.
  118. func (*DefaultReply) Descriptor() ([]byte, []int) {
  119. return file_base_proto_rawDescGZIP(), []int{1}
  120. }
  121. type SignUpRequest struct {
  122. state protoimpl.MessageState
  123. sizeCache protoimpl.SizeCache
  124. unknownFields protoimpl.UnknownFields
  125. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  126. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  127. }
  128. func (x *SignUpRequest) Reset() {
  129. *x = SignUpRequest{}
  130. if protoimpl.UnsafeEnabled {
  131. mi := &file_base_proto_msgTypes[2]
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. ms.StoreMessageInfo(mi)
  134. }
  135. }
  136. func (x *SignUpRequest) String() string {
  137. return protoimpl.X.MessageStringOf(x)
  138. }
  139. func (*SignUpRequest) ProtoMessage() {}
  140. func (x *SignUpRequest) ProtoReflect() protoreflect.Message {
  141. mi := &file_base_proto_msgTypes[2]
  142. if protoimpl.UnsafeEnabled && x != nil {
  143. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  144. if ms.LoadMessageInfo() == nil {
  145. ms.StoreMessageInfo(mi)
  146. }
  147. return ms
  148. }
  149. return mi.MessageOf(x)
  150. }
  151. // Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
  152. func (*SignUpRequest) Descriptor() ([]byte, []int) {
  153. return file_base_proto_rawDescGZIP(), []int{2}
  154. }
  155. func (x *SignUpRequest) GetName() string {
  156. if x != nil {
  157. return x.Name
  158. }
  159. return ""
  160. }
  161. func (x *SignUpRequest) GetPassword() string {
  162. if x != nil {
  163. return x.Password
  164. }
  165. return ""
  166. }
  167. type SignInReply struct {
  168. state protoimpl.MessageState
  169. sizeCache protoimpl.SizeCache
  170. unknownFields protoimpl.UnknownFields
  171. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  172. }
  173. func (x *SignInReply) Reset() {
  174. *x = SignInReply{}
  175. if protoimpl.UnsafeEnabled {
  176. mi := &file_base_proto_msgTypes[3]
  177. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  178. ms.StoreMessageInfo(mi)
  179. }
  180. }
  181. func (x *SignInReply) String() string {
  182. return protoimpl.X.MessageStringOf(x)
  183. }
  184. func (*SignInReply) ProtoMessage() {}
  185. func (x *SignInReply) ProtoReflect() protoreflect.Message {
  186. mi := &file_base_proto_msgTypes[3]
  187. if protoimpl.UnsafeEnabled && x != nil {
  188. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  189. if ms.LoadMessageInfo() == nil {
  190. ms.StoreMessageInfo(mi)
  191. }
  192. return ms
  193. }
  194. return mi.MessageOf(x)
  195. }
  196. // Deprecated: Use SignInReply.ProtoReflect.Descriptor instead.
  197. func (*SignInReply) Descriptor() ([]byte, []int) {
  198. return file_base_proto_rawDescGZIP(), []int{3}
  199. }
  200. func (x *SignInReply) GetToken() string {
  201. if x != nil {
  202. return x.Token
  203. }
  204. return ""
  205. }
  206. type SignInRequest struct {
  207. state protoimpl.MessageState
  208. sizeCache protoimpl.SizeCache
  209. unknownFields protoimpl.UnknownFields
  210. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  211. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  212. }
  213. func (x *SignInRequest) Reset() {
  214. *x = SignInRequest{}
  215. if protoimpl.UnsafeEnabled {
  216. mi := &file_base_proto_msgTypes[4]
  217. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  218. ms.StoreMessageInfo(mi)
  219. }
  220. }
  221. func (x *SignInRequest) String() string {
  222. return protoimpl.X.MessageStringOf(x)
  223. }
  224. func (*SignInRequest) ProtoMessage() {}
  225. func (x *SignInRequest) ProtoReflect() protoreflect.Message {
  226. mi := &file_base_proto_msgTypes[4]
  227. if protoimpl.UnsafeEnabled && x != nil {
  228. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  229. if ms.LoadMessageInfo() == nil {
  230. ms.StoreMessageInfo(mi)
  231. }
  232. return ms
  233. }
  234. return mi.MessageOf(x)
  235. }
  236. // Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
  237. func (*SignInRequest) Descriptor() ([]byte, []int) {
  238. return file_base_proto_rawDescGZIP(), []int{4}
  239. }
  240. func (x *SignInRequest) GetName() string {
  241. if x != nil {
  242. return x.Name
  243. }
  244. return ""
  245. }
  246. func (x *SignInRequest) GetPassword() string {
  247. if x != nil {
  248. return x.Password
  249. }
  250. return ""
  251. }
  252. var File_base_proto protoreflect.FileDescriptor
  253. var file_base_proto_rawDesc = []byte{
  254. 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x62, 0x61,
  255. 0x73, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71,
  256. 0x75, 0x65, 0x73, 0x74, 0x22, 0x0e, 0x0a, 0x0c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52,
  257. 0x65, 0x70, 0x6c, 0x79, 0x22, 0x3f, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x52, 0x65,
  258. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
  259. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73,
  260. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73,
  261. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52,
  262. 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20,
  263. 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x3f, 0x0a, 0x0d, 0x53, 0x69,
  264. 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e,
  265. 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
  266. 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
  267. 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2a, 0x13, 0x0a, 0x09, 0x45,
  268. 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00,
  269. 0x32, 0xa5, 0x01, 0x0a, 0x03, 0x41, 0x70, 0x69, 0x12, 0x33, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e,
  270. 0x55, 0x70, 0x12, 0x13, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70,
  271. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x44,
  272. 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x32, 0x0a,
  273. 0x06, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x13, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x53,
  274. 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62,
  275. 0x61, 0x73, 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
  276. 0x00, 0x12, 0x35, 0x0a, 0x07, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x12, 0x14, 0x2e, 0x62,
  277. 0x61, 0x73, 0x65, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
  278. 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c,
  279. 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  280. }
  281. var (
  282. file_base_proto_rawDescOnce sync.Once
  283. file_base_proto_rawDescData = file_base_proto_rawDesc
  284. )
  285. func file_base_proto_rawDescGZIP() []byte {
  286. file_base_proto_rawDescOnce.Do(func() {
  287. file_base_proto_rawDescData = protoimpl.X.CompressGZIP(file_base_proto_rawDescData)
  288. })
  289. return file_base_proto_rawDescData
  290. }
  291. var file_base_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  292. var file_base_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  293. var file_base_proto_goTypes = []interface{}{
  294. (ErrorCode)(0), // 0: base.ErrorCode
  295. (*DefaultRequest)(nil), // 1: base.DefaultRequest
  296. (*DefaultReply)(nil), // 2: base.DefaultReply
  297. (*SignUpRequest)(nil), // 3: base.SignUpRequest
  298. (*SignInReply)(nil), // 4: base.SignInReply
  299. (*SignInRequest)(nil), // 5: base.SignInRequest
  300. }
  301. var file_base_proto_depIdxs = []int32{
  302. 3, // 0: base.Api.SignUp:input_type -> base.SignUpRequest
  303. 5, // 1: base.Api.SignIn:input_type -> base.SignInRequest
  304. 1, // 2: base.Api.SignOut:input_type -> base.DefaultRequest
  305. 2, // 3: base.Api.SignUp:output_type -> base.DefaultReply
  306. 4, // 4: base.Api.SignIn:output_type -> base.SignInReply
  307. 2, // 5: base.Api.SignOut:output_type -> base.DefaultReply
  308. 3, // [3:6] is the sub-list for method output_type
  309. 0, // [0:3] is the sub-list for method input_type
  310. 0, // [0:0] is the sub-list for extension type_name
  311. 0, // [0:0] is the sub-list for extension extendee
  312. 0, // [0:0] is the sub-list for field type_name
  313. }
  314. func init() { file_base_proto_init() }
  315. func file_base_proto_init() {
  316. if File_base_proto != nil {
  317. return
  318. }
  319. if !protoimpl.UnsafeEnabled {
  320. file_base_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  321. switch v := v.(*DefaultRequest); 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_base_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  333. switch v := v.(*DefaultReply); 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_base_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  345. switch v := v.(*SignUpRequest); 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. file_base_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  357. switch v := v.(*SignInReply); i {
  358. case 0:
  359. return &v.state
  360. case 1:
  361. return &v.sizeCache
  362. case 2:
  363. return &v.unknownFields
  364. default:
  365. return nil
  366. }
  367. }
  368. file_base_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  369. switch v := v.(*SignInRequest); i {
  370. case 0:
  371. return &v.state
  372. case 1:
  373. return &v.sizeCache
  374. case 2:
  375. return &v.unknownFields
  376. default:
  377. return nil
  378. }
  379. }
  380. }
  381. type x struct{}
  382. out := protoimpl.TypeBuilder{
  383. File: protoimpl.DescBuilder{
  384. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  385. RawDescriptor: file_base_proto_rawDesc,
  386. NumEnums: 1,
  387. NumMessages: 5,
  388. NumExtensions: 0,
  389. NumServices: 1,
  390. },
  391. GoTypes: file_base_proto_goTypes,
  392. DependencyIndexes: file_base_proto_depIdxs,
  393. EnumInfos: file_base_proto_enumTypes,
  394. MessageInfos: file_base_proto_msgTypes,
  395. }.Build()
  396. File_base_proto = out.File
  397. file_base_proto_rawDesc = nil
  398. file_base_proto_goTypes = nil
  399. file_base_proto_depIdxs = nil
  400. }