4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto__INCLUDED 5 #define PROTOBUF_goby_2ftest_2facomms_2fdccl3_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 "goby/common/protobuf/option_extensions.pb.h" 28 #include "dccl/option_extensions.pb.h" 29 #include "goby/test/acomms/dccl3/header.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> 37 void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
38 void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
39 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl3_2ftest_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_telegram()
const;
100 inline void clear_telegram();
101 static const int kTelegramFieldNumber = 1;
102 inline const ::std::string& telegram()
const;
103 inline void set_telegram(const ::std::string& value);
104 inline void set_telegram(
const char* value);
105 inline void set_telegram(
const char* value,
size_t size);
106 inline ::std::string* mutable_telegram();
107 inline ::std::string* release_telegram();
108 inline void set_allocated_telegram(::std::string* telegram);
111 inline bool has_header()
const;
112 inline void clear_header();
113 static const int kHeaderFieldNumber = 2;
114 inline const ::Header& header()
const;
115 inline ::Header* mutable_header();
116 inline ::Header* release_header();
117 inline void set_allocated_header(::
Header* header);
119 enum DCCLParameters { DCCL_ID = 4, DCCL_MAX_BYTES = 32 };
122 inline void set_has_telegram();
123 inline void clear_has_telegram();
124 inline void set_has_header();
125 inline void clear_has_header();
127 ::google::protobuf::UnknownFieldSet _unknown_fields_;
129 ::google::protobuf::uint32 _has_bits_[1];
130 mutable int _cached_size_;
131 ::std::string* telegram_;
133 friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
134 friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
135 friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto();
137 void InitAsDefaultInstance();
148 inline bool GobyMessage::has_telegram()
const {
149 return (_has_bits_[0] & 0x00000001u) != 0;
151 inline void GobyMessage::set_has_telegram() {
152 _has_bits_[0] |= 0x00000001u;
154 inline void GobyMessage::clear_has_telegram() {
155 _has_bits_[0] &= ~0x00000001u;
157 inline void GobyMessage::clear_telegram() {
158 if (telegram_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
161 clear_has_telegram();
163 inline const ::std::string& GobyMessage::telegram()
const {
167 inline void GobyMessage::set_telegram(const ::std::string& value) {
169 if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
170 telegram_ = new ::std::string;
172 telegram_->assign(value);
175 inline void GobyMessage::set_telegram(
const char* value) {
177 if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
178 telegram_ = new ::std::string;
180 telegram_->assign(value);
183 inline void GobyMessage::set_telegram(
const char* value,
size_t size) {
185 if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
186 telegram_ = new ::std::string;
188 telegram_->assign(reinterpret_cast<const char*>(value), size);
191 inline ::std::string* GobyMessage::mutable_telegram() {
193 if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
194 telegram_ = new ::std::string;
199 inline ::std::string* GobyMessage::release_telegram() {
200 clear_has_telegram();
201 if (telegram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
204 ::std::string* temp = telegram_;
205 telegram_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
209 inline void GobyMessage::set_allocated_telegram(::std::string* telegram) {
210 if (telegram_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
215 telegram_ = telegram;
217 clear_has_telegram();
218 telegram_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
224 inline bool GobyMessage::has_header()
const {
225 return (_has_bits_[0] & 0x00000002u) != 0;
227 inline void GobyMessage::set_has_header() {
228 _has_bits_[0] |= 0x00000002u;
230 inline void GobyMessage::clear_has_header() {
231 _has_bits_[0] &= ~0x00000002u;
233 inline void GobyMessage::clear_header() {
234 if (header_ != NULL) header_->::Header::Clear();
237 inline const ::Header& GobyMessage::header()
const {
239 return header_ != NULL ? *header_ : *default_instance_->header_;
241 inline ::Header* GobyMessage::mutable_header() {
243 if (header_ == NULL) header_ = new ::Header;
247 inline ::Header* GobyMessage::release_header() {
253 inline void GobyMessage::set_allocated_header(::
Header* header) {
278 #endif // PROTOBUF_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto__INCLUDED