4 #ifndef PROTOBUF_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 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 2006001 < 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/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include "google/protobuf/descriptor.pb.h" 29 #include <boost/units/quantity.hpp> 30 #include <boost/units/absolute.hpp> 31 #include <boost/units/dimensionless_type.hpp> 32 #include <boost/units/make_scaled_unit.hpp> 40 void protobuf_AddDesc_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto();
41 void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto();
42 void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto();
45 class EmbeddedMessage;
47 enum Filter_Operation {
48 Filter_Operation_EQUAL = 1,
49 Filter_Operation_NOT_EQUAL = 2
51 bool Filter_Operation_IsValid(
int value);
52 const Filter_Operation Filter_Operation_Operation_MIN = Filter_Operation_EQUAL;
53 const Filter_Operation Filter_Operation_Operation_MAX = Filter_Operation_NOT_EQUAL;
54 const int Filter_Operation_Operation_ARRAYSIZE = Filter_Operation_Operation_MAX + 1;
56 const ::google::protobuf::EnumDescriptor* Filter_Operation_descriptor();
57 inline const ::std::string& Filter_Operation_Name(Filter_Operation value) {
58 return ::google::protobuf::internal::NameOfEnum(
59 Filter_Operation_descriptor(), value);
61 inline bool Filter_Operation_Parse(
62 const ::std::string& name, Filter_Operation* value) {
63 return ::google::protobuf::internal::ParseNamedEnum<Filter_Operation>(
64 Filter_Operation_descriptor(), name, value);
68 class Filter :
public ::google::protobuf::Message {
80 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
81 return _unknown_fields_;
84 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
85 return &_unknown_fields_;
88 static const ::google::protobuf::Descriptor* descriptor();
89 static const Filter& default_instance();
96 void CopyFrom(const ::google::protobuf::Message& from);
97 void MergeFrom(const ::google::protobuf::Message& from);
98 void CopyFrom(
const Filter& from);
99 void MergeFrom(
const Filter& from);
101 bool IsInitialized()
const;
103 int ByteSize()
const;
104 bool MergePartialFromCodedStream(
105 ::google::protobuf::io::CodedInputStream* input);
106 void SerializeWithCachedSizes(
107 ::google::protobuf::io::CodedOutputStream* output)
const;
108 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
109 int GetCachedSize()
const {
return _cached_size_; }
113 void SetCachedSize(
int size)
const;
115 ::google::protobuf::Metadata GetMetadata()
const;
119 typedef Filter_Operation Operation;
120 static const Operation EQUAL = Filter_Operation_EQUAL;
121 static const Operation NOT_EQUAL = Filter_Operation_NOT_EQUAL;
122 static inline bool Operation_IsValid(
int value) {
123 return Filter_Operation_IsValid(value);
125 static const Operation Operation_MIN =
126 Filter_Operation_Operation_MIN;
127 static const Operation Operation_MAX =
128 Filter_Operation_Operation_MAX;
129 static const int Operation_ARRAYSIZE =
130 Filter_Operation_Operation_ARRAYSIZE;
131 static inline const ::google::protobuf::EnumDescriptor*
132 Operation_descriptor() {
133 return Filter_Operation_descriptor();
135 static inline const ::std::string& Operation_Name(Operation value) {
136 return Filter_Operation_Name(value);
138 static inline bool Operation_Parse(const ::std::string& name,
140 return Filter_Operation_Parse(name, value);
146 inline bool has_key()
const;
147 inline void clear_key();
148 static const int kKeyFieldNumber = 1;
149 inline const ::std::string& key()
const;
150 inline void set_key(const ::std::string& value);
151 inline void set_key(
const char* value);
152 inline void set_key(
const char* value,
size_t size);
153 inline ::std::string* mutable_key();
154 inline ::std::string* release_key();
155 inline void set_allocated_key(::std::string* key);
158 inline bool has_operation()
const;
159 inline void clear_operation();
160 static const int kOperationFieldNumber = 2;
161 inline ::goby::common::protobuf::Filter_Operation operation()
const;
162 inline void set_operation(::goby::common::protobuf::Filter_Operation value);
165 inline bool has_value()
const;
166 inline void clear_value();
167 static const int kValueFieldNumber = 3;
168 inline const ::std::string& value()
const;
169 inline void set_value(const ::std::string& value);
170 inline void set_value(
const char* value);
171 inline void set_value(
const char* value,
size_t size);
172 inline ::std::string* mutable_value();
173 inline ::std::string* release_value();
174 inline void set_allocated_value(::std::string* value);
178 inline void set_has_key();
179 inline void clear_has_key();
180 inline void set_has_operation();
181 inline void clear_has_operation();
182 inline void set_has_value();
183 inline void clear_has_value();
185 ::google::protobuf::UnknownFieldSet _unknown_fields_;
187 ::google::protobuf::uint32 _has_bits_[1];
188 mutable int _cached_size_;
190 ::std::string* value_;
192 friend void protobuf_AddDesc_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto();
193 friend void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto();
194 friend void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto();
196 void InitAsDefaultInstance();
197 static Filter* default_instance_;
213 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
214 return _unknown_fields_;
217 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
218 return &_unknown_fields_;
221 static const ::google::protobuf::Descriptor* descriptor();
229 void CopyFrom(const ::google::protobuf::Message& from);
230 void MergeFrom(const ::google::protobuf::Message& from);
234 bool IsInitialized()
const;
236 int ByteSize()
const;
237 bool MergePartialFromCodedStream(
238 ::google::protobuf::io::CodedInputStream* input);
239 void SerializeWithCachedSizes(
240 ::google::protobuf::io::CodedOutputStream* output)
const;
241 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
242 int GetCachedSize()
const {
return _cached_size_; }
246 void SetCachedSize(
int size)
const;
248 ::google::protobuf::Metadata GetMetadata()
const;
255 inline bool has_body()
const;
256 inline void clear_body();
257 static const int kBodyFieldNumber = 1;
258 inline const ::std::string& body()
const;
259 inline void set_body(const ::std::string& value);
260 inline void set_body(
const char* value);
261 inline void set_body(
const void* value,
size_t size);
262 inline ::std::string* mutable_body();
263 inline ::std::string* release_body();
264 inline void set_allocated_body(::std::string* body);
267 inline bool has_type()
const;
268 inline void clear_type();
269 static const int kTypeFieldNumber = 2;
270 inline const ::std::string& type()
const;
271 inline void set_type(const ::std::string& value);
272 inline void set_type(
const char* value);
273 inline void set_type(
const char* value,
size_t size);
274 inline ::std::string* mutable_type();
275 inline ::std::string* release_type();
276 inline void set_allocated_type(::std::string* type);
279 inline bool has_filter()
const;
280 inline void clear_filter();
281 static const int kFilterFieldNumber = 3;
282 inline const ::goby::common::protobuf::Filter& filter()
const;
283 inline ::goby::common::protobuf::Filter* mutable_filter();
284 inline ::goby::common::protobuf::Filter* release_filter();
289 inline void set_has_body();
290 inline void clear_has_body();
291 inline void set_has_type();
292 inline void clear_has_type();
293 inline void set_has_filter();
294 inline void clear_has_filter();
296 ::google::protobuf::UnknownFieldSet _unknown_fields_;
298 ::google::protobuf::uint32 _has_bits_[1];
299 mutable int _cached_size_;
300 ::std::string* body_;
301 ::std::string* type_;
303 friend void protobuf_AddDesc_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto();
304 friend void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto();
305 friend void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto();
307 void InitAsDefaultInstance();
318 inline bool Filter::has_key()
const {
319 return (_has_bits_[0] & 0x00000001u) != 0;
321 inline void Filter::set_has_key() {
322 _has_bits_[0] |= 0x00000001u;
324 inline void Filter::clear_has_key() {
325 _has_bits_[0] &= ~0x00000001u;
327 inline void Filter::clear_key() {
328 if (key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
333 inline const ::std::string& Filter::key()
const {
337 inline void Filter::set_key(const ::std::string& value) {
339 if (key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
340 key_ = new ::std::string;
345 inline void Filter::set_key(
const char* value) {
347 if (key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
348 key_ = new ::std::string;
353 inline void Filter::set_key(
const char* value,
size_t size) {
355 if (key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
356 key_ = new ::std::string;
358 key_->assign(reinterpret_cast<const char*>(value), size);
361 inline ::std::string* Filter::mutable_key() {
363 if (key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
364 key_ = new ::std::string;
369 inline ::std::string* Filter::release_key() {
371 if (key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
374 ::std::string* temp = key_;
375 key_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
379 inline void Filter::set_allocated_key(::std::string* key) {
380 if (key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
388 key_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
394 inline bool Filter::has_operation()
const {
395 return (_has_bits_[0] & 0x00000002u) != 0;
397 inline void Filter::set_has_operation() {
398 _has_bits_[0] |= 0x00000002u;
400 inline void Filter::clear_has_operation() {
401 _has_bits_[0] &= ~0x00000002u;
403 inline void Filter::clear_operation() {
405 clear_has_operation();
407 inline ::goby::common::protobuf::Filter_Operation Filter::operation()
const {
409 return static_cast< ::goby::common::protobuf::Filter_Operation
>(operation_);
411 inline void Filter::set_operation(::goby::common::protobuf::Filter_Operation value) {
412 assert(::goby::common::protobuf::Filter_Operation_IsValid(value));
419 inline bool Filter::has_value()
const {
420 return (_has_bits_[0] & 0x00000004u) != 0;
422 inline void Filter::set_has_value() {
423 _has_bits_[0] |= 0x00000004u;
425 inline void Filter::clear_has_value() {
426 _has_bits_[0] &= ~0x00000004u;
428 inline void Filter::clear_value() {
429 if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
434 inline const ::std::string& Filter::value()
const {
438 inline void Filter::set_value(const ::std::string& value) {
440 if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
441 value_ = new ::std::string;
443 value_->assign(value);
446 inline void Filter::set_value(
const char* value) {
448 if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
449 value_ = new ::std::string;
451 value_->assign(value);
454 inline void Filter::set_value(
const char* value,
size_t size) {
456 if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
457 value_ = new ::std::string;
459 value_->assign(reinterpret_cast<const char*>(value), size);
462 inline ::std::string* Filter::mutable_value() {
464 if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
465 value_ = new ::std::string;
470 inline ::std::string* Filter::release_value() {
472 if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
475 ::std::string* temp = value_;
476 value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
480 inline void Filter::set_allocated_value(::std::string* value) {
481 if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
489 value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
499 inline bool EmbeddedMessage::has_body()
const {
500 return (_has_bits_[0] & 0x00000001u) != 0;
502 inline void EmbeddedMessage::set_has_body() {
503 _has_bits_[0] |= 0x00000001u;
505 inline void EmbeddedMessage::clear_has_body() {
506 _has_bits_[0] &= ~0x00000001u;
508 inline void EmbeddedMessage::clear_body() {
509 if (body_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
514 inline const ::std::string& EmbeddedMessage::body()
const {
518 inline void EmbeddedMessage::set_body(const ::std::string& value) {
520 if (body_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
521 body_ = new ::std::string;
523 body_->assign(value);
526 inline void EmbeddedMessage::set_body(
const char* value) {
528 if (body_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
529 body_ = new ::std::string;
531 body_->assign(value);
534 inline void EmbeddedMessage::set_body(
const void* value,
size_t size) {
536 if (body_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
537 body_ = new ::std::string;
539 body_->assign(reinterpret_cast<const char*>(value), size);
542 inline ::std::string* EmbeddedMessage::mutable_body() {
544 if (body_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
545 body_ = new ::std::string;
550 inline ::std::string* EmbeddedMessage::release_body() {
552 if (body_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
555 ::std::string* temp = body_;
556 body_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
560 inline void EmbeddedMessage::set_allocated_body(::std::string* body) {
561 if (body_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
569 body_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
575 inline bool EmbeddedMessage::has_type()
const {
576 return (_has_bits_[0] & 0x00000002u) != 0;
578 inline void EmbeddedMessage::set_has_type() {
579 _has_bits_[0] |= 0x00000002u;
581 inline void EmbeddedMessage::clear_has_type() {
582 _has_bits_[0] &= ~0x00000002u;
584 inline void EmbeddedMessage::clear_type() {
585 if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
590 inline const ::std::string& EmbeddedMessage::type()
const {
594 inline void EmbeddedMessage::set_type(const ::std::string& value) {
596 if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
597 type_ = new ::std::string;
599 type_->assign(value);
602 inline void EmbeddedMessage::set_type(
const char* value) {
604 if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
605 type_ = new ::std::string;
607 type_->assign(value);
610 inline void EmbeddedMessage::set_type(
const char* value,
size_t size) {
612 if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
613 type_ = new ::std::string;
615 type_->assign(reinterpret_cast<const char*>(value), size);
618 inline ::std::string* EmbeddedMessage::mutable_type() {
620 if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
621 type_ = new ::std::string;
626 inline ::std::string* EmbeddedMessage::release_type() {
628 if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
631 ::std::string* temp = type_;
632 type_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
636 inline void EmbeddedMessage::set_allocated_type(::std::string* type) {
637 if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
645 type_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
651 inline bool EmbeddedMessage::has_filter()
const {
652 return (_has_bits_[0] & 0x00000004u) != 0;
654 inline void EmbeddedMessage::set_has_filter() {
655 _has_bits_[0] |= 0x00000004u;
657 inline void EmbeddedMessage::clear_has_filter() {
658 _has_bits_[0] &= ~0x00000004u;
660 inline void EmbeddedMessage::clear_filter() {
661 if (filter_ != NULL) filter_->::goby::common::protobuf::Filter::Clear();
664 inline const ::goby::common::protobuf::Filter& EmbeddedMessage::filter()
const {
666 return filter_ != NULL ? *filter_ : *default_instance_->filter_;
668 inline ::goby::common::protobuf::Filter* EmbeddedMessage::mutable_filter() {
670 if (filter_ == NULL) filter_ = new ::goby::common::protobuf::Filter;
674 inline ::goby::common::protobuf::Filter* EmbeddedMessage::release_filter() {
702 template <>
struct is_proto_enum< ::goby::common::protobuf::Filter_Operation> : ::google::protobuf::internal::true_type {};
704 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::Filter_Operation>() {
705 return ::goby::common::protobuf::Filter_Operation_descriptor();
714 #endif // PROTOBUF_goby_2fpb_2fprotobuf_2finterprocess_5fnotification_2eproto__INCLUDED
The global namespace for the Goby project.