def.pb.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: def.proto
  3. #ifndef PROTOBUF_INCLUDED_def_2eproto
  4. #define PROTOBUF_INCLUDED_def_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  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 3006001 < 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/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.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/unknown_field_set.h>
  28. // @@protoc_insertion_point(includes)
  29. #define PROTOBUF_INTERNAL_EXPORT_protobuf_def_2eproto
  30. namespace protobuf_def_2eproto {
  31. // Internal implementation detail -- do not use these members.
  32. struct TableStruct {
  33. static const ::google::protobuf::internal::ParseTableField entries[];
  34. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  35. static const ::google::protobuf::internal::ParseTable schema[2];
  36. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  37. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  38. static const ::google::protobuf::uint32 offsets[];
  39. };
  40. void AddDescriptors();
  41. } // namespace protobuf_def_2eproto
  42. namespace JetStream {
  43. class RequestCmd;
  44. class RequestCmdDefaultTypeInternal;
  45. extern RequestCmdDefaultTypeInternal _RequestCmd_default_instance_;
  46. class Response;
  47. class ResponseDefaultTypeInternal;
  48. extern ResponseDefaultTypeInternal _Response_default_instance_;
  49. } // namespace JetStream
  50. namespace google {
  51. namespace protobuf {
  52. template<> ::JetStream::RequestCmd* Arena::CreateMaybeMessage<::JetStream::RequestCmd>(Arena*);
  53. template<> ::JetStream::Response* Arena::CreateMaybeMessage<::JetStream::Response>(Arena*);
  54. } // namespace protobuf
  55. } // namespace google
  56. namespace JetStream {
  57. // ===================================================================
  58. class RequestCmd : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:JetStream.RequestCmd) */ {
  59. public:
  60. RequestCmd();
  61. virtual ~RequestCmd();
  62. RequestCmd(const RequestCmd& from);
  63. inline RequestCmd& operator=(const RequestCmd& from) {
  64. CopyFrom(from);
  65. return *this;
  66. }
  67. #if LANG_CXX11
  68. RequestCmd(RequestCmd&& from) noexcept
  69. : RequestCmd() {
  70. *this = ::std::move(from);
  71. }
  72. inline RequestCmd& operator=(RequestCmd&& from) noexcept {
  73. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  74. if (this != &from) InternalSwap(&from);
  75. } else {
  76. CopyFrom(from);
  77. }
  78. return *this;
  79. }
  80. #endif
  81. static const ::google::protobuf::Descriptor* descriptor();
  82. static const RequestCmd& default_instance();
  83. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  84. static inline const RequestCmd* internal_default_instance() {
  85. return reinterpret_cast<const RequestCmd*>(
  86. &_RequestCmd_default_instance_);
  87. }
  88. static constexpr int kIndexInFileMessages =
  89. 0;
  90. void Swap(RequestCmd* other);
  91. friend void swap(RequestCmd& a, RequestCmd& b) {
  92. a.Swap(&b);
  93. }
  94. // implements Message ----------------------------------------------
  95. inline RequestCmd* New() const final {
  96. return CreateMaybeMessage<RequestCmd>(NULL);
  97. }
  98. RequestCmd* New(::google::protobuf::Arena* arena) const final {
  99. return CreateMaybeMessage<RequestCmd>(arena);
  100. }
  101. void CopyFrom(const ::google::protobuf::Message& from) final;
  102. void MergeFrom(const ::google::protobuf::Message& from) final;
  103. void CopyFrom(const RequestCmd& from);
  104. void MergeFrom(const RequestCmd& from);
  105. void Clear() final;
  106. bool IsInitialized() const final;
  107. size_t ByteSizeLong() const final;
  108. bool MergePartialFromCodedStream(
  109. ::google::protobuf::io::CodedInputStream* input) final;
  110. void SerializeWithCachedSizes(
  111. ::google::protobuf::io::CodedOutputStream* output) const final;
  112. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  113. bool deterministic, ::google::protobuf::uint8* target) const final;
  114. int GetCachedSize() const final { return _cached_size_.Get(); }
  115. private:
  116. void SharedCtor();
  117. void SharedDtor();
  118. void SetCachedSize(int size) const final;
  119. void InternalSwap(RequestCmd* other);
  120. private:
  121. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  122. return NULL;
  123. }
  124. inline void* MaybeArenaPtr() const {
  125. return NULL;
  126. }
  127. public:
  128. ::google::protobuf::Metadata GetMetadata() const final;
  129. // nested types ----------------------------------------------------
  130. // accessors -------------------------------------------------------
  131. // int32 action = 1;
  132. void clear_action();
  133. static const int kActionFieldNumber = 1;
  134. ::google::protobuf::int32 action() const;
  135. void set_action(::google::protobuf::int32 value);
  136. // @@protoc_insertion_point(class_scope:JetStream.RequestCmd)
  137. private:
  138. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  139. ::google::protobuf::int32 action_;
  140. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  141. friend struct ::protobuf_def_2eproto::TableStruct;
  142. };
  143. // -------------------------------------------------------------------
  144. class Response : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:JetStream.Response) */ {
  145. public:
  146. Response();
  147. virtual ~Response();
  148. Response(const Response& from);
  149. inline Response& operator=(const Response& from) {
  150. CopyFrom(from);
  151. return *this;
  152. }
  153. #if LANG_CXX11
  154. Response(Response&& from) noexcept
  155. : Response() {
  156. *this = ::std::move(from);
  157. }
  158. inline Response& operator=(Response&& from) noexcept {
  159. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  160. if (this != &from) InternalSwap(&from);
  161. } else {
  162. CopyFrom(from);
  163. }
  164. return *this;
  165. }
  166. #endif
  167. static const ::google::protobuf::Descriptor* descriptor();
  168. static const Response& default_instance();
  169. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  170. static inline const Response* internal_default_instance() {
  171. return reinterpret_cast<const Response*>(
  172. &_Response_default_instance_);
  173. }
  174. static constexpr int kIndexInFileMessages =
  175. 1;
  176. void Swap(Response* other);
  177. friend void swap(Response& a, Response& b) {
  178. a.Swap(&b);
  179. }
  180. // implements Message ----------------------------------------------
  181. inline Response* New() const final {
  182. return CreateMaybeMessage<Response>(NULL);
  183. }
  184. Response* New(::google::protobuf::Arena* arena) const final {
  185. return CreateMaybeMessage<Response>(arena);
  186. }
  187. void CopyFrom(const ::google::protobuf::Message& from) final;
  188. void MergeFrom(const ::google::protobuf::Message& from) final;
  189. void CopyFrom(const Response& from);
  190. void MergeFrom(const Response& from);
  191. void Clear() final;
  192. bool IsInitialized() const final;
  193. size_t ByteSizeLong() const final;
  194. bool MergePartialFromCodedStream(
  195. ::google::protobuf::io::CodedInputStream* input) final;
  196. void SerializeWithCachedSizes(
  197. ::google::protobuf::io::CodedOutputStream* output) const final;
  198. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  199. bool deterministic, ::google::protobuf::uint8* target) const final;
  200. int GetCachedSize() const final { return _cached_size_.Get(); }
  201. private:
  202. void SharedCtor();
  203. void SharedDtor();
  204. void SetCachedSize(int size) const final;
  205. void InternalSwap(Response* other);
  206. private:
  207. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  208. return NULL;
  209. }
  210. inline void* MaybeArenaPtr() const {
  211. return NULL;
  212. }
  213. public:
  214. ::google::protobuf::Metadata GetMetadata() const final;
  215. // nested types ----------------------------------------------------
  216. // accessors -------------------------------------------------------
  217. // string info = 2;
  218. void clear_info();
  219. static const int kInfoFieldNumber = 2;
  220. const ::std::string& info() const;
  221. void set_info(const ::std::string& value);
  222. #if LANG_CXX11
  223. void set_info(::std::string&& value);
  224. #endif
  225. void set_info(const char* value);
  226. void set_info(const char* value, size_t size);
  227. ::std::string* mutable_info();
  228. ::std::string* release_info();
  229. void set_allocated_info(::std::string* info);
  230. // int32 ret = 1;
  231. void clear_ret();
  232. static const int kRetFieldNumber = 1;
  233. ::google::protobuf::int32 ret() const;
  234. void set_ret(::google::protobuf::int32 value);
  235. // @@protoc_insertion_point(class_scope:JetStream.Response)
  236. private:
  237. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  238. ::google::protobuf::internal::ArenaStringPtr info_;
  239. ::google::protobuf::int32 ret_;
  240. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  241. friend struct ::protobuf_def_2eproto::TableStruct;
  242. };
  243. // ===================================================================
  244. // ===================================================================
  245. #ifdef __GNUC__
  246. #pragma GCC diagnostic push
  247. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  248. #endif // __GNUC__
  249. // RequestCmd
  250. // int32 action = 1;
  251. inline void RequestCmd::clear_action() {
  252. action_ = 0;
  253. }
  254. inline ::google::protobuf::int32 RequestCmd::action() const {
  255. // @@protoc_insertion_point(field_get:JetStream.RequestCmd.action)
  256. return action_;
  257. }
  258. inline void RequestCmd::set_action(::google::protobuf::int32 value) {
  259. action_ = value;
  260. // @@protoc_insertion_point(field_set:JetStream.RequestCmd.action)
  261. }
  262. // -------------------------------------------------------------------
  263. // Response
  264. // int32 ret = 1;
  265. inline void Response::clear_ret() {
  266. ret_ = 0;
  267. }
  268. inline ::google::protobuf::int32 Response::ret() const {
  269. // @@protoc_insertion_point(field_get:JetStream.Response.ret)
  270. return ret_;
  271. }
  272. inline void Response::set_ret(::google::protobuf::int32 value) {
  273. ret_ = value;
  274. // @@protoc_insertion_point(field_set:JetStream.Response.ret)
  275. }
  276. // string info = 2;
  277. inline void Response::clear_info() {
  278. info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  279. }
  280. inline const ::std::string& Response::info() const {
  281. // @@protoc_insertion_point(field_get:JetStream.Response.info)
  282. return info_.GetNoArena();
  283. }
  284. inline void Response::set_info(const ::std::string& value) {
  285. info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  286. // @@protoc_insertion_point(field_set:JetStream.Response.info)
  287. }
  288. #if LANG_CXX11
  289. inline void Response::set_info(::std::string&& value) {
  290. info_.SetNoArena(
  291. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  292. // @@protoc_insertion_point(field_set_rvalue:JetStream.Response.info)
  293. }
  294. #endif
  295. inline void Response::set_info(const char* value) {
  296. GOOGLE_DCHECK(value != NULL);
  297. info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  298. // @@protoc_insertion_point(field_set_char:JetStream.Response.info)
  299. }
  300. inline void Response::set_info(const char* value, size_t size) {
  301. info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  302. ::std::string(reinterpret_cast<const char*>(value), size));
  303. // @@protoc_insertion_point(field_set_pointer:JetStream.Response.info)
  304. }
  305. inline ::std::string* Response::mutable_info() {
  306. // @@protoc_insertion_point(field_mutable:JetStream.Response.info)
  307. return info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  308. }
  309. inline ::std::string* Response::release_info() {
  310. // @@protoc_insertion_point(field_release:JetStream.Response.info)
  311. return info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  312. }
  313. inline void Response::set_allocated_info(::std::string* info) {
  314. if (info != NULL) {
  315. } else {
  316. }
  317. info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), info);
  318. // @@protoc_insertion_point(field_set_allocated:JetStream.Response.info)
  319. }
  320. #ifdef __GNUC__
  321. #pragma GCC diagnostic pop
  322. #endif // __GNUC__
  323. // -------------------------------------------------------------------
  324. // @@protoc_insertion_point(namespace_scope)
  325. } // namespace JetStream
  326. // @@protoc_insertion_point(global_scope)
  327. #endif // PROTOBUF_INCLUDED_def_2eproto