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 Details

  • Field Details

    • FORM_FACTOR_UNSPECIFIED_VALUE

      public static final int FORM_FACTOR_UNSPECIFIED_VALUE
       The form factor is unspecified.
       
      FORM_FACTOR_UNSPECIFIED = 0;
      See Also:
    • FITNESS_BAND_VALUE

      public static final int FITNESS_BAND_VALUE
       The device is a fitness band.
       
      FITNESS_BAND = 1;
      See Also:
    • WATCH_VALUE

      public static final int WATCH_VALUE
       The device is a watch.
       
      WATCH = 2;
      See Also:
    • PHONE_VALUE

      public static final int PHONE_VALUE
       The device is a phone.
       
      PHONE = 3;
      See Also:
    • RING_VALUE

      public static final int RING_VALUE
       The device is a ring.
       
      RING = 4;
      See Also:
    • CHEST_STRAP_VALUE

      public static final int CHEST_STRAP_VALUE
       The device is a chest strap.
       
      CHEST_STRAP = 5;
      See Also:
    • SCALE_VALUE

      public static final int SCALE_VALUE
       The device is a scale.
       
      SCALE = 6;
      See Also:
    • TABLET_VALUE

      public static final int TABLET_VALUE
       The device is a tablet.
       
      TABLET = 7;
      See Also:
    • HEAD_MOUNTED_VALUE

      public static final int HEAD_MOUNTED_VALUE
       The device is a head mounted device.
       
      HEAD_MOUNTED = 8;
      See Also:
    • SMART_DISPLAY_VALUE

      public static final int SMART_DISPLAY_VALUE
       The device is a smart display.
       
      SMART_DISPLAY = 9;
      See Also:
  • Method Details

    • values

      public static DataSource.Device.FormFactor[] 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

      public static DataSource.Device.FormFactor valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static DataSource.Device.FormFactor valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static DataSource.Device.FormFactor forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null