Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-health/v4/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-health</artifactId>
<version>v4-rev20260713-2.0.0</version>
<version>v4-rev20260729-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-health:v4-rev20260713-2.0.0'
implementation 'com.google.apis:google-api-services-health:v4-rev20260729-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public class GoogleHealthAPIScopes {
/** Add exercise GPS location data to Google Health, and edit or delete the data it adds.. */
public static final String GOOGLEHEALTH_LOCATION_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.location.writeonly";

/** Add logged symptoms data to Google Health, and edit or delete the data it adds. */
public static final String GOOGLEHEALTH_LOGGED_SYMPTOMS_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly";

/** Add mindfulness data to Google Health, and edit or delete the data it adds. */
public static final String GOOGLEHEALTH_MINDFULNESS_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly";

/** Add nutrition data to Google Health, and edit or delete the data it adds.. */
public static final String GOOGLEHEALTH_NUTRITION_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly";

Expand All @@ -59,6 +65,9 @@ public class GoogleHealthAPIScopes {
/** Add profile data to Google Health, and edit or delete the data it adds.. */
public static final String GOOGLEHEALTH_PROFILE_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.profile.writeonly";

/** Add reproductive health data to Google Health, and edit or delete the data it adds. */
public static final String GOOGLEHEALTH_REPRODUCTIVE_HEALTH_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly";

/** See your Google Health settings. */
public static final String GOOGLEHEALTH_SETTINGS_READONLY = "https://www.googleapis.com/auth/googlehealth.settings.readonly";

Expand Down Expand Up @@ -87,9 +96,12 @@ public static java.util.Set<String> all() {
set.add(GOOGLEHEALTH_IRN_READONLY);
set.add(GOOGLEHEALTH_LOCATION_READONLY);
set.add(GOOGLEHEALTH_LOCATION_WRITEONLY);
set.add(GOOGLEHEALTH_LOGGED_SYMPTOMS_WRITEONLY);
set.add(GOOGLEHEALTH_MINDFULNESS_WRITEONLY);
set.add(GOOGLEHEALTH_NUTRITION_WRITEONLY);
set.add(GOOGLEHEALTH_PROFILE_READONLY);
set.add(GOOGLEHEALTH_PROFILE_WRITEONLY);
set.add(GOOGLEHEALTH_REPRODUCTIVE_HEALTH_WRITEONLY);
set.add(GOOGLEHEALTH_SETTINGS_READONLY);
set.add(GOOGLEHEALTH_SETTINGS_WRITEONLY);
set.add(GOOGLEHEALTH_SLEEP_READONLY);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final class Sleep extends com.google.api.client.json.GenericJson {
private SessionTimeInterval interval;

/**
* Optional. Sleep metadata: processing, main, manually edited, stages status.
* Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and `stages_status`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -126,15 +126,15 @@ public Sleep setInterval(SessionTimeInterval interval) {
}

/**
* Optional. Sleep metadata: processing, main, manually edited, stages status.
* Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and `stages_status`.
* @return value or {@code null} for none
*/
public SleepMetadata getMetadata() {
return metadata;
}

/**
* Optional. Sleep metadata: processing, main, manually edited, stages status.
* Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and `stages_status`.
* @param metadata metadata or {@code null} for none
*/
public Sleep setMetadata(SleepMetadata metadata) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ public final class SleepMetadata extends com.google.api.client.json.GenericJson
@com.google.api.client.util.Key
private java.lang.String externalId;

/**
* Output only. `main_sleep`: the longest sleep session with stages within one day. If no sleep
* session has stages, then the longest sleep is the `main_sleep`. If there are multiple days of
* sleep in the response, there is one `main_sleep` per day.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean mainSleep;

/**
* Output only. Some sleeps autodetected by algorithms can be manually edited by users.
* The value may be {@code null}.
Expand Down Expand Up @@ -83,6 +92,27 @@ public SleepMetadata setExternalId(java.lang.String externalId) {
return this;
}

/**
* Output only. `main_sleep`: the longest sleep session with stages within one day. If no sleep
* session has stages, then the longest sleep is the `main_sleep`. If there are multiple days of
* sleep in the response, there is one `main_sleep` per day.
* @return value or {@code null} for none
*/
public java.lang.Boolean getMainSleep() {
return mainSleep;
}

/**
* Output only. `main_sleep`: the longest sleep session with stages within one day. If no sleep
* session has stages, then the longest sleep is the `main_sleep`. If there are multiple days of
* sleep in the response, there is one `main_sleep` per day.
* @param mainSleep mainSleep or {@code null} for none
*/
public SleepMetadata setMainSleep(java.lang.Boolean mainSleep) {
this.mainSleep = mainSleep;
return this;
}

/**
* Output only. Some sleeps autodetected by algorithms can be manually edited by users.
* @return value or {@code null} for none
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-health/v4/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-health</artifactId>
<version>v4-rev20260713-2.0.0</version>
<name>Google Health API v4-rev20260713-2.0.0</name>
<version>v4-rev20260729-2.0.0</version>
<name>Google Health API v4-rev20260729-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-health/v4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-health</artifactId>
<version>v4-rev20260713-2.0.0</version>
<version>v4-rev20260729-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-health:v4-rev20260713-2.0.0'
implementation 'com.google.apis:google-api-services-health:v4-rev20260729-2.0.0'
}
```

Expand Down
Loading