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.Deprecated.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.com.google.protobuf.ByteStringThe component requested to be moved.Deprecated.The unique ID which identifies the execution.com.google.protobuf.ByteStringThe unique ID which identifies the execution.getId()The plan's unique IDcom.google.protobuf.ByteStringThe plan's unique IDgetSteps(int index) The steps of a plan is an ordered list of plan stepsintThe steps of a plan is an ordered list of plan stepsThe steps of a plan is an ordered list of plan stepsbooleanDeprecated.Deprecated.removeSteps(int index) The steps of a plan is an ordered list of plan stepssetComponentName(String value) The component requested to be moved.setComponentNameBytes(com.google.protobuf.ByteString value) The component requested to be moved.Deprecated.setComponentNameDeprecated(Common.ResourceName.Builder builderForValue) Deprecated.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, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getIdin 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:
getIdBytesin 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.
-
hasComponentNameDeprecated
Deprecated.Deprecated, use component_name field.
.viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true];- Specified by:
hasComponentNameDeprecatedin interfaceMotion.PlanOrBuilder- Returns:
- Whether the componentNameDeprecated field is set.
-
getComponentNameDeprecated
Deprecated.Deprecated, use component_name field.
.viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true];- Specified by:
getComponentNameDeprecatedin interfaceMotion.PlanOrBuilder- Returns:
- The componentNameDeprecated.
-
setComponentNameDeprecated
Deprecated.Deprecated, use component_name field.
.viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; -
setComponentNameDeprecated
@Deprecated public Motion.Plan.Builder setComponentNameDeprecated(Common.ResourceName.Builder builderForValue) Deprecated.Deprecated, use component_name field.
.viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; -
mergeComponentNameDeprecated
Deprecated.Deprecated, use component_name field.
.viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; -
clearComponentNameDeprecated
Deprecated.Deprecated, use component_name field.
.viam.common.v1.ResourceName component_name_deprecated = 2 [json_name = "componentNameDeprecated", deprecated = true]; -
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:
getExecutionIdin 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:
getExecutionIdBytesin 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:
getStepsListin 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:
getStepsCountin 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:
getStepsin 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"]; -
getComponentName
The component requested to be moved. Used for tracking & stopping. NOTE: A plan may move more components than just the root component.
string component_name = 5 [json_name = "componentName"];- Specified by:
getComponentNamein interfaceMotion.PlanOrBuilder- Returns:
- The componentName.
-
getComponentNameBytes
public com.google.protobuf.ByteString getComponentNameBytes()The component requested to be moved. Used for tracking & stopping. NOTE: A plan may move more components than just the root component.
string component_name = 5 [json_name = "componentName"];- Specified by:
getComponentNameBytesin interfaceMotion.PlanOrBuilder- Returns:
- The bytes for componentName.
-
setComponentName
The component requested to be moved. Used for tracking & stopping. NOTE: A plan may move more components than just the root component.
string component_name = 5 [json_name = "componentName"];- Parameters:
value- The componentName to set.- Returns:
- This builder for chaining.
-
clearComponentName
The component requested to be moved. Used for tracking & stopping. NOTE: A plan may move more components than just the root component.
string component_name = 5 [json_name = "componentName"];- Returns:
- This builder for chaining.
-
setComponentNameBytes
The component requested to be moved. Used for tracking & stopping. NOTE: A plan may move more components than just the root component.
string component_name = 5 [json_name = "componentName"];- Parameters:
value- The bytes for componentName to set.- Returns:
- This builder for chaining.
-