You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

MessageType.pb.h 17 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: MessageType.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_MessageType_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_MessageType_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3021000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3021005 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_util.h>
  23. #include <google/protobuf/metadata_lite.h>
  24. #include <google/protobuf/generated_message_reflection.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/generated_enum_reflection.h>
  28. // @@protoc_insertion_point(includes)
  29. #include <google/protobuf/port_def.inc>
  30. #define PROTOBUF_INTERNAL_EXPORT_MessageType_2eproto
  31. PROTOBUF_NAMESPACE_OPEN
  32. namespace internal
  33. {
  34. class AnyMetadata;
  35. } // namespace internal
  36. PROTOBUF_NAMESPACE_CLOSE
  37. // Internal implementation detail -- do not use these members.
  38. struct TableStruct_MessageType_2eproto
  39. {
  40. static const uint32_t offsets[];
  41. };
  42. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_MessageType_2eproto;
  43. PROTOBUF_NAMESPACE_OPEN
  44. PROTOBUF_NAMESPACE_CLOSE
  45. namespace protobuf
  46. {
  47. enum PlaceType : int
  48. {
  49. NULL_PLACE_TYPE = 0,
  50. LAND = 1,
  51. WALL = 2,
  52. GRASS = 3,
  53. MACHINE = 4,
  54. GATE = 5,
  55. HIDDEN_GATE = 6,
  56. PlaceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  57. PlaceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
  58. };
  59. bool PlaceType_IsValid(int value);
  60. constexpr PlaceType PlaceType_MIN = NULL_PLACE_TYPE;
  61. constexpr PlaceType PlaceType_MAX = HIDDEN_GATE;
  62. constexpr int PlaceType_ARRAYSIZE = PlaceType_MAX + 1;
  63. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlaceType_descriptor();
  64. template<typename T>
  65. inline const std::string& PlaceType_Name(T enum_t_value)
  66. {
  67. static_assert(::std::is_same<T, PlaceType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function PlaceType_Name.");
  68. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  69. PlaceType_descriptor(), enum_t_value
  70. );
  71. }
  72. inline bool PlaceType_Parse(
  73. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PlaceType* value
  74. )
  75. {
  76. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PlaceType>(
  77. PlaceType_descriptor(), name, value
  78. );
  79. }
  80. enum ShapeType : int
  81. {
  82. NULL_SHAPE_TYPE = 0,
  83. CIRCLE = 1,
  84. SQUARE = 2,
  85. ShapeType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  86. ShapeType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
  87. };
  88. bool ShapeType_IsValid(int value);
  89. constexpr ShapeType ShapeType_MIN = NULL_SHAPE_TYPE;
  90. constexpr ShapeType ShapeType_MAX = SQUARE;
  91. constexpr int ShapeType_ARRAYSIZE = ShapeType_MAX + 1;
  92. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShapeType_descriptor();
  93. template<typename T>
  94. inline const std::string& ShapeType_Name(T enum_t_value)
  95. {
  96. static_assert(::std::is_same<T, ShapeType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function ShapeType_Name.");
  97. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  98. ShapeType_descriptor(), enum_t_value
  99. );
  100. }
  101. inline bool ShapeType_Parse(
  102. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ShapeType* value
  103. )
  104. {
  105. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ShapeType>(
  106. ShapeType_descriptor(), name, value
  107. );
  108. }
  109. enum PropType : int
  110. {
  111. NULL_PROP_TYPE = 0,
  112. PTYPE1 = 1,
  113. PTYPE2 = 2,
  114. PTYPE3 = 3,
  115. PTYPE4 = 4,
  116. PropType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  117. PropType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
  118. };
  119. bool PropType_IsValid(int value);
  120. constexpr PropType PropType_MIN = NULL_PROP_TYPE;
  121. constexpr PropType PropType_MAX = PTYPE4;
  122. constexpr int PropType_ARRAYSIZE = PropType_MAX + 1;
  123. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PropType_descriptor();
  124. template<typename T>
  125. inline const std::string& PropType_Name(T enum_t_value)
  126. {
  127. static_assert(::std::is_same<T, PropType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function PropType_Name.");
  128. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  129. PropType_descriptor(), enum_t_value
  130. );
  131. }
  132. inline bool PropType_Parse(
  133. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PropType* value
  134. )
  135. {
  136. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PropType>(
  137. PropType_descriptor(), name, value
  138. );
  139. }
  140. enum HumanBuffType : int
  141. {
  142. NULL_HBUFF_TYPE = 0,
  143. HBUFFTYPE1 = 1,
  144. HBUFFTYPE2 = 2,
  145. HBUFFTYPE3 = 3,
  146. HBUFFTYPE4 = 4,
  147. HumanBuffType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  148. HumanBuffType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
  149. };
  150. bool HumanBuffType_IsValid(int value);
  151. constexpr HumanBuffType HumanBuffType_MIN = NULL_HBUFF_TYPE;
  152. constexpr HumanBuffType HumanBuffType_MAX = HBUFFTYPE4;
  153. constexpr int HumanBuffType_ARRAYSIZE = HumanBuffType_MAX + 1;
  154. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HumanBuffType_descriptor();
  155. template<typename T>
  156. inline const std::string& HumanBuffType_Name(T enum_t_value)
  157. {
  158. static_assert(::std::is_same<T, HumanBuffType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function HumanBuffType_Name.");
  159. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  160. HumanBuffType_descriptor(), enum_t_value
  161. );
  162. }
  163. inline bool HumanBuffType_Parse(
  164. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, HumanBuffType* value
  165. )
  166. {
  167. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HumanBuffType>(
  168. HumanBuffType_descriptor(), name, value
  169. );
  170. }
  171. enum HumanState : int
  172. {
  173. NULL_STATUS = 0,
  174. IDLE = 1,
  175. FIXING = 2,
  176. DYING = 3,
  177. ON_CHAIR = 4,
  178. DEAD = 5,
  179. HumanState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  180. HumanState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
  181. };
  182. bool HumanState_IsValid(int value);
  183. constexpr HumanState HumanState_MIN = NULL_STATUS;
  184. constexpr HumanState HumanState_MAX = DEAD;
  185. constexpr int HumanState_ARRAYSIZE = HumanState_MAX + 1;
  186. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HumanState_descriptor();
  187. template<typename T>
  188. inline const std::string& HumanState_Name(T enum_t_value)
  189. {
  190. static_assert(::std::is_same<T, HumanState>::value || ::std::is_integral<T>::value, "Incorrect type passed to function HumanState_Name.");
  191. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  192. HumanState_descriptor(), enum_t_value
  193. );
  194. }
  195. inline bool HumanState_Parse(
  196. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, HumanState* value
  197. )
  198. {
  199. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HumanState>(
  200. HumanState_descriptor(), name, value
  201. );
  202. }
  203. enum ButcherBuffType : int
  204. {
  205. NULL_BBUFF_TYPE = 0,
  206. BBUFFTYPE1 = 1,
  207. BBUFFTYPE2 = 2,
  208. BBUFFTYPE3 = 3,
  209. BBUFFTYPE4 = 4,
  210. ButcherBuffType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  211. ButcherBuffType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
  212. };
  213. bool ButcherBuffType_IsValid(int value);
  214. constexpr ButcherBuffType ButcherBuffType_MIN = NULL_BBUFF_TYPE;
  215. constexpr ButcherBuffType ButcherBuffType_MAX = BBUFFTYPE4;
  216. constexpr int ButcherBuffType_ARRAYSIZE = ButcherBuffType_MAX + 1;
  217. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButcherBuffType_descriptor();
  218. template<typename T>
  219. inline const std::string& ButcherBuffType_Name(T enum_t_value)
  220. {
  221. static_assert(::std::is_same<T, ButcherBuffType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function ButcherBuffType_Name.");
  222. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  223. ButcherBuffType_descriptor(), enum_t_value
  224. );
  225. }
  226. inline bool ButcherBuffType_Parse(
  227. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ButcherBuffType* value
  228. )
  229. {
  230. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ButcherBuffType>(
  231. ButcherBuffType_descriptor(), name, value
  232. );
  233. }
  234. enum PlayerType : int
  235. {
  236. NULL_PLAYER_TYPE = 0,
  237. HUMAN_PLAYER = 1,
  238. BUTCHER_PLAYER = 2,
  239. PlayerType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  240. PlayerType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
  241. };
  242. bool PlayerType_IsValid(int value);
  243. constexpr PlayerType PlayerType_MIN = NULL_PLAYER_TYPE;
  244. constexpr PlayerType PlayerType_MAX = BUTCHER_PLAYER;
  245. constexpr int PlayerType_ARRAYSIZE = PlayerType_MAX + 1;
  246. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlayerType_descriptor();
  247. template<typename T>
  248. inline const std::string& PlayerType_Name(T enum_t_value)
  249. {
  250. static_assert(::std::is_same<T, PlayerType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function PlayerType_Name.");
  251. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  252. PlayerType_descriptor(), enum_t_value
  253. );
  254. }
  255. inline bool PlayerType_Parse(
  256. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PlayerType* value
  257. )
  258. {
  259. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PlayerType>(
  260. PlayerType_descriptor(), name, value
  261. );
  262. }
  263. enum HumanType : int
  264. {
  265. NULL_HUMAN_TYPE = 0,
  266. HUMANTYPE1 = 1,
  267. HUMANTYPE2 = 2,
  268. HUMANTYPE3 = 3,
  269. HUMANTYPE4 = 4,
  270. HumanType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  271. HumanType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
  272. };
  273. bool HumanType_IsValid(int value);
  274. constexpr HumanType HumanType_MIN = NULL_HUMAN_TYPE;
  275. constexpr HumanType HumanType_MAX = HUMANTYPE4;
  276. constexpr int HumanType_ARRAYSIZE = HumanType_MAX + 1;
  277. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HumanType_descriptor();
  278. template<typename T>
  279. inline const std::string& HumanType_Name(T enum_t_value)
  280. {
  281. static_assert(::std::is_same<T, HumanType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function HumanType_Name.");
  282. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  283. HumanType_descriptor(), enum_t_value
  284. );
  285. }
  286. inline bool HumanType_Parse(
  287. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, HumanType* value
  288. )
  289. {
  290. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HumanType>(
  291. HumanType_descriptor(), name, value
  292. );
  293. }
  294. enum ButcherType : int
  295. {
  296. NULL_BUTCHER_TYPE = 0,
  297. BUTCHERTYPE1 = 1,
  298. BUTCHERTYPE2 = 2,
  299. BUTCHERTYPE3 = 3,
  300. BUTCHERTYPE4 = 4,
  301. ButcherType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  302. ButcherType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
  303. };
  304. bool ButcherType_IsValid(int value);
  305. constexpr ButcherType ButcherType_MIN = NULL_BUTCHER_TYPE;
  306. constexpr ButcherType ButcherType_MAX = BUTCHERTYPE4;
  307. constexpr int ButcherType_ARRAYSIZE = ButcherType_MAX + 1;
  308. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButcherType_descriptor();
  309. template<typename T>
  310. inline const std::string& ButcherType_Name(T enum_t_value)
  311. {
  312. static_assert(::std::is_same<T, ButcherType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function ButcherType_Name.");
  313. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  314. ButcherType_descriptor(), enum_t_value
  315. );
  316. }
  317. inline bool ButcherType_Parse(
  318. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ButcherType* value
  319. )
  320. {
  321. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ButcherType>(
  322. ButcherType_descriptor(), name, value
  323. );
  324. }
  325. enum GameState : int
  326. {
  327. NULL_GAME_STATE = 0,
  328. GAME_START = 1,
  329. GAME_RUNNING = 2,
  330. GAME_END = 3,
  331. GameState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  332. GameState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
  333. };
  334. bool GameState_IsValid(int value);
  335. constexpr GameState GameState_MIN = NULL_GAME_STATE;
  336. constexpr GameState GameState_MAX = GAME_END;
  337. constexpr int GameState_ARRAYSIZE = GameState_MAX + 1;
  338. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GameState_descriptor();
  339. template<typename T>
  340. inline const std::string& GameState_Name(T enum_t_value)
  341. {
  342. static_assert(::std::is_same<T, GameState>::value || ::std::is_integral<T>::value, "Incorrect type passed to function GameState_Name.");
  343. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  344. GameState_descriptor(), enum_t_value
  345. );
  346. }
  347. inline bool GameState_Parse(
  348. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, GameState* value
  349. )
  350. {
  351. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<GameState>(
  352. GameState_descriptor(), name, value
  353. );
  354. }
  355. // ===================================================================
  356. // ===================================================================
  357. // ===================================================================
  358. #ifdef __GNUC__
  359. #pragma GCC diagnostic push
  360. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  361. #endif // __GNUC__
  362. #ifdef __GNUC__
  363. #pragma GCC diagnostic pop
  364. #endif // __GNUC__
  365. // @@protoc_insertion_point(namespace_scope)
  366. } // namespace protobuf
  367. PROTOBUF_NAMESPACE_OPEN
  368. template<>
  369. struct is_proto_enum<::protobuf::PlaceType> : ::std::true_type
  370. {
  371. };
  372. template<>
  373. inline const EnumDescriptor* GetEnumDescriptor<::protobuf::PlaceType>()
  374. {
  375. return ::protobuf::PlaceType_descriptor();
  376. }
  377. template<>
  378. struct is_proto_enum<::protobuf::ShapeType> : ::std::true_type
  379. {
  380. };
  381. template<>
  382. inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ShapeType>()
  383. {
  384. return ::protobuf::ShapeType_descriptor();
  385. }
  386. template<>
  387. struct is_proto_enum<::protobuf::PropType> : ::std::true_type
  388. {
  389. };
  390. template<>
  391. inline const EnumDescriptor* GetEnumDescriptor<::protobuf::PropType>()
  392. {
  393. return ::protobuf::PropType_descriptor();
  394. }
  395. template<>
  396. struct is_proto_enum<::protobuf::HumanBuffType> : ::std::true_type
  397. {
  398. };
  399. template<>
  400. inline const EnumDescriptor* GetEnumDescriptor<::protobuf::HumanBuffType>()
  401. {
  402. return ::protobuf::HumanBuffType_descriptor();
  403. }
  404. template<>
  405. struct is_proto_enum<::protobuf::HumanState> : ::std::true_type
  406. {
  407. };
  408. template<>
  409. inline const EnumDescriptor* GetEnumDescriptor<::protobuf::HumanState>()
  410. {
  411. return ::protobuf::HumanState_descriptor();
  412. }
  413. template<>
  414. struct is_proto_enum<::protobuf::ButcherBuffType> : ::std::true_type
  415. {
  416. };
  417. template<>
  418. inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ButcherBuffType>()
  419. {
  420. return ::protobuf::ButcherBuffType_descriptor();
  421. }
  422. template<>
  423. struct is_proto_enum<::protobuf::PlayerType> : ::std::true_type
  424. {
  425. };
  426. template<>
  427. inline const EnumDescriptor* GetEnumDescriptor<::protobuf::PlayerType>()
  428. {
  429. return ::protobuf::PlayerType_descriptor();
  430. }
  431. template<>
  432. struct is_proto_enum<::protobuf::HumanType> : ::std::true_type
  433. {
  434. };
  435. template<>
  436. inline const EnumDescriptor* GetEnumDescriptor<::protobuf::HumanType>()
  437. {
  438. return ::protobuf::HumanType_descriptor();
  439. }
  440. template<>
  441. struct is_proto_enum<::protobuf::ButcherType> : ::std::true_type
  442. {
  443. };
  444. template<>
  445. inline const EnumDescriptor* GetEnumDescriptor<::protobuf::ButcherType>()
  446. {
  447. return ::protobuf::ButcherType_descriptor();
  448. }
  449. template<>
  450. struct is_proto_enum<::protobuf::GameState> : ::std::true_type
  451. {
  452. };
  453. template<>
  454. inline const EnumDescriptor* GetEnumDescriptor<::protobuf::GameState>()
  455. {
  456. return ::protobuf::GameState_descriptor();
  457. }
  458. PROTOBUF_NAMESPACE_CLOSE
  459. // @@protoc_insertion_point(global_scope)
  460. #include <google/protobuf/port_undef.inc>
  461. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_MessageType_2eproto