4 #ifndef PROTOBUF_goby_2fpb_2fprotobuf_2fheader_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fpb_2fprotobuf_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_2fpb_2fprotobuf_2fheader_2eproto();
38 void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2fheader_2eproto();
39 void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_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 const ::std::string& time()
const;
148 inline void set_time(const ::std::string& value);
149 inline void set_time(
const char* value);
150 inline void set_time(
const char* value,
size_t size);
151 inline ::std::string* mutable_time();
152 inline ::std::string* release_time();
153 inline void set_allocated_time(::std::string* time);
156 inline bool has_source_platform()
const;
157 inline void clear_source_platform();
158 static const int kSourcePlatformFieldNumber = 11;
159 inline const ::std::string& source_platform()
const;
160 inline void set_source_platform(const ::std::string& value);
161 inline void set_source_platform(
const char* value);
162 inline void set_source_platform(
const char* value,
size_t size);
163 inline ::std::string* mutable_source_platform();
164 inline ::std::string* release_source_platform();
165 inline void set_allocated_source_platform(::std::string* source_platform);
168 inline bool has_source_app()
const;
169 inline void clear_source_app();
170 static const int kSourceAppFieldNumber = 12;
171 inline const ::std::string& source_app()
const;
172 inline void set_source_app(const ::std::string& value);
173 inline void set_source_app(
const char* value);
174 inline void set_source_app(
const char* value,
size_t size);
175 inline ::std::string* mutable_source_app();
176 inline ::std::string* release_source_app();
177 inline void set_allocated_source_app(::std::string* source_app);
180 inline bool has_dest_type()
const;
181 inline void clear_dest_type();
182 static const int kDestTypeFieldNumber = 13;
183 inline ::Header_PublishDestination dest_type()
const;
184 inline void set_dest_type(::Header_PublishDestination value);
187 inline bool has_dest_platform()
const;
188 inline void clear_dest_platform();
189 static const int kDestPlatformFieldNumber = 14;
190 inline const ::std::string& dest_platform()
const;
191 inline void set_dest_platform(const ::std::string& value);
192 inline void set_dest_platform(
const char* value);
193 inline void set_dest_platform(
const char* value,
size_t size);
194 inline ::std::string* mutable_dest_platform();
195 inline ::std::string* release_dest_platform();
196 inline void set_allocated_dest_platform(::std::string* dest_platform);
200 inline void set_has_time();
201 inline void clear_has_time();
202 inline void set_has_source_platform();
203 inline void clear_has_source_platform();
204 inline void set_has_source_app();
205 inline void clear_has_source_app();
206 inline void set_has_dest_type();
207 inline void clear_has_dest_type();
208 inline void set_has_dest_platform();
209 inline void clear_has_dest_platform();
211 ::google::protobuf::UnknownFieldSet _unknown_fields_;
213 ::google::protobuf::uint32 _has_bits_[1];
214 mutable int _cached_size_;
215 ::std::string* time_;
216 ::std::string* source_platform_;
217 ::std::string* source_app_;
218 ::std::string* dest_platform_;
220 friend void protobuf_AddDesc_goby_2fpb_2fprotobuf_2fheader_2eproto();
221 friend void protobuf_AssignDesc_goby_2fpb_2fprotobuf_2fheader_2eproto();
222 friend void protobuf_ShutdownFile_goby_2fpb_2fprotobuf_2fheader_2eproto();
224 void InitAsDefaultInstance();
225 static Header* default_instance_;
235 inline bool Header::has_time()
const {
236 return (_has_bits_[0] & 0x00000001u) != 0;
238 inline void Header::set_has_time() {
239 _has_bits_[0] |= 0x00000001u;
241 inline void Header::clear_has_time() {
242 _has_bits_[0] &= ~0x00000001u;
244 inline void Header::clear_time() {
245 if (time_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
250 inline const ::std::string& Header::time()
const {
254 inline void Header::set_time(const ::std::string& value) {
256 if (time_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
257 time_ = new ::std::string;
259 time_->assign(value);
262 inline void Header::set_time(
const char* value) {
264 if (time_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
265 time_ = new ::std::string;
267 time_->assign(value);
270 inline void Header::set_time(
const char* value,
size_t size) {
272 if (time_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
273 time_ = new ::std::string;
275 time_->assign(reinterpret_cast<const char*>(value), size);
278 inline ::std::string* Header::mutable_time() {
280 if (time_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
281 time_ = new ::std::string;
286 inline ::std::string* Header::release_time() {
288 if (time_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
291 ::std::string* temp = time_;
292 time_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
296 inline void Header::set_allocated_time(::std::string* time) {
297 if (time_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
305 time_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
311 inline bool Header::has_source_platform()
const {
312 return (_has_bits_[0] & 0x00000002u) != 0;
314 inline void Header::set_has_source_platform() {
315 _has_bits_[0] |= 0x00000002u;
317 inline void Header::clear_has_source_platform() {
318 _has_bits_[0] &= ~0x00000002u;
320 inline void Header::clear_source_platform() {
321 if (source_platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
322 source_platform_->clear();
324 clear_has_source_platform();
326 inline const ::std::string& Header::source_platform()
const {
328 return *source_platform_;
330 inline void Header::set_source_platform(const ::std::string& value) {
331 set_has_source_platform();
332 if (source_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
333 source_platform_ = new ::std::string;
335 source_platform_->assign(value);
338 inline void Header::set_source_platform(
const char* value) {
339 set_has_source_platform();
340 if (source_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
341 source_platform_ = new ::std::string;
343 source_platform_->assign(value);
346 inline void Header::set_source_platform(
const char* value,
size_t size) {
347 set_has_source_platform();
348 if (source_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
349 source_platform_ = new ::std::string;
351 source_platform_->assign(reinterpret_cast<const char*>(value), size);
354 inline ::std::string* Header::mutable_source_platform() {
355 set_has_source_platform();
356 if (source_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
357 source_platform_ = new ::std::string;
360 return source_platform_;
362 inline ::std::string* Header::release_source_platform() {
363 clear_has_source_platform();
364 if (source_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
367 ::std::string* temp = source_platform_;
368 source_platform_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
372 inline void Header::set_allocated_source_platform(::std::string* source_platform) {
373 if (source_platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
374 delete source_platform_;
376 if (source_platform) {
377 set_has_source_platform();
378 source_platform_ = source_platform;
380 clear_has_source_platform();
381 source_platform_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
387 inline bool Header::has_source_app()
const {
388 return (_has_bits_[0] & 0x00000004u) != 0;
390 inline void Header::set_has_source_app() {
391 _has_bits_[0] |= 0x00000004u;
393 inline void Header::clear_has_source_app() {
394 _has_bits_[0] &= ~0x00000004u;
396 inline void Header::clear_source_app() {
397 if (source_app_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
398 source_app_->clear();
400 clear_has_source_app();
402 inline const ::std::string& Header::source_app()
const {
406 inline void Header::set_source_app(const ::std::string& value) {
407 set_has_source_app();
408 if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
409 source_app_ = new ::std::string;
411 source_app_->assign(value);
414 inline void Header::set_source_app(
const char* value) {
415 set_has_source_app();
416 if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
417 source_app_ = new ::std::string;
419 source_app_->assign(value);
422 inline void Header::set_source_app(
const char* value,
size_t size) {
423 set_has_source_app();
424 if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
425 source_app_ = new ::std::string;
427 source_app_->assign(reinterpret_cast<const char*>(value), size);
430 inline ::std::string* Header::mutable_source_app() {
431 set_has_source_app();
432 if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
433 source_app_ = new ::std::string;
438 inline ::std::string* Header::release_source_app() {
439 clear_has_source_app();
440 if (source_app_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
443 ::std::string* temp = source_app_;
444 source_app_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
448 inline void Header::set_allocated_source_app(::std::string* source_app) {
449 if (source_app_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
453 set_has_source_app();
454 source_app_ = source_app;
456 clear_has_source_app();
457 source_app_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
463 inline bool Header::has_dest_type()
const {
464 return (_has_bits_[0] & 0x00000008u) != 0;
466 inline void Header::set_has_dest_type() {
467 _has_bits_[0] |= 0x00000008u;
469 inline void Header::clear_has_dest_type() {
470 _has_bits_[0] &= ~0x00000008u;
472 inline void Header::clear_dest_type() {
474 clear_has_dest_type();
476 inline ::Header_PublishDestination Header::dest_type()
const {
478 return static_cast< ::Header_PublishDestination
>(dest_type_);
480 inline void Header::set_dest_type(::Header_PublishDestination value) {
481 assert(::Header_PublishDestination_IsValid(value));
488 inline bool Header::has_dest_platform()
const {
489 return (_has_bits_[0] & 0x00000010u) != 0;
491 inline void Header::set_has_dest_platform() {
492 _has_bits_[0] |= 0x00000010u;
494 inline void Header::clear_has_dest_platform() {
495 _has_bits_[0] &= ~0x00000010u;
497 inline void Header::clear_dest_platform() {
498 if (dest_platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
499 dest_platform_->clear();
501 clear_has_dest_platform();
503 inline const ::std::string& Header::dest_platform()
const {
505 return *dest_platform_;
507 inline void Header::set_dest_platform(const ::std::string& value) {
508 set_has_dest_platform();
509 if (dest_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
510 dest_platform_ = new ::std::string;
512 dest_platform_->assign(value);
515 inline void Header::set_dest_platform(
const char* value) {
516 set_has_dest_platform();
517 if (dest_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
518 dest_platform_ = new ::std::string;
520 dest_platform_->assign(value);
523 inline void Header::set_dest_platform(
const char* value,
size_t size) {
524 set_has_dest_platform();
525 if (dest_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
526 dest_platform_ = new ::std::string;
528 dest_platform_->assign(reinterpret_cast<const char*>(value), size);
531 inline ::std::string* Header::mutable_dest_platform() {
532 set_has_dest_platform();
533 if (dest_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
534 dest_platform_ = new ::std::string;
537 return dest_platform_;
539 inline ::std::string* Header::release_dest_platform() {
540 clear_has_dest_platform();
541 if (dest_platform_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
544 ::std::string* temp = dest_platform_;
545 dest_platform_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
549 inline void Header::set_allocated_dest_platform(::std::string* dest_platform) {
550 if (dest_platform_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
551 delete dest_platform_;
554 set_has_dest_platform();
555 dest_platform_ = dest_platform;
557 clear_has_dest_platform();
558 dest_platform_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
570 template <>
struct is_proto_enum< ::Header_PublishDestination> : ::google::protobuf::internal::true_type {};
572 inline const EnumDescriptor* GetEnumDescriptor< ::Header_PublishDestination>() {
573 return ::Header_PublishDestination_descriptor();
582 #endif // PROTOBUF_goby_2fpb_2fprotobuf_2fheader_2eproto__INCLUDED