Class Motion.Plan.Builder

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

public static final class Motion.Plan.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Motion.Plan,Motion.Plan.Builder> implements Motion.PlanOrBuilder
 A plan describes a motion plan
 
Protobuf type viam.service.motion.v1.Plan
  • Method Details

    • getId

      public String getId()
       The plan's unique ID
       
      string id = 1 [json_name = "id"];
      Specified by:
      getId in interface Motion.PlanOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The plan's unique ID
       
      string id = 1 [json_name = "id"];
      Specified by:
      getIdBytes in interface Motion.PlanOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Motion.Plan.Builder setId(String value)
       The plan's unique ID
       
      string id = 1 [json_name = "id"];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Motion.Plan.Builder clearId()
       The plan's unique ID
       
      string id = 1 [json_name = "id"];
      Returns:
      This builder for chaining.
    • setIdBytes

      public Motion.Plan.Builder setIdBytes(com.google.protobuf.ByteString value)
       The plan's unique ID
       
      string id = 1 [json_name = "id"];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasComponentName

      public boolean hasComponentName()
       The component requested to be moved.
       Used for tracking & stopping.
       NOTE: A plan may move more components than just the
       root component.
       
      .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"];
      Specified by:
      hasComponentName in interface Motion.PlanOrBuilder
      Returns:
      Whether the componentName field is set.
    • getComponentName

      public Common.ResourceName getComponentName()
       The component requested to be moved.
       Used for tracking & stopping.
       NOTE: A plan may move more components than just the
       root component.
       
      .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"];
      Specified by:
      getComponentName in interface Motion.PlanOrBuilder
      Returns:
      The componentName.
    • setComponentName

      public Motion.Plan.Builder setComponentName(Common.ResourceName value)
       The component requested to be moved.
       Used for tracking & stopping.
       NOTE: A plan may move more components than just the
       root component.
       
      .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"];
    • setComponentName

      public Motion.Plan.Builder setComponentName(Common.ResourceName.Builder builderForValue)
       The component requested to be moved.
       Used for tracking & stopping.
       NOTE: A plan may move more components than just the
       root component.
       
      .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"];
    • mergeComponentName

      public Motion.Plan.Builder mergeComponentName(Common.ResourceName value)
       The component requested to be moved.
       Used for tracking & stopping.
       NOTE: A plan may move more components than just the
       root component.
       
      .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"];
    • clearComponentName

      public Motion.Plan.Builder clearComponentName()
       The component requested to be moved.
       Used for tracking & stopping.
       NOTE: A plan may move more components than just the
       root component.
       
      .viam.common.v1.ResourceName component_name = 2 [json_name = "componentName"];
    • getExecutionId

      public String getExecutionId()
       The unique ID which identifies the execution.
       Multiple plans will share the same execution_id if they were
       generated due to replanning
       
      string execution_id = 3 [json_name = "executionId"];
      Specified by:
      getExecutionId in interface Motion.PlanOrBuilder
      Returns:
      The executionId.
    • getExecutionIdBytes

      public com.google.protobuf.ByteString getExecutionIdBytes()
       The unique ID which identifies the execution.
       Multiple plans will share the same execution_id if they were
       generated due to replanning
       
      string execution_id = 3 [json_name = "executionId"];
      Specified by:
      getExecutionIdBytes in interface Motion.PlanOrBuilder
      Returns:
      The bytes for executionId.
    • setExecutionId

      public Motion.Plan.Builder setExecutionId(String value)
       The unique ID which identifies the execution.
       Multiple plans will share the same execution_id if they were
       generated due to replanning
       
      string execution_id = 3 [json_name = "executionId"];
      Parameters:
      value - The executionId to set.
      Returns:
      This builder for chaining.
    • clearExecutionId

      public Motion.Plan.Builder clearExecutionId()
       The unique ID which identifies the execution.
       Multiple plans will share the same execution_id if they were
       generated due to replanning
       
      string execution_id = 3 [json_name = "executionId"];
      Returns:
      This builder for chaining.
    • setExecutionIdBytes

      public Motion.Plan.Builder setExecutionIdBytes(com.google.protobuf.ByteString value)
       The unique ID which identifies the execution.
       Multiple plans will share the same execution_id if they were
       generated due to replanning
       
      string execution_id = 3 [json_name = "executionId"];
      Parameters:
      value - The bytes for executionId to set.
      Returns:
      This builder for chaining.
    • getStepsList

      public List<Motion.PlanStep> getStepsList()
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
      Specified by:
      getStepsList in interface Motion.PlanOrBuilder
    • getStepsCount

      public int getStepsCount()
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
      Specified by:
      getStepsCount in interface Motion.PlanOrBuilder
    • getSteps

      public Motion.PlanStep getSteps(int index)
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
      Specified by:
      getSteps in interface Motion.PlanOrBuilder
    • setSteps

      public Motion.Plan.Builder setSteps(int index, Motion.PlanStep value)
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
    • setSteps

      public Motion.Plan.Builder setSteps(int index, Motion.PlanStep.Builder builderForValue)
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
    • addSteps

      public Motion.Plan.Builder addSteps(Motion.PlanStep value)
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
    • addSteps

      public Motion.Plan.Builder addSteps(int index, Motion.PlanStep value)
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
    • addSteps

      public Motion.Plan.Builder addSteps(Motion.PlanStep.Builder builderForValue)
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
    • addSteps

      public Motion.Plan.Builder addSteps(int index, Motion.PlanStep.Builder builderForValue)
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
    • addAllSteps

      public Motion.Plan.Builder addAllSteps(Iterable<? extends Motion.PlanStep> values)
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
    • clearSteps

      public Motion.Plan.Builder clearSteps()
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
    • removeSteps

      public Motion.Plan.Builder removeSteps(int index)
       The steps of a plan is an ordered list of plan steps
       
      repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];