4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fudp_5fdriver_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/acomms/protobuf/driver_base.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> 36 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
37 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
38 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
57 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
58 return _unknown_fields_;
61 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62 return &_unknown_fields_;
65 static const ::google::protobuf::Descriptor* descriptor();
73 void CopyFrom(const ::google::protobuf::Message& from);
74 void MergeFrom(const ::google::protobuf::Message& from);
78 bool IsInitialized()
const;
81 bool MergePartialFromCodedStream(
82 ::google::protobuf::io::CodedInputStream* input);
83 void SerializeWithCachedSizes(
84 ::google::protobuf::io::CodedOutputStream* output)
const;
85 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
86 int GetCachedSize()
const {
return _cached_size_; }
90 void SetCachedSize(
int size)
const;
92 ::google::protobuf::Metadata GetMetadata()
const;
99 inline bool has_ip()
const;
100 inline void clear_ip();
101 static const int kIpFieldNumber = 1;
102 inline const ::std::string& ip()
const;
103 inline void set_ip(const ::std::string& value);
104 inline void set_ip(
const char* value);
105 inline void set_ip(
const char* value,
size_t size);
106 inline ::std::string* mutable_ip();
107 inline ::std::string* release_ip();
108 inline void set_allocated_ip(::std::string* ip);
111 inline bool has_port()
const;
112 inline void clear_port();
113 static const int kPortFieldNumber = 2;
114 inline ::google::protobuf::uint32 port()
const;
115 inline void set_port(::google::protobuf::uint32 value);
119 inline void set_has_ip();
120 inline void clear_has_ip();
121 inline void set_has_port();
122 inline void clear_has_port();
124 ::google::protobuf::UnknownFieldSet _unknown_fields_;
126 ::google::protobuf::uint32 _has_bits_[1];
127 mutable int _cached_size_;
128 static ::std::string* _default_ip_;
130 ::google::protobuf::uint32 port_;
131 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
132 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
133 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
135 void InitAsDefaultInstance();
152 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
153 return _unknown_fields_;
156 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
157 return &_unknown_fields_;
160 static const ::google::protobuf::Descriptor* descriptor();
168 void CopyFrom(const ::google::protobuf::Message& from);
169 void MergeFrom(const ::google::protobuf::Message& from);
173 bool IsInitialized()
const;
175 int ByteSize()
const;
176 bool MergePartialFromCodedStream(
177 ::google::protobuf::io::CodedInputStream* input);
178 void SerializeWithCachedSizes(
179 ::google::protobuf::io::CodedOutputStream* output)
const;
180 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
181 int GetCachedSize()
const {
return _cached_size_; }
185 void SetCachedSize(
int size)
const;
187 ::google::protobuf::Metadata GetMetadata()
const;
195 static const int kLocalFieldNumber = 1341;
197 ::google::protobuf::internal::MessageTypeTraits< ::UDPDriverConfig_EndPoint >, 11,
false >
199 static const int kRemoteFieldNumber = 1342;
200 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
201 ::google::protobuf::internal::MessageTypeTraits< ::UDPDriverConfig_EndPoint >, 11,
false >
203 static const int kMaxFrameSizeFieldNumber = 1343;
204 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
205 ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5,
false >
210 ::google::protobuf::UnknownFieldSet _unknown_fields_;
212 ::google::protobuf::uint32 _has_bits_[1];
213 mutable int _cached_size_;
214 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
215 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
216 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
218 void InitAsDefaultInstance();
229 inline bool UDPDriverConfig_EndPoint::has_ip()
const {
230 return (_has_bits_[0] & 0x00000001u) != 0;
232 inline void UDPDriverConfig_EndPoint::set_has_ip() {
233 _has_bits_[0] |= 0x00000001u;
235 inline void UDPDriverConfig_EndPoint::clear_has_ip() {
236 _has_bits_[0] &= ~0x00000001u;
238 inline void UDPDriverConfig_EndPoint::clear_ip() {
239 if (ip_ != _default_ip_) {
240 ip_->assign(*_default_ip_);
244 inline const ::std::string& UDPDriverConfig_EndPoint::ip()
const {
248 inline void UDPDriverConfig_EndPoint::set_ip(const ::std::string& value) {
250 if (ip_ == _default_ip_) {
251 ip_ = new ::std::string;
256 inline void UDPDriverConfig_EndPoint::set_ip(
const char* value) {
258 if (ip_ == _default_ip_) {
259 ip_ = new ::std::string;
264 inline void UDPDriverConfig_EndPoint::set_ip(
const char* value,
size_t size) {
266 if (ip_ == _default_ip_) {
267 ip_ = new ::std::string;
269 ip_->assign(reinterpret_cast<const char*>(value), size);
272 inline ::std::string* UDPDriverConfig_EndPoint::mutable_ip() {
274 if (ip_ == _default_ip_) {
275 ip_ = new ::std::string(*_default_ip_);
280 inline ::std::string* UDPDriverConfig_EndPoint::release_ip() {
282 if (ip_ == _default_ip_) {
285 ::std::string* temp = ip_;
286 ip_ =
const_cast< ::std::string*
>(_default_ip_);
290 inline void UDPDriverConfig_EndPoint::set_allocated_ip(::std::string* ip) {
291 if (ip_ != _default_ip_) {
299 ip_ =
const_cast< ::std::string*
>(_default_ip_);
305 inline bool UDPDriverConfig_EndPoint::has_port()
const {
306 return (_has_bits_[0] & 0x00000002u) != 0;
308 inline void UDPDriverConfig_EndPoint::set_has_port() {
309 _has_bits_[0] |= 0x00000002u;
311 inline void UDPDriverConfig_EndPoint::clear_has_port() {
312 _has_bits_[0] &= ~0x00000002u;
314 inline void UDPDriverConfig_EndPoint::clear_port() {
318 inline ::google::protobuf::uint32 UDPDriverConfig_EndPoint::port()
const {
322 inline void UDPDriverConfig_EndPoint::set_port(::google::protobuf::uint32 value) {
346 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto__INCLUDED