4 #ifndef PROTOBUF_goby_2ftest_2facomms_2froute1_2ftest_2eproto__INCLUDED 5 #define PROTOBUF_goby_2ftest_2facomms_2froute1_2ftest_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 "dccl/option_extensions.pb.h" 28 #include "goby/common/protobuf/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> 36 void protobuf_AddDesc_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
37 void protobuf_AssignDesc_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
38 void protobuf_ShutdownFile_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
56 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
57 return _unknown_fields_;
60 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
61 return &_unknown_fields_;
64 static const ::google::protobuf::Descriptor* descriptor();
72 void CopyFrom(const ::google::protobuf::Message& from);
73 void MergeFrom(const ::google::protobuf::Message& from);
77 bool IsInitialized()
const;
80 bool MergePartialFromCodedStream(
81 ::google::protobuf::io::CodedInputStream* input);
82 void SerializeWithCachedSizes(
83 ::google::protobuf::io::CodedOutputStream* output)
const;
84 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
85 int GetCachedSize()
const {
return _cached_size_; }
89 void SetCachedSize(
int size)
const;
91 ::google::protobuf::Metadata GetMetadata()
const;
98 inline bool has_time()
const;
99 inline void clear_time();
100 static const int kTimeFieldNumber = 1;
101 inline ::google::protobuf::uint64 time()
const;
102 inline void set_time(::google::protobuf::uint64 value);
105 inline bool has_src()
const;
106 inline void clear_src();
107 static const int kSrcFieldNumber = 2;
108 inline ::google::protobuf::int32 src()
const;
109 inline void set_src(::google::protobuf::int32 value);
112 inline bool has_dest()
const;
113 inline void clear_dest();
114 static const int kDestFieldNumber = 3;
115 inline ::google::protobuf::int32 dest()
const;
116 inline void set_dest(::google::protobuf::int32 value);
119 inline bool has_telegram()
const;
120 inline void clear_telegram();
121 static const int kTelegramFieldNumber = 4;
122 inline const ::std::string& telegram()
const;
123 inline void set_telegram(const ::std::string& value);
124 inline void set_telegram(
const char* value);
125 inline void set_telegram(
const char* value,
size_t size);
126 inline ::std::string* mutable_telegram();
127 inline ::std::string* release_telegram();
128 inline void set_allocated_telegram(::std::string* telegram);
130 enum DCCLParameters { DCCL_ID = 1, DCCL_MAX_BYTES = 32 };
133 inline void set_has_time();
134 inline void clear_has_time();
135 inline void set_has_src();
136 inline void clear_has_src();
137 inline void set_has_dest();
138 inline void clear_has_dest();
139 inline void set_has_telegram();
140 inline void clear_has_telegram();
142 ::google::protobuf::UnknownFieldSet _unknown_fields_;
144 ::google::protobuf::uint32 _has_bits_[1];
145 mutable int _cached_size_;
146 ::google::protobuf::uint64 time_;
147 ::google::protobuf::int32 src_;
148 ::google::protobuf::int32 dest_;
149 ::std::string* telegram_;
150 friend void protobuf_AddDesc_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
151 friend void protobuf_AssignDesc_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
152 friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2froute1_2ftest_2eproto();
154 void InitAsDefaultInstance();
165 inline bool RouteMessage::has_time()
const {
166 return (_has_bits_[0] & 0x00000001u) != 0;
168 inline void RouteMessage::set_has_time() {
169 _has_bits_[0] |= 0x00000001u;
171 inline void RouteMessage::clear_has_time() {
172 _has_bits_[0] &= ~0x00000001u;
174 inline void RouteMessage::clear_time() {
175 time_ = GOOGLE_ULONGLONG(0);
178 inline ::google::protobuf::uint64 RouteMessage::time()
const {
182 inline void RouteMessage::set_time(::google::protobuf::uint64 value) {
189 inline bool RouteMessage::has_src()
const {
190 return (_has_bits_[0] & 0x00000002u) != 0;
192 inline void RouteMessage::set_has_src() {
193 _has_bits_[0] |= 0x00000002u;
195 inline void RouteMessage::clear_has_src() {
196 _has_bits_[0] &= ~0x00000002u;
198 inline void RouteMessage::clear_src() {
202 inline ::google::protobuf::int32 RouteMessage::src()
const {
206 inline void RouteMessage::set_src(::google::protobuf::int32 value) {
213 inline bool RouteMessage::has_dest()
const {
214 return (_has_bits_[0] & 0x00000004u) != 0;
216 inline void RouteMessage::set_has_dest() {
217 _has_bits_[0] |= 0x00000004u;
219 inline void RouteMessage::clear_has_dest() {
220 _has_bits_[0] &= ~0x00000004u;
222 inline void RouteMessage::clear_dest() {
226 inline ::google::protobuf::int32 RouteMessage::dest()
const {
230 inline void RouteMessage::set_dest(::google::protobuf::int32 value) {
237 inline bool RouteMessage::has_telegram()
const {
238 return (_has_bits_[0] & 0x00000008u) != 0;
240 inline void RouteMessage::set_has_telegram() {
241 _has_bits_[0] |= 0x00000008u;
243 inline void RouteMessage::clear_has_telegram() {
244 _has_bits_[0] &= ~0x00000008u;
246 inline void RouteMessage::clear_telegram() {
247 if (telegram_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
250 clear_has_telegram();
252 inline const ::std::string& RouteMessage::telegram()
const {
256 inline void RouteMessage::set_telegram(const ::std::string& value) {
258 if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
259 telegram_ = new ::std::string;
261 telegram_->assign(value);
264 inline void RouteMessage::set_telegram(
const char* value) {
266 if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
267 telegram_ = new ::std::string;
269 telegram_->assign(value);
272 inline void RouteMessage::set_telegram(
const char* value,
size_t size) {
274 if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
275 telegram_ = new ::std::string;
277 telegram_->assign(reinterpret_cast<const char*>(value), size);
280 inline ::std::string* RouteMessage::mutable_telegram() {
282 if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
283 telegram_ = new ::std::string;
288 inline ::std::string* RouteMessage::release_telegram() {
289 clear_has_telegram();
290 if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
293 ::std::string* temp = telegram_;
294 telegram_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
298 inline void RouteMessage::set_allocated_telegram(::std::string* telegram) {
299 if (telegram_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
304 telegram_ = telegram;
306 clear_has_telegram();
307 telegram_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
326 #endif // PROTOBUF_goby_2ftest_2facomms_2froute1_2ftest_2eproto__INCLUDED