Class DailyRollUpDataPointsRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.DailyRollUpDataPointsRequest
All Implemented Interfaces:
DailyRollUpDataPointsRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DailyRollUpDataPointsRequest extends com.google.protobuf.GeneratedMessage implements DailyRollUpDataPointsRequestOrBuilder
 Request to roll up data points by civil time intervals.
 
Protobuf type google.devicesandservices.health.v4.DailyRollUpDataPointsRequest
See Also:
  • Field Details

    • PARENT_FIELD_NUMBER

      public static final int PARENT_FIELD_NUMBER
      See Also:
    • RANGE_FIELD_NUMBER

      public static final int RANGE_FIELD_NUMBER
      See Also:
    • WINDOW_SIZE_DAYS_FIELD_NUMBER

      public static final int WINDOW_SIZE_DAYS_FIELD_NUMBER
      See Also:
    • PAGE_SIZE_FIELD_NUMBER

      public static final int PAGE_SIZE_FIELD_NUMBER
      See Also:
    • PAGE_TOKEN_FIELD_NUMBER

      public static final int PAGE_TOKEN_FIELD_NUMBER
      See Also:
    • DATA_SOURCE_FAMILY_FIELD_NUMBER

      public static final int DATA_SOURCE_FAMILY_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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][google.devicesandservices.health.v4.DailyRollupDataPoint]
       union field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface DailyRollUpDataPointsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.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][google.devicesandservices.health.v4.DailyRollupDataPoint]
       union field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface DailyRollUpDataPointsRequestOrBuilder
      Returns:
      The bytes for parent.
    • 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];
      Specified by:
      hasRange in interface DailyRollUpDataPointsRequestOrBuilder
      Returns:
      Whether the range field is set.
    • 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];
      Specified by:
      getRange in interface DailyRollUpDataPointsRequestOrBuilder
      Returns:
      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];
      Specified by:
      getRangeOrBuilder in interface DailyRollUpDataPointsRequestOrBuilder
    • 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];
      Specified by:
      getWindowSizeDays in interface DailyRollUpDataPointsRequestOrBuilder
      Returns:
      The windowSizeDays.
    • 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];
      Specified by:
      getPageSize in interface DailyRollUpDataPointsRequestOrBuilder
      Returns:
      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];
      Specified by:
      getPageToken in interface DailyRollUpDataPointsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.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];
      Specified by:
      getPageTokenBytes in interface DailyRollUpDataPointsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • 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];
      Specified by:
      getDataSourceFamily in interface DailyRollUpDataPointsRequestOrBuilder
      Returns:
      The dataSourceFamily.
    • getDataSourceFamilyBytes

      public com.google.protobuf.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];
      Specified by:
      getDataSourceFamilyBytes in interface DailyRollUpDataPointsRequestOrBuilder
      Returns:
      The bytes for dataSourceFamily.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DailyRollUpDataPointsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DailyRollUpDataPointsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DailyRollUpDataPointsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DailyRollUpDataPointsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DailyRollUpDataPointsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DailyRollUpDataPointsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DailyRollUpDataPointsRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DailyRollUpDataPointsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DailyRollUpDataPointsRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DailyRollUpDataPointsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DailyRollUpDataPointsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DailyRollUpDataPointsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DailyRollUpDataPointsRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DailyRollUpDataPointsRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DailyRollUpDataPointsRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DailyRollUpDataPointsRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DailyRollUpDataPointsRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<DailyRollUpDataPointsRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public DailyRollUpDataPointsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder