Class DailyRollUpDataPointsRequest (0.2.0)

public final class DailyRollUpDataPointsRequest extends GeneratedMessage implements DailyRollUpDataPointsRequestOrBuilder

Request to roll up data points by civil time intervals.

Protobuf type google.devicesandservices.health.v4.DailyRollUpDataPointsRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > DailyRollUpDataPointsRequest

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_DAYS_FIELD_NUMBER

public static final int WINDOW_SIZE_DAYS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DailyRollUpDataPointsRequest getDefaultInstance()
Returns
Type Description
DailyRollUpDataPointsRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DailyRollUpDataPointsRequest.Builder newBuilder()
Returns
Type Description
DailyRollUpDataPointsRequest.Builder

newBuilder(DailyRollUpDataPointsRequest prototype)

public static DailyRollUpDataPointsRequest.Builder newBuilder(DailyRollUpDataPointsRequest prototype)
Parameter
Name Description
prototype DailyRollUpDataPointsRequest
Returns
Type Description
DailyRollUpDataPointsRequest.Builder

parseDelimitedFrom(InputStream input)

public static DailyRollUpDataPointsRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DailyRollUpDataPointsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DailyRollUpDataPointsRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DailyRollUpDataPointsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DailyRollUpDataPointsRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DailyRollUpDataPointsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DailyRollUpDataPointsRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DailyRollUpDataPointsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DailyRollUpDataPointsRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DailyRollUpDataPointsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DailyRollUpDataPointsRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DailyRollUpDataPointsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DailyRollUpDataPointsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DailyRollUpDataPointsRequest> parser()
Returns
Type Description
Parser<DailyRollUpDataPointsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
  • users/me/dataSourceFamilies/google-wearables - tracker devices
  • users/me/dataSourceFamilies/google-sources - Google first party sources

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
  • users/me/dataSourceFamilies/google-wearables - tracker devices
  • users/me/dataSourceFamilies/google-sources - Google first party sources

string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for dataSourceFamily.

getDefaultInstanceForType()

public DailyRollUpDataPointsRequest getDefaultInstanceForType()
Returns
Type Description
DailyRollUpDataPointsRequest

getPageSize()

public int 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.:

  • users/me/dataTypes/steps
  • users/me/dataTypes/distance

    For a list of the supported data types see the DailyRollupDataPoint value union field.

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.:

  • users/me/dataTypes/steps
  • users/me/dataTypes/distance

    For a list of the supported data types see the DailyRollupDataPoint value union field.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<DailyRollUpDataPointsRequest> getParserForType()
Returns
Type Description
Parser<DailyRollUpDataPointsRequest>
Overrides

getRange()

public CivilTimeInterval getRange()

Required. Closed-open range of data points that will be rolled up. The start time must be aligned with the aggregation window. 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.devicesandservices.health.v4.CivilTimeInterval range = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CivilTimeInterval

The range.

getRangeOrBuilder()

public CivilTimeIntervalOrBuilder getRangeOrBuilder()

Required. Closed-open range of data points that will be rolled up. The start time must be aligned with the aggregation window. 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.devicesandservices.health.v4.CivilTimeInterval range = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CivilTimeIntervalOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWindowSizeDays()

public int getWindowSizeDays()

Optional. Aggregation window size, in number of days. Defaults to 1 if not specified.

int32 window_size_days = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The windowSizeDays.

hasRange()

public boolean hasRange()

Required. Closed-open range of data points that will be rolled up. The start time must be aligned with the aggregation window. 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.devicesandservices.health.v4.CivilTimeInterval range = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the range field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DailyRollUpDataPointsRequest.Builder newBuilderForType()
Returns
Type Description
DailyRollUpDataPointsRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DailyRollUpDataPointsRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DailyRollUpDataPointsRequest.Builder
Overrides

toBuilder()

public DailyRollUpDataPointsRequest.Builder toBuilder()
Returns
Type Description
DailyRollUpDataPointsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException