4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fmosh_5fpacket_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 "dccl/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_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
41 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
42 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
60 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
61 return _unknown_fields_;
64 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65 return &_unknown_fields_;
68 static const ::google::protobuf::Descriptor* descriptor();
76 void CopyFrom(const ::google::protobuf::Message& from);
77 void MergeFrom(const ::google::protobuf::Message& from);
81 bool IsInitialized()
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_; }
93 void SetCachedSize(
int size)
const;
95 ::google::protobuf::Metadata GetMetadata()
const;
102 inline bool has_src()
const;
103 inline void clear_src();
104 static const int kSrcFieldNumber = 1;
105 inline ::google::protobuf::int32 src()
const;
106 inline void set_src(::google::protobuf::int32 value);
109 inline bool has_dest()
const;
110 inline void clear_dest();
111 static const int kDestFieldNumber = 2;
112 inline ::google::protobuf::int32 dest()
const;
113 inline void set_dest(::google::protobuf::int32 value);
116 inline bool has_frag_num()
const;
117 inline void clear_frag_num();
118 static const int kFragNumFieldNumber = 3;
119 inline ::google::protobuf::int32 frag_num()
const;
120 inline void set_frag_num(::google::protobuf::int32 value);
123 inline bool has_frag_len()
const;
124 inline void clear_frag_len();
125 static const int kFragLenFieldNumber = 4;
126 inline ::google::protobuf::int32 frag_len()
const;
127 inline void set_frag_len(::google::protobuf::int32 value);
130 inline bool has_is_last_frag()
const;
131 inline void clear_is_last_frag();
132 static const int kIsLastFragFieldNumber = 5;
133 inline bool is_last_frag()
const;
134 inline void set_is_last_frag(
bool value);
137 inline bool has_fragment()
const;
138 inline void clear_fragment();
139 static const int kFragmentFieldNumber = 6;
140 inline const ::std::string& fragment()
const;
141 inline void set_fragment(const ::std::string& value);
142 inline void set_fragment(
const char* value);
143 inline void set_fragment(
const void* value,
size_t size);
144 inline ::std::string* mutable_fragment();
145 inline ::std::string* release_fragment();
146 inline void set_allocated_fragment(::std::string* fragment);
148 enum DCCLParameters { DCCL_ID = 512, DCCL_MAX_BYTES = 64 };
151 inline void set_has_src();
152 inline void clear_has_src();
153 inline void set_has_dest();
154 inline void clear_has_dest();
155 inline void set_has_frag_num();
156 inline void clear_has_frag_num();
157 inline void set_has_frag_len();
158 inline void clear_has_frag_len();
159 inline void set_has_is_last_frag();
160 inline void clear_has_is_last_frag();
161 inline void set_has_fragment();
162 inline void clear_has_fragment();
164 ::google::protobuf::UnknownFieldSet _unknown_fields_;
166 ::google::protobuf::uint32 _has_bits_[1];
167 mutable int _cached_size_;
168 ::google::protobuf::int32 src_;
169 ::google::protobuf::int32 dest_;
170 ::google::protobuf::int32 frag_num_;
171 ::google::protobuf::int32 frag_len_;
172 ::std::string* fragment_;
174 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
175 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
176 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto();
178 void InitAsDefaultInstance();
189 inline bool MoshPacket::has_src()
const {
190 return (_has_bits_[0] & 0x00000001u) != 0;
192 inline void MoshPacket::set_has_src() {
193 _has_bits_[0] |= 0x00000001u;
195 inline void MoshPacket::clear_has_src() {
196 _has_bits_[0] &= ~0x00000001u;
198 inline void MoshPacket::clear_src() {
202 inline ::google::protobuf::int32 MoshPacket::src()
const {
206 inline void MoshPacket::set_src(::google::protobuf::int32 value) {
213 inline bool MoshPacket::has_dest()
const {
214 return (_has_bits_[0] & 0x00000002u) != 0;
216 inline void MoshPacket::set_has_dest() {
217 _has_bits_[0] |= 0x00000002u;
219 inline void MoshPacket::clear_has_dest() {
220 _has_bits_[0] &= ~0x00000002u;
222 inline void MoshPacket::clear_dest() {
226 inline ::google::protobuf::int32 MoshPacket::dest()
const {
230 inline void MoshPacket::set_dest(::google::protobuf::int32 value) {
237 inline bool MoshPacket::has_frag_num()
const {
238 return (_has_bits_[0] & 0x00000004u) != 0;
240 inline void MoshPacket::set_has_frag_num() {
241 _has_bits_[0] |= 0x00000004u;
243 inline void MoshPacket::clear_has_frag_num() {
244 _has_bits_[0] &= ~0x00000004u;
246 inline void MoshPacket::clear_frag_num() {
248 clear_has_frag_num();
250 inline ::google::protobuf::int32 MoshPacket::frag_num()
const {
254 inline void MoshPacket::set_frag_num(::google::protobuf::int32 value) {
261 inline bool MoshPacket::has_frag_len()
const {
262 return (_has_bits_[0] & 0x00000008u) != 0;
264 inline void MoshPacket::set_has_frag_len() {
265 _has_bits_[0] |= 0x00000008u;
267 inline void MoshPacket::clear_has_frag_len() {
268 _has_bits_[0] &= ~0x00000008u;
270 inline void MoshPacket::clear_frag_len() {
272 clear_has_frag_len();
274 inline ::google::protobuf::int32 MoshPacket::frag_len()
const {
278 inline void MoshPacket::set_frag_len(::google::protobuf::int32 value) {
285 inline bool MoshPacket::has_is_last_frag()
const {
286 return (_has_bits_[0] & 0x00000010u) != 0;
288 inline void MoshPacket::set_has_is_last_frag() {
289 _has_bits_[0] |= 0x00000010u;
291 inline void MoshPacket::clear_has_is_last_frag() {
292 _has_bits_[0] &= ~0x00000010u;
294 inline void MoshPacket::clear_is_last_frag() {
295 is_last_frag_ =
false;
296 clear_has_is_last_frag();
298 inline bool MoshPacket::is_last_frag()
const {
300 return is_last_frag_;
302 inline void MoshPacket::set_is_last_frag(
bool value) {
303 set_has_is_last_frag();
304 is_last_frag_ = value;
309 inline bool MoshPacket::has_fragment()
const {
310 return (_has_bits_[0] & 0x00000020u) != 0;
312 inline void MoshPacket::set_has_fragment() {
313 _has_bits_[0] |= 0x00000020u;
315 inline void MoshPacket::clear_has_fragment() {
316 _has_bits_[0] &= ~0x00000020u;
318 inline void MoshPacket::clear_fragment() {
319 if (fragment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
322 clear_has_fragment();
324 inline const ::std::string& MoshPacket::fragment()
const {
328 inline void MoshPacket::set_fragment(const ::std::string& value) {
330 if (fragment_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
331 fragment_ = new ::std::string;
333 fragment_->assign(value);
336 inline void MoshPacket::set_fragment(
const char* value) {
338 if (fragment_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
339 fragment_ = new ::std::string;
341 fragment_->assign(value);
344 inline void MoshPacket::set_fragment(
const void* value,
size_t size) {
346 if (fragment_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
347 fragment_ = new ::std::string;
349 fragment_->assign(reinterpret_cast<const char*>(value), size);
352 inline ::std::string* MoshPacket::mutable_fragment() {
354 if (fragment_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
355 fragment_ = new ::std::string;
360 inline ::std::string* MoshPacket::release_fragment() {
361 clear_has_fragment();
362 if (fragment_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
365 ::std::string* temp = fragment_;
366 fragment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
370 inline void MoshPacket::set_allocated_fragment(::std::string* fragment) {
371 if (fragment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
376 fragment_ = fragment;
378 clear_has_fragment();
379 fragment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
402 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto__INCLUDED
The global namespace for the Goby project.