public final class RollUpDataPointsRequest extends GeneratedMessage implements RollUpDataPointsRequestOrBuilder
Request to roll up data points by physical time intervals.
Protobuf type google.devicesandservices.health.v4.RollUpDataPointsRequest
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
DATA_SOURCE_FAMILY_FIELD_NUMBER
public static final int DATA_SOURCE_FAMILY_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 |
|
RANGE_FIELD_NUMBER
public static final int RANGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
WINDOW_SIZE_FIELD_NUMBER
public static final int WINDOW_SIZE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static RollUpDataPointsRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RollUpDataPointsRequest.Builder newBuilder()
newBuilder(RollUpDataPointsRequest prototype)
public static RollUpDataPointsRequest.Builder newBuilder(RollUpDataPointsRequest prototype)
public static RollUpDataPointsRequest parseDelimitedFrom(InputStream input)
public static RollUpDataPointsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RollUpDataPointsRequest parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RollUpDataPointsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RollUpDataPointsRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RollUpDataPointsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RollUpDataPointsRequest parseFrom(CodedInputStream input)
public static RollUpDataPointsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RollUpDataPointsRequest parseFrom(InputStream input)
public static RollUpDataPointsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RollUpDataPointsRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RollUpDataPointsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RollUpDataPointsRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDataSourceFamily()
public String getDataSourceFamily()
Optional. The data source family name to roll up.
If empty, data points from all available data sources will be rolled up.
Format: users/me/dataSourceFamilies/{data_source_family}
The supported values are:
users/me/dataSourceFamilies/all-sources - Default value. Includes data
from all available data sources.
users/me/dataSourceFamilies/google-wearables - Includes data from
Google and Fitbit tracker devices (such as Fitbit trackers and Pixel
Watch). Excludes manually logged data.
users/me/dataSourceFamilies/google-sources - Includes first-party
Google data, such as data from tracker devices, manually logged data, and
Health Connect.
users/me/dataSourceFamilies/self-sources - Includes only the data the
calling client wrote through this API, that is, data points whose data
source was registered through this API with the same OAuth client ID as
the caller.
Callers that were only granted write scopes for the requested data type
may only read the data they wrote themselves: their requests are
implicitly restricted to self-sources, and requesting any other data
source family fails with PERMISSION_DENIED.
If no data point matches the requested data source family, the response is
an empty list rather than an error.
string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The dataSourceFamily.
|
getDataSourceFamilyBytes()
public ByteString getDataSourceFamilyBytes()
Optional. The data source family name to roll up.
If empty, data points from all available data sources will be rolled up.
Format: users/me/dataSourceFamilies/{data_source_family}
The supported values are:
users/me/dataSourceFamilies/all-sources - Default value. Includes data
from all available data sources.
users/me/dataSourceFamilies/google-wearables - Includes data from
Google and Fitbit tracker devices (such as Fitbit trackers and Pixel
Watch). Excludes manually logged data.
users/me/dataSourceFamilies/google-sources - Includes first-party
Google data, such as data from tracker devices, manually logged data, and
Health Connect.
users/me/dataSourceFamilies/self-sources - Includes only the data the
calling client wrote through this API, that is, data points whose data
source was registered through this API with the same OAuth client ID as
the caller.
Callers that were only granted write scopes for the requested data type
may only read the data they wrote themselves: their requests are
implicitly restricted to self-sources, and requesting any other data
source family fails with PERMISSION_DENIED.
If no data point matches the requested data source family, the response is
an empty list rather than an error.
string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for dataSourceFamily.
|
getDefaultInstanceForType()
public RollUpDataPointsRequest getDefaultInstanceForType()
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.
int32 page_size = 4 [(.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.
All other request fields need to be the same as in the initial request
when the page token is specified.
string page_token = 5 [(.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.
All other request fields need to be the same as in the initial request
when the page token is specified.
string page_token = 5 [(.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/{user}/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/{user}/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<RollUpDataPointsRequest> getParserForType()
Overrides
getRange()
public Interval getRange()
Required. Closed-open range of data points that will be rolled up.
The maximum range for calories-in-heart-rate-zone, heart-rate,
active-minutes and total-calories is 14 days.
The maximum range for all other data types is 90 days.
.google.type.Interval range = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
com.google.type.Interval |
The range.
|
getRangeOrBuilder()
public IntervalOrBuilder getRangeOrBuilder()
Required. Closed-open range of data points that will be rolled up.
The maximum range for calories-in-heart-rate-zone, heart-rate,
active-minutes and total-calories is 14 days.
The maximum range for all other data types is 90 days.
.google.type.Interval range = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
com.google.type.IntervalOrBuilder |
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getWindowSize()
public Duration getWindowSize()
Required. The size of the time window to group data points into before
applying the aggregation functions. Must be at least 1 second.
If the requested range is not an exact multiple of window_size, the final
bucket chronologically will be truncated at the upper endpoint of the
range and will cover a duration shorter than window_size.
.google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
Duration |
The windowSize.
|
getWindowSizeOrBuilder()
public DurationOrBuilder getWindowSizeOrBuilder()
Required. The size of the time window to group data points into before
applying the aggregation functions. Must be at least 1 second.
If the requested range is not an exact multiple of window_size, the final
bucket chronologically will be truncated at the upper endpoint of the
range and will cover a duration shorter than window_size.
.google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
hasRange()
public boolean hasRange()
Required. Closed-open range of data points that will be rolled up.
The maximum range for calories-in-heart-rate-zone, heart-rate,
active-minutes and total-calories is 14 days.
The maximum range for all other data types is 90 days.
.google.type.Interval range = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the range field is set.
|
hasWindowSize()
public boolean hasWindowSize()
Required. The size of the time window to group data points into before
applying the aggregation functions. Must be at least 1 second.
If the requested range is not an exact multiple of window_size, the final
bucket chronologically will be truncated at the upper endpoint of the
range and will cover a duration shorter than window_size.
.google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the windowSize field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RollUpDataPointsRequest.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected RollUpDataPointsRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public RollUpDataPointsRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides