4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fany_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fany_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
42 #pragma GCC system_header
45 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
48 #include <sys/sysmacros.h>
53 #include <google/protobuf/port_def.inc>
54 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fany_2eproto IGNITION_MSGS_VISIBLE
55 PROTOBUF_NAMESPACE_OPEN
59 PROTOBUF_NAMESPACE_CLOSE
63 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
65 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
67 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
69 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
70 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
71 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
77 class AnyDefaultTypeInternal;
81 PROTOBUF_NAMESPACE_OPEN
82 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Any* Arena::CreateMaybeMessage<::ignition::msgs::Any>(Arena*);
83 PROTOBUF_NAMESPACE_CLOSE
111 "Incorrect type passed to function Any_ValueType_Name.");
112 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
116 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Any_ValueType* value) {
117 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Any_ValueType>(
122 class IGNITION_MSGS_VISIBLE Any PROTOBUF_FINAL :
123 public ::PROTOBUF_NAMESPACE_ID::Message {
125 inline Any() : Any(nullptr) {}
131 *
this = ::std::move(from);
139 if (GetArena() == from.GetArena()) {
140 if (
this != &from) InternalSwap(&from);
147 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
148 return GetDescriptor();
151 return GetMetadataStatic().descriptor;
154 return GetMetadataStatic().reflection;
166 kQuaternionValue = 10,
172 return reinterpret_cast<const Any*
>(
175 static constexpr
int kIndexInFileMessages =
178 friend void swap(Any& a, Any& b) {
182 if (other ==
this)
return;
183 if (GetArena() == other->GetArena()) {
186 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
190 if (other ==
this)
return;
191 GOOGLE_DCHECK(GetArena() == other->GetArena());
197 inline Any*
New() const final {
198 return CreateMaybeMessage<Any>(
nullptr);
201 Any*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
202 return CreateMaybeMessage<Any>(arena);
204 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
205 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
208 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
209 bool IsInitialized() const final;
211 size_t ByteSizeLong() const final;
212 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
213 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
214 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
215 int GetCachedSize() const final {
return _cached_size_.Get(); }
218 inline void SharedCtor();
219 inline void SharedDtor();
220 void SetCachedSize(
int size)
const final;
221 void InternalSwap(Any* other);
222 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
223 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
224 return "ignition.msgs.Any";
227 explicit Any(::PROTOBUF_NAMESPACE_ID::Arena* arena);
229 static void ArenaDtor(
void*
object);
230 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
235 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
272 static constexpr
int ValueType_ARRAYSIZE =
274 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
282 "Incorrect type passed to function ValueType_Name.");
293 kHeaderFieldNumber = 1,
294 kTypeFieldNumber = 2,
295 kDoubleValueFieldNumber = 3,
296 kIntValueFieldNumber = 4,
297 kStringValueFieldNumber = 5,
298 kBoolValueFieldNumber = 6,
299 kVector3DValueFieldNumber = 7,
300 kColorValueFieldNumber = 8,
301 kPose3DValueFieldNumber = 9,
302 kQuaternionValueFieldNumber = 10,
303 kTimeValueFieldNumber = 11,
308 bool _internal_has_header()
const;
311 const ::ignition::msgs::Header&
header()
const;
316 const ::ignition::msgs::Header& _internal_header()
const;
317 ::ignition::msgs::Header* _internal_mutable_header();
320 ::ignition::msgs::Header* header);
334 bool _internal_has_double_value()
const;
340 double _internal_double_value()
const;
341 void _internal_set_double_value(
double value);
346 bool _internal_has_int_value()
const;
352 ::PROTOBUF_NAMESPACE_ID::int32 _internal_int_value()
const;
353 void _internal_set_int_value(::PROTOBUF_NAMESPACE_ID::int32 value);
358 bool _internal_has_string_value()
const;
371 void _internal_set_string_value(
const std::string& value);
377 bool _internal_has_bool_value()
const;
383 bool _internal_bool_value()
const;
384 void _internal_set_bool_value(
bool value);
390 bool _internal_has_vector3d_value()
const;
398 const ::ignition::msgs::Vector3d& _internal_vector3d_value()
const;
399 ::ignition::msgs::Vector3d* _internal_mutable_vector3d_value();
402 ::ignition::msgs::Vector3d* vector3d_value);
408 bool _internal_has_color_value()
const;
416 const ::ignition::msgs::Color& _internal_color_value()
const;
417 ::ignition::msgs::Color* _internal_mutable_color_value();
420 ::ignition::msgs::Color* color_value);
426 bool _internal_has_pose3d_value()
const;
434 const ::ignition::msgs::Pose& _internal_pose3d_value()
const;
435 ::ignition::msgs::Pose* _internal_mutable_pose3d_value();
438 ::ignition::msgs::Pose* pose3d_value);
444 bool _internal_has_quaternion_value()
const;
452 const ::ignition::msgs::Quaternion& _internal_quaternion_value()
const;
453 ::ignition::msgs::Quaternion* _internal_mutable_quaternion_value();
456 ::ignition::msgs::Quaternion* quaternion_value);
462 bool _internal_has_time_value()
const;
470 const ::ignition::msgs::Time& _internal_time_value()
const;
471 ::ignition::msgs::Time* _internal_mutable_time_value();
474 ::ignition::msgs::Time* time_value);
482 void set_has_double_value();
483 void set_has_int_value();
484 void set_has_string_value();
485 void set_has_bool_value();
486 void set_has_vector3d_value();
487 void set_has_color_value();
488 void set_has_pose3d_value();
489 void set_has_quaternion_value();
490 void set_has_time_value();
492 inline bool has_value()
const;
493 inline void clear_has_value();
495 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
496 typedef void InternalArenaConstructable_;
497 typedef void DestructorSkippable_;
498 ::ignition::msgs::Header* header_;
502 double double_value_;
503 ::PROTOBUF_NAMESPACE_ID::int32 int_value_;
504 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
506 ::ignition::msgs::Vector3d* vector3d_value_;
507 ::ignition::msgs::Color* color_value_;
508 ::ignition::msgs::Pose* pose3d_value_;
509 ::ignition::msgs::Quaternion* quaternion_value_;
510 ::ignition::msgs::Time* time_value_;
512 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
513 ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
515 friend struct ::TableStruct_ignition_2fmsgs_2fany_2eproto;
523 #pragma GCC diagnostic push
524 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
529 inline bool Any::_internal_has_header()
const {
530 return this != internal_default_instance() && header_ !=
nullptr;
532 inline bool Any::has_header()
const {
533 return _internal_has_header();
535 inline const ::ignition::msgs::Header& Any::_internal_header()
const {
536 const ::ignition::msgs::Header* p = header_;
537 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
540 inline const ::ignition::msgs::Header& Any::header()
const {
542 return _internal_header();
544 inline void Any::unsafe_arena_set_allocated_header(
545 ::ignition::msgs::Header* header) {
546 if (GetArena() ==
nullptr) {
547 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
557 inline ::ignition::msgs::Header* Any::release_header() {
559 ::ignition::msgs::Header* temp = header_;
561 if (GetArena() !=
nullptr) {
562 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
566 inline ::ignition::msgs::Header* Any::unsafe_arena_release_header() {
569 ::ignition::msgs::Header* temp = header_;
573 inline ::ignition::msgs::Header* Any::_internal_mutable_header() {
575 if (header_ ==
nullptr) {
576 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
581 inline ::ignition::msgs::Header* Any::mutable_header() {
583 return _internal_mutable_header();
585 inline void Any::set_allocated_header(::ignition::msgs::Header* header) {
586 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
587 if (message_arena ==
nullptr) {
588 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
591 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
592 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
593 if (message_arena != submessage_arena) {
594 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
595 message_arena, header, submessage_arena);
606 inline void Any::clear_type() {
614 return _internal_type();
621 _internal_set_type(value);
626 inline bool Any::_internal_has_double_value()
const {
627 return value_case() == kDoubleValue;
629 inline void Any::set_has_double_value() {
630 _oneof_case_[0] = kDoubleValue;
632 inline void Any::clear_double_value() {
633 if (_internal_has_double_value()) {
634 value_.double_value_ = 0;
638 inline double Any::_internal_double_value()
const {
639 if (_internal_has_double_value()) {
640 return value_.double_value_;
644 inline void Any::_internal_set_double_value(
double value) {
645 if (!_internal_has_double_value()) {
647 set_has_double_value();
649 value_.double_value_ = value;
651 inline double Any::double_value()
const {
653 return _internal_double_value();
655 inline void Any::set_double_value(
double value) {
656 _internal_set_double_value(value);
661 inline bool Any::_internal_has_int_value()
const {
662 return value_case() == kIntValue;
664 inline void Any::set_has_int_value() {
665 _oneof_case_[0] = kIntValue;
667 inline void Any::clear_int_value() {
668 if (_internal_has_int_value()) {
669 value_.int_value_ = 0;
673 inline ::PROTOBUF_NAMESPACE_ID::int32 Any::_internal_int_value()
const {
674 if (_internal_has_int_value()) {
675 return value_.int_value_;
679 inline void Any::_internal_set_int_value(::PROTOBUF_NAMESPACE_ID::int32 value) {
680 if (!_internal_has_int_value()) {
684 value_.int_value_ = value;
686 inline ::PROTOBUF_NAMESPACE_ID::int32 Any::int_value()
const {
688 return _internal_int_value();
690 inline void Any::set_int_value(::PROTOBUF_NAMESPACE_ID::int32 value) {
691 _internal_set_int_value(value);
696 inline bool Any::_internal_has_string_value()
const {
697 return value_case() == kStringValue;
699 inline void Any::set_has_string_value() {
700 _oneof_case_[0] = kStringValue;
702 inline void Any::clear_string_value() {
703 if (_internal_has_string_value()) {
704 value_.string_value_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
708 inline const std::string& Any::string_value()
const {
710 return _internal_string_value();
712 inline void Any::set_string_value(
const std::string& value) {
713 _internal_set_string_value(value);
718 return _internal_mutable_string_value();
720 inline const std::string& Any::_internal_string_value()
const {
721 if (_internal_has_string_value()) {
722 return value_.string_value_.Get();
724 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
726 inline void Any::_internal_set_string_value(
const std::string& value) {
727 if (!_internal_has_string_value()) {
729 set_has_string_value();
730 value_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
732 value_.string_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
734 inline void Any::set_string_value(
std::string&& value) {
736 if (!_internal_has_string_value()) {
738 set_has_string_value();
739 value_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
741 value_.string_value_.Set(
742 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
745 inline void Any::set_string_value(
const char* value) {
746 GOOGLE_DCHECK(value !=
nullptr);
747 if (!_internal_has_string_value()) {
749 set_has_string_value();
750 value_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
752 value_.string_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
756 inline void Any::set_string_value(
const char* value,
758 if (!_internal_has_string_value()) {
760 set_has_string_value();
761 value_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
763 value_.string_value_.Set(
764 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
765 reinterpret_cast<const char*
>(value), size),
769 inline std::string* Any::_internal_mutable_string_value() {
770 if (!_internal_has_string_value()) {
772 set_has_string_value();
773 value_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
775 return value_.string_value_.Mutable(
776 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
780 if (_internal_has_string_value()) {
782 return value_.string_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
787 inline void Any::set_allocated_string_value(
std::string* string_value) {
791 if (string_value !=
nullptr) {
792 set_has_string_value();
793 value_.string_value_.UnsafeSetDefault(string_value);
794 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena();
795 if (arena !=
nullptr) {
796 arena->Own(string_value);
803 inline bool Any::_internal_has_bool_value()
const {
804 return value_case() == kBoolValue;
806 inline void Any::set_has_bool_value() {
807 _oneof_case_[0] = kBoolValue;
809 inline void Any::clear_bool_value() {
810 if (_internal_has_bool_value()) {
811 value_.bool_value_ =
false;
815 inline bool Any::_internal_bool_value()
const {
816 if (_internal_has_bool_value()) {
817 return value_.bool_value_;
821 inline void Any::_internal_set_bool_value(
bool value) {
822 if (!_internal_has_bool_value()) {
824 set_has_bool_value();
826 value_.bool_value_ = value;
828 inline bool Any::bool_value()
const {
830 return _internal_bool_value();
832 inline void Any::set_bool_value(
bool value) {
833 _internal_set_bool_value(value);
838 inline bool Any::_internal_has_vector3d_value()
const {
839 return value_case() == kVector3DValue;
841 inline bool Any::has_vector3d_value()
const {
842 return _internal_has_vector3d_value();
844 inline void Any::set_has_vector3d_value() {
845 _oneof_case_[0] = kVector3DValue;
847 inline ::ignition::msgs::Vector3d* Any::release_vector3d_value() {
849 if (_internal_has_vector3d_value()) {
851 ::ignition::msgs::Vector3d* temp = value_.vector3d_value_;
852 if (GetArena() !=
nullptr) {
853 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
855 value_.vector3d_value_ =
nullptr;
861 inline const ::ignition::msgs::Vector3d& Any::_internal_vector3d_value()
const {
862 return _internal_has_vector3d_value()
863 ? *value_.vector3d_value_
866 inline const ::ignition::msgs::Vector3d& Any::vector3d_value()
const {
868 return _internal_vector3d_value();
870 inline ::ignition::msgs::Vector3d* Any::unsafe_arena_release_vector3d_value() {
872 if (_internal_has_vector3d_value()) {
874 ::ignition::msgs::Vector3d* temp = value_.vector3d_value_;
875 value_.vector3d_value_ =
nullptr;
881 inline void Any::unsafe_arena_set_allocated_vector3d_value(::ignition::msgs::Vector3d* vector3d_value) {
883 if (vector3d_value) {
884 set_has_vector3d_value();
885 value_.vector3d_value_ = vector3d_value;
889 inline ::ignition::msgs::Vector3d* Any::_internal_mutable_vector3d_value() {
890 if (!_internal_has_vector3d_value()) {
892 set_has_vector3d_value();
893 value_.vector3d_value_ = CreateMaybeMessage< ::ignition::msgs::Vector3d >(GetArena());
895 return value_.vector3d_value_;
897 inline ::ignition::msgs::Vector3d* Any::mutable_vector3d_value() {
899 return _internal_mutable_vector3d_value();
903 inline bool Any::_internal_has_color_value()
const {
904 return value_case() == kColorValue;
906 inline bool Any::has_color_value()
const {
907 return _internal_has_color_value();
909 inline void Any::set_has_color_value() {
910 _oneof_case_[0] = kColorValue;
912 inline ::ignition::msgs::Color* Any::release_color_value() {
914 if (_internal_has_color_value()) {
916 ::ignition::msgs::Color* temp = value_.color_value_;
917 if (GetArena() !=
nullptr) {
918 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
920 value_.color_value_ =
nullptr;
926 inline const ::ignition::msgs::Color& Any::_internal_color_value()
const {
927 return _internal_has_color_value()
928 ? *value_.color_value_
931 inline const ::ignition::msgs::Color& Any::color_value()
const {
933 return _internal_color_value();
935 inline ::ignition::msgs::Color* Any::unsafe_arena_release_color_value() {
937 if (_internal_has_color_value()) {
939 ::ignition::msgs::Color* temp = value_.color_value_;
940 value_.color_value_ =
nullptr;
946 inline void Any::unsafe_arena_set_allocated_color_value(::ignition::msgs::Color* color_value) {
949 set_has_color_value();
950 value_.color_value_ = color_value;
954 inline ::ignition::msgs::Color* Any::_internal_mutable_color_value() {
955 if (!_internal_has_color_value()) {
957 set_has_color_value();
958 value_.color_value_ = CreateMaybeMessage< ::ignition::msgs::Color >(GetArena());
960 return value_.color_value_;
962 inline ::ignition::msgs::Color* Any::mutable_color_value() {
964 return _internal_mutable_color_value();
968 inline bool Any::_internal_has_pose3d_value()
const {
969 return value_case() == kPose3DValue;
971 inline bool Any::has_pose3d_value()
const {
972 return _internal_has_pose3d_value();
974 inline void Any::set_has_pose3d_value() {
975 _oneof_case_[0] = kPose3DValue;
977 inline ::ignition::msgs::Pose* Any::release_pose3d_value() {
979 if (_internal_has_pose3d_value()) {
981 ::ignition::msgs::Pose* temp = value_.pose3d_value_;
982 if (GetArena() !=
nullptr) {
983 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
985 value_.pose3d_value_ =
nullptr;
991 inline const ::ignition::msgs::Pose& Any::_internal_pose3d_value()
const {
992 return _internal_has_pose3d_value()
993 ? *value_.pose3d_value_
996 inline const ::ignition::msgs::Pose& Any::pose3d_value()
const {
998 return _internal_pose3d_value();
1000 inline ::ignition::msgs::Pose* Any::unsafe_arena_release_pose3d_value() {
1002 if (_internal_has_pose3d_value()) {
1004 ::ignition::msgs::Pose* temp = value_.pose3d_value_;
1005 value_.pose3d_value_ =
nullptr;
1011 inline void Any::unsafe_arena_set_allocated_pose3d_value(::ignition::msgs::Pose* pose3d_value) {
1014 set_has_pose3d_value();
1015 value_.pose3d_value_ = pose3d_value;
1019 inline ::ignition::msgs::Pose* Any::_internal_mutable_pose3d_value() {
1020 if (!_internal_has_pose3d_value()) {
1022 set_has_pose3d_value();
1023 value_.pose3d_value_ = CreateMaybeMessage< ::ignition::msgs::Pose >(GetArena());
1025 return value_.pose3d_value_;
1027 inline ::ignition::msgs::Pose* Any::mutable_pose3d_value() {
1029 return _internal_mutable_pose3d_value();
1033 inline bool Any::_internal_has_quaternion_value()
const {
1034 return value_case() == kQuaternionValue;
1036 inline bool Any::has_quaternion_value()
const {
1037 return _internal_has_quaternion_value();
1039 inline void Any::set_has_quaternion_value() {
1040 _oneof_case_[0] = kQuaternionValue;
1042 inline ::ignition::msgs::Quaternion* Any::release_quaternion_value() {
1044 if (_internal_has_quaternion_value()) {
1046 ::ignition::msgs::Quaternion* temp = value_.quaternion_value_;
1047 if (GetArena() !=
nullptr) {
1048 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1050 value_.quaternion_value_ =
nullptr;
1056 inline const ::ignition::msgs::Quaternion& Any::_internal_quaternion_value()
const {
1057 return _internal_has_quaternion_value()
1058 ? *value_.quaternion_value_
1061 inline const ::ignition::msgs::Quaternion& Any::quaternion_value()
const {
1063 return _internal_quaternion_value();
1065 inline ::ignition::msgs::Quaternion* Any::unsafe_arena_release_quaternion_value() {
1067 if (_internal_has_quaternion_value()) {
1069 ::ignition::msgs::Quaternion* temp = value_.quaternion_value_;
1070 value_.quaternion_value_ =
nullptr;
1076 inline void Any::unsafe_arena_set_allocated_quaternion_value(::ignition::msgs::Quaternion* quaternion_value) {
1078 if (quaternion_value) {
1079 set_has_quaternion_value();
1080 value_.quaternion_value_ = quaternion_value;
1084 inline ::ignition::msgs::Quaternion* Any::_internal_mutable_quaternion_value() {
1085 if (!_internal_has_quaternion_value()) {
1087 set_has_quaternion_value();
1088 value_.quaternion_value_ = CreateMaybeMessage< ::ignition::msgs::Quaternion >(GetArena());
1090 return value_.quaternion_value_;
1092 inline ::ignition::msgs::Quaternion* Any::mutable_quaternion_value() {
1094 return _internal_mutable_quaternion_value();
1098 inline bool Any::_internal_has_time_value()
const {
1099 return value_case() == kTimeValue;
1101 inline bool Any::has_time_value()
const {
1102 return _internal_has_time_value();
1104 inline void Any::set_has_time_value() {
1105 _oneof_case_[0] = kTimeValue;
1107 inline ::ignition::msgs::Time* Any::release_time_value() {
1109 if (_internal_has_time_value()) {
1111 ::ignition::msgs::Time* temp = value_.time_value_;
1112 if (GetArena() !=
nullptr) {
1113 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1115 value_.time_value_ =
nullptr;
1121 inline const ::ignition::msgs::Time& Any::_internal_time_value()
const {
1122 return _internal_has_time_value()
1123 ? *value_.time_value_
1126 inline const ::ignition::msgs::Time& Any::time_value()
const {
1128 return _internal_time_value();
1130 inline ::ignition::msgs::Time* Any::unsafe_arena_release_time_value() {
1132 if (_internal_has_time_value()) {
1134 ::ignition::msgs::Time* temp = value_.time_value_;
1135 value_.time_value_ =
nullptr;
1141 inline void Any::unsafe_arena_set_allocated_time_value(::ignition::msgs::Time* time_value) {
1144 set_has_time_value();
1145 value_.time_value_ = time_value;
1149 inline ::ignition::msgs::Time* Any::_internal_mutable_time_value() {
1150 if (!_internal_has_time_value()) {
1152 set_has_time_value();
1153 value_.time_value_ = CreateMaybeMessage< ::ignition::msgs::Time >(GetArena());
1155 return value_.time_value_;
1157 inline ::ignition::msgs::Time* Any::mutable_time_value() {
1159 return _internal_mutable_time_value();
1162 inline bool Any::has_value()
const {
1163 return value_case() != VALUE_NOT_SET;
1165 inline void Any::clear_has_value() {
1166 _oneof_case_[0] = VALUE_NOT_SET;
1168 inline Any::ValueCase Any::value_case()
const {
1169 return Any::ValueCase(_oneof_case_[0]);
1172 #pragma GCC diagnostic pop
1184 PROTOBUF_NAMESPACE_OPEN
1188 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Any_ValueType>() {
1192 PROTOBUF_NAMESPACE_CLOSE
1195 #pragma warning(pop)
1199 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fany_2eproto
Any()
Definition: any.pb.h:125
std::string * release_string_value()
void unsafe_arena_set_allocated_vector3d_value(::ignition::msgs::Vector3d *vector3d_value)
void set_string_value(std::string &&value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: any.pb.h:153
Any(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::ignition::msgs::Pose * release_pose3d_value()
Any & operator=(const Any &from)
Definition: any.pb.h:134
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
::ignition::msgs::Quaternion * unsafe_arena_release_quaternion_value()
bool has_pose3d_value() const
::ignition::msgs::Header * mutable_header()
::ignition::msgs::Vector3d * release_vector3d_value()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: any.pb.h:147
void clear_quaternion_value()
Any & operator=(Any &&from) noexcept
Definition: any.pb.h:138
const ::ignition::msgs::Quaternion & quaternion_value() const
::ignition::msgs::Vector3d * unsafe_arena_release_vector3d_value()
static bool ValueType_IsValid(int value)
Definition: any.pb.h:265
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * mutable_string_value()
::ignition::msgs::Quaternion * mutable_quaternion_value()
void set_allocated_string_value(std::string *string_value)
::ignition::msgs::Time * mutable_time_value()
void UnsafeArenaSwap(Any *other)
Definition: any.pb.h:189
::PROTOBUF_NAMESPACE_ID::int32 int_value() const
const ::ignition::msgs::Vector3d & vector3d_value() const
void unsafe_arena_set_allocated_pose3d_value(::ignition::msgs::Pose *pose3d_value)
void clear_double_value()
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
ValueCase
Definition: any.pb.h:158
void set_allocated_color_value(::ignition::msgs::Color *color_value)
::ignition::msgs::Time * release_time_value()
void MergeFrom(const Any &from)
void set_string_value(const std::string &value)
void unsafe_arena_set_allocated_time_value(::ignition::msgs::Time *time_value)
::ignition::msgs::Color * unsafe_arena_release_color_value()
void set_double_value(double value)
::ignition::msgs::Quaternion * release_quaternion_value()
void set_bool_value(bool value)
::ignition::msgs::Header * unsafe_arena_release_header()
void set_type(::ignition::msgs::Any_ValueType value)
void CopyFrom(const Any &from)
Any_ValueType ValueType
Definition: any.pb.h:244
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Any(Any &&from) noexcept
Definition: any.pb.h:129
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ValueType_descriptor()
Definition: any.pb.h:275
void set_string_value(const char *value)
void unsafe_arena_set_allocated_color_value(::ignition::msgs::Color *color_value)
void set_allocated_vector3d_value(::ignition::msgs::Vector3d *vector3d_value)
::ignition::msgs::Any_ValueType type() const
static bool ValueType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ValueType *value)
Definition: any.pb.h:285
void clear_pose3d_value()
ValueCase value_case() const
void unsafe_arena_set_allocated_quaternion_value(::ignition::msgs::Quaternion *quaternion_value)
double double_value() const
const ::ignition::msgs::Pose & pose3d_value() const
friend void swap(Any &a, Any &b)
Definition: any.pb.h:178
void set_allocated_header(::ignition::msgs::Header *header)
const ::ignition::msgs::Color & color_value() const
void set_allocated_pose3d_value(::ignition::msgs::Pose *pose3d_value)
Any * New() const final
Definition: any.pb.h:197
const ::ignition::msgs::Time & time_value() const
::ignition::msgs::Time * unsafe_arena_release_time_value()
::ignition::msgs::Color * release_color_value()
::ignition::msgs::Pose * mutable_pose3d_value()
static const std::string & ValueType_Name(T enum_t_value)
Definition: any.pb.h:279
bool has_color_value() const
void set_int_value(::PROTOBUF_NAMESPACE_ID::int32 value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void clear_vector3d_value()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: any.pb.h:150
void set_allocated_quaternion_value(::ignition::msgs::Quaternion *quaternion_value)
bool has_vector3d_value() const
bool has_quaternion_value() const
void Swap(Any *other)
Definition: any.pb.h:181
bool has_time_value() const
const std::string & string_value() const
void set_string_value(const char *value, size_t size)
void set_allocated_time_value(::ignition::msgs::Time *time_value)
::ignition::msgs::Vector3d * mutable_vector3d_value()
::ignition::msgs::Color * mutable_color_value()
Any * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: any.pb.h:201
::ignition::msgs::Pose * unsafe_arena_release_pose3d_value()
const ::ignition::msgs::Header & header() const
static const Any * internal_default_instance()
Definition: any.pb.h:171
void clear_string_value()
static const Any & default_instance()
IGNITION_MSGS_VISIBLE ColorDefaultTypeInternal _Color_default_instance_
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
IGNITION_MSGS_VISIBLE QuaternionDefaultTypeInternal _Quaternion_default_instance_
constexpr Any_ValueType Any_ValueType_ValueType_MAX
Definition: any.pb.h:103
Any_ValueType
Definition: any.pb.h:87
@ Any_ValueType_VECTOR3D
Definition: any.pb.h:93
@ Any_ValueType_INT32
Definition: any.pb.h:90
@ Any_ValueType_POSE3D
Definition: any.pb.h:95
@ Any_ValueType_DOUBLE
Definition: any.pb.h:89
@ Any_ValueType_Any_ValueType_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: any.pb.h:98
@ Any_ValueType_STRING
Definition: any.pb.h:91
@ Any_ValueType_BOOLEAN
Definition: any.pb.h:92
@ Any_ValueType_COLOR
Definition: any.pb.h:94
@ Any_ValueType_Any_ValueType_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: any.pb.h:99
@ Any_ValueType_TIME
Definition: any.pb.h:97
@ Any_ValueType_NONE
Definition: any.pb.h:88
@ Any_ValueType_QUATERNIOND
Definition: any.pb.h:96
std::shared_ptr< Any > AnySharedPtr
Definition: any.pb.h:1177
std::unique_ptr< const Any > ConstAnyUniquePtr
Definition: any.pb.h:1176
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Any_ValueType_descriptor()
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE bool Any_ValueType_IsValid(int value)
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
IGNITION_MSGS_VISIBLE AnyDefaultTypeInternal _Any_default_instance_
bool Any_ValueType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Any_ValueType *value)
Definition: any.pb.h:115
constexpr Any_ValueType Any_ValueType_ValueType_MIN
Definition: any.pb.h:102
std::shared_ptr< const Any > ConstAnySharedPtr
Definition: any.pb.h:1178
IGNITION_MSGS_VISIBLE TimeDefaultTypeInternal _Time_default_instance_
constexpr int Any_ValueType_ValueType_ARRAYSIZE
Definition: any.pb.h:104
const std::string & Any_ValueType_Name(T enum_t_value)
Definition: any.pb.h:108
std::unique_ptr< Any > AnyUniquePtr
Definition: any.pb.h:1175
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)