// generated from rosidl_generator_cpp/resource/idl__builder.hpp.em
// with input from test_msgs:action/NestedMessage.idl
// generated code does not contain a copyright notice

#ifndef TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__BUILDER_HPP_
#define TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__BUILDER_HPP_

#include <algorithm>
#include <utility>

#include "test_msgs/action/detail/nested_message__struct.hpp"
#include "rosidl_runtime_cpp/message_initialization.hpp"


namespace test_msgs
{

namespace action
{

namespace builder
{

class Init_NestedMessage_Goal_nested_different_pkg
{
public:
  explicit Init_NestedMessage_Goal_nested_different_pkg(::test_msgs::action::NestedMessage_Goal & msg)
  : msg_(msg)
  {}
  ::test_msgs::action::NestedMessage_Goal nested_different_pkg(::test_msgs::action::NestedMessage_Goal::_nested_different_pkg_type arg)
  {
    msg_.nested_different_pkg = std::move(arg);
    return std::move(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_Goal msg_;
};

class Init_NestedMessage_Goal_nested_field
{
public:
  explicit Init_NestedMessage_Goal_nested_field(::test_msgs::action::NestedMessage_Goal & msg)
  : msg_(msg)
  {}
  Init_NestedMessage_Goal_nested_different_pkg nested_field(::test_msgs::action::NestedMessage_Goal::_nested_field_type arg)
  {
    msg_.nested_field = std::move(arg);
    return Init_NestedMessage_Goal_nested_different_pkg(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_Goal msg_;
};

class Init_NestedMessage_Goal_nested_field_no_pkg
{
public:
  Init_NestedMessage_Goal_nested_field_no_pkg()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_NestedMessage_Goal_nested_field nested_field_no_pkg(::test_msgs::action::NestedMessage_Goal::_nested_field_no_pkg_type arg)
  {
    msg_.nested_field_no_pkg = std::move(arg);
    return Init_NestedMessage_Goal_nested_field(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_Goal msg_;
};

}  // namespace builder

}  // namespace action

template<typename MessageType>
auto build();

template<>
inline
auto build<::test_msgs::action::NestedMessage_Goal>()
{
  return test_msgs::action::builder::Init_NestedMessage_Goal_nested_field_no_pkg();
}

}  // namespace test_msgs


namespace test_msgs
{

namespace action
{

namespace builder
{

class Init_NestedMessage_Result_nested_different_pkg
{
public:
  explicit Init_NestedMessage_Result_nested_different_pkg(::test_msgs::action::NestedMessage_Result & msg)
  : msg_(msg)
  {}
  ::test_msgs::action::NestedMessage_Result nested_different_pkg(::test_msgs::action::NestedMessage_Result::_nested_different_pkg_type arg)
  {
    msg_.nested_different_pkg = std::move(arg);
    return std::move(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_Result msg_;
};

class Init_NestedMessage_Result_nested_field
{
public:
  explicit Init_NestedMessage_Result_nested_field(::test_msgs::action::NestedMessage_Result & msg)
  : msg_(msg)
  {}
  Init_NestedMessage_Result_nested_different_pkg nested_field(::test_msgs::action::NestedMessage_Result::_nested_field_type arg)
  {
    msg_.nested_field = std::move(arg);
    return Init_NestedMessage_Result_nested_different_pkg(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_Result msg_;
};

class Init_NestedMessage_Result_nested_field_no_pkg
{
public:
  Init_NestedMessage_Result_nested_field_no_pkg()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_NestedMessage_Result_nested_field nested_field_no_pkg(::test_msgs::action::NestedMessage_Result::_nested_field_no_pkg_type arg)
  {
    msg_.nested_field_no_pkg = std::move(arg);
    return Init_NestedMessage_Result_nested_field(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_Result msg_;
};

}  // namespace builder

}  // namespace action

template<typename MessageType>
auto build();

template<>
inline
auto build<::test_msgs::action::NestedMessage_Result>()
{
  return test_msgs::action::builder::Init_NestedMessage_Result_nested_field_no_pkg();
}

}  // namespace test_msgs


namespace test_msgs
{

namespace action
{

namespace builder
{

class Init_NestedMessage_Feedback_nested_different_pkg
{
public:
  explicit Init_NestedMessage_Feedback_nested_different_pkg(::test_msgs::action::NestedMessage_Feedback & msg)
  : msg_(msg)
  {}
  ::test_msgs::action::NestedMessage_Feedback nested_different_pkg(::test_msgs::action::NestedMessage_Feedback::_nested_different_pkg_type arg)
  {
    msg_.nested_different_pkg = std::move(arg);
    return std::move(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_Feedback msg_;
};

class Init_NestedMessage_Feedback_nested_field
{
public:
  explicit Init_NestedMessage_Feedback_nested_field(::test_msgs::action::NestedMessage_Feedback & msg)
  : msg_(msg)
  {}
  Init_NestedMessage_Feedback_nested_different_pkg nested_field(::test_msgs::action::NestedMessage_Feedback::_nested_field_type arg)
  {
    msg_.nested_field = std::move(arg);
    return Init_NestedMessage_Feedback_nested_different_pkg(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_Feedback msg_;
};

class Init_NestedMessage_Feedback_nested_field_no_pkg
{
public:
  Init_NestedMessage_Feedback_nested_field_no_pkg()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_NestedMessage_Feedback_nested_field nested_field_no_pkg(::test_msgs::action::NestedMessage_Feedback::_nested_field_no_pkg_type arg)
  {
    msg_.nested_field_no_pkg = std::move(arg);
    return Init_NestedMessage_Feedback_nested_field(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_Feedback msg_;
};

}  // namespace builder

}  // namespace action

template<typename MessageType>
auto build();

template<>
inline
auto build<::test_msgs::action::NestedMessage_Feedback>()
{
  return test_msgs::action::builder::Init_NestedMessage_Feedback_nested_field_no_pkg();
}

}  // namespace test_msgs


namespace test_msgs
{

namespace action
{

namespace builder
{

class Init_NestedMessage_SendGoal_Request_goal
{
public:
  explicit Init_NestedMessage_SendGoal_Request_goal(::test_msgs::action::NestedMessage_SendGoal_Request & msg)
  : msg_(msg)
  {}
  ::test_msgs::action::NestedMessage_SendGoal_Request goal(::test_msgs::action::NestedMessage_SendGoal_Request::_goal_type arg)
  {
    msg_.goal = std::move(arg);
    return std::move(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_SendGoal_Request msg_;
};

class Init_NestedMessage_SendGoal_Request_goal_id
{
public:
  Init_NestedMessage_SendGoal_Request_goal_id()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_NestedMessage_SendGoal_Request_goal goal_id(::test_msgs::action::NestedMessage_SendGoal_Request::_goal_id_type arg)
  {
    msg_.goal_id = std::move(arg);
    return Init_NestedMessage_SendGoal_Request_goal(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_SendGoal_Request msg_;
};

}  // namespace builder

}  // namespace action

template<typename MessageType>
auto build();

template<>
inline
auto build<::test_msgs::action::NestedMessage_SendGoal_Request>()
{
  return test_msgs::action::builder::Init_NestedMessage_SendGoal_Request_goal_id();
}

}  // namespace test_msgs


namespace test_msgs
{

namespace action
{

namespace builder
{

class Init_NestedMessage_SendGoal_Response_stamp
{
public:
  explicit Init_NestedMessage_SendGoal_Response_stamp(::test_msgs::action::NestedMessage_SendGoal_Response & msg)
  : msg_(msg)
  {}
  ::test_msgs::action::NestedMessage_SendGoal_Response stamp(::test_msgs::action::NestedMessage_SendGoal_Response::_stamp_type arg)
  {
    msg_.stamp = std::move(arg);
    return std::move(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_SendGoal_Response msg_;
};

class Init_NestedMessage_SendGoal_Response_accepted
{
public:
  Init_NestedMessage_SendGoal_Response_accepted()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_NestedMessage_SendGoal_Response_stamp accepted(::test_msgs::action::NestedMessage_SendGoal_Response::_accepted_type arg)
  {
    msg_.accepted = std::move(arg);
    return Init_NestedMessage_SendGoal_Response_stamp(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_SendGoal_Response msg_;
};

}  // namespace builder

}  // namespace action

template<typename MessageType>
auto build();

template<>
inline
auto build<::test_msgs::action::NestedMessage_SendGoal_Response>()
{
  return test_msgs::action::builder::Init_NestedMessage_SendGoal_Response_accepted();
}

}  // namespace test_msgs


namespace test_msgs
{

namespace action
{

namespace builder
{

class Init_NestedMessage_GetResult_Request_goal_id
{
public:
  Init_NestedMessage_GetResult_Request_goal_id()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  ::test_msgs::action::NestedMessage_GetResult_Request goal_id(::test_msgs::action::NestedMessage_GetResult_Request::_goal_id_type arg)
  {
    msg_.goal_id = std::move(arg);
    return std::move(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_GetResult_Request msg_;
};

}  // namespace builder

}  // namespace action

template<typename MessageType>
auto build();

template<>
inline
auto build<::test_msgs::action::NestedMessage_GetResult_Request>()
{
  return test_msgs::action::builder::Init_NestedMessage_GetResult_Request_goal_id();
}

}  // namespace test_msgs


namespace test_msgs
{

namespace action
{

namespace builder
{

class Init_NestedMessage_GetResult_Response_result
{
public:
  explicit Init_NestedMessage_GetResult_Response_result(::test_msgs::action::NestedMessage_GetResult_Response & msg)
  : msg_(msg)
  {}
  ::test_msgs::action::NestedMessage_GetResult_Response result(::test_msgs::action::NestedMessage_GetResult_Response::_result_type arg)
  {
    msg_.result = std::move(arg);
    return std::move(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_GetResult_Response msg_;
};

class Init_NestedMessage_GetResult_Response_status
{
public:
  Init_NestedMessage_GetResult_Response_status()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_NestedMessage_GetResult_Response_result status(::test_msgs::action::NestedMessage_GetResult_Response::_status_type arg)
  {
    msg_.status = std::move(arg);
    return Init_NestedMessage_GetResult_Response_result(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_GetResult_Response msg_;
};

}  // namespace builder

}  // namespace action

template<typename MessageType>
auto build();

template<>
inline
auto build<::test_msgs::action::NestedMessage_GetResult_Response>()
{
  return test_msgs::action::builder::Init_NestedMessage_GetResult_Response_status();
}

}  // namespace test_msgs


namespace test_msgs
{

namespace action
{

namespace builder
{

class Init_NestedMessage_FeedbackMessage_feedback
{
public:
  explicit Init_NestedMessage_FeedbackMessage_feedback(::test_msgs::action::NestedMessage_FeedbackMessage & msg)
  : msg_(msg)
  {}
  ::test_msgs::action::NestedMessage_FeedbackMessage feedback(::test_msgs::action::NestedMessage_FeedbackMessage::_feedback_type arg)
  {
    msg_.feedback = std::move(arg);
    return std::move(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_FeedbackMessage msg_;
};

class Init_NestedMessage_FeedbackMessage_goal_id
{
public:
  Init_NestedMessage_FeedbackMessage_goal_id()
  : msg_(::rosidl_runtime_cpp::MessageInitialization::SKIP)
  {}
  Init_NestedMessage_FeedbackMessage_feedback goal_id(::test_msgs::action::NestedMessage_FeedbackMessage::_goal_id_type arg)
  {
    msg_.goal_id = std::move(arg);
    return Init_NestedMessage_FeedbackMessage_feedback(msg_);
  }

private:
  ::test_msgs::action::NestedMessage_FeedbackMessage msg_;
};

}  // namespace builder

}  // namespace action

template<typename MessageType>
auto build();

template<>
inline
auto build<::test_msgs::action::NestedMessage_FeedbackMessage>()
{
  return test_msgs::action::builder::Init_NestedMessage_FeedbackMessage_goal_id();
}

}  // namespace test_msgs

#endif  // TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__BUILDER_HPP_
