Package com.viam.service.motion.v1
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 planProtobuf type
viam.service.motion.v1.Plan
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllSteps
(Iterable<? extends Motion.PlanStep> values) The steps of a plan is an ordered list of plan stepsaddSteps
(int index, Motion.PlanStep value) The steps of a plan is an ordered list of plan stepsaddSteps
(int index, Motion.PlanStep.Builder builderForValue) The steps of a plan is an ordered list of plan stepsaddSteps
(Motion.PlanStep value) The steps of a plan is an ordered list of plan stepsaddSteps
(Motion.PlanStep.Builder builderForValue) The steps of a plan is an ordered list of plan stepsThe component requested to be moved.The unique ID which identifies the execution.clearId()
The plan's unique IDThe steps of a plan is an ordered list of plan stepsThe component requested to be moved.The unique ID which identifies the execution.com.google.protobuf.ByteString
The unique ID which identifies the execution.getId()
The plan's unique IDcom.google.protobuf.ByteString
The plan's unique IDgetSteps
(int index) The steps of a plan is an ordered list of plan stepsint
The steps of a plan is an ordered list of plan stepsThe steps of a plan is an ordered list of plan stepsboolean
The component requested to be moved.The component requested to be moved.removeSteps
(int index) The steps of a plan is an ordered list of plan stepsThe component requested to be moved.setComponentName
(Common.ResourceName.Builder builderForValue) The component requested to be moved.setExecutionId
(String value) The unique ID which identifies the execution.setExecutionIdBytes
(com.google.protobuf.ByteString value) The unique ID which identifies the execution.The plan's unique IDsetIdBytes
(com.google.protobuf.ByteString value) The plan's unique IDsetSteps
(int index, Motion.PlanStep value) The steps of a plan is an ordered list of plan stepssetSteps
(int index, Motion.PlanStep.Builder builderForValue) The steps of a plan is an ordered list of plan stepsMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getId
The plan's unique ID
string id = 1 [json_name = "id"];
- Specified by:
getId
in interfaceMotion.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 interfaceMotion.PlanOrBuilder
- Returns:
- The bytes for id.
-
setId
The plan's unique ID
string id = 1 [json_name = "id"];
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
The plan's unique ID
string id = 1 [json_name = "id"];
- Returns:
- This builder for chaining.
-
setIdBytes
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 interfaceMotion.PlanOrBuilder
- Returns:
- Whether the componentName field is set.
-
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 interfaceMotion.PlanOrBuilder
- Returns:
- The componentName.
-
setComponentName
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
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
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
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
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 interfaceMotion.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 interfaceMotion.PlanOrBuilder
- Returns:
- The bytes for executionId.
-
setExecutionId
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
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
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
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 interfaceMotion.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 interfaceMotion.PlanOrBuilder
-
getSteps
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 interfaceMotion.PlanOrBuilder
-
setSteps
The steps of a plan is an ordered list of plan steps
repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
-
setSteps
The steps of a plan is an ordered list of plan steps
repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
-
addSteps
The steps of a plan is an ordered list of plan steps
repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
-
addSteps
The steps of a plan is an ordered list of plan steps
repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
-
addSteps
The steps of a plan is an ordered list of plan steps
repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
-
addSteps
The steps of a plan is an ordered list of plan steps
repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
-
addAllSteps
The steps of a plan is an ordered list of plan steps
repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
-
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
The steps of a plan is an ordered list of plan steps
repeated .viam.service.motion.v1.PlanStep steps = 4 [json_name = "steps"];
-