Package com.viam.component.encoder.v1
Enum Class Encoder.PositionType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,Serializable
,Comparable<Encoder.PositionType>
,Constable
- Enclosing class:
- Encoder
public static enum Encoder.PositionType
extends Enum<Encoder.PositionType>
implements com.google.protobuf.Internal.EnumLite
Protobuf enum
viam.component.encoder.v1.PositionType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionReturn type for absolute encoders that report their position in degrees along the radial axisReturn type for relative encoders that report how far they've gone from a start positionPOSITION_TYPE_UNSPECIFIED = 0;
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Return type for absolute encoders that report their position in degrees along the radial axisstatic final int
Return type for relative encoders that report how far they've gone from a start positionstatic final int
POSITION_TYPE_UNSPECIFIED = 0;
-
Method Summary
Modifier and TypeMethodDescriptionstatic Encoder.PositionType
forNumber
(int value) final int
static com.google.protobuf.Internal.EnumLiteMap<Encoder.PositionType>
static com.google.protobuf.Internal.EnumVerifier
static Encoder.PositionType
valueOf
(int value) Deprecated.static Encoder.PositionType
Returns the enum constant of this class with the specified name.static Encoder.PositionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POSITION_TYPE_UNSPECIFIED
POSITION_TYPE_UNSPECIFIED = 0;
-
POSITION_TYPE_TICKS_COUNT
Return type for relative encoders that report how far they've gone from a start position
POSITION_TYPE_TICKS_COUNT = 1;
-
POSITION_TYPE_ANGLE_DEGREES
Return type for absolute encoders that report their position in degrees along the radial axis
POSITION_TYPE_ANGLE_DEGREES = 2;
-
UNRECOGNIZED
-
-
Field Details
-
POSITION_TYPE_UNSPECIFIED_VALUE
public static final int POSITION_TYPE_UNSPECIFIED_VALUEPOSITION_TYPE_UNSPECIFIED = 0;
- See Also:
-
POSITION_TYPE_TICKS_COUNT_VALUE
public static final int POSITION_TYPE_TICKS_COUNT_VALUEReturn type for relative encoders that report how far they've gone from a start position
POSITION_TYPE_TICKS_COUNT = 1;
- See Also:
-
POSITION_TYPE_ANGLE_DEGREES_VALUE
public static final int POSITION_TYPE_ANGLE_DEGREES_VALUEReturn type for absolute encoders that report their position in degrees along the radial axis
POSITION_TYPE_ANGLE_DEGREES = 2;
- 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:
getNumber
in 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
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-