4 #ifndef PROTOBUF_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_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/unknown_field_set.h> 27 #include "goby/moos/protobuf/goby_moos_app.pb.h" 28 #include "goby/moos/protobuf/translator.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 void protobuf_AddDesc_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto();
38 void protobuf_AssignDesc_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto();
39 void protobuf_ShutdownFile_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto();
57 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
58 return _unknown_fields_;
61 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62 return &_unknown_fields_;
65 static const ::google::protobuf::Descriptor* descriptor();
73 void CopyFrom(const ::google::protobuf::Message& from);
74 void MergeFrom(const ::google::protobuf::Message& from);
78 bool IsInitialized()
const;
81 bool MergePartialFromCodedStream(
82 ::google::protobuf::io::CodedInputStream* input);
83 void SerializeWithCachedSizes(
84 ::google::protobuf::io::CodedOutputStream* output)
const;
85 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
86 int GetCachedSize()
const {
return _cached_size_; }
90 void SetCachedSize(
int size)
const;
92 ::google::protobuf::Metadata GetMetadata()
const;
99 inline bool has_common()
const;
100 inline void clear_common();
101 static const int kCommonFieldNumber = 1;
102 inline const ::GobyMOOSAppConfig& common()
const;
103 inline ::GobyMOOSAppConfig* mutable_common();
104 inline ::GobyMOOSAppConfig* release_common();
108 inline int load_shared_library_size()
const;
109 inline void clear_load_shared_library();
110 static const int kLoadSharedLibraryFieldNumber = 2;
111 inline const ::std::string& load_shared_library(
int index)
const;
112 inline ::std::string* mutable_load_shared_library(
int index);
113 inline void set_load_shared_library(
int index, const ::std::string& value);
114 inline void set_load_shared_library(
int index,
const char* value);
115 inline void set_load_shared_library(
int index,
const char* value,
size_t size);
116 inline ::std::string* add_load_shared_library();
117 inline void add_load_shared_library(const ::std::string& value);
118 inline void add_load_shared_library(
const char* value);
119 inline void add_load_shared_library(
const char* value,
size_t size);
120 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& load_shared_library()
const;
121 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_load_shared_library();
124 inline int load_proto_file_size()
const;
125 inline void clear_load_proto_file();
126 static const int kLoadProtoFileFieldNumber = 3;
127 inline const ::std::string& load_proto_file(
int index)
const;
128 inline ::std::string* mutable_load_proto_file(
int index);
129 inline void set_load_proto_file(
int index, const ::std::string& value);
130 inline void set_load_proto_file(
int index,
const char* value);
131 inline void set_load_proto_file(
int index,
const char* value,
size_t size);
132 inline ::std::string* add_load_proto_file();
133 inline void add_load_proto_file(const ::std::string& value);
134 inline void add_load_proto_file(
const char* value);
135 inline void add_load_proto_file(
const char* value,
size_t size);
136 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& load_proto_file()
const;
137 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_load_proto_file();
140 inline int translator_entry_size()
const;
141 inline void clear_translator_entry();
142 static const int kTranslatorEntryFieldNumber = 4;
143 inline const ::goby::moos::protobuf::TranslatorEntry& translator_entry(
int index)
const;
144 inline ::goby::moos::protobuf::TranslatorEntry* mutable_translator_entry(
int index);
145 inline ::goby::moos::protobuf::TranslatorEntry* add_translator_entry();
146 inline const ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >&
147 translator_entry()
const;
148 inline ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >*
149 mutable_translator_entry();
152 inline bool has_modem_id_lookup_path()
const;
153 inline void clear_modem_id_lookup_path();
154 static const int kModemIdLookupPathFieldNumber = 5;
155 inline const ::std::string& modem_id_lookup_path()
const;
156 inline void set_modem_id_lookup_path(const ::std::string& value);
157 inline void set_modem_id_lookup_path(
const char* value);
158 inline void set_modem_id_lookup_path(
const char* value,
size_t size);
159 inline ::std::string* mutable_modem_id_lookup_path();
160 inline ::std::string* release_modem_id_lookup_path();
161 inline void set_allocated_modem_id_lookup_path(::std::string* modem_id_lookup_path);
164 inline int multiplex_create_moos_var_size()
const;
165 inline void clear_multiplex_create_moos_var();
166 static const int kMultiplexCreateMoosVarFieldNumber = 6;
167 inline const ::std::string& multiplex_create_moos_var(
int index)
const;
168 inline ::std::string* mutable_multiplex_create_moos_var(
int index);
169 inline void set_multiplex_create_moos_var(
int index, const ::std::string& value);
170 inline void set_multiplex_create_moos_var(
int index,
const char* value);
171 inline void set_multiplex_create_moos_var(
int index,
const char* value,
size_t size);
172 inline ::std::string* add_multiplex_create_moos_var();
173 inline void add_multiplex_create_moos_var(const ::std::string& value);
174 inline void add_multiplex_create_moos_var(
const char* value);
175 inline void add_multiplex_create_moos_var(
const char* value,
size_t size);
176 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& multiplex_create_moos_var()
const;
177 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_multiplex_create_moos_var();
181 inline void set_has_common();
182 inline void clear_has_common();
183 inline void set_has_modem_id_lookup_path();
184 inline void clear_has_modem_id_lookup_path();
186 ::google::protobuf::UnknownFieldSet _unknown_fields_;
188 ::google::protobuf::uint32 _has_bits_[1];
189 mutable int _cached_size_;
191 ::google::protobuf::RepeatedPtrField< ::std::string> load_shared_library_;
192 ::google::protobuf::RepeatedPtrField< ::std::string> load_proto_file_;
193 ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry > translator_entry_;
194 ::std::string* modem_id_lookup_path_;
195 ::google::protobuf::RepeatedPtrField< ::std::string> multiplex_create_moos_var_;
196 friend void protobuf_AddDesc_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto();
197 friend void protobuf_AssignDesc_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto();
198 friend void protobuf_ShutdownFile_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto();
200 void InitAsDefaultInstance();
211 inline bool pTranslatorConfig::has_common()
const {
212 return (_has_bits_[0] & 0x00000001u) != 0;
214 inline void pTranslatorConfig::set_has_common() {
215 _has_bits_[0] |= 0x00000001u;
217 inline void pTranslatorConfig::clear_has_common() {
218 _has_bits_[0] &= ~0x00000001u;
220 inline void pTranslatorConfig::clear_common() {
221 if (common_ != NULL) common_->::GobyMOOSAppConfig::Clear();
224 inline const ::GobyMOOSAppConfig& pTranslatorConfig::common()
const {
226 return common_ != NULL ? *common_ : *default_instance_->common_;
228 inline ::GobyMOOSAppConfig* pTranslatorConfig::mutable_common() {
230 if (common_ == NULL) common_ = new ::GobyMOOSAppConfig;
234 inline ::GobyMOOSAppConfig* pTranslatorConfig::release_common() {
240 inline void pTranslatorConfig::set_allocated_common(::
GobyMOOSAppConfig* common) {
252 inline int pTranslatorConfig::load_shared_library_size()
const {
253 return load_shared_library_.size();
255 inline void pTranslatorConfig::clear_load_shared_library() {
256 load_shared_library_.Clear();
258 inline const ::std::string& pTranslatorConfig::load_shared_library(
int index)
const {
260 return load_shared_library_.Get(index);
262 inline ::std::string* pTranslatorConfig::mutable_load_shared_library(
int index) {
264 return load_shared_library_.Mutable(index);
266 inline void pTranslatorConfig::set_load_shared_library(
int index, const ::std::string& value) {
268 load_shared_library_.Mutable(index)->assign(value);
270 inline void pTranslatorConfig::set_load_shared_library(
int index,
const char* value) {
271 load_shared_library_.Mutable(index)->assign(value);
274 inline void pTranslatorConfig::set_load_shared_library(
int index,
const char* value,
size_t size) {
275 load_shared_library_.Mutable(index)->assign(
276 reinterpret_cast<const char*>(value), size);
279 inline ::std::string* pTranslatorConfig::add_load_shared_library() {
280 return load_shared_library_.Add();
282 inline void pTranslatorConfig::add_load_shared_library(const ::std::string& value) {
283 load_shared_library_.Add()->assign(value);
286 inline void pTranslatorConfig::add_load_shared_library(
const char* value) {
287 load_shared_library_.Add()->assign(value);
290 inline void pTranslatorConfig::add_load_shared_library(
const char* value,
size_t size) {
291 load_shared_library_.Add()->assign(reinterpret_cast<const char*>(value), size);
294 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
295 pTranslatorConfig::load_shared_library()
const {
297 return load_shared_library_;
299 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
300 pTranslatorConfig::mutable_load_shared_library() {
302 return &load_shared_library_;
306 inline int pTranslatorConfig::load_proto_file_size()
const {
307 return load_proto_file_.size();
309 inline void pTranslatorConfig::clear_load_proto_file() {
310 load_proto_file_.Clear();
312 inline const ::std::string& pTranslatorConfig::load_proto_file(
int index)
const {
314 return load_proto_file_.Get(index);
316 inline ::std::string* pTranslatorConfig::mutable_load_proto_file(
int index) {
318 return load_proto_file_.Mutable(index);
320 inline void pTranslatorConfig::set_load_proto_file(
int index, const ::std::string& value) {
322 load_proto_file_.Mutable(index)->assign(value);
324 inline void pTranslatorConfig::set_load_proto_file(
int index,
const char* value) {
325 load_proto_file_.Mutable(index)->assign(value);
328 inline void pTranslatorConfig::set_load_proto_file(
int index,
const char* value,
size_t size) {
329 load_proto_file_.Mutable(index)->assign(
330 reinterpret_cast<const char*>(value), size);
333 inline ::std::string* pTranslatorConfig::add_load_proto_file() {
334 return load_proto_file_.Add();
336 inline void pTranslatorConfig::add_load_proto_file(const ::std::string& value) {
337 load_proto_file_.Add()->assign(value);
340 inline void pTranslatorConfig::add_load_proto_file(
const char* value) {
341 load_proto_file_.Add()->assign(value);
344 inline void pTranslatorConfig::add_load_proto_file(
const char* value,
size_t size) {
345 load_proto_file_.Add()->assign(reinterpret_cast<const char*>(value), size);
348 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
349 pTranslatorConfig::load_proto_file()
const {
351 return load_proto_file_;
353 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
354 pTranslatorConfig::mutable_load_proto_file() {
356 return &load_proto_file_;
360 inline int pTranslatorConfig::translator_entry_size()
const {
361 return translator_entry_.size();
363 inline void pTranslatorConfig::clear_translator_entry() {
364 translator_entry_.Clear();
366 inline const ::goby::moos::protobuf::TranslatorEntry& pTranslatorConfig::translator_entry(
int index)
const {
368 return translator_entry_.Get(index);
370 inline ::goby::moos::protobuf::TranslatorEntry* pTranslatorConfig::mutable_translator_entry(
int index) {
372 return translator_entry_.Mutable(index);
374 inline ::goby::moos::protobuf::TranslatorEntry* pTranslatorConfig::add_translator_entry() {
376 return translator_entry_.Add();
378 inline const ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >&
379 pTranslatorConfig::translator_entry()
const {
381 return translator_entry_;
383 inline ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >*
384 pTranslatorConfig::mutable_translator_entry() {
386 return &translator_entry_;
390 inline bool pTranslatorConfig::has_modem_id_lookup_path()
const {
391 return (_has_bits_[0] & 0x00000010u) != 0;
393 inline void pTranslatorConfig::set_has_modem_id_lookup_path() {
394 _has_bits_[0] |= 0x00000010u;
396 inline void pTranslatorConfig::clear_has_modem_id_lookup_path() {
397 _has_bits_[0] &= ~0x00000010u;
399 inline void pTranslatorConfig::clear_modem_id_lookup_path() {
400 if (modem_id_lookup_path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
401 modem_id_lookup_path_->clear();
403 clear_has_modem_id_lookup_path();
405 inline const ::std::string& pTranslatorConfig::modem_id_lookup_path()
const {
407 return *modem_id_lookup_path_;
409 inline void pTranslatorConfig::set_modem_id_lookup_path(const ::std::string& value) {
410 set_has_modem_id_lookup_path();
411 if (modem_id_lookup_path_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
412 modem_id_lookup_path_ = new ::std::string;
414 modem_id_lookup_path_->assign(value);
417 inline void pTranslatorConfig::set_modem_id_lookup_path(
const char* value) {
418 set_has_modem_id_lookup_path();
419 if (modem_id_lookup_path_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
420 modem_id_lookup_path_ = new ::std::string;
422 modem_id_lookup_path_->assign(value);
425 inline void pTranslatorConfig::set_modem_id_lookup_path(
const char* value,
size_t size) {
426 set_has_modem_id_lookup_path();
427 if (modem_id_lookup_path_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
428 modem_id_lookup_path_ = new ::std::string;
430 modem_id_lookup_path_->assign(reinterpret_cast<const char*>(value), size);
433 inline ::std::string* pTranslatorConfig::mutable_modem_id_lookup_path() {
434 set_has_modem_id_lookup_path();
435 if (modem_id_lookup_path_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
436 modem_id_lookup_path_ = new ::std::string;
439 return modem_id_lookup_path_;
441 inline ::std::string* pTranslatorConfig::release_modem_id_lookup_path() {
442 clear_has_modem_id_lookup_path();
443 if (modem_id_lookup_path_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
446 ::std::string* temp = modem_id_lookup_path_;
447 modem_id_lookup_path_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
451 inline void pTranslatorConfig::set_allocated_modem_id_lookup_path(::std::string* modem_id_lookup_path) {
452 if (modem_id_lookup_path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
453 delete modem_id_lookup_path_;
455 if (modem_id_lookup_path) {
456 set_has_modem_id_lookup_path();
457 modem_id_lookup_path_ = modem_id_lookup_path;
459 clear_has_modem_id_lookup_path();
460 modem_id_lookup_path_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
466 inline int pTranslatorConfig::multiplex_create_moos_var_size()
const {
467 return multiplex_create_moos_var_.size();
469 inline void pTranslatorConfig::clear_multiplex_create_moos_var() {
470 multiplex_create_moos_var_.Clear();
472 inline const ::std::string& pTranslatorConfig::multiplex_create_moos_var(
int index)
const {
474 return multiplex_create_moos_var_.Get(index);
476 inline ::std::string* pTranslatorConfig::mutable_multiplex_create_moos_var(
int index) {
478 return multiplex_create_moos_var_.Mutable(index);
480 inline void pTranslatorConfig::set_multiplex_create_moos_var(
int index, const ::std::string& value) {
482 multiplex_create_moos_var_.Mutable(index)->assign(value);
484 inline void pTranslatorConfig::set_multiplex_create_moos_var(
int index,
const char* value) {
485 multiplex_create_moos_var_.Mutable(index)->assign(value);
488 inline void pTranslatorConfig::set_multiplex_create_moos_var(
int index,
const char* value,
size_t size) {
489 multiplex_create_moos_var_.Mutable(index)->assign(
490 reinterpret_cast<const char*>(value), size);
493 inline ::std::string* pTranslatorConfig::add_multiplex_create_moos_var() {
494 return multiplex_create_moos_var_.Add();
496 inline void pTranslatorConfig::add_multiplex_create_moos_var(const ::std::string& value) {
497 multiplex_create_moos_var_.Add()->assign(value);
500 inline void pTranslatorConfig::add_multiplex_create_moos_var(
const char* value) {
501 multiplex_create_moos_var_.Add()->assign(value);
504 inline void pTranslatorConfig::add_multiplex_create_moos_var(
const char* value,
size_t size) {
505 multiplex_create_moos_var_.Add()->assign(reinterpret_cast<const char*>(value), size);
508 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
509 pTranslatorConfig::multiplex_create_moos_var()
const {
511 return multiplex_create_moos_var_;
513 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
514 pTranslatorConfig::mutable_multiplex_create_moos_var() {
516 return &multiplex_create_moos_var_;
533 #endif // PROTOBUF_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto__INCLUDED