4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmoos_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmoos_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include <boost/units/quantity.hpp>
35 #include <boost/units/absolute.hpp>
36 #include <boost/units/dimensionless_type.hpp>
37 #include <boost/units/make_scaled_unit.hpp>
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fmoos_2eproto
44 static const ::google::protobuf::internal::ParseTableField
entries[];
45 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
46 static const ::google::protobuf::internal::ParseTable
schema[1];
49 static const ::google::protobuf::uint32
offsets[];
56 class MOOSMessageDefaultTypeInternal;
80 return ::google::protobuf::internal::NameOfEnum(
85 return ::google::protobuf::internal::ParseNamedEnum<MOOSMessage_Type>(
104 *
this = ::std::move(from);
108 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
109 if (
this != &from) InternalSwap(&from);
117 return _internal_metadata_.unknown_fields();
120 return _internal_metadata_.mutable_unknown_fields();
123 static const ::google::protobuf::Descriptor*
descriptor();
149 return CreateMaybeMessage<MOOSMessage>(NULL);
153 return CreateMaybeMessage<MOOSMessage>(arena);
155 void CopyFrom(const ::google::protobuf::Message& from)
final;
156 void MergeFrom(const ::google::protobuf::Message& from)
final;
164 ::
google::protobuf::io::CodedInputStream* input) final;
166 ::
google::protobuf::io::CodedOutputStream* output) const final;
168 bool deterministic, ::
google::protobuf::uint8* target) const final;
174 void SetCachedSize(
int size)
const final;
177 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
180 inline void* MaybeArenaPtr()
const {
185 ::google::protobuf::Metadata
GetMetadata() const final;
205 static inline const ::google::protobuf::EnumDescriptor*
223 const ::std::string&
key()
const;
224 void set_key(const ::std::string& value);
226 void set_key(::std::string&& value);
228 void set_key(
const char* value);
229 void set_key(
const char* value,
size_t size);
238 const ::std::string&
source()
const;
244 void set_source(
const char* value,
size_t size);
290 ::google::protobuf::int32
id()
const;
291 void set_id(::google::protobuf::int32 value);
304 const ::std::string&
svalue()
const;
310 void set_svalue(
const char* value,
size_t size);
326 const ::std::string&
bvalue()
const;
332 void set_bvalue(
const void* value,
size_t size);
342 void clear_has_type();
344 void clear_has_key();
345 void set_has_svalue();
346 void set_has_dvalue();
347 void set_has_bvalue();
348 void set_has_unixtime();
349 void clear_has_unixtime();
352 void set_has_source();
353 void clear_has_source();
354 void set_has_source_aux();
355 void clear_has_source_aux();
356 void set_has_community();
357 void clear_has_community();
359 inline bool has_value()
const;
360 inline void clear_has_value();
363 size_t RequiredFieldsByteSizeFallback()
const;
365 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
366 ::google::protobuf::internal::HasBits<1> _has_bits_;
367 mutable ::google::protobuf::internal::CachedSize _cached_size_;
368 ::google::protobuf::internal::ArenaStringPtr key_;
369 ::google::protobuf::internal::ArenaStringPtr source_;
370 ::google::protobuf::internal::ArenaStringPtr source_aux_;
371 ::google::protobuf::internal::ArenaStringPtr community_;
373 ::google::protobuf::int32 id_;
377 ::google::protobuf::internal::ArenaStringPtr svalue_;
379 ::google::protobuf::internal::ArenaStringPtr bvalue_;
381 ::google::protobuf::uint32 _oneof_case_[1];
383 friend struct ::protobuf_jaiabot_2fmessages_2fmoos_2eproto::TableStruct;
391 #pragma GCC diagnostic push
392 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
398 return (_has_bits_[0] & 0x00000040u) != 0;
400 inline void MOOSMessage::set_has_type() {
401 _has_bits_[0] |= 0x00000040u;
403 inline void MOOSMessage::clear_has_type() {
404 _has_bits_[0] &= ~0x00000040u;
423 return (_has_bits_[0] & 0x00000001u) != 0;
425 inline void MOOSMessage::set_has_key() {
426 _has_bits_[0] |= 0x00000001u;
428 inline void MOOSMessage::clear_has_key() {
429 _has_bits_[0] &= ~0x00000001u;
432 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
437 return key_.GetNoArena();
441 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
448 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
453 GOOGLE_DCHECK(value != NULL);
455 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
460 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
461 ::std::string(
reinterpret_cast<const char*
>(value), size));
467 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
475 return key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
483 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
key);
491 inline void MOOSMessage::set_has_svalue() {
496 value_.svalue_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
503 return value_.svalue_.GetNoArena();
505 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
512 value_.svalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
514 value_.svalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
523 value_.svalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
525 value_.svalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
530 GOOGLE_DCHECK(value != NULL);
534 value_.svalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
536 value_.svalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
537 ::std::string(value));
544 value_.svalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
546 value_.svalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
547 reinterpret_cast<const char*
>(value), size));
554 value_.svalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
557 return value_.svalue_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
563 return value_.svalue_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
570 value_.svalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
575 value_.svalue_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
svalue);
584 inline void MOOSMessage::set_has_dvalue() {
596 return value_.dvalue_;
605 value_.dvalue_ = value;
613 inline void MOOSMessage::set_has_bvalue() {
618 value_.bvalue_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
625 return value_.bvalue_.GetNoArena();
627 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
634 value_.bvalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
636 value_.bvalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
645 value_.bvalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
647 value_.bvalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
652 GOOGLE_DCHECK(value != NULL);
656 value_.bvalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
658 value_.bvalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
659 ::std::string(value));
666 value_.bvalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
668 value_.bvalue_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
669 reinterpret_cast<const char*
>(value), size));
676 value_.bvalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
679 return value_.bvalue_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
685 return value_.bvalue_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
692 value_.bvalue_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
697 value_.bvalue_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
bvalue);
704 return (_has_bits_[0] & 0x00000010u) != 0;
706 inline void MOOSMessage::set_has_unixtime() {
707 _has_bits_[0] |= 0x00000010u;
709 inline void MOOSMessage::clear_has_unixtime() {
710 _has_bits_[0] &= ~0x00000010u;
714 clear_has_unixtime();
728 return (_has_bits_[0] & 0x00000020u) != 0;
730 inline void MOOSMessage::set_has_id() {
731 _has_bits_[0] |= 0x00000020u;
733 inline void MOOSMessage::clear_has_id() {
734 _has_bits_[0] &= ~0x00000020u;
752 return (_has_bits_[0] & 0x00000002u) != 0;
754 inline void MOOSMessage::set_has_source() {
755 _has_bits_[0] |= 0x00000002u;
757 inline void MOOSMessage::clear_has_source() {
758 _has_bits_[0] &= ~0x00000002u;
761 source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
766 return source_.GetNoArena();
770 source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
777 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
782 GOOGLE_DCHECK(value != NULL);
784 source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
789 source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
790 ::std::string(
reinterpret_cast<const char*
>(value), size));
796 return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
804 return source_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
812 source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
source);
818 return (_has_bits_[0] & 0x00000004u) != 0;
820 inline void MOOSMessage::set_has_source_aux() {
821 _has_bits_[0] |= 0x00000004u;
823 inline void MOOSMessage::clear_has_source_aux() {
824 _has_bits_[0] &= ~0x00000004u;
827 source_aux_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
828 clear_has_source_aux();
832 return source_aux_.GetNoArena();
835 set_has_source_aux();
836 source_aux_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
841 set_has_source_aux();
842 source_aux_.SetNoArena(
843 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
848 GOOGLE_DCHECK(value != NULL);
849 set_has_source_aux();
850 source_aux_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
854 set_has_source_aux();
855 source_aux_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
856 ::std::string(
reinterpret_cast<const char*
>(value), size));
860 set_has_source_aux();
862 return source_aux_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
869 clear_has_source_aux();
870 return source_aux_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
874 set_has_source_aux();
876 clear_has_source_aux();
878 source_aux_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
source_aux);
884 return (_has_bits_[0] & 0x00000008u) != 0;
886 inline void MOOSMessage::set_has_community() {
887 _has_bits_[0] |= 0x00000008u;
889 inline void MOOSMessage::clear_has_community() {
890 _has_bits_[0] &= ~0x00000008u;
893 community_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
894 clear_has_community();
898 return community_.GetNoArena();
902 community_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
908 community_.SetNoArena(
909 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
914 GOOGLE_DCHECK(value != NULL);
916 community_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
921 community_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
922 ::std::string(
reinterpret_cast<const char*
>(value), size));
928 return community_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
935 clear_has_community();
936 return community_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
942 clear_has_community();
944 community_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
community);
948 inline bool MOOSMessage::has_value()
const {
951 inline void MOOSMessage::clear_has_value() {
958 #pragma GCC diagnostic pop
971 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::MOOSMessage_Type>() {
980 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmoos_2eproto