4 #ifndef PROTOBUF_ignition_2fmsgs_2fany_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fany_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 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 3000000 < 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/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/generated_enum_reflection.h> 30 #include <google/protobuf/unknown_field_set.h> 38 #pragma GCC system_header 41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 44 #include <sys/sysmacros.h> 81 return ::google::protobuf::internal::NameOfEnum(
86 return ::google::protobuf::internal::ParseNamedEnum<Any_ValueType>(
91 class IGNITION_MSGS_VISIBLE
Any :
public ::google::protobuf::Message {
103 static const ::google::protobuf::Descriptor* descriptor();
104 static const Any& default_instance();
114 kQuaternionValue = 10,
119 void Swap(
Any* other);
125 Any* New(::google::protobuf::Arena* arena)
const;
126 void CopyFrom(const ::google::protobuf::Message& from);
127 void MergeFrom(const ::google::protobuf::Message& from);
128 void CopyFrom(
const Any& from);
129 void MergeFrom(
const Any& from);
131 bool IsInitialized()
const;
133 int ByteSize()
const;
134 bool MergePartialFromCodedStream(
135 ::google::protobuf::io::CodedInputStream* input);
136 void SerializeWithCachedSizes(
137 ::google::protobuf::io::CodedOutputStream* output)
const;
138 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
139 bool deterministic, ::google::protobuf::uint8* output)
const;
141 return InternalSerializeWithCachedSizesToArray(
false, output);
147 void SetCachedSize(
int size)
const;
148 void InternalSwap(
Any* other);
150 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
151 return _internal_metadata_.arena();
153 inline void* MaybeArenaPtr()
const {
154 return _internal_metadata_.raw_arena_ptr();
158 ::google::protobuf::Metadata GetMetadata()
const;
163 static const ValueType NONE =
165 static const ValueType DOUBLE =
167 static const ValueType INT32 =
169 static const ValueType STRING =
171 static const ValueType BOOLEAN =
173 static const ValueType VECTOR3D =
175 static const ValueType COLOR =
177 static const ValueType POSE3D =
179 static const ValueType QUATERNIOND =
181 static const ValueType TIME =
186 static const ValueType ValueType_MIN =
188 static const ValueType ValueType_MAX =
190 static const int ValueType_ARRAYSIZE =
192 static inline const ::google::protobuf::EnumDescriptor*
207 bool has_header()
const;
209 static const int kHeaderFieldNumber = 1;
210 const ::ignition::msgs::Header& header()
const;
217 static const int kTypeFieldNumber = 2;
223 bool has_double_value()
const;
225 void clear_double_value();
226 static const int kDoubleValueFieldNumber = 3;
227 double double_value()
const;
228 void set_double_value(
double value);
232 bool has_int_value()
const;
234 void clear_int_value();
235 static const int kIntValueFieldNumber = 4;
236 ::google::protobuf::int32 int_value()
const;
237 void set_int_value(::google::protobuf::int32 value);
241 bool has_string_value()
const;
243 void clear_string_value();
244 static const int kStringValueFieldNumber = 5;
245 const ::std::string& string_value()
const;
246 void set_string_value(const ::std::string& value);
247 void set_string_value(
const char* value);
248 void set_string_value(
const char* value,
size_t size);
251 void set_allocated_string_value(::
std::string* string_value);
255 bool has_bool_value()
const;
257 void clear_bool_value();
258 static const int kBoolValueFieldNumber = 6;
259 bool bool_value()
const;
260 void set_bool_value(
bool value);
263 bool has_vector3d_value()
const;
264 void clear_vector3d_value();
265 static const int kVector3DValueFieldNumber = 7;
266 const ::ignition::msgs::Vector3d& vector3d_value()
const;
272 bool has_color_value()
const;
273 void clear_color_value();
274 static const int kColorValueFieldNumber = 8;
275 const ::ignition::msgs::Color& color_value()
const;
281 bool has_pose3d_value()
const;
282 void clear_pose3d_value();
283 static const int kPose3DValueFieldNumber = 9;
284 const ::ignition::msgs::Pose& pose3d_value()
const;
290 bool has_quaternion_value()
const;
291 void clear_quaternion_value();
292 static const int kQuaternionValueFieldNumber = 10;
293 const ::ignition::msgs::Quaternion& quaternion_value()
const;
299 bool has_time_value()
const;
300 void clear_time_value();
301 static const int kTimeValueFieldNumber = 11;
302 const ::ignition::msgs::Time& time_value()
const;
310 inline void set_has_double_value();
311 inline void set_has_int_value();
312 inline void set_has_string_value();
313 inline void set_has_bool_value();
314 inline void set_has_vector3d_value();
315 inline void set_has_color_value();
316 inline void set_has_pose3d_value();
317 inline void set_has_quaternion_value();
318 inline void set_has_time_value();
320 inline bool has_value()
const;
322 inline void clear_has_value();
324 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
325 bool _is_default_instance_;
330 double double_value_;
331 ::google::protobuf::int32 int_value_;
332 ::google::protobuf::internal::ArenaStringPtr string_value_;
340 mutable int _cached_size_;
341 ::google::protobuf::uint32 _oneof_case_[1];
347 void InitAsDefaultInstance();
348 static Any* default_instance_;
355 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 360 return !_is_default_instance_ && header_ != NULL;
363 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
368 return header_ != NULL ? *header_ : *default_instance_->header_;
372 if (header_ == NULL) {
373 header_ = new ::ignition::msgs::Header;
411 inline bool Any::has_double_value()
const {
412 return value_case() == kDoubleValue;
414 inline void Any::set_has_double_value() {
415 _oneof_case_[0] = kDoubleValue;
418 if (has_double_value()) {
419 value_.double_value_ = 0;
425 if (has_double_value()) {
426 return value_.double_value_;
431 if (!has_double_value()) {
433 set_has_double_value();
435 value_.double_value_ = value;
440 inline bool Any::has_int_value()
const {
441 return value_case() == kIntValue;
443 inline void Any::set_has_int_value() {
444 _oneof_case_[0] = kIntValue;
447 if (has_int_value()) {
448 value_.int_value_ = 0;
454 if (has_int_value()) {
455 return value_.int_value_;
460 if (!has_int_value()) {
464 value_.int_value_ = value;
469 inline bool Any::has_string_value()
const {
470 return value_case() == kStringValue;
472 inline void Any::set_has_string_value() {
473 _oneof_case_[0] = kStringValue;
476 if (has_string_value()) {
477 value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
483 if (has_string_value()) {
484 return value_.string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
486 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
490 if (!has_string_value()) {
492 set_has_string_value();
493 value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
495 value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
499 if (!has_string_value()) {
501 set_has_string_value();
502 value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
504 value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
509 if (!has_string_value()) {
511 set_has_string_value();
512 value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
514 value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
515 reinterpret_cast<const char*>(value), size));
519 if (!has_string_value()) {
521 set_has_string_value();
522 value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
525 return value_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
529 if (has_string_value()) {
531 return value_.string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
537 if (!has_string_value()) {
538 value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
541 if (string_value != NULL) {
542 set_has_string_value();
543 value_.string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
550 inline bool Any::has_bool_value()
const {
551 return value_case() == kBoolValue;
553 inline void Any::set_has_bool_value() {
554 _oneof_case_[0] = kBoolValue;
557 if (has_bool_value()) {
558 value_.bool_value_ =
false;
564 if (has_bool_value()) {
565 return value_.bool_value_;
570 if (!has_bool_value()) {
572 set_has_bool_value();
574 value_.bool_value_ = value;
580 return value_case() == kVector3DValue;
582 inline void Any::set_has_vector3d_value() {
583 _oneof_case_[0] = kVector3DValue;
586 if (has_vector3d_value()) {
587 delete value_.vector3d_value_;
593 return has_vector3d_value()
594 ? *value_.vector3d_value_
598 if (!has_vector3d_value()) {
600 set_has_vector3d_value();
601 value_.vector3d_value_ = new ::ignition::msgs::Vector3d;
604 return value_.vector3d_value_;
608 if (has_vector3d_value()) {
611 value_.vector3d_value_ = NULL;
619 if (vector3d_value) {
620 set_has_vector3d_value();
621 value_.vector3d_value_ = vector3d_value;
628 return value_case() == kColorValue;
630 inline void Any::set_has_color_value() {
631 _oneof_case_[0] = kColorValue;
634 if (has_color_value()) {
635 delete value_.color_value_;
641 return has_color_value()
642 ? *value_.color_value_
646 if (!has_color_value()) {
648 set_has_color_value();
649 value_.color_value_ = new ::ignition::msgs::Color;
652 return value_.color_value_;
656 if (has_color_value()) {
659 value_.color_value_ = NULL;
668 set_has_color_value();
669 value_.color_value_ = color_value;
676 return value_case() == kPose3DValue;
678 inline void Any::set_has_pose3d_value() {
679 _oneof_case_[0] = kPose3DValue;
682 if (has_pose3d_value()) {
683 delete value_.pose3d_value_;
689 return has_pose3d_value()
690 ? *value_.pose3d_value_
694 if (!has_pose3d_value()) {
696 set_has_pose3d_value();
697 value_.pose3d_value_ = new ::ignition::msgs::Pose;
700 return value_.pose3d_value_;
704 if (has_pose3d_value()) {
707 value_.pose3d_value_ = NULL;
716 set_has_pose3d_value();
717 value_.pose3d_value_ = pose3d_value;
724 return value_case() == kQuaternionValue;
726 inline void Any::set_has_quaternion_value() {
727 _oneof_case_[0] = kQuaternionValue;
730 if (has_quaternion_value()) {
731 delete value_.quaternion_value_;
737 return has_quaternion_value()
738 ? *value_.quaternion_value_
742 if (!has_quaternion_value()) {
744 set_has_quaternion_value();
745 value_.quaternion_value_ = new ::ignition::msgs::Quaternion;
748 return value_.quaternion_value_;
752 if (has_quaternion_value()) {
755 value_.quaternion_value_ = NULL;
763 if (quaternion_value) {
764 set_has_quaternion_value();
765 value_.quaternion_value_ = quaternion_value;
772 return value_case() == kTimeValue;
774 inline void Any::set_has_time_value() {
775 _oneof_case_[0] = kTimeValue;
778 if (has_time_value()) {
779 delete value_.time_value_;
785 return has_time_value()
786 ? *value_.time_value_
790 if (!has_time_value()) {
792 set_has_time_value();
793 value_.time_value_ = new ::ignition::msgs::Time;
796 return value_.time_value_;
800 if (has_time_value()) {
803 value_.time_value_ = NULL;
812 set_has_time_value();
813 value_.time_value_ = time_value;
818 inline bool Any::has_value()
const {
819 return value_case() != VALUE_NOT_SET;
821 inline void Any::clear_has_value() {
822 _oneof_case_[0] = VALUE_NOT_SET;
827 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 844 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Any_ValueType>() {
857 #endif // PROTOBUF_ignition_2fmsgs_2fany_2eproto__INCLUDED std::shared_ptr< const Any > ConstAnySharedPtr
Definition: any.pb.h:832
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Any_ValueType_descriptor()
const ::std::string & string_value() const
Definition: any.pb.h:481
static const ::std::string & ValueType_Name(ValueType value)
Definition: any.pb.h:196
static const Time & default_instance()
const ::ignition::msgs::Quaternion & quaternion_value() const
Definition: any.pb.h:735
void set_int_value(::google::protobuf::int32 value)
Definition: any.pb.h:459
::ignition::msgs::Color * release_color_value()
Definition: any.pb.h:654
void set_allocated_time_value(::ignition::msgs::Time *time_value)
Definition: any.pb.h:809
void set_double_value(double value)
Definition: any.pb.h:430
void clear_bool_value()
Definition: any.pb.h:556
bool has_quaternion_value() const
Definition: any.pb.h:723
void set_allocated_vector3d_value(::ignition::msgs::Vector3d *vector3d_value)
Definition: any.pb.h:617
std::unique_ptr< const Any > ConstAnyUniquePtr
Definition: any.pb.h:830
void set_allocated_pose3d_value(::ignition::msgs::Pose *pose3d_value)
Definition: any.pb.h:713
bool has_header() const
Definition: any.pb.h:359
ValueCase
Definition: any.pb.h:106
bool has_pose3d_value() const
Definition: any.pb.h:675
void set_string_value(const ::std::string &value)
Definition: any.pb.h:488
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: any.pb.h:140
::ignition::msgs::Pose * mutable_pose3d_value()
Definition: any.pb.h:693
const ::ignition::msgs::Pose & pose3d_value() const
Definition: any.pb.h:687
static const Color & default_instance()
static bool ValueType_IsValid(int value)
Definition: any.pb.h:183
::std::string * release_string_value()
Definition: any.pb.h:527
void clear_pose3d_value()
Definition: any.pb.h:681
::ignition::msgs::Header * release_header()
Definition: any.pb.h:378
void set_type(::ignition::msgs::Any_ValueType value)
Definition: any.pb.h:404
void clear_type()
Definition: any.pb.h:397
::ignition::msgs::Quaternion * mutable_quaternion_value()
Definition: any.pb.h:741
void protobuf_ShutdownFile_ignition_2fmsgs_2fany_2eproto()
ValueCase value_case() const
Definition: any.pb.h:824
::ignition::msgs::Time * mutable_time_value()
Definition: any.pb.h:789
Any * New() const
Definition: any.pb.h:123
bool has_color_value() const
Definition: any.pb.h:627
void clear_int_value()
Definition: any.pb.h:446
void protobuf_AssignDesc_ignition_2fmsgs_2fany_2eproto()
::ignition::msgs::Header * mutable_header()
Definition: any.pb.h:370
const ::ignition::msgs::Time & time_value() const
Definition: any.pb.h:783
Any_ValueType
Definition: any.pb.h:60
const ::ignition::msgs::Color & color_value() const
Definition: any.pb.h:639
void set_allocated_color_value(::ignition::msgs::Color *color_value)
Definition: any.pb.h:665
bool Any_ValueType_Parse(const ::std::string &name, Any_ValueType *value)
Definition: any.pb.h:84
std::shared_ptr< Any > AnySharedPtr
Definition: any.pb.h:831
void clear_time_value()
Definition: any.pb.h:777
::google::protobuf::int32 int_value() const
Definition: any.pb.h:452
Any & operator=(const Any &from)
Definition: any.pb.h:98
void clear_header()
Definition: any.pb.h:362
static const ::google::protobuf::EnumDescriptor * ValueType_descriptor()
Definition: any.pb.h:193
bool has_time_value() const
Definition: any.pb.h:771
const int Any_ValueType_ValueType_ARRAYSIZE
Definition: any.pb.h:77
const ::ignition::msgs::Header & header() const
Definition: any.pb.h:366
IGNITION_MSGS_VISIBLE bool Any_ValueType_IsValid(int value)
void clear_string_value()
Definition: any.pb.h:475
::ignition::msgs::Time * release_time_value()
Definition: any.pb.h:798
void set_allocated_string_value(::std::string *string_value)
Definition: any.pb.h:536
static const Quaternion & default_instance()
static const Vector3d & default_instance()
void clear_vector3d_value()
Definition: any.pb.h:585
::ignition::msgs::Vector3d * mutable_vector3d_value()
Definition: any.pb.h:597
::ignition::msgs::Vector3d * release_vector3d_value()
Definition: any.pb.h:606
void set_bool_value(bool value)
Definition: any.pb.h:569
Definition: color.pb.h:56
void clear_color_value()
Definition: any.pb.h:633
Definition: vector3d.pb.h:56
Any_ValueType ValueType
Definition: any.pb.h:162
const Any_ValueType Any_ValueType_ValueType_MIN
Definition: any.pb.h:75
static const Pose & default_instance()
void clear_quaternion_value()
Definition: any.pb.h:729
bool bool_value() const
Definition: any.pb.h:562
::ignition::msgs::Color * mutable_color_value()
Definition: any.pb.h:645
const Any_ValueType Any_ValueType_ValueType_MAX
Definition: any.pb.h:76
::ignition::msgs::Pose * release_pose3d_value()
Definition: any.pb.h:702
static bool ValueType_Parse(const ::std::string &name, ValueType *value)
Definition: any.pb.h:199
double double_value() const
Definition: any.pb.h:423
const ::std::string & Any_ValueType_Name(Any_ValueType value)
Definition: any.pb.h:80
int GetCachedSize() const
Definition: any.pb.h:143
void clear_double_value()
Definition: any.pb.h:417
::ignition::msgs::Quaternion * release_quaternion_value()
Definition: any.pb.h:750
bool has_vector3d_value() const
Definition: any.pb.h:579
void set_allocated_quaternion_value(::ignition::msgs::Quaternion *quaternion_value)
Definition: any.pb.h:761
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fany_2eproto()
void set_allocated_header(::ignition::msgs::Header *header)
Definition: any.pb.h:385
std::unique_ptr< Any > AnyUniquePtr
Definition: any.pb.h:829
::std::string * mutable_string_value()
Definition: any.pb.h:518
::ignition::msgs::Any_ValueType type() const
Definition: any.pb.h:400
Definition: quaternion.pb.h:56
const ::ignition::msgs::Vector3d & vector3d_value() const
Definition: any.pb.h:591