Class RollUpDataPointsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RollUpDataPointsRequest.Builder>
com.google.devicesandservices.health.v4.RollUpDataPointsRequest.Builder
All Implemented Interfaces:
RollUpDataPointsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RollUpDataPointsRequest

public static final class RollUpDataPointsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RollUpDataPointsRequest.Builder> implements RollUpDataPointsRequestOrBuilder
 Request to roll up data points by physical time intervals.
 
Protobuf type google.devicesandservices.health.v4.RollUpDataPointsRequest
  • 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.Builder<RollUpDataPointsRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RollUpDataPointsRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RollUpDataPointsRequest.Builder>
    • getDefaultInstanceForType

      public RollUpDataPointsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RollUpDataPointsRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RollUpDataPointsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RollUpDataPointsRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RollUpDataPointsRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RollUpDataPointsRequest.Builder>
    • mergeFrom

      public RollUpDataPointsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RollUpDataPointsRequest.Builder>
      Throws:
      IOException
    • 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 [RollupDataPoint
       value][google.devicesandservices.health.v4.RollupDataPoint]
       union field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface RollUpDataPointsRequestOrBuilder
      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 [RollupDataPoint
       value][google.devicesandservices.health.v4.RollupDataPoint]
       union field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface RollUpDataPointsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public RollUpDataPointsRequest.Builder setParent(String value)
       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 [RollupDataPoint
       value][google.devicesandservices.health.v4.RollupDataPoint]
       union field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public RollUpDataPointsRequest.Builder clearParent()
       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 [RollupDataPoint
       value][google.devicesandservices.health.v4.RollupDataPoint]
       union field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public RollUpDataPointsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       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 [RollupDataPoint
       value][google.devicesandservices.health.v4.RollupDataPoint]
       union field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasRange in interface RollUpDataPointsRequestOrBuilder
      Returns:
      Whether the range field is set.
    • 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];
      Specified by:
      getRange in interface RollUpDataPointsRequestOrBuilder
      Returns:
      The range.
    • setRange

      public RollUpDataPointsRequest.Builder setRange(Interval value)
       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];
    • setRange

      public RollUpDataPointsRequest.Builder setRange(Interval.Builder builderForValue)
       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];
    • mergeRange

      public RollUpDataPointsRequest.Builder mergeRange(Interval value)
       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];
    • clearRange

      public RollUpDataPointsRequest.Builder clearRange()
       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];
    • getRangeBuilder

      public Interval.Builder getRangeBuilder()
       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];
    • 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];
      Specified by:
      getRangeOrBuilder in interface RollUpDataPointsRequestOrBuilder
    • hasWindowSize

      public boolean hasWindowSize()
       Required. The size of the time window to group data points into before
       applying the aggregation functions.
       
      .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasWindowSize in interface RollUpDataPointsRequestOrBuilder
      Returns:
      Whether the windowSize field is set.
    • getWindowSize

      public com.google.protobuf.Duration getWindowSize()
       Required. The size of the time window to group data points into before
       applying the aggregation functions.
       
      .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWindowSize in interface RollUpDataPointsRequestOrBuilder
      Returns:
      The windowSize.
    • setWindowSize

      public RollUpDataPointsRequest.Builder setWindowSize(com.google.protobuf.Duration value)
       Required. The size of the time window to group data points into before
       applying the aggregation functions.
       
      .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
    • setWindowSize

      public RollUpDataPointsRequest.Builder setWindowSize(com.google.protobuf.Duration.Builder builderForValue)
       Required. The size of the time window to group data points into before
       applying the aggregation functions.
       
      .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeWindowSize

      public RollUpDataPointsRequest.Builder mergeWindowSize(com.google.protobuf.Duration value)
       Required. The size of the time window to group data points into before
       applying the aggregation functions.
       
      .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearWindowSize

      public RollUpDataPointsRequest.Builder clearWindowSize()
       Required. The size of the time window to group data points into before
       applying the aggregation functions.
       
      .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
    • getWindowSizeBuilder

      public com.google.protobuf.Duration.Builder getWindowSizeBuilder()
       Required. The size of the time window to group data points into before
       applying the aggregation functions.
       
      .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
    • getWindowSizeOrBuilder

      public com.google.protobuf.DurationOrBuilder getWindowSizeOrBuilder()
       Required. The size of the time window to group data points into before
       applying the aggregation functions.
       
      .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWindowSizeOrBuilder in interface RollUpDataPointsRequestOrBuilder
    • 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 RollUpDataPointsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public RollUpDataPointsRequest.Builder setPageSize(int value)
       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];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public RollUpDataPointsRequest.Builder clearPageSize()
       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:
      This builder for chaining.
    • 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 RollUpDataPointsRequestOrBuilder
      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 RollUpDataPointsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public RollUpDataPointsRequest.Builder setPageToken(String value)
       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];
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public RollUpDataPointsRequest.Builder clearPageToken()
       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:
      This builder for chaining.
    • setPageTokenBytes

      public RollUpDataPointsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • 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 RollUpDataPointsRequestOrBuilder
      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 RollUpDataPointsRequestOrBuilder
      Returns:
      The bytes for dataSourceFamily.
    • setDataSourceFamily

      public RollUpDataPointsRequest.Builder setDataSourceFamily(String value)
       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];
      Parameters:
      value - The dataSourceFamily to set.
      Returns:
      This builder for chaining.
    • clearDataSourceFamily

      public RollUpDataPointsRequest.Builder clearDataSourceFamily()
       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:
      This builder for chaining.
    • setDataSourceFamilyBytes

      public RollUpDataPointsRequest.Builder setDataSourceFamilyBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for dataSourceFamily to set.
      Returns:
      This builder for chaining.