// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: sensor.proto

#ifndef GOOGLE_PROTOBUF_INCLUDED_sensor_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_sensor_2eproto

#include <limits>
#include <string>

#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3011000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include "pose.pb.h"
#include "camerasensor.pb.h"
#include "raysensor.pb.h"
#include "contactsensor.pb.h"
#include "logical_camera_sensor.pb.h"
#include "gps_sensor.pb.h"
#include "imu_sensor.pb.h"
#ifndef _MSC_VER
#pragma GCC system_header
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
#include <boost/shared_ptr.hpp>
#include <gazebo/util/system.hh>
#include "gazebo/msgs/MsgFactory.hh"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_sensor_2eproto GZ_MSGS_VISIBLE
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE

// Internal implementation detail -- do not use these members.
struct GZ_MSGS_VISIBLE TableStruct_sensor_2eproto {
  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
extern GZ_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_sensor_2eproto;
namespace gazebo {
namespace msgs {
class Sensor;
class SensorDefaultTypeInternal;
GZ_MSGS_VISIBLE extern SensorDefaultTypeInternal _Sensor_default_instance_;
}  // namespace msgs
}  // namespace gazebo
PROTOBUF_NAMESPACE_OPEN
template<> GZ_MSGS_VISIBLE ::gazebo::msgs::Sensor* Arena::CreateMaybeMessage<::gazebo::msgs::Sensor>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace gazebo {
namespace msgs {

// ===================================================================

class GZ_MSGS_VISIBLE Sensor :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:gazebo.msgs.Sensor) */ {
 public:
  Sensor();
  virtual ~Sensor();

  Sensor(const Sensor& from);
  Sensor(Sensor&& from) noexcept
    : Sensor() {
    *this = ::std::move(from);
  }

  inline Sensor& operator=(const Sensor& from) {
    CopyFrom(from);
    return *this;
  }
  inline Sensor& operator=(Sensor&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
    return _internal_metadata_.unknown_fields();
  }
  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields();
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return GetMetadataStatic().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return GetMetadataStatic().reflection;
  }
  static const Sensor& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const Sensor* internal_default_instance() {
    return reinterpret_cast<const Sensor*>(
               &_Sensor_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(Sensor& a, Sensor& b) {
    a.Swap(&b);
  }
  inline void Swap(Sensor* other) {
    if (other == this) return;
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  inline Sensor* New() const final {
    return CreateMaybeMessage<Sensor>(nullptr);
  }

  Sensor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
    return CreateMaybeMessage<Sensor>(arena);
  }
  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void CopyFrom(const Sensor& from);
  void MergeFrom(const Sensor& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
      ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  inline void SharedCtor();
  inline void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(Sensor* other);
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "gazebo.msgs.Sensor";
  }
  private:
  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  private:
  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
    ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_sensor_2eproto);
    return ::descriptor_table_sensor_2eproto.file_level_metadata[kIndexInFileMessages];
  }

  public:

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kNameFieldNumber = 1,
    kParentFieldNumber = 3,
    kTypeFieldNumber = 5,
    kTopicFieldNumber = 13,
    kPoseFieldNumber = 8,
    kCameraFieldNumber = 9,
    kRayFieldNumber = 10,
    kContactFieldNumber = 11,
    kLogicalCameraFieldNumber = 14,
    kGpsFieldNumber = 15,
    kImuFieldNumber = 16,
    kIdFieldNumber = 2,
    kParentIdFieldNumber = 4,
    kUpdateRateFieldNumber = 7,
    kAlwaysOnFieldNumber = 6,
    kVisualizeFieldNumber = 12,
  };
  // required string name = 1;
  bool has_name() const;
  private:
  bool _internal_has_name() const;
  public:
  void clear_name();
  const std::string& name() const;
  void set_name(const std::string& value);
  void set_name(std::string&& value);
  void set_name(const char* value);
  void set_name(const char* value, size_t size);
  std::string* mutable_name();
  std::string* release_name();
  void set_allocated_name(std::string* name);
  private:
  const std::string& _internal_name() const;
  void _internal_set_name(const std::string& value);
  std::string* _internal_mutable_name();
  public:

  // required string parent = 3;
  bool has_parent() const;
  private:
  bool _internal_has_parent() const;
  public:
  void clear_parent();
  const std::string& parent() const;
  void set_parent(const std::string& value);
  void set_parent(std::string&& value);
  void set_parent(const char* value);
  void set_parent(const char* value, size_t size);
  std::string* mutable_parent();
  std::string* release_parent();
  void set_allocated_parent(std::string* parent);
  private:
  const std::string& _internal_parent() const;
  void _internal_set_parent(const std::string& value);
  std::string* _internal_mutable_parent();
  public:

  // required string type = 5;
  bool has_type() const;
  private:
  bool _internal_has_type() const;
  public:
  void clear_type();
  const std::string& type() const;
  void set_type(const std::string& value);
  void set_type(std::string&& value);
  void set_type(const char* value);
  void set_type(const char* value, size_t size);
  std::string* mutable_type();
  std::string* release_type();
  void set_allocated_type(std::string* type);
  private:
  const std::string& _internal_type() const;
  void _internal_set_type(const std::string& value);
  std::string* _internal_mutable_type();
  public:

  // optional string topic = 13;
  bool has_topic() const;
  private:
  bool _internal_has_topic() const;
  public:
  void clear_topic();
  const std::string& topic() const;
  void set_topic(const std::string& value);
  void set_topic(std::string&& value);
  void set_topic(const char* value);
  void set_topic(const char* value, size_t size);
  std::string* mutable_topic();
  std::string* release_topic();
  void set_allocated_topic(std::string* topic);
  private:
  const std::string& _internal_topic() const;
  void _internal_set_topic(const std::string& value);
  std::string* _internal_mutable_topic();
  public:

  // optional .gazebo.msgs.Pose pose = 8;
  bool has_pose() const;
  private:
  bool _internal_has_pose() const;
  public:
  void clear_pose();
  const ::gazebo::msgs::Pose& pose() const;
  ::gazebo::msgs::Pose* release_pose();
  ::gazebo::msgs::Pose* mutable_pose();
  void set_allocated_pose(::gazebo::msgs::Pose* pose);
  private:
  const ::gazebo::msgs::Pose& _internal_pose() const;
  ::gazebo::msgs::Pose* _internal_mutable_pose();
  public:

  // optional .gazebo.msgs.CameraSensor camera = 9;
  bool has_camera() const;
  private:
  bool _internal_has_camera() const;
  public:
  void clear_camera();
  const ::gazebo::msgs::CameraSensor& camera() const;
  ::gazebo::msgs::CameraSensor* release_camera();
  ::gazebo::msgs::CameraSensor* mutable_camera();
  void set_allocated_camera(::gazebo::msgs::CameraSensor* camera);
  private:
  const ::gazebo::msgs::CameraSensor& _internal_camera() const;
  ::gazebo::msgs::CameraSensor* _internal_mutable_camera();
  public:

  // optional .gazebo.msgs.RaySensor ray = 10;
  bool has_ray() const;
  private:
  bool _internal_has_ray() const;
  public:
  void clear_ray();
  const ::gazebo::msgs::RaySensor& ray() const;
  ::gazebo::msgs::RaySensor* release_ray();
  ::gazebo::msgs::RaySensor* mutable_ray();
  void set_allocated_ray(::gazebo::msgs::RaySensor* ray);
  private:
  const ::gazebo::msgs::RaySensor& _internal_ray() const;
  ::gazebo::msgs::RaySensor* _internal_mutable_ray();
  public:

  // optional .gazebo.msgs.ContactSensor contact = 11;
  bool has_contact() const;
  private:
  bool _internal_has_contact() const;
  public:
  void clear_contact();
  const ::gazebo::msgs::ContactSensor& contact() const;
  ::gazebo::msgs::ContactSensor* release_contact();
  ::gazebo::msgs::ContactSensor* mutable_contact();
  void set_allocated_contact(::gazebo::msgs::ContactSensor* contact);
  private:
  const ::gazebo::msgs::ContactSensor& _internal_contact() const;
  ::gazebo::msgs::ContactSensor* _internal_mutable_contact();
  public:

  // optional .gazebo.msgs.LogicalCameraSensor logical_camera = 14;
  bool has_logical_camera() const;
  private:
  bool _internal_has_logical_camera() const;
  public:
  void clear_logical_camera();
  const ::gazebo::msgs::LogicalCameraSensor& logical_camera() const;
  ::gazebo::msgs::LogicalCameraSensor* release_logical_camera();
  ::gazebo::msgs::LogicalCameraSensor* mutable_logical_camera();
  void set_allocated_logical_camera(::gazebo::msgs::LogicalCameraSensor* logical_camera);
  private:
  const ::gazebo::msgs::LogicalCameraSensor& _internal_logical_camera() const;
  ::gazebo::msgs::LogicalCameraSensor* _internal_mutable_logical_camera();
  public:

  // optional .gazebo.msgs.GPSSensor gps = 15;
  bool has_gps() const;
  private:
  bool _internal_has_gps() const;
  public:
  void clear_gps();
  const ::gazebo::msgs::GPSSensor& gps() const;
  ::gazebo::msgs::GPSSensor* release_gps();
  ::gazebo::msgs::GPSSensor* mutable_gps();
  void set_allocated_gps(::gazebo::msgs::GPSSensor* gps);
  private:
  const ::gazebo::msgs::GPSSensor& _internal_gps() const;
  ::gazebo::msgs::GPSSensor* _internal_mutable_gps();
  public:

  // optional .gazebo.msgs.IMUSensor imu = 16;
  bool has_imu() const;
  private:
  bool _internal_has_imu() const;
  public:
  void clear_imu();
  const ::gazebo::msgs::IMUSensor& imu() const;
  ::gazebo::msgs::IMUSensor* release_imu();
  ::gazebo::msgs::IMUSensor* mutable_imu();
  void set_allocated_imu(::gazebo::msgs::IMUSensor* imu);
  private:
  const ::gazebo::msgs::IMUSensor& _internal_imu() const;
  ::gazebo::msgs::IMUSensor* _internal_mutable_imu();
  public:

  // optional uint32 id = 2;
  bool has_id() const;
  private:
  bool _internal_has_id() const;
  public:
  void clear_id();
  ::PROTOBUF_NAMESPACE_ID::uint32 id() const;
  void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
  private:
  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id() const;
  void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
  public:

  // optional uint32 parent_id = 4;
  bool has_parent_id() const;
  private:
  bool _internal_has_parent_id() const;
  public:
  void clear_parent_id();
  ::PROTOBUF_NAMESPACE_ID::uint32 parent_id() const;
  void set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
  private:
  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_parent_id() const;
  void _internal_set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
  public:

  // optional double update_rate = 7;
  bool has_update_rate() const;
  private:
  bool _internal_has_update_rate() const;
  public:
  void clear_update_rate();
  double update_rate() const;
  void set_update_rate(double value);
  private:
  double _internal_update_rate() const;
  void _internal_set_update_rate(double value);
  public:

  // optional bool always_on = 6;
  bool has_always_on() const;
  private:
  bool _internal_has_always_on() const;
  public:
  void clear_always_on();
  bool always_on() const;
  void set_always_on(bool value);
  private:
  bool _internal_always_on() const;
  void _internal_set_always_on(bool value);
  public:

  // optional bool visualize = 12;
  bool has_visualize() const;
  private:
  bool _internal_has_visualize() const;
  public:
  void clear_visualize();
  bool visualize() const;
  void set_visualize(bool value);
  private:
  bool _internal_visualize() const;
  void _internal_set_visualize(bool value);
  public:

  // @@protoc_insertion_point(class_scope:gazebo.msgs.Sensor)
 private:
  class _Internal;

  // helper for ByteSizeLong()
  size_t RequiredFieldsByteSizeFallback() const;

  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_;
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr topic_;
  ::gazebo::msgs::Pose* pose_;
  ::gazebo::msgs::CameraSensor* camera_;
  ::gazebo::msgs::RaySensor* ray_;
  ::gazebo::msgs::ContactSensor* contact_;
  ::gazebo::msgs::LogicalCameraSensor* logical_camera_;
  ::gazebo::msgs::GPSSensor* gps_;
  ::gazebo::msgs::IMUSensor* imu_;
  ::PROTOBUF_NAMESPACE_ID::uint32 id_;
  ::PROTOBUF_NAMESPACE_ID::uint32 parent_id_;
  double update_rate_;
  bool always_on_;
  bool visualize_;
  friend struct ::TableStruct_sensor_2eproto;
};
// ===================================================================


// ===================================================================

#ifdef __GNUC__
  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// Sensor

// required string name = 1;
inline bool Sensor::_internal_has_name() const {
  bool value = (_has_bits_[0] & 0x00000001u) != 0;
  return value;
}
inline bool Sensor::has_name() const {
  return _internal_has_name();
}
inline void Sensor::clear_name() {
  name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  _has_bits_[0] &= ~0x00000001u;
}
inline const std::string& Sensor::name() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.name)
  return _internal_name();
}
inline void Sensor::set_name(const std::string& value) {
  _internal_set_name(value);
  // @@protoc_insertion_point(field_set:gazebo.msgs.Sensor.name)
}
inline std::string* Sensor::mutable_name() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.name)
  return _internal_mutable_name();
}
inline const std::string& Sensor::_internal_name() const {
  return name_.GetNoArena();
}
inline void Sensor::_internal_set_name(const std::string& value) {
  _has_bits_[0] |= 0x00000001u;
  name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
}
inline void Sensor::set_name(std::string&& value) {
  _has_bits_[0] |= 0x00000001u;
  name_.SetNoArena(
    &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:gazebo.msgs.Sensor.name)
}
inline void Sensor::set_name(const char* value) {
  GOOGLE_DCHECK(value != nullptr);
  _has_bits_[0] |= 0x00000001u;
  name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:gazebo.msgs.Sensor.name)
}
inline void Sensor::set_name(const char* value, size_t size) {
  _has_bits_[0] |= 0x00000001u;
  name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:gazebo.msgs.Sensor.name)
}
inline std::string* Sensor::_internal_mutable_name() {
  _has_bits_[0] |= 0x00000001u;
  return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* Sensor::release_name() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.name)
  if (!_internal_has_name()) {
    return nullptr;
  }
  _has_bits_[0] &= ~0x00000001u;
  return name_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void Sensor::set_allocated_name(std::string* name) {
  if (name != nullptr) {
    _has_bits_[0] |= 0x00000001u;
  } else {
    _has_bits_[0] &= ~0x00000001u;
  }
  name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.name)
}

// optional uint32 id = 2;
inline bool Sensor::_internal_has_id() const {
  bool value = (_has_bits_[0] & 0x00000800u) != 0;
  return value;
}
inline bool Sensor::has_id() const {
  return _internal_has_id();
}
inline void Sensor::clear_id() {
  id_ = 0u;
  _has_bits_[0] &= ~0x00000800u;
}
inline ::PROTOBUF_NAMESPACE_ID::uint32 Sensor::_internal_id() const {
  return id_;
}
inline ::PROTOBUF_NAMESPACE_ID::uint32 Sensor::id() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.id)
  return _internal_id();
}
inline void Sensor::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
  _has_bits_[0] |= 0x00000800u;
  id_ = value;
}
inline void Sensor::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
  _internal_set_id(value);
  // @@protoc_insertion_point(field_set:gazebo.msgs.Sensor.id)
}

// required string parent = 3;
inline bool Sensor::_internal_has_parent() const {
  bool value = (_has_bits_[0] & 0x00000002u) != 0;
  return value;
}
inline bool Sensor::has_parent() const {
  return _internal_has_parent();
}
inline void Sensor::clear_parent() {
  parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  _has_bits_[0] &= ~0x00000002u;
}
inline const std::string& Sensor::parent() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.parent)
  return _internal_parent();
}
inline void Sensor::set_parent(const std::string& value) {
  _internal_set_parent(value);
  // @@protoc_insertion_point(field_set:gazebo.msgs.Sensor.parent)
}
inline std::string* Sensor::mutable_parent() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.parent)
  return _internal_mutable_parent();
}
inline const std::string& Sensor::_internal_parent() const {
  return parent_.GetNoArena();
}
inline void Sensor::_internal_set_parent(const std::string& value) {
  _has_bits_[0] |= 0x00000002u;
  parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
}
inline void Sensor::set_parent(std::string&& value) {
  _has_bits_[0] |= 0x00000002u;
  parent_.SetNoArena(
    &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:gazebo.msgs.Sensor.parent)
}
inline void Sensor::set_parent(const char* value) {
  GOOGLE_DCHECK(value != nullptr);
  _has_bits_[0] |= 0x00000002u;
  parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:gazebo.msgs.Sensor.parent)
}
inline void Sensor::set_parent(const char* value, size_t size) {
  _has_bits_[0] |= 0x00000002u;
  parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:gazebo.msgs.Sensor.parent)
}
inline std::string* Sensor::_internal_mutable_parent() {
  _has_bits_[0] |= 0x00000002u;
  return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* Sensor::release_parent() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.parent)
  if (!_internal_has_parent()) {
    return nullptr;
  }
  _has_bits_[0] &= ~0x00000002u;
  return parent_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void Sensor::set_allocated_parent(std::string* parent) {
  if (parent != nullptr) {
    _has_bits_[0] |= 0x00000002u;
  } else {
    _has_bits_[0] &= ~0x00000002u;
  }
  parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.parent)
}

// optional uint32 parent_id = 4;
inline bool Sensor::_internal_has_parent_id() const {
  bool value = (_has_bits_[0] & 0x00001000u) != 0;
  return value;
}
inline bool Sensor::has_parent_id() const {
  return _internal_has_parent_id();
}
inline void Sensor::clear_parent_id() {
  parent_id_ = 0u;
  _has_bits_[0] &= ~0x00001000u;
}
inline ::PROTOBUF_NAMESPACE_ID::uint32 Sensor::_internal_parent_id() const {
  return parent_id_;
}
inline ::PROTOBUF_NAMESPACE_ID::uint32 Sensor::parent_id() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.parent_id)
  return _internal_parent_id();
}
inline void Sensor::_internal_set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
  _has_bits_[0] |= 0x00001000u;
  parent_id_ = value;
}
inline void Sensor::set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
  _internal_set_parent_id(value);
  // @@protoc_insertion_point(field_set:gazebo.msgs.Sensor.parent_id)
}

// required string type = 5;
inline bool Sensor::_internal_has_type() const {
  bool value = (_has_bits_[0] & 0x00000004u) != 0;
  return value;
}
inline bool Sensor::has_type() const {
  return _internal_has_type();
}
inline void Sensor::clear_type() {
  type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  _has_bits_[0] &= ~0x00000004u;
}
inline const std::string& Sensor::type() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.type)
  return _internal_type();
}
inline void Sensor::set_type(const std::string& value) {
  _internal_set_type(value);
  // @@protoc_insertion_point(field_set:gazebo.msgs.Sensor.type)
}
inline std::string* Sensor::mutable_type() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.type)
  return _internal_mutable_type();
}
inline const std::string& Sensor::_internal_type() const {
  return type_.GetNoArena();
}
inline void Sensor::_internal_set_type(const std::string& value) {
  _has_bits_[0] |= 0x00000004u;
  type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
}
inline void Sensor::set_type(std::string&& value) {
  _has_bits_[0] |= 0x00000004u;
  type_.SetNoArena(
    &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:gazebo.msgs.Sensor.type)
}
inline void Sensor::set_type(const char* value) {
  GOOGLE_DCHECK(value != nullptr);
  _has_bits_[0] |= 0x00000004u;
  type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:gazebo.msgs.Sensor.type)
}
inline void Sensor::set_type(const char* value, size_t size) {
  _has_bits_[0] |= 0x00000004u;
  type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:gazebo.msgs.Sensor.type)
}
inline std::string* Sensor::_internal_mutable_type() {
  _has_bits_[0] |= 0x00000004u;
  return type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* Sensor::release_type() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.type)
  if (!_internal_has_type()) {
    return nullptr;
  }
  _has_bits_[0] &= ~0x00000004u;
  return type_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void Sensor::set_allocated_type(std::string* type) {
  if (type != nullptr) {
    _has_bits_[0] |= 0x00000004u;
  } else {
    _has_bits_[0] &= ~0x00000004u;
  }
  type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type);
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.type)
}

// optional bool always_on = 6;
inline bool Sensor::_internal_has_always_on() const {
  bool value = (_has_bits_[0] & 0x00004000u) != 0;
  return value;
}
inline bool Sensor::has_always_on() const {
  return _internal_has_always_on();
}
inline void Sensor::clear_always_on() {
  always_on_ = false;
  _has_bits_[0] &= ~0x00004000u;
}
inline bool Sensor::_internal_always_on() const {
  return always_on_;
}
inline bool Sensor::always_on() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.always_on)
  return _internal_always_on();
}
inline void Sensor::_internal_set_always_on(bool value) {
  _has_bits_[0] |= 0x00004000u;
  always_on_ = value;
}
inline void Sensor::set_always_on(bool value) {
  _internal_set_always_on(value);
  // @@protoc_insertion_point(field_set:gazebo.msgs.Sensor.always_on)
}

// optional double update_rate = 7;
inline bool Sensor::_internal_has_update_rate() const {
  bool value = (_has_bits_[0] & 0x00002000u) != 0;
  return value;
}
inline bool Sensor::has_update_rate() const {
  return _internal_has_update_rate();
}
inline void Sensor::clear_update_rate() {
  update_rate_ = 0;
  _has_bits_[0] &= ~0x00002000u;
}
inline double Sensor::_internal_update_rate() const {
  return update_rate_;
}
inline double Sensor::update_rate() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.update_rate)
  return _internal_update_rate();
}
inline void Sensor::_internal_set_update_rate(double value) {
  _has_bits_[0] |= 0x00002000u;
  update_rate_ = value;
}
inline void Sensor::set_update_rate(double value) {
  _internal_set_update_rate(value);
  // @@protoc_insertion_point(field_set:gazebo.msgs.Sensor.update_rate)
}

// optional .gazebo.msgs.Pose pose = 8;
inline bool Sensor::_internal_has_pose() const {
  bool value = (_has_bits_[0] & 0x00000010u) != 0;
  PROTOBUF_ASSUME(!value || pose_ != nullptr);
  return value;
}
inline bool Sensor::has_pose() const {
  return _internal_has_pose();
}
inline const ::gazebo::msgs::Pose& Sensor::_internal_pose() const {
  const ::gazebo::msgs::Pose* p = pose_;
  return p != nullptr ? *p : *reinterpret_cast<const ::gazebo::msgs::Pose*>(
      &::gazebo::msgs::_Pose_default_instance_);
}
inline const ::gazebo::msgs::Pose& Sensor::pose() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.pose)
  return _internal_pose();
}
inline ::gazebo::msgs::Pose* Sensor::release_pose() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.pose)
  _has_bits_[0] &= ~0x00000010u;
  ::gazebo::msgs::Pose* temp = pose_;
  pose_ = nullptr;
  return temp;
}
inline ::gazebo::msgs::Pose* Sensor::_internal_mutable_pose() {
  _has_bits_[0] |= 0x00000010u;
  if (pose_ == nullptr) {
    auto* p = CreateMaybeMessage<::gazebo::msgs::Pose>(GetArenaNoVirtual());
    pose_ = p;
  }
  return pose_;
}
inline ::gazebo::msgs::Pose* Sensor::mutable_pose() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.pose)
  return _internal_mutable_pose();
}
inline void Sensor::set_allocated_pose(::gazebo::msgs::Pose* pose) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  if (message_arena == nullptr) {
    delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_);
  }
  if (pose) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
    if (message_arena != submessage_arena) {
      pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, pose, submessage_arena);
    }
    _has_bits_[0] |= 0x00000010u;
  } else {
    _has_bits_[0] &= ~0x00000010u;
  }
  pose_ = pose;
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.pose)
}

// optional .gazebo.msgs.CameraSensor camera = 9;
inline bool Sensor::_internal_has_camera() const {
  bool value = (_has_bits_[0] & 0x00000020u) != 0;
  PROTOBUF_ASSUME(!value || camera_ != nullptr);
  return value;
}
inline bool Sensor::has_camera() const {
  return _internal_has_camera();
}
inline const ::gazebo::msgs::CameraSensor& Sensor::_internal_camera() const {
  const ::gazebo::msgs::CameraSensor* p = camera_;
  return p != nullptr ? *p : *reinterpret_cast<const ::gazebo::msgs::CameraSensor*>(
      &::gazebo::msgs::_CameraSensor_default_instance_);
}
inline const ::gazebo::msgs::CameraSensor& Sensor::camera() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.camera)
  return _internal_camera();
}
inline ::gazebo::msgs::CameraSensor* Sensor::release_camera() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.camera)
  _has_bits_[0] &= ~0x00000020u;
  ::gazebo::msgs::CameraSensor* temp = camera_;
  camera_ = nullptr;
  return temp;
}
inline ::gazebo::msgs::CameraSensor* Sensor::_internal_mutable_camera() {
  _has_bits_[0] |= 0x00000020u;
  if (camera_ == nullptr) {
    auto* p = CreateMaybeMessage<::gazebo::msgs::CameraSensor>(GetArenaNoVirtual());
    camera_ = p;
  }
  return camera_;
}
inline ::gazebo::msgs::CameraSensor* Sensor::mutable_camera() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.camera)
  return _internal_mutable_camera();
}
inline void Sensor::set_allocated_camera(::gazebo::msgs::CameraSensor* camera) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  if (message_arena == nullptr) {
    delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_);
  }
  if (camera) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
    if (message_arena != submessage_arena) {
      camera = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, camera, submessage_arena);
    }
    _has_bits_[0] |= 0x00000020u;
  } else {
    _has_bits_[0] &= ~0x00000020u;
  }
  camera_ = camera;
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.camera)
}

// optional .gazebo.msgs.RaySensor ray = 10;
inline bool Sensor::_internal_has_ray() const {
  bool value = (_has_bits_[0] & 0x00000040u) != 0;
  PROTOBUF_ASSUME(!value || ray_ != nullptr);
  return value;
}
inline bool Sensor::has_ray() const {
  return _internal_has_ray();
}
inline const ::gazebo::msgs::RaySensor& Sensor::_internal_ray() const {
  const ::gazebo::msgs::RaySensor* p = ray_;
  return p != nullptr ? *p : *reinterpret_cast<const ::gazebo::msgs::RaySensor*>(
      &::gazebo::msgs::_RaySensor_default_instance_);
}
inline const ::gazebo::msgs::RaySensor& Sensor::ray() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.ray)
  return _internal_ray();
}
inline ::gazebo::msgs::RaySensor* Sensor::release_ray() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.ray)
  _has_bits_[0] &= ~0x00000040u;
  ::gazebo::msgs::RaySensor* temp = ray_;
  ray_ = nullptr;
  return temp;
}
inline ::gazebo::msgs::RaySensor* Sensor::_internal_mutable_ray() {
  _has_bits_[0] |= 0x00000040u;
  if (ray_ == nullptr) {
    auto* p = CreateMaybeMessage<::gazebo::msgs::RaySensor>(GetArenaNoVirtual());
    ray_ = p;
  }
  return ray_;
}
inline ::gazebo::msgs::RaySensor* Sensor::mutable_ray() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.ray)
  return _internal_mutable_ray();
}
inline void Sensor::set_allocated_ray(::gazebo::msgs::RaySensor* ray) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  if (message_arena == nullptr) {
    delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(ray_);
  }
  if (ray) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
    if (message_arena != submessage_arena) {
      ray = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, ray, submessage_arena);
    }
    _has_bits_[0] |= 0x00000040u;
  } else {
    _has_bits_[0] &= ~0x00000040u;
  }
  ray_ = ray;
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.ray)
}

// optional .gazebo.msgs.ContactSensor contact = 11;
inline bool Sensor::_internal_has_contact() const {
  bool value = (_has_bits_[0] & 0x00000080u) != 0;
  PROTOBUF_ASSUME(!value || contact_ != nullptr);
  return value;
}
inline bool Sensor::has_contact() const {
  return _internal_has_contact();
}
inline const ::gazebo::msgs::ContactSensor& Sensor::_internal_contact() const {
  const ::gazebo::msgs::ContactSensor* p = contact_;
  return p != nullptr ? *p : *reinterpret_cast<const ::gazebo::msgs::ContactSensor*>(
      &::gazebo::msgs::_ContactSensor_default_instance_);
}
inline const ::gazebo::msgs::ContactSensor& Sensor::contact() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.contact)
  return _internal_contact();
}
inline ::gazebo::msgs::ContactSensor* Sensor::release_contact() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.contact)
  _has_bits_[0] &= ~0x00000080u;
  ::gazebo::msgs::ContactSensor* temp = contact_;
  contact_ = nullptr;
  return temp;
}
inline ::gazebo::msgs::ContactSensor* Sensor::_internal_mutable_contact() {
  _has_bits_[0] |= 0x00000080u;
  if (contact_ == nullptr) {
    auto* p = CreateMaybeMessage<::gazebo::msgs::ContactSensor>(GetArenaNoVirtual());
    contact_ = p;
  }
  return contact_;
}
inline ::gazebo::msgs::ContactSensor* Sensor::mutable_contact() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.contact)
  return _internal_mutable_contact();
}
inline void Sensor::set_allocated_contact(::gazebo::msgs::ContactSensor* contact) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  if (message_arena == nullptr) {
    delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(contact_);
  }
  if (contact) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
    if (message_arena != submessage_arena) {
      contact = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, contact, submessage_arena);
    }
    _has_bits_[0] |= 0x00000080u;
  } else {
    _has_bits_[0] &= ~0x00000080u;
  }
  contact_ = contact;
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.contact)
}

// optional bool visualize = 12;
inline bool Sensor::_internal_has_visualize() const {
  bool value = (_has_bits_[0] & 0x00008000u) != 0;
  return value;
}
inline bool Sensor::has_visualize() const {
  return _internal_has_visualize();
}
inline void Sensor::clear_visualize() {
  visualize_ = false;
  _has_bits_[0] &= ~0x00008000u;
}
inline bool Sensor::_internal_visualize() const {
  return visualize_;
}
inline bool Sensor::visualize() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.visualize)
  return _internal_visualize();
}
inline void Sensor::_internal_set_visualize(bool value) {
  _has_bits_[0] |= 0x00008000u;
  visualize_ = value;
}
inline void Sensor::set_visualize(bool value) {
  _internal_set_visualize(value);
  // @@protoc_insertion_point(field_set:gazebo.msgs.Sensor.visualize)
}

// optional string topic = 13;
inline bool Sensor::_internal_has_topic() const {
  bool value = (_has_bits_[0] & 0x00000008u) != 0;
  return value;
}
inline bool Sensor::has_topic() const {
  return _internal_has_topic();
}
inline void Sensor::clear_topic() {
  topic_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  _has_bits_[0] &= ~0x00000008u;
}
inline const std::string& Sensor::topic() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.topic)
  return _internal_topic();
}
inline void Sensor::set_topic(const std::string& value) {
  _internal_set_topic(value);
  // @@protoc_insertion_point(field_set:gazebo.msgs.Sensor.topic)
}
inline std::string* Sensor::mutable_topic() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.topic)
  return _internal_mutable_topic();
}
inline const std::string& Sensor::_internal_topic() const {
  return topic_.GetNoArena();
}
inline void Sensor::_internal_set_topic(const std::string& value) {
  _has_bits_[0] |= 0x00000008u;
  topic_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
}
inline void Sensor::set_topic(std::string&& value) {
  _has_bits_[0] |= 0x00000008u;
  topic_.SetNoArena(
    &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:gazebo.msgs.Sensor.topic)
}
inline void Sensor::set_topic(const char* value) {
  GOOGLE_DCHECK(value != nullptr);
  _has_bits_[0] |= 0x00000008u;
  topic_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:gazebo.msgs.Sensor.topic)
}
inline void Sensor::set_topic(const char* value, size_t size) {
  _has_bits_[0] |= 0x00000008u;
  topic_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:gazebo.msgs.Sensor.topic)
}
inline std::string* Sensor::_internal_mutable_topic() {
  _has_bits_[0] |= 0x00000008u;
  return topic_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* Sensor::release_topic() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.topic)
  if (!_internal_has_topic()) {
    return nullptr;
  }
  _has_bits_[0] &= ~0x00000008u;
  return topic_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void Sensor::set_allocated_topic(std::string* topic) {
  if (topic != nullptr) {
    _has_bits_[0] |= 0x00000008u;
  } else {
    _has_bits_[0] &= ~0x00000008u;
  }
  topic_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), topic);
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.topic)
}

// optional .gazebo.msgs.LogicalCameraSensor logical_camera = 14;
inline bool Sensor::_internal_has_logical_camera() const {
  bool value = (_has_bits_[0] & 0x00000100u) != 0;
  PROTOBUF_ASSUME(!value || logical_camera_ != nullptr);
  return value;
}
inline bool Sensor::has_logical_camera() const {
  return _internal_has_logical_camera();
}
inline const ::gazebo::msgs::LogicalCameraSensor& Sensor::_internal_logical_camera() const {
  const ::gazebo::msgs::LogicalCameraSensor* p = logical_camera_;
  return p != nullptr ? *p : *reinterpret_cast<const ::gazebo::msgs::LogicalCameraSensor*>(
      &::gazebo::msgs::_LogicalCameraSensor_default_instance_);
}
inline const ::gazebo::msgs::LogicalCameraSensor& Sensor::logical_camera() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.logical_camera)
  return _internal_logical_camera();
}
inline ::gazebo::msgs::LogicalCameraSensor* Sensor::release_logical_camera() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.logical_camera)
  _has_bits_[0] &= ~0x00000100u;
  ::gazebo::msgs::LogicalCameraSensor* temp = logical_camera_;
  logical_camera_ = nullptr;
  return temp;
}
inline ::gazebo::msgs::LogicalCameraSensor* Sensor::_internal_mutable_logical_camera() {
  _has_bits_[0] |= 0x00000100u;
  if (logical_camera_ == nullptr) {
    auto* p = CreateMaybeMessage<::gazebo::msgs::LogicalCameraSensor>(GetArenaNoVirtual());
    logical_camera_ = p;
  }
  return logical_camera_;
}
inline ::gazebo::msgs::LogicalCameraSensor* Sensor::mutable_logical_camera() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.logical_camera)
  return _internal_mutable_logical_camera();
}
inline void Sensor::set_allocated_logical_camera(::gazebo::msgs::LogicalCameraSensor* logical_camera) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  if (message_arena == nullptr) {
    delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(logical_camera_);
  }
  if (logical_camera) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
    if (message_arena != submessage_arena) {
      logical_camera = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, logical_camera, submessage_arena);
    }
    _has_bits_[0] |= 0x00000100u;
  } else {
    _has_bits_[0] &= ~0x00000100u;
  }
  logical_camera_ = logical_camera;
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.logical_camera)
}

// optional .gazebo.msgs.GPSSensor gps = 15;
inline bool Sensor::_internal_has_gps() const {
  bool value = (_has_bits_[0] & 0x00000200u) != 0;
  PROTOBUF_ASSUME(!value || gps_ != nullptr);
  return value;
}
inline bool Sensor::has_gps() const {
  return _internal_has_gps();
}
inline const ::gazebo::msgs::GPSSensor& Sensor::_internal_gps() const {
  const ::gazebo::msgs::GPSSensor* p = gps_;
  return p != nullptr ? *p : *reinterpret_cast<const ::gazebo::msgs::GPSSensor*>(
      &::gazebo::msgs::_GPSSensor_default_instance_);
}
inline const ::gazebo::msgs::GPSSensor& Sensor::gps() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.gps)
  return _internal_gps();
}
inline ::gazebo::msgs::GPSSensor* Sensor::release_gps() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.gps)
  _has_bits_[0] &= ~0x00000200u;
  ::gazebo::msgs::GPSSensor* temp = gps_;
  gps_ = nullptr;
  return temp;
}
inline ::gazebo::msgs::GPSSensor* Sensor::_internal_mutable_gps() {
  _has_bits_[0] |= 0x00000200u;
  if (gps_ == nullptr) {
    auto* p = CreateMaybeMessage<::gazebo::msgs::GPSSensor>(GetArenaNoVirtual());
    gps_ = p;
  }
  return gps_;
}
inline ::gazebo::msgs::GPSSensor* Sensor::mutable_gps() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.gps)
  return _internal_mutable_gps();
}
inline void Sensor::set_allocated_gps(::gazebo::msgs::GPSSensor* gps) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  if (message_arena == nullptr) {
    delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(gps_);
  }
  if (gps) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
    if (message_arena != submessage_arena) {
      gps = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, gps, submessage_arena);
    }
    _has_bits_[0] |= 0x00000200u;
  } else {
    _has_bits_[0] &= ~0x00000200u;
  }
  gps_ = gps;
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.gps)
}

// optional .gazebo.msgs.IMUSensor imu = 16;
inline bool Sensor::_internal_has_imu() const {
  bool value = (_has_bits_[0] & 0x00000400u) != 0;
  PROTOBUF_ASSUME(!value || imu_ != nullptr);
  return value;
}
inline bool Sensor::has_imu() const {
  return _internal_has_imu();
}
inline const ::gazebo::msgs::IMUSensor& Sensor::_internal_imu() const {
  const ::gazebo::msgs::IMUSensor* p = imu_;
  return p != nullptr ? *p : *reinterpret_cast<const ::gazebo::msgs::IMUSensor*>(
      &::gazebo::msgs::_IMUSensor_default_instance_);
}
inline const ::gazebo::msgs::IMUSensor& Sensor::imu() const {
  // @@protoc_insertion_point(field_get:gazebo.msgs.Sensor.imu)
  return _internal_imu();
}
inline ::gazebo::msgs::IMUSensor* Sensor::release_imu() {
  // @@protoc_insertion_point(field_release:gazebo.msgs.Sensor.imu)
  _has_bits_[0] &= ~0x00000400u;
  ::gazebo::msgs::IMUSensor* temp = imu_;
  imu_ = nullptr;
  return temp;
}
inline ::gazebo::msgs::IMUSensor* Sensor::_internal_mutable_imu() {
  _has_bits_[0] |= 0x00000400u;
  if (imu_ == nullptr) {
    auto* p = CreateMaybeMessage<::gazebo::msgs::IMUSensor>(GetArenaNoVirtual());
    imu_ = p;
  }
  return imu_;
}
inline ::gazebo::msgs::IMUSensor* Sensor::mutable_imu() {
  // @@protoc_insertion_point(field_mutable:gazebo.msgs.Sensor.imu)
  return _internal_mutable_imu();
}
inline void Sensor::set_allocated_imu(::gazebo::msgs::IMUSensor* imu) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  if (message_arena == nullptr) {
    delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(imu_);
  }
  if (imu) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
    if (message_arena != submessage_arena) {
      imu = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, imu, submessage_arena);
    }
    _has_bits_[0] |= 0x00000400u;
  } else {
    _has_bits_[0] &= ~0x00000400u;
  }
  imu_ = imu;
  // @@protoc_insertion_point(field_set_allocated:gazebo.msgs.Sensor.imu)
}

#ifdef __GNUC__
  #pragma GCC diagnostic pop
#endif  // __GNUC__

typedef boost::shared_ptr<gazebo::msgs::Sensor> SensorPtr;
// @@protoc_insertion_point(namespace_scope)

}  // namespace msgs
}  // namespace gazebo

typedef const boost::shared_ptr<gazebo::msgs::Sensor const> ConstSensorPtr;
// @@protoc_insertion_point(global_scope)

#include <google/protobuf/port_undef.inc>
#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_sensor_2eproto
