Package com.viam.robot.v1
Enum Class Robot.ResourceStatus.Reachability
java.lang.Object
java.lang.Enum<Robot.ResourceStatus.Reachability>
com.viam.robot.v1.Robot.ResourceStatus.Reachability
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,Serializable,Comparable<Robot.ResourceStatus.Reachability>,Constable
- Enclosing class:
Robot.ResourceStatus
public static enum Robot.ResourceStatus.Reachability
extends Enum<Robot.ResourceStatus.Reachability>
implements com.google.protobuf.Internal.EnumLite
whether calls to the resource by name can be routed through this machine. Independent of state, which for an unreachable resource is its last known state.Protobuf enum
viam.robot.v1.ResourceStatus.Reachability-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionmultiple remote resources have the same name and no local resource claims it.REACHABILITY_REACHABLE = 1;the remote machine this resource is on is disconnected.a local resource has the same name, so calls by name go to the local resource.set by machines that predate this field; treat as reachable. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intmultiple remote resources have the same name and no local resource claims it.static final intREACHABILITY_REACHABLE = 1;static final intthe remote machine this resource is on is disconnected.static final inta local resource has the same name, so calls by name go to the local resource.static final intset by machines that predate this field; treat as reachable. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) final intstatic com.google.protobuf.Internal.EnumLiteMap<Robot.ResourceStatus.Reachability> static com.google.protobuf.Internal.EnumVerifiervalueOf(int value) Deprecated.Returns the enum constant of this class with the specified name.static Robot.ResourceStatus.Reachability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REACHABILITY_UNSPECIFIED
set by machines that predate this field; treat as reachable.
REACHABILITY_UNSPECIFIED = 0; -
REACHABILITY_REACHABLE
REACHABILITY_REACHABLE = 1; -
REACHABILITY_REMOTE_DISCONNECTED
the remote machine this resource is on is disconnected.
REACHABILITY_REMOTE_DISCONNECTED = 2; -
REACHABILITY_SHADOWED_BY_LOCAL
a local resource has the same name, so calls by name go to the local resource.
REACHABILITY_SHADOWED_BY_LOCAL = 3; -
REACHABILITY_AMBIGUOUS_REMOTE
multiple remote resources have the same name and no local resource claims it.
REACHABILITY_AMBIGUOUS_REMOTE = 4; -
UNRECOGNIZED
-
-
Field Details
-
REACHABILITY_UNSPECIFIED_VALUE
public static final int REACHABILITY_UNSPECIFIED_VALUEset by machines that predate this field; treat as reachable.
REACHABILITY_UNSPECIFIED = 0;- See Also:
-
REACHABILITY_REACHABLE_VALUE
public static final int REACHABILITY_REACHABLE_VALUEREACHABILITY_REACHABLE = 1;- See Also:
-
REACHABILITY_REMOTE_DISCONNECTED_VALUE
public static final int REACHABILITY_REMOTE_DISCONNECTED_VALUEthe remote machine this resource is on is disconnected.
REACHABILITY_REMOTE_DISCONNECTED = 2;- See Also:
-
REACHABILITY_SHADOWED_BY_LOCAL_VALUE
public static final int REACHABILITY_SHADOWED_BY_LOCAL_VALUEa local resource has the same name, so calls by name go to the local resource.
REACHABILITY_SHADOWED_BY_LOCAL = 3;- See Also:
-
REACHABILITY_AMBIGUOUS_REMOTE_VALUE
public static final int REACHABILITY_AMBIGUOUS_REMOTE_VALUEmultiple remote resources have the same name and no local resource claims it.
REACHABILITY_AMBIGUOUS_REMOTE = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Robot.ResourceStatus.Reachability> internalGetValueMap() -
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-