diff --git a/clients/google-api-services-health/v4/2.0.0/README.md b/clients/google-api-services-health/v4/2.0.0/README.md index 7907e401d22..e4c7654ab0e 100644 --- a/clients/google-api-services-health/v4/2.0.0/README.md +++ b/clients/google-api-services-health/v4/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-health - v4-rev20261002-2.0.0 + v4-rev20261007-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-health:v4-rev20261002-2.0.0' + implementation 'com.google.apis:google-api-services-health:v4-rev20261007-2.0.0' } ``` diff --git a/clients/google-api-services-health/v4/2.0.0/com/google/api/services/health/v4/GoogleHealthAPI.java b/clients/google-api-services-health/v4/2.0.0/com/google/api/services/health/v4/GoogleHealthAPI.java index b5427657a47..87f54f7ec8f 100644 --- a/clients/google-api-services-health/v4/2.0.0/com/google/api/services/health/v4/GoogleHealthAPI.java +++ b/clients/google-api-services-health/v4/2.0.0/com/google/api/services/health/v4/GoogleHealthAPI.java @@ -3066,11 +3066,14 @@ public class DataPoints { * This request holds the parameters needed by the health server. After setting any optional * parameters, call the {@link BatchDelete#execute()} method to invoke the remote operation. * - * @param parent Optional. Parent (data type) for the Data Point collection Format: `users/me/dataTypes/{data_type}`, - * e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/-` For a list of the supported - * data types see the DataPoint data union field. Deleting data points across multiple data - * type collections is supported following https://aip.dev/159. If this is set, the parent of - * all of the data points specified in `names` must match this field. + * @param parent Optional. Parent (data type) for the Data Point collection Format: + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - + * `users/1234567890/dataTypes/-` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the + * supported data types see the DataPoint data union field. Deleting data points across + * multiple data type collections is supported following https://aip.dev/159. If this is set, + * the parent of all of the data points specified in `names` must match this field. * @param content the {@link com.google.api.services.health.v4.model.BatchDeleteDataPointsRequest} * @return the request */ @@ -3098,11 +3101,14 @@ public class BatchDelete extends GoogleHealthAPIRequest * - * @param parent Optional. Parent (data type) for the Data Point collection Format: `users/me/dataTypes/{data_type}`, - * e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/-` For a list of the supported - * data types see the DataPoint data union field. Deleting data points across multiple data - * type collections is supported following https://aip.dev/159. If this is set, the parent of - * all of the data points specified in `names` must match this field. + * @param parent Optional. Parent (data type) for the Data Point collection Format: + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - + * `users/1234567890/dataTypes/-` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the + * supported data types see the DataPoint data union field. Deleting data points across + * multiple data type collections is supported following https://aip.dev/159. If this is set, + * the parent of all of the data points specified in `names` must match this field. * @param content the {@link com.google.api.services.health.v4.model.BatchDeleteDataPointsRequest} * @since 1.13 */ @@ -3173,20 +3179,26 @@ public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { /** * Optional. Parent (data type) for the Data Point collection Format: - * `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - - * `users/me/dataTypes/-` For a list of the supported data types see the DataPoint data - * union field. Deleting data points across multiple data type collections is supported - * following https://aip.dev/159. If this is set, the parent of all of the data points - * specified in `names` must match this field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - + * `users/1234567890/dataTypes/-` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of + * the supported data types see the DataPoint data union field. Deleting data points + * across multiple data type collections is supported following https://aip.dev/159. If + * this is set, the parent of all of the data points specified in `names` must match this + * field. */ @com.google.api.client.util.Key private java.lang.String parent; /** Optional. Parent (data type) for the Data Point collection Format: - `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/-` For a - list of the supported data types see the DataPoint data union field. Deleting data points across - multiple data type collections is supported following https://aip.dev/159. If this is set, the - parent of all of the data points specified in `names` must match this field. + `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - `users/1234567890/dataTypes/-` The + `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved + via GetIdentity). For a list of the supported data types see the DataPoint data union field. + Deleting data points across multiple data type collections is supported following + https://aip.dev/159. If this is set, the parent of all of the data points specified in `names` must + match this field. */ public java.lang.String getParent() { return parent; @@ -3194,11 +3206,14 @@ public java.lang.String getParent() { /** * Optional. Parent (data type) for the Data Point collection Format: - * `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - - * `users/me/dataTypes/-` For a list of the supported data types see the DataPoint data - * union field. Deleting data points across multiple data type collections is supported - * following https://aip.dev/159. If this is set, the parent of all of the data points - * specified in `names` must match this field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - + * `users/1234567890/dataTypes/-` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of + * the supported data types see the DataPoint data union field. Deleting data points + * across multiple data type collections is supported following https://aip.dev/159. If + * this is set, the parent of all of the data points specified in `names` must match this + * field. */ public BatchDelete setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -3224,7 +3239,9 @@ public BatchDelete set(String parameterName, Object value) { * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param parent Required. The parent resource name where the data point will be created. Format: - * `users/{user}/dataTypes/{data_type}` + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). * @param content the {@link com.google.api.services.health.v4.model.DataPoint} * @return the request */ @@ -3252,7 +3269,9 @@ public class Create extends GoogleHealthAPIRequest * * @param parent Required. The parent resource name where the data point will be created. Format: - * `users/{user}/dataTypes/{data_type}` + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). * @param content the {@link com.google.api.services.health.v4.model.DataPoint} * @since 1.13 */ @@ -3323,13 +3342,17 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. The parent resource name where the data point will be created. Format: - * `users/{user}/dataTypes/{data_type}` + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The parent resource name where the data point will be created. Format: - `users/{user}/dataTypes/{data_type}` + `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the authenticated + user's numeric Health User ID (retrieved via GetIdentity). */ public java.lang.String getParent() { return parent; @@ -3337,7 +3360,9 @@ public java.lang.String getParent() { /** * Required. The parent resource name where the data point will be created. Format: - * `users/{user}/dataTypes/{data_type}` + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -3364,8 +3389,10 @@ public Create set(String parameterName, Object value) { * * @param parent 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. + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/distance` - + * `users/1234567890/dataTypes/distance` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the + * supported data types see the DailyRollupDataPoint value union field. * @param content the {@link com.google.api.services.health.v4.model.DailyRollUpDataPointsRequest} * @return the request */ @@ -3395,8 +3422,10 @@ public class DailyRollUp extends GoogleHealthAPIRequest * * @param name Required. The resource name of the exercise data point to export. Format: - * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Example: - * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` is the alias - * `"me"` currently. Future versions may support user IDs. The `{data_point}` ID maps to the - * exercise ID, which is a long integer. + * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Examples: - + * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` - + * `users/1234567890/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` can be + * either the alias `me` or the authenticated user's numeric Health User ID (retrieved via + * GetIdentity). The `{data_point}` ID maps to the exercise ID, which is a long integer. * @since 1.13 */ protected ExportExerciseTcx(java.lang.String name) { @@ -3665,19 +3705,22 @@ public ExportExerciseTcx setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. The resource name of the exercise data point to export. Format: - * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Example: - * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` is the alias - * `"me"` currently. Future versions may support user IDs. The `{data_point}` ID maps to - * the exercise ID, which is a long integer. + * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Examples: - + * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` - + * `users/1234567890/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` can + * be either the alias `me` or the authenticated user's numeric Health User ID (retrieved + * via GetIdentity). The `{data_point}` ID maps to the exercise ID, which is a long + * integer. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The resource name of the exercise data point to export. Format: - `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Example: - `users/me/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` is the alias `"me"` - currently. Future versions may support user IDs. The `{data_point}` ID maps to the exercise ID, - which is a long integer. + `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Examples: - + `users/me/dataTypes/exercise/dataPoints/2026443605080188808` - + `users/1234567890/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` can be either the + alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). The + `{data_point}` ID maps to the exercise ID, which is a long integer. */ public java.lang.String getName() { return name; @@ -3685,10 +3728,12 @@ public java.lang.String getName() { /** * Required. The resource name of the exercise data point to export. Format: - * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Example: - * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` is the alias - * `"me"` currently. Future versions may support user IDs. The `{data_point}` ID maps to - * the exercise ID, which is a long integer. + * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Examples: - + * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` - + * `users/1234567890/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` can + * be either the alias `me` or the authenticated user's numeric Health User ID (retrieved + * via GetIdentity). The `{data_point}` ID maps to the exercise ID, which is a long + * integer. */ public ExportExerciseTcx setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -3737,8 +3782,11 @@ public ExportExerciseTcx set(String parameterName, Object value) { * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. The name of the data point to retrieve. Format: - * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for - * examples and possible values. + * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## + * `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + * `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The + * `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID + * (retrieved via GetIdentity). See DataPoint.name for examples and possible values. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -3765,8 +3813,11 @@ public class Get extends GoogleHealthAPIRequest * * @param name Required. The name of the data point to retrieve. Format: - * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for - * examples and possible values. + * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## + * `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + * `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The + * `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID + * (retrieved via GetIdentity). See DataPoint.name for examples and possible values. * @since 1.13 */ protected Get(java.lang.String name) { @@ -3846,15 +3897,21 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. The name of the data point to retrieve. Format: - * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for - * examples and possible values. + * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## + * `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + * `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The + * `{user}` can be either the alias `me` or the authenticated user's numeric Health User + * ID (retrieved via GetIdentity). See DataPoint.name for examples and possible values. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The name of the data point to retrieve. Format: - `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for examples and - possible values. + `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## + `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user}` can + be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via + GetIdentity). See DataPoint.name for examples and possible values. */ public java.lang.String getName() { return name; @@ -3862,8 +3919,11 @@ public java.lang.String getName() { /** * Required. The name of the data point to retrieve. Format: - * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for - * examples and possible values. + * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## + * `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + * `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The + * `{user}` can be either the alias `me` or the authenticated user's numeric Health User + * ID (retrieved via GetIdentity). See DataPoint.name for examples and possible values. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -3888,8 +3948,11 @@ public Get set(String parameterName, Object value) { * This request holds the parameters needed by the health server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. Parent data type of the Data Point collection. Format: `users/me/dataTypes/{data_type}`, - * e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/weight` For a list of the + * @param parent Required. Parent data type of the Data Point collection. Format: + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - + * `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the * supported data types see the DataPoint data union field. * @return the request */ @@ -3916,8 +3979,11 @@ public class List extends GoogleHealthAPIRequest * - * @param parent Required. Parent data type of the Data Point collection. Format: `users/me/dataTypes/{data_type}`, - * e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/weight` For a list of the + * @param parent Required. Parent data type of the Data Point collection. Format: + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - + * `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the * supported data types see the DataPoint data union field. * @since 1.13 */ @@ -3998,16 +4064,21 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. Parent data type of the Data Point collection. Format: - * `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - - * `users/me/dataTypes/weight` For a list of the supported data types see the DataPoint - * data union field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - + * `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of + * the supported data types see the DataPoint data union field. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. Parent data type of the Data Point collection. Format: `users/me/dataTypes/{data_type}`, - e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/weight` For a list of the supported data - types see the DataPoint data union field. + /** Required. Parent data type of the Data Point collection. Format: + `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - + `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the authenticated + user's numeric Health User ID (retrieved via GetIdentity). For a list of the supported data types + see the DataPoint data union field. */ public java.lang.String getParent() { return parent; @@ -4015,9 +4086,11 @@ public java.lang.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/weight` For a list of the supported data types see the DataPoint - * data union field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - + * `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of + * the supported data types see the DataPoint data union field. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -4032,23 +4105,26 @@ public List setParent(java.lang.String parent) { /** * Optional. The data source family name to filter by. If empty, data points from all * available data sources will be returned. 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 + * `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the + * alias `me` or the authenticated user's numeric Health User ID, retrieved via + * GetIdentity (e.g. `users/me/dataSourceFamilies/...` or + * `users/1234567890/dataSourceFamilies/...`). The supported values are: - + * `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all + * available data sources. - `users/{user}/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` - + * Excludes manually logged data. - `users/{user}/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 types 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. Filtering by data source family is not supported for the - * `sleep`, `food` and `food-measurement-unit` data types, because the underlying listing - * implementation cannot restrict results by data source. Such requests fail with - * `INVALID_ARGUMENT` when the data source family is set explicitly, and with + * data, and Health Connect. - `users/{user}/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 types 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. Filtering by data source family is not + * supported for the `sleep`, `food` and `food-measurement-unit` data types, because the + * underlying listing implementation cannot restrict results by data source. Such requests + * fail with `INVALID_ARGUMENT` when the data source family is set explicitly, and with * `PERMISSION_DENIED` when the restriction is only implied by the caller's scopes. For * `sleep`, use ReconcileDataPoints instead. */ @@ -4056,13 +4132,16 @@ public List setParent(java.lang.String parent) { private java.lang.String dataSourceFamily; /** Optional. The data source family name to filter by. If empty, data points from all available data - sources will be returned. 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 + sources will be returned. Format: `users/{user}/dataSourceFamilies/{data_source_family}` The + `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, retrieved + via GetIdentity (e.g. `users/me/dataSourceFamilies/...` or + `users/1234567890/dataSourceFamilies/...`). The supported values are: - + `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all available + data sources. - `users/{user}/dataSourceFamilies/google-wearables` - Includes data from Google and + Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - + `users/{user}/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data + from tracker devices, manually logged data, and Health Connect. - + `users/{user}/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 types may only read the data they wrote themselves: their requests are implicitly restricted @@ -4081,23 +4160,26 @@ public java.lang.String getDataSourceFamily() { /** * Optional. The data source family name to filter by. If empty, data points from all * available data sources will be returned. 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 + * `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the + * alias `me` or the authenticated user's numeric Health User ID, retrieved via + * GetIdentity (e.g. `users/me/dataSourceFamilies/...` or + * `users/1234567890/dataSourceFamilies/...`). The supported values are: - + * `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all + * available data sources. - `users/{user}/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` - + * Excludes manually logged data. - `users/{user}/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 types 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. Filtering by data source family is not supported for the - * `sleep`, `food` and `food-measurement-unit` data types, because the underlying listing - * implementation cannot restrict results by data source. Such requests fail with - * `INVALID_ARGUMENT` when the data source family is set explicitly, and with + * data, and Health Connect. - `users/{user}/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 types 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. Filtering by data source family is not + * supported for the `sleep`, `food` and `food-measurement-unit` data types, because the + * underlying listing implementation cannot restrict results by data source. Such requests + * fail with `INVALID_ARGUMENT` when the data source family is set explicitly, and with * `PERMISSION_DENIED` when the restriction is only implied by the caller's scopes. For * `sleep`, use ReconcileDataPoints instead. */ @@ -4322,12 +4404,14 @@ public List set(String parameterName, Object value) { * @param name Identifier. Data point name, only supported for the subset of identifiable data types. For the * majority of the data types, individual data points do not need to be identified and this * field would be empty. Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` - * Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` - * The `{user}` ID is a system-generated identifier, as described in Identity.health_user_id. - * The `{data_type}` ID corresponds to the kebab-case version of the field names in the - * DataPoint data union field, e.g. `heart-rate` for the `heart_rate` field. The - * `{data_point}` ID can be client-provided or system-generated. If client-provided, it must - * be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens. + * ## Examples: ## `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + * `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The + * `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, + * which can be retrieved by calling GetIdentity (see Identity.health_user_id). The + * `{data_type}` ID corresponds to the kebab-case version of the field names in the DataPoint + * data union field, e.g. `heart-rate` for the `heart_rate` field. The `{data_point}` ID can + * be client-provided or system-generated. If client-provided, it must be a string of 4-63 + * characters, containing only lowercase letters, numbers, and hyphens. * @param content the {@link com.google.api.services.health.v4.model.DataPoint} * @return the request */ @@ -4358,12 +4442,14 @@ public class Patch extends GoogleHealthAPIRequest * - * @param parent 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 + * @param parent Required. Parent data type of the Data Point collection. Format: + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/heart-rate` - + * `users/1234567890/dataTypes/heart-rate` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the * supported data types see the DataPoint data union field. * @since 1.13 */ @@ -4609,16 +4707,21 @@ public Reconcile setUploadProtocol(java.lang.String uploadProtocol) { /** * 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 union field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/heart-rate` - + * `users/1234567890/dataTypes/heart-rate` The `{user}` can be either the alias `me` or + * the authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list + * of the supported data types see the DataPoint data union field. */ @com.google.api.client.util.Key private java.lang.String parent; - /** 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 union field. + /** Required. Parent data type of the Data Point collection. Format: + `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + `users/1234567890/dataTypes/steps` - `users/me/dataTypes/heart-rate` - + `users/1234567890/dataTypes/heart-rate` The `{user}` can be either the alias `me` or the + authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the + supported data types see the DataPoint data union field. */ public java.lang.String getParent() { return parent; @@ -4626,9 +4729,11 @@ public java.lang.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 union field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/heart-rate` - + * `users/1234567890/dataTypes/heart-rate` The `{user}` can be either the alias `me` or + * the authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list + * of the supported data types see the DataPoint data union field. */ public Reconcile setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -4642,37 +4747,44 @@ public Reconcile setParent(java.lang.String parent) { /** * 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}` - * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all - * available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes + * sources will be reconciled. Format: + * `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the + * alias `me` or the authenticated user's numeric Health User ID, retrieved via + * GetIdentity (e.g. `users/me/dataSourceFamilies/...` or + * `users/1234567890/dataSourceFamilies/...`). The supported values are: - + * `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all + * available data sources. - `users/{user}/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` - + * Excludes manually logged data. - `users/{user}/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. + * data, and Health Connect. - `users/{user}/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. */ @com.google.api.client.util.Key private java.lang.String dataSourceFamily; /** 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}` - - `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. + will be reconciled. Format: `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can + be either the alias `me` or the authenticated user's numeric Health User ID, retrieved via + GetIdentity (e.g. `users/me/dataSourceFamilies/...` or `users/1234567890/dataSourceFamilies/...`). + The supported values are: - `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes + data from all available data sources. - `users/{user}/dataSourceFamilies/google-wearables` - + Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). + Excludes manually logged data. - `users/{user}/dataSourceFamilies/google-sources` - Includes first- + party Google data, such as data from tracker devices, manually logged data, and Health Connect. - + `users/{user}/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. */ public java.lang.String getDataSourceFamily() { return dataSourceFamily; @@ -4680,20 +4792,24 @@ public java.lang.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}` - * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all - * available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes + * sources will be reconciled. Format: + * `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the + * alias `me` or the authenticated user's numeric Health User ID, retrieved via + * GetIdentity (e.g. `users/me/dataSourceFamilies/...` or + * `users/1234567890/dataSourceFamilies/...`). The supported values are: - + * `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all + * available data sources. - `users/{user}/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` - + * Excludes manually logged data. - `users/{user}/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. + * data, and Health Connect. - `users/{user}/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. */ public Reconcile setDataSourceFamily(java.lang.String dataSourceFamily) { this.dataSourceFamily = dataSourceFamily; @@ -4785,8 +4901,10 @@ public Reconcile set(String parameterName, Object value) { * * @param parent 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 union field. + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/distance` - + * `users/1234567890/dataTypes/distance` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the + * supported data types see the RollupDataPoint value union field. * @param content the {@link com.google.api.services.health.v4.model.RollUpDataPointsRequest} * @return the request */ @@ -4815,8 +4933,10 @@ public class RollUp extends GoogleHealthAPIRequestcom.google.apis google-api-services-health - v4-rev20261002-2.0.0 - Google Health API v4-rev20261002-2.0.0 + v4-rev20261007-2.0.0 + Google Health API v4-rev20261007-2.0.0 jar 2011 diff --git a/clients/google-api-services-health/v4/README.md b/clients/google-api-services-health/v4/README.md index 7907e401d22..e4c7654ab0e 100644 --- a/clients/google-api-services-health/v4/README.md +++ b/clients/google-api-services-health/v4/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-health - v4-rev20261002-2.0.0 + v4-rev20261007-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-health:v4-rev20261002-2.0.0' + implementation 'com.google.apis:google-api-services-health:v4-rev20261007-2.0.0' } ``` diff --git a/clients/google-api-services-health/v4beta/2.0.0/README.md b/clients/google-api-services-health/v4beta/2.0.0/README.md index 7da42699716..6f42e4f391b 100644 --- a/clients/google-api-services-health/v4beta/2.0.0/README.md +++ b/clients/google-api-services-health/v4beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-health - v4beta-rev20261002-2.0.0 + v4beta-rev20261007-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-health:v4beta-rev20261002-2.0.0' + implementation 'com.google.apis:google-api-services-health:v4beta-rev20261007-2.0.0' } ``` diff --git a/clients/google-api-services-health/v4beta/2.0.0/com/google/api/services/health/v4beta/GoogleHealthAPI.java b/clients/google-api-services-health/v4beta/2.0.0/com/google/api/services/health/v4beta/GoogleHealthAPI.java index 9410adad713..41b1d98071e 100644 --- a/clients/google-api-services-health/v4beta/2.0.0/com/google/api/services/health/v4beta/GoogleHealthAPI.java +++ b/clients/google-api-services-health/v4beta/2.0.0/com/google/api/services/health/v4beta/GoogleHealthAPI.java @@ -3066,11 +3066,14 @@ public class DataPoints { * This request holds the parameters needed by the health server. After setting any optional * parameters, call the {@link BatchDelete#execute()} method to invoke the remote operation. * - * @param parent Optional. Parent (data type) for the Data Point collection Format: `users/me/dataTypes/{data_type}`, - * e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/-` For a list of the supported - * data types see the DataPoint data union field. Deleting data points across multiple data - * type collections is supported following https://aip.dev/159. If this is set, the parent of - * all of the data points specified in `names` must match this field. + * @param parent Optional. Parent (data type) for the Data Point collection Format: + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - + * `users/1234567890/dataTypes/-` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the + * supported data types see the DataPoint data union field. Deleting data points across + * multiple data type collections is supported following https://aip.dev/159. If this is set, + * the parent of all of the data points specified in `names` must match this field. * @param content the {@link com.google.api.services.health.v4beta.model.BatchDeleteDataPointsRequest} * @return the request */ @@ -3098,11 +3101,14 @@ public class BatchDelete extends GoogleHealthAPIRequest * - * @param parent Optional. Parent (data type) for the Data Point collection Format: `users/me/dataTypes/{data_type}`, - * e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/-` For a list of the supported - * data types see the DataPoint data union field. Deleting data points across multiple data - * type collections is supported following https://aip.dev/159. If this is set, the parent of - * all of the data points specified in `names` must match this field. + * @param parent Optional. Parent (data type) for the Data Point collection Format: + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - + * `users/1234567890/dataTypes/-` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the + * supported data types see the DataPoint data union field. Deleting data points across + * multiple data type collections is supported following https://aip.dev/159. If this is set, + * the parent of all of the data points specified in `names` must match this field. * @param content the {@link com.google.api.services.health.v4beta.model.BatchDeleteDataPointsRequest} * @since 1.13 */ @@ -3173,20 +3179,26 @@ public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { /** * Optional. Parent (data type) for the Data Point collection Format: - * `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - - * `users/me/dataTypes/-` For a list of the supported data types see the DataPoint data - * union field. Deleting data points across multiple data type collections is supported - * following https://aip.dev/159. If this is set, the parent of all of the data points - * specified in `names` must match this field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - + * `users/1234567890/dataTypes/-` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of + * the supported data types see the DataPoint data union field. Deleting data points + * across multiple data type collections is supported following https://aip.dev/159. If + * this is set, the parent of all of the data points specified in `names` must match this + * field. */ @com.google.api.client.util.Key private java.lang.String parent; /** Optional. Parent (data type) for the Data Point collection Format: - `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/-` For a - list of the supported data types see the DataPoint data union field. Deleting data points across - multiple data type collections is supported following https://aip.dev/159. If this is set, the - parent of all of the data points specified in `names` must match this field. + `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - `users/1234567890/dataTypes/-` The + `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID (retrieved + via GetIdentity). For a list of the supported data types see the DataPoint data union field. + Deleting data points across multiple data type collections is supported following + https://aip.dev/159. If this is set, the parent of all of the data points specified in `names` must + match this field. */ public java.lang.String getParent() { return parent; @@ -3194,11 +3206,14 @@ public java.lang.String getParent() { /** * Optional. Parent (data type) for the Data Point collection Format: - * `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - - * `users/me/dataTypes/-` For a list of the supported data types see the DataPoint data - * union field. Deleting data points across multiple data type collections is supported - * following https://aip.dev/159. If this is set, the parent of all of the data points - * specified in `names` must match this field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/-` - + * `users/1234567890/dataTypes/-` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of + * the supported data types see the DataPoint data union field. Deleting data points + * across multiple data type collections is supported following https://aip.dev/159. If + * this is set, the parent of all of the data points specified in `names` must match this + * field. */ public BatchDelete setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -3224,7 +3239,9 @@ public BatchDelete set(String parameterName, Object value) { * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param parent Required. The parent resource name where the data point will be created. Format: - * `users/{user}/dataTypes/{data_type}` + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). * @param content the {@link com.google.api.services.health.v4beta.model.DataPoint} * @return the request */ @@ -3252,7 +3269,9 @@ public class Create extends GoogleHealthAPIRequest * * @param parent Required. The parent resource name where the data point will be created. Format: - * `users/{user}/dataTypes/{data_type}` + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). * @param content the {@link com.google.api.services.health.v4beta.model.DataPoint} * @since 1.13 */ @@ -3323,13 +3342,17 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. The parent resource name where the data point will be created. Format: - * `users/{user}/dataTypes/{data_type}` + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The parent resource name where the data point will be created. Format: - `users/{user}/dataTypes/{data_type}` + `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the authenticated + user's numeric Health User ID (retrieved via GetIdentity). */ public java.lang.String getParent() { return parent; @@ -3337,7 +3360,9 @@ public java.lang.String getParent() { /** * Required. The parent resource name where the data point will be created. Format: - * `users/{user}/dataTypes/{data_type}` + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -3364,8 +3389,10 @@ public Create set(String parameterName, Object value) { * * @param parent 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. + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/distance` - + * `users/1234567890/dataTypes/distance` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the + * supported data types see the DailyRollupDataPoint value union field. * @param content the {@link com.google.api.services.health.v4beta.model.DailyRollUpDataPointsRequest} * @return the request */ @@ -3395,8 +3422,10 @@ public class DailyRollUp extends GoogleHealthAPIRequest * * @param name Required. The resource name of the exercise data point to export. Format: - * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Example: - * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` is the alias - * `"me"` currently. Future versions may support user IDs. The `{data_point}` ID maps to the - * exercise ID, which is a long integer. + * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Examples: - + * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` - + * `users/1234567890/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` can be + * either the alias `me` or the authenticated user's numeric Health User ID (retrieved via + * GetIdentity). The `{data_point}` ID maps to the exercise ID, which is a long integer. * @since 1.13 */ protected ExportExerciseTcx(java.lang.String name) { @@ -3665,19 +3705,22 @@ public ExportExerciseTcx setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. The resource name of the exercise data point to export. Format: - * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Example: - * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` is the alias - * `"me"` currently. Future versions may support user IDs. The `{data_point}` ID maps to - * the exercise ID, which is a long integer. + * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Examples: - + * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` - + * `users/1234567890/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` can + * be either the alias `me` or the authenticated user's numeric Health User ID (retrieved + * via GetIdentity). The `{data_point}` ID maps to the exercise ID, which is a long + * integer. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The resource name of the exercise data point to export. Format: - `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Example: - `users/me/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` is the alias `"me"` - currently. Future versions may support user IDs. The `{data_point}` ID maps to the exercise ID, - which is a long integer. + `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Examples: - + `users/me/dataTypes/exercise/dataPoints/2026443605080188808` - + `users/1234567890/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` can be either the + alias `me` or the authenticated user's numeric Health User ID (retrieved via GetIdentity). The + `{data_point}` ID maps to the exercise ID, which is a long integer. */ public java.lang.String getName() { return name; @@ -3685,10 +3728,12 @@ public java.lang.String getName() { /** * Required. The resource name of the exercise data point to export. Format: - * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Example: - * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` is the alias - * `"me"` currently. Future versions may support user IDs. The `{data_point}` ID maps to - * the exercise ID, which is a long integer. + * `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Examples: - + * `users/me/dataTypes/exercise/dataPoints/2026443605080188808` - + * `users/1234567890/dataTypes/exercise/dataPoints/2026443605080188808` The `{user}` can + * be either the alias `me` or the authenticated user's numeric Health User ID (retrieved + * via GetIdentity). The `{data_point}` ID maps to the exercise ID, which is a long + * integer. */ public ExportExerciseTcx setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -3737,8 +3782,11 @@ public ExportExerciseTcx set(String parameterName, Object value) { * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. The name of the data point to retrieve. Format: - * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for - * examples and possible values. + * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## + * `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + * `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The + * `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID + * (retrieved via GetIdentity). See DataPoint.name for examples and possible values. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -3765,8 +3813,11 @@ public class Get extends GoogleHealthAPIRequest * * @param name Required. The name of the data point to retrieve. Format: - * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for - * examples and possible values. + * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## + * `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + * `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The + * `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID + * (retrieved via GetIdentity). See DataPoint.name for examples and possible values. * @since 1.13 */ protected Get(java.lang.String name) { @@ -3846,15 +3897,21 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. The name of the data point to retrieve. Format: - * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for - * examples and possible values. + * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## + * `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + * `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The + * `{user}` can be either the alias `me` or the authenticated user's numeric Health User + * ID (retrieved via GetIdentity). See DataPoint.name for examples and possible values. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The name of the data point to retrieve. Format: - `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for examples and - possible values. + `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## + `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user}` can + be either the alias `me` or the authenticated user's numeric Health User ID (retrieved via + GetIdentity). See DataPoint.name for examples and possible values. */ public java.lang.String getName() { return name; @@ -3862,8 +3919,11 @@ public java.lang.String getName() { /** * Required. The name of the data point to retrieve. Format: - * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` See DataPoint.name for - * examples and possible values. + * `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` ## Examples: ## + * `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + * `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The + * `{user}` can be either the alias `me` or the authenticated user's numeric Health User + * ID (retrieved via GetIdentity). See DataPoint.name for examples and possible values. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -3888,8 +3948,11 @@ public Get set(String parameterName, Object value) { * This request holds the parameters needed by the health server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. Parent data type of the Data Point collection. Format: `users/me/dataTypes/{data_type}`, - * e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/weight` For a list of the + * @param parent Required. Parent data type of the Data Point collection. Format: + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - + * `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the * supported data types see the DataPoint data union field. * @return the request */ @@ -3916,8 +3979,11 @@ public class List extends GoogleHealthAPIRequest * - * @param parent Required. Parent data type of the Data Point collection. Format: `users/me/dataTypes/{data_type}`, - * e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/weight` For a list of the + * @param parent Required. Parent data type of the Data Point collection. Format: + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - + * `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the * supported data types see the DataPoint data union field. * @since 1.13 */ @@ -3998,16 +4064,21 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. Parent data type of the Data Point collection. Format: - * `users/me/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - - * `users/me/dataTypes/weight` For a list of the supported data types see the DataPoint - * data union field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - + * `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of + * the supported data types see the DataPoint data union field. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. Parent data type of the Data Point collection. Format: `users/me/dataTypes/{data_type}`, - e.g.: - `users/me/dataTypes/steps` - `users/me/dataTypes/weight` For a list of the supported data - types see the DataPoint data union field. + /** Required. Parent data type of the Data Point collection. Format: + `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - + `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the authenticated + user's numeric Health User ID (retrieved via GetIdentity). For a list of the supported data types + see the DataPoint data union field. */ public java.lang.String getParent() { return parent; @@ -4015,9 +4086,11 @@ public java.lang.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/weight` For a list of the supported data types see the DataPoint - * data union field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/weight` - + * `users/1234567890/dataTypes/weight` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of + * the supported data types see the DataPoint data union field. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -4032,23 +4105,26 @@ public List setParent(java.lang.String parent) { /** * Optional. The data source family name to filter by. If empty, data points from all * available data sources will be returned. 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 + * `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the + * alias `me` or the authenticated user's numeric Health User ID, retrieved via + * GetIdentity (e.g. `users/me/dataSourceFamilies/...` or + * `users/1234567890/dataSourceFamilies/...`). The supported values are: - + * `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all + * available data sources. - `users/{user}/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` - + * Excludes manually logged data. - `users/{user}/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 types 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. Filtering by data source family is not supported for the - * `sleep`, `food` and `food-measurement-unit` data types, because the underlying listing - * implementation cannot restrict results by data source. Such requests fail with - * `INVALID_ARGUMENT` when the data source family is set explicitly, and with + * data, and Health Connect. - `users/{user}/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 types 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. Filtering by data source family is not + * supported for the `sleep`, `food` and `food-measurement-unit` data types, because the + * underlying listing implementation cannot restrict results by data source. Such requests + * fail with `INVALID_ARGUMENT` when the data source family is set explicitly, and with * `PERMISSION_DENIED` when the restriction is only implied by the caller's scopes. For * `sleep`, use ReconcileDataPoints instead. */ @@ -4056,13 +4132,16 @@ public List setParent(java.lang.String parent) { private java.lang.String dataSourceFamily; /** Optional. The data source family name to filter by. If empty, data points from all available data - sources will be returned. 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 + sources will be returned. Format: `users/{user}/dataSourceFamilies/{data_source_family}` The + `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, retrieved + via GetIdentity (e.g. `users/me/dataSourceFamilies/...` or + `users/1234567890/dataSourceFamilies/...`). The supported values are: - + `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all available + data sources. - `users/{user}/dataSourceFamilies/google-wearables` - Includes data from Google and + Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - + `users/{user}/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data + from tracker devices, manually logged data, and Health Connect. - + `users/{user}/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 types may only read the data they wrote themselves: their requests are implicitly restricted @@ -4081,23 +4160,26 @@ public java.lang.String getDataSourceFamily() { /** * Optional. The data source family name to filter by. If empty, data points from all * available data sources will be returned. 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 + * `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the + * alias `me` or the authenticated user's numeric Health User ID, retrieved via + * GetIdentity (e.g. `users/me/dataSourceFamilies/...` or + * `users/1234567890/dataSourceFamilies/...`). The supported values are: - + * `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all + * available data sources. - `users/{user}/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` - + * Excludes manually logged data. - `users/{user}/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 types 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. Filtering by data source family is not supported for the - * `sleep`, `food` and `food-measurement-unit` data types, because the underlying listing - * implementation cannot restrict results by data source. Such requests fail with - * `INVALID_ARGUMENT` when the data source family is set explicitly, and with + * data, and Health Connect. - `users/{user}/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 types 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. Filtering by data source family is not + * supported for the `sleep`, `food` and `food-measurement-unit` data types, because the + * underlying listing implementation cannot restrict results by data source. Such requests + * fail with `INVALID_ARGUMENT` when the data source family is set explicitly, and with * `PERMISSION_DENIED` when the restriction is only implied by the caller's scopes. For * `sleep`, use ReconcileDataPoints instead. */ @@ -4322,12 +4404,14 @@ public List set(String parameterName, Object value) { * @param name Identifier. Data point name, only supported for the subset of identifiable data types. For the * majority of the data types, individual data points do not need to be identified and this * field would be empty. Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}` - * Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` - * The `{user}` ID is a system-generated identifier, as described in Identity.health_user_id. - * The `{data_type}` ID corresponds to the kebab-case version of the field names in the - * DataPoint data union field, e.g. `heart-rate` for the `heart_rate` field. The - * `{data_point}` ID can be client-provided or system-generated. If client-provided, it must - * be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens. + * ## Examples: ## `users/me/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` + * `users/1234567890/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The + * `{user}` can be either the alias `me` or the authenticated user's numeric Health User ID, + * which can be retrieved by calling GetIdentity (see Identity.health_user_id). The + * `{data_type}` ID corresponds to the kebab-case version of the field names in the DataPoint + * data union field, e.g. `heart-rate` for the `heart_rate` field. The `{data_point}` ID can + * be client-provided or system-generated. If client-provided, it must be a string of 4-63 + * characters, containing only lowercase letters, numbers, and hyphens. * @param content the {@link com.google.api.services.health.v4beta.model.DataPoint} * @return the request */ @@ -4358,12 +4442,14 @@ public class Patch extends GoogleHealthAPIRequest * - * @param parent 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 + * @param parent Required. Parent data type of the Data Point collection. Format: + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/heart-rate` - + * `users/1234567890/dataTypes/heart-rate` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the * supported data types see the DataPoint data union field. * @since 1.13 */ @@ -4609,16 +4707,21 @@ public Reconcile setUploadProtocol(java.lang.String uploadProtocol) { /** * 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 union field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/heart-rate` - + * `users/1234567890/dataTypes/heart-rate` The `{user}` can be either the alias `me` or + * the authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list + * of the supported data types see the DataPoint data union field. */ @com.google.api.client.util.Key private java.lang.String parent; - /** 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 union field. + /** Required. Parent data type of the Data Point collection. Format: + `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + `users/1234567890/dataTypes/steps` - `users/me/dataTypes/heart-rate` - + `users/1234567890/dataTypes/heart-rate` The `{user}` can be either the alias `me` or the + authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the + supported data types see the DataPoint data union field. */ public java.lang.String getParent() { return parent; @@ -4626,9 +4729,11 @@ public java.lang.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 union field. + * `users/{user}/dataTypes/{data_type}`, e.g.: - `users/me/dataTypes/steps` - + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/heart-rate` - + * `users/1234567890/dataTypes/heart-rate` The `{user}` can be either the alias `me` or + * the authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list + * of the supported data types see the DataPoint data union field. */ public Reconcile setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -4642,37 +4747,44 @@ public Reconcile setParent(java.lang.String parent) { /** * 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}` - * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all - * available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes + * sources will be reconciled. Format: + * `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the + * alias `me` or the authenticated user's numeric Health User ID, retrieved via + * GetIdentity (e.g. `users/me/dataSourceFamilies/...` or + * `users/1234567890/dataSourceFamilies/...`). The supported values are: - + * `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all + * available data sources. - `users/{user}/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` - + * Excludes manually logged data. - `users/{user}/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. + * data, and Health Connect. - `users/{user}/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. */ @com.google.api.client.util.Key private java.lang.String dataSourceFamily; /** 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}` - - `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. + will be reconciled. Format: `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can + be either the alias `me` or the authenticated user's numeric Health User ID, retrieved via + GetIdentity (e.g. `users/me/dataSourceFamilies/...` or `users/1234567890/dataSourceFamilies/...`). + The supported values are: - `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes + data from all available data sources. - `users/{user}/dataSourceFamilies/google-wearables` - + Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). + Excludes manually logged data. - `users/{user}/dataSourceFamilies/google-sources` - Includes first- + party Google data, such as data from tracker devices, manually logged data, and Health Connect. - + `users/{user}/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. */ public java.lang.String getDataSourceFamily() { return dataSourceFamily; @@ -4680,20 +4792,24 @@ public java.lang.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}` - * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all - * available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes + * sources will be reconciled. Format: + * `users/{user}/dataSourceFamilies/{data_source_family}` The `{user}` can be either the + * alias `me` or the authenticated user's numeric Health User ID, retrieved via + * GetIdentity (e.g. `users/me/dataSourceFamilies/...` or + * `users/1234567890/dataSourceFamilies/...`). The supported values are: - + * `users/{user}/dataSourceFamilies/all-sources` - Default value. Includes data from all + * available data sources. - `users/{user}/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` - + * Excludes manually logged data. - `users/{user}/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. + * data, and Health Connect. - `users/{user}/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. */ public Reconcile setDataSourceFamily(java.lang.String dataSourceFamily) { this.dataSourceFamily = dataSourceFamily; @@ -4785,8 +4901,10 @@ public Reconcile set(String parameterName, Object value) { * * @param parent 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 union field. + * `users/1234567890/dataTypes/steps` - `users/me/dataTypes/distance` - + * `users/1234567890/dataTypes/distance` The `{user}` can be either the alias `me` or the + * authenticated user's numeric Health User ID (retrieved via GetIdentity). For a list of the + * supported data types see the RollupDataPoint value union field. * @param content the {@link com.google.api.services.health.v4beta.model.RollUpDataPointsRequest} * @return the request */ @@ -4815,8 +4933,10 @@ public class RollUp extends GoogleHealthAPIRequest This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Health API. For a detailed explanation see: diff --git a/clients/google-api-services-health/v4beta/2.0.0/pom.xml b/clients/google-api-services-health/v4beta/2.0.0/pom.xml index fca75e55e7a..3a222203ec4 100644 --- a/clients/google-api-services-health/v4beta/2.0.0/pom.xml +++ b/clients/google-api-services-health/v4beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-health - v4beta-rev20261002-2.0.0 - Google Health API v4beta-rev20261002-2.0.0 + v4beta-rev20261007-2.0.0 + Google Health API v4beta-rev20261007-2.0.0 jar 2011 diff --git a/clients/google-api-services-health/v4beta/README.md b/clients/google-api-services-health/v4beta/README.md index 7da42699716..6f42e4f391b 100644 --- a/clients/google-api-services-health/v4beta/README.md +++ b/clients/google-api-services-health/v4beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-health - v4beta-rev20261002-2.0.0 + v4beta-rev20261007-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-health:v4beta-rev20261002-2.0.0' + implementation 'com.google.apis:google-api-services-health:v4beta-rev20261007-2.0.0' } ```