Goby v2
pubsub_node_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/common/protobuf/pubsub_node_config.proto
3 
4 #ifndef PROTOBUF_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fcommon_2fprotobuf_2fpubsub_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/unknown_field_set.h>
27 #include "goby/common/protobuf/option_extensions.pb.h"
28 #include "goby/common/protobuf/zero_mq_node_config.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_2fpubsub_5fnode_5fconfig_2eproto();
41 void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto();
42 void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto();
43 
44 class PubSubSocketConfig;
45 
46 // ===================================================================
47 
48 class PubSubSocketConfig : public ::google::protobuf::Message {
49  public:
51  virtual ~PubSubSocketConfig();
52 
54 
55  inline PubSubSocketConfig& operator=(const PubSubSocketConfig& from) {
56  CopyFrom(from);
57  return *this;
58  }
59 
60  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
61  return _unknown_fields_;
62  }
63 
64  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65  return &_unknown_fields_;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const PubSubSocketConfig& default_instance();
70 
71  void Swap(PubSubSocketConfig* other);
72 
73  // implements Message ----------------------------------------------
74 
75  PubSubSocketConfig* New() const;
76  void CopyFrom(const ::google::protobuf::Message& from);
77  void MergeFrom(const ::google::protobuf::Message& from);
78  void CopyFrom(const PubSubSocketConfig& from);
79  void MergeFrom(const PubSubSocketConfig& from);
80  void Clear();
81  bool IsInitialized() const;
82 
83  int ByteSize() const;
84  bool MergePartialFromCodedStream(
85  ::google::protobuf::io::CodedInputStream* input);
86  void SerializeWithCachedSizes(
87  ::google::protobuf::io::CodedOutputStream* output) const;
88  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
89  int GetCachedSize() const { return _cached_size_; }
90  private:
91  void SharedCtor();
92  void SharedDtor();
93  void SetCachedSize(int size) const;
94  public:
95  ::google::protobuf::Metadata GetMetadata() const;
96 
97  // nested types ----------------------------------------------------
98 
99  // accessors -------------------------------------------------------
100 
101  // optional .goby.common.protobuf.ZeroMQServiceConfig.Socket publish_socket = 1;
102  inline bool has_publish_socket() const;
103  inline void clear_publish_socket();
104  static const int kPublishSocketFieldNumber = 1;
105  inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& publish_socket() const;
106  inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* mutable_publish_socket();
107  inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* release_publish_socket();
108  inline void set_allocated_publish_socket(::goby::common::protobuf::ZeroMQServiceConfig_Socket* publish_socket);
109 
110  // optional .goby.common.protobuf.ZeroMQServiceConfig.Socket subscribe_socket = 2;
111  inline bool has_subscribe_socket() const;
112  inline void clear_subscribe_socket();
113  static const int kSubscribeSocketFieldNumber = 2;
114  inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& subscribe_socket() const;
115  inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* mutable_subscribe_socket();
116  inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* release_subscribe_socket();
117  inline void set_allocated_subscribe_socket(::goby::common::protobuf::ZeroMQServiceConfig_Socket* subscribe_socket);
118 
119  // @@protoc_insertion_point(class_scope:goby.common.protobuf.PubSubSocketConfig)
120  private:
121  inline void set_has_publish_socket();
122  inline void clear_has_publish_socket();
123  inline void set_has_subscribe_socket();
124  inline void clear_has_subscribe_socket();
125 
126  ::google::protobuf::UnknownFieldSet _unknown_fields_;
127 
128  ::google::protobuf::uint32 _has_bits_[1];
129  mutable int _cached_size_;
132  friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto();
133  friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto();
134  friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto();
135 
136  void InitAsDefaultInstance();
137  static PubSubSocketConfig* default_instance_;
138 };
139 // ===================================================================
140 
141 
142 // ===================================================================
143 
144 // PubSubSocketConfig
145 
146 // optional .goby.common.protobuf.ZeroMQServiceConfig.Socket publish_socket = 1;
147 inline bool PubSubSocketConfig::has_publish_socket() const {
148  return (_has_bits_[0] & 0x00000001u) != 0;
149 }
150 inline void PubSubSocketConfig::set_has_publish_socket() {
151  _has_bits_[0] |= 0x00000001u;
152 }
153 inline void PubSubSocketConfig::clear_has_publish_socket() {
154  _has_bits_[0] &= ~0x00000001u;
155 }
156 inline void PubSubSocketConfig::clear_publish_socket() {
157  if (publish_socket_ != NULL) publish_socket_->::goby::common::protobuf::ZeroMQServiceConfig_Socket::Clear();
158  clear_has_publish_socket();
159 }
160 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& PubSubSocketConfig::publish_socket() const {
161  // @@protoc_insertion_point(field_get:goby.common.protobuf.PubSubSocketConfig.publish_socket)
162  return publish_socket_ != NULL ? *publish_socket_ : *default_instance_->publish_socket_;
163 }
164 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* PubSubSocketConfig::mutable_publish_socket() {
165  set_has_publish_socket();
166  if (publish_socket_ == NULL) publish_socket_ = new ::goby::common::protobuf::ZeroMQServiceConfig_Socket;
167  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.PubSubSocketConfig.publish_socket)
168  return publish_socket_;
169 }
170 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* PubSubSocketConfig::release_publish_socket() {
171  clear_has_publish_socket();
173  publish_socket_ = NULL;
174  return temp;
175 }
176 inline void PubSubSocketConfig::set_allocated_publish_socket(::goby::common::protobuf::ZeroMQServiceConfig_Socket* publish_socket) {
177  delete publish_socket_;
178  publish_socket_ = publish_socket;
179  if (publish_socket) {
180  set_has_publish_socket();
181  } else {
182  clear_has_publish_socket();
183  }
184  // @@protoc_insertion_point(field_set_allocated:goby.common.protobuf.PubSubSocketConfig.publish_socket)
185 }
186 
187 // optional .goby.common.protobuf.ZeroMQServiceConfig.Socket subscribe_socket = 2;
188 inline bool PubSubSocketConfig::has_subscribe_socket() const {
189  return (_has_bits_[0] & 0x00000002u) != 0;
190 }
191 inline void PubSubSocketConfig::set_has_subscribe_socket() {
192  _has_bits_[0] |= 0x00000002u;
193 }
194 inline void PubSubSocketConfig::clear_has_subscribe_socket() {
195  _has_bits_[0] &= ~0x00000002u;
196 }
197 inline void PubSubSocketConfig::clear_subscribe_socket() {
198  if (subscribe_socket_ != NULL) subscribe_socket_->::goby::common::protobuf::ZeroMQServiceConfig_Socket::Clear();
199  clear_has_subscribe_socket();
200 }
201 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& PubSubSocketConfig::subscribe_socket() const {
202  // @@protoc_insertion_point(field_get:goby.common.protobuf.PubSubSocketConfig.subscribe_socket)
203  return subscribe_socket_ != NULL ? *subscribe_socket_ : *default_instance_->subscribe_socket_;
204 }
205 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* PubSubSocketConfig::mutable_subscribe_socket() {
206  set_has_subscribe_socket();
207  if (subscribe_socket_ == NULL) subscribe_socket_ = new ::goby::common::protobuf::ZeroMQServiceConfig_Socket;
208  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.PubSubSocketConfig.subscribe_socket)
209  return subscribe_socket_;
210 }
211 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* PubSubSocketConfig::release_subscribe_socket() {
212  clear_has_subscribe_socket();
214  subscribe_socket_ = NULL;
215  return temp;
216 }
217 inline void PubSubSocketConfig::set_allocated_subscribe_socket(::goby::common::protobuf::ZeroMQServiceConfig_Socket* subscribe_socket) {
218  delete subscribe_socket_;
219  subscribe_socket_ = subscribe_socket;
220  if (subscribe_socket) {
221  set_has_subscribe_socket();
222  } else {
223  clear_has_subscribe_socket();
224  }
225  // @@protoc_insertion_point(field_set_allocated:goby.common.protobuf.PubSubSocketConfig.subscribe_socket)
226 }
227 
228 
229 // @@protoc_insertion_point(namespace_scope)
230 
231 } // namespace protobuf
232 } // namespace common
233 } // namespace goby
234 
235 #ifndef SWIG
236 namespace google {
237 namespace protobuf {
238 
239 
240 } // namespace google
241 } // namespace protobuf
242 #endif // SWIG
243 
244 // @@protoc_insertion_point(global_scope)
245 
246 #endif // PROTOBUF_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.