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

#ifndef INTERFACE_PROTOCOL__MSG__DETAIL__POWER_INFO__BUILDER_HPP_
#define INTERFACE_PROTOCOL__MSG__DETAIL__POWER_INFO__BUILDER_HPP_

#include <algorithm>
#include <utility>

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


namespace interface_protocol
{

namespace msg
{

namespace builder
{

class Init_PowerInfo_error_code
{
public:
  explicit Init_PowerInfo_error_code(::interface_protocol::msg::PowerInfo & msg)
  : msg_(msg)
  {}
  ::interface_protocol::msg::PowerInfo error_code(::interface_protocol::msg::PowerInfo::_error_code_type arg)
  {
    msg_.error_code = std::move(arg);
    return std::move(msg_);
  }

private:
  ::interface_protocol::msg::PowerInfo msg_;
};

class Init_PowerInfo_current_limit
{
public:
  explicit Init_PowerInfo_current_limit(::interface_protocol::msg::PowerInfo & msg)
  : msg_(msg)
  {}
  Init_PowerInfo_error_code current_limit(::interface_protocol::msg::PowerInfo::_current_limit_type arg)
  {
    msg_.current_limit = std::move(arg);
    return Init_PowerInfo_error_code(msg_);
  }

private:
  ::interface_protocol::msg::PowerInfo msg_;
};

class Init_PowerInfo_current
{
public:
  explicit Init_PowerInfo_current(::interface_protocol::msg::PowerInfo & msg)
  : msg_(msg)
  {}
  Init_PowerInfo_current_limit current(::interface_protocol::msg::PowerInfo::_current_type arg)
  {
    msg_.current = std::move(arg);
    return Init_PowerInfo_current_limit(msg_);
  }

private:
  ::interface_protocol::msg::PowerInfo msg_;
};

class Init_PowerInfo_voltage
{
public:
  explicit Init_PowerInfo_voltage(::interface_protocol::msg::PowerInfo & msg)
  : msg_(msg)
  {}
  Init_PowerInfo_current voltage(::interface_protocol::msg::PowerInfo::_voltage_type arg)
  {
    msg_.voltage = std::move(arg);
    return Init_PowerInfo_current(msg_);
  }

private:
  ::interface_protocol::msg::PowerInfo msg_;
};

class Init_PowerInfo_percentage
{
public:
  explicit Init_PowerInfo_percentage(::interface_protocol::msg::PowerInfo & msg)
  : msg_(msg)
  {}
  Init_PowerInfo_voltage percentage(::interface_protocol::msg::PowerInfo::_percentage_type arg)
  {
    msg_.percentage = std::move(arg);
    return Init_PowerInfo_voltage(msg_);
  }

private:
  ::interface_protocol::msg::PowerInfo msg_;
};

class Init_PowerInfo_enable
{
public:
  Init_PowerInfo_enable()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_PowerInfo_percentage enable(::interface_protocol::msg::PowerInfo::_enable_type arg)
  {
    msg_.enable = std::move(arg);
    return Init_PowerInfo_percentage(msg_);
  }

private:
  ::interface_protocol::msg::PowerInfo msg_;
};

}  // namespace builder

}  // namespace msg

template<typename MessageType>
auto build();

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

}  // namespace interface_protocol

#endif  // INTERFACE_PROTOCOL__MSG__DETAIL__POWER_INFO__BUILDER_HPP_
