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

#ifndef INTERFACE_PROTOCOL__MSG__DETAIL__JOINT_OVERRIDE_COMMAND__BUILDER_HPP_
#define INTERFACE_PROTOCOL__MSG__DETAIL__JOINT_OVERRIDE_COMMAND__BUILDER_HPP_

#include <algorithm>
#include <utility>

#include "interface_protocol/msg/detail/joint_override_command__struct.hpp"
#include "rosidl_runtime_cpp/message_initialization.hpp"


namespace interface_protocol
{

namespace msg
{

namespace builder
{

class Init_JointOverrideCommand_damping
{
public:
  explicit Init_JointOverrideCommand_damping(::interface_protocol::msg::JointOverrideCommand & msg)
  : msg_(msg)
  {}
  ::interface_protocol::msg::JointOverrideCommand damping(::interface_protocol::msg::JointOverrideCommand::_damping_type arg)
  {
    msg_.damping = std::move(arg);
    return std::move(msg_);
  }

private:
  ::interface_protocol::msg::JointOverrideCommand msg_;
};

class Init_JointOverrideCommand_stiffness
{
public:
  explicit Init_JointOverrideCommand_stiffness(::interface_protocol::msg::JointOverrideCommand & msg)
  : msg_(msg)
  {}
  Init_JointOverrideCommand_damping stiffness(::interface_protocol::msg::JointOverrideCommand::_stiffness_type arg)
  {
    msg_.stiffness = std::move(arg);
    return Init_JointOverrideCommand_damping(msg_);
  }

private:
  ::interface_protocol::msg::JointOverrideCommand msg_;
};

class Init_JointOverrideCommand_torque
{
public:
  explicit Init_JointOverrideCommand_torque(::interface_protocol::msg::JointOverrideCommand & msg)
  : msg_(msg)
  {}
  Init_JointOverrideCommand_stiffness torque(::interface_protocol::msg::JointOverrideCommand::_torque_type arg)
  {
    msg_.torque = std::move(arg);
    return Init_JointOverrideCommand_stiffness(msg_);
  }

private:
  ::interface_protocol::msg::JointOverrideCommand msg_;
};

class Init_JointOverrideCommand_feed_forward_torque
{
public:
  explicit Init_JointOverrideCommand_feed_forward_torque(::interface_protocol::msg::JointOverrideCommand & msg)
  : msg_(msg)
  {}
  Init_JointOverrideCommand_torque feed_forward_torque(::interface_protocol::msg::JointOverrideCommand::_feed_forward_torque_type arg)
  {
    msg_.feed_forward_torque = std::move(arg);
    return Init_JointOverrideCommand_torque(msg_);
  }

private:
  ::interface_protocol::msg::JointOverrideCommand msg_;
};

class Init_JointOverrideCommand_velocity
{
public:
  explicit Init_JointOverrideCommand_velocity(::interface_protocol::msg::JointOverrideCommand & msg)
  : msg_(msg)
  {}
  Init_JointOverrideCommand_feed_forward_torque velocity(::interface_protocol::msg::JointOverrideCommand::_velocity_type arg)
  {
    msg_.velocity = std::move(arg);
    return Init_JointOverrideCommand_feed_forward_torque(msg_);
  }

private:
  ::interface_protocol::msg::JointOverrideCommand msg_;
};

class Init_JointOverrideCommand_position
{
public:
  explicit Init_JointOverrideCommand_position(::interface_protocol::msg::JointOverrideCommand & msg)
  : msg_(msg)
  {}
  Init_JointOverrideCommand_velocity position(::interface_protocol::msg::JointOverrideCommand::_position_type arg)
  {
    msg_.position = std::move(arg);
    return Init_JointOverrideCommand_velocity(msg_);
  }

private:
  ::interface_protocol::msg::JointOverrideCommand msg_;
};

class Init_JointOverrideCommand_joint_indices
{
public:
  explicit Init_JointOverrideCommand_joint_indices(::interface_protocol::msg::JointOverrideCommand & msg)
  : msg_(msg)
  {}
  Init_JointOverrideCommand_position joint_indices(::interface_protocol::msg::JointOverrideCommand::_joint_indices_type arg)
  {
    msg_.joint_indices = std::move(arg);
    return Init_JointOverrideCommand_position(msg_);
  }

private:
  ::interface_protocol::msg::JointOverrideCommand msg_;
};

class Init_JointOverrideCommand_weight
{
public:
  explicit Init_JointOverrideCommand_weight(::interface_protocol::msg::JointOverrideCommand & msg)
  : msg_(msg)
  {}
  Init_JointOverrideCommand_joint_indices weight(::interface_protocol::msg::JointOverrideCommand::_weight_type arg)
  {
    msg_.weight = std::move(arg);
    return Init_JointOverrideCommand_joint_indices(msg_);
  }

private:
  ::interface_protocol::msg::JointOverrideCommand msg_;
};

class Init_JointOverrideCommand_header
{
public:
  Init_JointOverrideCommand_header()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_JointOverrideCommand_weight header(::interface_protocol::msg::JointOverrideCommand::_header_type arg)
  {
    msg_.header = std::move(arg);
    return Init_JointOverrideCommand_weight(msg_);
  }

private:
  ::interface_protocol::msg::JointOverrideCommand msg_;
};

}  // namespace builder

}  // namespace msg

template<typename MessageType>
auto build();

template<>
inline
auto build<::interface_protocol::msg::JointOverrideCommand>()
{
  return interface_protocol::msg::builder::Init_JointOverrideCommand_header();
}

}  // namespace interface_protocol

#endif  // INTERFACE_PROTOCOL__MSG__DETAIL__JOINT_OVERRIDE_COMMAND__BUILDER_HPP_
