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 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/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> 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();
45 class GobyStoreServerConfig;
61 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
62 return _unknown_fields_;
65 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
66 return &_unknown_fields_;
69 static const ::google::protobuf::Descriptor* descriptor();
77 void CopyFrom(const ::google::protobuf::Message& from);
78 void MergeFrom(const ::google::protobuf::Message& from);
82 bool IsInitialized()
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_; }
94 void SetCachedSize(
int size)
const;
96 ::google::protobuf::Metadata GetMetadata()
const;
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();
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();
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);
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);
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();
155 ::google::protobuf::UnknownFieldSet _unknown_fields_;
157 ::google::protobuf::uint32 _has_bits_[1];
158 mutable int _cached_size_;
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();
168 void InitAsDefaultInstance();
179 inline bool GobyStoreServerConfig::has_base()
const {
180 return (_has_bits_[0] & 0x00000001u) != 0;
182 inline void GobyStoreServerConfig::set_has_base() {
183 _has_bits_[0] |= 0x00000001u;
185 inline void GobyStoreServerConfig::clear_has_base() {
186 _has_bits_[0] &= ~0x00000001u;
188 inline void GobyStoreServerConfig::clear_base() {
189 if (base_ != NULL) base_->::AppBaseConfig::Clear();
192 inline const ::AppBaseConfig& GobyStoreServerConfig::base()
const {
194 return base_ != NULL ? *base_ : *default_instance_->base_;
196 inline ::AppBaseConfig* GobyStoreServerConfig::mutable_base() {
198 if (base_ == NULL) base_ = new ::AppBaseConfig;
202 inline ::AppBaseConfig* GobyStoreServerConfig::release_base() {
208 inline void GobyStoreServerConfig::set_allocated_base(::
AppBaseConfig* base) {
220 inline bool GobyStoreServerConfig::has_reply_socket()
const {
221 return (_has_bits_[0] & 0x00000002u) != 0;
223 inline void GobyStoreServerConfig::set_has_reply_socket() {
224 _has_bits_[0] |= 0x00000002u;
226 inline void GobyStoreServerConfig::clear_has_reply_socket() {
227 _has_bits_[0] &= ~0x00000002u;
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();
233 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& GobyStoreServerConfig::reply_socket()
const {
235 return reply_socket_ != NULL ? *reply_socket_ : *default_instance_->reply_socket_;
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;
241 return reply_socket_;
243 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* GobyStoreServerConfig::release_reply_socket() {
244 clear_has_reply_socket();
246 reply_socket_ = NULL;
250 delete reply_socket_;
251 reply_socket_ = reply_socket;
253 set_has_reply_socket();
255 clear_has_reply_socket();
261 inline bool GobyStoreServerConfig::has_db_file_dir()
const {
262 return (_has_bits_[0] & 0x00000004u) != 0;
264 inline void GobyStoreServerConfig::set_has_db_file_dir() {
265 _has_bits_[0] |= 0x00000004u;
267 inline void GobyStoreServerConfig::clear_has_db_file_dir() {
268 _has_bits_[0] &= ~0x00000004u;
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_);
274 clear_has_db_file_dir();
276 inline const ::std::string& GobyStoreServerConfig::db_file_dir()
const {
278 return *db_file_dir_;
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;
285 db_file_dir_->assign(value);
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;
293 db_file_dir_->assign(value);
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;
301 db_file_dir_->assign(reinterpret_cast<const char*>(value), size);
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_);
312 inline ::std::string* GobyStoreServerConfig::release_db_file_dir() {
313 clear_has_db_file_dir();
314 if (db_file_dir_ == _default_db_file_dir_) {
317 ::std::string* temp = db_file_dir_;
318 db_file_dir_ =
const_cast< ::std::string*
>(_default_db_file_dir_);
322 inline void GobyStoreServerConfig::set_allocated_db_file_dir(::std::string* db_file_dir) {
323 if (db_file_dir_ != _default_db_file_dir_) {
327 set_has_db_file_dir();
328 db_file_dir_ = db_file_dir;
330 clear_has_db_file_dir();
331 db_file_dir_ =
const_cast< ::std::string*
>(_default_db_file_dir_);
337 inline bool GobyStoreServerConfig::has_db_file_name()
const {
338 return (_has_bits_[0] & 0x00000008u) != 0;
340 inline void GobyStoreServerConfig::set_has_db_file_name() {
341 _has_bits_[0] |= 0x00000008u;
343 inline void GobyStoreServerConfig::clear_has_db_file_name() {
344 _has_bits_[0] &= ~0x00000008u;
346 inline void GobyStoreServerConfig::clear_db_file_name() {
347 if (db_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
348 db_file_name_->clear();
350 clear_has_db_file_name();
352 inline const ::std::string& GobyStoreServerConfig::db_file_name()
const {
354 return *db_file_name_;
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;
361 db_file_name_->assign(value);
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;
369 db_file_name_->assign(value);
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;
377 db_file_name_->assign(reinterpret_cast<const char*>(value), size);
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;
386 return db_file_name_;
388 inline ::std::string* GobyStoreServerConfig::release_db_file_name() {
389 clear_has_db_file_name();
390 if (db_file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
393 ::std::string* temp = db_file_name_;
394 db_file_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
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_;
403 set_has_db_file_name();
404 db_file_name_ = db_file_name;
406 clear_has_db_file_name();
407 db_file_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
430 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5fstore_5fserver_2fgoby_5fstore_5fserver_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.