Package com.viam.service.navigation.v1
Class Navigation.GoalStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite<Navigation.GoalStatus,Navigation.GoalStatus.Builder>
com.google.protobuf.GeneratedMessageLite<Navigation.GoalStatus,Navigation.GoalStatus.Builder>
com.viam.service.navigation.v1.Navigation.GoalStatus
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Navigation.GoalStatusOrBuilder
- Enclosing class:
Navigation
public static final class Navigation.GoalStatus
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classGoalStatus is one goal and its lifecycle.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Navigation.GoalStatusgetError()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 waypointnewBuilder(Navigation.GoalStatus prototype) static Navigation.GoalStatusparseDelimitedFrom(InputStream input) static Navigation.GoalStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Navigation.GoalStatusparseFrom(byte[] data) static Navigation.GoalStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Navigation.GoalStatusparseFrom(com.google.protobuf.ByteString data) static Navigation.GoalStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Navigation.GoalStatusparseFrom(com.google.protobuf.CodedInputStream input) static Navigation.GoalStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Navigation.GoalStatusparseFrom(InputStream input) static Navigation.GoalStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Navigation.GoalStatusparseFrom(ByteBuffer data) static Navigation.GoalStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Navigation.GoalStatus> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER- See Also:
-
TARGET_FIELD_NUMBER
public static final int TARGET_FIELD_NUMBER- See Also:
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER- See Also:
-
PROGRESS_FIELD_NUMBER
public static final int PROGRESS_FIELD_NUMBER- See Also:
-
ROUTE_FIELD_NUMBER
public static final int ROUTE_FIELD_NUMBER- See Also:
-
SUSPEND_REASON_FIELD_NUMBER
public static final int SUSPEND_REASON_FIELD_NUMBER- See Also:
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
STARTED_AT_FIELD_NUMBER
public static final int STARTED_AT_FIELD_NUMBER- See Also:
-
FINISHED_AT_FIELD_NUMBER
public static final int FINISHED_AT_FIELD_NUMBER- See Also:
-
-
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.
-
getState
.viam.service.navigation.v1.GoalState state = 1 [json_name = "state"];- Specified by:
getStatein interfaceNavigation.GoalStatusOrBuilder- Returns:
- The state.
-
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.
-
getMode
.viam.service.navigation.v1.NavMode mode = 2 [json_name = "mode"];- Specified by:
getModein interfaceNavigation.GoalStatusOrBuilder- Returns:
- The mode.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
parseFrom
public static Navigation.GoalStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Navigation.GoalStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Navigation.GoalStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Navigation.GoalStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Navigation.GoalStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Navigation.GoalStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Navigation.GoalStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Navigation.GoalStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Navigation.GoalStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Navigation.GoalStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Navigation.GoalStatus,Navigation.GoalStatus.Builder>
-
getDefaultInstance
-
parser
-