4 #ifndef PROTOBUF_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto__INCLUDED 5 #define PROTOBUF_goby_2futil_2fprotobuf_2flinebasedcomms_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 <boost/units/quantity.hpp> 29 #include <boost/units/absolute.hpp> 30 #include <boost/units/dimensionless_type.hpp> 31 #include <boost/units/make_scaled_unit.hpp> 39 void protobuf_AddDesc_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
40 void protobuf_AssignDesc_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
41 void protobuf_ShutdownFile_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
47 class Datagram :
public ::google::protobuf::Message {
59 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
60 return _unknown_fields_;
63 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
64 return &_unknown_fields_;
67 static const ::google::protobuf::Descriptor* descriptor();
68 static const Datagram& default_instance();
75 void CopyFrom(const ::google::protobuf::Message& from);
76 void MergeFrom(const ::google::protobuf::Message& from);
78 void MergeFrom(
const Datagram& from);
80 bool IsInitialized()
const;
83 bool MergePartialFromCodedStream(
84 ::google::protobuf::io::CodedInputStream* input);
85 void SerializeWithCachedSizes(
86 ::google::protobuf::io::CodedOutputStream* output)
const;
87 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
88 int GetCachedSize()
const {
return _cached_size_; }
92 void SetCachedSize(
int size)
const;
94 ::google::protobuf::Metadata GetMetadata()
const;
101 inline bool has_data()
const;
102 inline void clear_data();
103 static const int kDataFieldNumber = 1;
104 inline const ::std::string& data()
const;
105 inline void set_data(const ::std::string& value);
106 inline void set_data(
const char* value);
107 inline void set_data(
const char* value,
size_t size);
108 inline ::std::string* mutable_data();
109 inline ::std::string* release_data();
110 inline void set_allocated_data(::std::string* data);
113 inline bool has_src()
const;
114 inline void clear_src();
115 static const int kSrcFieldNumber = 2;
116 inline const ::std::string& src()
const;
117 inline void set_src(const ::std::string& value);
118 inline void set_src(
const char* value);
119 inline void set_src(
const char* value,
size_t size);
120 inline ::std::string* mutable_src();
121 inline ::std::string* release_src();
122 inline void set_allocated_src(::std::string* src);
125 inline bool has_dest()
const;
126 inline void clear_dest();
127 static const int kDestFieldNumber = 3;
128 inline const ::std::string& dest()
const;
129 inline void set_dest(const ::std::string& value);
130 inline void set_dest(
const char* value);
131 inline void set_dest(
const char* value,
size_t size);
132 inline ::std::string* mutable_dest();
133 inline ::std::string* release_dest();
134 inline void set_allocated_dest(::std::string* dest);
137 inline bool has_time()
const;
138 inline void clear_time();
139 static const int kTimeFieldNumber = 4;
140 inline double time()
const;
141 inline void set_time(
double value);
145 inline void set_has_data();
146 inline void clear_has_data();
147 inline void set_has_src();
148 inline void clear_has_src();
149 inline void set_has_dest();
150 inline void clear_has_dest();
151 inline void set_has_time();
152 inline void clear_has_time();
154 ::google::protobuf::UnknownFieldSet _unknown_fields_;
156 ::google::protobuf::uint32 _has_bits_[1];
157 mutable int _cached_size_;
158 ::std::string* data_;
160 ::std::string* dest_;
162 friend void protobuf_AddDesc_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
163 friend void protobuf_AssignDesc_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
164 friend void protobuf_ShutdownFile_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
166 void InitAsDefaultInstance();
177 inline bool Datagram::has_data()
const {
178 return (_has_bits_[0] & 0x00000001u) != 0;
180 inline void Datagram::set_has_data() {
181 _has_bits_[0] |= 0x00000001u;
183 inline void Datagram::clear_has_data() {
184 _has_bits_[0] &= ~0x00000001u;
186 inline void Datagram::clear_data() {
187 if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
192 inline const ::std::string& Datagram::data()
const {
196 inline void Datagram::set_data(const ::std::string& value) {
198 if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
199 data_ = new ::std::string;
201 data_->assign(value);
204 inline void Datagram::set_data(
const char* value) {
206 if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
207 data_ = new ::std::string;
209 data_->assign(value);
212 inline void Datagram::set_data(
const char* value,
size_t size) {
214 if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
215 data_ = new ::std::string;
217 data_->assign(reinterpret_cast<const char*>(value), size);
220 inline ::std::string* Datagram::mutable_data() {
222 if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
223 data_ = new ::std::string;
228 inline ::std::string* Datagram::release_data() {
230 if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
233 ::std::string* temp = data_;
234 data_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
238 inline void Datagram::set_allocated_data(::std::string* data) {
239 if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
247 data_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
253 inline bool Datagram::has_src()
const {
254 return (_has_bits_[0] & 0x00000002u) != 0;
256 inline void Datagram::set_has_src() {
257 _has_bits_[0] |= 0x00000002u;
259 inline void Datagram::clear_has_src() {
260 _has_bits_[0] &= ~0x00000002u;
262 inline void Datagram::clear_src() {
263 if (src_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
268 inline const ::std::string& Datagram::src()
const {
272 inline void Datagram::set_src(const ::std::string& value) {
274 if (src_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
275 src_ = new ::std::string;
280 inline void Datagram::set_src(
const char* value) {
282 if (src_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
283 src_ = new ::std::string;
288 inline void Datagram::set_src(
const char* value,
size_t size) {
290 if (src_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
291 src_ = new ::std::string;
293 src_->assign(reinterpret_cast<const char*>(value), size);
296 inline ::std::string* Datagram::mutable_src() {
298 if (src_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
299 src_ = new ::std::string;
304 inline ::std::string* Datagram::release_src() {
306 if (src_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
309 ::std::string* temp = src_;
310 src_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
314 inline void Datagram::set_allocated_src(::std::string* src) {
315 if (src_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
323 src_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
329 inline bool Datagram::has_dest()
const {
330 return (_has_bits_[0] & 0x00000004u) != 0;
332 inline void Datagram::set_has_dest() {
333 _has_bits_[0] |= 0x00000004u;
335 inline void Datagram::clear_has_dest() {
336 _has_bits_[0] &= ~0x00000004u;
338 inline void Datagram::clear_dest() {
339 if (dest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
344 inline const ::std::string& Datagram::dest()
const {
348 inline void Datagram::set_dest(const ::std::string& value) {
350 if (dest_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
351 dest_ = new ::std::string;
353 dest_->assign(value);
356 inline void Datagram::set_dest(
const char* value) {
358 if (dest_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
359 dest_ = new ::std::string;
361 dest_->assign(value);
364 inline void Datagram::set_dest(
const char* value,
size_t size) {
366 if (dest_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
367 dest_ = new ::std::string;
369 dest_->assign(reinterpret_cast<const char*>(value), size);
372 inline ::std::string* Datagram::mutable_dest() {
374 if (dest_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
375 dest_ = new ::std::string;
380 inline ::std::string* Datagram::release_dest() {
382 if (dest_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
385 ::std::string* temp = dest_;
386 dest_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
390 inline void Datagram::set_allocated_dest(::std::string* dest) {
391 if (dest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
399 dest_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
405 inline bool Datagram::has_time()
const {
406 return (_has_bits_[0] & 0x00000008u) != 0;
408 inline void Datagram::set_has_time() {
409 _has_bits_[0] |= 0x00000008u;
411 inline void Datagram::clear_has_time() {
412 _has_bits_[0] &= ~0x00000008u;
414 inline void Datagram::clear_time() {
418 inline double Datagram::time()
const {
422 inline void Datagram::set_time(
double value) {
446 #endif // PROTOBUF_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto__INCLUDED The global namespace for the Goby project.