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-rev20260515-2.0.0</version>
<version>v4-rev20260525-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-rev20260515-2.0.0'
implementation 'com.google.apis:google-api-services-health:v4-rev20260525-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public class GoogleHealthAPIScopes {
/** See your Google Health health metrics and measurement data. */
public static final String GOOGLEHEALTH_HEALTH_METRICS_AND_MEASUREMENTS_READONLY = "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly";

/** See your Google Health Irregular Rhythm Notifications data. */
public static final String GOOGLEHEALTH_IRN_READONLY = "https://www.googleapis.com/auth/googlehealth.irn.readonly";

/** See exercise GPS location data in Google Health. */
public static final String GOOGLEHEALTH_LOCATION_READONLY = "https://www.googleapis.com/auth/googlehealth.location.readonly";

Expand All @@ -54,6 +57,7 @@ public static java.util.Set<String> all() {
set.add(CLOUD_PLATFORM);
set.add(GOOGLEHEALTH_ACTIVITY_AND_FITNESS_READONLY);
set.add(GOOGLEHEALTH_HEALTH_METRICS_AND_MEASUREMENTS_READONLY);
set.add(GOOGLEHEALTH_IRN_READONLY);
set.add(GOOGLEHEALTH_LOCATION_READONLY);
set.add(GOOGLEHEALTH_PROFILE_READONLY);
set.add(GOOGLEHEALTH_SETTINGS_READONLY);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.health.v4.model;

/**
* Energy burned as part of an activity, excluding the basal energy burn.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ActiveEnergyBurned extends com.google.api.client.json.GenericJson {

/**
* Required. Observed interval
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ObservationTimeInterval interval;

/**
* Required. Energy burned during an activity, measured in kilocalories.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Double kcal;

/**
* Required. Observed interval
* @return value or {@code null} for none
*/
public ObservationTimeInterval getInterval() {
return interval;
}

/**
* Required. Observed interval
* @param interval interval or {@code null} for none
*/
public ActiveEnergyBurned setInterval(ObservationTimeInterval interval) {
this.interval = interval;
return this;
}

/**
* Required. Energy burned during an activity, measured in kilocalories.
* @return value or {@code null} for none
*/
public java.lang.Double getKcal() {
return kcal;
}

/**
* Required. Energy burned during an activity, measured in kilocalories.
* @param kcal kcal or {@code null} for none
*/
public ActiveEnergyBurned setKcal(java.lang.Double kcal) {
this.kcal = kcal;
return this;
}

@Override
public ActiveEnergyBurned set(String fieldName, Object value) {
return (ActiveEnergyBurned) super.set(fieldName, value);
}

@Override
public ActiveEnergyBurned clone() {
return (ActiveEnergyBurned) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.health.v4.model;

/**
* Represents the result of the rollup of active energy burned.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ActiveEnergyBurnedRollupValue extends com.google.api.client.json.GenericJson {

/**
* Output only. Sum of the active energy burned in kilocalories.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Double kcalSum;

/**
* Output only. Sum of the active energy burned in kilocalories.
* @return value or {@code null} for none
*/
public java.lang.Double getKcalSum() {
return kcalSum;
}

/**
* Output only. Sum of the active energy burned in kilocalories.
* @param kcalSum kcalSum or {@code null} for none
*/
public ActiveEnergyBurnedRollupValue setKcalSum(java.lang.Double kcalSum) {
this.kcalSum = kcalSum;
return this;
}

@Override
public ActiveEnergyBurnedRollupValue set(String fieldName, Object value) {
return (ActiveEnergyBurnedRollupValue) super.set(fieldName, value);
}

@Override
public ActiveEnergyBurnedRollupValue clone() {
return (ActiveEnergyBurnedRollupValue) super.clone();
}

}
Loading