Goby v2
zero_mq_node_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/common/protobuf/zero_mq_node_config.proto
3 
4 #ifndef PROTOBUF_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_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/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>
33 // @@protoc_insertion_point(includes)
34 
35 namespace goby {
36 namespace common {
37 namespace protobuf {
38 
39 // Internal implementation detail -- do not call these.
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();
43 
44 class ZeroMQServiceConfig;
45 class ZeroMQServiceConfig_Socket;
46 
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
52 };
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;
57 
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);
62 }
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);
67 }
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
74 };
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;
79 
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);
84 }
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);
89 }
90 enum ZeroMQServiceConfig_Socket_ConnectOrBind {
91  ZeroMQServiceConfig_Socket_ConnectOrBind_CONNECT = 1,
92  ZeroMQServiceConfig_Socket_ConnectOrBind_BIND = 2
93 };
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;
98 
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);
103 }
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);
108 }
109 // ===================================================================
110 
111 class ZeroMQServiceConfig_Socket : public ::google::protobuf::Message {
112  public:
114  virtual ~ZeroMQServiceConfig_Socket();
115 
117 
118  inline ZeroMQServiceConfig_Socket& operator=(const ZeroMQServiceConfig_Socket& from) {
119  CopyFrom(from);
120  return *this;
121  }
122 
123  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
124  return _unknown_fields_;
125  }
126 
127  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
128  return &_unknown_fields_;
129  }
130 
131  static const ::google::protobuf::Descriptor* descriptor();
132  static const ZeroMQServiceConfig_Socket& default_instance();
133 
134  void Swap(ZeroMQServiceConfig_Socket* other);
135 
136  // implements Message ----------------------------------------------
137 
138  ZeroMQServiceConfig_Socket* New() const;
139  void CopyFrom(const ::google::protobuf::Message& from);
140  void MergeFrom(const ::google::protobuf::Message& from);
141  void CopyFrom(const ZeroMQServiceConfig_Socket& from);
142  void MergeFrom(const ZeroMQServiceConfig_Socket& from);
143  void Clear();
144  bool IsInitialized() const;
145 
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_; }
153  private:
154  void SharedCtor();
155  void SharedDtor();
156  void SetCachedSize(int size) const;
157  public:
158  ::google::protobuf::Metadata GetMetadata() const;
159 
160  // nested types ----------------------------------------------------
161 
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);
169  }
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();
179  }
180  static inline const ::std::string& SocketType_Name(SocketType value) {
181  return ZeroMQServiceConfig_Socket_SocketType_Name(value);
182  }
183  static inline bool SocketType_Parse(const ::std::string& name,
184  SocketType* value) {
185  return ZeroMQServiceConfig_Socket_SocketType_Parse(name, value);
186  }
187 
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);
196  }
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();
206  }
207  static inline const ::std::string& Transport_Name(Transport value) {
208  return ZeroMQServiceConfig_Socket_Transport_Name(value);
209  }
210  static inline bool Transport_Parse(const ::std::string& name,
211  Transport* value) {
212  return ZeroMQServiceConfig_Socket_Transport_Parse(name, value);
213  }
214 
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);
220  }
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();
230  }
231  static inline const ::std::string& ConnectOrBind_Name(ConnectOrBind value) {
232  return ZeroMQServiceConfig_Socket_ConnectOrBind_Name(value);
233  }
234  static inline bool ConnectOrBind_Parse(const ::std::string& name,
235  ConnectOrBind* value) {
236  return ZeroMQServiceConfig_Socket_ConnectOrBind_Parse(name, value);
237  }
238 
239  // accessors -------------------------------------------------------
240 
241  // required .goby.common.protobuf.ZeroMQServiceConfig.Socket.SocketType socket_type = 1;
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);
247 
248  // optional uint32 socket_id = 2 [default = 0];
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);
254 
255  // optional .goby.common.protobuf.ZeroMQServiceConfig.Socket.Transport transport = 3 [default = EPGM];
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);
261 
262  // optional .goby.common.protobuf.ZeroMQServiceConfig.Socket.ConnectOrBind connect_or_bind = 4 [default = CONNECT];
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);
268 
269  // optional string ethernet_address = 5 [default = "127.0.0.1"];
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);
280 
281  // optional string multicast_address = 6 [default = "239.255.7.15"];
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);
292 
293  // optional uint32 ethernet_port = 7 [default = 11142];
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);
299 
300  // optional string socket_name = 8;
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);
311 
312  // @@protoc_insertion_point(class_scope:goby.common.protobuf.ZeroMQServiceConfig.Socket)
313  private:
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();
330 
331  ::google::protobuf::UnknownFieldSet _unknown_fields_;
332 
333  ::google::protobuf::uint32 _has_bits_[1];
334  mutable int _cached_size_;
335  int socket_type_;
336  ::google::protobuf::uint32 socket_id_;
337  int transport_;
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();
348 
349  void InitAsDefaultInstance();
350  static ZeroMQServiceConfig_Socket* default_instance_;
351 };
352 // -------------------------------------------------------------------
353 
354 class ZeroMQServiceConfig : public ::google::protobuf::Message {
355  public:
357  virtual ~ZeroMQServiceConfig();
358 
360 
361  inline ZeroMQServiceConfig& operator=(const ZeroMQServiceConfig& from) {
362  CopyFrom(from);
363  return *this;
364  }
365 
366  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
367  return _unknown_fields_;
368  }
369 
370  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
371  return &_unknown_fields_;
372  }
373 
374  static const ::google::protobuf::Descriptor* descriptor();
375  static const ZeroMQServiceConfig& default_instance();
376 
377  void Swap(ZeroMQServiceConfig* other);
378 
379  // implements Message ----------------------------------------------
380 
381  ZeroMQServiceConfig* New() const;
382  void CopyFrom(const ::google::protobuf::Message& from);
383  void MergeFrom(const ::google::protobuf::Message& from);
384  void CopyFrom(const ZeroMQServiceConfig& from);
385  void MergeFrom(const ZeroMQServiceConfig& from);
386  void Clear();
387  bool IsInitialized() const;
388 
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_; }
396  private:
397  void SharedCtor();
398  void SharedDtor();
399  void SetCachedSize(int size) const;
400  public:
401  ::google::protobuf::Metadata GetMetadata() const;
402 
403  // nested types ----------------------------------------------------
404 
406 
407  // accessors -------------------------------------------------------
408 
409  // repeated .goby.common.protobuf.ZeroMQServiceConfig.Socket socket = 1;
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 >&
417  socket() const;
418  inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::ZeroMQServiceConfig_Socket >*
419  mutable_socket();
420 
421  // @@protoc_insertion_point(class_scope:goby.common.protobuf.ZeroMQServiceConfig)
422  private:
423 
424  ::google::protobuf::UnknownFieldSet _unknown_fields_;
425 
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();
432 
433  void InitAsDefaultInstance();
434  static ZeroMQServiceConfig* default_instance_;
435 };
436 // ===================================================================
437 
438 
439 // ===================================================================
440 
441 // ZeroMQServiceConfig_Socket
442 
443 // required .goby.common.protobuf.ZeroMQServiceConfig.Socket.SocketType socket_type = 1;
444 inline bool ZeroMQServiceConfig_Socket::has_socket_type() const {
445  return (_has_bits_[0] & 0x00000001u) != 0;
446 }
447 inline void ZeroMQServiceConfig_Socket::set_has_socket_type() {
448  _has_bits_[0] |= 0x00000001u;
449 }
450 inline void ZeroMQServiceConfig_Socket::clear_has_socket_type() {
451  _has_bits_[0] &= ~0x00000001u;
452 }
453 inline void ZeroMQServiceConfig_Socket::clear_socket_type() {
454  socket_type_ = 1;
455  clear_has_socket_type();
456 }
457 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType ZeroMQServiceConfig_Socket::socket_type() const {
458  // @@protoc_insertion_point(field_get:goby.common.protobuf.ZeroMQServiceConfig.Socket.socket_type)
459  return static_cast< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType >(socket_type_);
460 }
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;
465  // @@protoc_insertion_point(field_set:goby.common.protobuf.ZeroMQServiceConfig.Socket.socket_type)
466 }
467 
468 // optional uint32 socket_id = 2 [default = 0];
469 inline bool ZeroMQServiceConfig_Socket::has_socket_id() const {
470  return (_has_bits_[0] & 0x00000002u) != 0;
471 }
472 inline void ZeroMQServiceConfig_Socket::set_has_socket_id() {
473  _has_bits_[0] |= 0x00000002u;
474 }
475 inline void ZeroMQServiceConfig_Socket::clear_has_socket_id() {
476  _has_bits_[0] &= ~0x00000002u;
477 }
478 inline void ZeroMQServiceConfig_Socket::clear_socket_id() {
479  socket_id_ = 0u;
480  clear_has_socket_id();
481 }
482 inline ::google::protobuf::uint32 ZeroMQServiceConfig_Socket::socket_id() const {
483  // @@protoc_insertion_point(field_get:goby.common.protobuf.ZeroMQServiceConfig.Socket.socket_id)
484  return socket_id_;
485 }
486 inline void ZeroMQServiceConfig_Socket::set_socket_id(::google::protobuf::uint32 value) {
487  set_has_socket_id();
488  socket_id_ = value;
489  // @@protoc_insertion_point(field_set:goby.common.protobuf.ZeroMQServiceConfig.Socket.socket_id)
490 }
491 
492 // optional .goby.common.protobuf.ZeroMQServiceConfig.Socket.Transport transport = 3 [default = EPGM];
493 inline bool ZeroMQServiceConfig_Socket::has_transport() const {
494  return (_has_bits_[0] & 0x00000004u) != 0;
495 }
496 inline void ZeroMQServiceConfig_Socket::set_has_transport() {
497  _has_bits_[0] |= 0x00000004u;
498 }
499 inline void ZeroMQServiceConfig_Socket::clear_has_transport() {
500  _has_bits_[0] &= ~0x00000004u;
501 }
502 inline void ZeroMQServiceConfig_Socket::clear_transport() {
503  transport_ = 5;
504  clear_has_transport();
505 }
506 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport ZeroMQServiceConfig_Socket::transport() const {
507  // @@protoc_insertion_point(field_get:goby.common.protobuf.ZeroMQServiceConfig.Socket.transport)
508  return static_cast< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport >(transport_);
509 }
510 inline void ZeroMQServiceConfig_Socket::set_transport(::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport value) {
511  assert(::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport_IsValid(value));
512  set_has_transport();
513  transport_ = value;
514  // @@protoc_insertion_point(field_set:goby.common.protobuf.ZeroMQServiceConfig.Socket.transport)
515 }
516 
517 // optional .goby.common.protobuf.ZeroMQServiceConfig.Socket.ConnectOrBind connect_or_bind = 4 [default = CONNECT];
518 inline bool ZeroMQServiceConfig_Socket::has_connect_or_bind() const {
519  return (_has_bits_[0] & 0x00000008u) != 0;
520 }
521 inline void ZeroMQServiceConfig_Socket::set_has_connect_or_bind() {
522  _has_bits_[0] |= 0x00000008u;
523 }
524 inline void ZeroMQServiceConfig_Socket::clear_has_connect_or_bind() {
525  _has_bits_[0] &= ~0x00000008u;
526 }
527 inline void ZeroMQServiceConfig_Socket::clear_connect_or_bind() {
528  connect_or_bind_ = 1;
529  clear_has_connect_or_bind();
530 }
531 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind ZeroMQServiceConfig_Socket::connect_or_bind() const {
532  // @@protoc_insertion_point(field_get:goby.common.protobuf.ZeroMQServiceConfig.Socket.connect_or_bind)
533  return static_cast< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind >(connect_or_bind_);
534 }
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;
539  // @@protoc_insertion_point(field_set:goby.common.protobuf.ZeroMQServiceConfig.Socket.connect_or_bind)
540 }
541 
542 // optional string ethernet_address = 5 [default = "127.0.0.1"];
543 inline bool ZeroMQServiceConfig_Socket::has_ethernet_address() const {
544  return (_has_bits_[0] & 0x00000010u) != 0;
545 }
546 inline void ZeroMQServiceConfig_Socket::set_has_ethernet_address() {
547  _has_bits_[0] |= 0x00000010u;
548 }
549 inline void ZeroMQServiceConfig_Socket::clear_has_ethernet_address() {
550  _has_bits_[0] &= ~0x00000010u;
551 }
552 inline void ZeroMQServiceConfig_Socket::clear_ethernet_address() {
553  if (ethernet_address_ != _default_ethernet_address_) {
554  ethernet_address_->assign(*_default_ethernet_address_);
555  }
556  clear_has_ethernet_address();
557 }
558 inline const ::std::string& ZeroMQServiceConfig_Socket::ethernet_address() const {
559  // @@protoc_insertion_point(field_get:goby.common.protobuf.ZeroMQServiceConfig.Socket.ethernet_address)
560  return *ethernet_address_;
561 }
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;
566  }
567  ethernet_address_->assign(value);
568  // @@protoc_insertion_point(field_set:goby.common.protobuf.ZeroMQServiceConfig.Socket.ethernet_address)
569 }
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;
574  }
575  ethernet_address_->assign(value);
576  // @@protoc_insertion_point(field_set_char:goby.common.protobuf.ZeroMQServiceConfig.Socket.ethernet_address)
577 }
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;
582  }
583  ethernet_address_->assign(reinterpret_cast<const char*>(value), size);
584  // @@protoc_insertion_point(field_set_pointer:goby.common.protobuf.ZeroMQServiceConfig.Socket.ethernet_address)
585 }
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_);
590  }
591  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.ZeroMQServiceConfig.Socket.ethernet_address)
592  return ethernet_address_;
593 }
594 inline ::std::string* ZeroMQServiceConfig_Socket::release_ethernet_address() {
595  clear_has_ethernet_address();
596  if (ethernet_address_ == _default_ethernet_address_) {
597  return NULL;
598  } else {
599  ::std::string* temp = ethernet_address_;
600  ethernet_address_ = const_cast< ::std::string*>(_default_ethernet_address_);
601  return temp;
602  }
603 }
604 inline void ZeroMQServiceConfig_Socket::set_allocated_ethernet_address(::std::string* ethernet_address) {
605  if (ethernet_address_ != _default_ethernet_address_) {
606  delete ethernet_address_;
607  }
608  if (ethernet_address) {
609  set_has_ethernet_address();
610  ethernet_address_ = ethernet_address;
611  } else {
612  clear_has_ethernet_address();
613  ethernet_address_ = const_cast< ::std::string*>(_default_ethernet_address_);
614  }
615  // @@protoc_insertion_point(field_set_allocated:goby.common.protobuf.ZeroMQServiceConfig.Socket.ethernet_address)
616 }
617 
618 // optional string multicast_address = 6 [default = "239.255.7.15"];
619 inline bool ZeroMQServiceConfig_Socket::has_multicast_address() const {
620  return (_has_bits_[0] & 0x00000020u) != 0;
621 }
622 inline void ZeroMQServiceConfig_Socket::set_has_multicast_address() {
623  _has_bits_[0] |= 0x00000020u;
624 }
625 inline void ZeroMQServiceConfig_Socket::clear_has_multicast_address() {
626  _has_bits_[0] &= ~0x00000020u;
627 }
628 inline void ZeroMQServiceConfig_Socket::clear_multicast_address() {
629  if (multicast_address_ != _default_multicast_address_) {
630  multicast_address_->assign(*_default_multicast_address_);
631  }
632  clear_has_multicast_address();
633 }
634 inline const ::std::string& ZeroMQServiceConfig_Socket::multicast_address() const {
635  // @@protoc_insertion_point(field_get:goby.common.protobuf.ZeroMQServiceConfig.Socket.multicast_address)
636  return *multicast_address_;
637 }
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;
642  }
643  multicast_address_->assign(value);
644  // @@protoc_insertion_point(field_set:goby.common.protobuf.ZeroMQServiceConfig.Socket.multicast_address)
645 }
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;
650  }
651  multicast_address_->assign(value);
652  // @@protoc_insertion_point(field_set_char:goby.common.protobuf.ZeroMQServiceConfig.Socket.multicast_address)
653 }
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;
658  }
659  multicast_address_->assign(reinterpret_cast<const char*>(value), size);
660  // @@protoc_insertion_point(field_set_pointer:goby.common.protobuf.ZeroMQServiceConfig.Socket.multicast_address)
661 }
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_);
666  }
667  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.ZeroMQServiceConfig.Socket.multicast_address)
668  return multicast_address_;
669 }
670 inline ::std::string* ZeroMQServiceConfig_Socket::release_multicast_address() {
671  clear_has_multicast_address();
672  if (multicast_address_ == _default_multicast_address_) {
673  return NULL;
674  } else {
675  ::std::string* temp = multicast_address_;
676  multicast_address_ = const_cast< ::std::string*>(_default_multicast_address_);
677  return temp;
678  }
679 }
680 inline void ZeroMQServiceConfig_Socket::set_allocated_multicast_address(::std::string* multicast_address) {
681  if (multicast_address_ != _default_multicast_address_) {
682  delete multicast_address_;
683  }
684  if (multicast_address) {
685  set_has_multicast_address();
686  multicast_address_ = multicast_address;
687  } else {
688  clear_has_multicast_address();
689  multicast_address_ = const_cast< ::std::string*>(_default_multicast_address_);
690  }
691  // @@protoc_insertion_point(field_set_allocated:goby.common.protobuf.ZeroMQServiceConfig.Socket.multicast_address)
692 }
693 
694 // optional uint32 ethernet_port = 7 [default = 11142];
695 inline bool ZeroMQServiceConfig_Socket::has_ethernet_port() const {
696  return (_has_bits_[0] & 0x00000040u) != 0;
697 }
698 inline void ZeroMQServiceConfig_Socket::set_has_ethernet_port() {
699  _has_bits_[0] |= 0x00000040u;
700 }
701 inline void ZeroMQServiceConfig_Socket::clear_has_ethernet_port() {
702  _has_bits_[0] &= ~0x00000040u;
703 }
704 inline void ZeroMQServiceConfig_Socket::clear_ethernet_port() {
705  ethernet_port_ = 11142u;
706  clear_has_ethernet_port();
707 }
708 inline ::google::protobuf::uint32 ZeroMQServiceConfig_Socket::ethernet_port() const {
709  // @@protoc_insertion_point(field_get:goby.common.protobuf.ZeroMQServiceConfig.Socket.ethernet_port)
710  return ethernet_port_;
711 }
712 inline void ZeroMQServiceConfig_Socket::set_ethernet_port(::google::protobuf::uint32 value) {
713  set_has_ethernet_port();
714  ethernet_port_ = value;
715  // @@protoc_insertion_point(field_set:goby.common.protobuf.ZeroMQServiceConfig.Socket.ethernet_port)
716 }
717 
718 // optional string socket_name = 8;
719 inline bool ZeroMQServiceConfig_Socket::has_socket_name() const {
720  return (_has_bits_[0] & 0x00000080u) != 0;
721 }
722 inline void ZeroMQServiceConfig_Socket::set_has_socket_name() {
723  _has_bits_[0] |= 0x00000080u;
724 }
725 inline void ZeroMQServiceConfig_Socket::clear_has_socket_name() {
726  _has_bits_[0] &= ~0x00000080u;
727 }
728 inline void ZeroMQServiceConfig_Socket::clear_socket_name() {
729  if (socket_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
730  socket_name_->clear();
731  }
732  clear_has_socket_name();
733 }
734 inline const ::std::string& ZeroMQServiceConfig_Socket::socket_name() const {
735  // @@protoc_insertion_point(field_get:goby.common.protobuf.ZeroMQServiceConfig.Socket.socket_name)
736  return *socket_name_;
737 }
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;
742  }
743  socket_name_->assign(value);
744  // @@protoc_insertion_point(field_set:goby.common.protobuf.ZeroMQServiceConfig.Socket.socket_name)
745 }
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;
750  }
751  socket_name_->assign(value);
752  // @@protoc_insertion_point(field_set_char:goby.common.protobuf.ZeroMQServiceConfig.Socket.socket_name)
753 }
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;
758  }
759  socket_name_->assign(reinterpret_cast<const char*>(value), size);
760  // @@protoc_insertion_point(field_set_pointer:goby.common.protobuf.ZeroMQServiceConfig.Socket.socket_name)
761 }
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;
766  }
767  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.ZeroMQServiceConfig.Socket.socket_name)
768  return socket_name_;
769 }
770 inline ::std::string* ZeroMQServiceConfig_Socket::release_socket_name() {
771  clear_has_socket_name();
772  if (socket_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
773  return NULL;
774  } else {
775  ::std::string* temp = socket_name_;
776  socket_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
777  return temp;
778  }
779 }
780 inline void ZeroMQServiceConfig_Socket::set_allocated_socket_name(::std::string* socket_name) {
781  if (socket_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
782  delete socket_name_;
783  }
784  if (socket_name) {
785  set_has_socket_name();
786  socket_name_ = socket_name;
787  } else {
788  clear_has_socket_name();
789  socket_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
790  }
791  // @@protoc_insertion_point(field_set_allocated:goby.common.protobuf.ZeroMQServiceConfig.Socket.socket_name)
792 }
793 
794 // -------------------------------------------------------------------
795 
796 // ZeroMQServiceConfig
797 
798 // repeated .goby.common.protobuf.ZeroMQServiceConfig.Socket socket = 1;
799 inline int ZeroMQServiceConfig::socket_size() const {
800  return socket_.size();
801 }
802 inline void ZeroMQServiceConfig::clear_socket() {
803  socket_.Clear();
804 }
805 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& ZeroMQServiceConfig::socket(int index) const {
806  // @@protoc_insertion_point(field_get:goby.common.protobuf.ZeroMQServiceConfig.socket)
807  return socket_.Get(index);
808 }
809 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* ZeroMQServiceConfig::mutable_socket(int index) {
810  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.ZeroMQServiceConfig.socket)
811  return socket_.Mutable(index);
812 }
813 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* ZeroMQServiceConfig::add_socket() {
814  // @@protoc_insertion_point(field_add:goby.common.protobuf.ZeroMQServiceConfig.socket)
815  return socket_.Add();
816 }
817 inline const ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::ZeroMQServiceConfig_Socket >&
818 ZeroMQServiceConfig::socket() const {
819  // @@protoc_insertion_point(field_list:goby.common.protobuf.ZeroMQServiceConfig.socket)
820  return socket_;
821 }
822 inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::ZeroMQServiceConfig_Socket >*
823 ZeroMQServiceConfig::mutable_socket() {
824  // @@protoc_insertion_point(field_mutable_list:goby.common.protobuf.ZeroMQServiceConfig.socket)
825  return &socket_;
826 }
827 
828 
829 // @@protoc_insertion_point(namespace_scope)
830 
831 } // namespace protobuf
832 } // namespace common
833 } // namespace goby
834 
835 #ifndef SWIG
836 namespace google {
837 namespace protobuf {
838 
839 template <> struct is_proto_enum< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType> : ::google::protobuf::internal::true_type {};
840 template <>
841 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType>() {
842  return ::goby::common::protobuf::ZeroMQServiceConfig_Socket_SocketType_descriptor();
843 }
844 template <> struct is_proto_enum< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport> : ::google::protobuf::internal::true_type {};
845 template <>
846 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport>() {
847  return ::goby::common::protobuf::ZeroMQServiceConfig_Socket_Transport_descriptor();
848 }
849 template <> struct is_proto_enum< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind> : ::google::protobuf::internal::true_type {};
850 template <>
851 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind>() {
852  return ::goby::common::protobuf::ZeroMQServiceConfig_Socket_ConnectOrBind_descriptor();
853 }
854 
855 } // namespace google
856 } // namespace protobuf
857 #endif // SWIG
858 
859 // @@protoc_insertion_point(global_scope)
860 
861 #endif // PROTOBUF_goby_2fcommon_2fprotobuf_2fzero_5fmq_5fnode_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.