public final class

DataProto.DataPoint

extends <any>

implements DataProto.DataPointOrBuilder

 java.lang.Object

↳<any>

↳androidx.health.platform.client.proto.DataProto.DataPoint

Overview

 Next Id: 23
 
Protobuf type androidx.health.platform.client.proto.DataPoint

Summary

Fields
public static final intAVG_FIELD_NUMBER

public static final intCLIENT_ID_FIELD_NUMBER

public static final intCLIENT_VERSION_FIELD_NUMBER

public static final intDATA_ORIGIN_FIELD_NUMBER

public static final intDATA_TYPE_FIELD_NUMBER

public static final intDEVICE_FIELD_NUMBER

public static final intEND_TIME_MILLIS_FIELD_NUMBER

public static final intEND_ZONE_OFFSET_SECONDS_FIELD_NUMBER

public static final intINSTANT_TIME_MILLIS_FIELD_NUMBER

public static final intMAX_FIELD_NUMBER

public static final intMIN_FIELD_NUMBER

public static final intORIGIN_SAMPLE_UID_FIELD_NUMBER

public static final intORIGIN_SERIES_UID_FIELD_NUMBER

public static final intRECORDING_METHOD_FIELD_NUMBER

public static final intSERIES_VALUES_FIELD_NUMBER

public static final intSTART_TIME_MILLIS_FIELD_NUMBER

public static final intSTART_ZONE_OFFSET_SECONDS_FIELD_NUMBER

public static final intSUB_TYPE_DATA_LISTS_FIELD_NUMBER

public static final intUID_FIELD_NUMBER

public static final intUPDATE_TIME_MILLIS_FIELD_NUMBER

public static final intVALUES_FIELD_NUMBER

public static final intZONE_OFFSET_SECONDS_FIELD_NUMBER

Methods
public booleancontainsSubTypeDataLists(java.lang.String key)

map<string, .androidx.health.platform.client.proto.DataPoint.SubTypeDataList> sub_type_data_lists = 22;

public booleancontainsValues(java.lang.String key)

map<string, .androidx.health.platform.client.proto.Value> values = 2;

protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public DataProto.AggregatedValuegetAvg()

optional .androidx.health.platform.client.proto.AggregatedValue avg = 18;

public java.lang.StringgetClientId()

optional string client_id = 11;

public com.google.protobuf.ByteStringgetClientIdBytes()

optional string client_id = 11;

public longgetClientVersion()

optional int64 client_version = 12;

public DataProto.DataOrigingetDataOrigin()

optional .androidx.health.platform.client.proto.DataOrigin data_origin = 5;

public DataProto.DataTypegetDataType()

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public static DataProto.DataPointgetDefaultInstance()

public DataProto.DevicegetDevice()

optional .androidx.health.platform.client.proto.Device device = 13;

public longgetEndTimeMillis()

optional int64 end_time_millis = 10;

public intgetEndZoneOffsetSeconds()

optional int32 end_zone_offset_seconds = 20;

public longgetInstantTimeMillis()

 Unset if interval start/end millis are used.

public DataProto.AggregatedValuegetMax()

optional .androidx.health.platform.client.proto.AggregatedValue max = 17;

public DataProto.AggregatedValuegetMin()

optional .androidx.health.platform.client.proto.AggregatedValue min = 16;

public java.lang.StringgetOriginSampleUid()

optional string origin_sample_uid = 14;

public com.google.protobuf.ByteStringgetOriginSampleUidBytes()

optional string origin_sample_uid = 14;

public java.lang.StringgetOriginSeriesUid()

optional string origin_series_uid = 4;

public com.google.protobuf.ByteStringgetOriginSeriesUidBytes()

optional string origin_series_uid = 4;

public intgetRecordingMethod()

optional int32 recording_method = 23;

public DataProto.SeriesValuegetSeriesValues(int index)

repeated .androidx.health.platform.client.proto.SeriesValue series_values = 15;

public intgetSeriesValuesCount()

repeated .androidx.health.platform.client.proto.SeriesValue series_values = 15;

public java.util.List<DataProto.SeriesValue>getSeriesValuesList()

repeated .androidx.health.platform.client.proto.SeriesValue series_values = 15;

public DataProto.SeriesValueOrBuildergetSeriesValuesOrBuilder(int index)

repeated .androidx.health.platform.client.proto.SeriesValue series_values = 15;

public java.util.List<DataProto.SeriesValueOrBuilder>getSeriesValuesOrBuilderList()

repeated .androidx.health.platform.client.proto.SeriesValue series_values = 15;

public longgetStartTimeMillis()

optional int64 start_time_millis = 9;

public intgetStartZoneOffsetSeconds()

optional int32 start_zone_offset_seconds = 19;

public java.util.Map<java.lang.String, DataProto.DataPoint.SubTypeDataList>getSubTypeDataLists()

Use DataProto.DataPoint.getSubTypeDataListsMap() instead.

public intgetSubTypeDataListsCount()

public java.util.Map<java.lang.String, DataProto.DataPoint.SubTypeDataList>getSubTypeDataListsMap()

map<string, .androidx.health.platform.client.proto.DataPoint.SubTypeDataList> sub_type_data_lists = 22;

public DataProto.DataPoint.SubTypeDataListgetSubTypeDataListsOrDefault(java.lang.String key, DataProto.DataPoint.SubTypeDataList defaultValue)

map<string, .androidx.health.platform.client.proto.DataPoint.SubTypeDataList> sub_type_data_lists = 22;

public DataProto.DataPoint.SubTypeDataListgetSubTypeDataListsOrThrow(java.lang.String key)

map<string, .androidx.health.platform.client.proto.DataPoint.SubTypeDataList> sub_type_data_lists = 22;

public java.lang.StringgetUid()

optional string uid = 3;

public com.google.protobuf.ByteStringgetUidBytes()

optional string uid = 3;

public longgetUpdateTimeMillis()

optional int64 update_time_millis = 7;

public java.util.Map<java.lang.String, DataProto.Value>getValues()

Use DataProto.DataPoint.getValuesMap() instead.

public intgetValuesCount()

public java.util.Map<java.lang.String, DataProto.Value>getValuesMap()

map<string, .androidx.health.platform.client.proto.Value> values = 2;

public DataProto.ValuegetValuesOrDefault(java.lang.String key, DataProto.Value defaultValue)

map<string, .androidx.health.platform.client.proto.Value> values = 2;

public DataProto.ValuegetValuesOrThrow(java.lang.String key)

map<string, .androidx.health.platform.client.proto.Value> values = 2;

public intgetZoneOffsetSeconds()

 Unset if it is interval or series data, use start_zone_offset_seconds and
 end_zone_offset_seconds instead.

public booleanhasAvg()

optional .androidx.health.platform.client.proto.AggregatedValue avg = 18;

public booleanhasClientId()

optional string client_id = 11;

public booleanhasClientVersion()

optional int64 client_version = 12;

public booleanhasDataOrigin()

optional .androidx.health.platform.client.proto.DataOrigin data_origin = 5;

public booleanhasDataType()

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public booleanhasDevice()

optional .androidx.health.platform.client.proto.Device device = 13;

public booleanhasEndTimeMillis()

optional int64 end_time_millis = 10;

public booleanhasEndZoneOffsetSeconds()

optional int32 end_zone_offset_seconds = 20;

public booleanhasInstantTimeMillis()

 Unset if interval start/end millis are used.

public booleanhasMax()

optional .androidx.health.platform.client.proto.AggregatedValue max = 17;

public booleanhasMin()

optional .androidx.health.platform.client.proto.AggregatedValue min = 16;

public booleanhasOriginSampleUid()

optional string origin_sample_uid = 14;

public booleanhasOriginSeriesUid()

optional string origin_series_uid = 4;

public booleanhasRecordingMethod()

optional int32 recording_method = 23;

public booleanhasStartTimeMillis()

optional int64 start_time_millis = 9;

public booleanhasStartZoneOffsetSeconds()

optional int32 start_zone_offset_seconds = 19;

public booleanhasUid()

optional string uid = 3;

public booleanhasUpdateTimeMillis()

optional int64 update_time_millis = 7;

public booleanhasZoneOffsetSeconds()

 Unset if it is interval or series data, use start_zone_offset_seconds and
 end_zone_offset_seconds instead.

public static DataProto.DataPoint.BuildernewBuilder()

public static DataProto.DataPoint.BuildernewBuilder(DataProto.DataPoint prototype)

public static DataProto.DataPointparseDelimitedFrom(java.io.InputStream input)

public static DataProto.DataPointparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPointparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPointparseFrom(java.nio.ByteBuffer data)

public static DataProto.DataPointparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPointparseFrom(com.google.protobuf.ByteString data)

public static DataProto.DataPointparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPointparseFrom(com.google.protobuf.CodedInputStream input)

public static DataProto.DataPointparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPointparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final int DATA_TYPE_FIELD_NUMBER

public static final int VALUES_FIELD_NUMBER

public static final int UID_FIELD_NUMBER

public static final int ORIGIN_SERIES_UID_FIELD_NUMBER

public static final int DATA_ORIGIN_FIELD_NUMBER

public static final int ZONE_OFFSET_SECONDS_FIELD_NUMBER

public static final int UPDATE_TIME_MILLIS_FIELD_NUMBER

public static final int INSTANT_TIME_MILLIS_FIELD_NUMBER

public static final int START_TIME_MILLIS_FIELD_NUMBER

public static final int END_TIME_MILLIS_FIELD_NUMBER

public static final int CLIENT_ID_FIELD_NUMBER

public static final int CLIENT_VERSION_FIELD_NUMBER

public static final int DEVICE_FIELD_NUMBER

public static final int ORIGIN_SAMPLE_UID_FIELD_NUMBER

public static final int SERIES_VALUES_FIELD_NUMBER

public static final int MIN_FIELD_NUMBER

public static final int MAX_FIELD_NUMBER

public static final int AVG_FIELD_NUMBER

public static final int START_ZONE_OFFSET_SECONDS_FIELD_NUMBER

public static final int END_ZONE_OFFSET_SECONDS_FIELD_NUMBER

public static final int SUB_TYPE_DATA_LISTS_FIELD_NUMBER

public static final int RECORDING_METHOD_FIELD_NUMBER

Methods

public boolean hasDataType()

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public DataProto.DataType getDataType()

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public int getValuesCount()

public boolean containsValues(java.lang.String key)

map<string, .androidx.health.platform.client.proto.Value> values = 2;

public java.util.Map<java.lang.String, DataProto.Value> getValues()

Use DataProto.DataPoint.getValuesMap() instead.

public java.util.Map<java.lang.String, DataProto.Value> getValuesMap()

map<string, .androidx.health.platform.client.proto.Value> values = 2;

public DataProto.Value getValuesOrDefault(java.lang.String key, DataProto.Value defaultValue)

map<string, .androidx.health.platform.client.proto.Value> values = 2;

public DataProto.Value getValuesOrThrow(java.lang.String key)

map<string, .androidx.health.platform.client.proto.Value> values = 2;

public boolean hasUid()

optional string uid = 3;

Returns:

Whether the uid field is set.

public java.lang.String getUid()

optional string uid = 3;

Returns:

The uid.

public com.google.protobuf.ByteString getUidBytes()

optional string uid = 3;

Returns:

The bytes for uid.

public boolean hasOriginSeriesUid()

optional string origin_series_uid = 4;

Returns:

Whether the originSeriesUid field is set.

public java.lang.String getOriginSeriesUid()

optional string origin_series_uid = 4;

Returns:

The originSeriesUid.

public com.google.protobuf.ByteString getOriginSeriesUidBytes()

optional string origin_series_uid = 4;

Returns:

The bytes for originSeriesUid.

public boolean hasDataOrigin()

optional .androidx.health.platform.client.proto.DataOrigin data_origin = 5;

public DataProto.DataOrigin getDataOrigin()

optional .androidx.health.platform.client.proto.DataOrigin data_origin = 5;

public boolean hasZoneOffsetSeconds()

 Unset if it is interval or series data, use start_zone_offset_seconds and
 end_zone_offset_seconds instead.
 
optional int32 zone_offset_seconds = 6;

Returns:

Whether the zoneOffsetSeconds field is set.

public int getZoneOffsetSeconds()

 Unset if it is interval or series data, use start_zone_offset_seconds and
 end_zone_offset_seconds instead.
 
optional int32 zone_offset_seconds = 6;

Returns:

The zoneOffsetSeconds.

public boolean hasUpdateTimeMillis()

optional int64 update_time_millis = 7;

Returns:

Whether the updateTimeMillis field is set.

public long getUpdateTimeMillis()

optional int64 update_time_millis = 7;

Returns:

The updateTimeMillis.

public boolean hasInstantTimeMillis()

 Unset if interval start/end millis are used.
 
optional int64 instant_time_millis = 8;

Returns:

Whether the instantTimeMillis field is set.

public long getInstantTimeMillis()

 Unset if interval start/end millis are used.
 
optional int64 instant_time_millis = 8;

Returns:

The instantTimeMillis.

public boolean hasStartTimeMillis()

optional int64 start_time_millis = 9;

Returns:

Whether the startTimeMillis field is set.

public long getStartTimeMillis()

optional int64 start_time_millis = 9;

Returns:

The startTimeMillis.

public boolean hasEndTimeMillis()

optional int64 end_time_millis = 10;

Returns:

Whether the endTimeMillis field is set.

public long getEndTimeMillis()

optional int64 end_time_millis = 10;

Returns:

The endTimeMillis.

public boolean hasClientId()

optional string client_id = 11;

Returns:

Whether the clientId field is set.

public java.lang.String getClientId()

optional string client_id = 11;

Returns:

The clientId.

public com.google.protobuf.ByteString getClientIdBytes()

optional string client_id = 11;

Returns:

The bytes for clientId.

public boolean hasClientVersion()

optional int64 client_version = 12;

Returns:

Whether the clientVersion field is set.

public long getClientVersion()

optional int64 client_version = 12;

Returns:

The clientVersion.

public boolean hasDevice()

optional .androidx.health.platform.client.proto.Device device = 13;

public DataProto.Device getDevice()

optional .androidx.health.platform.client.proto.Device device = 13;

public boolean hasOriginSampleUid()

optional string origin_sample_uid = 14;

Returns:

Whether the originSampleUid field is set.

public java.lang.String getOriginSampleUid()

optional string origin_sample_uid = 14;

Returns:

The originSampleUid.

public com.google.protobuf.ByteString getOriginSampleUidBytes()

optional string origin_sample_uid = 14;

Returns:

The bytes for originSampleUid.

public java.util.List<DataProto.SeriesValue> getSeriesValuesList()

repeated .androidx.health.platform.client.proto.SeriesValue series_values = 15;

public java.util.List<DataProto.SeriesValueOrBuilder> getSeriesValuesOrBuilderList()

repeated .androidx.health.platform.client.proto.SeriesValue series_values = 15;

public int getSeriesValuesCount()

repeated .androidx.health.platform.client.proto.SeriesValue series_values = 15;

public DataProto.SeriesValue getSeriesValues(int index)

repeated .androidx.health.platform.client.proto.SeriesValue series_values = 15;

public DataProto.SeriesValueOrBuilder getSeriesValuesOrBuilder(int index)

repeated .androidx.health.platform.client.proto.SeriesValue series_values = 15;

public boolean hasMin()

optional .androidx.health.platform.client.proto.AggregatedValue min = 16;

optional .androidx.health.platform.client.proto.AggregatedValue min = 16;

public boolean hasMax()

optional .androidx.health.platform.client.proto.AggregatedValue max = 17;

optional .androidx.health.platform.client.proto.AggregatedValue max = 17;

public boolean hasAvg()

optional .androidx.health.platform.client.proto.AggregatedValue avg = 18;

optional .androidx.health.platform.client.proto.AggregatedValue avg = 18;

public boolean hasStartZoneOffsetSeconds()

optional int32 start_zone_offset_seconds = 19;

Returns:

Whether the startZoneOffsetSeconds field is set.

public int getStartZoneOffsetSeconds()

optional int32 start_zone_offset_seconds = 19;

Returns:

The startZoneOffsetSeconds.

public boolean hasEndZoneOffsetSeconds()

optional int32 end_zone_offset_seconds = 20;

Returns:

Whether the endZoneOffsetSeconds field is set.

public int getEndZoneOffsetSeconds()

optional int32 end_zone_offset_seconds = 20;

Returns:

The endZoneOffsetSeconds.

public int getSubTypeDataListsCount()

public boolean containsSubTypeDataLists(java.lang.String key)

map<string, .androidx.health.platform.client.proto.DataPoint.SubTypeDataList> sub_type_data_lists = 22;

public java.util.Map<java.lang.String, DataProto.DataPoint.SubTypeDataList> getSubTypeDataLists()

Use DataProto.DataPoint.getSubTypeDataListsMap() instead.

public java.util.Map<java.lang.String, DataProto.DataPoint.SubTypeDataList> getSubTypeDataListsMap()

map<string, .androidx.health.platform.client.proto.DataPoint.SubTypeDataList> sub_type_data_lists = 22;

public DataProto.DataPoint.SubTypeDataList getSubTypeDataListsOrDefault(java.lang.String key, DataProto.DataPoint.SubTypeDataList defaultValue)

map<string, .androidx.health.platform.client.proto.DataPoint.SubTypeDataList> sub_type_data_lists = 22;

public DataProto.DataPoint.SubTypeDataList getSubTypeDataListsOrThrow(java.lang.String key)

map<string, .androidx.health.platform.client.proto.DataPoint.SubTypeDataList> sub_type_data_lists = 22;

public boolean hasRecordingMethod()

optional int32 recording_method = 23;

Returns:

Whether the recordingMethod field is set.

public int getRecordingMethod()

optional int32 recording_method = 23;

Returns:

The recordingMethod.

public static DataProto.DataPoint parseFrom(java.nio.ByteBuffer data)

public static DataProto.DataPoint parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPoint parseFrom(com.google.protobuf.ByteString data)

public static DataProto.DataPoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPoint parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPoint parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPoint parseDelimitedFrom(java.io.InputStream input)

public static DataProto.DataPoint parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPoint parseFrom(com.google.protobuf.CodedInputStream input)

public static DataProto.DataPoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static DataProto.DataPoint.Builder newBuilder()

public static DataProto.DataPoint.Builder newBuilder(DataProto.DataPoint prototype)

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static DataProto.DataPoint getDefaultInstance()

public static <any> parser()