Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionThe data was uploaded from Google Fit.The data was uploaded from Fitbit.The data was uploaded from Fitbit legacy Web API.The data was uploaded from Google Partner Integrations.The data was uploaded from Google Health API.The data was uploaded from Health Connect.The data was uploaded from Health Kit.The data was uploaded from Nest devices.The platform is unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe data was uploaded from Google Fit.static final intThe data was uploaded from Fitbit.static final intThe data was uploaded from Fitbit legacy Web API.static final intThe data was uploaded from Google Partner Integrations.static final intThe data was uploaded from Google Health API.static final intThe data was uploaded from Health Connect.static final intThe data was uploaded from Health Kit.static final intThe data was uploaded from Nest devices.static final intThe platform is unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSource.PlatformforNumber(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.Platform>static DataSource.PlatformvalueOf(int value) Deprecated.static DataSource.PlatformvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DataSource.PlatformReturns the enum constant of this type with the specified name.static DataSource.Platform[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PLATFORM_UNSPECIFIED
The platform is unspecified.
PLATFORM_UNSPECIFIED = 0; -
FITBIT
The data was uploaded from Fitbit.
FITBIT = 1; -
HEALTH_CONNECT
The data was uploaded from Health Connect.
HEALTH_CONNECT = 2; -
HEALTH_KIT
The data was uploaded from Health Kit.
HEALTH_KIT = 3; -
FIT
The data was uploaded from Google Fit.
FIT = 4; -
FITBIT_WEB_API
The data was uploaded from Fitbit legacy Web API.
FITBIT_WEB_API = 5; -
NEST
The data was uploaded from Nest devices.
NEST = 6; -
GOOGLE_WEB_API
The data was uploaded from Google Health API.
GOOGLE_WEB_API = 7; -
GOOGLE_PARTNER_INTEGRATION
The data was uploaded from Google Partner Integrations.
GOOGLE_PARTNER_INTEGRATION = 8; -
UNRECOGNIZED
-
-
Field Details
-
PLATFORM_UNSPECIFIED_VALUE
public static final int PLATFORM_UNSPECIFIED_VALUEThe platform is unspecified.
PLATFORM_UNSPECIFIED = 0;- See Also:
-
FITBIT_VALUE
public static final int FITBIT_VALUEThe data was uploaded from Fitbit.
FITBIT = 1;- See Also:
-
HEALTH_CONNECT_VALUE
public static final int HEALTH_CONNECT_VALUEThe data was uploaded from Health Connect.
HEALTH_CONNECT = 2;- See Also:
-
HEALTH_KIT_VALUE
public static final int HEALTH_KIT_VALUEThe data was uploaded from Health Kit.
HEALTH_KIT = 3;- See Also:
-
FIT_VALUE
public static final int FIT_VALUEThe data was uploaded from Google Fit.
FIT = 4;- See Also:
-
FITBIT_WEB_API_VALUE
public static final int FITBIT_WEB_API_VALUEThe data was uploaded from Fitbit legacy Web API.
FITBIT_WEB_API = 5;- See Also:
-
NEST_VALUE
public static final int NEST_VALUEThe data was uploaded from Nest devices.
NEST = 6;- See Also:
-
GOOGLE_WEB_API_VALUE
public static final int GOOGLE_WEB_API_VALUEThe data was uploaded from Google Health API.
GOOGLE_WEB_API = 7;- See Also:
-
GOOGLE_PARTNER_INTEGRATION_VALUE
public static final int GOOGLE_PARTNER_INTEGRATION_VALUEThe data was uploaded from Google Partner Integrations.
GOOGLE_PARTNER_INTEGRATION = 8;- 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
-
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
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
-