// generated from rosidl_generator_cpp/resource/idl__builder.hpp.em
// with input from px4_msgs:msg/VehicleLandDetected.idl
// generated code does not contain a copyright notice

// IWYU pragma: private, include "px4_msgs/msg/vehicle_land_detected.hpp"


#ifndef PX4_MSGS__MSG__DETAIL__VEHICLE_LAND_DETECTED__BUILDER_HPP_
#define PX4_MSGS__MSG__DETAIL__VEHICLE_LAND_DETECTED__BUILDER_HPP_

#include <algorithm>
#include <utility>

#include "px4_msgs/msg/detail/vehicle_land_detected__struct.hpp"
#include "rosidl_runtime_cpp/message_initialization.hpp"


namespace px4_msgs
{

namespace msg
{

namespace builder
{

class Init_VehicleLandDetected_at_rest
{
public:
  explicit Init_VehicleLandDetected_at_rest(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  ::px4_msgs::msg::VehicleLandDetected at_rest(::px4_msgs::msg::VehicleLandDetected::_at_rest_type arg)
  {
    msg_.at_rest = std::move(arg);
    return std::move(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_close_to_ground_or_skipped_check
{
public:
  explicit Init_VehicleLandDetected_close_to_ground_or_skipped_check(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_at_rest close_to_ground_or_skipped_check(::px4_msgs::msg::VehicleLandDetected::_close_to_ground_or_skipped_check_type arg)
  {
    msg_.close_to_ground_or_skipped_check = std::move(arg);
    return Init_VehicleLandDetected_at_rest(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_rotational_movement
{
public:
  explicit Init_VehicleLandDetected_rotational_movement(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_close_to_ground_or_skipped_check rotational_movement(::px4_msgs::msg::VehicleLandDetected::_rotational_movement_type arg)
  {
    msg_.rotational_movement = std::move(arg);
    return Init_VehicleLandDetected_close_to_ground_or_skipped_check(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_horizontal_movement
{
public:
  explicit Init_VehicleLandDetected_horizontal_movement(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_rotational_movement horizontal_movement(::px4_msgs::msg::VehicleLandDetected::_horizontal_movement_type arg)
  {
    msg_.horizontal_movement = std::move(arg);
    return Init_VehicleLandDetected_rotational_movement(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_vertical_movement
{
public:
  explicit Init_VehicleLandDetected_vertical_movement(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_horizontal_movement vertical_movement(::px4_msgs::msg::VehicleLandDetected::_vertical_movement_type arg)
  {
    msg_.vertical_movement = std::move(arg);
    return Init_VehicleLandDetected_horizontal_movement(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_has_low_throttle
{
public:
  explicit Init_VehicleLandDetected_has_low_throttle(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_vertical_movement has_low_throttle(::px4_msgs::msg::VehicleLandDetected::_has_low_throttle_type arg)
  {
    msg_.has_low_throttle = std::move(arg);
    return Init_VehicleLandDetected_vertical_movement(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_in_descend
{
public:
  explicit Init_VehicleLandDetected_in_descend(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_has_low_throttle in_descend(::px4_msgs::msg::VehicleLandDetected::_in_descend_type arg)
  {
    msg_.in_descend = std::move(arg);
    return Init_VehicleLandDetected_has_low_throttle(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_in_ground_effect
{
public:
  explicit Init_VehicleLandDetected_in_ground_effect(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_in_descend in_ground_effect(::px4_msgs::msg::VehicleLandDetected::_in_ground_effect_type arg)
  {
    msg_.in_ground_effect = std::move(arg);
    return Init_VehicleLandDetected_in_descend(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_landed
{
public:
  explicit Init_VehicleLandDetected_landed(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_in_ground_effect landed(::px4_msgs::msg::VehicleLandDetected::_landed_type arg)
  {
    msg_.landed = std::move(arg);
    return Init_VehicleLandDetected_in_ground_effect(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_maybe_landed
{
public:
  explicit Init_VehicleLandDetected_maybe_landed(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_landed maybe_landed(::px4_msgs::msg::VehicleLandDetected::_maybe_landed_type arg)
  {
    msg_.maybe_landed = std::move(arg);
    return Init_VehicleLandDetected_landed(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_ground_contact
{
public:
  explicit Init_VehicleLandDetected_ground_contact(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_maybe_landed ground_contact(::px4_msgs::msg::VehicleLandDetected::_ground_contact_type arg)
  {
    msg_.ground_contact = std::move(arg);
    return Init_VehicleLandDetected_maybe_landed(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_freefall
{
public:
  explicit Init_VehicleLandDetected_freefall(::px4_msgs::msg::VehicleLandDetected & msg)
  : msg_(msg)
  {}
  Init_VehicleLandDetected_ground_contact freefall(::px4_msgs::msg::VehicleLandDetected::_freefall_type arg)
  {
    msg_.freefall = std::move(arg);
    return Init_VehicleLandDetected_ground_contact(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

class Init_VehicleLandDetected_timestamp
{
public:
  Init_VehicleLandDetected_timestamp()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_VehicleLandDetected_freefall timestamp(::px4_msgs::msg::VehicleLandDetected::_timestamp_type arg)
  {
    msg_.timestamp = std::move(arg);
    return Init_VehicleLandDetected_freefall(msg_);
  }

private:
  ::px4_msgs::msg::VehicleLandDetected msg_;
};

}  // namespace builder

}  // namespace msg

template<typename MessageType>
auto build();

template<>
inline
auto build<::px4_msgs::msg::VehicleLandDetected>()
{
  return px4_msgs::msg::builder::Init_VehicleLandDetected_timestamp();
}

}  // namespace px4_msgs

#endif  // PX4_MSGS__MSG__DETAIL__VEHICLE_LAND_DETECTED__BUILDER_HPP_
