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

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


#ifndef PX4_MSGS__MSG__DETAIL__VEHICLE_COMMAND__BUILDER_HPP_
#define PX4_MSGS__MSG__DETAIL__VEHICLE_COMMAND__BUILDER_HPP_

#include <algorithm>
#include <utility>

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


namespace px4_msgs
{

namespace msg
{

namespace builder
{

class Init_VehicleCommand_from_external
{
public:
  explicit Init_VehicleCommand_from_external(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  ::px4_msgs::msg::VehicleCommand from_external(::px4_msgs::msg::VehicleCommand::_from_external_type arg)
  {
    msg_.from_external = std::move(arg);
    return std::move(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_confirmation
{
public:
  explicit Init_VehicleCommand_confirmation(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_from_external confirmation(::px4_msgs::msg::VehicleCommand::_confirmation_type arg)
  {
    msg_.confirmation = std::move(arg);
    return Init_VehicleCommand_from_external(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_source_component
{
public:
  explicit Init_VehicleCommand_source_component(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_confirmation source_component(::px4_msgs::msg::VehicleCommand::_source_component_type arg)
  {
    msg_.source_component = std::move(arg);
    return Init_VehicleCommand_confirmation(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_source_system
{
public:
  explicit Init_VehicleCommand_source_system(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_source_component source_system(::px4_msgs::msg::VehicleCommand::_source_system_type arg)
  {
    msg_.source_system = std::move(arg);
    return Init_VehicleCommand_source_component(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_target_component
{
public:
  explicit Init_VehicleCommand_target_component(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_source_system target_component(::px4_msgs::msg::VehicleCommand::_target_component_type arg)
  {
    msg_.target_component = std::move(arg);
    return Init_VehicleCommand_source_system(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_target_system
{
public:
  explicit Init_VehicleCommand_target_system(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_target_component target_system(::px4_msgs::msg::VehicleCommand::_target_system_type arg)
  {
    msg_.target_system = std::move(arg);
    return Init_VehicleCommand_target_component(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_command
{
public:
  explicit Init_VehicleCommand_command(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_target_system command(::px4_msgs::msg::VehicleCommand::_command_type arg)
  {
    msg_.command = std::move(arg);
    return Init_VehicleCommand_target_system(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_param7
{
public:
  explicit Init_VehicleCommand_param7(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_command param7(::px4_msgs::msg::VehicleCommand::_param7_type arg)
  {
    msg_.param7 = std::move(arg);
    return Init_VehicleCommand_command(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_param6
{
public:
  explicit Init_VehicleCommand_param6(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_param7 param6(::px4_msgs::msg::VehicleCommand::_param6_type arg)
  {
    msg_.param6 = std::move(arg);
    return Init_VehicleCommand_param7(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_param5
{
public:
  explicit Init_VehicleCommand_param5(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_param6 param5(::px4_msgs::msg::VehicleCommand::_param5_type arg)
  {
    msg_.param5 = std::move(arg);
    return Init_VehicleCommand_param6(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_param4
{
public:
  explicit Init_VehicleCommand_param4(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_param5 param4(::px4_msgs::msg::VehicleCommand::_param4_type arg)
  {
    msg_.param4 = std::move(arg);
    return Init_VehicleCommand_param5(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_param3
{
public:
  explicit Init_VehicleCommand_param3(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_param4 param3(::px4_msgs::msg::VehicleCommand::_param3_type arg)
  {
    msg_.param3 = std::move(arg);
    return Init_VehicleCommand_param4(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_param2
{
public:
  explicit Init_VehicleCommand_param2(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_param3 param2(::px4_msgs::msg::VehicleCommand::_param2_type arg)
  {
    msg_.param2 = std::move(arg);
    return Init_VehicleCommand_param3(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_param1
{
public:
  explicit Init_VehicleCommand_param1(::px4_msgs::msg::VehicleCommand & msg)
  : msg_(msg)
  {}
  Init_VehicleCommand_param2 param1(::px4_msgs::msg::VehicleCommand::_param1_type arg)
  {
    msg_.param1 = std::move(arg);
    return Init_VehicleCommand_param2(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

class Init_VehicleCommand_timestamp
{
public:
  Init_VehicleCommand_timestamp()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_VehicleCommand_param1 timestamp(::px4_msgs::msg::VehicleCommand::_timestamp_type arg)
  {
    msg_.timestamp = std::move(arg);
    return Init_VehicleCommand_param1(msg_);
  }

private:
  ::px4_msgs::msg::VehicleCommand msg_;
};

}  // namespace builder

}  // namespace msg

template<typename MessageType>
auto build();

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

}  // namespace px4_msgs

#endif  // PX4_MSGS__MSG__DETAIL__VEHICLE_COMMAND__BUILDER_HPP_
