Package com.viam.service.navigation.v1
Class Navigation.GoalStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Navigation.GoalStatus,Navigation.GoalStatus.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Navigation.GoalStatus,Navigation.GoalStatus.Builder>
com.viam.service.navigation.v1.Navigation.GoalStatus.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Navigation.GoalStatusOrBuilder,Cloneable
- Enclosing class:
Navigation.GoalStatus
public static final class Navigation.GoalStatus.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Navigation.GoalStatus,Navigation.GoalStatus.Builder>
implements Navigation.GoalStatusOrBuilder
GoalStatus is one goal and its lifecycle. Returned (embedded in Status) by every method that starts, suspends, resumes, or cancels motion, and embedded in Status from GetNavigationStatus. Only the latest goal is kept. SUCCEEDED, FAILED, and CANCELED are terminal.Protobuf type
viam.service.navigation.v1.GoalStatus-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionWhen FAILEDSet once terminalSet when the target is a saved location.viam.service.navigation.v1.NavMode mode = 2 [json_name = "mode"];While ACTIVEWhen mode == NAV_MODE_ROUTE.google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"];.viam.service.navigation.v1.GoalState state = 1 [json_name = "state"];When SUSPENDEDFor a route, the current waypointgetError()When FAILEDcom.google.protobuf.TimestampSet once terminalSet when the target is a saved locationcom.google.protobuf.ByteStringSet when the target is a saved locationgetMode().viam.service.navigation.v1.NavMode mode = 2 [json_name = "mode"];int.viam.service.navigation.v1.NavMode mode = 2 [json_name = "mode"];While ACTIVEgetRoute()When mode == NAV_MODE_ROUTEcom.google.protobuf.Timestamp.google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"];getState().viam.service.navigation.v1.GoalState state = 1 [json_name = "state"];int.viam.service.navigation.v1.GoalState state = 1 [json_name = "state"];When SUSPENDEDcom.google.protobuf.ByteStringWhen SUSPENDEDFor a route, the current waypointbooleanhasError()When FAILEDbooleanSet once terminalbooleanSet when the target is a saved locationbooleanWhile ACTIVEbooleanhasRoute()When mode == NAV_MODE_ROUTEboolean.google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"];booleanWhen SUSPENDEDbooleanFor a route, the current waypointmergeError(Navigation.NavError value) When FAILEDmergeFinishedAt(com.google.protobuf.Timestamp value) Set once terminalmergeProgress(Navigation.Progress value) While ACTIVEWhen mode == NAV_MODE_ROUTEmergeStartedAt(com.google.protobuf.Timestamp value) .google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"];mergeTarget(Navigation.Position value) For a route, the current waypointsetError(Navigation.NavError value) When FAILEDsetError(Navigation.NavError.Builder builderForValue) When FAILEDsetFinishedAt(com.google.protobuf.Timestamp value) Set once terminalsetFinishedAt(com.google.protobuf.Timestamp.Builder builderForValue) Set once terminalsetLocation(String value) Set when the target is a saved locationsetLocationBytes(com.google.protobuf.ByteString value) Set when the target is a saved locationsetMode(Navigation.NavMode value) .viam.service.navigation.v1.NavMode mode = 2 [json_name = "mode"];setModeValue(int value) .viam.service.navigation.v1.NavMode mode = 2 [json_name = "mode"];setProgress(Navigation.Progress value) While ACTIVEsetProgress(Navigation.Progress.Builder builderForValue) While ACTIVEsetRoute(Navigation.RouteProgress value) When mode == NAV_MODE_ROUTEsetRoute(Navigation.RouteProgress.Builder builderForValue) When mode == NAV_MODE_ROUTEsetStartedAt(com.google.protobuf.Timestamp value) .google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"];setStartedAt(com.google.protobuf.Timestamp.Builder builderForValue) .google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"];setState(Navigation.GoalState value) .viam.service.navigation.v1.GoalState state = 1 [json_name = "state"];setStateValue(int value) .viam.service.navigation.v1.GoalState state = 1 [json_name = "state"];setSuspendReason(String value) When SUSPENDEDsetSuspendReasonBytes(com.google.protobuf.ByteString value) When SUSPENDEDsetTarget(Navigation.Position value) For a route, the current waypointsetTarget(Navigation.Position.Builder builderForValue) For a route, the current waypointMethods 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
-
getStateValue
public int getStateValue().viam.service.navigation.v1.GoalState state = 1 [json_name = "state"];- Specified by:
getStateValuein interfaceNavigation.GoalStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
.viam.service.navigation.v1.GoalState state = 1 [json_name = "state"];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
getState
.viam.service.navigation.v1.GoalState state = 1 [json_name = "state"];- Specified by:
getStatein interfaceNavigation.GoalStatusOrBuilder- Returns:
- The state.
-
clearState
.viam.service.navigation.v1.GoalState state = 1 [json_name = "state"];- Returns:
- This builder for chaining.
-
getModeValue
public int getModeValue().viam.service.navigation.v1.NavMode mode = 2 [json_name = "mode"];- Specified by:
getModeValuein interfaceNavigation.GoalStatusOrBuilder- Returns:
- The enum numeric value on the wire for mode.
-
setModeValue
.viam.service.navigation.v1.NavMode mode = 2 [json_name = "mode"];- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
getMode
.viam.service.navigation.v1.NavMode mode = 2 [json_name = "mode"];- Specified by:
getModein interfaceNavigation.GoalStatusOrBuilder- Returns:
- The mode.
-
clearMode
.viam.service.navigation.v1.NavMode mode = 2 [json_name = "mode"];- Returns:
- This builder for chaining.
-
hasTarget
public boolean hasTarget()For a route, the current waypoint
.viam.service.navigation.v1.Position target = 3 [json_name = "target"];- Specified by:
hasTargetin interfaceNavigation.GoalStatusOrBuilder- Returns:
- Whether the target field is set.
-
getTarget
For a route, the current waypoint
.viam.service.navigation.v1.Position target = 3 [json_name = "target"];- Specified by:
getTargetin interfaceNavigation.GoalStatusOrBuilder- Returns:
- The target.
-
clearTarget
For a route, the current waypoint
.viam.service.navigation.v1.Position target = 3 [json_name = "target"]; -
hasLocation
public boolean hasLocation()Set when the target is a saved location
optional string location = 4 [json_name = "location"];- Specified by:
hasLocationin interfaceNavigation.GoalStatusOrBuilder- Returns:
- Whether the location field is set.
-
getLocation
Set when the target is a saved location
optional string location = 4 [json_name = "location"];- Specified by:
getLocationin interfaceNavigation.GoalStatusOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()Set when the target is a saved location
optional string location = 4 [json_name = "location"];- Specified by:
getLocationBytesin interfaceNavigation.GoalStatusOrBuilder- Returns:
- The bytes for location.
-
setLocation
Set when the target is a saved location
optional string location = 4 [json_name = "location"];- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
Set when the target is a saved location
optional string location = 4 [json_name = "location"];- Returns:
- This builder for chaining.
-
setLocationBytes
Set when the target is a saved location
optional string location = 4 [json_name = "location"];- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
hasProgress
public boolean hasProgress()While ACTIVE
optional .viam.service.navigation.v1.Progress progress = 5 [json_name = "progress"];- Specified by:
hasProgressin interfaceNavigation.GoalStatusOrBuilder- Returns:
- Whether the progress field is set.
-
getProgress
While ACTIVE
optional .viam.service.navigation.v1.Progress progress = 5 [json_name = "progress"];- Specified by:
getProgressin interfaceNavigation.GoalStatusOrBuilder- Returns:
- The progress.
-
clearProgress
While ACTIVE
optional .viam.service.navigation.v1.Progress progress = 5 [json_name = "progress"]; -
hasRoute
public boolean hasRoute()When mode == NAV_MODE_ROUTE
optional .viam.service.navigation.v1.RouteProgress route = 6 [json_name = "route"];- Specified by:
hasRoutein interfaceNavigation.GoalStatusOrBuilder- Returns:
- Whether the route field is set.
-
getRoute
When mode == NAV_MODE_ROUTE
optional .viam.service.navigation.v1.RouteProgress route = 6 [json_name = "route"];- Specified by:
getRoutein interfaceNavigation.GoalStatusOrBuilder- Returns:
- The route.
-
clearRoute
When mode == NAV_MODE_ROUTE
optional .viam.service.navigation.v1.RouteProgress route = 6 [json_name = "route"]; -
hasSuspendReason
public boolean hasSuspendReason()When SUSPENDED
optional string suspend_reason = 7 [json_name = "suspendReason"];- Specified by:
hasSuspendReasonin interfaceNavigation.GoalStatusOrBuilder- Returns:
- Whether the suspendReason field is set.
-
getSuspendReason
When SUSPENDED
optional string suspend_reason = 7 [json_name = "suspendReason"];- Specified by:
getSuspendReasonin interfaceNavigation.GoalStatusOrBuilder- Returns:
- The suspendReason.
-
getSuspendReasonBytes
public com.google.protobuf.ByteString getSuspendReasonBytes()When SUSPENDED
optional string suspend_reason = 7 [json_name = "suspendReason"];- Specified by:
getSuspendReasonBytesin interfaceNavigation.GoalStatusOrBuilder- Returns:
- The bytes for suspendReason.
-
setSuspendReason
When SUSPENDED
optional string suspend_reason = 7 [json_name = "suspendReason"];- Parameters:
value- The suspendReason to set.- Returns:
- This builder for chaining.
-
clearSuspendReason
When SUSPENDED
optional string suspend_reason = 7 [json_name = "suspendReason"];- Returns:
- This builder for chaining.
-
setSuspendReasonBytes
When SUSPENDED
optional string suspend_reason = 7 [json_name = "suspendReason"];- Parameters:
value- The bytes for suspendReason to set.- Returns:
- This builder for chaining.
-
hasError
public boolean hasError()When FAILED
optional .viam.service.navigation.v1.NavError error = 8 [json_name = "error"];- Specified by:
hasErrorin interfaceNavigation.GoalStatusOrBuilder- Returns:
- Whether the error field is set.
-
getError
When FAILED
optional .viam.service.navigation.v1.NavError error = 8 [json_name = "error"];- Specified by:
getErrorin interfaceNavigation.GoalStatusOrBuilder- Returns:
- The error.
-
clearError
When FAILED
optional .viam.service.navigation.v1.NavError error = 8 [json_name = "error"]; -
hasStartedAt
public boolean hasStartedAt().google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"];- Specified by:
hasStartedAtin interfaceNavigation.GoalStatusOrBuilder- Returns:
- Whether the startedAt field is set.
-
getStartedAt
public com.google.protobuf.Timestamp getStartedAt().google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"];- Specified by:
getStartedAtin interfaceNavigation.GoalStatusOrBuilder- Returns:
- The startedAt.
-
setStartedAt
.google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"]; -
setStartedAt
public Navigation.GoalStatus.Builder setStartedAt(com.google.protobuf.Timestamp.Builder builderForValue) .google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"]; -
mergeStartedAt
.google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"]; -
clearStartedAt
.google.protobuf.Timestamp started_at = 9 [json_name = "startedAt"]; -
hasFinishedAt
public boolean hasFinishedAt()Set once terminal
optional .google.protobuf.Timestamp finished_at = 10 [json_name = "finishedAt"];- Specified by:
hasFinishedAtin interfaceNavigation.GoalStatusOrBuilder- Returns:
- Whether the finishedAt field is set.
-
getFinishedAt
public com.google.protobuf.Timestamp getFinishedAt()Set once terminal
optional .google.protobuf.Timestamp finished_at = 10 [json_name = "finishedAt"];- Specified by:
getFinishedAtin interfaceNavigation.GoalStatusOrBuilder- Returns:
- The finishedAt.
-
setFinishedAt
Set once terminal
optional .google.protobuf.Timestamp finished_at = 10 [json_name = "finishedAt"]; -
setFinishedAt
public Navigation.GoalStatus.Builder setFinishedAt(com.google.protobuf.Timestamp.Builder builderForValue) Set once terminal
optional .google.protobuf.Timestamp finished_at = 10 [json_name = "finishedAt"]; -
mergeFinishedAt
Set once terminal
optional .google.protobuf.Timestamp finished_at = 10 [json_name = "finishedAt"]; -
clearFinishedAt
Set once terminal
optional .google.protobuf.Timestamp finished_at = 10 [json_name = "finishedAt"];
-