Enum StatusUpdate.DeviceState
java.lang.Object
java.lang.Enum<StatusUpdate.DeviceState>
com.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StatusUpdate.DeviceState>
- Enclosing class:
- StatusUpdate
public static enum StatusUpdate.DeviceState
extends Enum<StatusUpdate.DeviceState>
implements com.google.protobuf.ProtocolMessageEnum
The state displayed with the ADB Device when running "adb devices"Protobuf enum
google.cloud.devicestreaming.v1.StatusUpdate.DeviceState-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe ADB device is in the "authorizing" status.The ADB device is in the "connecting" status.The ADB device is in the "device" status.The device state is unknown.The ADB device is in the "missing" status.The ADB device is in the "offline" status.The ADB device is in the "recovery" status.The ADB device is in the "rescue" status.The ADB device is in the "sideload" status.The ADB device is in the "unauthorized" status. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe ADB device is in the "authorizing" status.static final intThe ADB device is in the "connecting" status.static final intThe device state is unknown.static final intThe ADB device is in the "device" status.static final intThe ADB device is in the "missing" status.static final intThe ADB device is in the "offline" status.static final intThe ADB device is in the "recovery" status.static final intThe ADB device is in the "rescue" status.static final intThe ADB device is in the "sideload" status.static final intThe ADB device is in the "unauthorized" status. -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusUpdate.DeviceStateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<StatusUpdate.DeviceState>static StatusUpdate.DeviceStatevalueOf(int value) Deprecated.static StatusUpdate.DeviceStatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static StatusUpdate.DeviceStateReturns the enum constant of this type with the specified name.static StatusUpdate.DeviceState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEVICE_STATE_UNSPECIFIED
The device state is unknown.
DEVICE_STATE_UNSPECIFIED = 0; -
DEVICE
The ADB device is in the "device" status.
DEVICE = 1; -
RECOVERY
The ADB device is in the "recovery" status.
RECOVERY = 2; -
RESCUE
The ADB device is in the "rescue" status.
RESCUE = 3; -
SIDELOAD
The ADB device is in the "sideload" status.
SIDELOAD = 4; -
MISSING
The ADB device is in the "missing" status.
MISSING = 10; -
OFFLINE
The ADB device is in the "offline" status.
OFFLINE = 11; -
UNAUTHORIZED
The ADB device is in the "unauthorized" status.
UNAUTHORIZED = 12; -
AUTHORIZING
The ADB device is in the "authorizing" status.
AUTHORIZING = 13; -
CONNECTING
The ADB device is in the "connecting" status.
CONNECTING = 14; -
UNRECOGNIZED
-
-
Field Details
-
DEVICE_STATE_UNSPECIFIED_VALUE
public static final int DEVICE_STATE_UNSPECIFIED_VALUEThe device state is unknown.
DEVICE_STATE_UNSPECIFIED = 0;- See Also:
-
DEVICE_VALUE
public static final int DEVICE_VALUEThe ADB device is in the "device" status.
DEVICE = 1;- See Also:
-
RECOVERY_VALUE
public static final int RECOVERY_VALUEThe ADB device is in the "recovery" status.
RECOVERY = 2;- See Also:
-
RESCUE_VALUE
public static final int RESCUE_VALUEThe ADB device is in the "rescue" status.
RESCUE = 3;- See Also:
-
SIDELOAD_VALUE
public static final int SIDELOAD_VALUEThe ADB device is in the "sideload" status.
SIDELOAD = 4;- See Also:
-
MISSING_VALUE
public static final int MISSING_VALUEThe ADB device is in the "missing" status.
MISSING = 10;- See Also:
-
OFFLINE_VALUE
public static final int OFFLINE_VALUEThe ADB device is in the "offline" status.
OFFLINE = 11;- See Also:
-
UNAUTHORIZED_VALUE
public static final int UNAUTHORIZED_VALUEThe ADB device is in the "unauthorized" status.
UNAUTHORIZED = 12;- See Also:
-
AUTHORIZING_VALUE
public static final int AUTHORIZING_VALUEThe ADB device is in the "authorizing" status.
AUTHORIZING = 13;- See Also:
-
CONNECTING_VALUE
public static final int CONNECTING_VALUEThe ADB device is in the "connecting" status.
CONNECTING = 14;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<StatusUpdate.DeviceState> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static StatusUpdate.DeviceState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-