Gazebo Msgs

API Reference

9.5.0
any.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/any.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fany_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fany_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/header.pb.h"
35 #include "gz/msgs/color.pb.h"
36 #include "gz/msgs/pose.pb.h"
37 #include "gz/msgs/quaternion.pb.h"
38 #include "gz/msgs/time.pb.h"
39 #include "gz/msgs/vector3d.pb.h"
40 // @@protoc_insertion_point(includes)
41 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fany_2eproto GZ_MSGS_VISIBLE
42 
44 // Internal implementation detail -- do not use these members.
45 struct GZ_MSGS_VISIBLE TableStruct {
46  static const ::google::protobuf::internal::ParseTableField entries[];
47  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
48  static const ::google::protobuf::internal::ParseTable schema[1];
49  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
50  static const ::google::protobuf::internal::SerializationTable serialization_table[];
51  static const ::google::protobuf::uint32 offsets[];
52 };
53 void GZ_MSGS_VISIBLE AddDescriptors();
54 } // namespace protobuf_gz_2fmsgs_2fany_2eproto
55 namespace gz {
56 namespace msgs {
57 class Any;
58 class AnyDefaultTypeInternal;
59 GZ_MSGS_VISIBLE extern AnyDefaultTypeInternal _Any_default_instance_;
60 } // namespace msgs
61 } // namespace gz
62 namespace google {
63 namespace protobuf {
64 template<> GZ_MSGS_VISIBLE ::gz::msgs::Any* Arena::CreateMaybeMessage<::gz::msgs::Any>(Arena*);
65 } // namespace protobuf
66 } // namespace google
67 namespace gz {
68 namespace msgs {
69 
83 };
84 GZ_MSGS_VISIBLE bool Any_ValueType_IsValid(int value);
88 
89 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Any_ValueType_descriptor();
90 inline const ::std::string& Any_ValueType_Name(Any_ValueType value) {
91  return ::google::protobuf::internal::NameOfEnum(
92  Any_ValueType_descriptor(), value);
93 }
94 inline bool Any_ValueType_Parse(
95  const ::std::string& name, Any_ValueType* value) {
96  return ::google::protobuf::internal::ParseNamedEnum<Any_ValueType>(
97  Any_ValueType_descriptor(), name, value);
98 }
99 // ===================================================================
100 
101 class GZ_MSGS_VISIBLE Any : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Any) */ {
102  public:
103  Any();
104  virtual ~Any();
105 
106  Any(const Any& from);
107 
108  inline Any& operator=(const Any& from) {
109  CopyFrom(from);
110  return *this;
111  }
112  #if LANG_CXX11
113  Any(Any&& from) noexcept
114  : Any() {
115  *this = ::std::move(from);
116  }
117 
118  inline Any& operator=(Any&& from) noexcept {
119  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
120  if (this != &from) InternalSwap(&from);
121  } else {
122  CopyFrom(from);
123  }
124  return *this;
125  }
126  #endif
127  static const ::google::protobuf::Descriptor* descriptor();
128  static const Any& default_instance();
129 
130  enum ValueCase {
131  kDoubleValue = 3,
132  kIntValue = 4,
133  kStringValue = 5,
134  kBoolValue = 6,
135  kVector3DValue = 7,
136  kColorValue = 8,
137  kPose3DValue = 9,
138  kQuaternionValue = 10,
139  kTimeValue = 11,
140  VALUE_NOT_SET = 0,
141  };
142 
143  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
144  static inline const Any* internal_default_instance() {
145  return reinterpret_cast<const Any*>(
147  }
148  static constexpr int kIndexInFileMessages =
149  0;
150 
151  void Swap(Any* other);
152  friend void swap(Any& a, Any& b) {
153  a.Swap(&b);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  inline Any* New() const final {
159  return CreateMaybeMessage<Any>(NULL);
160  }
161 
162  Any* New(::google::protobuf::Arena* arena) const final {
163  return CreateMaybeMessage<Any>(arena);
164  }
165  void CopyFrom(const ::google::protobuf::Message& from) final;
166  void MergeFrom(const ::google::protobuf::Message& from) final;
167  void CopyFrom(const Any& from);
168  void MergeFrom(const Any& from);
169  void Clear() final;
170  bool IsInitialized() const final;
171 
172  size_t ByteSizeLong() const final;
173  bool MergePartialFromCodedStream(
174  ::google::protobuf::io::CodedInputStream* input) final;
175  void SerializeWithCachedSizes(
176  ::google::protobuf::io::CodedOutputStream* output) const final;
177  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
178  bool deterministic, ::google::protobuf::uint8* target) const final;
179  int GetCachedSize() const final { return _cached_size_.Get(); }
180 
181  private:
182  void SharedCtor();
183  void SharedDtor();
184  void SetCachedSize(int size) const final;
185  void InternalSwap(Any* other);
186  private:
187  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
188  return NULL;
189  }
190  inline void* MaybeArenaPtr() const {
191  return NULL;
192  }
193  public:
194 
195  ::google::protobuf::Metadata GetMetadata() const final;
196 
197  // nested types ----------------------------------------------------
198 
200  static const ValueType NONE =
202  static const ValueType DOUBLE =
204  static const ValueType INT32 =
206  static const ValueType STRING =
208  static const ValueType BOOLEAN =
210  static const ValueType VECTOR3D =
212  static const ValueType COLOR =
214  static const ValueType POSE3D =
216  static const ValueType QUATERNIOND =
218  static const ValueType TIME =
220  static inline bool ValueType_IsValid(int value) {
221  return Any_ValueType_IsValid(value);
222  }
223  static const ValueType ValueType_MIN =
225  static const ValueType ValueType_MAX =
227  static const int ValueType_ARRAYSIZE =
229  static inline const ::google::protobuf::EnumDescriptor*
231  return Any_ValueType_descriptor();
232  }
233  static inline const ::std::string& ValueType_Name(ValueType value) {
234  return Any_ValueType_Name(value);
235  }
236  static inline bool ValueType_Parse(const ::std::string& name,
237  ValueType* value) {
238  return Any_ValueType_Parse(name, value);
239  }
240 
241  // accessors -------------------------------------------------------
242 
243  // .gz.msgs.Header header = 1;
244  bool has_header() const;
245  void clear_header();
246  static const int kHeaderFieldNumber = 1;
247  private:
248  const ::gz::msgs::Header& _internal_header() const;
249  public:
250  const ::gz::msgs::Header& header() const;
251  ::gz::msgs::Header* release_header();
252  ::gz::msgs::Header* mutable_header();
253  void set_allocated_header(::gz::msgs::Header* header);
254 
255  // .gz.msgs.Any.ValueType type = 2;
256  void clear_type();
257  static const int kTypeFieldNumber = 2;
258  ::gz::msgs::Any_ValueType type() const;
259  void set_type(::gz::msgs::Any_ValueType value);
260 
261  // double double_value = 3;
262  private:
263  bool has_double_value() const;
264  public:
265  void clear_double_value();
266  static const int kDoubleValueFieldNumber = 3;
267  double double_value() const;
268  void set_double_value(double value);
269 
270  // int32 int_value = 4;
271  private:
272  bool has_int_value() const;
273  public:
274  void clear_int_value();
275  static const int kIntValueFieldNumber = 4;
276  ::google::protobuf::int32 int_value() const;
277  void set_int_value(::google::protobuf::int32 value);
278 
279  // string string_value = 5;
280  private:
281  bool has_string_value() const;
282  public:
283  void clear_string_value();
284  static const int kStringValueFieldNumber = 5;
285  const ::std::string& string_value() const;
286  void set_string_value(const ::std::string& value);
287  #if LANG_CXX11
288  void set_string_value(::std::string&& value);
289  #endif
290  void set_string_value(const char* value);
291  void set_string_value(const char* value, size_t size);
292  ::std::string* mutable_string_value();
293  ::std::string* release_string_value();
294  void set_allocated_string_value(::std::string* string_value);
295 
296  // bool bool_value = 6;
297  private:
298  bool has_bool_value() const;
299  public:
300  void clear_bool_value();
301  static const int kBoolValueFieldNumber = 6;
302  bool bool_value() const;
303  void set_bool_value(bool value);
304 
305  // .gz.msgs.Vector3d vector3d_value = 7;
306  bool has_vector3d_value() const;
307  void clear_vector3d_value();
308  static const int kVector3DValueFieldNumber = 7;
309  private:
310  const ::gz::msgs::Vector3d& _internal_vector3d_value() const;
311  public:
312  const ::gz::msgs::Vector3d& vector3d_value() const;
313  ::gz::msgs::Vector3d* release_vector3d_value();
314  ::gz::msgs::Vector3d* mutable_vector3d_value();
315  void set_allocated_vector3d_value(::gz::msgs::Vector3d* vector3d_value);
316 
317  // .gz.msgs.Color color_value = 8;
318  bool has_color_value() const;
319  void clear_color_value();
320  static const int kColorValueFieldNumber = 8;
321  private:
322  const ::gz::msgs::Color& _internal_color_value() const;
323  public:
324  const ::gz::msgs::Color& color_value() const;
325  ::gz::msgs::Color* release_color_value();
326  ::gz::msgs::Color* mutable_color_value();
327  void set_allocated_color_value(::gz::msgs::Color* color_value);
328 
329  // .gz.msgs.Pose pose3d_value = 9;
330  bool has_pose3d_value() const;
331  void clear_pose3d_value();
332  static const int kPose3DValueFieldNumber = 9;
333  private:
334  const ::gz::msgs::Pose& _internal_pose3d_value() const;
335  public:
336  const ::gz::msgs::Pose& pose3d_value() const;
337  ::gz::msgs::Pose* release_pose3d_value();
338  ::gz::msgs::Pose* mutable_pose3d_value();
339  void set_allocated_pose3d_value(::gz::msgs::Pose* pose3d_value);
340 
341  // .gz.msgs.Quaternion quaternion_value = 10;
342  bool has_quaternion_value() const;
343  void clear_quaternion_value();
344  static const int kQuaternionValueFieldNumber = 10;
345  private:
346  const ::gz::msgs::Quaternion& _internal_quaternion_value() const;
347  public:
348  const ::gz::msgs::Quaternion& quaternion_value() const;
349  ::gz::msgs::Quaternion* release_quaternion_value();
350  ::gz::msgs::Quaternion* mutable_quaternion_value();
351  void set_allocated_quaternion_value(::gz::msgs::Quaternion* quaternion_value);
352 
353  // .gz.msgs.Time time_value = 11;
354  bool has_time_value() const;
355  void clear_time_value();
356  static const int kTimeValueFieldNumber = 11;
357  private:
358  const ::gz::msgs::Time& _internal_time_value() const;
359  public:
360  const ::gz::msgs::Time& time_value() const;
361  ::gz::msgs::Time* release_time_value();
362  ::gz::msgs::Time* mutable_time_value();
363  void set_allocated_time_value(::gz::msgs::Time* time_value);
364 
365  void clear_value();
366  ValueCase value_case() const;
367  // @@protoc_insertion_point(class_scope:gz.msgs.Any)
368  private:
369  void set_has_double_value();
370  void set_has_int_value();
371  void set_has_string_value();
372  void set_has_bool_value();
373  void set_has_vector3d_value();
374  void set_has_color_value();
375  void set_has_pose3d_value();
376  void set_has_quaternion_value();
377  void set_has_time_value();
378 
379  inline bool has_value() const;
380  inline void clear_has_value();
381 
382  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
383  ::gz::msgs::Header* header_;
384  int type_;
385  union ValueUnion {
386  ValueUnion() {}
387  double double_value_;
388  ::google::protobuf::int32 int_value_;
389  ::google::protobuf::internal::ArenaStringPtr string_value_;
390  bool bool_value_;
391  ::gz::msgs::Vector3d* vector3d_value_;
392  ::gz::msgs::Color* color_value_;
393  ::gz::msgs::Pose* pose3d_value_;
394  ::gz::msgs::Quaternion* quaternion_value_;
395  ::gz::msgs::Time* time_value_;
396  } value_;
397  mutable ::google::protobuf::internal::CachedSize _cached_size_;
398  ::google::protobuf::uint32 _oneof_case_[1];
399 
400  friend struct ::protobuf_gz_2fmsgs_2fany_2eproto::TableStruct;
401 };
402 // ===================================================================
403 
404 
405 // ===================================================================
406 
407 #ifdef __GNUC__
408  #pragma GCC diagnostic push
409  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
410 #endif // __GNUC__
411 // Any
412 
413 // .gz.msgs.Header header = 1;
414 inline bool Any::has_header() const {
415  return this != internal_default_instance() && header_ != NULL;
416 }
417 inline const ::gz::msgs::Header& Any::_internal_header() const {
418  return *header_;
419 }
420 inline const ::gz::msgs::Header& Any::header() const {
421  const ::gz::msgs::Header* p = header_;
422  // @@protoc_insertion_point(field_get:gz.msgs.Any.header)
423  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
425 }
426 inline ::gz::msgs::Header* Any::release_header() {
427  // @@protoc_insertion_point(field_release:gz.msgs.Any.header)
428 
429  ::gz::msgs::Header* temp = header_;
430  header_ = NULL;
431  return temp;
432 }
433 inline ::gz::msgs::Header* Any::mutable_header() {
434 
435  if (header_ == NULL) {
436  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
437  header_ = p;
438  }
439  // @@protoc_insertion_point(field_mutable:gz.msgs.Any.header)
440  return header_;
441 }
443  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
444  if (message_arena == NULL) {
445  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
446  }
447  if (header) {
448  ::google::protobuf::Arena* submessage_arena = NULL;
449  if (message_arena != submessage_arena) {
450  header = ::google::protobuf::internal::GetOwnedMessage(
451  message_arena, header, submessage_arena);
452  }
453 
454  } else {
455 
456  }
457  header_ = header;
458  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Any.header)
459 }
460 
461 // .gz.msgs.Any.ValueType type = 2;
462 inline void Any::clear_type() {
463  type_ = 0;
464 }
466  // @@protoc_insertion_point(field_get:gz.msgs.Any.type)
467  return static_cast< ::gz::msgs::Any_ValueType >(type_);
468 }
470 
471  type_ = value;
472  // @@protoc_insertion_point(field_set:gz.msgs.Any.type)
473 }
474 
475 // double double_value = 3;
476 inline bool Any::has_double_value() const {
477  return value_case() == kDoubleValue;
478 }
479 inline void Any::set_has_double_value() {
480  _oneof_case_[0] = kDoubleValue;
481 }
482 inline void Any::clear_double_value() {
483  if (has_double_value()) {
484  value_.double_value_ = 0;
485  clear_has_value();
486  }
487 }
488 inline double Any::double_value() const {
489  // @@protoc_insertion_point(field_get:gz.msgs.Any.double_value)
490  if (has_double_value()) {
491  return value_.double_value_;
492  }
493  return 0;
494 }
495 inline void Any::set_double_value(double value) {
496  if (!has_double_value()) {
497  clear_value();
498  set_has_double_value();
499  }
500  value_.double_value_ = value;
501  // @@protoc_insertion_point(field_set:gz.msgs.Any.double_value)
502 }
503 
504 // int32 int_value = 4;
505 inline bool Any::has_int_value() const {
506  return value_case() == kIntValue;
507 }
508 inline void Any::set_has_int_value() {
509  _oneof_case_[0] = kIntValue;
510 }
511 inline void Any::clear_int_value() {
512  if (has_int_value()) {
513  value_.int_value_ = 0;
514  clear_has_value();
515  }
516 }
517 inline ::google::protobuf::int32 Any::int_value() const {
518  // @@protoc_insertion_point(field_get:gz.msgs.Any.int_value)
519  if (has_int_value()) {
520  return value_.int_value_;
521  }
522  return 0;
523 }
524 inline void Any::set_int_value(::google::protobuf::int32 value) {
525  if (!has_int_value()) {
526  clear_value();
527  set_has_int_value();
528  }
529  value_.int_value_ = value;
530  // @@protoc_insertion_point(field_set:gz.msgs.Any.int_value)
531 }
532 
533 // string string_value = 5;
534 inline bool Any::has_string_value() const {
535  return value_case() == kStringValue;
536 }
537 inline void Any::set_has_string_value() {
538  _oneof_case_[0] = kStringValue;
539 }
540 inline void Any::clear_string_value() {
541  if (has_string_value()) {
542  value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
543  clear_has_value();
544  }
545 }
546 inline const ::std::string& Any::string_value() const {
547  // @@protoc_insertion_point(field_get:gz.msgs.Any.string_value)
548  if (has_string_value()) {
549  return value_.string_value_.GetNoArena();
550  }
551  return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
552 }
553 inline void Any::set_string_value(const ::std::string& value) {
554  // @@protoc_insertion_point(field_set:gz.msgs.Any.string_value)
555  if (!has_string_value()) {
556  clear_value();
557  set_has_string_value();
558  value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
559  }
560  value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
561  // @@protoc_insertion_point(field_set:gz.msgs.Any.string_value)
562 }
563 #if LANG_CXX11
564 inline void Any::set_string_value(::std::string&& value) {
565  // @@protoc_insertion_point(field_set:gz.msgs.Any.string_value)
566  if (!has_string_value()) {
567  clear_value();
568  set_has_string_value();
569  value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
570  }
571  value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
572  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Any.string_value)
573 }
574 #endif
575 inline void Any::set_string_value(const char* value) {
576  GOOGLE_DCHECK(value != NULL);
577  if (!has_string_value()) {
578  clear_value();
579  set_has_string_value();
580  value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
581  }
582  value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
583  ::std::string(value));
584  // @@protoc_insertion_point(field_set_char:gz.msgs.Any.string_value)
585 }
586 inline void Any::set_string_value(const char* value, size_t size) {
587  if (!has_string_value()) {
588  clear_value();
589  set_has_string_value();
590  value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
591  }
592  value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
593  reinterpret_cast<const char*>(value), size));
594  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Any.string_value)
595 }
596 inline ::std::string* Any::mutable_string_value() {
597  if (!has_string_value()) {
598  clear_value();
599  set_has_string_value();
600  value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
601  }
602  // @@protoc_insertion_point(field_mutable:gz.msgs.Any.string_value)
603  return value_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
604 }
605 inline ::std::string* Any::release_string_value() {
606  // @@protoc_insertion_point(field_release:gz.msgs.Any.string_value)
607  if (has_string_value()) {
608  clear_has_value();
609  return value_.string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
610  } else {
611  return NULL;
612  }
613 }
614 inline void Any::set_allocated_string_value(::std::string* string_value) {
615  if (!has_string_value()) {
616  value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
617  }
618  clear_value();
619  if (string_value != NULL) {
620  set_has_string_value();
621  value_.string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value);
622  }
623  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Any.string_value)
624 }
625 
626 // bool bool_value = 6;
627 inline bool Any::has_bool_value() const {
628  return value_case() == kBoolValue;
629 }
630 inline void Any::set_has_bool_value() {
631  _oneof_case_[0] = kBoolValue;
632 }
633 inline void Any::clear_bool_value() {
634  if (has_bool_value()) {
635  value_.bool_value_ = false;
636  clear_has_value();
637  }
638 }
639 inline bool Any::bool_value() const {
640  // @@protoc_insertion_point(field_get:gz.msgs.Any.bool_value)
641  if (has_bool_value()) {
642  return value_.bool_value_;
643  }
644  return false;
645 }
646 inline void Any::set_bool_value(bool value) {
647  if (!has_bool_value()) {
648  clear_value();
649  set_has_bool_value();
650  }
651  value_.bool_value_ = value;
652  // @@protoc_insertion_point(field_set:gz.msgs.Any.bool_value)
653 }
654 
655 // .gz.msgs.Vector3d vector3d_value = 7;
656 inline bool Any::has_vector3d_value() const {
657  return value_case() == kVector3DValue;
658 }
659 inline void Any::set_has_vector3d_value() {
660  _oneof_case_[0] = kVector3DValue;
661 }
662 inline const ::gz::msgs::Vector3d& Any::_internal_vector3d_value() const {
663  return *value_.vector3d_value_;
664 }
665 inline ::gz::msgs::Vector3d* Any::release_vector3d_value() {
666  // @@protoc_insertion_point(field_release:gz.msgs.Any.vector3d_value)
667  if (has_vector3d_value()) {
668  clear_has_value();
669  ::gz::msgs::Vector3d* temp = value_.vector3d_value_;
670  value_.vector3d_value_ = NULL;
671  return temp;
672  } else {
673  return NULL;
674  }
675 }
676 inline const ::gz::msgs::Vector3d& Any::vector3d_value() const {
677  // @@protoc_insertion_point(field_get:gz.msgs.Any.vector3d_value)
678  return has_vector3d_value()
679  ? *value_.vector3d_value_
681 }
682 inline ::gz::msgs::Vector3d* Any::mutable_vector3d_value() {
683  if (!has_vector3d_value()) {
684  clear_value();
685  set_has_vector3d_value();
686  value_.vector3d_value_ = CreateMaybeMessage< ::gz::msgs::Vector3d >(
687  GetArenaNoVirtual());
688  }
689  // @@protoc_insertion_point(field_mutable:gz.msgs.Any.vector3d_value)
690  return value_.vector3d_value_;
691 }
692 
693 // .gz.msgs.Color color_value = 8;
694 inline bool Any::has_color_value() const {
695  return value_case() == kColorValue;
696 }
697 inline void Any::set_has_color_value() {
698  _oneof_case_[0] = kColorValue;
699 }
700 inline const ::gz::msgs::Color& Any::_internal_color_value() const {
701  return *value_.color_value_;
702 }
703 inline ::gz::msgs::Color* Any::release_color_value() {
704  // @@protoc_insertion_point(field_release:gz.msgs.Any.color_value)
705  if (has_color_value()) {
706  clear_has_value();
707  ::gz::msgs::Color* temp = value_.color_value_;
708  value_.color_value_ = NULL;
709  return temp;
710  } else {
711  return NULL;
712  }
713 }
714 inline const ::gz::msgs::Color& Any::color_value() const {
715  // @@protoc_insertion_point(field_get:gz.msgs.Any.color_value)
716  return has_color_value()
717  ? *value_.color_value_
718  : *reinterpret_cast< ::gz::msgs::Color*>(&::gz::msgs::_Color_default_instance_);
719 }
720 inline ::gz::msgs::Color* Any::mutable_color_value() {
721  if (!has_color_value()) {
722  clear_value();
723  set_has_color_value();
724  value_.color_value_ = CreateMaybeMessage< ::gz::msgs::Color >(
725  GetArenaNoVirtual());
726  }
727  // @@protoc_insertion_point(field_mutable:gz.msgs.Any.color_value)
728  return value_.color_value_;
729 }
730 
731 // .gz.msgs.Pose pose3d_value = 9;
732 inline bool Any::has_pose3d_value() const {
733  return value_case() == kPose3DValue;
734 }
735 inline void Any::set_has_pose3d_value() {
736  _oneof_case_[0] = kPose3DValue;
737 }
738 inline const ::gz::msgs::Pose& Any::_internal_pose3d_value() const {
739  return *value_.pose3d_value_;
740 }
741 inline ::gz::msgs::Pose* Any::release_pose3d_value() {
742  // @@protoc_insertion_point(field_release:gz.msgs.Any.pose3d_value)
743  if (has_pose3d_value()) {
744  clear_has_value();
745  ::gz::msgs::Pose* temp = value_.pose3d_value_;
746  value_.pose3d_value_ = NULL;
747  return temp;
748  } else {
749  return NULL;
750  }
751 }
752 inline const ::gz::msgs::Pose& Any::pose3d_value() const {
753  // @@protoc_insertion_point(field_get:gz.msgs.Any.pose3d_value)
754  return has_pose3d_value()
755  ? *value_.pose3d_value_
756  : *reinterpret_cast< ::gz::msgs::Pose*>(&::gz::msgs::_Pose_default_instance_);
757 }
758 inline ::gz::msgs::Pose* Any::mutable_pose3d_value() {
759  if (!has_pose3d_value()) {
760  clear_value();
761  set_has_pose3d_value();
762  value_.pose3d_value_ = CreateMaybeMessage< ::gz::msgs::Pose >(
763  GetArenaNoVirtual());
764  }
765  // @@protoc_insertion_point(field_mutable:gz.msgs.Any.pose3d_value)
766  return value_.pose3d_value_;
767 }
768 
769 // .gz.msgs.Quaternion quaternion_value = 10;
770 inline bool Any::has_quaternion_value() const {
771  return value_case() == kQuaternionValue;
772 }
773 inline void Any::set_has_quaternion_value() {
774  _oneof_case_[0] = kQuaternionValue;
775 }
776 inline const ::gz::msgs::Quaternion& Any::_internal_quaternion_value() const {
777  return *value_.quaternion_value_;
778 }
779 inline ::gz::msgs::Quaternion* Any::release_quaternion_value() {
780  // @@protoc_insertion_point(field_release:gz.msgs.Any.quaternion_value)
781  if (has_quaternion_value()) {
782  clear_has_value();
783  ::gz::msgs::Quaternion* temp = value_.quaternion_value_;
784  value_.quaternion_value_ = NULL;
785  return temp;
786  } else {
787  return NULL;
788  }
789 }
790 inline const ::gz::msgs::Quaternion& Any::quaternion_value() const {
791  // @@protoc_insertion_point(field_get:gz.msgs.Any.quaternion_value)
792  return has_quaternion_value()
793  ? *value_.quaternion_value_
795 }
796 inline ::gz::msgs::Quaternion* Any::mutable_quaternion_value() {
797  if (!has_quaternion_value()) {
798  clear_value();
799  set_has_quaternion_value();
800  value_.quaternion_value_ = CreateMaybeMessage< ::gz::msgs::Quaternion >(
801  GetArenaNoVirtual());
802  }
803  // @@protoc_insertion_point(field_mutable:gz.msgs.Any.quaternion_value)
804  return value_.quaternion_value_;
805 }
806 
807 // .gz.msgs.Time time_value = 11;
808 inline bool Any::has_time_value() const {
809  return value_case() == kTimeValue;
810 }
811 inline void Any::set_has_time_value() {
812  _oneof_case_[0] = kTimeValue;
813 }
814 inline const ::gz::msgs::Time& Any::_internal_time_value() const {
815  return *value_.time_value_;
816 }
817 inline ::gz::msgs::Time* Any::release_time_value() {
818  // @@protoc_insertion_point(field_release:gz.msgs.Any.time_value)
819  if (has_time_value()) {
820  clear_has_value();
821  ::gz::msgs::Time* temp = value_.time_value_;
822  value_.time_value_ = NULL;
823  return temp;
824  } else {
825  return NULL;
826  }
827 }
828 inline const ::gz::msgs::Time& Any::time_value() const {
829  // @@protoc_insertion_point(field_get:gz.msgs.Any.time_value)
830  return has_time_value()
831  ? *value_.time_value_
832  : *reinterpret_cast< ::gz::msgs::Time*>(&::gz::msgs::_Time_default_instance_);
833 }
834 inline ::gz::msgs::Time* Any::mutable_time_value() {
835  if (!has_time_value()) {
836  clear_value();
837  set_has_time_value();
838  value_.time_value_ = CreateMaybeMessage< ::gz::msgs::Time >(
839  GetArenaNoVirtual());
840  }
841  // @@protoc_insertion_point(field_mutable:gz.msgs.Any.time_value)
842  return value_.time_value_;
843 }
844 
845 inline bool Any::has_value() const {
846  return value_case() != VALUE_NOT_SET;
847 }
848 inline void Any::clear_has_value() {
849  _oneof_case_[0] = VALUE_NOT_SET;
850 }
852  return Any::ValueCase(_oneof_case_[0]);
853 }
854 #ifdef __GNUC__
855  #pragma GCC diagnostic pop
856 #endif // __GNUC__
857 
858 // @@protoc_insertion_point(namespace_scope)
859 
860 } // namespace msgs
861 } // namespace gz
862 
863 namespace google {
864 namespace protobuf {
865 
866 template <> struct is_proto_enum< ::gz::msgs::Any_ValueType> : ::std::true_type {};
867 template <>
868 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Any_ValueType>() {
870 }
871 
872 } // namespace protobuf
873 } // namespace google
874 
875 // @@protoc_insertion_point(global_scope)
876 
877 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fany_2eproto