123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: def.proto
- #ifndef PROTOBUF_INCLUDED_def_2eproto
- #define PROTOBUF_INCLUDED_def_2eproto
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3006001
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/inlined_string_field.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- #define PROTOBUF_INTERNAL_EXPORT_protobuf_def_2eproto
- namespace protobuf_def_2eproto {
- // Internal implementation detail -- do not use these members.
- struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[2];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static const ::google::protobuf::uint32 offsets[];
- };
- void AddDescriptors();
- } // namespace protobuf_def_2eproto
- namespace JetStream {
- class RequestCmd;
- class RequestCmdDefaultTypeInternal;
- extern RequestCmdDefaultTypeInternal _RequestCmd_default_instance_;
- class Response;
- class ResponseDefaultTypeInternal;
- extern ResponseDefaultTypeInternal _Response_default_instance_;
- } // namespace JetStream
- namespace google {
- namespace protobuf {
- template<> ::JetStream::RequestCmd* Arena::CreateMaybeMessage<::JetStream::RequestCmd>(Arena*);
- template<> ::JetStream::Response* Arena::CreateMaybeMessage<::JetStream::Response>(Arena*);
- } // namespace protobuf
- } // namespace google
- namespace JetStream {
- // ===================================================================
- class RequestCmd : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:JetStream.RequestCmd) */ {
- public:
- RequestCmd();
- virtual ~RequestCmd();
- RequestCmd(const RequestCmd& from);
- inline RequestCmd& operator=(const RequestCmd& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- RequestCmd(RequestCmd&& from) noexcept
- : RequestCmd() {
- *this = ::std::move(from);
- }
- inline RequestCmd& operator=(RequestCmd&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- static const ::google::protobuf::Descriptor* descriptor();
- static const RequestCmd& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const RequestCmd* internal_default_instance() {
- return reinterpret_cast<const RequestCmd*>(
- &_RequestCmd_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- void Swap(RequestCmd* other);
- friend void swap(RequestCmd& a, RequestCmd& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline RequestCmd* New() const final {
- return CreateMaybeMessage<RequestCmd>(NULL);
- }
- RequestCmd* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<RequestCmd>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const RequestCmd& from);
- void MergeFrom(const RequestCmd& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(RequestCmd* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // int32 action = 1;
- void clear_action();
- static const int kActionFieldNumber = 1;
- ::google::protobuf::int32 action() const;
- void set_action(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:JetStream.RequestCmd)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::int32 action_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_def_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class Response : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:JetStream.Response) */ {
- public:
- Response();
- virtual ~Response();
- Response(const Response& from);
- inline Response& operator=(const Response& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Response(Response&& from) noexcept
- : Response() {
- *this = ::std::move(from);
- }
- inline Response& operator=(Response&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- static const ::google::protobuf::Descriptor* descriptor();
- static const Response& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Response* internal_default_instance() {
- return reinterpret_cast<const Response*>(
- &_Response_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- void Swap(Response* other);
- friend void swap(Response& a, Response& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Response* New() const final {
- return CreateMaybeMessage<Response>(NULL);
- }
- Response* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<Response>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const Response& from);
- void MergeFrom(const Response& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Response* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // string info = 2;
- void clear_info();
- static const int kInfoFieldNumber = 2;
- const ::std::string& info() const;
- void set_info(const ::std::string& value);
- #if LANG_CXX11
- void set_info(::std::string&& value);
- #endif
- void set_info(const char* value);
- void set_info(const char* value, size_t size);
- ::std::string* mutable_info();
- ::std::string* release_info();
- void set_allocated_info(::std::string* info);
- // int32 ret = 1;
- void clear_ret();
- static const int kRetFieldNumber = 1;
- ::google::protobuf::int32 ret() const;
- void set_ret(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:JetStream.Response)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::ArenaStringPtr info_;
- ::google::protobuf::int32 ret_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_def_2eproto::TableStruct;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // RequestCmd
- // int32 action = 1;
- inline void RequestCmd::clear_action() {
- action_ = 0;
- }
- inline ::google::protobuf::int32 RequestCmd::action() const {
- // @@protoc_insertion_point(field_get:JetStream.RequestCmd.action)
- return action_;
- }
- inline void RequestCmd::set_action(::google::protobuf::int32 value) {
-
- action_ = value;
- // @@protoc_insertion_point(field_set:JetStream.RequestCmd.action)
- }
- // -------------------------------------------------------------------
- // Response
- // int32 ret = 1;
- inline void Response::clear_ret() {
- ret_ = 0;
- }
- inline ::google::protobuf::int32 Response::ret() const {
- // @@protoc_insertion_point(field_get:JetStream.Response.ret)
- return ret_;
- }
- inline void Response::set_ret(::google::protobuf::int32 value) {
-
- ret_ = value;
- // @@protoc_insertion_point(field_set:JetStream.Response.ret)
- }
- // string info = 2;
- inline void Response::clear_info() {
- info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline const ::std::string& Response::info() const {
- // @@protoc_insertion_point(field_get:JetStream.Response.info)
- return info_.GetNoArena();
- }
- inline void Response::set_info(const ::std::string& value) {
-
- info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:JetStream.Response.info)
- }
- #if LANG_CXX11
- inline void Response::set_info(::std::string&& value) {
-
- info_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:JetStream.Response.info)
- }
- #endif
- inline void Response::set_info(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:JetStream.Response.info)
- }
- inline void Response::set_info(const char* value, size_t size) {
-
- info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:JetStream.Response.info)
- }
- inline ::std::string* Response::mutable_info() {
-
- // @@protoc_insertion_point(field_mutable:JetStream.Response.info)
- return info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* Response::release_info() {
- // @@protoc_insertion_point(field_release:JetStream.Response.info)
-
- return info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void Response::set_allocated_info(::std::string* info) {
- if (info != NULL) {
-
- } else {
-
- }
- info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), info);
- // @@protoc_insertion_point(field_set_allocated:JetStream.Response.info)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace JetStream
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_INCLUDED_def_2eproto
|