4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fnetwork_5fack_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 "dccl/option_extensions.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_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
42 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
43 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
47 enum NetworkAck_AckType {
48 NetworkAck_AckType_ACK = 1,
49 NetworkAck_AckType_EXPIRE = 2
51 bool NetworkAck_AckType_IsValid(
int value);
52 const NetworkAck_AckType NetworkAck_AckType_AckType_MIN = NetworkAck_AckType_ACK;
53 const NetworkAck_AckType NetworkAck_AckType_AckType_MAX = NetworkAck_AckType_EXPIRE;
54 const int NetworkAck_AckType_AckType_ARRAYSIZE = NetworkAck_AckType_AckType_MAX + 1;
56 const ::google::protobuf::EnumDescriptor* NetworkAck_AckType_descriptor();
57 inline const ::std::string& NetworkAck_AckType_Name(NetworkAck_AckType value) {
58 return ::google::protobuf::internal::NameOfEnum(
59 NetworkAck_AckType_descriptor(), value);
61 inline bool NetworkAck_AckType_Parse(
62 const ::std::string& name, NetworkAck_AckType* value) {
63 return ::google::protobuf::internal::ParseNamedEnum<NetworkAck_AckType>(
64 NetworkAck_AckType_descriptor(), name, value);
80 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
81 return _unknown_fields_;
84 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
85 return &_unknown_fields_;
88 static const ::google::protobuf::Descriptor* descriptor();
96 void CopyFrom(const ::google::protobuf::Message& from);
97 void MergeFrom(const ::google::protobuf::Message& from);
101 bool IsInitialized()
const;
103 int ByteSize()
const;
104 bool MergePartialFromCodedStream(
105 ::google::protobuf::io::CodedInputStream* input);
106 void SerializeWithCachedSizes(
107 ::google::protobuf::io::CodedOutputStream* output)
const;
108 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
109 int GetCachedSize()
const {
return _cached_size_; }
113 void SetCachedSize(
int size)
const;
115 ::google::protobuf::Metadata GetMetadata()
const;
119 typedef NetworkAck_AckType AckType;
120 static const AckType ACK = NetworkAck_AckType_ACK;
121 static const AckType EXPIRE = NetworkAck_AckType_EXPIRE;
122 static inline bool AckType_IsValid(
int value) {
123 return NetworkAck_AckType_IsValid(value);
125 static const AckType AckType_MIN =
126 NetworkAck_AckType_AckType_MIN;
127 static const AckType AckType_MAX =
128 NetworkAck_AckType_AckType_MAX;
129 static const int AckType_ARRAYSIZE =
130 NetworkAck_AckType_AckType_ARRAYSIZE;
131 static inline const ::google::protobuf::EnumDescriptor*
132 AckType_descriptor() {
133 return NetworkAck_AckType_descriptor();
135 static inline const ::std::string& AckType_Name(AckType value) {
136 return NetworkAck_AckType_Name(value);
138 static inline bool AckType_Parse(const ::std::string& name,
140 return NetworkAck_AckType_Parse(name, value);
146 inline bool has_message_src()
const;
147 inline void clear_message_src();
148 static const int kMessageSrcFieldNumber = 1;
149 inline ::google::protobuf::int32 message_src()
const;
150 inline void set_message_src(::google::protobuf::int32 value);
153 inline bool has_message_dest()
const;
154 inline void clear_message_dest();
155 static const int kMessageDestFieldNumber = 2;
156 inline ::google::protobuf::int32 message_dest()
const;
157 inline void set_message_dest(::google::protobuf::int32 value);
160 inline bool has_message_time()
const;
161 inline void clear_message_time();
162 static const int kMessageTimeFieldNumber = 3;
163 inline ::google::protobuf::uint64 message_time()
const;
164 inline void set_message_time(::google::protobuf::uint64 value);
167 inline bool has_message_dccl_id()
const;
168 inline void clear_message_dccl_id();
169 static const int kMessageDcclIdFieldNumber = 4;
170 inline ::google::protobuf::int32 message_dccl_id()
const;
171 inline void set_message_dccl_id(::google::protobuf::int32 value);
174 inline bool has_ack_src()
const;
175 inline void clear_ack_src();
176 static const int kAckSrcFieldNumber = 10;
177 inline ::google::protobuf::int32 ack_src()
const;
178 inline void set_ack_src(::google::protobuf::int32 value);
181 inline bool has_ack_type()
const;
182 inline void clear_ack_type();
183 static const int kAckTypeFieldNumber = 11;
184 inline ::goby::acomms::protobuf::NetworkAck_AckType ack_type()
const;
185 inline void set_ack_type(::goby::acomms::protobuf::NetworkAck_AckType value);
187 enum DCCLParameters { DCCL_ID = 6, DCCL_MAX_BYTES = 32 };
190 inline void set_has_message_src();
191 inline void clear_has_message_src();
192 inline void set_has_message_dest();
193 inline void clear_has_message_dest();
194 inline void set_has_message_time();
195 inline void clear_has_message_time();
196 inline void set_has_message_dccl_id();
197 inline void clear_has_message_dccl_id();
198 inline void set_has_ack_src();
199 inline void clear_has_ack_src();
200 inline void set_has_ack_type();
201 inline void clear_has_ack_type();
203 ::google::protobuf::UnknownFieldSet _unknown_fields_;
205 ::google::protobuf::uint32 _has_bits_[1];
206 mutable int _cached_size_;
207 ::google::protobuf::int32 message_src_;
208 ::google::protobuf::int32 message_dest_;
209 ::google::protobuf::uint64 message_time_;
210 ::google::protobuf::int32 message_dccl_id_;
211 ::google::protobuf::int32 ack_src_;
213 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
214 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
215 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto();
217 void InitAsDefaultInstance();
228 inline bool NetworkAck::has_message_src()
const {
229 return (_has_bits_[0] & 0x00000001u) != 0;
231 inline void NetworkAck::set_has_message_src() {
232 _has_bits_[0] |= 0x00000001u;
234 inline void NetworkAck::clear_has_message_src() {
235 _has_bits_[0] &= ~0x00000001u;
237 inline void NetworkAck::clear_message_src() {
239 clear_has_message_src();
241 inline ::google::protobuf::int32 NetworkAck::message_src()
const {
245 inline void NetworkAck::set_message_src(::google::protobuf::int32 value) {
246 set_has_message_src();
247 message_src_ = value;
252 inline bool NetworkAck::has_message_dest()
const {
253 return (_has_bits_[0] & 0x00000002u) != 0;
255 inline void NetworkAck::set_has_message_dest() {
256 _has_bits_[0] |= 0x00000002u;
258 inline void NetworkAck::clear_has_message_dest() {
259 _has_bits_[0] &= ~0x00000002u;
261 inline void NetworkAck::clear_message_dest() {
263 clear_has_message_dest();
265 inline ::google::protobuf::int32 NetworkAck::message_dest()
const {
267 return message_dest_;
269 inline void NetworkAck::set_message_dest(::google::protobuf::int32 value) {
270 set_has_message_dest();
271 message_dest_ = value;
276 inline bool NetworkAck::has_message_time()
const {
277 return (_has_bits_[0] & 0x00000004u) != 0;
279 inline void NetworkAck::set_has_message_time() {
280 _has_bits_[0] |= 0x00000004u;
282 inline void NetworkAck::clear_has_message_time() {
283 _has_bits_[0] &= ~0x00000004u;
285 inline void NetworkAck::clear_message_time() {
286 message_time_ = GOOGLE_ULONGLONG(0);
287 clear_has_message_time();
289 inline ::google::protobuf::uint64 NetworkAck::message_time()
const {
291 return message_time_;
293 inline void NetworkAck::set_message_time(::google::protobuf::uint64 value) {
294 set_has_message_time();
295 message_time_ = value;
300 inline bool NetworkAck::has_message_dccl_id()
const {
301 return (_has_bits_[0] & 0x00000008u) != 0;
303 inline void NetworkAck::set_has_message_dccl_id() {
304 _has_bits_[0] |= 0x00000008u;
306 inline void NetworkAck::clear_has_message_dccl_id() {
307 _has_bits_[0] &= ~0x00000008u;
309 inline void NetworkAck::clear_message_dccl_id() {
310 message_dccl_id_ = 0;
311 clear_has_message_dccl_id();
313 inline ::google::protobuf::int32 NetworkAck::message_dccl_id()
const {
315 return message_dccl_id_;
317 inline void NetworkAck::set_message_dccl_id(::google::protobuf::int32 value) {
318 set_has_message_dccl_id();
319 message_dccl_id_ = value;
324 inline bool NetworkAck::has_ack_src()
const {
325 return (_has_bits_[0] & 0x00000010u) != 0;
327 inline void NetworkAck::set_has_ack_src() {
328 _has_bits_[0] |= 0x00000010u;
330 inline void NetworkAck::clear_has_ack_src() {
331 _has_bits_[0] &= ~0x00000010u;
333 inline void NetworkAck::clear_ack_src() {
337 inline ::google::protobuf::int32 NetworkAck::ack_src()
const {
341 inline void NetworkAck::set_ack_src(::google::protobuf::int32 value) {
348 inline bool NetworkAck::has_ack_type()
const {
349 return (_has_bits_[0] & 0x00000020u) != 0;
351 inline void NetworkAck::set_has_ack_type() {
352 _has_bits_[0] |= 0x00000020u;
354 inline void NetworkAck::clear_has_ack_type() {
355 _has_bits_[0] &= ~0x00000020u;
357 inline void NetworkAck::clear_ack_type() {
359 clear_has_ack_type();
361 inline ::goby::acomms::protobuf::NetworkAck_AckType NetworkAck::ack_type()
const {
363 return static_cast< ::goby::acomms::protobuf::NetworkAck_AckType
>(ack_type_);
365 inline void NetworkAck::set_ack_type(::goby::acomms::protobuf::NetworkAck_AckType value) {
366 assert(::goby::acomms::protobuf::NetworkAck_AckType_IsValid(value));
383 template <>
struct is_proto_enum< ::goby::acomms::protobuf::NetworkAck_AckType> : ::google::protobuf::internal::true_type {};
385 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::NetworkAck_AckType>() {
386 return ::goby::acomms::protobuf::NetworkAck_AckType_descriptor();
395 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fnetwork_5fack_2eproto__INCLUDED
The global namespace for the Goby project.