Class Motion.GetPlanResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Motion.GetPlanResponse,Motion.GetPlanResponse.Builder>
com.viam.service.motion.v1.Motion.GetPlanResponse.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Motion.GetPlanResponseOrBuilder, Cloneable
Enclosing class:
Motion.GetPlanResponse

public static final class Motion.GetPlanResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Motion.GetPlanResponse,Motion.GetPlanResponse.Builder> implements Motion.GetPlanResponseOrBuilder
Protobuf type viam.service.motion.v1.GetPlanResponse
  • Method Details

    • hasCurrentPlanWithStatus

      public boolean hasCurrentPlanWithStatus()
       The current plan and status that matches the request query
       
      .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"];
      Specified by:
      hasCurrentPlanWithStatus in interface Motion.GetPlanResponseOrBuilder
      Returns:
      Whether the currentPlanWithStatus field is set.
    • getCurrentPlanWithStatus

      public Motion.PlanWithStatus getCurrentPlanWithStatus()
       The current plan and status that matches the request query
       
      .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"];
      Specified by:
      getCurrentPlanWithStatus in interface Motion.GetPlanResponseOrBuilder
      Returns:
      The currentPlanWithStatus.
    • setCurrentPlanWithStatus

      public Motion.GetPlanResponse.Builder setCurrentPlanWithStatus(Motion.PlanWithStatus value)
       The current plan and status that matches the request query
       
      .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"];
    • setCurrentPlanWithStatus

      public Motion.GetPlanResponse.Builder setCurrentPlanWithStatus(Motion.PlanWithStatus.Builder builderForValue)
       The current plan and status that matches the request query
       
      .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"];
    • mergeCurrentPlanWithStatus

      public Motion.GetPlanResponse.Builder mergeCurrentPlanWithStatus(Motion.PlanWithStatus value)
       The current plan and status that matches the request query
       
      .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"];
    • clearCurrentPlanWithStatus

      public Motion.GetPlanResponse.Builder clearCurrentPlanWithStatus()
       The current plan and status that matches the request query
       
      .viam.service.motion.v1.PlanWithStatus current_plan_with_status = 1 [json_name = "currentPlanWithStatus"];
    • getReplanHistoryList

      public List<Motion.PlanWithStatus> getReplanHistoryList()
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
      Specified by:
      getReplanHistoryList in interface Motion.GetPlanResponseOrBuilder
    • getReplanHistoryCount

      public int getReplanHistoryCount()
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
      Specified by:
      getReplanHistoryCount in interface Motion.GetPlanResponseOrBuilder
    • getReplanHistory

      public Motion.PlanWithStatus getReplanHistory(int index)
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
      Specified by:
      getReplanHistory in interface Motion.GetPlanResponseOrBuilder
    • setReplanHistory

      public Motion.GetPlanResponse.Builder setReplanHistory(int index, Motion.PlanWithStatus value)
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
    • setReplanHistory

      public Motion.GetPlanResponse.Builder setReplanHistory(int index, Motion.PlanWithStatus.Builder builderForValue)
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
    • addReplanHistory

      public Motion.GetPlanResponse.Builder addReplanHistory(Motion.PlanWithStatus value)
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
    • addReplanHistory

      public Motion.GetPlanResponse.Builder addReplanHistory(int index, Motion.PlanWithStatus value)
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
    • addReplanHistory

      public Motion.GetPlanResponse.Builder addReplanHistory(Motion.PlanWithStatus.Builder builderForValue)
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
    • addReplanHistory

      public Motion.GetPlanResponse.Builder addReplanHistory(int index, Motion.PlanWithStatus.Builder builderForValue)
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
    • addAllReplanHistory

      public Motion.GetPlanResponse.Builder addAllReplanHistory(Iterable<? extends Motion.PlanWithStatus> values)
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
    • clearReplanHistory

      public Motion.GetPlanResponse.Builder clearReplanHistory()
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];
    • removeReplanHistory

      public Motion.GetPlanResponse.Builder removeReplanHistory(int index)
       Returns the history of all previous plans that were
       generated in ascending order.
       This field will be empty if the motion service
       did not need to re-plan.
       
      repeated .viam.service.motion.v1.PlanWithStatus replan_history = 2 [json_name = "replanHistory"];