// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Public.proto #ifndef PROTOBUF_Public_2eproto__INCLUDED #define PROTOBUF_Public_2eproto__INCLUDED #include #include #if GOOGLE_PROTOBUF_VERSION < 2006000 #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 2006001 < 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 #include #include #include #include #include // @@protoc_insertion_point(includes) namespace iot_idl { // Internal implementation detail -- do not call these. void IDL_FILES_EXPORT protobuf_AddDesc_Public_2eproto(); void protobuf_AssignDesc_Public_2eproto(); void protobuf_ShutdownFile_Public_2eproto(); class SVariable; enum DataType { CN_DATATYPE_BOOL = 1, CN_DATATYPE_UINT32 = 2, CN_DATATYPE_INT32 = 3, CN_DATATYPE_UINT64 = 4, CN_DATATYPE_INT64 = 5, CN_DATATYPE_FLOAT = 6, CN_DATATYPE_DOUBLE = 7, CN_DATATYPE_STRING = 8, CN_DATATYPE_BYTES = 9 }; IDL_FILES_EXPORT bool DataType_IsValid(int value); const DataType DataType_MIN = CN_DATATYPE_BOOL; const DataType DataType_MAX = CN_DATATYPE_BYTES; const int DataType_ARRAYSIZE = DataType_MAX + 1; IDL_FILES_EXPORT const ::google::protobuf::EnumDescriptor* DataType_descriptor(); inline const ::std::string& DataType_Name(DataType value) { return ::google::protobuf::internal::NameOfEnum( DataType_descriptor(), value); } inline bool DataType_Parse( const ::std::string& name, DataType* value) { return ::google::protobuf::internal::ParseNamedEnum( DataType_descriptor(), name, value); } enum ENConditionLogic { enumCondAnd = 0, enumCondOr = 1 }; IDL_FILES_EXPORT bool ENConditionLogic_IsValid(int value); const ENConditionLogic ENConditionLogic_MIN = enumCondAnd; const ENConditionLogic ENConditionLogic_MAX = enumCondOr; const int ENConditionLogic_ARRAYSIZE = ENConditionLogic_MAX + 1; IDL_FILES_EXPORT const ::google::protobuf::EnumDescriptor* ENConditionLogic_descriptor(); inline const ::std::string& ENConditionLogic_Name(ENConditionLogic value) { return ::google::protobuf::internal::NameOfEnum( ENConditionLogic_descriptor(), value); } inline bool ENConditionLogic_Parse( const ::std::string& name, ENConditionLogic* value) { return ::google::protobuf::internal::ParseNamedEnum( ENConditionLogic_descriptor(), name, value); } enum ENConditionRelation { enumCondEqual = 0, enumCondLarge = 1, enumCondSmall = 2, enumCondLargeEqual = 3, enumCondSmallEqual = 4, enumCondNotEqual = 5 }; IDL_FILES_EXPORT bool ENConditionRelation_IsValid(int value); const ENConditionRelation ENConditionRelation_MIN = enumCondEqual; const ENConditionRelation ENConditionRelation_MAX = enumCondNotEqual; const int ENConditionRelation_ARRAYSIZE = ENConditionRelation_MAX + 1; IDL_FILES_EXPORT const ::google::protobuf::EnumDescriptor* ENConditionRelation_descriptor(); inline const ::std::string& ENConditionRelation_Name(ENConditionRelation value) { return ::google::protobuf::internal::NameOfEnum( ENConditionRelation_descriptor(), value); } inline bool ENConditionRelation_Parse( const ::std::string& name, ENConditionRelation* value) { return ::google::protobuf::internal::ParseNamedEnum( ENConditionRelation_descriptor(), name, value); } // =================================================================== class IDL_FILES_EXPORT SVariable : public ::google::protobuf::Message { public: SVariable(); virtual ~SVariable(); SVariable(const SVariable& from); inline SVariable& operator=(const SVariable& from) { CopyFrom(from); return *this; } inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _unknown_fields_; } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return &_unknown_fields_; } static const ::google::protobuf::Descriptor* descriptor(); static const SVariable& default_instance(); void Swap(SVariable* other); // implements Message ---------------------------------------------- SVariable* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const SVariable& from); void MergeFrom(const SVariable& from); void Clear(); bool IsInitialized() const; int ByteSize() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; public: ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required .iot_idl.DataType eDataType = 1; inline bool has_edatatype() const; inline void clear_edatatype(); static const int kEDataTypeFieldNumber = 1; inline ::iot_idl::DataType edatatype() const; inline void set_edatatype(::iot_idl::DataType value); // optional bool bValue = 2; inline bool has_bvalue() const; inline void clear_bvalue(); static const int kBValueFieldNumber = 2; inline bool bvalue() const; inline void set_bvalue(bool value); // optional uint32 uValue = 3; inline bool has_uvalue() const; inline void clear_uvalue(); static const int kUValueFieldNumber = 3; inline ::google::protobuf::uint32 uvalue() const; inline void set_uvalue(::google::protobuf::uint32 value); // optional int32 nValue = 4; inline bool has_nvalue() const; inline void clear_nvalue(); static const int kNValueFieldNumber = 4; inline ::google::protobuf::int32 nvalue() const; inline void set_nvalue(::google::protobuf::int32 value); // optional uint64 ulValue = 5; inline bool has_ulvalue() const; inline void clear_ulvalue(); static const int kUlValueFieldNumber = 5; inline ::google::protobuf::uint64 ulvalue() const; inline void set_ulvalue(::google::protobuf::uint64 value); // optional int64 lValue = 6; inline bool has_lvalue() const; inline void clear_lvalue(); static const int kLValueFieldNumber = 6; inline ::google::protobuf::int64 lvalue() const; inline void set_lvalue(::google::protobuf::int64 value); // optional float fValue = 7; inline bool has_fvalue() const; inline void clear_fvalue(); static const int kFValueFieldNumber = 7; inline float fvalue() const; inline void set_fvalue(float value); // optional double dValue = 8; inline bool has_dvalue() const; inline void clear_dvalue(); static const int kDValueFieldNumber = 8; inline double dvalue() const; inline void set_dvalue(double value); // optional string strValue = 9; inline bool has_strvalue() const; inline void clear_strvalue(); static const int kStrValueFieldNumber = 9; inline const ::std::string& strvalue() const; inline void set_strvalue(const ::std::string& value); inline void set_strvalue(const char* value); inline void set_strvalue(const char* value, size_t size); inline ::std::string* mutable_strvalue(); inline ::std::string* release_strvalue(); inline void set_allocated_strvalue(::std::string* strvalue); // @@protoc_insertion_point(class_scope:iot_idl.SVariable) private: inline void set_has_edatatype(); inline void clear_has_edatatype(); inline void set_has_bvalue(); inline void clear_has_bvalue(); inline void set_has_uvalue(); inline void clear_has_uvalue(); inline void set_has_nvalue(); inline void clear_has_nvalue(); inline void set_has_ulvalue(); inline void clear_has_ulvalue(); inline void set_has_lvalue(); inline void clear_has_lvalue(); inline void set_has_fvalue(); inline void clear_has_fvalue(); inline void set_has_dvalue(); inline void clear_has_dvalue(); inline void set_has_strvalue(); inline void clear_has_strvalue(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; int edatatype_; bool bvalue_; ::google::protobuf::uint32 uvalue_; ::google::protobuf::int32 nvalue_; ::google::protobuf::uint64 ulvalue_; ::google::protobuf::int64 lvalue_; double dvalue_; ::std::string* strvalue_; float fvalue_; friend void IDL_FILES_EXPORT protobuf_AddDesc_Public_2eproto(); friend void protobuf_AssignDesc_Public_2eproto(); friend void protobuf_ShutdownFile_Public_2eproto(); void InitAsDefaultInstance(); static SVariable* default_instance_; }; // =================================================================== // =================================================================== // SVariable // required .iot_idl.DataType eDataType = 1; inline bool SVariable::has_edatatype() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void SVariable::set_has_edatatype() { _has_bits_[0] |= 0x00000001u; } inline void SVariable::clear_has_edatatype() { _has_bits_[0] &= ~0x00000001u; } inline void SVariable::clear_edatatype() { edatatype_ = 1; clear_has_edatatype(); } inline ::iot_idl::DataType SVariable::edatatype() const { // @@protoc_insertion_point(field_get:iot_idl.SVariable.eDataType) return static_cast< ::iot_idl::DataType >(edatatype_); } inline void SVariable::set_edatatype(::iot_idl::DataType value) { assert(::iot_idl::DataType_IsValid(value)); set_has_edatatype(); edatatype_ = value; // @@protoc_insertion_point(field_set:iot_idl.SVariable.eDataType) } // optional bool bValue = 2; inline bool SVariable::has_bvalue() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void SVariable::set_has_bvalue() { _has_bits_[0] |= 0x00000002u; } inline void SVariable::clear_has_bvalue() { _has_bits_[0] &= ~0x00000002u; } inline void SVariable::clear_bvalue() { bvalue_ = false; clear_has_bvalue(); } inline bool SVariable::bvalue() const { // @@protoc_insertion_point(field_get:iot_idl.SVariable.bValue) return bvalue_; } inline void SVariable::set_bvalue(bool value) { set_has_bvalue(); bvalue_ = value; // @@protoc_insertion_point(field_set:iot_idl.SVariable.bValue) } // optional uint32 uValue = 3; inline bool SVariable::has_uvalue() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void SVariable::set_has_uvalue() { _has_bits_[0] |= 0x00000004u; } inline void SVariable::clear_has_uvalue() { _has_bits_[0] &= ~0x00000004u; } inline void SVariable::clear_uvalue() { uvalue_ = 0u; clear_has_uvalue(); } inline ::google::protobuf::uint32 SVariable::uvalue() const { // @@protoc_insertion_point(field_get:iot_idl.SVariable.uValue) return uvalue_; } inline void SVariable::set_uvalue(::google::protobuf::uint32 value) { set_has_uvalue(); uvalue_ = value; // @@protoc_insertion_point(field_set:iot_idl.SVariable.uValue) } // optional int32 nValue = 4; inline bool SVariable::has_nvalue() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void SVariable::set_has_nvalue() { _has_bits_[0] |= 0x00000008u; } inline void SVariable::clear_has_nvalue() { _has_bits_[0] &= ~0x00000008u; } inline void SVariable::clear_nvalue() { nvalue_ = 0; clear_has_nvalue(); } inline ::google::protobuf::int32 SVariable::nvalue() const { // @@protoc_insertion_point(field_get:iot_idl.SVariable.nValue) return nvalue_; } inline void SVariable::set_nvalue(::google::protobuf::int32 value) { set_has_nvalue(); nvalue_ = value; // @@protoc_insertion_point(field_set:iot_idl.SVariable.nValue) } // optional uint64 ulValue = 5; inline bool SVariable::has_ulvalue() const { return (_has_bits_[0] & 0x00000010u) != 0; } inline void SVariable::set_has_ulvalue() { _has_bits_[0] |= 0x00000010u; } inline void SVariable::clear_has_ulvalue() { _has_bits_[0] &= ~0x00000010u; } inline void SVariable::clear_ulvalue() { ulvalue_ = GOOGLE_ULONGLONG(0); clear_has_ulvalue(); } inline ::google::protobuf::uint64 SVariable::ulvalue() const { // @@protoc_insertion_point(field_get:iot_idl.SVariable.ulValue) return ulvalue_; } inline void SVariable::set_ulvalue(::google::protobuf::uint64 value) { set_has_ulvalue(); ulvalue_ = value; // @@protoc_insertion_point(field_set:iot_idl.SVariable.ulValue) } // optional int64 lValue = 6; inline bool SVariable::has_lvalue() const { return (_has_bits_[0] & 0x00000020u) != 0; } inline void SVariable::set_has_lvalue() { _has_bits_[0] |= 0x00000020u; } inline void SVariable::clear_has_lvalue() { _has_bits_[0] &= ~0x00000020u; } inline void SVariable::clear_lvalue() { lvalue_ = GOOGLE_LONGLONG(0); clear_has_lvalue(); } inline ::google::protobuf::int64 SVariable::lvalue() const { // @@protoc_insertion_point(field_get:iot_idl.SVariable.lValue) return lvalue_; } inline void SVariable::set_lvalue(::google::protobuf::int64 value) { set_has_lvalue(); lvalue_ = value; // @@protoc_insertion_point(field_set:iot_idl.SVariable.lValue) } // optional float fValue = 7; inline bool SVariable::has_fvalue() const { return (_has_bits_[0] & 0x00000040u) != 0; } inline void SVariable::set_has_fvalue() { _has_bits_[0] |= 0x00000040u; } inline void SVariable::clear_has_fvalue() { _has_bits_[0] &= ~0x00000040u; } inline void SVariable::clear_fvalue() { fvalue_ = 0; clear_has_fvalue(); } inline float SVariable::fvalue() const { // @@protoc_insertion_point(field_get:iot_idl.SVariable.fValue) return fvalue_; } inline void SVariable::set_fvalue(float value) { set_has_fvalue(); fvalue_ = value; // @@protoc_insertion_point(field_set:iot_idl.SVariable.fValue) } // optional double dValue = 8; inline bool SVariable::has_dvalue() const { return (_has_bits_[0] & 0x00000080u) != 0; } inline void SVariable::set_has_dvalue() { _has_bits_[0] |= 0x00000080u; } inline void SVariable::clear_has_dvalue() { _has_bits_[0] &= ~0x00000080u; } inline void SVariable::clear_dvalue() { dvalue_ = 0; clear_has_dvalue(); } inline double SVariable::dvalue() const { // @@protoc_insertion_point(field_get:iot_idl.SVariable.dValue) return dvalue_; } inline void SVariable::set_dvalue(double value) { set_has_dvalue(); dvalue_ = value; // @@protoc_insertion_point(field_set:iot_idl.SVariable.dValue) } // optional string strValue = 9; inline bool SVariable::has_strvalue() const { return (_has_bits_[0] & 0x00000100u) != 0; } inline void SVariable::set_has_strvalue() { _has_bits_[0] |= 0x00000100u; } inline void SVariable::clear_has_strvalue() { _has_bits_[0] &= ~0x00000100u; } inline void SVariable::clear_strvalue() { if (strvalue_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strvalue_->clear(); } clear_has_strvalue(); } inline const ::std::string& SVariable::strvalue() const { // @@protoc_insertion_point(field_get:iot_idl.SVariable.strValue) return *strvalue_; } inline void SVariable::set_strvalue(const ::std::string& value) { set_has_strvalue(); if (strvalue_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strvalue_ = new ::std::string; } strvalue_->assign(value); // @@protoc_insertion_point(field_set:iot_idl.SVariable.strValue) } inline void SVariable::set_strvalue(const char* value) { set_has_strvalue(); if (strvalue_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strvalue_ = new ::std::string; } strvalue_->assign(value); // @@protoc_insertion_point(field_set_char:iot_idl.SVariable.strValue) } inline void SVariable::set_strvalue(const char* value, size_t size) { set_has_strvalue(); if (strvalue_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strvalue_ = new ::std::string; } strvalue_->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:iot_idl.SVariable.strValue) } inline ::std::string* SVariable::mutable_strvalue() { set_has_strvalue(); if (strvalue_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strvalue_ = new ::std::string; } // @@protoc_insertion_point(field_mutable:iot_idl.SVariable.strValue) return strvalue_; } inline ::std::string* SVariable::release_strvalue() { clear_has_strvalue(); if (strvalue_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { return NULL; } else { ::std::string* temp = strvalue_; strvalue_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); return temp; } } inline void SVariable::set_allocated_strvalue(::std::string* strvalue) { if (strvalue_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strvalue_; } if (strvalue) { set_has_strvalue(); strvalue_ = strvalue; } else { clear_has_strvalue(); strvalue_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } // @@protoc_insertion_point(field_set_allocated:iot_idl.SVariable.strValue) } // @@protoc_insertion_point(namespace_scope) } // namespace iot_idl #ifndef SWIG namespace google { namespace protobuf { template <> struct is_proto_enum< ::iot_idl::DataType> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::iot_idl::DataType>() { return ::iot_idl::DataType_descriptor(); } template <> struct is_proto_enum< ::iot_idl::ENConditionLogic> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::iot_idl::ENConditionLogic>() { return ::iot_idl::ENConditionLogic_descriptor(); } template <> struct is_proto_enum< ::iot_idl::ENConditionRelation> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::iot_idl::ENConditionRelation>() { return ::iot_idl::ENConditionRelation_descriptor(); } } // namespace google } // namespace protobuf #endif // SWIG // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_Public_2eproto__INCLUDED