00001
00002
00003
00004 #ifndef PROTOBUF_ProMCDescription_2eproto__INCLUDED
00005 #define PROTOBUF_ProMCDescription_2eproto__INCLUDED
00006
00007 #include <string>
00008
00009 #include <google/protobuf/stubs/common.h>
00010
00011 #if GOOGLE_PROTOBUF_VERSION < 2005000
00012 #error This file was generated by a newer version of protoc which is
00013 #error incompatible with your Protocol Buffer headers. Please update
00014 #error your headers.
00015 #endif
00016 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
00017 #error This file was generated by an older version of protoc which is
00018 #error incompatible with your Protocol Buffer headers. Please
00019 #error regenerate this file with a newer version of protoc.
00020 #endif
00021
00022 #include <google/protobuf/generated_message_util.h>
00023 #include <google/protobuf/message.h>
00024 #include <google/protobuf/repeated_field.h>
00025 #include <google/protobuf/extension_set.h>
00026 #include <google/protobuf/unknown_field_set.h>
00027
00028
00029 namespace promc {
00030
00031
00032 void protobuf_AddDesc_ProMCDescription_2eproto();
00033 void protobuf_AssignDesc_ProMCDescription_2eproto();
00034 void protobuf_ShutdownFile_ProMCDescription_2eproto();
00035
00036 class ProMCDescription;
00037
00038
00039
00040 class ProMCDescription : public ::google::protobuf::Message {
00041 public:
00042 ProMCDescription();
00043 virtual ~ProMCDescription();
00044
00045 ProMCDescription(const ProMCDescription& from);
00046
00047 inline ProMCDescription& operator=(const ProMCDescription& from) {
00048 CopyFrom(from);
00049 return *this;
00050 }
00051
00052 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00053 return _unknown_fields_;
00054 }
00055
00056 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00057 return &_unknown_fields_;
00058 }
00059
00060 static const ::google::protobuf::Descriptor* descriptor();
00061 static const ProMCDescription& default_instance();
00062
00063 void Swap(ProMCDescription* other);
00064
00065
00066
00067 ProMCDescription* New() const;
00068 void CopyFrom(const ::google::protobuf::Message& from);
00069 void MergeFrom(const ::google::protobuf::Message& from);
00070 void CopyFrom(const ProMCDescription& from);
00071 void MergeFrom(const ProMCDescription& from);
00072 void Clear();
00073 bool IsInitialized() const;
00074
00075 int ByteSize() const;
00076 bool MergePartialFromCodedStream(
00077 ::google::protobuf::io::CodedInputStream* input);
00078 void SerializeWithCachedSizes(
00079 ::google::protobuf::io::CodedOutputStream* output) const;
00080 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00081 int GetCachedSize() const { return _cached_size_; }
00082 private:
00083 void SharedCtor();
00084 void SharedDtor();
00085 void SetCachedSize(int size) const;
00086 public:
00087
00088 ::google::protobuf::Metadata GetMetadata() const;
00089
00090
00091
00092
00093
00094
00095 inline bool has_version() const;
00096 inline void clear_version();
00097 static const int kVersionFieldNumber = 1;
00098 inline ::google::protobuf::uint64 version() const;
00099 inline void set_version(::google::protobuf::uint64 value);
00100
00101
00102 inline bool has_events() const;
00103 inline void clear_events();
00104 static const int kEventsFieldNumber = 2;
00105 inline ::google::protobuf::uint64 events() const;
00106 inline void set_events(::google::protobuf::uint64 value);
00107
00108
00109 inline bool has_description() const;
00110 inline void clear_description();
00111 static const int kDescriptionFieldNumber = 3;
00112 inline const ::std::string& description() const;
00113 inline void set_description(const ::std::string& value);
00114 inline void set_description(const char* value);
00115 inline void set_description(const char* value, size_t size);
00116 inline ::std::string* mutable_description();
00117 inline ::std::string* release_description();
00118 inline void set_allocated_description(::std::string* description);
00119
00120
00121 inline bool has_timestamp() const;
00122 inline void clear_timestamp();
00123 static const int kTimestampFieldNumber = 4;
00124 inline ::google::protobuf::uint64 timestamp() const;
00125 inline void set_timestamp(::google::protobuf::uint64 value);
00126
00127
00128 private:
00129 inline void set_has_version();
00130 inline void clear_has_version();
00131 inline void set_has_events();
00132 inline void clear_has_events();
00133 inline void set_has_description();
00134 inline void clear_has_description();
00135 inline void set_has_timestamp();
00136 inline void clear_has_timestamp();
00137
00138 ::google::protobuf::UnknownFieldSet _unknown_fields_;
00139
00140 ::google::protobuf::uint64 version_;
00141 ::google::protobuf::uint64 events_;
00142 ::std::string* description_;
00143 ::google::protobuf::uint64 timestamp_;
00144
00145 mutable int _cached_size_;
00146 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
00147
00148 friend void protobuf_AddDesc_ProMCDescription_2eproto();
00149 friend void protobuf_AssignDesc_ProMCDescription_2eproto();
00150 friend void protobuf_ShutdownFile_ProMCDescription_2eproto();
00151
00152 void InitAsDefaultInstance();
00153 static ProMCDescription* default_instance_;
00154 };
00155
00156
00157
00158
00159
00160
00161
00162
00163 inline bool ProMCDescription::has_version() const {
00164 return (_has_bits_[0] & 0x00000001u) != 0;
00165 }
00166 inline void ProMCDescription::set_has_version() {
00167 _has_bits_[0] |= 0x00000001u;
00168 }
00169 inline void ProMCDescription::clear_has_version() {
00170 _has_bits_[0] &= ~0x00000001u;
00171 }
00172 inline void ProMCDescription::clear_version() {
00173 version_ = GOOGLE_ULONGLONG(0);
00174 clear_has_version();
00175 }
00176 inline ::google::protobuf::uint64 ProMCDescription::version() const {
00177 return version_;
00178 }
00179 inline void ProMCDescription::set_version(::google::protobuf::uint64 value) {
00180 set_has_version();
00181 version_ = value;
00182 }
00183
00184
00185 inline bool ProMCDescription::has_events() const {
00186 return (_has_bits_[0] & 0x00000002u) != 0;
00187 }
00188 inline void ProMCDescription::set_has_events() {
00189 _has_bits_[0] |= 0x00000002u;
00190 }
00191 inline void ProMCDescription::clear_has_events() {
00192 _has_bits_[0] &= ~0x00000002u;
00193 }
00194 inline void ProMCDescription::clear_events() {
00195 events_ = GOOGLE_ULONGLONG(0);
00196 clear_has_events();
00197 }
00198 inline ::google::protobuf::uint64 ProMCDescription::events() const {
00199 return events_;
00200 }
00201 inline void ProMCDescription::set_events(::google::protobuf::uint64 value) {
00202 set_has_events();
00203 events_ = value;
00204 }
00205
00206
00207 inline bool ProMCDescription::has_description() const {
00208 return (_has_bits_[0] & 0x00000004u) != 0;
00209 }
00210 inline void ProMCDescription::set_has_description() {
00211 _has_bits_[0] |= 0x00000004u;
00212 }
00213 inline void ProMCDescription::clear_has_description() {
00214 _has_bits_[0] &= ~0x00000004u;
00215 }
00216 inline void ProMCDescription::clear_description() {
00217 if (description_ != &::google::protobuf::internal::kEmptyString) {
00218 description_->clear();
00219 }
00220 clear_has_description();
00221 }
00222 inline const ::std::string& ProMCDescription::description() const {
00223 return *description_;
00224 }
00225 inline void ProMCDescription::set_description(const ::std::string& value) {
00226 set_has_description();
00227 if (description_ == &::google::protobuf::internal::kEmptyString) {
00228 description_ = new ::std::string;
00229 }
00230 description_->assign(value);
00231 }
00232 inline void ProMCDescription::set_description(const char* value) {
00233 set_has_description();
00234 if (description_ == &::google::protobuf::internal::kEmptyString) {
00235 description_ = new ::std::string;
00236 }
00237 description_->assign(value);
00238 }
00239 inline void ProMCDescription::set_description(const char* value, size_t size) {
00240 set_has_description();
00241 if (description_ == &::google::protobuf::internal::kEmptyString) {
00242 description_ = new ::std::string;
00243 }
00244 description_->assign(reinterpret_cast<const char*>(value), size);
00245 }
00246 inline ::std::string* ProMCDescription::mutable_description() {
00247 set_has_description();
00248 if (description_ == &::google::protobuf::internal::kEmptyString) {
00249 description_ = new ::std::string;
00250 }
00251 return description_;
00252 }
00253 inline ::std::string* ProMCDescription::release_description() {
00254 clear_has_description();
00255 if (description_ == &::google::protobuf::internal::kEmptyString) {
00256 return NULL;
00257 } else {
00258 ::std::string* temp = description_;
00259 description_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00260 return temp;
00261 }
00262 }
00263 inline void ProMCDescription::set_allocated_description(::std::string* description) {
00264 if (description_ != &::google::protobuf::internal::kEmptyString) {
00265 delete description_;
00266 }
00267 if (description) {
00268 set_has_description();
00269 description_ = description;
00270 } else {
00271 clear_has_description();
00272 description_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00273 }
00274 }
00275
00276
00277 inline bool ProMCDescription::has_timestamp() const {
00278 return (_has_bits_[0] & 0x00000008u) != 0;
00279 }
00280 inline void ProMCDescription::set_has_timestamp() {
00281 _has_bits_[0] |= 0x00000008u;
00282 }
00283 inline void ProMCDescription::clear_has_timestamp() {
00284 _has_bits_[0] &= ~0x00000008u;
00285 }
00286 inline void ProMCDescription::clear_timestamp() {
00287 timestamp_ = GOOGLE_ULONGLONG(0);
00288 clear_has_timestamp();
00289 }
00290 inline ::google::protobuf::uint64 ProMCDescription::timestamp() const {
00291 return timestamp_;
00292 }
00293 inline void ProMCDescription::set_timestamp(::google::protobuf::uint64 value) {
00294 set_has_timestamp();
00295 timestamp_ = value;
00296 }
00297
00298
00299
00300
00301 }
00302
00303 #ifndef SWIG
00304 namespace google {
00305 namespace protobuf {
00306
00307
00308 }
00309 }
00310 #endif // SWIG
00311
00312
00313
00314 #endif // PROTOBUF_ProMCDescription_2eproto__INCLUDED