Enum DataSource.Device.FormFactor
java.lang.Object
java.lang.Enum<DataSource.Device.FormFactor>
com.google.devicesandservices.health.v4.DataSource.Device.FormFactor
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DataSource.Device.FormFactor>
- Enclosing class:
- DataSource.Device
public static enum DataSource.Device.FormFactor
extends Enum<DataSource.Device.FormFactor>
implements com.google.protobuf.ProtocolMessageEnum
Form factor of the device, e.g. phone, watch, band, etc.Protobuf enum
google.devicesandservices.health.v4.DataSource.Device.FormFactor-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe device is a chest strap.The device is a fitness band.The form factor is unspecified.The device is a head mounted device.The device is a phone.The device is a ring.The device is a scale.The device is a smart display.The device is a tablet.The device is a watch. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe device is a chest strap.static final intThe device is a fitness band.static final intThe form factor is unspecified.static final intThe device is a head mounted device.static final intThe device is a phone.static final intThe device is a ring.static final intThe device is a scale.static final intThe device is a smart display.static final intThe device is a tablet.static final intThe device is a watch. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSource.Device.FormFactorforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DataSource.Device.FormFactor>static DataSource.Device.FormFactorvalueOf(int value) Deprecated.static DataSource.Device.FormFactorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DataSource.Device.FormFactorReturns the enum constant of this type with the specified name.static DataSource.Device.FormFactor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FORM_FACTOR_UNSPECIFIED
The form factor is unspecified.
FORM_FACTOR_UNSPECIFIED = 0; -
FITNESS_BAND
The device is a fitness band.
FITNESS_BAND = 1; -
WATCH
The device is a watch.
WATCH = 2; -
PHONE
The device is a phone.
PHONE = 3; -
RING
The device is a ring.
RING = 4; -
CHEST_STRAP
The device is a chest strap.
CHEST_STRAP = 5; -
SCALE
The device is a scale.
SCALE = 6; -
TABLET
The device is a tablet.
TABLET = 7; -
HEAD_MOUNTED
The device is a head mounted device.
HEAD_MOUNTED = 8; -
SMART_DISPLAY
The device is a smart display.
SMART_DISPLAY = 9; -
UNRECOGNIZED
-
-
Field Details
-
FORM_FACTOR_UNSPECIFIED_VALUE
public static final int FORM_FACTOR_UNSPECIFIED_VALUEThe form factor is unspecified.
FORM_FACTOR_UNSPECIFIED = 0;- See Also:
-
FITNESS_BAND_VALUE
public static final int FITNESS_BAND_VALUEThe device is a fitness band.
FITNESS_BAND = 1;- See Also:
-
WATCH_VALUE
public static final int WATCH_VALUEThe device is a watch.
WATCH = 2;- See Also:
-
PHONE_VALUE
public static final int PHONE_VALUEThe device is a phone.
PHONE = 3;- See Also:
-
RING_VALUE
public static final int RING_VALUEThe device is a ring.
RING = 4;- See Also:
-
CHEST_STRAP_VALUE
public static final int CHEST_STRAP_VALUEThe device is a chest strap.
CHEST_STRAP = 5;- See Also:
-
SCALE_VALUE
public static final int SCALE_VALUEThe device is a scale.
SCALE = 6;- See Also:
-
TABLET_VALUE
public static final int TABLET_VALUEThe device is a tablet.
TABLET = 7;- See Also:
-
HEAD_MOUNTED_VALUE
public static final int HEAD_MOUNTED_VALUEThe device is a head mounted device.
HEAD_MOUNTED = 8;- See Also:
-
SMART_DISPLAY_VALUE
public static final int SMART_DISPLAY_VALUEThe device is a smart display.
SMART_DISPLAY = 9;- 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<DataSource.Device.FormFactor> 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 DataSource.Device.FormFactor 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
-