Enum DataSource.RecordingMethod

java.lang.Object
java.lang.Enum<DataSource.RecordingMethod>
com.google.devicesandservices.health.v4.DataSource.RecordingMethod
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<DataSource.RecordingMethod>
Enclosing class:
DataSource

public static enum DataSource.RecordingMethod extends Enum<DataSource.RecordingMethod> implements com.google.protobuf.ProtocolMessageEnum
 The method by which the data was recorded.
 
Protobuf enum google.devicesandservices.health.v4.DataSource.RecordingMethod
  • Enum Constant Details

    • RECORDING_METHOD_UNSPECIFIED

      public static final DataSource.RecordingMethod RECORDING_METHOD_UNSPECIFIED
       The recording method is unspecified.
       
      RECORDING_METHOD_UNSPECIFIED = 0;
    • MANUAL

      public static final DataSource.RecordingMethod MANUAL
       The data was manually entered by the user.
       
      MANUAL = 1;
    • PASSIVELY_MEASURED

      public static final DataSource.RecordingMethod PASSIVELY_MEASURED
       The data was passively measured by a device.
       
      PASSIVELY_MEASURED = 2;
    • DERIVED

      public static final DataSource.RecordingMethod DERIVED
       The data was derived from other data, e.g., by an algorithm in the
       backend.
       
      DERIVED = 3;
    • ACTIVELY_MEASURED

      public static final DataSource.RecordingMethod ACTIVELY_MEASURED
       The data was actively measured by a device.
       
      ACTIVELY_MEASURED = 4;
    • UNKNOWN

      public static final DataSource.RecordingMethod UNKNOWN
       The recording method is unknown. This is set when the data is uploaded
       from a third party app that does not provide this information.
       
      UNKNOWN = 5;
    • UNRECOGNIZED

      public static final DataSource.RecordingMethod UNRECOGNIZED
  • Field Details

    • RECORDING_METHOD_UNSPECIFIED_VALUE

      public static final int RECORDING_METHOD_UNSPECIFIED_VALUE
       The recording method is unspecified.
       
      RECORDING_METHOD_UNSPECIFIED = 0;
      See Also:
    • MANUAL_VALUE

      public static final int MANUAL_VALUE
       The data was manually entered by the user.
       
      MANUAL = 1;
      See Also:
    • PASSIVELY_MEASURED_VALUE

      public static final int PASSIVELY_MEASURED_VALUE
       The data was passively measured by a device.
       
      PASSIVELY_MEASURED = 2;
      See Also:
    • DERIVED_VALUE

      public static final int DERIVED_VALUE
       The data was derived from other data, e.g., by an algorithm in the
       backend.
       
      DERIVED = 3;
      See Also:
    • ACTIVELY_MEASURED_VALUE

      public static final int ACTIVELY_MEASURED_VALUE
       The data was actively measured by a device.
       
      ACTIVELY_MEASURED = 4;
      See Also:
    • UNKNOWN_VALUE

      public static final int UNKNOWN_VALUE
       The recording method is unknown. This is set when the data is uploaded
       from a third party app that does not provide this information.
       
      UNKNOWN = 5;
      See Also:
  • Method Details

    • values

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