4 #ifndef PROTOBUF_goby_2fmoos_2fprotobuf_2ftransitional_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fmoos_2fprotobuf_2ftransitional_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 "goby/acomms/protobuf/manipulator.pb.h" 29 #include "goby/common/protobuf/option_extensions.pb.h" 30 #include <boost/units/quantity.hpp> 31 #include <boost/units/absolute.hpp> 32 #include <boost/units/dimensionless_type.hpp> 33 #include <boost/units/make_scaled_unit.hpp> 37 namespace transitional {
41 void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
42 void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
43 void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
45 class DCCLTransitionalConfig;
54 bool QueueType_IsValid(
int value);
55 const QueueType QueueType_MIN = QUEUE_DCCL;
56 const QueueType QueueType_MAX = QUEUE_CCL;
57 const int QueueType_ARRAYSIZE = QueueType_MAX + 1;
59 const ::google::protobuf::EnumDescriptor* QueueType_descriptor();
60 inline const ::std::string& QueueType_Name(QueueType value) {
61 return ::google::protobuf::internal::NameOfEnum(
62 QueueType_descriptor(), value);
64 inline bool QueueType_Parse(
65 const ::std::string& name, QueueType* value) {
66 return ::google::protobuf::internal::ParseNamedEnum<QueueType>(
67 QueueType_descriptor(), name, value);
83 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
84 return _unknown_fields_;
87 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
88 return &_unknown_fields_;
91 static const ::google::protobuf::Descriptor* descriptor();
99 void CopyFrom(const ::google::protobuf::Message& from);
100 void MergeFrom(const ::google::protobuf::Message& from);
104 bool IsInitialized()
const;
106 int ByteSize()
const;
107 bool MergePartialFromCodedStream(
108 ::google::protobuf::io::CodedInputStream* input);
109 void SerializeWithCachedSizes(
110 ::google::protobuf::io::CodedOutputStream* output)
const;
111 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
112 int GetCachedSize()
const {
return _cached_size_; }
116 void SetCachedSize(
int size)
const;
118 ::google::protobuf::Metadata GetMetadata()
const;
125 inline bool has_modem_id()
const;
126 inline void clear_modem_id();
127 static const int kModemIdFieldNumber = 1;
128 inline ::google::protobuf::int32 modem_id()
const;
129 inline void set_modem_id(::google::protobuf::int32 value);
132 inline int message_file_size()
const;
133 inline void clear_message_file();
134 static const int kMessageFileFieldNumber = 2;
135 inline const ::goby::transitional::protobuf::MessageFile& message_file(
int index)
const;
136 inline ::goby::transitional::protobuf::MessageFile* mutable_message_file(
int index);
137 inline ::goby::transitional::protobuf::MessageFile* add_message_file();
138 inline const ::google::protobuf::RepeatedPtrField< ::goby::transitional::protobuf::MessageFile >&
139 message_file()
const;
140 inline ::google::protobuf::RepeatedPtrField< ::goby::transitional::protobuf::MessageFile >*
141 mutable_message_file();
144 inline bool has_generated_proto_dir()
const;
145 inline void clear_generated_proto_dir();
146 static const int kGeneratedProtoDirFieldNumber = 4;
147 inline const ::std::string& generated_proto_dir()
const;
148 inline void set_generated_proto_dir(const ::std::string& value);
149 inline void set_generated_proto_dir(
const char* value);
150 inline void set_generated_proto_dir(
const char* value,
size_t size);
151 inline ::std::string* mutable_generated_proto_dir();
152 inline ::std::string* release_generated_proto_dir();
153 inline void set_allocated_generated_proto_dir(::std::string* generated_proto_dir);
157 inline void set_has_modem_id();
158 inline void clear_has_modem_id();
159 inline void set_has_generated_proto_dir();
160 inline void clear_has_generated_proto_dir();
162 ::google::protobuf::UnknownFieldSet _unknown_fields_;
164 ::google::protobuf::uint32 _has_bits_[1];
165 mutable int _cached_size_;
166 ::google::protobuf::RepeatedPtrField< ::goby::transitional::protobuf::MessageFile > message_file_;
167 static ::std::string* _default_generated_proto_dir_;
168 ::std::string* generated_proto_dir_;
169 ::google::protobuf::int32 modem_id_;
170 friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
171 friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
172 friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
174 void InitAsDefaultInstance();
191 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
192 return _unknown_fields_;
195 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
196 return &_unknown_fields_;
199 static const ::google::protobuf::Descriptor* descriptor();
207 void CopyFrom(const ::google::protobuf::Message& from);
208 void MergeFrom(const ::google::protobuf::Message& from);
212 bool IsInitialized()
const;
214 int ByteSize()
const;
215 bool MergePartialFromCodedStream(
216 ::google::protobuf::io::CodedInputStream* input);
217 void SerializeWithCachedSizes(
218 ::google::protobuf::io::CodedOutputStream* output)
const;
219 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
220 int GetCachedSize()
const {
return _cached_size_; }
224 void SetCachedSize(
int size)
const;
226 ::google::protobuf::Metadata GetMetadata()
const;
233 inline bool has_path()
const;
234 inline void clear_path();
235 static const int kPathFieldNumber = 1;
236 inline const ::std::string& path()
const;
237 inline void set_path(const ::std::string& value);
238 inline void set_path(
const char* value);
239 inline void set_path(
const char* value,
size_t size);
240 inline ::std::string* mutable_path();
241 inline ::std::string* release_path();
242 inline void set_allocated_path(::std::string* path);
245 inline int manipulator_size()
const;
246 inline void clear_manipulator();
247 static const int kManipulatorFieldNumber = 2;
248 inline ::goby::acomms::protobuf::Manipulator manipulator(
int index)
const;
249 inline void set_manipulator(
int index, ::goby::acomms::protobuf::Manipulator value);
250 inline void add_manipulator(::goby::acomms::protobuf::Manipulator value);
251 inline const ::google::protobuf::RepeatedField<int>& manipulator()
const;
252 inline ::google::protobuf::RepeatedField<int>* mutable_manipulator();
256 inline void set_has_path();
257 inline void clear_has_path();
259 ::google::protobuf::UnknownFieldSet _unknown_fields_;
261 ::google::protobuf::uint32 _has_bits_[1];
262 mutable int _cached_size_;
263 ::std::string* path_;
264 ::google::protobuf::RepeatedField<int> manipulator_;
265 friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
266 friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
267 friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
269 void InitAsDefaultInstance();
274 class QueueKey :
public ::google::protobuf::Message {
286 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
287 return _unknown_fields_;
290 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
291 return &_unknown_fields_;
294 static const ::google::protobuf::Descriptor* descriptor();
295 static const QueueKey& default_instance();
302 void CopyFrom(const ::google::protobuf::Message& from);
303 void MergeFrom(const ::google::protobuf::Message& from);
304 void CopyFrom(
const QueueKey& from);
305 void MergeFrom(
const QueueKey& from);
307 bool IsInitialized()
const;
309 int ByteSize()
const;
310 bool MergePartialFromCodedStream(
311 ::google::protobuf::io::CodedInputStream* input);
312 void SerializeWithCachedSizes(
313 ::google::protobuf::io::CodedOutputStream* output)
const;
314 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
315 int GetCachedSize()
const {
return _cached_size_; }
319 void SetCachedSize(
int size)
const;
321 ::google::protobuf::Metadata GetMetadata()
const;
328 inline bool has_type()
const;
329 inline void clear_type();
330 static const int kTypeFieldNumber = 1;
331 inline ::goby::transitional::protobuf::QueueType type()
const;
332 inline void set_type(::goby::transitional::protobuf::QueueType value);
335 inline bool has_id()
const;
336 inline void clear_id();
337 static const int kIdFieldNumber = 2;
338 inline ::google::protobuf::uint32 id()
const;
339 inline void set_id(::google::protobuf::uint32 value);
343 inline void set_has_type();
344 inline void clear_has_type();
345 inline void set_has_id();
346 inline void clear_has_id();
348 ::google::protobuf::UnknownFieldSet _unknown_fields_;
350 ::google::protobuf::uint32 _has_bits_[1];
351 mutable int _cached_size_;
353 ::google::protobuf::uint32 id_;
354 friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
355 friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
356 friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
358 void InitAsDefaultInstance();
375 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
376 return _unknown_fields_;
379 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
380 return &_unknown_fields_;
383 static const ::google::protobuf::Descriptor* descriptor();
391 void CopyFrom(const ::google::protobuf::Message& from);
392 void MergeFrom(const ::google::protobuf::Message& from);
396 bool IsInitialized()
const;
398 int ByteSize()
const;
399 bool MergePartialFromCodedStream(
400 ::google::protobuf::io::CodedInputStream* input);
401 void SerializeWithCachedSizes(
402 ::google::protobuf::io::CodedOutputStream* output)
const;
403 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
404 int GetCachedSize()
const {
return _cached_size_; }
408 void SetCachedSize(
int size)
const;
410 ::google::protobuf::Metadata GetMetadata()
const;
417 inline bool has_ack()
const;
418 inline void clear_ack();
419 static const int kAckFieldNumber = 1;
420 inline bool ack()
const;
421 inline void set_ack(
bool value);
424 inline bool has_blackout_time()
const;
425 inline void clear_blackout_time();
426 static const int kBlackoutTimeFieldNumber = 2;
427 inline ::google::protobuf::uint32 blackout_time()
const;
428 inline void set_blackout_time(::google::protobuf::uint32 value);
431 inline bool has_max_queue()
const;
432 inline void clear_max_queue();
433 static const int kMaxQueueFieldNumber = 3;
434 inline ::google::protobuf::uint32 max_queue()
const;
435 inline void set_max_queue(::google::protobuf::uint32 value);
438 inline bool has_newest_first()
const;
439 inline void clear_newest_first();
440 static const int kNewestFirstFieldNumber = 4;
441 inline bool newest_first()
const;
442 inline void set_newest_first(
bool value);
445 inline bool has_value_base()
const;
446 inline void clear_value_base();
447 static const int kValueBaseFieldNumber = 5;
448 inline double value_base()
const;
449 inline void set_value_base(
double value);
452 inline bool has_ttl()
const;
453 inline void clear_ttl();
454 static const int kTtlFieldNumber = 6;
455 inline ::google::protobuf::uint32 ttl()
const;
456 inline void set_ttl(::google::protobuf::uint32 value);
459 inline bool has_key()
const;
460 inline void clear_key();
461 static const int kKeyFieldNumber = 7;
462 inline const ::goby::transitional::protobuf::QueueKey& key()
const;
463 inline ::goby::transitional::protobuf::QueueKey* mutable_key();
464 inline ::goby::transitional::protobuf::QueueKey* release_key();
468 inline bool has_name()
const;
469 inline void clear_name();
470 static const int kNameFieldNumber = 8;
471 inline const ::std::string& name()
const;
472 inline void set_name(const ::std::string& value);
473 inline void set_name(
const char* value);
474 inline void set_name(
const char* value,
size_t size);
475 inline ::std::string* mutable_name();
476 inline ::std::string* release_name();
477 inline void set_allocated_name(::std::string* name);
480 inline bool has_in_pubsub_var()
const;
481 inline void clear_in_pubsub_var();
482 static const int kInPubsubVarFieldNumber = 9;
483 inline const ::std::string& in_pubsub_var()
const;
484 inline void set_in_pubsub_var(const ::std::string& value);
485 inline void set_in_pubsub_var(
const char* value);
486 inline void set_in_pubsub_var(
const char* value,
size_t size);
487 inline ::std::string* mutable_in_pubsub_var();
488 inline ::std::string* release_in_pubsub_var();
489 inline void set_allocated_in_pubsub_var(::std::string* in_pubsub_var);
492 inline bool has_out_pubsub_var()
const;
493 inline void clear_out_pubsub_var();
494 static const int kOutPubsubVarFieldNumber = 10;
495 inline const ::std::string& out_pubsub_var()
const;
496 inline void set_out_pubsub_var(const ::std::string& value);
497 inline void set_out_pubsub_var(
const char* value);
498 inline void set_out_pubsub_var(
const char* value,
size_t size);
499 inline ::std::string* mutable_out_pubsub_var();
500 inline ::std::string* release_out_pubsub_var();
501 inline void set_allocated_out_pubsub_var(::std::string* out_pubsub_var);
505 inline void set_has_ack();
506 inline void clear_has_ack();
507 inline void set_has_blackout_time();
508 inline void clear_has_blackout_time();
509 inline void set_has_max_queue();
510 inline void clear_has_max_queue();
511 inline void set_has_newest_first();
512 inline void clear_has_newest_first();
513 inline void set_has_value_base();
514 inline void clear_has_value_base();
515 inline void set_has_ttl();
516 inline void clear_has_ttl();
517 inline void set_has_key();
518 inline void clear_has_key();
519 inline void set_has_name();
520 inline void clear_has_name();
521 inline void set_has_in_pubsub_var();
522 inline void clear_has_in_pubsub_var();
523 inline void set_has_out_pubsub_var();
524 inline void clear_has_out_pubsub_var();
526 ::google::protobuf::UnknownFieldSet _unknown_fields_;
528 ::google::protobuf::uint32 _has_bits_[1];
529 mutable int _cached_size_;
530 ::google::protobuf::uint32 blackout_time_;
533 ::google::protobuf::uint32 max_queue_;
534 ::google::protobuf::uint32 ttl_;
537 ::std::string* name_;
538 ::std::string* in_pubsub_var_;
539 ::std::string* out_pubsub_var_;
540 friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
541 friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
542 friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2ftransitional_2eproto();
544 void InitAsDefaultInstance();
555 inline bool DCCLTransitionalConfig::has_modem_id()
const {
556 return (_has_bits_[0] & 0x00000001u) != 0;
558 inline void DCCLTransitionalConfig::set_has_modem_id() {
559 _has_bits_[0] |= 0x00000001u;
561 inline void DCCLTransitionalConfig::clear_has_modem_id() {
562 _has_bits_[0] &= ~0x00000001u;
564 inline void DCCLTransitionalConfig::clear_modem_id() {
566 clear_has_modem_id();
568 inline ::google::protobuf::int32 DCCLTransitionalConfig::modem_id()
const {
572 inline void DCCLTransitionalConfig::set_modem_id(::google::protobuf::int32 value) {
579 inline int DCCLTransitionalConfig::message_file_size()
const {
580 return message_file_.size();
582 inline void DCCLTransitionalConfig::clear_message_file() {
583 message_file_.Clear();
585 inline const ::goby::transitional::protobuf::MessageFile& DCCLTransitionalConfig::message_file(
int index)
const {
587 return message_file_.Get(index);
589 inline ::goby::transitional::protobuf::MessageFile* DCCLTransitionalConfig::mutable_message_file(
int index) {
591 return message_file_.Mutable(index);
593 inline ::goby::transitional::protobuf::MessageFile* DCCLTransitionalConfig::add_message_file() {
595 return message_file_.Add();
597 inline const ::google::protobuf::RepeatedPtrField< ::goby::transitional::protobuf::MessageFile >&
598 DCCLTransitionalConfig::message_file()
const {
600 return message_file_;
602 inline ::google::protobuf::RepeatedPtrField< ::goby::transitional::protobuf::MessageFile >*
603 DCCLTransitionalConfig::mutable_message_file() {
605 return &message_file_;
609 inline bool DCCLTransitionalConfig::has_generated_proto_dir()
const {
610 return (_has_bits_[0] & 0x00000004u) != 0;
612 inline void DCCLTransitionalConfig::set_has_generated_proto_dir() {
613 _has_bits_[0] |= 0x00000004u;
615 inline void DCCLTransitionalConfig::clear_has_generated_proto_dir() {
616 _has_bits_[0] &= ~0x00000004u;
618 inline void DCCLTransitionalConfig::clear_generated_proto_dir() {
619 if (generated_proto_dir_ != _default_generated_proto_dir_) {
620 generated_proto_dir_->assign(*_default_generated_proto_dir_);
622 clear_has_generated_proto_dir();
624 inline const ::std::string& DCCLTransitionalConfig::generated_proto_dir()
const {
626 return *generated_proto_dir_;
628 inline void DCCLTransitionalConfig::set_generated_proto_dir(const ::std::string& value) {
629 set_has_generated_proto_dir();
630 if (generated_proto_dir_ == _default_generated_proto_dir_) {
631 generated_proto_dir_ = new ::std::string;
633 generated_proto_dir_->assign(value);
636 inline void DCCLTransitionalConfig::set_generated_proto_dir(
const char* value) {
637 set_has_generated_proto_dir();
638 if (generated_proto_dir_ == _default_generated_proto_dir_) {
639 generated_proto_dir_ = new ::std::string;
641 generated_proto_dir_->assign(value);
644 inline void DCCLTransitionalConfig::set_generated_proto_dir(
const char* value,
size_t size) {
645 set_has_generated_proto_dir();
646 if (generated_proto_dir_ == _default_generated_proto_dir_) {
647 generated_proto_dir_ = new ::std::string;
649 generated_proto_dir_->assign(reinterpret_cast<const char*>(value), size);
652 inline ::std::string* DCCLTransitionalConfig::mutable_generated_proto_dir() {
653 set_has_generated_proto_dir();
654 if (generated_proto_dir_ == _default_generated_proto_dir_) {
655 generated_proto_dir_ = new ::std::string(*_default_generated_proto_dir_);
658 return generated_proto_dir_;
660 inline ::std::string* DCCLTransitionalConfig::release_generated_proto_dir() {
661 clear_has_generated_proto_dir();
662 if (generated_proto_dir_ == _default_generated_proto_dir_) {
665 ::std::string* temp = generated_proto_dir_;
666 generated_proto_dir_ =
const_cast< ::std::string*
>(_default_generated_proto_dir_);
670 inline void DCCLTransitionalConfig::set_allocated_generated_proto_dir(::std::string* generated_proto_dir) {
671 if (generated_proto_dir_ != _default_generated_proto_dir_) {
672 delete generated_proto_dir_;
674 if (generated_proto_dir) {
675 set_has_generated_proto_dir();
676 generated_proto_dir_ = generated_proto_dir;
678 clear_has_generated_proto_dir();
679 generated_proto_dir_ =
const_cast< ::std::string*
>(_default_generated_proto_dir_);
689 inline bool MessageFile::has_path()
const {
690 return (_has_bits_[0] & 0x00000001u) != 0;
692 inline void MessageFile::set_has_path() {
693 _has_bits_[0] |= 0x00000001u;
695 inline void MessageFile::clear_has_path() {
696 _has_bits_[0] &= ~0x00000001u;
698 inline void MessageFile::clear_path() {
699 if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
704 inline const ::std::string& MessageFile::path()
const {
708 inline void MessageFile::set_path(const ::std::string& value) {
710 if (path_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
711 path_ = new ::std::string;
713 path_->assign(value);
716 inline void MessageFile::set_path(
const char* value) {
718 if (path_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
719 path_ = new ::std::string;
721 path_->assign(value);
724 inline void MessageFile::set_path(
const char* value,
size_t size) {
726 if (path_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
727 path_ = new ::std::string;
729 path_->assign(reinterpret_cast<const char*>(value), size);
732 inline ::std::string* MessageFile::mutable_path() {
734 if (path_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
735 path_ = new ::std::string;
740 inline ::std::string* MessageFile::release_path() {
742 if (path_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
745 ::std::string* temp = path_;
746 path_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
750 inline void MessageFile::set_allocated_path(::std::string* path) {
751 if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
759 path_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
765 inline int MessageFile::manipulator_size()
const {
766 return manipulator_.size();
768 inline void MessageFile::clear_manipulator() {
769 manipulator_.Clear();
771 inline ::goby::acomms::protobuf::Manipulator MessageFile::manipulator(
int index)
const {
773 return static_cast< ::goby::acomms::protobuf::Manipulator
>(manipulator_.Get(index));
775 inline void MessageFile::set_manipulator(
int index, ::goby::acomms::protobuf::Manipulator value) {
776 assert(::goby::acomms::protobuf::Manipulator_IsValid(value));
777 manipulator_.Set(index, value);
780 inline void MessageFile::add_manipulator(::goby::acomms::protobuf::Manipulator value) {
781 assert(::goby::acomms::protobuf::Manipulator_IsValid(value));
782 manipulator_.Add(value);
785 inline const ::google::protobuf::RepeatedField<int>&
786 MessageFile::manipulator()
const {
790 inline ::google::protobuf::RepeatedField<int>*
791 MessageFile::mutable_manipulator() {
793 return &manipulator_;
801 inline bool QueueKey::has_type()
const {
802 return (_has_bits_[0] & 0x00000001u) != 0;
804 inline void QueueKey::set_has_type() {
805 _has_bits_[0] |= 0x00000001u;
807 inline void QueueKey::clear_has_type() {
808 _has_bits_[0] &= ~0x00000001u;
810 inline void QueueKey::clear_type() {
814 inline ::goby::transitional::protobuf::QueueType QueueKey::type()
const {
816 return static_cast< ::goby::transitional::protobuf::QueueType
>(type_);
818 inline void QueueKey::set_type(::goby::transitional::protobuf::QueueType value) {
819 assert(::goby::transitional::protobuf::QueueType_IsValid(value));
826 inline bool QueueKey::has_id()
const {
827 return (_has_bits_[0] & 0x00000002u) != 0;
829 inline void QueueKey::set_has_id() {
830 _has_bits_[0] |= 0x00000002u;
832 inline void QueueKey::clear_has_id() {
833 _has_bits_[0] &= ~0x00000002u;
835 inline void QueueKey::clear_id() {
839 inline ::google::protobuf::uint32 QueueKey::id()
const {
843 inline void QueueKey::set_id(::google::protobuf::uint32 value) {
854 inline bool QueueConfig::has_ack()
const {
855 return (_has_bits_[0] & 0x00000001u) != 0;
857 inline void QueueConfig::set_has_ack() {
858 _has_bits_[0] |= 0x00000001u;
860 inline void QueueConfig::clear_has_ack() {
861 _has_bits_[0] &= ~0x00000001u;
863 inline void QueueConfig::clear_ack() {
867 inline bool QueueConfig::ack()
const {
871 inline void QueueConfig::set_ack(
bool value) {
878 inline bool QueueConfig::has_blackout_time()
const {
879 return (_has_bits_[0] & 0x00000002u) != 0;
881 inline void QueueConfig::set_has_blackout_time() {
882 _has_bits_[0] |= 0x00000002u;
884 inline void QueueConfig::clear_has_blackout_time() {
885 _has_bits_[0] &= ~0x00000002u;
887 inline void QueueConfig::clear_blackout_time() {
889 clear_has_blackout_time();
891 inline ::google::protobuf::uint32 QueueConfig::blackout_time()
const {
893 return blackout_time_;
895 inline void QueueConfig::set_blackout_time(::google::protobuf::uint32 value) {
896 set_has_blackout_time();
897 blackout_time_ = value;
902 inline bool QueueConfig::has_max_queue()
const {
903 return (_has_bits_[0] & 0x00000004u) != 0;
905 inline void QueueConfig::set_has_max_queue() {
906 _has_bits_[0] |= 0x00000004u;
908 inline void QueueConfig::clear_has_max_queue() {
909 _has_bits_[0] &= ~0x00000004u;
911 inline void QueueConfig::clear_max_queue() {
913 clear_has_max_queue();
915 inline ::google::protobuf::uint32 QueueConfig::max_queue()
const {
919 inline void QueueConfig::set_max_queue(::google::protobuf::uint32 value) {
926 inline bool QueueConfig::has_newest_first()
const {
927 return (_has_bits_[0] & 0x00000008u) != 0;
929 inline void QueueConfig::set_has_newest_first() {
930 _has_bits_[0] |= 0x00000008u;
932 inline void QueueConfig::clear_has_newest_first() {
933 _has_bits_[0] &= ~0x00000008u;
935 inline void QueueConfig::clear_newest_first() {
936 newest_first_ =
true;
937 clear_has_newest_first();
939 inline bool QueueConfig::newest_first()
const {
941 return newest_first_;
943 inline void QueueConfig::set_newest_first(
bool value) {
944 set_has_newest_first();
945 newest_first_ = value;
950 inline bool QueueConfig::has_value_base()
const {
951 return (_has_bits_[0] & 0x00000010u) != 0;
953 inline void QueueConfig::set_has_value_base() {
954 _has_bits_[0] |= 0x00000010u;
956 inline void QueueConfig::clear_has_value_base() {
957 _has_bits_[0] &= ~0x00000010u;
959 inline void QueueConfig::clear_value_base() {
961 clear_has_value_base();
963 inline double QueueConfig::value_base()
const {
967 inline void QueueConfig::set_value_base(
double value) {
968 set_has_value_base();
974 inline bool QueueConfig::has_ttl()
const {
975 return (_has_bits_[0] & 0x00000020u) != 0;
977 inline void QueueConfig::set_has_ttl() {
978 _has_bits_[0] |= 0x00000020u;
980 inline void QueueConfig::clear_has_ttl() {
981 _has_bits_[0] &= ~0x00000020u;
983 inline void QueueConfig::clear_ttl() {
987 inline ::google::protobuf::uint32 QueueConfig::ttl()
const {
991 inline void QueueConfig::set_ttl(::google::protobuf::uint32 value) {
998 inline bool QueueConfig::has_key()
const {
999 return (_has_bits_[0] & 0x00000040u) != 0;
1001 inline void QueueConfig::set_has_key() {
1002 _has_bits_[0] |= 0x00000040u;
1004 inline void QueueConfig::clear_has_key() {
1005 _has_bits_[0] &= ~0x00000040u;
1007 inline void QueueConfig::clear_key() {
1008 if (key_ != NULL) key_->::goby::transitional::protobuf::QueueKey::Clear();
1011 inline const ::goby::transitional::protobuf::QueueKey& QueueConfig::key()
const {
1013 return key_ != NULL ? *key_ : *default_instance_->key_;
1015 inline ::goby::transitional::protobuf::QueueKey* QueueConfig::mutable_key() {
1017 if (key_ == NULL) key_ = new ::goby::transitional::protobuf::QueueKey;
1021 inline ::goby::transitional::protobuf::QueueKey* QueueConfig::release_key() {
1039 inline bool QueueConfig::has_name()
const {
1040 return (_has_bits_[0] & 0x00000080u) != 0;
1042 inline void QueueConfig::set_has_name() {
1043 _has_bits_[0] |= 0x00000080u;
1045 inline void QueueConfig::clear_has_name() {
1046 _has_bits_[0] &= ~0x00000080u;
1048 inline void QueueConfig::clear_name() {
1049 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1054 inline const ::std::string& QueueConfig::name()
const {
1058 inline void QueueConfig::set_name(const ::std::string& value) {
1060 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1061 name_ = new ::std::string;
1063 name_->assign(value);
1066 inline void QueueConfig::set_name(
const char* value) {
1068 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1069 name_ = new ::std::string;
1071 name_->assign(value);
1074 inline void QueueConfig::set_name(
const char* value,
size_t size) {
1076 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1077 name_ = new ::std::string;
1079 name_->assign(reinterpret_cast<const char*>(value), size);
1082 inline ::std::string* QueueConfig::mutable_name() {
1084 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1085 name_ = new ::std::string;
1090 inline ::std::string* QueueConfig::release_name() {
1092 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1095 ::std::string* temp = name_;
1096 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1100 inline void QueueConfig::set_allocated_name(::std::string* name) {
1101 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1109 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1115 inline bool QueueConfig::has_in_pubsub_var()
const {
1116 return (_has_bits_[0] & 0x00000100u) != 0;
1118 inline void QueueConfig::set_has_in_pubsub_var() {
1119 _has_bits_[0] |= 0x00000100u;
1121 inline void QueueConfig::clear_has_in_pubsub_var() {
1122 _has_bits_[0] &= ~0x00000100u;
1124 inline void QueueConfig::clear_in_pubsub_var() {
1125 if (in_pubsub_var_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1126 in_pubsub_var_->clear();
1128 clear_has_in_pubsub_var();
1130 inline const ::std::string& QueueConfig::in_pubsub_var()
const {
1132 return *in_pubsub_var_;
1134 inline void QueueConfig::set_in_pubsub_var(const ::std::string& value) {
1135 set_has_in_pubsub_var();
1136 if (in_pubsub_var_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1137 in_pubsub_var_ = new ::std::string;
1139 in_pubsub_var_->assign(value);
1142 inline void QueueConfig::set_in_pubsub_var(
const char* value) {
1143 set_has_in_pubsub_var();
1144 if (in_pubsub_var_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1145 in_pubsub_var_ = new ::std::string;
1147 in_pubsub_var_->assign(value);
1150 inline void QueueConfig::set_in_pubsub_var(
const char* value,
size_t size) {
1151 set_has_in_pubsub_var();
1152 if (in_pubsub_var_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1153 in_pubsub_var_ = new ::std::string;
1155 in_pubsub_var_->assign(reinterpret_cast<const char*>(value), size);
1158 inline ::std::string* QueueConfig::mutable_in_pubsub_var() {
1159 set_has_in_pubsub_var();
1160 if (in_pubsub_var_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1161 in_pubsub_var_ = new ::std::string;
1164 return in_pubsub_var_;
1166 inline ::std::string* QueueConfig::release_in_pubsub_var() {
1167 clear_has_in_pubsub_var();
1168 if (in_pubsub_var_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1171 ::std::string* temp = in_pubsub_var_;
1172 in_pubsub_var_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1176 inline void QueueConfig::set_allocated_in_pubsub_var(::std::string* in_pubsub_var) {
1177 if (in_pubsub_var_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1178 delete in_pubsub_var_;
1180 if (in_pubsub_var) {
1181 set_has_in_pubsub_var();
1182 in_pubsub_var_ = in_pubsub_var;
1184 clear_has_in_pubsub_var();
1185 in_pubsub_var_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1191 inline bool QueueConfig::has_out_pubsub_var()
const {
1192 return (_has_bits_[0] & 0x00000200u) != 0;
1194 inline void QueueConfig::set_has_out_pubsub_var() {
1195 _has_bits_[0] |= 0x00000200u;
1197 inline void QueueConfig::clear_has_out_pubsub_var() {
1198 _has_bits_[0] &= ~0x00000200u;
1200 inline void QueueConfig::clear_out_pubsub_var() {
1201 if (out_pubsub_var_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1202 out_pubsub_var_->clear();
1204 clear_has_out_pubsub_var();
1206 inline const ::std::string& QueueConfig::out_pubsub_var()
const {
1208 return *out_pubsub_var_;
1210 inline void QueueConfig::set_out_pubsub_var(const ::std::string& value) {
1211 set_has_out_pubsub_var();
1212 if (out_pubsub_var_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1213 out_pubsub_var_ = new ::std::string;
1215 out_pubsub_var_->assign(value);
1218 inline void QueueConfig::set_out_pubsub_var(
const char* value) {
1219 set_has_out_pubsub_var();
1220 if (out_pubsub_var_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1221 out_pubsub_var_ = new ::std::string;
1223 out_pubsub_var_->assign(value);
1226 inline void QueueConfig::set_out_pubsub_var(
const char* value,
size_t size) {
1227 set_has_out_pubsub_var();
1228 if (out_pubsub_var_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1229 out_pubsub_var_ = new ::std::string;
1231 out_pubsub_var_->assign(reinterpret_cast<const char*>(value), size);
1234 inline ::std::string* QueueConfig::mutable_out_pubsub_var() {
1235 set_has_out_pubsub_var();
1236 if (out_pubsub_var_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1237 out_pubsub_var_ = new ::std::string;
1240 return out_pubsub_var_;
1242 inline ::std::string* QueueConfig::release_out_pubsub_var() {
1243 clear_has_out_pubsub_var();
1244 if (out_pubsub_var_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1247 ::std::string* temp = out_pubsub_var_;
1248 out_pubsub_var_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1252 inline void QueueConfig::set_allocated_out_pubsub_var(::std::string* out_pubsub_var) {
1253 if (out_pubsub_var_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1254 delete out_pubsub_var_;
1256 if (out_pubsub_var) {
1257 set_has_out_pubsub_var();
1258 out_pubsub_var_ = out_pubsub_var;
1260 clear_has_out_pubsub_var();
1261 out_pubsub_var_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1275 namespace protobuf {
1277 template <>
struct is_proto_enum< ::goby::transitional::protobuf::QueueType> : ::google::protobuf::internal::true_type {};
1279 inline const EnumDescriptor* GetEnumDescriptor< ::goby::transitional::protobuf::QueueType>() {
1280 return ::goby::transitional::protobuf::QueueType_descriptor();
1289 #endif // PROTOBUF_goby_2fmoos_2fprotobuf_2ftransitional_2eproto__INCLUDED
The global namespace for the Goby project.