Goby v2
goby_store_server_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/apps/acomms/goby_store_server/goby_store_server_config.proto
3 
4 #ifndef PROTOBUF_goby_2fapps_2facomms_2fgoby_5fstore_5fserver_2fgoby_5fstore_5fserver_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fapps_2facomms_2fgoby_5fstore_5fserver_2fgoby_5fstore_5fserver_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/app_base_config.pb.h"
29 #include "goby/common/protobuf/zero_mq_node_config.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>
34 // @@protoc_insertion_point(includes)
35 
36 namespace goby {
37 namespace acomms {
38 namespace protobuf {
39 
40 // Internal implementation detail -- do not call these.
41 void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fstore_5fserver_2fgoby_5fstore_5fserver_5fconfig_2eproto();
42 void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fstore_5fserver_2fgoby_5fstore_5fserver_5fconfig_2eproto();
43 void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fstore_5fserver_2fgoby_5fstore_5fserver_5fconfig_2eproto();
44 
45 class GobyStoreServerConfig;
46 
47 // ===================================================================
48 
49 class GobyStoreServerConfig : public ::google::protobuf::Message {
50  public:
52  virtual ~GobyStoreServerConfig();
53 
55 
56  inline GobyStoreServerConfig& operator=(const GobyStoreServerConfig& from) {
57  CopyFrom(from);
58  return *this;
59  }
60 
61  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
62  return _unknown_fields_;
63  }
64 
65  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
66  return &_unknown_fields_;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const GobyStoreServerConfig& default_instance();
71 
72  void Swap(GobyStoreServerConfig* other);
73 
74  // implements Message ----------------------------------------------
75 
76  GobyStoreServerConfig* New() const;
77  void CopyFrom(const ::google::protobuf::Message& from);
78  void MergeFrom(const ::google::protobuf::Message& from);
79  void CopyFrom(const GobyStoreServerConfig& from);
80  void MergeFrom(const GobyStoreServerConfig& from);
81  void Clear();
82  bool IsInitialized() const;
83 
84  int ByteSize() const;
85  bool MergePartialFromCodedStream(
86  ::google::protobuf::io::CodedInputStream* input);
87  void SerializeWithCachedSizes(
88  ::google::protobuf::io::CodedOutputStream* output) const;
89  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
90  int GetCachedSize() const { return _cached_size_; }
91  private:
92  void SharedCtor();
93  void SharedDtor();
94  void SetCachedSize(int size) const;
95  public:
96  ::google::protobuf::Metadata GetMetadata() const;
97 
98  // nested types ----------------------------------------------------
99 
100  // accessors -------------------------------------------------------
101 
102  // optional .AppBaseConfig base = 1;
103  inline bool has_base() const;
104  inline void clear_base();
105  static const int kBaseFieldNumber = 1;
106  inline const ::AppBaseConfig& base() const;
107  inline ::AppBaseConfig* mutable_base();
108  inline ::AppBaseConfig* release_base();
109  inline void set_allocated_base(::AppBaseConfig* base);
110 
111  // required .goby.common.protobuf.ZeroMQServiceConfig.Socket reply_socket = 2;
112  inline bool has_reply_socket() const;
113  inline void clear_reply_socket();
114  static const int kReplySocketFieldNumber = 2;
115  inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& reply_socket() const;
116  inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* mutable_reply_socket();
117  inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* release_reply_socket();
118  inline void set_allocated_reply_socket(::goby::common::protobuf::ZeroMQServiceConfig_Socket* reply_socket);
119 
120  // optional string db_file_dir = 3 [default = "."];
121  inline bool has_db_file_dir() const;
122  inline void clear_db_file_dir();
123  static const int kDbFileDirFieldNumber = 3;
124  inline const ::std::string& db_file_dir() const;
125  inline void set_db_file_dir(const ::std::string& value);
126  inline void set_db_file_dir(const char* value);
127  inline void set_db_file_dir(const char* value, size_t size);
128  inline ::std::string* mutable_db_file_dir();
129  inline ::std::string* release_db_file_dir();
130  inline void set_allocated_db_file_dir(::std::string* db_file_dir);
131 
132  // optional string db_file_name = 4;
133  inline bool has_db_file_name() const;
134  inline void clear_db_file_name();
135  static const int kDbFileNameFieldNumber = 4;
136  inline const ::std::string& db_file_name() const;
137  inline void set_db_file_name(const ::std::string& value);
138  inline void set_db_file_name(const char* value);
139  inline void set_db_file_name(const char* value, size_t size);
140  inline ::std::string* mutable_db_file_name();
141  inline ::std::string* release_db_file_name();
142  inline void set_allocated_db_file_name(::std::string* db_file_name);
143 
144  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.GobyStoreServerConfig)
145  private:
146  inline void set_has_base();
147  inline void clear_has_base();
148  inline void set_has_reply_socket();
149  inline void clear_has_reply_socket();
150  inline void set_has_db_file_dir();
151  inline void clear_has_db_file_dir();
152  inline void set_has_db_file_name();
153  inline void clear_has_db_file_name();
154 
155  ::google::protobuf::UnknownFieldSet _unknown_fields_;
156 
157  ::google::protobuf::uint32 _has_bits_[1];
158  mutable int _cached_size_;
159  ::AppBaseConfig* base_;
161  static ::std::string* _default_db_file_dir_;
162  ::std::string* db_file_dir_;
163  ::std::string* db_file_name_;
164  friend void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fstore_5fserver_2fgoby_5fstore_5fserver_5fconfig_2eproto();
165  friend void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fstore_5fserver_2fgoby_5fstore_5fserver_5fconfig_2eproto();
166  friend void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fstore_5fserver_2fgoby_5fstore_5fserver_5fconfig_2eproto();
167 
168  void InitAsDefaultInstance();
169  static GobyStoreServerConfig* default_instance_;
170 };
171 // ===================================================================
172 
173 
174 // ===================================================================
175 
176 // GobyStoreServerConfig
177 
178 // optional .AppBaseConfig base = 1;
179 inline bool GobyStoreServerConfig::has_base() const {
180  return (_has_bits_[0] & 0x00000001u) != 0;
181 }
182 inline void GobyStoreServerConfig::set_has_base() {
183  _has_bits_[0] |= 0x00000001u;
184 }
185 inline void GobyStoreServerConfig::clear_has_base() {
186  _has_bits_[0] &= ~0x00000001u;
187 }
188 inline void GobyStoreServerConfig::clear_base() {
189  if (base_ != NULL) base_->::AppBaseConfig::Clear();
190  clear_has_base();
191 }
192 inline const ::AppBaseConfig& GobyStoreServerConfig::base() const {
193  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.GobyStoreServerConfig.base)
194  return base_ != NULL ? *base_ : *default_instance_->base_;
195 }
196 inline ::AppBaseConfig* GobyStoreServerConfig::mutable_base() {
197  set_has_base();
198  if (base_ == NULL) base_ = new ::AppBaseConfig;
199  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.GobyStoreServerConfig.base)
200  return base_;
201 }
202 inline ::AppBaseConfig* GobyStoreServerConfig::release_base() {
203  clear_has_base();
204  ::AppBaseConfig* temp = base_;
205  base_ = NULL;
206  return temp;
207 }
208 inline void GobyStoreServerConfig::set_allocated_base(::AppBaseConfig* base) {
209  delete base_;
210  base_ = base;
211  if (base) {
212  set_has_base();
213  } else {
214  clear_has_base();
215  }
216  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.GobyStoreServerConfig.base)
217 }
218 
219 // required .goby.common.protobuf.ZeroMQServiceConfig.Socket reply_socket = 2;
220 inline bool GobyStoreServerConfig::has_reply_socket() const {
221  return (_has_bits_[0] & 0x00000002u) != 0;
222 }
223 inline void GobyStoreServerConfig::set_has_reply_socket() {
224  _has_bits_[0] |= 0x00000002u;
225 }
226 inline void GobyStoreServerConfig::clear_has_reply_socket() {
227  _has_bits_[0] &= ~0x00000002u;
228 }
229 inline void GobyStoreServerConfig::clear_reply_socket() {
230  if (reply_socket_ != NULL) reply_socket_->::goby::common::protobuf::ZeroMQServiceConfig_Socket::Clear();
231  clear_has_reply_socket();
232 }
233 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& GobyStoreServerConfig::reply_socket() const {
234  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.GobyStoreServerConfig.reply_socket)
235  return reply_socket_ != NULL ? *reply_socket_ : *default_instance_->reply_socket_;
236 }
237 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* GobyStoreServerConfig::mutable_reply_socket() {
238  set_has_reply_socket();
239  if (reply_socket_ == NULL) reply_socket_ = new ::goby::common::protobuf::ZeroMQServiceConfig_Socket;
240  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.GobyStoreServerConfig.reply_socket)
241  return reply_socket_;
242 }
243 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* GobyStoreServerConfig::release_reply_socket() {
244  clear_has_reply_socket();
246  reply_socket_ = NULL;
247  return temp;
248 }
249 inline void GobyStoreServerConfig::set_allocated_reply_socket(::goby::common::protobuf::ZeroMQServiceConfig_Socket* reply_socket) {
250  delete reply_socket_;
251  reply_socket_ = reply_socket;
252  if (reply_socket) {
253  set_has_reply_socket();
254  } else {
255  clear_has_reply_socket();
256  }
257  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.GobyStoreServerConfig.reply_socket)
258 }
259 
260 // optional string db_file_dir = 3 [default = "."];
261 inline bool GobyStoreServerConfig::has_db_file_dir() const {
262  return (_has_bits_[0] & 0x00000004u) != 0;
263 }
264 inline void GobyStoreServerConfig::set_has_db_file_dir() {
265  _has_bits_[0] |= 0x00000004u;
266 }
267 inline void GobyStoreServerConfig::clear_has_db_file_dir() {
268  _has_bits_[0] &= ~0x00000004u;
269 }
270 inline void GobyStoreServerConfig::clear_db_file_dir() {
271  if (db_file_dir_ != _default_db_file_dir_) {
272  db_file_dir_->assign(*_default_db_file_dir_);
273  }
274  clear_has_db_file_dir();
275 }
276 inline const ::std::string& GobyStoreServerConfig::db_file_dir() const {
277  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.GobyStoreServerConfig.db_file_dir)
278  return *db_file_dir_;
279 }
280 inline void GobyStoreServerConfig::set_db_file_dir(const ::std::string& value) {
281  set_has_db_file_dir();
282  if (db_file_dir_ == _default_db_file_dir_) {
283  db_file_dir_ = new ::std::string;
284  }
285  db_file_dir_->assign(value);
286  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.GobyStoreServerConfig.db_file_dir)
287 }
288 inline void GobyStoreServerConfig::set_db_file_dir(const char* value) {
289  set_has_db_file_dir();
290  if (db_file_dir_ == _default_db_file_dir_) {
291  db_file_dir_ = new ::std::string;
292  }
293  db_file_dir_->assign(value);
294  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.GobyStoreServerConfig.db_file_dir)
295 }
296 inline void GobyStoreServerConfig::set_db_file_dir(const char* value, size_t size) {
297  set_has_db_file_dir();
298  if (db_file_dir_ == _default_db_file_dir_) {
299  db_file_dir_ = new ::std::string;
300  }
301  db_file_dir_->assign(reinterpret_cast<const char*>(value), size);
302  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.GobyStoreServerConfig.db_file_dir)
303 }
304 inline ::std::string* GobyStoreServerConfig::mutable_db_file_dir() {
305  set_has_db_file_dir();
306  if (db_file_dir_ == _default_db_file_dir_) {
307  db_file_dir_ = new ::std::string(*_default_db_file_dir_);
308  }
309  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.GobyStoreServerConfig.db_file_dir)
310  return db_file_dir_;
311 }
312 inline ::std::string* GobyStoreServerConfig::release_db_file_dir() {
313  clear_has_db_file_dir();
314  if (db_file_dir_ == _default_db_file_dir_) {
315  return NULL;
316  } else {
317  ::std::string* temp = db_file_dir_;
318  db_file_dir_ = const_cast< ::std::string*>(_default_db_file_dir_);
319  return temp;
320  }
321 }
322 inline void GobyStoreServerConfig::set_allocated_db_file_dir(::std::string* db_file_dir) {
323  if (db_file_dir_ != _default_db_file_dir_) {
324  delete db_file_dir_;
325  }
326  if (db_file_dir) {
327  set_has_db_file_dir();
328  db_file_dir_ = db_file_dir;
329  } else {
330  clear_has_db_file_dir();
331  db_file_dir_ = const_cast< ::std::string*>(_default_db_file_dir_);
332  }
333  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.GobyStoreServerConfig.db_file_dir)
334 }
335 
336 // optional string db_file_name = 4;
337 inline bool GobyStoreServerConfig::has_db_file_name() const {
338  return (_has_bits_[0] & 0x00000008u) != 0;
339 }
340 inline void GobyStoreServerConfig::set_has_db_file_name() {
341  _has_bits_[0] |= 0x00000008u;
342 }
343 inline void GobyStoreServerConfig::clear_has_db_file_name() {
344  _has_bits_[0] &= ~0x00000008u;
345 }
346 inline void GobyStoreServerConfig::clear_db_file_name() {
347  if (db_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
348  db_file_name_->clear();
349  }
350  clear_has_db_file_name();
351 }
352 inline const ::std::string& GobyStoreServerConfig::db_file_name() const {
353  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.GobyStoreServerConfig.db_file_name)
354  return *db_file_name_;
355 }
356 inline void GobyStoreServerConfig::set_db_file_name(const ::std::string& value) {
357  set_has_db_file_name();
358  if (db_file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
359  db_file_name_ = new ::std::string;
360  }
361  db_file_name_->assign(value);
362  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.GobyStoreServerConfig.db_file_name)
363 }
364 inline void GobyStoreServerConfig::set_db_file_name(const char* value) {
365  set_has_db_file_name();
366  if (db_file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
367  db_file_name_ = new ::std::string;
368  }
369  db_file_name_->assign(value);
370  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.GobyStoreServerConfig.db_file_name)
371 }
372 inline void GobyStoreServerConfig::set_db_file_name(const char* value, size_t size) {
373  set_has_db_file_name();
374  if (db_file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
375  db_file_name_ = new ::std::string;
376  }
377  db_file_name_->assign(reinterpret_cast<const char*>(value), size);
378  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.GobyStoreServerConfig.db_file_name)
379 }
380 inline ::std::string* GobyStoreServerConfig::mutable_db_file_name() {
381  set_has_db_file_name();
382  if (db_file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
383  db_file_name_ = new ::std::string;
384  }
385  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.GobyStoreServerConfig.db_file_name)
386  return db_file_name_;
387 }
388 inline ::std::string* GobyStoreServerConfig::release_db_file_name() {
389  clear_has_db_file_name();
390  if (db_file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
391  return NULL;
392  } else {
393  ::std::string* temp = db_file_name_;
394  db_file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
395  return temp;
396  }
397 }
398 inline void GobyStoreServerConfig::set_allocated_db_file_name(::std::string* db_file_name) {
399  if (db_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
400  delete db_file_name_;
401  }
402  if (db_file_name) {
403  set_has_db_file_name();
404  db_file_name_ = db_file_name;
405  } else {
406  clear_has_db_file_name();
407  db_file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
408  }
409  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.GobyStoreServerConfig.db_file_name)
410 }
411 
412 
413 // @@protoc_insertion_point(namespace_scope)
414 
415 } // namespace protobuf
416 } // namespace acomms
417 } // namespace goby
418 
419 #ifndef SWIG
420 namespace google {
421 namespace protobuf {
422 
423 
424 } // namespace google
425 } // namespace protobuf
426 #endif // SWIG
427 
428 // @@protoc_insertion_point(global_scope)
429 
430 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5fstore_5fserver_2fgoby_5fstore_5fserver_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.