4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto__INCLUDED 5 #define PROTOBUF_goby_2ftest_2facomms_2fdccl3_2fheader_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> 37 void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto();
38 void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto();
39 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto();
43 enum Header_PublishDestination {
44 Header_PublishDestination_PUBLISH_SELF = 1,
45 Header_PublishDestination_PUBLISH_OTHER = 2,
46 Header_PublishDestination_PUBLISH_ALL = 3
48 bool Header_PublishDestination_IsValid(
int value);
49 const Header_PublishDestination Header_PublishDestination_PublishDestination_MIN = Header_PublishDestination_PUBLISH_SELF;
50 const Header_PublishDestination Header_PublishDestination_PublishDestination_MAX = Header_PublishDestination_PUBLISH_ALL;
51 const int Header_PublishDestination_PublishDestination_ARRAYSIZE = Header_PublishDestination_PublishDestination_MAX + 1;
53 const ::google::protobuf::EnumDescriptor* Header_PublishDestination_descriptor();
54 inline const ::std::string& Header_PublishDestination_Name(Header_PublishDestination value) {
55 return ::google::protobuf::internal::NameOfEnum(
56 Header_PublishDestination_descriptor(), value);
58 inline bool Header_PublishDestination_Parse(
59 const ::std::string& name, Header_PublishDestination* value) {
60 return ::google::protobuf::internal::ParseNamedEnum<Header_PublishDestination>(
61 Header_PublishDestination_descriptor(), name, value);
65 class Header :
public ::google::protobuf::Message {
77 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
78 return _unknown_fields_;
81 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
82 return &_unknown_fields_;
85 static const ::google::protobuf::Descriptor* descriptor();
86 static const Header& default_instance();
93 void CopyFrom(const ::google::protobuf::Message& from);
94 void MergeFrom(const ::google::protobuf::Message& from);
95 void CopyFrom(
const Header& from);
96 void MergeFrom(
const Header& from);
98 bool IsInitialized()
const;
100 int ByteSize()
const;
101 bool MergePartialFromCodedStream(
102 ::google::protobuf::io::CodedInputStream* input);
103 void SerializeWithCachedSizes(
104 ::google::protobuf::io::CodedOutputStream* output)
const;
105 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
106 int GetCachedSize()
const {
return _cached_size_; }
110 void SetCachedSize(
int size)
const;
112 ::google::protobuf::Metadata GetMetadata()
const;
116 typedef Header_PublishDestination PublishDestination;
117 static const PublishDestination PUBLISH_SELF = Header_PublishDestination_PUBLISH_SELF;
118 static const PublishDestination PUBLISH_OTHER = Header_PublishDestination_PUBLISH_OTHER;
119 static const PublishDestination PUBLISH_ALL = Header_PublishDestination_PUBLISH_ALL;
120 static inline bool PublishDestination_IsValid(
int value) {
121 return Header_PublishDestination_IsValid(value);
123 static const PublishDestination PublishDestination_MIN =
124 Header_PublishDestination_PublishDestination_MIN;
125 static const PublishDestination PublishDestination_MAX =
126 Header_PublishDestination_PublishDestination_MAX;
127 static const int PublishDestination_ARRAYSIZE =
128 Header_PublishDestination_PublishDestination_ARRAYSIZE;
129 static inline const ::google::protobuf::EnumDescriptor*
130 PublishDestination_descriptor() {
131 return Header_PublishDestination_descriptor();
133 static inline const ::std::string& PublishDestination_Name(PublishDestination value) {
134 return Header_PublishDestination_Name(value);
136 static inline bool PublishDestination_Parse(const ::std::string& name,
137 PublishDestination* value) {
138 return Header_PublishDestination_Parse(name, value);
144 inline bool has_time()
const;
145 inline void clear_time();
146 static const int kTimeFieldNumber = 10;
147 inline ::google::protobuf::uint64 time()
const;
148 inline void set_time(::google::protobuf::uint64 value);
151 inline bool has_source_platform()
const;
152 inline void clear_source_platform();
153 static const int kSourcePlatformFieldNumber = 11;
154 inline ::google::protobuf::uint32 source_platform()
const;
155 inline void set_source_platform(::google::protobuf::uint32 value);
158 inline bool has_source_app()
const;
159 inline void clear_source_app();
160 static const int kSourceAppFieldNumber = 12;
161 inline const ::std::string& source_app()
const;
162 inline void set_source_app(const ::std::string& value);
163 inline void set_source_app(
const char* value);
164 inline void set_source_app(
const char* value,
size_t size);
165 inline ::std::string* mutable_source_app();
166 inline ::std::string* release_source_app();
167 inline void set_allocated_source_app(::std::string* source_app);
170 inline bool has_dest_type()
const;
171 inline void clear_dest_type();
172 static const int kDestTypeFieldNumber = 13;
173 inline ::Header_PublishDestination dest_type()
const;
174 inline void set_dest_type(::Header_PublishDestination value);
177 inline bool has_dest_platform()
const;
178 inline void clear_dest_platform();
179 static const int kDestPlatformFieldNumber = 14;
180 inline ::google::protobuf::uint32 dest_platform()
const;
181 inline void set_dest_platform(::google::protobuf::uint32 value);
185 inline void set_has_time();
186 inline void clear_has_time();
187 inline void set_has_source_platform();
188 inline void clear_has_source_platform();
189 inline void set_has_source_app();
190 inline void clear_has_source_app();
191 inline void set_has_dest_type();
192 inline void clear_has_dest_type();
193 inline void set_has_dest_platform();
194 inline void clear_has_dest_platform();
196 ::google::protobuf::UnknownFieldSet _unknown_fields_;
198 ::google::protobuf::uint32 _has_bits_[1];
199 mutable int _cached_size_;
200 ::google::protobuf::uint64 time_;
201 ::std::string* source_app_;
202 ::google::protobuf::uint32 source_platform_;
204 ::google::protobuf::uint32 dest_platform_;
205 friend void protobuf_AddDesc_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto();
206 friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto();
207 friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto();
209 void InitAsDefaultInstance();
210 static Header* default_instance_;
220 inline bool Header::has_time()
const {
221 return (_has_bits_[0] & 0x00000001u) != 0;
223 inline void Header::set_has_time() {
224 _has_bits_[0] |= 0x00000001u;
226 inline void Header::clear_has_time() {
227 _has_bits_[0] &= ~0x00000001u;
229 inline void Header::clear_time() {
230 time_ = GOOGLE_ULONGLONG(0);
233 inline ::google::protobuf::uint64 Header::time()
const {
237 inline void Header::set_time(::google::protobuf::uint64 value) {
244 inline bool Header::has_source_platform()
const {
245 return (_has_bits_[0] & 0x00000002u) != 0;
247 inline void Header::set_has_source_platform() {
248 _has_bits_[0] |= 0x00000002u;
250 inline void Header::clear_has_source_platform() {
251 _has_bits_[0] &= ~0x00000002u;
253 inline void Header::clear_source_platform() {
254 source_platform_ = 0u;
255 clear_has_source_platform();
257 inline ::google::protobuf::uint32 Header::source_platform()
const {
259 return source_platform_;
261 inline void Header::set_source_platform(::google::protobuf::uint32 value) {
262 set_has_source_platform();
263 source_platform_ = value;
268 inline bool Header::has_source_app()
const {
269 return (_has_bits_[0] & 0x00000004u) != 0;
271 inline void Header::set_has_source_app() {
272 _has_bits_[0] |= 0x00000004u;
274 inline void Header::clear_has_source_app() {
275 _has_bits_[0] &= ~0x00000004u;
277 inline void Header::clear_source_app() {
278 if (source_app_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
279 source_app_->clear();
281 clear_has_source_app();
283 inline const ::std::string& Header::source_app()
const {
287 inline void Header::set_source_app(const ::std::string& value) {
288 set_has_source_app();
289 if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
290 source_app_ = new ::std::string;
292 source_app_->assign(value);
295 inline void Header::set_source_app(
const char* value) {
296 set_has_source_app();
297 if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
298 source_app_ = new ::std::string;
300 source_app_->assign(value);
303 inline void Header::set_source_app(
const char* value,
size_t size) {
304 set_has_source_app();
305 if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
306 source_app_ = new ::std::string;
308 source_app_->assign(reinterpret_cast<const char*>(value), size);
311 inline ::std::string* Header::mutable_source_app() {
312 set_has_source_app();
313 if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
314 source_app_ = new ::std::string;
319 inline ::std::string* Header::release_source_app() {
320 clear_has_source_app();
321 if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
324 ::std::string* temp = source_app_;
325 source_app_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
329 inline void Header::set_allocated_source_app(::std::string* source_app) {
330 if (source_app_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
334 set_has_source_app();
335 source_app_ = source_app;
337 clear_has_source_app();
338 source_app_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
344 inline bool Header::has_dest_type()
const {
345 return (_has_bits_[0] & 0x00000008u) != 0;
347 inline void Header::set_has_dest_type() {
348 _has_bits_[0] |= 0x00000008u;
350 inline void Header::clear_has_dest_type() {
351 _has_bits_[0] &= ~0x00000008u;
353 inline void Header::clear_dest_type() {
355 clear_has_dest_type();
357 inline ::Header_PublishDestination Header::dest_type()
const {
359 return static_cast< ::Header_PublishDestination
>(dest_type_);
361 inline void Header::set_dest_type(::Header_PublishDestination value) {
362 assert(::Header_PublishDestination_IsValid(value));
369 inline bool Header::has_dest_platform()
const {
370 return (_has_bits_[0] & 0x00000010u) != 0;
372 inline void Header::set_has_dest_platform() {
373 _has_bits_[0] |= 0x00000010u;
375 inline void Header::clear_has_dest_platform() {
376 _has_bits_[0] &= ~0x00000010u;
378 inline void Header::clear_dest_platform() {
380 clear_has_dest_platform();
382 inline ::google::protobuf::uint32 Header::dest_platform()
const {
384 return dest_platform_;
386 inline void Header::set_dest_platform(::google::protobuf::uint32 value) {
387 set_has_dest_platform();
388 dest_platform_ = value;
399 template <>
struct is_proto_enum< ::Header_PublishDestination> : ::google::protobuf::internal::true_type {};
401 inline const EnumDescriptor* GetEnumDescriptor< ::Header_PublishDestination>() {
402 return ::Header_PublishDestination_descriptor();
411 #endif // PROTOBUF_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto__INCLUDED