Class ReconcileDataPointsRequest.Builder

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

public static final class ReconcileDataPointsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReconcileDataPointsRequest.Builder> implements ReconcileDataPointsRequestOrBuilder
 Request to reconcile data points from multiple data sources.
 
Protobuf type google.devicesandservices.health.v4.ReconcileDataPointsRequest
  • 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<ReconcileDataPointsRequest.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<ReconcileDataPointsRequest.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<ReconcileDataPointsRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ReconcileDataPointsRequest.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<ReconcileDataPointsRequest.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<ReconcileDataPointsRequest.Builder>
    • mergeFrom

      public ReconcileDataPointsRequest.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<ReconcileDataPointsRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. Parent data type of the Data Point collection.
      
       Format: `users/me/dataTypes/{data_type}`, e.g.:
      
       - `users/me/dataTypes/steps`
       - `users/me/dataTypes/heart-rate`
      
       For a list of the supported data types see the
       [DataPoint
       data][google.devicesandservices.health.v4.DataPoint] union
       field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParent in interface ReconcileDataPointsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Parent data type of the Data Point collection.
      
       Format: `users/me/dataTypes/{data_type}`, e.g.:
      
       - `users/me/dataTypes/steps`
       - `users/me/dataTypes/heart-rate`
      
       For a list of the supported data types see the
       [DataPoint
       data][google.devicesandservices.health.v4.DataPoint] union
       field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentBytes in interface ReconcileDataPointsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ReconcileDataPointsRequest.Builder setParent(String value)
       Required. Parent data type of the Data Point collection.
      
       Format: `users/me/dataTypes/{data_type}`, e.g.:
      
       - `users/me/dataTypes/steps`
       - `users/me/dataTypes/heart-rate`
      
       For a list of the supported data types see the
       [DataPoint
       data][google.devicesandservices.health.v4.DataPoint] union
       field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public ReconcileDataPointsRequest.Builder clearParent()
       Required. Parent data type of the Data Point collection.
      
       Format: `users/me/dataTypes/{data_type}`, e.g.:
      
       - `users/me/dataTypes/steps`
       - `users/me/dataTypes/heart-rate`
      
       For a list of the supported data types see the
       [DataPoint
       data][google.devicesandservices.health.v4.DataPoint] union
       field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setParentBytes

      public ReconcileDataPointsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Parent data type of the Data Point collection.
      
       Format: `users/me/dataTypes/{data_type}`, e.g.:
      
       - `users/me/dataTypes/steps`
       - `users/me/dataTypes/heart-rate`
      
       For a list of the supported data types see the
       [DataPoint
       data][google.devicesandservices.health.v4.DataPoint] union
       field.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • 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.
       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];
      Specified by:
      getPageSize in interface ReconcileDataPointsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ReconcileDataPointsRequest.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.
       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];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ReconcileDataPointsRequest.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.
       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:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       Optional. The `next_page_token` from a previous request, if any.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageToken in interface ReconcileDataPointsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Optional. The `next_page_token` from a previous request, if any.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageTokenBytes in interface ReconcileDataPointsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ReconcileDataPointsRequest.Builder setPageToken(String value)
       Optional. The `next_page_token` from a previous request, if any.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ReconcileDataPointsRequest.Builder clearPageToken()
       Optional. The `next_page_token` from a previous request, if any.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ReconcileDataPointsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. The `next_page_token` from a previous request, if any.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • getFilter

      public String getFilter()
       Optional. Filter expression based on https://aip.dev/160.
      
       A time range, either physical or civil, can be specified.
       See the
       [ListDataPointsRequest.filter][google.devicesandservices.health.v4.ListDataPointsRequest.filter]
       for the supported fields and syntax.
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilter in interface ReconcileDataPointsRequestOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       Optional. Filter expression based on https://aip.dev/160.
      
       A time range, either physical or civil, can be specified.
       See the
       [ListDataPointsRequest.filter][google.devicesandservices.health.v4.ListDataPointsRequest.filter]
       for the supported fields and syntax.
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterBytes in interface ReconcileDataPointsRequestOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public ReconcileDataPointsRequest.Builder setFilter(String value)
       Optional. Filter expression based on https://aip.dev/160.
      
       A time range, either physical or civil, can be specified.
       See the
       [ListDataPointsRequest.filter][google.devicesandservices.health.v4.ListDataPointsRequest.filter]
       for the supported fields and syntax.
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      public ReconcileDataPointsRequest.Builder clearFilter()
       Optional. Filter expression based on https://aip.dev/160.
      
       A time range, either physical or civil, can be specified.
       See the
       [ListDataPointsRequest.filter][google.devicesandservices.health.v4.ListDataPointsRequest.filter]
       for the supported fields and syntax.
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFilterBytes

      public ReconcileDataPointsRequest.Builder setFilterBytes(com.google.protobuf.ByteString value)
       Optional. Filter expression based on https://aip.dev/160.
      
       A time range, either physical or civil, can be specified.
       See the
       [ListDataPointsRequest.filter][google.devicesandservices.health.v4.ListDataPointsRequest.filter]
       for the supported fields and syntax.
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • getDataSourceFamily

      public String getDataSourceFamily()
       Optional. The data source family name to reconcile.
      
       If empty, data points from all data sources will be reconciled.
      
       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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataSourceFamily in interface ReconcileDataPointsRequestOrBuilder
      Returns:
      The dataSourceFamily.
    • getDataSourceFamilyBytes

      public com.google.protobuf.ByteString getDataSourceFamilyBytes()
       Optional. The data source family name to reconcile.
      
       If empty, data points from all data sources will be reconciled.
      
       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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataSourceFamilyBytes in interface ReconcileDataPointsRequestOrBuilder
      Returns:
      The bytes for dataSourceFamily.
    • setDataSourceFamily

      public ReconcileDataPointsRequest.Builder setDataSourceFamily(String value)
       Optional. The data source family name to reconcile.
      
       If empty, data points from all data sources will be reconciled.
      
       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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dataSourceFamily to set.
      Returns:
      This builder for chaining.
    • clearDataSourceFamily

      public ReconcileDataPointsRequest.Builder clearDataSourceFamily()
       Optional. The data source family name to reconcile.
      
       If empty, data points from all data sources will be reconciled.
      
       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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDataSourceFamilyBytes

      public ReconcileDataPointsRequest.Builder setDataSourceFamilyBytes(com.google.protobuf.ByteString value)
       Optional. The data source family name to reconcile.
      
       If empty, data points from all data sources will be reconciled.
      
       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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for dataSourceFamily to set.
      Returns:
      This builder for chaining.