Goby v2
app_base_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/common/protobuf/app_base_config.proto
3 
4 #ifndef PROTOBUF_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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/common/protobuf/option_extensions.pb.h"
28 #include "goby/common/protobuf/zero_mq_node_config.pb.h"
29 #include "goby/common/protobuf/pubsub_node_config.pb.h"
30 #include "goby/common/protobuf/logger.pb.h"
31 #include <boost/units/quantity.hpp>
32 #include <boost/units/absolute.hpp>
33 #include <boost/units/dimensionless_type.hpp>
34 #include <boost/units/make_scaled_unit.hpp>
35 // @@protoc_insertion_point(includes)
36 
37 // Internal implementation detail -- do not call these.
38 void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
39 void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
40 void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
41 
42 class AppBaseConfig;
43 
44 // ===================================================================
45 
46 class AppBaseConfig : public ::google::protobuf::Message {
47  public:
48  AppBaseConfig();
49  virtual ~AppBaseConfig();
50 
51  AppBaseConfig(const AppBaseConfig& from);
52 
53  inline AppBaseConfig& operator=(const AppBaseConfig& from) {
54  CopyFrom(from);
55  return *this;
56  }
57 
58  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
59  return _unknown_fields_;
60  }
61 
62  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
63  return &_unknown_fields_;
64  }
65 
66  static const ::google::protobuf::Descriptor* descriptor();
67  static const AppBaseConfig& default_instance();
68 
69  void Swap(AppBaseConfig* other);
70 
71  // implements Message ----------------------------------------------
72 
73  AppBaseConfig* New() const;
74  void CopyFrom(const ::google::protobuf::Message& from);
75  void MergeFrom(const ::google::protobuf::Message& from);
76  void CopyFrom(const AppBaseConfig& from);
77  void MergeFrom(const AppBaseConfig& from);
78  void Clear();
79  bool IsInitialized() const;
80 
81  int ByteSize() const;
82  bool MergePartialFromCodedStream(
83  ::google::protobuf::io::CodedInputStream* input);
84  void SerializeWithCachedSizes(
85  ::google::protobuf::io::CodedOutputStream* output) const;
86  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
87  int GetCachedSize() const { return _cached_size_; }
88  private:
89  void SharedCtor();
90  void SharedDtor();
91  void SetCachedSize(int size) const;
92  public:
93  ::google::protobuf::Metadata GetMetadata() const;
94 
95  // nested types ----------------------------------------------------
96 
97  // accessors -------------------------------------------------------
98 
99  // optional string app_name = 1;
100  inline bool has_app_name() const;
101  inline void clear_app_name();
102  static const int kAppNameFieldNumber = 1;
103  inline const ::std::string& app_name() const;
104  inline void set_app_name(const ::std::string& value);
105  inline void set_app_name(const char* value);
106  inline void set_app_name(const char* value, size_t size);
107  inline ::std::string* mutable_app_name();
108  inline ::std::string* release_app_name();
109  inline void set_allocated_app_name(::std::string* app_name);
110 
111  // optional float loop_freq = 2 [default = 10];
112  inline bool has_loop_freq() const;
113  inline void clear_loop_freq();
114  static const int kLoopFreqFieldNumber = 2;
115  inline float loop_freq() const;
116  inline void set_loop_freq(float value);
117 
118  // optional string platform_name = 3 [default = "unnamed_goby_platform"];
119  inline bool has_platform_name() const;
120  inline void clear_platform_name();
121  static const int kPlatformNameFieldNumber = 3;
122  inline const ::std::string& platform_name() const;
123  inline void set_platform_name(const ::std::string& value);
124  inline void set_platform_name(const char* value);
125  inline void set_platform_name(const char* value, size_t size);
126  inline ::std::string* mutable_platform_name();
127  inline ::std::string* release_platform_name();
128  inline void set_allocated_platform_name(::std::string* platform_name);
129 
130  // optional .goby.common.protobuf.PubSubSocketConfig pubsub_config = 10;
131  inline bool has_pubsub_config() const;
132  inline void clear_pubsub_config();
133  static const int kPubsubConfigFieldNumber = 10;
134  inline const ::goby::common::protobuf::PubSubSocketConfig& pubsub_config() const;
135  inline ::goby::common::protobuf::PubSubSocketConfig* mutable_pubsub_config();
136  inline ::goby::common::protobuf::PubSubSocketConfig* release_pubsub_config();
137  inline void set_allocated_pubsub_config(::goby::common::protobuf::PubSubSocketConfig* pubsub_config);
138 
139  // optional .goby.common.protobuf.ZeroMQServiceConfig additional_socket_config = 100;
140  inline bool has_additional_socket_config() const;
141  inline void clear_additional_socket_config();
142  static const int kAdditionalSocketConfigFieldNumber = 100;
143  inline const ::goby::common::protobuf::ZeroMQServiceConfig& additional_socket_config() const;
144  inline ::goby::common::protobuf::ZeroMQServiceConfig* mutable_additional_socket_config();
145  inline ::goby::common::protobuf::ZeroMQServiceConfig* release_additional_socket_config();
146  inline void set_allocated_additional_socket_config(::goby::common::protobuf::ZeroMQServiceConfig* additional_socket_config);
147 
148  // optional .goby.common.protobuf.GLogConfig glog_config = 11;
149  inline bool has_glog_config() const;
150  inline void clear_glog_config();
151  static const int kGlogConfigFieldNumber = 11;
152  inline const ::goby::common::protobuf::GLogConfig& glog_config() const;
153  inline ::goby::common::protobuf::GLogConfig* mutable_glog_config();
154  inline ::goby::common::protobuf::GLogConfig* release_glog_config();
155  inline void set_allocated_glog_config(::goby::common::protobuf::GLogConfig* glog_config);
156 
157  GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(AppBaseConfig)
158  // @@protoc_insertion_point(class_scope:AppBaseConfig)
159  private:
160  inline void set_has_app_name();
161  inline void clear_has_app_name();
162  inline void set_has_loop_freq();
163  inline void clear_has_loop_freq();
164  inline void set_has_platform_name();
165  inline void clear_has_platform_name();
166  inline void set_has_pubsub_config();
167  inline void clear_has_pubsub_config();
168  inline void set_has_additional_socket_config();
169  inline void clear_has_additional_socket_config();
170  inline void set_has_glog_config();
171  inline void clear_has_glog_config();
172 
173  ::google::protobuf::internal::ExtensionSet _extensions_;
174 
175  ::google::protobuf::UnknownFieldSet _unknown_fields_;
176 
177  ::google::protobuf::uint32 _has_bits_[1];
178  mutable int _cached_size_;
179  ::std::string* app_name_;
180  static ::std::string* _default_platform_name_;
181  ::std::string* platform_name_;
183  ::goby::common::protobuf::ZeroMQServiceConfig* additional_socket_config_;
185  float loop_freq_;
186  friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
187  friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
188  friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
189 
190  void InitAsDefaultInstance();
191  static AppBaseConfig* default_instance_;
192 };
193 // ===================================================================
194 
195 
196 // ===================================================================
197 
198 // AppBaseConfig
199 
200 // optional string app_name = 1;
201 inline bool AppBaseConfig::has_app_name() const {
202  return (_has_bits_[0] & 0x00000001u) != 0;
203 }
204 inline void AppBaseConfig::set_has_app_name() {
205  _has_bits_[0] |= 0x00000001u;
206 }
207 inline void AppBaseConfig::clear_has_app_name() {
208  _has_bits_[0] &= ~0x00000001u;
209 }
210 inline void AppBaseConfig::clear_app_name() {
211  if (app_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
212  app_name_->clear();
213  }
214  clear_has_app_name();
215 }
216 inline const ::std::string& AppBaseConfig::app_name() const {
217  // @@protoc_insertion_point(field_get:AppBaseConfig.app_name)
218  return *app_name_;
219 }
220 inline void AppBaseConfig::set_app_name(const ::std::string& value) {
221  set_has_app_name();
222  if (app_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
223  app_name_ = new ::std::string;
224  }
225  app_name_->assign(value);
226  // @@protoc_insertion_point(field_set:AppBaseConfig.app_name)
227 }
228 inline void AppBaseConfig::set_app_name(const char* value) {
229  set_has_app_name();
230  if (app_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
231  app_name_ = new ::std::string;
232  }
233  app_name_->assign(value);
234  // @@protoc_insertion_point(field_set_char:AppBaseConfig.app_name)
235 }
236 inline void AppBaseConfig::set_app_name(const char* value, size_t size) {
237  set_has_app_name();
238  if (app_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
239  app_name_ = new ::std::string;
240  }
241  app_name_->assign(reinterpret_cast<const char*>(value), size);
242  // @@protoc_insertion_point(field_set_pointer:AppBaseConfig.app_name)
243 }
244 inline ::std::string* AppBaseConfig::mutable_app_name() {
245  set_has_app_name();
246  if (app_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
247  app_name_ = new ::std::string;
248  }
249  // @@protoc_insertion_point(field_mutable:AppBaseConfig.app_name)
250  return app_name_;
251 }
252 inline ::std::string* AppBaseConfig::release_app_name() {
253  clear_has_app_name();
254  if (app_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
255  return NULL;
256  } else {
257  ::std::string* temp = app_name_;
258  app_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
259  return temp;
260  }
261 }
262 inline void AppBaseConfig::set_allocated_app_name(::std::string* app_name) {
263  if (app_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
264  delete app_name_;
265  }
266  if (app_name) {
267  set_has_app_name();
268  app_name_ = app_name;
269  } else {
270  clear_has_app_name();
271  app_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
272  }
273  // @@protoc_insertion_point(field_set_allocated:AppBaseConfig.app_name)
274 }
275 
276 // optional float loop_freq = 2 [default = 10];
277 inline bool AppBaseConfig::has_loop_freq() const {
278  return (_has_bits_[0] & 0x00000002u) != 0;
279 }
280 inline void AppBaseConfig::set_has_loop_freq() {
281  _has_bits_[0] |= 0x00000002u;
282 }
283 inline void AppBaseConfig::clear_has_loop_freq() {
284  _has_bits_[0] &= ~0x00000002u;
285 }
286 inline void AppBaseConfig::clear_loop_freq() {
287  loop_freq_ = 10;
288  clear_has_loop_freq();
289 }
290 inline float AppBaseConfig::loop_freq() const {
291  // @@protoc_insertion_point(field_get:AppBaseConfig.loop_freq)
292  return loop_freq_;
293 }
294 inline void AppBaseConfig::set_loop_freq(float value) {
295  set_has_loop_freq();
296  loop_freq_ = value;
297  // @@protoc_insertion_point(field_set:AppBaseConfig.loop_freq)
298 }
299 
300 // optional string platform_name = 3 [default = "unnamed_goby_platform"];
301 inline bool AppBaseConfig::has_platform_name() const {
302  return (_has_bits_[0] & 0x00000004u) != 0;
303 }
304 inline void AppBaseConfig::set_has_platform_name() {
305  _has_bits_[0] |= 0x00000004u;
306 }
307 inline void AppBaseConfig::clear_has_platform_name() {
308  _has_bits_[0] &= ~0x00000004u;
309 }
310 inline void AppBaseConfig::clear_platform_name() {
311  if (platform_name_ != _default_platform_name_) {
312  platform_name_->assign(*_default_platform_name_);
313  }
314  clear_has_platform_name();
315 }
316 inline const ::std::string& AppBaseConfig::platform_name() const {
317  // @@protoc_insertion_point(field_get:AppBaseConfig.platform_name)
318  return *platform_name_;
319 }
320 inline void AppBaseConfig::set_platform_name(const ::std::string& value) {
321  set_has_platform_name();
322  if (platform_name_ == _default_platform_name_) {
323  platform_name_ = new ::std::string;
324  }
325  platform_name_->assign(value);
326  // @@protoc_insertion_point(field_set:AppBaseConfig.platform_name)
327 }
328 inline void AppBaseConfig::set_platform_name(const char* value) {
329  set_has_platform_name();
330  if (platform_name_ == _default_platform_name_) {
331  platform_name_ = new ::std::string;
332  }
333  platform_name_->assign(value);
334  // @@protoc_insertion_point(field_set_char:AppBaseConfig.platform_name)
335 }
336 inline void AppBaseConfig::set_platform_name(const char* value, size_t size) {
337  set_has_platform_name();
338  if (platform_name_ == _default_platform_name_) {
339  platform_name_ = new ::std::string;
340  }
341  platform_name_->assign(reinterpret_cast<const char*>(value), size);
342  // @@protoc_insertion_point(field_set_pointer:AppBaseConfig.platform_name)
343 }
344 inline ::std::string* AppBaseConfig::mutable_platform_name() {
345  set_has_platform_name();
346  if (platform_name_ == _default_platform_name_) {
347  platform_name_ = new ::std::string(*_default_platform_name_);
348  }
349  // @@protoc_insertion_point(field_mutable:AppBaseConfig.platform_name)
350  return platform_name_;
351 }
352 inline ::std::string* AppBaseConfig::release_platform_name() {
353  clear_has_platform_name();
354  if (platform_name_ == _default_platform_name_) {
355  return NULL;
356  } else {
357  ::std::string* temp = platform_name_;
358  platform_name_ = const_cast< ::std::string*>(_default_platform_name_);
359  return temp;
360  }
361 }
362 inline void AppBaseConfig::set_allocated_platform_name(::std::string* platform_name) {
363  if (platform_name_ != _default_platform_name_) {
364  delete platform_name_;
365  }
366  if (platform_name) {
367  set_has_platform_name();
368  platform_name_ = platform_name;
369  } else {
370  clear_has_platform_name();
371  platform_name_ = const_cast< ::std::string*>(_default_platform_name_);
372  }
373  // @@protoc_insertion_point(field_set_allocated:AppBaseConfig.platform_name)
374 }
375 
376 // optional .goby.common.protobuf.PubSubSocketConfig pubsub_config = 10;
377 inline bool AppBaseConfig::has_pubsub_config() const {
378  return (_has_bits_[0] & 0x00000008u) != 0;
379 }
380 inline void AppBaseConfig::set_has_pubsub_config() {
381  _has_bits_[0] |= 0x00000008u;
382 }
383 inline void AppBaseConfig::clear_has_pubsub_config() {
384  _has_bits_[0] &= ~0x00000008u;
385 }
386 inline void AppBaseConfig::clear_pubsub_config() {
387  if (pubsub_config_ != NULL) pubsub_config_->::goby::common::protobuf::PubSubSocketConfig::Clear();
388  clear_has_pubsub_config();
389 }
390 inline const ::goby::common::protobuf::PubSubSocketConfig& AppBaseConfig::pubsub_config() const {
391  // @@protoc_insertion_point(field_get:AppBaseConfig.pubsub_config)
392  return pubsub_config_ != NULL ? *pubsub_config_ : *default_instance_->pubsub_config_;
393 }
394 inline ::goby::common::protobuf::PubSubSocketConfig* AppBaseConfig::mutable_pubsub_config() {
395  set_has_pubsub_config();
396  if (pubsub_config_ == NULL) pubsub_config_ = new ::goby::common::protobuf::PubSubSocketConfig;
397  // @@protoc_insertion_point(field_mutable:AppBaseConfig.pubsub_config)
398  return pubsub_config_;
399 }
400 inline ::goby::common::protobuf::PubSubSocketConfig* AppBaseConfig::release_pubsub_config() {
401  clear_has_pubsub_config();
402  ::goby::common::protobuf::PubSubSocketConfig* temp = pubsub_config_;
403  pubsub_config_ = NULL;
404  return temp;
405 }
406 inline void AppBaseConfig::set_allocated_pubsub_config(::goby::common::protobuf::PubSubSocketConfig* pubsub_config) {
407  delete pubsub_config_;
408  pubsub_config_ = pubsub_config;
409  if (pubsub_config) {
410  set_has_pubsub_config();
411  } else {
412  clear_has_pubsub_config();
413  }
414  // @@protoc_insertion_point(field_set_allocated:AppBaseConfig.pubsub_config)
415 }
416 
417 // optional .goby.common.protobuf.ZeroMQServiceConfig additional_socket_config = 100;
418 inline bool AppBaseConfig::has_additional_socket_config() const {
419  return (_has_bits_[0] & 0x00000010u) != 0;
420 }
421 inline void AppBaseConfig::set_has_additional_socket_config() {
422  _has_bits_[0] |= 0x00000010u;
423 }
424 inline void AppBaseConfig::clear_has_additional_socket_config() {
425  _has_bits_[0] &= ~0x00000010u;
426 }
427 inline void AppBaseConfig::clear_additional_socket_config() {
428  if (additional_socket_config_ != NULL) additional_socket_config_->::goby::common::protobuf::ZeroMQServiceConfig::Clear();
429  clear_has_additional_socket_config();
430 }
431 inline const ::goby::common::protobuf::ZeroMQServiceConfig& AppBaseConfig::additional_socket_config() const {
432  // @@protoc_insertion_point(field_get:AppBaseConfig.additional_socket_config)
433  return additional_socket_config_ != NULL ? *additional_socket_config_ : *default_instance_->additional_socket_config_;
434 }
435 inline ::goby::common::protobuf::ZeroMQServiceConfig* AppBaseConfig::mutable_additional_socket_config() {
436  set_has_additional_socket_config();
437  if (additional_socket_config_ == NULL) additional_socket_config_ = new ::goby::common::protobuf::ZeroMQServiceConfig;
438  // @@protoc_insertion_point(field_mutable:AppBaseConfig.additional_socket_config)
439  return additional_socket_config_;
440 }
441 inline ::goby::common::protobuf::ZeroMQServiceConfig* AppBaseConfig::release_additional_socket_config() {
442  clear_has_additional_socket_config();
443  ::goby::common::protobuf::ZeroMQServiceConfig* temp = additional_socket_config_;
444  additional_socket_config_ = NULL;
445  return temp;
446 }
447 inline void AppBaseConfig::set_allocated_additional_socket_config(::goby::common::protobuf::ZeroMQServiceConfig* additional_socket_config) {
448  delete additional_socket_config_;
449  additional_socket_config_ = additional_socket_config;
450  if (additional_socket_config) {
451  set_has_additional_socket_config();
452  } else {
453  clear_has_additional_socket_config();
454  }
455  // @@protoc_insertion_point(field_set_allocated:AppBaseConfig.additional_socket_config)
456 }
457 
458 // optional .goby.common.protobuf.GLogConfig glog_config = 11;
459 inline bool AppBaseConfig::has_glog_config() const {
460  return (_has_bits_[0] & 0x00000020u) != 0;
461 }
462 inline void AppBaseConfig::set_has_glog_config() {
463  _has_bits_[0] |= 0x00000020u;
464 }
465 inline void AppBaseConfig::clear_has_glog_config() {
466  _has_bits_[0] &= ~0x00000020u;
467 }
468 inline void AppBaseConfig::clear_glog_config() {
469  if (glog_config_ != NULL) glog_config_->::goby::common::protobuf::GLogConfig::Clear();
470  clear_has_glog_config();
471 }
472 inline const ::goby::common::protobuf::GLogConfig& AppBaseConfig::glog_config() const {
473  // @@protoc_insertion_point(field_get:AppBaseConfig.glog_config)
474  return glog_config_ != NULL ? *glog_config_ : *default_instance_->glog_config_;
475 }
476 inline ::goby::common::protobuf::GLogConfig* AppBaseConfig::mutable_glog_config() {
477  set_has_glog_config();
478  if (glog_config_ == NULL) glog_config_ = new ::goby::common::protobuf::GLogConfig;
479  // @@protoc_insertion_point(field_mutable:AppBaseConfig.glog_config)
480  return glog_config_;
481 }
482 inline ::goby::common::protobuf::GLogConfig* AppBaseConfig::release_glog_config() {
483  clear_has_glog_config();
484  ::goby::common::protobuf::GLogConfig* temp = glog_config_;
485  glog_config_ = NULL;
486  return temp;
487 }
488 inline void AppBaseConfig::set_allocated_glog_config(::goby::common::protobuf::GLogConfig* glog_config) {
489  delete glog_config_;
490  glog_config_ = glog_config;
491  if (glog_config) {
492  set_has_glog_config();
493  } else {
494  clear_has_glog_config();
495  }
496  // @@protoc_insertion_point(field_set_allocated:AppBaseConfig.glog_config)
497 }
498 
499 
500 // @@protoc_insertion_point(namespace_scope)
501 
502 #ifndef SWIG
503 namespace google {
504 namespace protobuf {
505 
506 
507 } // namespace google
508 } // namespace protobuf
509 #endif // SWIG
510 
511 // @@protoc_insertion_point(global_scope)
512 
513 #endif // PROTOBUF_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto__INCLUDED