Class Motion.PlanWithStatus.Builder

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

public static final class Motion.PlanWithStatus.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Motion.PlanWithStatus,Motion.PlanWithStatus.Builder> implements Motion.PlanWithStatusOrBuilder
 Describes a plan, its current status & all status changes
 that have occured previously on that plan
 
Protobuf type viam.service.motion.v1.PlanWithStatus
  • Method Details

    • hasPlan

      public boolean hasPlan()
       The plan
       
      .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"];
      Specified by:
      hasPlan in interface Motion.PlanWithStatusOrBuilder
      Returns:
      Whether the plan field is set.
    • getPlan

      public Motion.Plan getPlan()
       The plan
       
      .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"];
      Specified by:
      getPlan in interface Motion.PlanWithStatusOrBuilder
      Returns:
      The plan.
    • setPlan

       The plan
       
      .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"];
    • setPlan

      public Motion.PlanWithStatus.Builder setPlan(Motion.Plan.Builder builderForValue)
       The plan
       
      .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"];
    • mergePlan

      public Motion.PlanWithStatus.Builder mergePlan(Motion.Plan value)
       The plan
       
      .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"];
    • clearPlan

      public Motion.PlanWithStatus.Builder clearPlan()
       The plan
       
      .viam.service.motion.v1.Plan plan = 1 [json_name = "plan"];
    • hasStatus

      public boolean hasStatus()
       The current status of the plan
       
      .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"];
      Specified by:
      hasStatus in interface Motion.PlanWithStatusOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Motion.PlanStatus getStatus()
       The current status of the plan
       
      .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"];
      Specified by:
      getStatus in interface Motion.PlanWithStatusOrBuilder
      Returns:
      The status.
    • setStatus

       The current status of the plan
       
      .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"];
    • setStatus

      public Motion.PlanWithStatus.Builder setStatus(Motion.PlanStatus.Builder builderForValue)
       The current status of the plan
       
      .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"];
    • mergeStatus

       The current status of the plan
       
      .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"];
    • clearStatus

      public Motion.PlanWithStatus.Builder clearStatus()
       The current status of the plan
       
      .viam.service.motion.v1.PlanStatus status = 2 [json_name = "status"];
    • getStatusHistoryList

      public List<Motion.PlanStatus> getStatusHistoryList()
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
      Specified by:
      getStatusHistoryList in interface Motion.PlanWithStatusOrBuilder
    • getStatusHistoryCount

      public int getStatusHistoryCount()
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
      Specified by:
      getStatusHistoryCount in interface Motion.PlanWithStatusOrBuilder
    • getStatusHistory

      public Motion.PlanStatus getStatusHistory(int index)
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
      Specified by:
      getStatusHistory in interface Motion.PlanWithStatusOrBuilder
    • setStatusHistory

      public Motion.PlanWithStatus.Builder setStatusHistory(int index, Motion.PlanStatus value)
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
    • setStatusHistory

      public Motion.PlanWithStatus.Builder setStatusHistory(int index, Motion.PlanStatus.Builder builderForValue)
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
    • addStatusHistory

      public Motion.PlanWithStatus.Builder addStatusHistory(Motion.PlanStatus value)
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
    • addStatusHistory

      public Motion.PlanWithStatus.Builder addStatusHistory(int index, Motion.PlanStatus value)
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
    • addStatusHistory

      public Motion.PlanWithStatus.Builder addStatusHistory(Motion.PlanStatus.Builder builderForValue)
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
    • addStatusHistory

      public Motion.PlanWithStatus.Builder addStatusHistory(int index, Motion.PlanStatus.Builder builderForValue)
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
    • addAllStatusHistory

      public Motion.PlanWithStatus.Builder addAllStatusHistory(Iterable<? extends Motion.PlanStatus> values)
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
    • clearStatusHistory

      public Motion.PlanWithStatus.Builder clearStatusHistory()
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];
    • removeStatusHistory

      public Motion.PlanWithStatus.Builder removeStatusHistory(int index)
       The prior status changes that have happened during plan execution
       
      repeated .viam.service.motion.v1.PlanStatus status_history = 3 [json_name = "statusHistory"];