4 #ifndef PROTOBUF_ProMCDescription_2eproto__INCLUDED
5 #define PROTOBUF_ProMCDescription_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2005000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
32 void protobuf_AddDesc_ProMCDescription_2eproto();
33 void protobuf_AssignDesc_ProMCDescription_2eproto();
34 void protobuf_ShutdownFile_ProMCDescription_2eproto();
36 class ProMCDescription;
52 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
53 return _unknown_fields_;
56 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
57 return &_unknown_fields_;
60 static const ::google::protobuf::Descriptor* descriptor();
68 void CopyFrom(const ::google::protobuf::Message& from);
69 void MergeFrom(const ::google::protobuf::Message& from);
73 bool IsInitialized()
const;
76 bool MergePartialFromCodedStream(
77 ::google::protobuf::io::CodedInputStream* input);
78 void SerializeWithCachedSizes(
79 ::google::protobuf::io::CodedOutputStream* output)
const;
80 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
81 int GetCachedSize()
const {
return _cached_size_; }
85 void SetCachedSize(
int size)
const;
88 ::google::protobuf::Metadata GetMetadata()
const;
95 inline bool has_version()
const;
96 inline void clear_version();
97 static const int kVersionFieldNumber = 1;
98 inline ::google::protobuf::uint64 version()
const;
99 inline void set_version(::google::protobuf::uint64 value);
102 inline bool has_events()
const;
103 inline void clear_events();
104 static const int kEventsFieldNumber = 2;
105 inline ::google::protobuf::uint64 events()
const;
106 inline void set_events(::google::protobuf::uint64 value);
109 inline bool has_description()
const;
110 inline void clear_description();
111 static const int kDescriptionFieldNumber = 3;
112 inline const ::std::string& description()
const;
113 inline void set_description(const ::std::string& value);
114 inline void set_description(
const char* value);
115 inline void set_description(
const char* value,
size_t size);
116 inline ::std::string* mutable_description();
117 inline ::std::string* release_description();
118 inline void set_allocated_description(::std::string* description);
121 inline bool has_timestamp()
const;
122 inline void clear_timestamp();
123 static const int kTimestampFieldNumber = 4;
124 inline ::google::protobuf::uint64 timestamp()
const;
125 inline void set_timestamp(::google::protobuf::uint64 value);
129 inline void set_has_version();
130 inline void clear_has_version();
131 inline void set_has_events();
132 inline void clear_has_events();
133 inline void set_has_description();
134 inline void clear_has_description();
135 inline void set_has_timestamp();
136 inline void clear_has_timestamp();
138 ::google::protobuf::UnknownFieldSet _unknown_fields_;
140 ::google::protobuf::uint64 version_;
141 ::google::protobuf::uint64 events_;
142 ::std::string* description_;
143 ::google::protobuf::uint64 timestamp_;
145 mutable int _cached_size_;
146 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
148 friend void protobuf_AddDesc_ProMCDescription_2eproto();
149 friend void protobuf_AssignDesc_ProMCDescription_2eproto();
150 friend void protobuf_ShutdownFile_ProMCDescription_2eproto();
152 void InitAsDefaultInstance();
163 inline bool ProMCDescription::has_version()
const {
164 return (_has_bits_[0] & 0x00000001u) != 0;
166 inline void ProMCDescription::set_has_version() {
167 _has_bits_[0] |= 0x00000001u;
169 inline void ProMCDescription::clear_has_version() {
170 _has_bits_[0] &= ~0x00000001u;
172 inline void ProMCDescription::clear_version() {
173 version_ = GOOGLE_ULONGLONG(0);
176 inline ::google::protobuf::uint64 ProMCDescription::version()
const {
179 inline void ProMCDescription::set_version(::google::protobuf::uint64 value) {
185 inline bool ProMCDescription::has_events()
const {
186 return (_has_bits_[0] & 0x00000002u) != 0;
188 inline void ProMCDescription::set_has_events() {
189 _has_bits_[0] |= 0x00000002u;
191 inline void ProMCDescription::clear_has_events() {
192 _has_bits_[0] &= ~0x00000002u;
194 inline void ProMCDescription::clear_events() {
195 events_ = GOOGLE_ULONGLONG(0);
198 inline ::google::protobuf::uint64 ProMCDescription::events()
const {
201 inline void ProMCDescription::set_events(::google::protobuf::uint64 value) {
207 inline bool ProMCDescription::has_description()
const {
208 return (_has_bits_[0] & 0x00000004u) != 0;
210 inline void ProMCDescription::set_has_description() {
211 _has_bits_[0] |= 0x00000004u;
213 inline void ProMCDescription::clear_has_description() {
214 _has_bits_[0] &= ~0x00000004u;
216 inline void ProMCDescription::clear_description() {
217 if (description_ != &::google::protobuf::internal::kEmptyString) {
218 description_->clear();
220 clear_has_description();
222 inline const ::std::string& ProMCDescription::description()
const {
223 return *description_;
225 inline void ProMCDescription::set_description(const ::std::string& value) {
226 set_has_description();
227 if (description_ == &::google::protobuf::internal::kEmptyString) {
228 description_ = new ::std::string;
230 description_->assign(value);
232 inline void ProMCDescription::set_description(
const char* value) {
233 set_has_description();
234 if (description_ == &::google::protobuf::internal::kEmptyString) {
235 description_ = new ::std::string;
237 description_->assign(value);
239 inline void ProMCDescription::set_description(
const char* value,
size_t size) {
240 set_has_description();
241 if (description_ == &::google::protobuf::internal::kEmptyString) {
242 description_ = new ::std::string;
244 description_->assign(reinterpret_cast<const char*>(value), size);
246 inline ::std::string* ProMCDescription::mutable_description() {
247 set_has_description();
248 if (description_ == &::google::protobuf::internal::kEmptyString) {
249 description_ = new ::std::string;
253 inline ::std::string* ProMCDescription::release_description() {
254 clear_has_description();
255 if (description_ == &::google::protobuf::internal::kEmptyString) {
258 ::std::string* temp = description_;
259 description_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
263 inline void ProMCDescription::set_allocated_description(::std::string* description) {
264 if (description_ != &::google::protobuf::internal::kEmptyString) {
268 set_has_description();
269 description_ = description;
271 clear_has_description();
272 description_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
277 inline bool ProMCDescription::has_timestamp()
const {
278 return (_has_bits_[0] & 0x00000008u) != 0;
280 inline void ProMCDescription::set_has_timestamp() {
281 _has_bits_[0] |= 0x00000008u;
283 inline void ProMCDescription::clear_has_timestamp() {
284 _has_bits_[0] &= ~0x00000008u;
286 inline void ProMCDescription::clear_timestamp() {
287 timestamp_ = GOOGLE_ULONGLONG(0);
288 clear_has_timestamp();
290 inline ::google::protobuf::uint64 ProMCDescription::timestamp()
const {
293 inline void ProMCDescription::set_timestamp(::google::protobuf::uint64 value) {
314 #endif // PROTOBUF_ProMCDescription_2eproto__INCLUDED
Definition: ProMCDescription.pb.h:40