Enum DataSource.Platform

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

public static enum DataSource.Platform extends Enum<DataSource.Platform> implements com.google.protobuf.ProtocolMessageEnum
 The platform that uploaded the data.
 Additional values may be added in the future. Clients should be prepared to
 handle unknown values gracefully.
 
Protobuf enum google.devicesandservices.health.v4.DataSource.Platform
  • Enum Constant Details

    • PLATFORM_UNSPECIFIED

      public static final DataSource.Platform PLATFORM_UNSPECIFIED
       The platform is unspecified.
       
      PLATFORM_UNSPECIFIED = 0;
    • FITBIT

      public static final DataSource.Platform FITBIT
       The data was uploaded from Fitbit.
       
      FITBIT = 1;
    • HEALTH_CONNECT

      public static final DataSource.Platform HEALTH_CONNECT
       The data was uploaded from Health Connect.
       
      HEALTH_CONNECT = 2;
    • HEALTH_KIT

      public static final DataSource.Platform HEALTH_KIT
       The data was uploaded from Health Kit.
       
      HEALTH_KIT = 3;
    • FIT

      public static final DataSource.Platform FIT
       The data was uploaded from Google Fit.
       
      FIT = 4;
    • FITBIT_WEB_API

      public static final DataSource.Platform FITBIT_WEB_API
       The data was uploaded from Fitbit legacy Web API.
       
      FITBIT_WEB_API = 5;
    • NEST

      public static final DataSource.Platform NEST
       The data was uploaded from Nest devices.
       
      NEST = 6;
    • GOOGLE_WEB_API

      public static final DataSource.Platform GOOGLE_WEB_API
       The data was uploaded from Google Health API.
       
      GOOGLE_WEB_API = 7;
    • GOOGLE_PARTNER_INTEGRATION

      public static final DataSource.Platform GOOGLE_PARTNER_INTEGRATION
       The data was uploaded from Google Partner Integrations.
       
      GOOGLE_PARTNER_INTEGRATION = 8;
    • UNRECOGNIZED

      public static final DataSource.Platform UNRECOGNIZED
  • Field Details

    • PLATFORM_UNSPECIFIED_VALUE

      public static final int PLATFORM_UNSPECIFIED_VALUE
       The platform is unspecified.
       
      PLATFORM_UNSPECIFIED = 0;
      See Also:
    • FITBIT_VALUE

      public static final int FITBIT_VALUE
       The data was uploaded from Fitbit.
       
      FITBIT = 1;
      See Also:
    • HEALTH_CONNECT_VALUE

      public static final int HEALTH_CONNECT_VALUE
       The data was uploaded from Health Connect.
       
      HEALTH_CONNECT = 2;
      See Also:
    • HEALTH_KIT_VALUE

      public static final int HEALTH_KIT_VALUE
       The data was uploaded from Health Kit.
       
      HEALTH_KIT = 3;
      See Also:
    • FIT_VALUE

      public static final int FIT_VALUE
       The data was uploaded from Google Fit.
       
      FIT = 4;
      See Also:
    • FITBIT_WEB_API_VALUE

      public static final int FITBIT_WEB_API_VALUE
       The data was uploaded from Fitbit legacy Web API.
       
      FITBIT_WEB_API = 5;
      See Also:
    • NEST_VALUE

      public static final int NEST_VALUE
       The data was uploaded from Nest devices.
       
      NEST = 6;
      See Also:
    • GOOGLE_WEB_API_VALUE

      public static final int GOOGLE_WEB_API_VALUE
       The data was uploaded from Google Health API.
       
      GOOGLE_WEB_API = 7;
      See Also:
    • GOOGLE_PARTNER_INTEGRATION_VALUE

      public static final int GOOGLE_PARTNER_INTEGRATION_VALUE
       The data was uploaded from Google Partner Integrations.
       
      GOOGLE_PARTNER_INTEGRATION = 8;
      See Also:
  • Method Details

    • values

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