/d3proto_cpp/ItemCrafting.pb.h

https://github.com/retarddidlyspeshal/d3bsv · C Header · 389 lines · 288 code · 70 blank · 31 comment · 2 complexity · dbcb94cb3dc8f2d704916139bb5a3bd3 MD5 · raw file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: ItemCrafting.proto
  3. #ifndef PROTOBUF_ItemCrafting_2eproto__INCLUDED
  4. #define PROTOBUF_ItemCrafting_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2004000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/generated_message_util.h>
  18. #include <google/protobuf/repeated_field.h>
  19. #include <google/protobuf/extension_set.h>
  20. #include <google/protobuf/generated_message_reflection.h>
  21. // @@protoc_insertion_point(includes)
  22. namespace D3 {
  23. namespace ItemCrafting {
  24. // Internal implementation detail -- do not call these.
  25. void protobuf_AddDesc_ItemCrafting_2eproto();
  26. void protobuf_AssignDesc_ItemCrafting_2eproto();
  27. void protobuf_ShutdownFile_ItemCrafting_2eproto();
  28. class CrafterData;
  29. class CrafterSavedData;
  30. // ===================================================================
  31. class CrafterData : public ::google::protobuf::Message {
  32. public:
  33. CrafterData();
  34. virtual ~CrafterData();
  35. CrafterData(const CrafterData& from);
  36. inline CrafterData& operator=(const CrafterData& from) {
  37. CopyFrom(from);
  38. return *this;
  39. }
  40. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  41. return _unknown_fields_;
  42. }
  43. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  44. return &_unknown_fields_;
  45. }
  46. static const ::google::protobuf::Descriptor* descriptor();
  47. static const CrafterData& default_instance();
  48. void Swap(CrafterData* other);
  49. // implements Message ----------------------------------------------
  50. CrafterData* New() const;
  51. void CopyFrom(const ::google::protobuf::Message& from);
  52. void MergeFrom(const ::google::protobuf::Message& from);
  53. void CopyFrom(const CrafterData& from);
  54. void MergeFrom(const CrafterData& from);
  55. void Clear();
  56. bool IsInitialized() const;
  57. int ByteSize() const;
  58. bool MergePartialFromCodedStream(
  59. ::google::protobuf::io::CodedInputStream* input);
  60. void SerializeWithCachedSizes(
  61. ::google::protobuf::io::CodedOutputStream* output) const;
  62. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  63. int GetCachedSize() const { return _cached_size_; }
  64. private:
  65. void SharedCtor();
  66. void SharedDtor();
  67. void SetCachedSize(int size) const;
  68. public:
  69. ::google::protobuf::Metadata GetMetadata() const;
  70. // nested types ----------------------------------------------------
  71. // accessors -------------------------------------------------------
  72. // repeated sfixed32 recipes = 1;
  73. inline int recipes_size() const;
  74. inline void clear_recipes();
  75. static const int kRecipesFieldNumber = 1;
  76. inline ::google::protobuf::int32 recipes(int index) const;
  77. inline void set_recipes(int index, ::google::protobuf::int32 value);
  78. inline void add_recipes(::google::protobuf::int32 value);
  79. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  80. recipes() const;
  81. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  82. mutable_recipes();
  83. // repeated sfixed32 available_enchants = 2;
  84. inline int available_enchants_size() const;
  85. inline void clear_available_enchants();
  86. static const int kAvailableEnchantsFieldNumber = 2;
  87. inline ::google::protobuf::int32 available_enchants(int index) const;
  88. inline void set_available_enchants(int index, ::google::protobuf::int32 value);
  89. inline void add_available_enchants(::google::protobuf::int32 value);
  90. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  91. available_enchants() const;
  92. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  93. mutable_available_enchants();
  94. // required int32 level = 3;
  95. inline bool has_level() const;
  96. inline void clear_level();
  97. static const int kLevelFieldNumber = 3;
  98. inline ::google::protobuf::int32 level() const;
  99. inline void set_level(::google::protobuf::int32 value);
  100. // required sfixed64 cooldown_end = 4;
  101. inline bool has_cooldown_end() const;
  102. inline void clear_cooldown_end();
  103. static const int kCooldownEndFieldNumber = 4;
  104. inline ::google::protobuf::int64 cooldown_end() const;
  105. inline void set_cooldown_end(::google::protobuf::int64 value);
  106. // @@protoc_insertion_point(class_scope:D3.ItemCrafting.CrafterData)
  107. private:
  108. inline void set_has_level();
  109. inline void clear_has_level();
  110. inline void set_has_cooldown_end();
  111. inline void clear_has_cooldown_end();
  112. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  113. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > recipes_;
  114. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > available_enchants_;
  115. ::google::protobuf::int64 cooldown_end_;
  116. ::google::protobuf::int32 level_;
  117. mutable int _cached_size_;
  118. ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
  119. friend void protobuf_AddDesc_ItemCrafting_2eproto();
  120. friend void protobuf_AssignDesc_ItemCrafting_2eproto();
  121. friend void protobuf_ShutdownFile_ItemCrafting_2eproto();
  122. void InitAsDefaultInstance();
  123. static CrafterData* default_instance_;
  124. };
  125. // -------------------------------------------------------------------
  126. class CrafterSavedData : public ::google::protobuf::Message {
  127. public:
  128. CrafterSavedData();
  129. virtual ~CrafterSavedData();
  130. CrafterSavedData(const CrafterSavedData& from);
  131. inline CrafterSavedData& operator=(const CrafterSavedData& from) {
  132. CopyFrom(from);
  133. return *this;
  134. }
  135. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  136. return _unknown_fields_;
  137. }
  138. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  139. return &_unknown_fields_;
  140. }
  141. static const ::google::protobuf::Descriptor* descriptor();
  142. static const CrafterSavedData& default_instance();
  143. void Swap(CrafterSavedData* other);
  144. // implements Message ----------------------------------------------
  145. CrafterSavedData* New() const;
  146. void CopyFrom(const ::google::protobuf::Message& from);
  147. void MergeFrom(const ::google::protobuf::Message& from);
  148. void CopyFrom(const CrafterSavedData& from);
  149. void MergeFrom(const CrafterSavedData& from);
  150. void Clear();
  151. bool IsInitialized() const;
  152. int ByteSize() const;
  153. bool MergePartialFromCodedStream(
  154. ::google::protobuf::io::CodedInputStream* input);
  155. void SerializeWithCachedSizes(
  156. ::google::protobuf::io::CodedOutputStream* output) const;
  157. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  158. int GetCachedSize() const { return _cached_size_; }
  159. private:
  160. void SharedCtor();
  161. void SharedDtor();
  162. void SetCachedSize(int size) const;
  163. public:
  164. ::google::protobuf::Metadata GetMetadata() const;
  165. // nested types ----------------------------------------------------
  166. // accessors -------------------------------------------------------
  167. // repeated .D3.ItemCrafting.CrafterData crafter_data = 1;
  168. inline int crafter_data_size() const;
  169. inline void clear_crafter_data();
  170. static const int kCrafterDataFieldNumber = 1;
  171. inline const ::D3::ItemCrafting::CrafterData& crafter_data(int index) const;
  172. inline ::D3::ItemCrafting::CrafterData* mutable_crafter_data(int index);
  173. inline ::D3::ItemCrafting::CrafterData* add_crafter_data();
  174. inline const ::google::protobuf::RepeatedPtrField< ::D3::ItemCrafting::CrafterData >&
  175. crafter_data() const;
  176. inline ::google::protobuf::RepeatedPtrField< ::D3::ItemCrafting::CrafterData >*
  177. mutable_crafter_data();
  178. // @@protoc_insertion_point(class_scope:D3.ItemCrafting.CrafterSavedData)
  179. private:
  180. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  181. ::google::protobuf::RepeatedPtrField< ::D3::ItemCrafting::CrafterData > crafter_data_;
  182. mutable int _cached_size_;
  183. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  184. friend void protobuf_AddDesc_ItemCrafting_2eproto();
  185. friend void protobuf_AssignDesc_ItemCrafting_2eproto();
  186. friend void protobuf_ShutdownFile_ItemCrafting_2eproto();
  187. void InitAsDefaultInstance();
  188. static CrafterSavedData* default_instance_;
  189. };
  190. // ===================================================================
  191. // ===================================================================
  192. // CrafterData
  193. // repeated sfixed32 recipes = 1;
  194. inline int CrafterData::recipes_size() const {
  195. return recipes_.size();
  196. }
  197. inline void CrafterData::clear_recipes() {
  198. recipes_.Clear();
  199. }
  200. inline ::google::protobuf::int32 CrafterData::recipes(int index) const {
  201. return recipes_.Get(index);
  202. }
  203. inline void CrafterData::set_recipes(int index, ::google::protobuf::int32 value) {
  204. recipes_.Set(index, value);
  205. }
  206. inline void CrafterData::add_recipes(::google::protobuf::int32 value) {
  207. recipes_.Add(value);
  208. }
  209. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  210. CrafterData::recipes() const {
  211. return recipes_;
  212. }
  213. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  214. CrafterData::mutable_recipes() {
  215. return &recipes_;
  216. }
  217. // repeated sfixed32 available_enchants = 2;
  218. inline int CrafterData::available_enchants_size() const {
  219. return available_enchants_.size();
  220. }
  221. inline void CrafterData::clear_available_enchants() {
  222. available_enchants_.Clear();
  223. }
  224. inline ::google::protobuf::int32 CrafterData::available_enchants(int index) const {
  225. return available_enchants_.Get(index);
  226. }
  227. inline void CrafterData::set_available_enchants(int index, ::google::protobuf::int32 value) {
  228. available_enchants_.Set(index, value);
  229. }
  230. inline void CrafterData::add_available_enchants(::google::protobuf::int32 value) {
  231. available_enchants_.Add(value);
  232. }
  233. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  234. CrafterData::available_enchants() const {
  235. return available_enchants_;
  236. }
  237. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  238. CrafterData::mutable_available_enchants() {
  239. return &available_enchants_;
  240. }
  241. // required int32 level = 3;
  242. inline bool CrafterData::has_level() const {
  243. return (_has_bits_[0] & 0x00000004u) != 0;
  244. }
  245. inline void CrafterData::set_has_level() {
  246. _has_bits_[0] |= 0x00000004u;
  247. }
  248. inline void CrafterData::clear_has_level() {
  249. _has_bits_[0] &= ~0x00000004u;
  250. }
  251. inline void CrafterData::clear_level() {
  252. level_ = 0;
  253. clear_has_level();
  254. }
  255. inline ::google::protobuf::int32 CrafterData::level() const {
  256. return level_;
  257. }
  258. inline void CrafterData::set_level(::google::protobuf::int32 value) {
  259. set_has_level();
  260. level_ = value;
  261. }
  262. // required sfixed64 cooldown_end = 4;
  263. inline bool CrafterData::has_cooldown_end() const {
  264. return (_has_bits_[0] & 0x00000008u) != 0;
  265. }
  266. inline void CrafterData::set_has_cooldown_end() {
  267. _has_bits_[0] |= 0x00000008u;
  268. }
  269. inline void CrafterData::clear_has_cooldown_end() {
  270. _has_bits_[0] &= ~0x00000008u;
  271. }
  272. inline void CrafterData::clear_cooldown_end() {
  273. cooldown_end_ = GOOGLE_LONGLONG(0);
  274. clear_has_cooldown_end();
  275. }
  276. inline ::google::protobuf::int64 CrafterData::cooldown_end() const {
  277. return cooldown_end_;
  278. }
  279. inline void CrafterData::set_cooldown_end(::google::protobuf::int64 value) {
  280. set_has_cooldown_end();
  281. cooldown_end_ = value;
  282. }
  283. // -------------------------------------------------------------------
  284. // CrafterSavedData
  285. // repeated .D3.ItemCrafting.CrafterData crafter_data = 1;
  286. inline int CrafterSavedData::crafter_data_size() const {
  287. return crafter_data_.size();
  288. }
  289. inline void CrafterSavedData::clear_crafter_data() {
  290. crafter_data_.Clear();
  291. }
  292. inline const ::D3::ItemCrafting::CrafterData& CrafterSavedData::crafter_data(int index) const {
  293. return crafter_data_.Get(index);
  294. }
  295. inline ::D3::ItemCrafting::CrafterData* CrafterSavedData::mutable_crafter_data(int index) {
  296. return crafter_data_.Mutable(index);
  297. }
  298. inline ::D3::ItemCrafting::CrafterData* CrafterSavedData::add_crafter_data() {
  299. return crafter_data_.Add();
  300. }
  301. inline const ::google::protobuf::RepeatedPtrField< ::D3::ItemCrafting::CrafterData >&
  302. CrafterSavedData::crafter_data() const {
  303. return crafter_data_;
  304. }
  305. inline ::google::protobuf::RepeatedPtrField< ::D3::ItemCrafting::CrafterData >*
  306. CrafterSavedData::mutable_crafter_data() {
  307. return &crafter_data_;
  308. }
  309. // @@protoc_insertion_point(namespace_scope)
  310. } // namespace ItemCrafting
  311. } // namespace D3
  312. #ifndef SWIG
  313. namespace google {
  314. namespace protobuf {
  315. } // namespace google
  316. } // namespace protobuf
  317. #endif // SWIG
  318. // @@protoc_insertion_point(global_scope)
  319. #endif // PROTOBUF_ItemCrafting_2eproto__INCLUDED