base.pbenum.dart 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. //
  2. // Generated code. Do not modify.
  3. // source: base.proto
  4. //
  5. // @dart = 2.12
  6. // ignore_for_file: annotate_overrides, camel_case_types, comment_references
  7. // ignore_for_file: constant_identifier_names, library_prefixes
  8. // ignore_for_file: non_constant_identifier_names, prefer_final_fields
  9. // ignore_for_file: unnecessary_import, unnecessary_this, unused_import
  10. import 'dart:core' as $core;
  11. import 'package:protobuf/protobuf.dart' as $pb;
  12. class ErrorCode extends $pb.ProtobufEnum {
  13. static const ErrorCode OK = ErrorCode._(0, _omitEnumNames ? '' : 'OK');
  14. static const ErrorCode TokenExpire = ErrorCode._(1000, _omitEnumNames ? '' : 'TokenExpire');
  15. static const ErrorCode UserBan = ErrorCode._(1001, _omitEnumNames ? '' : 'UserBan');
  16. static const ErrorCode VfCodeExpire = ErrorCode._(1002, _omitEnumNames ? '' : 'VfCodeExpire');
  17. static const ErrorCode SmsSendFail = ErrorCode._(1003, _omitEnumNames ? '' : 'SmsSendFail');
  18. static const ErrorCode UserStatusErr = ErrorCode._(1008, _omitEnumNames ? '' : 'UserStatusErr');
  19. static const ErrorCode StatusErr = ErrorCode._(1009, _omitEnumNames ? '' : 'StatusErr');
  20. static const ErrorCode PhoneNotExist = ErrorCode._(2001, _omitEnumNames ? '' : 'PhoneNotExist');
  21. static const ErrorCode UnknownErr = ErrorCode._(2002, _omitEnumNames ? '' : 'UnknownErr');
  22. static const ErrorCode ParamErr = ErrorCode._(5000, _omitEnumNames ? '' : 'ParamErr');
  23. static const ErrorCode HeadSourceErr = ErrorCode._(5001, _omitEnumNames ? '' : 'HeadSourceErr');
  24. static const ErrorCode DATABASE = ErrorCode._(9000, _omitEnumNames ? '' : 'DATABASE');
  25. static const ErrorCode NoRecord = ErrorCode._(9001, _omitEnumNames ? '' : 'NoRecord');
  26. static const $core.List<ErrorCode> values = <ErrorCode> [
  27. OK,
  28. TokenExpire,
  29. UserBan,
  30. VfCodeExpire,
  31. SmsSendFail,
  32. UserStatusErr,
  33. StatusErr,
  34. PhoneNotExist,
  35. UnknownErr,
  36. ParamErr,
  37. HeadSourceErr,
  38. DATABASE,
  39. NoRecord,
  40. ];
  41. static final $core.Map<$core.int, ErrorCode> _byValue = $pb.ProtobufEnum.initByValue(values);
  42. static ErrorCode? valueOf($core.int value) => _byValue[value];
  43. const ErrorCode._($core.int v, $core.String n) : super(v, n);
  44. }
  45. class ShopType extends $pb.ProtobufEnum {
  46. static const ShopType UnKnowShop = ShopType._(0, _omitEnumNames ? '' : 'UnKnowShop');
  47. static const ShopType ParkShop = ShopType._(1, _omitEnumNames ? '' : 'ParkShop');
  48. static const ShopType IPShop = ShopType._(2, _omitEnumNames ? '' : 'IPShop');
  49. static const ShopType AdminShop = ShopType._(3, _omitEnumNames ? '' : 'AdminShop');
  50. static const $core.List<ShopType> values = <ShopType> [
  51. UnKnowShop,
  52. ParkShop,
  53. IPShop,
  54. AdminShop,
  55. ];
  56. static final $core.Map<$core.int, ShopType> _byValue = $pb.ProtobufEnum.initByValue(values);
  57. static ShopType? valueOf($core.int value) => _byValue[value];
  58. const ShopType._($core.int v, $core.String n) : super(v, n);
  59. }
  60. /// UserType 用户类型
  61. class UserType extends $pb.ProtobufEnum {
  62. static const UserType UnDefine = UserType._(0, _omitEnumNames ? '' : 'UnDefine');
  63. static const UserType AppUser = UserType._(1, _omitEnumNames ? '' : 'AppUser');
  64. static const UserType ParkAdmin = UserType._(2, _omitEnumNames ? '' : 'ParkAdmin');
  65. static const UserType IPAdmin = UserType._(3, _omitEnumNames ? '' : 'IPAdmin');
  66. static const UserType SysAdmin = UserType._(4, _omitEnumNames ? '' : 'SysAdmin');
  67. static const UserType ToAdmin = UserType._(5, _omitEnumNames ? '' : 'ToAdmin');
  68. static const $core.List<UserType> values = <UserType> [
  69. UnDefine,
  70. AppUser,
  71. ParkAdmin,
  72. IPAdmin,
  73. SysAdmin,
  74. ToAdmin,
  75. ];
  76. static final $core.Map<$core.int, UserType> _byValue = $pb.ProtobufEnum.initByValue(values);
  77. static UserType? valueOf($core.int value) => _byValue[value];
  78. const UserType._($core.int v, $core.String n) : super(v, n);
  79. }
  80. /// LoginSource 登陆来源
  81. class LoginSource extends $pb.ProtobufEnum {
  82. static const LoginSource UnDef = LoginSource._(0, _omitEnumNames ? '' : 'UnDef');
  83. static const LoginSource UserApp = LoginSource._(1, _omitEnumNames ? '' : 'UserApp');
  84. static const LoginSource WebAdmin = LoginSource._(2, _omitEnumNames ? '' : 'WebAdmin');
  85. static const LoginSource ShopApp = LoginSource._(3, _omitEnumNames ? '' : 'ShopApp');
  86. static const LoginSource ToApp = LoginSource._(4, _omitEnumNames ? '' : 'ToApp');
  87. static const $core.List<LoginSource> values = <LoginSource> [
  88. UnDef,
  89. UserApp,
  90. WebAdmin,
  91. ShopApp,
  92. ToApp,
  93. ];
  94. static final $core.Map<$core.int, LoginSource> _byValue = $pb.ProtobufEnum.initByValue(values);
  95. static LoginSource? valueOf($core.int value) => _byValue[value];
  96. const LoginSource._($core.int v, $core.String n) : super(v, n);
  97. }
  98. class SmsType extends $pb.ProtobufEnum {
  99. static const SmsType UnKnow = SmsType._(0, _omitEnumNames ? '' : 'UnKnow');
  100. static const SmsType Login = SmsType._(1, _omitEnumNames ? '' : 'Login');
  101. static const SmsType SignUp = SmsType._(2, _omitEnumNames ? '' : 'SignUp');
  102. static const $core.List<SmsType> values = <SmsType> [
  103. UnKnow,
  104. Login,
  105. SignUp,
  106. ];
  107. static final $core.Map<$core.int, SmsType> _byValue = $pb.ProtobufEnum.initByValue(values);
  108. static SmsType? valueOf($core.int value) => _byValue[value];
  109. const SmsType._($core.int v, $core.String n) : super(v, n);
  110. }
  111. class ProjectContentType extends $pb.ProtobufEnum {
  112. static const ProjectContentType Text = ProjectContentType._(0, _omitEnumNames ? '' : 'Text');
  113. static const ProjectContentType Html = ProjectContentType._(1, _omitEnumNames ? '' : 'Html');
  114. static const $core.List<ProjectContentType> values = <ProjectContentType> [
  115. Text,
  116. Html,
  117. ];
  118. static final $core.Map<$core.int, ProjectContentType> _byValue = $pb.ProtobufEnum.initByValue(values);
  119. static ProjectContentType? valueOf($core.int value) => _byValue[value];
  120. const ProjectContentType._($core.int v, $core.String n) : super(v, n);
  121. }
  122. class CriterionType extends $pb.ProtobufEnum {
  123. static const CriterionType CrUnKnow = CriterionType._(0, _omitEnumNames ? '' : 'CrUnKnow');
  124. static const CriterionType CrOrder = CriterionType._(1, _omitEnumNames ? '' : 'CrOrder');
  125. static const CriterionType CrNum = CriterionType._(2, _omitEnumNames ? '' : 'CrNum');
  126. static const $core.List<CriterionType> values = <CriterionType> [
  127. CrUnKnow,
  128. CrOrder,
  129. CrNum,
  130. ];
  131. static final $core.Map<$core.int, CriterionType> _byValue = $pb.ProtobufEnum.initByValue(values);
  132. static CriterionType? valueOf($core.int value) => _byValue[value];
  133. const CriterionType._($core.int v, $core.String n) : super(v, n);
  134. }
  135. class CType extends $pb.ProtobufEnum {
  136. static const CType UnKnowType = CType._(0, _omitEnumNames ? '' : 'UnKnowType');
  137. static const CType BeginType = CType._(1, _omitEnumNames ? '' : 'BeginType');
  138. static const CType MiddleType = CType._(2, _omitEnumNames ? '' : 'MiddleType');
  139. static const CType EndType = CType._(3, _omitEnumNames ? '' : 'EndType');
  140. static const $core.List<CType> values = <CType> [
  141. UnKnowType,
  142. BeginType,
  143. MiddleType,
  144. EndType,
  145. ];
  146. static final $core.Map<$core.int, CType> _byValue = $pb.ProtobufEnum.initByValue(values);
  147. static CType? valueOf($core.int value) => _byValue[value];
  148. const CType._($core.int v, $core.String n) : super(v, n);
  149. }
  150. class StatusType extends $pb.ProtobufEnum {
  151. static const StatusType UnKnowStatus = StatusType._(0, _omitEnumNames ? '' : 'UnKnowStatus');
  152. static const StatusType NormalStatus = StatusType._(1, _omitEnumNames ? '' : 'NormalStatus');
  153. static const StatusType DisabledStatus = StatusType._(8, _omitEnumNames ? '' : 'DisabledStatus');
  154. static const StatusType DeleteStatus = StatusType._(9, _omitEnumNames ? '' : 'DeleteStatus');
  155. static const $core.List<StatusType> values = <StatusType> [
  156. UnKnowStatus,
  157. NormalStatus,
  158. DisabledStatus,
  159. DeleteStatus,
  160. ];
  161. static final $core.Map<$core.int, StatusType> _byValue = $pb.ProtobufEnum.initByValue(values);
  162. static StatusType? valueOf($core.int value) => _byValue[value];
  163. const StatusType._($core.int v, $core.String n) : super(v, n);
  164. }
  165. class HrBandType extends $pb.ProtobufEnum {
  166. static const HrBandType UnKnowHrBand = HrBandType._(0, _omitEnumNames ? '' : 'UnKnowHrBand');
  167. static const HrBandType UseHrBand = HrBandType._(1, _omitEnumNames ? '' : 'UseHrBand');
  168. static const HrBandType NotUseHrBand = HrBandType._(2, _omitEnumNames ? '' : 'NotUseHrBand');
  169. static const $core.List<HrBandType> values = <HrBandType> [
  170. UnKnowHrBand,
  171. UseHrBand,
  172. NotUseHrBand,
  173. ];
  174. static final $core.Map<$core.int, HrBandType> _byValue = $pb.ProtobufEnum.initByValue(values);
  175. static HrBandType? valueOf($core.int value) => _byValue[value];
  176. const HrBandType._($core.int v, $core.String n) : super(v, n);
  177. }
  178. class GameState extends $pb.ProtobufEnum {
  179. static const GameState AllGameState = GameState._(0, _omitEnumNames ? '' : 'AllGameState');
  180. static const GameState NormalGameState = GameState._(1, _omitEnumNames ? '' : 'NormalGameState');
  181. static const GameState abnormalGameState = GameState._(2, _omitEnumNames ? '' : 'abnormalGameState');
  182. static const $core.List<GameState> values = <GameState> [
  183. AllGameState,
  184. NormalGameState,
  185. abnormalGameState,
  186. ];
  187. static final $core.Map<$core.int, GameState> _byValue = $pb.ProtobufEnum.initByValue(values);
  188. static GameState? valueOf($core.int value) => _byValue[value];
  189. const GameState._($core.int v, $core.String n) : super(v, n);
  190. }
  191. class GameHistorySource extends $pb.ProtobufEnum {
  192. static const GameHistorySource GameHistorySourcAll = GameHistorySource._(0, _omitEnumNames ? '' : 'GameHistorySourcAll');
  193. static const GameHistorySource GameHistorySourceOrienteer = GameHistorySource._(1, _omitEnumNames ? '' : 'GameHistorySourceOrienteer');
  194. static const GameHistorySource GameHistorySourceAss = GameHistorySource._(2, _omitEnumNames ? '' : 'GameHistorySourceAss');
  195. static const $core.List<GameHistorySource> values = <GameHistorySource> [
  196. GameHistorySourcAll,
  197. GameHistorySourceOrienteer,
  198. GameHistorySourceAss,
  199. ];
  200. static final $core.Map<$core.int, GameHistorySource> _byValue = $pb.ProtobufEnum.initByValue(values);
  201. static GameHistorySource? valueOf($core.int value) => _byValue[value];
  202. const GameHistorySource._($core.int v, $core.String n) : super(v, n);
  203. }
  204. class BackGroundColor extends $pb.ProtobufEnum {
  205. static const BackGroundColor UnKnowColor = BackGroundColor._(0, _omitEnumNames ? '' : 'UnKnowColor');
  206. static const BackGroundColor BlueColor = BackGroundColor._(1, _omitEnumNames ? '' : 'BlueColor');
  207. static const BackGroundColor GreenColor = BackGroundColor._(2, _omitEnumNames ? '' : 'GreenColor');
  208. static const BackGroundColor BrownColor = BackGroundColor._(3, _omitEnumNames ? '' : 'BrownColor');
  209. static const $core.List<BackGroundColor> values = <BackGroundColor> [
  210. UnKnowColor,
  211. BlueColor,
  212. GreenColor,
  213. BrownColor,
  214. ];
  215. static final $core.Map<$core.int, BackGroundColor> _byValue = $pb.ProtobufEnum.initByValue(values);
  216. static BackGroundColor? valueOf($core.int value) => _byValue[value];
  217. const BackGroundColor._($core.int v, $core.String n) : super(v, n);
  218. }
  219. class User_Sex extends $pb.ProtobufEnum {
  220. static const User_Sex UnDefine = User_Sex._(0, _omitEnumNames ? '' : 'UnDefine');
  221. static const User_Sex Male = User_Sex._(1, _omitEnumNames ? '' : 'Male');
  222. static const User_Sex Female = User_Sex._(2, _omitEnumNames ? '' : 'Female');
  223. static const $core.List<User_Sex> values = <User_Sex> [
  224. UnDefine,
  225. Male,
  226. Female,
  227. ];
  228. static final $core.Map<$core.int, User_Sex> _byValue = $pb.ProtobufEnum.initByValue(values);
  229. static User_Sex? valueOf($core.int value) => _byValue[value];
  230. const User_Sex._($core.int v, $core.String n) : super(v, n);
  231. }
  232. const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');