public final class ListDataPointsRequest extends GeneratedMessage implements ListDataPointsRequestOrBuilder
Request for listing raw data points
Protobuf type google.devicesandservices.health.v4.ListDataPointsRequest
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PAGE_SIZE_FIELD_NUMBER
public static final int PAGE_SIZE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PAGE_TOKEN_FIELD_NUMBER
public static final int PAGE_TOKEN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ListDataPointsRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ListDataPointsRequest.Builder newBuilder()
newBuilder(ListDataPointsRequest prototype)
public static ListDataPointsRequest.Builder newBuilder(ListDataPointsRequest prototype)
public static ListDataPointsRequest parseDelimitedFrom(InputStream input)
public static ListDataPointsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ListDataPointsRequest parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ListDataPointsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ListDataPointsRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ListDataPointsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ListDataPointsRequest parseFrom(CodedInputStream input)
public static ListDataPointsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ListDataPointsRequest parseFrom(InputStream input)
public static ListDataPointsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ListDataPointsRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ListDataPointsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ListDataPointsRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ListDataPointsRequest getDefaultInstanceForType()
getFilter()
public String getFilter()
Optional. Filter expression following https://google.aip.dev/160.
A time range (either physical or civil) can be specified.
The supported filter fields are:
- Interval start time:
- Pattern:
{interval_data_type}.interval.start_time
- Supported comparison operators:
>=, <
- Timestamp literal expected in RFC-3339 format
- Supported logical operators:
AND
- Example:
steps.interval.start_time >= "2023-11-24T00:00:00Z" AND
steps.interval.start_time < "2023-11-25T00:00:00Z"
distance.interval.start_time >= "2024-08-14T12:34:56Z"
Interval civil start time:
- Pattern:
{interval_data_type}.interval.civil_start_time
- Supported comparison operators:
>=, <
- Date with optional time literal expected in ISO 8601
YYYY-MM-DD[THH:mm:ss] format
- Supported logical operators:
AND
- Example:
steps.interval.civil_start_time >= "2023-11-24" AND
steps.interval.civil_start_time < "2023-11-25"
distance.interval.civil_start_time >= "2024-08-14T12:34:56"
Sample observation physical time:
- Pattern:
{sample_data_type}.sample_time.physical_time
- Supported comparison operators:
>=, <
- Timestamp literal expected in RFC-3339 format
- Supported logical operators:
AND
- Example:
weight.sample_time.physical_time >= "2023-11-24T00:00:00Z"
AND weight.sample_time.physical_time < "2023-11-25T00:00:00Z"
weight.sample_time.physical_time >=
"2024-08-14T12:34:56Z"
Sample observation civil time:
- Pattern:
{sample_data_type}.sample_time.civil_time
- Supported comparison operators:
>=, <
- Date with optional time literal expected in ISO 8601
YYYY-MM-DD[THH:mm:ss] format
- Supported logical operators:
AND
- Example:
weight.sample_time.civil_time >= "2023-11-24" AND
weight.sample_time.civil_time < "2023-11-25"
weight.sample_time.civil_time >= "2024-08-14T12:34:56"
Daily summary date:
- Pattern:
{daily_summary_data_type}.date
- Supported comparison operators:
>=, <
- Date literal expected in ISO 8601
YYYY-MM-DD format
- Supported logical operators:
AND
- Example:
daily_heart_rate_variability.date < "2024-08-15"
Session civil start time (Excluding Sleep and ECG):
- Pattern:
{session_data_type}.interval.civil_start_time
- Supported comparison operators:
>=, <
- Date with optional time literal expected in ISO 8601
YYYY-MM-DD[THH:mm:ss] format
- Supported logical operators:
AND
- Example:
exercise.interval.civil_start_time >= "2023-11-24" AND
exercise.interval.civil_start_time < "2023-11-25"
exercise.interval.civil_start_time >= "2024-08-14T12:34:56"
Session start time (ECG specific):
- Pattern:
electrocardiogram.interval.start_time
- Supported comparison operators:
>=
- Timestamp literal expected in RFC-3339 format
- Example:
electrocardiogram.interval.start_time >= "2024-08-14T12:34:56Z"
Note: Only filtering by start time is supported for ECG. Filtering
by end time (e.g., electrocardiogram.interval.end_time) is not
supported.
Session end time (Sleep specific):
- Pattern:
sleep.interval.end_time
- Supported comparison operators:
>=, <
- Timestamp literal expected in RFC-3339 format
- Supported logical operators:
AND, OR
- Example:
sleep.interval.end_time >= "2023-11-24T00:00:00Z" AND
sleep.interval.end_time < "2023-11-25T00:00:00Z"
Session civil end time (Sleep specific):
- Pattern:
sleep.interval.civil_end_time
- Supported comparison operators:
>=, <
- Date with optional time literal expected in ISO 8601
YYYY-MM-DD[THH:mm:ss] format
- Supported logical operators:
AND, OR
- Example:
sleep.interval.civil_end_time >= "2023-11-24" AND
sleep.interval.civil_end_time < "2023-11-25"
Data points in the response will be ordered by the interval start time in
descending order.
string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The filter.
|
getFilterBytes()
public ByteString getFilterBytes()
Optional. Filter expression following https://google.aip.dev/160.
A time range (either physical or civil) can be specified.
The supported filter fields are:
- Interval start time:
- Pattern:
{interval_data_type}.interval.start_time
- Supported comparison operators:
>=, <
- Timestamp literal expected in RFC-3339 format
- Supported logical operators:
AND
- Example:
steps.interval.start_time >= "2023-11-24T00:00:00Z" AND
steps.interval.start_time < "2023-11-25T00:00:00Z"
distance.interval.start_time >= "2024-08-14T12:34:56Z"
Interval civil start time:
- Pattern:
{interval_data_type}.interval.civil_start_time
- Supported comparison operators:
>=, <
- Date with optional time literal expected in ISO 8601
YYYY-MM-DD[THH:mm:ss] format
- Supported logical operators:
AND
- Example:
steps.interval.civil_start_time >= "2023-11-24" AND
steps.interval.civil_start_time < "2023-11-25"
distance.interval.civil_start_time >= "2024-08-14T12:34:56"
Sample observation physical time:
- Pattern:
{sample_data_type}.sample_time.physical_time
- Supported comparison operators:
>=, <
- Timestamp literal expected in RFC-3339 format
- Supported logical operators:
AND
- Example:
weight.sample_time.physical_time >= "2023-11-24T00:00:00Z"
AND weight.sample_time.physical_time < "2023-11-25T00:00:00Z"
weight.sample_time.physical_time >=
"2024-08-14T12:34:56Z"
Sample observation civil time:
- Pattern:
{sample_data_type}.sample_time.civil_time
- Supported comparison operators:
>=, <
- Date with optional time literal expected in ISO 8601
YYYY-MM-DD[THH:mm:ss] format
- Supported logical operators:
AND
- Example:
weight.sample_time.civil_time >= "2023-11-24" AND
weight.sample_time.civil_time < "2023-11-25"
weight.sample_time.civil_time >= "2024-08-14T12:34:56"
Daily summary date:
- Pattern:
{daily_summary_data_type}.date
- Supported comparison operators:
>=, <
- Date literal expected in ISO 8601
YYYY-MM-DD format
- Supported logical operators:
AND
- Example:
daily_heart_rate_variability.date < "2024-08-15"
Session civil start time (Excluding Sleep and ECG):
- Pattern:
{session_data_type}.interval.civil_start_time
- Supported comparison operators:
>=, <
- Date with optional time literal expected in ISO 8601
YYYY-MM-DD[THH:mm:ss] format
- Supported logical operators:
AND
- Example:
exercise.interval.civil_start_time >= "2023-11-24" AND
exercise.interval.civil_start_time < "2023-11-25"
exercise.interval.civil_start_time >= "2024-08-14T12:34:56"
Session start time (ECG specific):
- Pattern:
electrocardiogram.interval.start_time
- Supported comparison operators:
>=
- Timestamp literal expected in RFC-3339 format
- Example:
electrocardiogram.interval.start_time >= "2024-08-14T12:34:56Z"
Note: Only filtering by start time is supported for ECG. Filtering
by end time (e.g., electrocardiogram.interval.end_time) is not
supported.
Session end time (Sleep specific):
- Pattern:
sleep.interval.end_time
- Supported comparison operators:
>=, <
- Timestamp literal expected in RFC-3339 format
- Supported logical operators:
AND, OR
- Example:
sleep.interval.end_time >= "2023-11-24T00:00:00Z" AND
sleep.interval.end_time < "2023-11-25T00:00:00Z"
Session civil end time (Sleep specific):
- Pattern:
sleep.interval.civil_end_time
- Supported comparison operators:
>=, <
- Date with optional time literal expected in ISO 8601
YYYY-MM-DD[THH:mm:ss] format
- Supported logical operators:
AND, OR
- Example:
sleep.interval.civil_end_time >= "2023-11-24" AND
sleep.interval.civil_end_time < "2023-11-25"
Data points in the response will be ordered by the interval start time in
descending order.
string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for filter.
|
getPageSize()
Optional. The maximum number of data points to return.
If unspecified, at most 1440 data points will be returned.
The maximum page size is 10000; values above that will be truncated
accordingly.
For exercise and sleep the default page size is 25.
The maximum page size for exercise and sleep is 25.
int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The pageSize.
|
getPageToken()
public String getPageToken()
Optional. The next_page_token from a previous request, if any.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The pageToken.
|
getPageTokenBytes()
public ByteString getPageTokenBytes()
Optional. The next_page_token from a previous request, if any.
string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for pageToken.
|
getParent()
public String getParent()
Required. Parent data type of the Data Point collection.
Format: users/me/dataTypes/{data_type}, e.g.:
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. Parent data type of the Data Point collection.
Format: users/me/dataTypes/{data_type}, e.g.:
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for parent.
|
getParserForType()
public Parser<ListDataPointsRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ListDataPointsRequest.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ListDataPointsRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public ListDataPointsRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides