// Generated by the protocol buffer compiler. DO NOT EDIT! // source: stream.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_stream_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_stream_2eproto_2epb_2eh #include #include #include #include "google/protobuf/port_def.inc" #if PROTOBUF_VERSION < 4024000 #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 // PROTOBUF_VERSION #if 4024003 < 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 // PROTOBUF_MIN_PROTOC_VERSION #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" #include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.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/generated_enum_reflection.h" #include "google/protobuf/unknown_field_set.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" #define PROTOBUF_INTERNAL_EXPORT_stream_2eproto namespace google { namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal } // namespace protobuf } // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_stream_2eproto { static const ::uint32_t offsets[]; }; extern const ::google::protobuf::internal::DescriptorTable descriptor_table_stream_2eproto; namespace stream { class RequestInfo; struct RequestInfoDefaultTypeInternal; extern RequestInfoDefaultTypeInternal _RequestInfo_default_instance_; class ResponseInfo; struct ResponseInfoDefaultTypeInternal; extern ResponseInfoDefaultTypeInternal _ResponseInfo_default_instance_; } // namespace stream namespace google { namespace protobuf { } // namespace protobuf } // namespace google namespace stream { enum RequestInfo_Status : int { RequestInfo_Status_GET = 0, RequestInfo_Status_SET = 1, RequestInfo_Status_LOAD = 2, RequestInfo_Status_LOADOUT = 3, RequestInfo_Status_SUPPLYAXLEAFTER = 4, RequestInfo_Status_SUPPLYAXLEFRONT = 5, RequestInfo_Status_SUPPLYAXLEAFTERCONT = 6, RequestInfo_Status_SUPPLYAXLEFRONTCONT = 7, RequestInfo_Status_PAVEAXLEFRONT = 8, RequestInfo_Status_PAVEAXLEFRONTCONT = 9, RequestInfo_Status_PAVEAXLEAFTER = 10, RequestInfo_Status_PAVEAXLEAFTERCONT = 11, RequestInfo_Status_PAVEAXLECLEAR = 12, RequestInfo_Status_PRINTAXLEUP = 13, RequestInfo_Status_PRINTAXLEUPCONT = 14, RequestInfo_Status_PRINTAXLEDOWN = 15, RequestInfo_Status_PRINTAXLEDOWNCONT = 16, RequestInfo_Status_PRINTAXLECLEAR = 17, RequestInfo_Status_TRANSFERAXIELEFT = 18, RequestInfo_Status_TRANSFERAXIELEFTCONT = 19, RequestInfo_Status_TRANSFERAXIERIGHT = 20, RequestInfo_Status_TRANSFERAXIERIGHTCONT = 21, RequestInfo_Status_TRANSFERAXIECLEAR = 22, RequestInfo_Status_RequestInfo_Status_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(), RequestInfo_Status_RequestInfo_Status_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max(), }; bool RequestInfo_Status_IsValid(int value); constexpr RequestInfo_Status RequestInfo_Status_Status_MIN = static_cast(0); constexpr RequestInfo_Status RequestInfo_Status_Status_MAX = static_cast(22); constexpr int RequestInfo_Status_Status_ARRAYSIZE = 22 + 1; const ::google::protobuf::EnumDescriptor* RequestInfo_Status_descriptor(); template const std::string& RequestInfo_Status_Name(T value) { static_assert(std::is_same::value || std::is_integral::value, "Incorrect type passed to Status_Name()."); return RequestInfo_Status_Name(static_cast(value)); } template <> inline const std::string& RequestInfo_Status_Name(RequestInfo_Status value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } inline bool RequestInfo_Status_Parse(absl::string_view name, RequestInfo_Status* value) { return ::google::protobuf::internal::ParseNamedEnum( RequestInfo_Status_descriptor(), name, value); } enum RequestInfo_TYPE : int { RequestInfo_TYPE_iBOOL = 0, RequestInfo_TYPE_iSHORT = 1, RequestInfo_TYPE_iUSHORT = 2, RequestInfo_TYPE_iINT = 3, RequestInfo_TYPE_iUINT = 4, RequestInfo_TYPE_iFLOAT = 5, RequestInfo_TYPE_iSTRING = 6, RequestInfo_TYPE_RequestInfo_TYPE_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(), RequestInfo_TYPE_RequestInfo_TYPE_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max(), }; bool RequestInfo_TYPE_IsValid(int value); constexpr RequestInfo_TYPE RequestInfo_TYPE_TYPE_MIN = static_cast(0); constexpr RequestInfo_TYPE RequestInfo_TYPE_TYPE_MAX = static_cast(6); constexpr int RequestInfo_TYPE_TYPE_ARRAYSIZE = 6 + 1; const ::google::protobuf::EnumDescriptor* RequestInfo_TYPE_descriptor(); template const std::string& RequestInfo_TYPE_Name(T value) { static_assert(std::is_same::value || std::is_integral::value, "Incorrect type passed to TYPE_Name()."); return RequestInfo_TYPE_Name(static_cast(value)); } template <> inline const std::string& RequestInfo_TYPE_Name(RequestInfo_TYPE value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } inline bool RequestInfo_TYPE_Parse(absl::string_view name, RequestInfo_TYPE* value) { return ::google::protobuf::internal::ParseNamedEnum( RequestInfo_TYPE_descriptor(), name, value); } enum ResponseInfo_Status : int { ResponseInfo_Status_ProcReadPLC0 = 0, ResponseInfo_Status_ProcReadPLC1 = 1, ResponseInfo_Status_ProcReadPLC2 = 2, ResponseInfo_Status_ProcReadPLC3 = 3, ResponseInfo_Status_ProcReadPLC4 = 4, ResponseInfo_Status_ProcReadPLC5 = 5, ResponseInfo_Status_ProcReadPLC6 = 6, ResponseInfo_Status_ProcReadPLCData0 = 7, ResponseInfo_Status_ALARM = 8, ResponseInfo_Status_RESPOND = 9, ResponseInfo_Status_TIMEDATA = 10, ResponseInfo_Status_ResponseInfo_Status_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(), ResponseInfo_Status_ResponseInfo_Status_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max(), }; bool ResponseInfo_Status_IsValid(int value); constexpr ResponseInfo_Status ResponseInfo_Status_Status_MIN = static_cast(0); constexpr ResponseInfo_Status ResponseInfo_Status_Status_MAX = static_cast(10); constexpr int ResponseInfo_Status_Status_ARRAYSIZE = 10 + 1; const ::google::protobuf::EnumDescriptor* ResponseInfo_Status_descriptor(); template const std::string& ResponseInfo_Status_Name(T value) { static_assert(std::is_same::value || std::is_integral::value, "Incorrect type passed to Status_Name()."); return ResponseInfo_Status_Name(static_cast(value)); } template <> inline const std::string& ResponseInfo_Status_Name(ResponseInfo_Status value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } inline bool ResponseInfo_Status_Parse(absl::string_view name, ResponseInfo_Status* value) { return ::google::protobuf::internal::ParseNamedEnum( ResponseInfo_Status_descriptor(), name, value); } enum ResponseInfo_TYPE : int { ResponseInfo_TYPE_iBOOL = 0, ResponseInfo_TYPE_iSHORT = 1, ResponseInfo_TYPE_iUSHORT = 2, ResponseInfo_TYPE_iINT = 3, ResponseInfo_TYPE_iUINT = 4, ResponseInfo_TYPE_iFLOAT = 5, ResponseInfo_TYPE_ISTRING = 6, ResponseInfo_TYPE_ResponseInfo_TYPE_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(), ResponseInfo_TYPE_ResponseInfo_TYPE_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max(), }; bool ResponseInfo_TYPE_IsValid(int value); constexpr ResponseInfo_TYPE ResponseInfo_TYPE_TYPE_MIN = static_cast(0); constexpr ResponseInfo_TYPE ResponseInfo_TYPE_TYPE_MAX = static_cast(6); constexpr int ResponseInfo_TYPE_TYPE_ARRAYSIZE = 6 + 1; const ::google::protobuf::EnumDescriptor* ResponseInfo_TYPE_descriptor(); template const std::string& ResponseInfo_TYPE_Name(T value) { static_assert(std::is_same::value || std::is_integral::value, "Incorrect type passed to TYPE_Name()."); return ResponseInfo_TYPE_Name(static_cast(value)); } template <> inline const std::string& ResponseInfo_TYPE_Name(ResponseInfo_TYPE value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } inline bool ResponseInfo_TYPE_Parse(absl::string_view name, ResponseInfo_TYPE* value) { return ::google::protobuf::internal::ParseNamedEnum( ResponseInfo_TYPE_descriptor(), name, value); } // =================================================================== // ------------------------------------------------------------------- class RequestInfo final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:stream.RequestInfo) */ { public: inline RequestInfo() : RequestInfo(nullptr) {} ~RequestInfo() override; template explicit PROTOBUF_CONSTEXPR RequestInfo(::google::protobuf::internal::ConstantInitialized); RequestInfo(const RequestInfo& from); RequestInfo(RequestInfo&& from) noexcept : RequestInfo() { *this = ::std::move(from); } inline RequestInfo& operator=(const RequestInfo& from) { CopyFrom(from); return *this; } inline RequestInfo& operator=(RequestInfo&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const RequestInfo& default_instance() { return *internal_default_instance(); } static inline const RequestInfo* internal_default_instance() { return reinterpret_cast( &_RequestInfo_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(RequestInfo& a, RequestInfo& b) { a.Swap(&b); } inline void Swap(RequestInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(RequestInfo* other) { if (other == this) return; ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- RequestInfo* New(::google::protobuf::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const RequestInfo& from); using ::google::protobuf::Message::MergeFrom; void MergeFrom( const RequestInfo& from) { RequestInfo::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(RequestInfo* other); private: friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { return "stream.RequestInfo"; } protected: explicit RequestInfo(::google::protobuf::Arena* arena); public: static const ClassData _class_data_; const ::google::protobuf::Message::ClassData*GetClassData() const final; ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- using Status = RequestInfo_Status; static constexpr Status GET = RequestInfo_Status_GET; static constexpr Status SET = RequestInfo_Status_SET; static constexpr Status LOAD = RequestInfo_Status_LOAD; static constexpr Status LOADOUT = RequestInfo_Status_LOADOUT; static constexpr Status SUPPLYAXLEAFTER = RequestInfo_Status_SUPPLYAXLEAFTER; static constexpr Status SUPPLYAXLEFRONT = RequestInfo_Status_SUPPLYAXLEFRONT; static constexpr Status SUPPLYAXLEAFTERCONT = RequestInfo_Status_SUPPLYAXLEAFTERCONT; static constexpr Status SUPPLYAXLEFRONTCONT = RequestInfo_Status_SUPPLYAXLEFRONTCONT; static constexpr Status PAVEAXLEFRONT = RequestInfo_Status_PAVEAXLEFRONT; static constexpr Status PAVEAXLEFRONTCONT = RequestInfo_Status_PAVEAXLEFRONTCONT; static constexpr Status PAVEAXLEAFTER = RequestInfo_Status_PAVEAXLEAFTER; static constexpr Status PAVEAXLEAFTERCONT = RequestInfo_Status_PAVEAXLEAFTERCONT; static constexpr Status PAVEAXLECLEAR = RequestInfo_Status_PAVEAXLECLEAR; static constexpr Status PRINTAXLEUP = RequestInfo_Status_PRINTAXLEUP; static constexpr Status PRINTAXLEUPCONT = RequestInfo_Status_PRINTAXLEUPCONT; static constexpr Status PRINTAXLEDOWN = RequestInfo_Status_PRINTAXLEDOWN; static constexpr Status PRINTAXLEDOWNCONT = RequestInfo_Status_PRINTAXLEDOWNCONT; static constexpr Status PRINTAXLECLEAR = RequestInfo_Status_PRINTAXLECLEAR; static constexpr Status TRANSFERAXIELEFT = RequestInfo_Status_TRANSFERAXIELEFT; static constexpr Status TRANSFERAXIELEFTCONT = RequestInfo_Status_TRANSFERAXIELEFTCONT; static constexpr Status TRANSFERAXIERIGHT = RequestInfo_Status_TRANSFERAXIERIGHT; static constexpr Status TRANSFERAXIERIGHTCONT = RequestInfo_Status_TRANSFERAXIERIGHTCONT; static constexpr Status TRANSFERAXIECLEAR = RequestInfo_Status_TRANSFERAXIECLEAR; static inline bool Status_IsValid(int value) { return RequestInfo_Status_IsValid(value); } static constexpr Status Status_MIN = RequestInfo_Status_Status_MIN; static constexpr Status Status_MAX = RequestInfo_Status_Status_MAX; static constexpr int Status_ARRAYSIZE = RequestInfo_Status_Status_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* Status_descriptor() { return RequestInfo_Status_descriptor(); } template static inline const std::string& Status_Name(T value) { return RequestInfo_Status_Name(value); } static inline bool Status_Parse(absl::string_view name, Status* value) { return RequestInfo_Status_Parse(name, value); } using TYPE = RequestInfo_TYPE; static constexpr TYPE iBOOL = RequestInfo_TYPE_iBOOL; static constexpr TYPE iSHORT = RequestInfo_TYPE_iSHORT; static constexpr TYPE iUSHORT = RequestInfo_TYPE_iUSHORT; static constexpr TYPE iINT = RequestInfo_TYPE_iINT; static constexpr TYPE iUINT = RequestInfo_TYPE_iUINT; static constexpr TYPE iFLOAT = RequestInfo_TYPE_iFLOAT; static constexpr TYPE iSTRING = RequestInfo_TYPE_iSTRING; static inline bool TYPE_IsValid(int value) { return RequestInfo_TYPE_IsValid(value); } static constexpr TYPE TYPE_MIN = RequestInfo_TYPE_TYPE_MIN; static constexpr TYPE TYPE_MAX = RequestInfo_TYPE_TYPE_MAX; static constexpr int TYPE_ARRAYSIZE = RequestInfo_TYPE_TYPE_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* TYPE_descriptor() { return RequestInfo_TYPE_descriptor(); } template static inline const std::string& TYPE_Name(T value) { return RequestInfo_TYPE_Name(value); } static inline bool TYPE_Parse(absl::string_view name, TYPE* value) { return RequestInfo_TYPE_Parse(name, value); } // accessors ------------------------------------------------------- enum : int { kNameKeyFieldNumber = 2, kStrValueFieldNumber = 3, kDataTypeFieldNumber = 1, kValueTypeFieldNumber = 4, }; // bytes nameKey = 2; void clear_namekey() ; const std::string& namekey() const; template void set_namekey(Arg_&& arg, Args_... args); std::string* mutable_namekey(); PROTOBUF_NODISCARD std::string* release_namekey(); void set_allocated_namekey(std::string* ptr); private: const std::string& _internal_namekey() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_namekey( const std::string& value); std::string* _internal_mutable_namekey(); public: // bytes strValue = 3; void clear_strvalue() ; const std::string& strvalue() const; template void set_strvalue(Arg_&& arg, Args_... args); std::string* mutable_strvalue(); PROTOBUF_NODISCARD std::string* release_strvalue(); void set_allocated_strvalue(std::string* ptr); private: const std::string& _internal_strvalue() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_strvalue( const std::string& value); std::string* _internal_mutable_strvalue(); public: // .stream.RequestInfo.Status dataType = 1; void clear_datatype() ; ::stream::RequestInfo_Status datatype() const; void set_datatype(::stream::RequestInfo_Status value); private: ::stream::RequestInfo_Status _internal_datatype() const; void _internal_set_datatype(::stream::RequestInfo_Status value); public: // .stream.RequestInfo.TYPE valueType = 4; void clear_valuetype() ; ::stream::RequestInfo_TYPE valuetype() const; void set_valuetype(::stream::RequestInfo_TYPE value); private: ::stream::RequestInfo_TYPE _internal_valuetype() const; void _internal_set_valuetype(::stream::RequestInfo_TYPE value); public: // @@protoc_insertion_point(class_scope:stream.RequestInfo) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable<2, 4, 0, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { ::google::protobuf::internal::ArenaStringPtr namekey_; ::google::protobuf::internal::ArenaStringPtr strvalue_; int datatype_; int valuetype_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_stream_2eproto; };// ------------------------------------------------------------------- class ResponseInfo final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:stream.ResponseInfo) */ { public: inline ResponseInfo() : ResponseInfo(nullptr) {} ~ResponseInfo() override; template explicit PROTOBUF_CONSTEXPR ResponseInfo(::google::protobuf::internal::ConstantInitialized); ResponseInfo(const ResponseInfo& from); ResponseInfo(ResponseInfo&& from) noexcept : ResponseInfo() { *this = ::std::move(from); } inline ResponseInfo& operator=(const ResponseInfo& from) { CopyFrom(from); return *this; } inline ResponseInfo& operator=(ResponseInfo&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const ResponseInfo& default_instance() { return *internal_default_instance(); } static inline const ResponseInfo* internal_default_instance() { return reinterpret_cast( &_ResponseInfo_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(ResponseInfo& a, ResponseInfo& b) { a.Swap(&b); } inline void Swap(ResponseInfo* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(ResponseInfo* other) { if (other == this) return; ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- ResponseInfo* New(::google::protobuf::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ResponseInfo& from); using ::google::protobuf::Message::MergeFrom; void MergeFrom( const ResponseInfo& from) { ResponseInfo::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ResponseInfo* other); private: friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { return "stream.ResponseInfo"; } protected: explicit ResponseInfo(::google::protobuf::Arena* arena); public: static const ClassData _class_data_; const ::google::protobuf::Message::ClassData*GetClassData() const final; ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- using Status = ResponseInfo_Status; static constexpr Status ProcReadPLC0 = ResponseInfo_Status_ProcReadPLC0; static constexpr Status ProcReadPLC1 = ResponseInfo_Status_ProcReadPLC1; static constexpr Status ProcReadPLC2 = ResponseInfo_Status_ProcReadPLC2; static constexpr Status ProcReadPLC3 = ResponseInfo_Status_ProcReadPLC3; static constexpr Status ProcReadPLC4 = ResponseInfo_Status_ProcReadPLC4; static constexpr Status ProcReadPLC5 = ResponseInfo_Status_ProcReadPLC5; static constexpr Status ProcReadPLC6 = ResponseInfo_Status_ProcReadPLC6; static constexpr Status ProcReadPLCData0 = ResponseInfo_Status_ProcReadPLCData0; static constexpr Status ALARM = ResponseInfo_Status_ALARM; static constexpr Status RESPOND = ResponseInfo_Status_RESPOND; static constexpr Status TIMEDATA = ResponseInfo_Status_TIMEDATA; static inline bool Status_IsValid(int value) { return ResponseInfo_Status_IsValid(value); } static constexpr Status Status_MIN = ResponseInfo_Status_Status_MIN; static constexpr Status Status_MAX = ResponseInfo_Status_Status_MAX; static constexpr int Status_ARRAYSIZE = ResponseInfo_Status_Status_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* Status_descriptor() { return ResponseInfo_Status_descriptor(); } template static inline const std::string& Status_Name(T value) { return ResponseInfo_Status_Name(value); } static inline bool Status_Parse(absl::string_view name, Status* value) { return ResponseInfo_Status_Parse(name, value); } using TYPE = ResponseInfo_TYPE; static constexpr TYPE iBOOL = ResponseInfo_TYPE_iBOOL; static constexpr TYPE iSHORT = ResponseInfo_TYPE_iSHORT; static constexpr TYPE iUSHORT = ResponseInfo_TYPE_iUSHORT; static constexpr TYPE iINT = ResponseInfo_TYPE_iINT; static constexpr TYPE iUINT = ResponseInfo_TYPE_iUINT; static constexpr TYPE iFLOAT = ResponseInfo_TYPE_iFLOAT; static constexpr TYPE ISTRING = ResponseInfo_TYPE_ISTRING; static inline bool TYPE_IsValid(int value) { return ResponseInfo_TYPE_IsValid(value); } static constexpr TYPE TYPE_MIN = ResponseInfo_TYPE_TYPE_MIN; static constexpr TYPE TYPE_MAX = ResponseInfo_TYPE_TYPE_MAX; static constexpr int TYPE_ARRAYSIZE = ResponseInfo_TYPE_TYPE_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* TYPE_descriptor() { return ResponseInfo_TYPE_descriptor(); } template static inline const std::string& TYPE_Name(T value) { return ResponseInfo_TYPE_Name(value); } static inline bool TYPE_Parse(absl::string_view name, TYPE* value) { return ResponseInfo_TYPE_Parse(name, value); } // accessors ------------------------------------------------------- enum : int { kNameKeyFieldNumber = 3, kStrValueFieldNumber = 4, kDataTypeFieldNumber = 1, kResultFieldNumber = 2, kValueTypeFieldNumber = 5, }; // bytes nameKey = 3; void clear_namekey() ; const std::string& namekey() const; template void set_namekey(Arg_&& arg, Args_... args); std::string* mutable_namekey(); PROTOBUF_NODISCARD std::string* release_namekey(); void set_allocated_namekey(std::string* ptr); private: const std::string& _internal_namekey() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_namekey( const std::string& value); std::string* _internal_mutable_namekey(); public: // bytes strValue = 4; void clear_strvalue() ; const std::string& strvalue() const; template void set_strvalue(Arg_&& arg, Args_... args); std::string* mutable_strvalue(); PROTOBUF_NODISCARD std::string* release_strvalue(); void set_allocated_strvalue(std::string* ptr); private: const std::string& _internal_strvalue() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_strvalue( const std::string& value); std::string* _internal_mutable_strvalue(); public: // .stream.ResponseInfo.Status dataType = 1; void clear_datatype() ; ::stream::ResponseInfo_Status datatype() const; void set_datatype(::stream::ResponseInfo_Status value); private: ::stream::ResponseInfo_Status _internal_datatype() const; void _internal_set_datatype(::stream::ResponseInfo_Status value); public: // bool result = 2; void clear_result() ; bool result() const; void set_result(bool value); private: bool _internal_result() const; void _internal_set_result(bool value); public: // .stream.ResponseInfo.TYPE valueType = 5; void clear_valuetype() ; ::stream::ResponseInfo_TYPE valuetype() const; void set_valuetype(::stream::ResponseInfo_TYPE value); private: ::stream::ResponseInfo_TYPE _internal_valuetype() const; void _internal_set_valuetype(::stream::ResponseInfo_TYPE value); public: // @@protoc_insertion_point(class_scope:stream.ResponseInfo) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable<3, 5, 0, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { ::google::protobuf::internal::ArenaStringPtr namekey_; ::google::protobuf::internal::ArenaStringPtr strvalue_; int datatype_; bool result_; int valuetype_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_stream_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- // RequestInfo // .stream.RequestInfo.Status dataType = 1; inline void RequestInfo::clear_datatype() { _impl_.datatype_ = 0; } inline ::stream::RequestInfo_Status RequestInfo::datatype() const { // @@protoc_insertion_point(field_get:stream.RequestInfo.dataType) return _internal_datatype(); } inline void RequestInfo::set_datatype(::stream::RequestInfo_Status value) { _internal_set_datatype(value); // @@protoc_insertion_point(field_set:stream.RequestInfo.dataType) } inline ::stream::RequestInfo_Status RequestInfo::_internal_datatype() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::stream::RequestInfo_Status>(_impl_.datatype_); } inline void RequestInfo::_internal_set_datatype(::stream::RequestInfo_Status value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.datatype_ = value; } // bytes nameKey = 2; inline void RequestInfo::clear_namekey() { _impl_.namekey_.ClearToEmpty(); } inline const std::string& RequestInfo::namekey() const { // @@protoc_insertion_point(field_get:stream.RequestInfo.nameKey) return _internal_namekey(); } template inline PROTOBUF_ALWAYS_INLINE void RequestInfo::set_namekey(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.namekey_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:stream.RequestInfo.nameKey) } inline std::string* RequestInfo::mutable_namekey() { std::string* _s = _internal_mutable_namekey(); // @@protoc_insertion_point(field_mutable:stream.RequestInfo.nameKey) return _s; } inline const std::string& RequestInfo::_internal_namekey() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.namekey_.Get(); } inline void RequestInfo::_internal_set_namekey(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.namekey_.Set(value, GetArenaForAllocation()); } inline std::string* RequestInfo::_internal_mutable_namekey() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; return _impl_.namekey_.Mutable( GetArenaForAllocation()); } inline std::string* RequestInfo::release_namekey() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:stream.RequestInfo.nameKey) return _impl_.namekey_.Release(); } inline void RequestInfo::set_allocated_namekey(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.namekey_.SetAllocated(value, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.namekey_.IsDefault()) { _impl_.namekey_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:stream.RequestInfo.nameKey) } // bytes strValue = 3; inline void RequestInfo::clear_strvalue() { _impl_.strvalue_.ClearToEmpty(); } inline const std::string& RequestInfo::strvalue() const { // @@protoc_insertion_point(field_get:stream.RequestInfo.strValue) return _internal_strvalue(); } template inline PROTOBUF_ALWAYS_INLINE void RequestInfo::set_strvalue(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.strvalue_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:stream.RequestInfo.strValue) } inline std::string* RequestInfo::mutable_strvalue() { std::string* _s = _internal_mutable_strvalue(); // @@protoc_insertion_point(field_mutable:stream.RequestInfo.strValue) return _s; } inline const std::string& RequestInfo::_internal_strvalue() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.strvalue_.Get(); } inline void RequestInfo::_internal_set_strvalue(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.strvalue_.Set(value, GetArenaForAllocation()); } inline std::string* RequestInfo::_internal_mutable_strvalue() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; return _impl_.strvalue_.Mutable( GetArenaForAllocation()); } inline std::string* RequestInfo::release_strvalue() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:stream.RequestInfo.strValue) return _impl_.strvalue_.Release(); } inline void RequestInfo::set_allocated_strvalue(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.strvalue_.SetAllocated(value, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.strvalue_.IsDefault()) { _impl_.strvalue_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:stream.RequestInfo.strValue) } // .stream.RequestInfo.TYPE valueType = 4; inline void RequestInfo::clear_valuetype() { _impl_.valuetype_ = 0; } inline ::stream::RequestInfo_TYPE RequestInfo::valuetype() const { // @@protoc_insertion_point(field_get:stream.RequestInfo.valueType) return _internal_valuetype(); } inline void RequestInfo::set_valuetype(::stream::RequestInfo_TYPE value) { _internal_set_valuetype(value); // @@protoc_insertion_point(field_set:stream.RequestInfo.valueType) } inline ::stream::RequestInfo_TYPE RequestInfo::_internal_valuetype() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::stream::RequestInfo_TYPE>(_impl_.valuetype_); } inline void RequestInfo::_internal_set_valuetype(::stream::RequestInfo_TYPE value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.valuetype_ = value; } // ------------------------------------------------------------------- // ResponseInfo // .stream.ResponseInfo.Status dataType = 1; inline void ResponseInfo::clear_datatype() { _impl_.datatype_ = 0; } inline ::stream::ResponseInfo_Status ResponseInfo::datatype() const { // @@protoc_insertion_point(field_get:stream.ResponseInfo.dataType) return _internal_datatype(); } inline void ResponseInfo::set_datatype(::stream::ResponseInfo_Status value) { _internal_set_datatype(value); // @@protoc_insertion_point(field_set:stream.ResponseInfo.dataType) } inline ::stream::ResponseInfo_Status ResponseInfo::_internal_datatype() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::stream::ResponseInfo_Status>(_impl_.datatype_); } inline void ResponseInfo::_internal_set_datatype(::stream::ResponseInfo_Status value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.datatype_ = value; } // bool result = 2; inline void ResponseInfo::clear_result() { _impl_.result_ = false; } inline bool ResponseInfo::result() const { // @@protoc_insertion_point(field_get:stream.ResponseInfo.result) return _internal_result(); } inline void ResponseInfo::set_result(bool value) { _internal_set_result(value); // @@protoc_insertion_point(field_set:stream.ResponseInfo.result) } inline bool ResponseInfo::_internal_result() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.result_; } inline void ResponseInfo::_internal_set_result(bool value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.result_ = value; } // bytes nameKey = 3; inline void ResponseInfo::clear_namekey() { _impl_.namekey_.ClearToEmpty(); } inline const std::string& ResponseInfo::namekey() const { // @@protoc_insertion_point(field_get:stream.ResponseInfo.nameKey) return _internal_namekey(); } template inline PROTOBUF_ALWAYS_INLINE void ResponseInfo::set_namekey(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.namekey_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:stream.ResponseInfo.nameKey) } inline std::string* ResponseInfo::mutable_namekey() { std::string* _s = _internal_mutable_namekey(); // @@protoc_insertion_point(field_mutable:stream.ResponseInfo.nameKey) return _s; } inline const std::string& ResponseInfo::_internal_namekey() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.namekey_.Get(); } inline void ResponseInfo::_internal_set_namekey(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.namekey_.Set(value, GetArenaForAllocation()); } inline std::string* ResponseInfo::_internal_mutable_namekey() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; return _impl_.namekey_.Mutable( GetArenaForAllocation()); } inline std::string* ResponseInfo::release_namekey() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:stream.ResponseInfo.nameKey) return _impl_.namekey_.Release(); } inline void ResponseInfo::set_allocated_namekey(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.namekey_.SetAllocated(value, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.namekey_.IsDefault()) { _impl_.namekey_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:stream.ResponseInfo.nameKey) } // bytes strValue = 4; inline void ResponseInfo::clear_strvalue() { _impl_.strvalue_.ClearToEmpty(); } inline const std::string& ResponseInfo::strvalue() const { // @@protoc_insertion_point(field_get:stream.ResponseInfo.strValue) return _internal_strvalue(); } template inline PROTOBUF_ALWAYS_INLINE void ResponseInfo::set_strvalue(Arg_&& arg, Args_... args) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.strvalue_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:stream.ResponseInfo.strValue) } inline std::string* ResponseInfo::mutable_strvalue() { std::string* _s = _internal_mutable_strvalue(); // @@protoc_insertion_point(field_mutable:stream.ResponseInfo.strValue) return _s; } inline const std::string& ResponseInfo::_internal_strvalue() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.strvalue_.Get(); } inline void ResponseInfo::_internal_set_strvalue(const std::string& value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.strvalue_.Set(value, GetArenaForAllocation()); } inline std::string* ResponseInfo::_internal_mutable_strvalue() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; return _impl_.strvalue_.Mutable( GetArenaForAllocation()); } inline std::string* ResponseInfo::release_strvalue() { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:stream.ResponseInfo.strValue) return _impl_.strvalue_.Release(); } inline void ResponseInfo::set_allocated_strvalue(std::string* value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.strvalue_.SetAllocated(value, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.strvalue_.IsDefault()) { _impl_.strvalue_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:stream.ResponseInfo.strValue) } // .stream.ResponseInfo.TYPE valueType = 5; inline void ResponseInfo::clear_valuetype() { _impl_.valuetype_ = 0; } inline ::stream::ResponseInfo_TYPE ResponseInfo::valuetype() const { // @@protoc_insertion_point(field_get:stream.ResponseInfo.valueType) return _internal_valuetype(); } inline void ResponseInfo::set_valuetype(::stream::ResponseInfo_TYPE value) { _internal_set_valuetype(value); // @@protoc_insertion_point(field_set:stream.ResponseInfo.valueType) } inline ::stream::ResponseInfo_TYPE ResponseInfo::_internal_valuetype() const { PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::stream::ResponseInfo_TYPE>(_impl_.valuetype_); } inline void ResponseInfo::_internal_set_valuetype(::stream::ResponseInfo_TYPE value) { PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.valuetype_ = value; } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace stream namespace google { namespace protobuf { template <> struct is_proto_enum<::stream::RequestInfo_Status> : std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor<::stream::RequestInfo_Status>() { return ::stream::RequestInfo_Status_descriptor(); } template <> struct is_proto_enum<::stream::RequestInfo_TYPE> : std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor<::stream::RequestInfo_TYPE>() { return ::stream::RequestInfo_TYPE_descriptor(); } template <> struct is_proto_enum<::stream::ResponseInfo_Status> : std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor<::stream::ResponseInfo_Status>() { return ::stream::ResponseInfo_Status_descriptor(); } template <> struct is_proto_enum<::stream::ResponseInfo_TYPE> : std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor<::stream::ResponseInfo_TYPE>() { return ::stream::ResponseInfo_TYPE_descriptor(); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" #endif // GOOGLE_PROTOBUF_INCLUDED_stream_2eproto_2epb_2eh