4 #ifndef PROTOBUF_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_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/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include "goby/common/protobuf/option_extensions.pb.h" 29 #include <boost/units/quantity.hpp> 30 #include <boost/units/absolute.hpp> 31 #include <boost/units/dimensionless_type.hpp> 32 #include <boost/units/make_scaled_unit.hpp> 40 void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto();
41 void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto();
42 void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto();
44 class ZeroMQServiceConfig;
45 class ZeroMQServiceConfig_Socket;
47 enum ZeroMQServiceConfig_Socket_SocketType {
48 ZeroMQServiceConfig_Socket_SocketType_PUBLISH = 1,
49 ZeroMQServiceConfig_Socket_SocketType_SUBSCRIBE = 2,
50 ZeroMQServiceConfig_Socket_SocketType_REPLY = 3,
51 ZeroMQServiceConfig_Socket_SocketType_REQUEST = 4
53 bool ZeroMQServiceConfig_Socket_SocketType_IsValid(
int value);
54 const ZeroMQServiceConfig_Socket_SocketType ZeroMQServiceConfig_Socket_SocketType_SocketType_MIN = ZeroMQServiceConfig_Socket_SocketType_PUBLISH;
55 const ZeroMQServiceConfig_Socket_SocketType ZeroMQServiceConfig_Socket_SocketType_SocketType_MAX = ZeroMQServiceConfig_Socket_SocketType_REQUEST;
56 const int ZeroMQServiceConfig_Socket_SocketType_SocketType_ARRAYSIZE = ZeroMQServiceConfig_Socket_SocketType_SocketType_MAX + 1;
58 const ::google::protobuf::EnumDescriptor* ZeroMQServiceConfig_Socket_SocketType_descriptor();
59 inline const ::std::string& ZeroMQServiceConfig_Socket_SocketType_Name(ZeroMQServiceConfig_Socket_SocketType value) {
60 return ::google::protobuf::internal::NameOfEnum(
61 ZeroMQServiceConfig_Socket_SocketType_descriptor(), value);
63 inline bool ZeroMQServiceConfig_Socket_SocketType_Parse(
64 const ::std::string& name, ZeroMQServiceConfig_Socket_SocketType* value) {
65 return ::google::protobuf::internal::ParseNamedEnum<ZeroMQServiceConfig_Socket_SocketType>(
66 ZeroMQServiceConfig_Socket_SocketType_descriptor(), name, value);
68 enum ZeroMQServiceConfig_Socket_Transport {
69 ZeroMQServiceConfig_Socket_Transport_INPROC = 1,
70 ZeroMQServiceConfig_Socket_Transport_IPC = 2,
71 ZeroMQServiceConfig_Socket_Transport_TCP = 3,
72 ZeroMQServiceConfig_Socket_Transport_PGM = 4,
73 ZeroMQServiceConfig_Socket_Transport_EPGM = 5
75 bool ZeroMQServiceConfig_Socket_Transport_IsValid(
int value);
76 const ZeroMQServiceConfig_Socket_Transport ZeroMQServiceConfig_Socket_Transport_Transport_MIN = ZeroMQServiceConfig_Socket_Transport_INPROC;
77 const ZeroMQServiceConfig_Socket_Transport ZeroMQServiceConfig_Socket_Transport_Transport_MAX = ZeroMQServiceConfig_Socket_Transport_EPGM;
78 const int ZeroMQServiceConfig_Socket_Transport_Transport_ARRAYSIZE = ZeroMQServiceConfig_Socket_Transport_Transport_MAX + 1;
80 const ::google::protobuf::EnumDescriptor* ZeroMQServiceConfig_Socket_Transport_descriptor();
81 inline const ::std::string& ZeroMQServiceConfig_Socket_Transport_Name(ZeroMQServiceConfig_Socket_Transport value) {
82 return ::google::protobuf::internal::NameOfEnum(
83 ZeroMQServiceConfig_Socket_Transport_descriptor(), value);
85 inline bool ZeroMQServiceConfig_Socket_Transport_Parse(
86 const ::std::string& name, ZeroMQServiceConfig_Socket_Transport* value) {
87 return ::google::protobuf::internal::ParseNamedEnum<ZeroMQServiceConfig_Socket_Transport>(
88 ZeroMQServiceConfig_Socket_Transport_descriptor(), name, value);
90 enum ZeroMQServiceConfig_Socket_ConnectOrBind {
91 ZeroMQServiceConfig_Socket_ConnectOrBind_CONNECT = 1,
92 ZeroMQServiceConfig_Socket_ConnectOrBind_BIND = 2
94 bool ZeroMQServiceConfig_Socket_ConnectOrBind_IsValid(
int value);
95 const ZeroMQServiceConfig_Socket_ConnectOrBind ZeroMQServiceConfig_Socket_ConnectOrBind_ConnectOrBind_MIN = ZeroMQServiceConfig_Socket_ConnectOrBind_CONNECT;
96 const ZeroMQServiceConfig_Socket_ConnectOrBind ZeroMQServiceConfig_Socket_ConnectOrBind_ConnectOrBind_MAX = ZeroMQServiceConfig_Socket_ConnectOrBind_BIND;
97 const int ZeroMQServiceConfig_Socket_ConnectOrBind_ConnectOrBind_ARRAYSIZE = ZeroMQServiceConfig_Socket_ConnectOrBind_ConnectOrBind_MAX + 1;
99 const ::google::protobuf::EnumDescriptor* ZeroMQServiceConfig_Socket_ConnectOrBind_descriptor();
100 inline const ::std::string& ZeroMQServiceConfig_Socket_ConnectOrBind_Name(ZeroMQServiceConfig_Socket_ConnectOrBind value) {
101 return ::google::protobuf::internal::NameOfEnum(
102 ZeroMQServiceConfig_Socket_ConnectOrBind_descriptor(), value);
104 inline bool ZeroMQServiceConfig_Socket_ConnectOrBind_Parse(
105 const ::std::string& name, ZeroMQServiceConfig_Socket_ConnectOrBind* value) {
106 return ::google::protobuf::internal::ParseNamedEnum<ZeroMQServiceConfig_Socket_ConnectOrBind>(
107 ZeroMQServiceConfig_Socket_ConnectOrBind_descriptor(), name, value);
123 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
124 return _unknown_fields_;
127 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
128 return &_unknown_fields_;
131 static const ::google::protobuf::Descriptor* descriptor();
139 void CopyFrom(const ::google::protobuf::Message& from);
140 void MergeFrom(const ::google::protobuf::Message& from);
144 bool IsInitialized()
const;
146 int ByteSize()
const;
147 bool MergePartialFromCodedStream(
148 ::google::protobuf::io::CodedInputStream* input);
149 void SerializeWithCachedSizes(
150 ::google::protobuf::io::CodedOutputStream* output)
const;
151 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
152 int GetCachedSize()
const {
return _cached_size_; }
156 void SetCachedSize(
int size)
const;
158 ::google::protobuf::Metadata GetMetadata()
const;
162 typedef ZeroMQServiceConfig_Socket_SocketType SocketType;
163 static const SocketType PUBLISH = ZeroMQServiceConfig_Socket_SocketType_PUBLISH;
164 static const SocketType SUBSCRIBE = ZeroMQServiceConfig_Socket_SocketType_SUBSCRIBE;
165 static const SocketType REPLY = ZeroMQServiceConfig_Socket_SocketType_REPLY;
166 static const SocketType REQUEST = ZeroMQServiceConfig_Socket_SocketType_REQUEST;
167 static inline bool SocketType_IsValid(
int value) {
168 return ZeroMQServiceConfig_Socket_SocketType_IsValid(value);
170 static const SocketType SocketType_MIN =
171 ZeroMQServiceConfig_Socket_SocketType_SocketType_MIN;
172 static const SocketType SocketType_MAX =
173 ZeroMQServiceConfig_Socket_SocketType_SocketType_MAX;
174 static const int SocketType_ARRAYSIZE =
175 ZeroMQServiceConfig_Socket_SocketType_SocketType_ARRAYSIZE;
176 static inline const ::google::protobuf::EnumDescriptor*
177 SocketType_descriptor() {
178 return ZeroMQServiceConfig_Socket_SocketType_descriptor();
180 static inline const ::std::string& SocketType_Name(SocketType value) {
181 return ZeroMQServiceConfig_Socket_SocketType_Name(value);
183 static inline bool SocketType_Parse(const ::std::string& name,
185 return ZeroMQServiceConfig_Socket_SocketType_Parse(name, value);
188 typedef ZeroMQServiceConfig_Socket_Transport Transport;
189 static const Transport INPROC = ZeroMQServiceConfig_Socket_Transport_INPROC;
190 static const Transport IPC = ZeroMQServiceConfig_Socket_Transport_IPC;
191 static const Transport TCP = ZeroMQServiceConfig_Socket_Transport_TCP;
192 static const Transport PGM = ZeroMQServiceConfig_Socket_Transport_PGM;
193 static const Transport EPGM = ZeroMQServiceConfig_Socket_Transport_EPGM;
194 static inline bool Transport_IsValid(
int value) {
195 return ZeroMQServiceConfig_Socket_Transport_IsValid(value);
197 static const Transport Transport_MIN =
198 ZeroMQServiceConfig_Socket_Transport_Transport_MIN;
199 static const Transport Transport_MAX =
200 ZeroMQServiceConfig_Socket_Transport_Transport_MAX;
201 static const int Transport_ARRAYSIZE =
202 ZeroMQServiceConfig_Socket_Transport_Transport_ARRAYSIZE;
203 static inline const ::google::protobuf::EnumDescriptor*
204 Transport_descriptor() {
205 return ZeroMQServiceConfig_Socket_Transport_descriptor();
207 static inline const ::std::string& Transport_Name(Transport value) {
208 return ZeroMQServiceConfig_Socket_Transport_Name(value);
210 static inline bool Transport_Parse(const ::std::string& name,
212 return ZeroMQServiceConfig_Socket_Transport_Parse(name, value);
215 typedef ZeroMQServiceConfig_Socket_ConnectOrBind ConnectOrBind;
216 static const ConnectOrBind CONNECT = ZeroMQServiceConfig_Socket_ConnectOrBind_CONNECT;
217 static const ConnectOrBind BIND = ZeroMQServiceConfig_Socket_ConnectOrBind_BIND;
218 static inline bool ConnectOrBind_IsValid(
int value) {
219 return ZeroMQServiceConfig_Socket_ConnectOrBind_IsValid(value);
221 static const ConnectOrBind ConnectOrBind_MIN =
222 ZeroMQServiceConfig_Socket_ConnectOrBind_ConnectOrBind_MIN;
223 static const ConnectOrBind ConnectOrBind_MAX =
224 ZeroMQServiceConfig_Socket_ConnectOrBind_ConnectOrBind_MAX;
225 static const int ConnectOrBind_ARRAYSIZE =
226 ZeroMQServiceConfig_Socket_ConnectOrBind_ConnectOrBind_ARRAYSIZE;
227 static inline const ::google::protobuf::EnumDescriptor*
228 ConnectOrBind_descriptor() {
229 return ZeroMQServiceConfig_Socket_ConnectOrBind_descriptor();
231 static inline const ::std::string& ConnectOrBind_Name(ConnectOrBind value) {
232 return ZeroMQServiceConfig_Socket_ConnectOrBind_Name(value);
234 static inline bool ConnectOrBind_Parse(const ::std::string& name,
235 ConnectOrBind* value) {
236 return ZeroMQServiceConfig_Socket_ConnectOrBind_Parse(name, value);
242 inline bool has_socket_type()
const;
243 inline void clear_socket_type();
244 static const int kSocketTypeFieldNumber = 1;
245 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType socket_type()
const;
246 inline void set_socket_type(::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType value);
249 inline bool has_socket_id()
const;
250 inline void clear_socket_id();
251 static const int kSocketIdFieldNumber = 2;
252 inline ::google::protobuf::uint32 socket_id()
const;
253 inline void set_socket_id(::google::protobuf::uint32 value);
256 inline bool has_transport()
const;
257 inline void clear_transport();
258 static const int kTransportFieldNumber = 3;
259 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport transport()
const;
260 inline void set_transport(::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport value);
263 inline bool has_connect_or_bind()
const;
264 inline void clear_connect_or_bind();
265 static const int kConnectOrBindFieldNumber = 4;
266 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind connect_or_bind()
const;
267 inline void set_connect_or_bind(::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind value);
270 inline bool has_ethernet_address()
const;
271 inline void clear_ethernet_address();
272 static const int kEthernetAddressFieldNumber = 5;
273 inline const ::std::string& ethernet_address()
const;
274 inline void set_ethernet_address(const ::std::string& value);
275 inline void set_ethernet_address(
const char* value);
276 inline void set_ethernet_address(
const char* value,
size_t size);
277 inline ::std::string* mutable_ethernet_address();
278 inline ::std::string* release_ethernet_address();
279 inline void set_allocated_ethernet_address(::std::string* ethernet_address);
282 inline bool has_multicast_address()
const;
283 inline void clear_multicast_address();
284 static const int kMulticastAddressFieldNumber = 6;
285 inline const ::std::string& multicast_address()
const;
286 inline void set_multicast_address(const ::std::string& value);
287 inline void set_multicast_address(
const char* value);
288 inline void set_multicast_address(
const char* value,
size_t size);
289 inline ::std::string* mutable_multicast_address();
290 inline ::std::string* release_multicast_address();
291 inline void set_allocated_multicast_address(::std::string* multicast_address);
294 inline bool has_ethernet_port()
const;
295 inline void clear_ethernet_port();
296 static const int kEthernetPortFieldNumber = 7;
297 inline ::google::protobuf::uint32 ethernet_port()
const;
298 inline void set_ethernet_port(::google::protobuf::uint32 value);
301 inline bool has_socket_name()
const;
302 inline void clear_socket_name();
303 static const int kSocketNameFieldNumber = 8;
304 inline const ::std::string& socket_name()
const;
305 inline void set_socket_name(const ::std::string& value);
306 inline void set_socket_name(
const char* value);
307 inline void set_socket_name(
const char* value,
size_t size);
308 inline ::std::string* mutable_socket_name();
309 inline ::std::string* release_socket_name();
310 inline void set_allocated_socket_name(::std::string* socket_name);
314 inline void set_has_socket_type();
315 inline void clear_has_socket_type();
316 inline void set_has_socket_id();
317 inline void clear_has_socket_id();
318 inline void set_has_transport();
319 inline void clear_has_transport();
320 inline void set_has_connect_or_bind();
321 inline void clear_has_connect_or_bind();
322 inline void set_has_ethernet_address();
323 inline void clear_has_ethernet_address();
324 inline void set_has_multicast_address();
325 inline void clear_has_multicast_address();
326 inline void set_has_ethernet_port();
327 inline void clear_has_ethernet_port();
328 inline void set_has_socket_name();
329 inline void clear_has_socket_name();
331 ::google::protobuf::UnknownFieldSet _unknown_fields_;
333 ::google::protobuf::uint32 _has_bits_[1];
334 mutable int _cached_size_;
336 ::google::protobuf::uint32 socket_id_;
338 int connect_or_bind_;
339 static ::std::string* _default_ethernet_address_;
340 ::std::string* ethernet_address_;
341 static ::std::string* _default_multicast_address_;
342 ::std::string* multicast_address_;
343 ::std::string* socket_name_;
344 ::google::protobuf::uint32 ethernet_port_;
345 friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto();
346 friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto();
347 friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto();
349 void InitAsDefaultInstance();
366 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
367 return _unknown_fields_;
370 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
371 return &_unknown_fields_;
374 static const ::google::protobuf::Descriptor* descriptor();
382 void CopyFrom(const ::google::protobuf::Message& from);
383 void MergeFrom(const ::google::protobuf::Message& from);
387 bool IsInitialized()
const;
389 int ByteSize()
const;
390 bool MergePartialFromCodedStream(
391 ::google::protobuf::io::CodedInputStream* input);
392 void SerializeWithCachedSizes(
393 ::google::protobuf::io::CodedOutputStream* output)
const;
394 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
395 int GetCachedSize()
const {
return _cached_size_; }
399 void SetCachedSize(
int size)
const;
401 ::google::protobuf::Metadata GetMetadata()
const;
410 inline int socket_size()
const;
411 inline void clear_socket();
412 static const int kSocketFieldNumber = 1;
413 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& socket(
int index)
const;
414 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* mutable_socket(
int index);
415 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* add_socket();
416 inline const ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::ZeroMQServiceConfig_Socket >&
418 inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::ZeroMQServiceConfig_Socket >*
424 ::google::protobuf::UnknownFieldSet _unknown_fields_;
426 ::google::protobuf::uint32 _has_bits_[1];
427 mutable int _cached_size_;
428 ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::ZeroMQServiceConfig_Socket > socket_;
429 friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto();
430 friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto();
431 friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto();
433 void InitAsDefaultInstance();
444 inline bool ZeroMQServiceConfig_Socket::has_socket_type()
const {
445 return (_has_bits_[0] & 0x00000001u) != 0;
447 inline void ZeroMQServiceConfig_Socket::set_has_socket_type() {
448 _has_bits_[0] |= 0x00000001u;
450 inline void ZeroMQServiceConfig_Socket::clear_has_socket_type() {
451 _has_bits_[0] &= ~0x00000001u;
453 inline void ZeroMQServiceConfig_Socket::clear_socket_type() {
455 clear_has_socket_type();
457 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType ZeroMQServiceConfig_Socket::socket_type()
const {
459 return static_cast< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType
>(socket_type_);
461 inline void ZeroMQServiceConfig_Socket::set_socket_type(::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType value) {
462 assert(::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType_IsValid(value));
463 set_has_socket_type();
464 socket_type_ = value;
469 inline bool ZeroMQServiceConfig_Socket::has_socket_id()
const {
470 return (_has_bits_[0] & 0x00000002u) != 0;
472 inline void ZeroMQServiceConfig_Socket::set_has_socket_id() {
473 _has_bits_[0] |= 0x00000002u;
475 inline void ZeroMQServiceConfig_Socket::clear_has_socket_id() {
476 _has_bits_[0] &= ~0x00000002u;
478 inline void ZeroMQServiceConfig_Socket::clear_socket_id() {
480 clear_has_socket_id();
482 inline ::google::protobuf::uint32 ZeroMQServiceConfig_Socket::socket_id()
const {
486 inline void ZeroMQServiceConfig_Socket::set_socket_id(::google::protobuf::uint32 value) {
493 inline bool ZeroMQServiceConfig_Socket::has_transport()
const {
494 return (_has_bits_[0] & 0x00000004u) != 0;
496 inline void ZeroMQServiceConfig_Socket::set_has_transport() {
497 _has_bits_[0] |= 0x00000004u;
499 inline void ZeroMQServiceConfig_Socket::clear_has_transport() {
500 _has_bits_[0] &= ~0x00000004u;
502 inline void ZeroMQServiceConfig_Socket::clear_transport() {
504 clear_has_transport();
506 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport ZeroMQServiceConfig_Socket::transport()
const {
508 return static_cast< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport
>(transport_);
510 inline void ZeroMQServiceConfig_Socket::set_transport(::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport value) {
511 assert(::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport_IsValid(value));
518 inline bool ZeroMQServiceConfig_Socket::has_connect_or_bind()
const {
519 return (_has_bits_[0] & 0x00000008u) != 0;
521 inline void ZeroMQServiceConfig_Socket::set_has_connect_or_bind() {
522 _has_bits_[0] |= 0x00000008u;
524 inline void ZeroMQServiceConfig_Socket::clear_has_connect_or_bind() {
525 _has_bits_[0] &= ~0x00000008u;
527 inline void ZeroMQServiceConfig_Socket::clear_connect_or_bind() {
528 connect_or_bind_ = 1;
529 clear_has_connect_or_bind();
531 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind ZeroMQServiceConfig_Socket::connect_or_bind()
const {
533 return static_cast< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind
>(connect_or_bind_);
535 inline void ZeroMQServiceConfig_Socket::set_connect_or_bind(::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind value) {
536 assert(::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind_IsValid(value));
537 set_has_connect_or_bind();
538 connect_or_bind_ = value;
543 inline bool ZeroMQServiceConfig_Socket::has_ethernet_address()
const {
544 return (_has_bits_[0] & 0x00000010u) != 0;
546 inline void ZeroMQServiceConfig_Socket::set_has_ethernet_address() {
547 _has_bits_[0] |= 0x00000010u;
549 inline void ZeroMQServiceConfig_Socket::clear_has_ethernet_address() {
550 _has_bits_[0] &= ~0x00000010u;
552 inline void ZeroMQServiceConfig_Socket::clear_ethernet_address() {
553 if (ethernet_address_ != _default_ethernet_address_) {
554 ethernet_address_->assign(*_default_ethernet_address_);
556 clear_has_ethernet_address();
558 inline const ::std::string& ZeroMQServiceConfig_Socket::ethernet_address()
const {
560 return *ethernet_address_;
562 inline void ZeroMQServiceConfig_Socket::set_ethernet_address(const ::std::string& value) {
563 set_has_ethernet_address();
564 if (ethernet_address_ == _default_ethernet_address_) {
565 ethernet_address_ = new ::std::string;
567 ethernet_address_->assign(value);
570 inline void ZeroMQServiceConfig_Socket::set_ethernet_address(
const char* value) {
571 set_has_ethernet_address();
572 if (ethernet_address_ == _default_ethernet_address_) {
573 ethernet_address_ = new ::std::string;
575 ethernet_address_->assign(value);
578 inline void ZeroMQServiceConfig_Socket::set_ethernet_address(
const char* value,
size_t size) {
579 set_has_ethernet_address();
580 if (ethernet_address_ == _default_ethernet_address_) {
581 ethernet_address_ = new ::std::string;
583 ethernet_address_->assign(reinterpret_cast<const char*>(value), size);
586 inline ::std::string* ZeroMQServiceConfig_Socket::mutable_ethernet_address() {
587 set_has_ethernet_address();
588 if (ethernet_address_ == _default_ethernet_address_) {
589 ethernet_address_ = new ::std::string(*_default_ethernet_address_);
592 return ethernet_address_;
594 inline ::std::string* ZeroMQServiceConfig_Socket::release_ethernet_address() {
595 clear_has_ethernet_address();
596 if (ethernet_address_ == _default_ethernet_address_) {
599 ::std::string* temp = ethernet_address_;
600 ethernet_address_ =
const_cast< ::std::string*
>(_default_ethernet_address_);
604 inline void ZeroMQServiceConfig_Socket::set_allocated_ethernet_address(::std::string* ethernet_address) {
605 if (ethernet_address_ != _default_ethernet_address_) {
606 delete ethernet_address_;
608 if (ethernet_address) {
609 set_has_ethernet_address();
610 ethernet_address_ = ethernet_address;
612 clear_has_ethernet_address();
613 ethernet_address_ =
const_cast< ::std::string*
>(_default_ethernet_address_);
619 inline bool ZeroMQServiceConfig_Socket::has_multicast_address()
const {
620 return (_has_bits_[0] & 0x00000020u) != 0;
622 inline void ZeroMQServiceConfig_Socket::set_has_multicast_address() {
623 _has_bits_[0] |= 0x00000020u;
625 inline void ZeroMQServiceConfig_Socket::clear_has_multicast_address() {
626 _has_bits_[0] &= ~0x00000020u;
628 inline void ZeroMQServiceConfig_Socket::clear_multicast_address() {
629 if (multicast_address_ != _default_multicast_address_) {
630 multicast_address_->assign(*_default_multicast_address_);
632 clear_has_multicast_address();
634 inline const ::std::string& ZeroMQServiceConfig_Socket::multicast_address()
const {
636 return *multicast_address_;
638 inline void ZeroMQServiceConfig_Socket::set_multicast_address(const ::std::string& value) {
639 set_has_multicast_address();
640 if (multicast_address_ == _default_multicast_address_) {
641 multicast_address_ = new ::std::string;
643 multicast_address_->assign(value);
646 inline void ZeroMQServiceConfig_Socket::set_multicast_address(
const char* value) {
647 set_has_multicast_address();
648 if (multicast_address_ == _default_multicast_address_) {
649 multicast_address_ = new ::std::string;
651 multicast_address_->assign(value);
654 inline void ZeroMQServiceConfig_Socket::set_multicast_address(
const char* value,
size_t size) {
655 set_has_multicast_address();
656 if (multicast_address_ == _default_multicast_address_) {
657 multicast_address_ = new ::std::string;
659 multicast_address_->assign(reinterpret_cast<const char*>(value), size);
662 inline ::std::string* ZeroMQServiceConfig_Socket::mutable_multicast_address() {
663 set_has_multicast_address();
664 if (multicast_address_ == _default_multicast_address_) {
665 multicast_address_ = new ::std::string(*_default_multicast_address_);
668 return multicast_address_;
670 inline ::std::string* ZeroMQServiceConfig_Socket::release_multicast_address() {
671 clear_has_multicast_address();
672 if (multicast_address_ == _default_multicast_address_) {
675 ::std::string* temp = multicast_address_;
676 multicast_address_ =
const_cast< ::std::string*
>(_default_multicast_address_);
680 inline void ZeroMQServiceConfig_Socket::set_allocated_multicast_address(::std::string* multicast_address) {
681 if (multicast_address_ != _default_multicast_address_) {
682 delete multicast_address_;
684 if (multicast_address) {
685 set_has_multicast_address();
686 multicast_address_ = multicast_address;
688 clear_has_multicast_address();
689 multicast_address_ =
const_cast< ::std::string*
>(_default_multicast_address_);
695 inline bool ZeroMQServiceConfig_Socket::has_ethernet_port()
const {
696 return (_has_bits_[0] & 0x00000040u) != 0;
698 inline void ZeroMQServiceConfig_Socket::set_has_ethernet_port() {
699 _has_bits_[0] |= 0x00000040u;
701 inline void ZeroMQServiceConfig_Socket::clear_has_ethernet_port() {
702 _has_bits_[0] &= ~0x00000040u;
704 inline void ZeroMQServiceConfig_Socket::clear_ethernet_port() {
705 ethernet_port_ = 11142u;
706 clear_has_ethernet_port();
708 inline ::google::protobuf::uint32 ZeroMQServiceConfig_Socket::ethernet_port()
const {
710 return ethernet_port_;
712 inline void ZeroMQServiceConfig_Socket::set_ethernet_port(::google::protobuf::uint32 value) {
713 set_has_ethernet_port();
714 ethernet_port_ = value;
719 inline bool ZeroMQServiceConfig_Socket::has_socket_name()
const {
720 return (_has_bits_[0] & 0x00000080u) != 0;
722 inline void ZeroMQServiceConfig_Socket::set_has_socket_name() {
723 _has_bits_[0] |= 0x00000080u;
725 inline void ZeroMQServiceConfig_Socket::clear_has_socket_name() {
726 _has_bits_[0] &= ~0x00000080u;
728 inline void ZeroMQServiceConfig_Socket::clear_socket_name() {
729 if (socket_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
730 socket_name_->clear();
732 clear_has_socket_name();
734 inline const ::std::string& ZeroMQServiceConfig_Socket::socket_name()
const {
736 return *socket_name_;
738 inline void ZeroMQServiceConfig_Socket::set_socket_name(const ::std::string& value) {
739 set_has_socket_name();
740 if (socket_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
741 socket_name_ = new ::std::string;
743 socket_name_->assign(value);
746 inline void ZeroMQServiceConfig_Socket::set_socket_name(
const char* value) {
747 set_has_socket_name();
748 if (socket_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
749 socket_name_ = new ::std::string;
751 socket_name_->assign(value);
754 inline void ZeroMQServiceConfig_Socket::set_socket_name(
const char* value,
size_t size) {
755 set_has_socket_name();
756 if (socket_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
757 socket_name_ = new ::std::string;
759 socket_name_->assign(reinterpret_cast<const char*>(value), size);
762 inline ::std::string* ZeroMQServiceConfig_Socket::mutable_socket_name() {
763 set_has_socket_name();
764 if (socket_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
765 socket_name_ = new ::std::string;
770 inline ::std::string* ZeroMQServiceConfig_Socket::release_socket_name() {
771 clear_has_socket_name();
772 if (socket_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
775 ::std::string* temp = socket_name_;
776 socket_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
780 inline void ZeroMQServiceConfig_Socket::set_allocated_socket_name(::std::string* socket_name) {
781 if (socket_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
785 set_has_socket_name();
786 socket_name_ = socket_name;
788 clear_has_socket_name();
789 socket_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
799 inline int ZeroMQServiceConfig::socket_size()
const {
800 return socket_.size();
802 inline void ZeroMQServiceConfig::clear_socket() {
805 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& ZeroMQServiceConfig::socket(
int index)
const {
807 return socket_.Get(index);
809 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* ZeroMQServiceConfig::mutable_socket(
int index) {
811 return socket_.Mutable(index);
813 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* ZeroMQServiceConfig::add_socket() {
815 return socket_.Add();
817 inline const ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::ZeroMQServiceConfig_Socket >&
818 ZeroMQServiceConfig::socket()
const {
822 inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::ZeroMQServiceConfig_Socket >*
823 ZeroMQServiceConfig::mutable_socket() {
839 template <>
struct is_proto_enum< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType> : ::google::protobuf::internal::true_type {};
841 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType>() {
842 return ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType_descriptor();
844 template <>
struct is_proto_enum< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport> : ::google::protobuf::internal::true_type {};
846 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport>() {
847 return ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport_descriptor();
849 template <>
struct is_proto_enum< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind> : ::google::protobuf::internal::true_type {};
851 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind>() {
852 return ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind_descriptor();
861 #endif // PROTOBUF_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.