4 #ifndef PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_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/acomms/protobuf/driver_base.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_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
42 void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
43 void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
45 class MoshRelayConfig;
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_ip_address()
const;
113 inline void clear_ip_address();
114 static const int kIpAddressFieldNumber = 2;
115 inline const ::std::string& ip_address()
const;
116 inline void set_ip_address(const ::std::string& value);
117 inline void set_ip_address(
const char* value);
118 inline void set_ip_address(
const char* value,
size_t size);
119 inline ::std::string* mutable_ip_address();
120 inline ::std::string* release_ip_address();
121 inline void set_allocated_ip_address(::std::string* ip_address);
124 inline bool has_udp_port()
const;
125 inline void clear_udp_port();
126 static const int kUdpPortFieldNumber = 3;
127 inline ::google::protobuf::uint32 udp_port()
const;
128 inline void set_udp_port(::google::protobuf::uint32 value);
131 inline bool has_bind()
const;
132 inline void clear_bind();
133 static const int kBindFieldNumber = 4;
134 inline bool bind()
const;
135 inline void set_bind(
bool value);
138 inline bool has_src_modem_id()
const;
139 inline void clear_src_modem_id();
140 static const int kSrcModemIdFieldNumber = 5;
141 inline ::google::protobuf::uint32 src_modem_id()
const;
142 inline void set_src_modem_id(::google::protobuf::uint32 value);
145 inline bool has_dest_modem_id()
const;
146 inline void clear_dest_modem_id();
147 static const int kDestModemIdFieldNumber = 6;
148 inline ::google::protobuf::uint32 dest_modem_id()
const;
149 inline void set_dest_modem_id(::google::protobuf::uint32 value);
153 inline void set_has_base();
154 inline void clear_has_base();
155 inline void set_has_ip_address();
156 inline void clear_has_ip_address();
157 inline void set_has_udp_port();
158 inline void clear_has_udp_port();
159 inline void set_has_bind();
160 inline void clear_has_bind();
161 inline void set_has_src_modem_id();
162 inline void clear_has_src_modem_id();
163 inline void set_has_dest_modem_id();
164 inline void clear_has_dest_modem_id();
166 ::google::protobuf::UnknownFieldSet _unknown_fields_;
168 ::google::protobuf::uint32 _has_bits_[1];
169 mutable int _cached_size_;
171 static ::std::string* _default_ip_address_;
172 ::std::string* ip_address_;
173 ::google::protobuf::uint32 udp_port_;
175 ::google::protobuf::uint32 src_modem_id_;
176 ::google::protobuf::uint32 dest_modem_id_;
177 friend void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
178 friend void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
179 friend void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
181 void InitAsDefaultInstance();
192 inline bool MoshRelayConfig::has_base()
const {
193 return (_has_bits_[0] & 0x00000001u) != 0;
195 inline void MoshRelayConfig::set_has_base() {
196 _has_bits_[0] |= 0x00000001u;
198 inline void MoshRelayConfig::clear_has_base() {
199 _has_bits_[0] &= ~0x00000001u;
201 inline void MoshRelayConfig::clear_base() {
202 if (base_ != NULL) base_->::AppBaseConfig::Clear();
205 inline const ::AppBaseConfig& MoshRelayConfig::base()
const {
207 return base_ != NULL ? *base_ : *default_instance_->base_;
209 inline ::AppBaseConfig* MoshRelayConfig::mutable_base() {
211 if (base_ == NULL) base_ = new ::AppBaseConfig;
215 inline ::AppBaseConfig* MoshRelayConfig::release_base() {
221 inline void MoshRelayConfig::set_allocated_base(::
AppBaseConfig* base) {
233 inline bool MoshRelayConfig::has_ip_address()
const {
234 return (_has_bits_[0] & 0x00000002u) != 0;
236 inline void MoshRelayConfig::set_has_ip_address() {
237 _has_bits_[0] |= 0x00000002u;
239 inline void MoshRelayConfig::clear_has_ip_address() {
240 _has_bits_[0] &= ~0x00000002u;
242 inline void MoshRelayConfig::clear_ip_address() {
243 if (ip_address_ != _default_ip_address_) {
244 ip_address_->assign(*_default_ip_address_);
246 clear_has_ip_address();
248 inline const ::std::string& MoshRelayConfig::ip_address()
const {
252 inline void MoshRelayConfig::set_ip_address(const ::std::string& value) {
253 set_has_ip_address();
254 if (ip_address_ == _default_ip_address_) {
255 ip_address_ = new ::std::string;
257 ip_address_->assign(value);
260 inline void MoshRelayConfig::set_ip_address(
const char* value) {
261 set_has_ip_address();
262 if (ip_address_ == _default_ip_address_) {
263 ip_address_ = new ::std::string;
265 ip_address_->assign(value);
268 inline void MoshRelayConfig::set_ip_address(
const char* value,
size_t size) {
269 set_has_ip_address();
270 if (ip_address_ == _default_ip_address_) {
271 ip_address_ = new ::std::string;
273 ip_address_->assign(reinterpret_cast<const char*>(value), size);
276 inline ::std::string* MoshRelayConfig::mutable_ip_address() {
277 set_has_ip_address();
278 if (ip_address_ == _default_ip_address_) {
279 ip_address_ = new ::std::string(*_default_ip_address_);
284 inline ::std::string* MoshRelayConfig::release_ip_address() {
285 clear_has_ip_address();
286 if (ip_address_ == _default_ip_address_) {
289 ::std::string* temp = ip_address_;
290 ip_address_ =
const_cast< ::std::string*
>(_default_ip_address_);
294 inline void MoshRelayConfig::set_allocated_ip_address(::std::string* ip_address) {
295 if (ip_address_ != _default_ip_address_) {
299 set_has_ip_address();
300 ip_address_ = ip_address;
302 clear_has_ip_address();
303 ip_address_ =
const_cast< ::std::string*
>(_default_ip_address_);
309 inline bool MoshRelayConfig::has_udp_port()
const {
310 return (_has_bits_[0] & 0x00000004u) != 0;
312 inline void MoshRelayConfig::set_has_udp_port() {
313 _has_bits_[0] |= 0x00000004u;
315 inline void MoshRelayConfig::clear_has_udp_port() {
316 _has_bits_[0] &= ~0x00000004u;
318 inline void MoshRelayConfig::clear_udp_port() {
320 clear_has_udp_port();
322 inline ::google::protobuf::uint32 MoshRelayConfig::udp_port()
const {
326 inline void MoshRelayConfig::set_udp_port(::google::protobuf::uint32 value) {
333 inline bool MoshRelayConfig::has_bind()
const {
334 return (_has_bits_[0] & 0x00000008u) != 0;
336 inline void MoshRelayConfig::set_has_bind() {
337 _has_bits_[0] |= 0x00000008u;
339 inline void MoshRelayConfig::clear_has_bind() {
340 _has_bits_[0] &= ~0x00000008u;
342 inline void MoshRelayConfig::clear_bind() {
346 inline bool MoshRelayConfig::bind()
const {
350 inline void MoshRelayConfig::set_bind(
bool value) {
357 inline bool MoshRelayConfig::has_src_modem_id()
const {
358 return (_has_bits_[0] & 0x00000010u) != 0;
360 inline void MoshRelayConfig::set_has_src_modem_id() {
361 _has_bits_[0] |= 0x00000010u;
363 inline void MoshRelayConfig::clear_has_src_modem_id() {
364 _has_bits_[0] &= ~0x00000010u;
366 inline void MoshRelayConfig::clear_src_modem_id() {
368 clear_has_src_modem_id();
370 inline ::google::protobuf::uint32 MoshRelayConfig::src_modem_id()
const {
372 return src_modem_id_;
374 inline void MoshRelayConfig::set_src_modem_id(::google::protobuf::uint32 value) {
375 set_has_src_modem_id();
376 src_modem_id_ = value;
381 inline bool MoshRelayConfig::has_dest_modem_id()
const {
382 return (_has_bits_[0] & 0x00000020u) != 0;
384 inline void MoshRelayConfig::set_has_dest_modem_id() {
385 _has_bits_[0] |= 0x00000020u;
387 inline void MoshRelayConfig::clear_has_dest_modem_id() {
388 _has_bits_[0] &= ~0x00000020u;
390 inline void MoshRelayConfig::clear_dest_modem_id() {
392 clear_has_dest_modem_id();
394 inline ::google::protobuf::uint32 MoshRelayConfig::dest_modem_id()
const {
396 return dest_modem_id_;
398 inline void MoshRelayConfig::set_dest_modem_id(::google::protobuf::uint32 value) {
399 set_has_dest_modem_id();
400 dest_modem_id_ = value;
422 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.