From 8f8b51bd46a42080260746c97e1182f6d735d204 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Wed, 2 Dec 2026 17:18:34 -0800
Subject: [PATCH] chore: regenerate travelimpactmodel client
---
.../v1/2.0.0/README.md | 4 +-
.../v1/TravelImpactModel.java | 239 +++++++++++++++---
...eScope3DetailedFlightEmissionsRequest.java | 106 ++++++++
...Scope3DetailedFlightEmissionsResponse.java | 94 +++++++
.../ComputeScope3FlightEmissionsRequest.java | 18 +-
.../v1/model/FlightWithDetailedEmissions.java | 27 ++
.../v1/model/FlightWithEmissions.java | 27 ++
.../v1/model/Scope3EmissionsMetadata.java | 97 +++++++
.../v1/model/Scope3FlightSegment.java | 18 +-
.../Scope3FlightWithDetailedEmissions.java | 94 +++++++
.../travelimpactmodel/v1/model/Status.java | 130 ++++++++++
.../v1/model/TypicalFlightEmissions.java | 33 +++
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
14 files changed, 843 insertions(+), 52 deletions(-)
create mode 100644 clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeScope3DetailedFlightEmissionsRequest.java
create mode 100644 clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeScope3DetailedFlightEmissionsResponse.java
create mode 100644 clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3EmissionsMetadata.java
create mode 100644 clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3FlightWithDetailedEmissions.java
create mode 100644 clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Status.java
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/README.md b/clients/google-api-services-travelimpactmodel/v1/2.0.0/README.md
index 5f2fab111a3..c9adb991415 100644
--- a/clients/google-api-services-travelimpactmodel/v1/2.0.0/README.md
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
com.google.apis
google-api-services-travelimpactmodel
- v1-rev20261021-2.9.2
+ v1-rev20261201-2.9.2
@@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
- implementation 'com.google.apis:google-api-services-travelimpactmodel:v1-rev20261021-2.9.2'
+ implementation 'com.google.apis:google-api-services-travelimpactmodel:v1-rev20261201-2.9.2'
}
```
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/TravelImpactModel.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/TravelImpactModel.java
index 6350f9dba96..e76a83c75b7 100644
--- a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/TravelImpactModel.java
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/TravelImpactModel.java
@@ -391,23 +391,186 @@ public ComputeFlightEmissions set(String parameterName, Object value) {
return (ComputeFlightEmissions) super.set(parameterName, value);
}
}
+ /**
+ * Retrieves detailed GHG emissions estimates for a set of flight segments for Scope 3 reporting.
+ * The response will contain all entries that match the input Scope3FlightSegment flight segments,
+ * in the same order provided. For each flight segment, the estimates will be computed using the
+ * following cascading logic (using the first one that is available): 1. TIM-based emissions given
+ * origin, destination, carrier, flightNumber, departureDate, and cabinClass (Tier 1). 2. Typical
+ * flight emissions given origin, destination, year in departureDate, and cabinClass (Tier 2). 3.
+ * Distance-based emissions calculated using distanceKm, year in departureDate, and cabinClass (Tier
+ * 3). Note that distanceKm must be explicitly provided to allow fallback to Tier 3 (it is not
+ * computed from origin and destination). Detailed Flight Emissions are transparent per-passenger
+ * greenhouse gas emission estimates supplemented by comprehensive metadata detailing the
+ * calculation methodology, emissions breakdown, and data provenance. They are available only for
+ * Tier 1 emissions (TIM-based). Details on how emission estimates are computed are available on
+ * [GitHub](https://github.com/google/travel-impact-model). If there is a future flight requested in
+ * this calendar year, we do not support Tier 1 emissions and will fallback to Tier 2 or 3
+ * emissions. If the requested future flight is not in this calendar year, we will return an empty
+ * response. We recommend that for future flights, computeDetailedFlightEmissions API is used
+ * instead. If there are no estimates available for a certain flight with any of the three methods,
+ * the response will return a Scope3FlightWithDetailedEmissions object with empty emission fields.
+ * The request will still be considered successful. Generally, missing emissions estimates occur
+ * when the flight is unknown to the server (e.g. no specific flight exists, or typical flight
+ * emissions are not available for the requested origin/destination pair). The request will fail
+ * with an `INVALID_ARGUMENT` error with a message describing the issue if: * The request contains
+ * more than 100 flight segments. * The input flight segment is missing one or more identifiers. For
+ * example, missing origin/destination without a valid distance for TIM_EMISSIONS or
+ * TYPICAL_FLIGHT_EMISSIONS type matching, or missing distance for a DISTANCE_BASED_EMISSIONS type
+ * matching (if you want to fallback to distance-based emissions or want a distance-based emissions
+ * estimate, you need to specify a distance). * The flight date is before 2019 (Scope 3 data is only
+ * available for 2019 and after). * The flight distance is 0 or lower. * Missing cabin class.
+ * Because the request is processed with fallback logic, it is possible that misconfigured requests
+ * return valid emissions estimates using fallback methods. Consequently, one should check the
+ * source of the returned emissions (source) to confirm the results are as expected.
+ *
+ * Create a request for the method "flights.computeScope3DetailedFlightEmissions".
+ *
+ * This request holds the parameters needed by the travelimpactmodel server. After setting any
+ * optional parameters, call the {@link ComputeScope3DetailedFlightEmissions#execute()} method to
+ * invoke the remote operation.
+ *
+ * @param content the {@link com.google.api.services.travelimpactmodel.v1.model.ComputeScope3DetailedFlightEmissionsRequest}
+ * @return the request
+ */
+ public ComputeScope3DetailedFlightEmissions computeScope3DetailedFlightEmissions(com.google.api.services.travelimpactmodel.v1.model.ComputeScope3DetailedFlightEmissionsRequest content) throws java.io.IOException {
+ ComputeScope3DetailedFlightEmissions result = new ComputeScope3DetailedFlightEmissions(content);
+ initialize(result);
+ return result;
+ }
+
+ public class ComputeScope3DetailedFlightEmissions extends TravelImpactModelRequest {
+
+ private static final String REST_PATH = "v1/flights:computeScope3DetailedFlightEmissions";
+
+ /**
+ * Retrieves detailed GHG emissions estimates for a set of flight segments for Scope 3 reporting.
+ * The response will contain all entries that match the input Scope3FlightSegment flight segments,
+ * in the same order provided. For each flight segment, the estimates will be computed using the
+ * following cascading logic (using the first one that is available): 1. TIM-based emissions given
+ * origin, destination, carrier, flightNumber, departureDate, and cabinClass (Tier 1). 2. Typical
+ * flight emissions given origin, destination, year in departureDate, and cabinClass (Tier 2). 3.
+ * Distance-based emissions calculated using distanceKm, year in departureDate, and cabinClass
+ * (Tier 3). Note that distanceKm must be explicitly provided to allow fallback to Tier 3 (it is
+ * not computed from origin and destination). Detailed Flight Emissions are transparent per-
+ * passenger greenhouse gas emission estimates supplemented by comprehensive metadata detailing
+ * the calculation methodology, emissions breakdown, and data provenance. They are available only
+ * for Tier 1 emissions (TIM-based). Details on how emission estimates are computed are available
+ * on [GitHub](https://github.com/google/travel-impact-model). If there is a future flight
+ * requested in this calendar year, we do not support Tier 1 emissions and will fallback to Tier 2
+ * or 3 emissions. If the requested future flight is not in this calendar year, we will return an
+ * empty response. We recommend that for future flights, computeDetailedFlightEmissions API is
+ * used instead. If there are no estimates available for a certain flight with any of the three
+ * methods, the response will return a Scope3FlightWithDetailedEmissions object with empty
+ * emission fields. The request will still be considered successful. Generally, missing emissions
+ * estimates occur when the flight is unknown to the server (e.g. no specific flight exists, or
+ * typical flight emissions are not available for the requested origin/destination pair). The
+ * request will fail with an `INVALID_ARGUMENT` error with a message describing the issue if: *
+ * The request contains more than 100 flight segments. * The input flight segment is missing one
+ * or more identifiers. For example, missing origin/destination without a valid distance for
+ * TIM_EMISSIONS or TYPICAL_FLIGHT_EMISSIONS type matching, or missing distance for a
+ * DISTANCE_BASED_EMISSIONS type matching (if you want to fallback to distance-based emissions or
+ * want a distance-based emissions estimate, you need to specify a distance). * The flight date is
+ * before 2019 (Scope 3 data is only available for 2019 and after). * The flight distance is 0 or
+ * lower. * Missing cabin class. Because the request is processed with fallback logic, it is
+ * possible that misconfigured requests return valid emissions estimates using fallback methods.
+ * Consequently, one should check the source of the returned emissions (source) to confirm the
+ * results are as expected.
+ *
+ * Create a request for the method "flights.computeScope3DetailedFlightEmissions".
+ *
+ * This request holds the parameters needed by the the travelimpactmodel server. After setting
+ * any optional parameters, call the {@link ComputeScope3DetailedFlightEmissions#execute()} method
+ * to invoke the remote operation. {@link ComputeScope3DetailedFlightEmissions#initialize(com.
+ * google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to
+ * initialize this instance immediately after invoking the constructor.
+ *
+ * @param content the {@link com.google.api.services.travelimpactmodel.v1.model.ComputeScope3DetailedFlightEmissionsRequest}
+ * @since 1.13
+ */
+ protected ComputeScope3DetailedFlightEmissions(com.google.api.services.travelimpactmodel.v1.model.ComputeScope3DetailedFlightEmissionsRequest content) {
+ super(TravelImpactModel.this, "POST", REST_PATH, content, com.google.api.services.travelimpactmodel.v1.model.ComputeScope3DetailedFlightEmissionsResponse.class);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions set$Xgafv(java.lang.String $Xgafv) {
+ return (ComputeScope3DetailedFlightEmissions) super.set$Xgafv($Xgafv);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions setAccessToken(java.lang.String accessToken) {
+ return (ComputeScope3DetailedFlightEmissions) super.setAccessToken(accessToken);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions setAlt(java.lang.String alt) {
+ return (ComputeScope3DetailedFlightEmissions) super.setAlt(alt);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions setCallback(java.lang.String callback) {
+ return (ComputeScope3DetailedFlightEmissions) super.setCallback(callback);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions setFields(java.lang.String fields) {
+ return (ComputeScope3DetailedFlightEmissions) super.setFields(fields);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions setKey(java.lang.String key) {
+ return (ComputeScope3DetailedFlightEmissions) super.setKey(key);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions setOauthToken(java.lang.String oauthToken) {
+ return (ComputeScope3DetailedFlightEmissions) super.setOauthToken(oauthToken);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions setPrettyPrint(java.lang.Boolean prettyPrint) {
+ return (ComputeScope3DetailedFlightEmissions) super.setPrettyPrint(prettyPrint);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions setQuotaUser(java.lang.String quotaUser) {
+ return (ComputeScope3DetailedFlightEmissions) super.setQuotaUser(quotaUser);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions setUploadType(java.lang.String uploadType) {
+ return (ComputeScope3DetailedFlightEmissions) super.setUploadType(uploadType);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions setUploadProtocol(java.lang.String uploadProtocol) {
+ return (ComputeScope3DetailedFlightEmissions) super.setUploadProtocol(uploadProtocol);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissions set(String parameterName, Object value) {
+ return (ComputeScope3DetailedFlightEmissions) super.set(parameterName, value);
+ }
+ }
/**
* Retrieves GHG emissions estimates for a set of flight segments for Scope 3 reporting. The
* response will contain all entries that match the input Scope3FlightSegment flight segments, in
* the same order provided. The estimates will be computed using the following cascading logic
* (using the first one that is available): 1. TIM-based emissions given origin, destination,
- * carrier, flightNumber, departureDate, and cabinClass. 2. Typical flight emissions given origin,
- * destination, year in departureDate, and cabinClass. 3. Distance-based emissions calculated using
- * distanceKm, year in departureDate, and cabinClass. If there is a future flight requested in this
- * calendar year, we do not support Tier 1 emissions and will fallback to Tier 2 or 3 emissions. If
- * the requested future flight is in not in this calendar year, we will return an empty response. We
- * recommend that for future flights, computeFlightEmissions API is used instead. If there are no
- * estimates available for a certain flight with any of the three methods, the response will return
- * a Scope3FlightEmissions object with empty emission fields. The request will still be considered
- * successful. Generally, missing emissions estimates occur when the flight is unknown to the server
- * (e.g. no specific flight exists, or typical flight emissions are not available for the requested
- * pair). The request will fail with an `INVALID_ARGUMENT` error if: * The request contains more
- * than 1,000 flight legs. * The input flight leg is missing one or more identifiers. For example,
+ * carrier, flightNumber, departureDate, and cabinClass (Tier 1). 2. Typical flight emissions given
+ * origin, destination, year in departureDate, and cabinClass (Tier 2). 3. Distance-based emissions
+ * calculated using distanceKm, year in departureDate, and cabinClass (Tier 3). Note that distanceKm
+ * must be explicitly provided to allow fallback to Tier 3 (it is not computed from origin and
+ * destination). If there is a future flight requested in this calendar year, we do not support Tier
+ * 1 emissions and will fallback to Tier 2 or 3 emissions. If the requested future flight is in not
+ * in this calendar year, we will return an empty response. We recommend that for future flights,
+ * computeFlightEmissions API is used instead. If there are no estimates available for a certain
+ * flight with any of the three methods, the response will return a Scope3FlightEmissions object
+ * with empty emission fields. The request will still be considered successful. Generally, missing
+ * emissions estimates occur when the flight is unknown to the server (e.g. no specific flight
+ * exists, or typical flight emissions are not available for the requested origin/destination pair).
+ * The request will fail with an `INVALID_ARGUMENT` error if: * The request contains more than 1,000
+ * flight segments. * The input flight segment is missing one or more identifiers. For example,
* missing origin/destination without a valid distance for TIM_EMISSIONS or TYPICAL_FLIGHT_EMISSIONS
* type matching, or missing distance for a DISTANCE_BASED_EMISSIONS type matching (if you want to
* fallback to distance-based emissions or want a distance-based emissions estimate, you need to
@@ -445,31 +608,33 @@ public class ComputeScope3FlightEmissions extends TravelImpactModelRequest 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 Travel Impact Model API. For a detailed explanation
+ * see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ *
+ *
+ * @author Google, Inc.
+ */
+@SuppressWarnings("javadoc")
+public final class ComputeScope3DetailedFlightEmissionsRequest extends com.google.api.client.json.GenericJson {
+
+ /**
+ * Required. Flights to return detailed emission estimates for.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.util.List flights;
+
+ /**
+ * Optional. The model version under which emission estimates for all flights in this request were
+ * computed. If not specified, the latest supported Scope 3 model version is used. Only the major
+ * version is used to match the Scope 3 model version (e.g. `{"major": 2}`); minor, patch, and
+ * dated fields are ignored. See [TIM versioning](https://github.com/google/travel-impact-
+ * model/blob/main/projects/scope3_cat6_flight_emissions.md#tim-versioning) for available Scope 3
+ * model versions.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private ModelVersion modelVersion;
+
+ /**
+ * Required. Flights to return detailed emission estimates for.
+ * @return value or {@code null} for none
+ */
+ public java.util.List getFlights() {
+ return flights;
+ }
+
+ /**
+ * Required. Flights to return detailed emission estimates for.
+ * @param flights flights or {@code null} for none
+ */
+ public ComputeScope3DetailedFlightEmissionsRequest setFlights(java.util.List flights) {
+ this.flights = flights;
+ return this;
+ }
+
+ /**
+ * Optional. The model version under which emission estimates for all flights in this request were
+ * computed. If not specified, the latest supported Scope 3 model version is used. Only the major
+ * version is used to match the Scope 3 model version (e.g. `{"major": 2}`); minor, patch, and
+ * dated fields are ignored. See [TIM versioning](https://github.com/google/travel-impact-
+ * model/blob/main/projects/scope3_cat6_flight_emissions.md#tim-versioning) for available Scope 3
+ * model versions.
+ * @return value or {@code null} for none
+ */
+ public ModelVersion getModelVersion() {
+ return modelVersion;
+ }
+
+ /**
+ * Optional. The model version under which emission estimates for all flights in this request were
+ * computed. If not specified, the latest supported Scope 3 model version is used. Only the major
+ * version is used to match the Scope 3 model version (e.g. `{"major": 2}`); minor, patch, and
+ * dated fields are ignored. See [TIM versioning](https://github.com/google/travel-impact-
+ * model/blob/main/projects/scope3_cat6_flight_emissions.md#tim-versioning) for available Scope 3
+ * model versions.
+ * @param modelVersion modelVersion or {@code null} for none
+ */
+ public ComputeScope3DetailedFlightEmissionsRequest setModelVersion(ModelVersion modelVersion) {
+ this.modelVersion = modelVersion;
+ return this;
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissionsRequest set(String fieldName, Object value) {
+ return (ComputeScope3DetailedFlightEmissionsRequest) super.set(fieldName, value);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissionsRequest clone() {
+ return (ComputeScope3DetailedFlightEmissionsRequest) super.clone();
+ }
+
+}
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeScope3DetailedFlightEmissionsResponse.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeScope3DetailedFlightEmissionsResponse.java
new file mode 100644
index 00000000000..036723e9805
--- /dev/null
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeScope3DetailedFlightEmissionsResponse.java
@@ -0,0 +1,94 @@
+/*
+ * 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.travelimpactmodel.v1.model;
+
+/**
+ * Output definition for the ComputeScope3DetailedFlightEmissions response.
+ *
+ * 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 Travel Impact Model API. For a detailed explanation
+ * see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ *
+ *
+ * @author Google, Inc.
+ */
+@SuppressWarnings("javadoc")
+public final class ComputeScope3DetailedFlightEmissionsResponse extends com.google.api.client.json.GenericJson {
+
+ /**
+ * List of flight segments with detailed emission estimates.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.util.List flightsDetailedEmissions;
+
+ /**
+ * The model version under which emission estimates for all flights in this response were
+ * computed.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private ModelVersion modelVersion;
+
+ /**
+ * List of flight segments with detailed emission estimates.
+ * @return value or {@code null} for none
+ */
+ public java.util.List getFlightsDetailedEmissions() {
+ return flightsDetailedEmissions;
+ }
+
+ /**
+ * List of flight segments with detailed emission estimates.
+ * @param flightsDetailedEmissions flightsDetailedEmissions or {@code null} for none
+ */
+ public ComputeScope3DetailedFlightEmissionsResponse setFlightsDetailedEmissions(java.util.List flightsDetailedEmissions) {
+ this.flightsDetailedEmissions = flightsDetailedEmissions;
+ return this;
+ }
+
+ /**
+ * The model version under which emission estimates for all flights in this response were
+ * computed.
+ * @return value or {@code null} for none
+ */
+ public ModelVersion getModelVersion() {
+ return modelVersion;
+ }
+
+ /**
+ * The model version under which emission estimates for all flights in this response were
+ * computed.
+ * @param modelVersion modelVersion or {@code null} for none
+ */
+ public ComputeScope3DetailedFlightEmissionsResponse setModelVersion(ModelVersion modelVersion) {
+ this.modelVersion = modelVersion;
+ return this;
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissionsResponse set(String fieldName, Object value) {
+ return (ComputeScope3DetailedFlightEmissionsResponse) super.set(fieldName, value);
+ }
+
+ @Override
+ public ComputeScope3DetailedFlightEmissionsResponse clone() {
+ return (ComputeScope3DetailedFlightEmissionsResponse) super.clone();
+ }
+
+}
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeScope3FlightEmissionsRequest.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeScope3FlightEmissionsRequest.java
index 2c9d40f1f89..a61ec71fe4a 100644
--- a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeScope3FlightEmissionsRequest.java
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeScope3FlightEmissionsRequest.java
@@ -39,7 +39,11 @@ public final class ComputeScope3FlightEmissionsRequest extends com.google.api.cl
/**
* Optional. The model version under which emission estimates for all flights in this request were
- * computed.
+ * computed. If not specified, the latest supported Scope 3 model version is used. Only the major
+ * version is used to match the Scope 3 model version (e.g. `{"major": 2}`); minor, patch, and
+ * dated fields are ignored. See [TIM versioning](https://github.com/google/travel-impact-
+ * model/blob/main/projects/scope3_cat6_flight_emissions.md#tim-versioning) for available Scope 3
+ * model versions.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
@@ -64,7 +68,11 @@ public ComputeScope3FlightEmissionsRequest setFlights(java.util.List errors;
+
/**
* Output only. Matches the flight identifiers in the request. Note: all IATA codes are
* capitalized.
@@ -69,6 +77,25 @@ public FlightWithDetailedEmissions setEmissionsMetadata(EmissionsMetadata emissi
return this;
}
+ /**
+ * Output only. Errors detailing why detailed emission estimates could not be returned for the
+ * flight. Empty when emission estimates are present.
+ * @return value or {@code null} for none
+ */
+ public java.util.List getErrors() {
+ return errors;
+ }
+
+ /**
+ * Output only. Errors detailing why detailed emission estimates could not be returned for the
+ * flight. Empty when emission estimates are present.
+ * @param errors errors or {@code null} for none
+ */
+ public FlightWithDetailedEmissions setErrors(java.util.List errors) {
+ this.errors = errors;
+ return this;
+ }
+
/**
* Output only. Matches the flight identifiers in the request. Note: all IATA codes are
* capitalized.
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/FlightWithEmissions.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/FlightWithEmissions.java
index 511759f0a2d..d2e5ec29e3e 100644
--- a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/FlightWithEmissions.java
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/FlightWithEmissions.java
@@ -55,6 +55,14 @@ public final class FlightWithEmissions extends com.google.api.client.json.Generi
@com.google.api.client.util.Key
private EmissionsGramsPerPax emissionsGramsPerPax;
+ /**
+ * Output only. Errors detailing why emission estimates could not be returned for the flight.
+ * Empty when emission estimates are present.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.util.List errors;
+
/**
* Identifier. Matches the flight identifiers in the request. Note: all IATA codes are
* capitalized.
@@ -129,6 +137,25 @@ public FlightWithEmissions setEmissionsGramsPerPax(EmissionsGramsPerPax emission
return this;
}
+ /**
+ * Output only. Errors detailing why emission estimates could not be returned for the flight.
+ * Empty when emission estimates are present.
+ * @return value or {@code null} for none
+ */
+ public java.util.List getErrors() {
+ return errors;
+ }
+
+ /**
+ * Output only. Errors detailing why emission estimates could not be returned for the flight.
+ * Empty when emission estimates are present.
+ * @param errors errors or {@code null} for none
+ */
+ public FlightWithEmissions setErrors(java.util.List errors) {
+ this.errors = errors;
+ return this;
+ }
+
/**
* Identifier. Matches the flight identifiers in the request. Note: all IATA codes are
* capitalized.
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3EmissionsMetadata.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3EmissionsMetadata.java
new file mode 100644
index 00000000000..4a7bca8e418
--- /dev/null
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3EmissionsMetadata.java
@@ -0,0 +1,97 @@
+/*
+ * 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.travelimpactmodel.v1.model;
+
+/**
+ * Additional metadata about the Scope 3 flight emissions calculation.
+ *
+ * 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 Travel Impact Model API. For a detailed explanation
+ * see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ *
+ *
+ * @author Google, Inc.
+ */
+@SuppressWarnings("javadoc")
+public final class Scope3EmissionsMetadata extends com.google.api.client.json.GenericJson {
+
+ /**
+ * Details about the provenance of data used to calculate the emissions data, including the
+ * contributing factors with their data sources.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private EmissionsProvenance emissionsProvenance;
+
+ /**
+ * Output only. Link to the `travelimpactmodel.org` Emissions Calculator website. Example:
+ * https://travelimpactmodel.org/lookup/scope3-flight?itinerary=ZRH-BOS-LX-52-20241225-1.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.String timWebsiteEmissionsCalculatorUrl;
+
+ /**
+ * Details about the provenance of data used to calculate the emissions data, including the
+ * contributing factors with their data sources.
+ * @return value or {@code null} for none
+ */
+ public EmissionsProvenance getEmissionsProvenance() {
+ return emissionsProvenance;
+ }
+
+ /**
+ * Details about the provenance of data used to calculate the emissions data, including the
+ * contributing factors with their data sources.
+ * @param emissionsProvenance emissionsProvenance or {@code null} for none
+ */
+ public Scope3EmissionsMetadata setEmissionsProvenance(EmissionsProvenance emissionsProvenance) {
+ this.emissionsProvenance = emissionsProvenance;
+ return this;
+ }
+
+ /**
+ * Output only. Link to the `travelimpactmodel.org` Emissions Calculator website. Example:
+ * https://travelimpactmodel.org/lookup/scope3-flight?itinerary=ZRH-BOS-LX-52-20241225-1.
+ * @return value or {@code null} for none
+ */
+ public java.lang.String getTimWebsiteEmissionsCalculatorUrl() {
+ return timWebsiteEmissionsCalculatorUrl;
+ }
+
+ /**
+ * Output only. Link to the `travelimpactmodel.org` Emissions Calculator website. Example:
+ * https://travelimpactmodel.org/lookup/scope3-flight?itinerary=ZRH-BOS-LX-52-20241225-1.
+ * @param timWebsiteEmissionsCalculatorUrl timWebsiteEmissionsCalculatorUrl or {@code null} for none
+ */
+ public Scope3EmissionsMetadata setTimWebsiteEmissionsCalculatorUrl(java.lang.String timWebsiteEmissionsCalculatorUrl) {
+ this.timWebsiteEmissionsCalculatorUrl = timWebsiteEmissionsCalculatorUrl;
+ return this;
+ }
+
+ @Override
+ public Scope3EmissionsMetadata set(String fieldName, Object value) {
+ return (Scope3EmissionsMetadata) super.set(fieldName, value);
+ }
+
+ @Override
+ public Scope3EmissionsMetadata clone() {
+ return (Scope3EmissionsMetadata) super.clone();
+ }
+
+}
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3FlightSegment.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3FlightSegment.java
index 2f91c7b0cd5..0e0dc490fb1 100644
--- a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3FlightSegment.java
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3FlightSegment.java
@@ -72,9 +72,11 @@ public final class Scope3FlightSegment extends com.google.api.client.json.Generi
private java.lang.String destination;
/**
- * Optional. Distance in kilometers, e.g. `2423`, from [`1`, `1e12`) km. This is used to match a
+ * Optional. Distance in kilometers, e.g. `2423`, from `1`, `1e12`) km. This is used to match a
* flight to distance-based emissions when origin and destination are not provided or there are no
- * matching typical flights.
+ * matching TIM-based or typical flight emissions. Note that distance is not computed from [origin
+ * and destination, so this field must be explicitly provided if you want to request or fall back
+ * to distance-based emissions.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
@@ -199,9 +201,11 @@ public Scope3FlightSegment setDestination(java.lang.String destination) {
}
/**
- * Optional. Distance in kilometers, e.g. `2423`, from [`1`, `1e12`) km. This is used to match a
+ * Optional. Distance in kilometers, e.g. `2423`, from `1`, `1e12`) km. This is used to match a
* flight to distance-based emissions when origin and destination are not provided or there are no
- * matching typical flights.
+ * matching TIM-based or typical flight emissions. Note that distance is not computed from [origin
+ * and destination, so this field must be explicitly provided if you want to request or fall back
+ * to distance-based emissions.
* @return value or {@code null} for none
*/
public java.lang.Long getDistanceKm() {
@@ -209,9 +213,11 @@ public java.lang.Long getDistanceKm() {
}
/**
- * Optional. Distance in kilometers, e.g. `2423`, from [`1`, `1e12`) km. This is used to match a
+ * Optional. Distance in kilometers, e.g. `2423`, from `1`, `1e12`) km. This is used to match a
* flight to distance-based emissions when origin and destination are not provided or there are no
- * matching typical flights.
+ * matching TIM-based or typical flight emissions. Note that distance is not computed from [origin
+ * and destination, so this field must be explicitly provided if you want to request or fall back
+ * to distance-based emissions.
* @param distanceKm distanceKm or {@code null} for none
*/
public Scope3FlightSegment setDistanceKm(java.lang.Long distanceKm) {
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3FlightWithDetailedEmissions.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3FlightWithDetailedEmissions.java
new file mode 100644
index 00000000000..cb7b8ce5a9f
--- /dev/null
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Scope3FlightWithDetailedEmissions.java
@@ -0,0 +1,94 @@
+/*
+ * 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.travelimpactmodel.v1.model;
+
+/**
+ * Scope 3 flight segment with detailed emission estimates.
+ *
+ * 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 Travel Impact Model API. For a detailed explanation
+ * see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ *
+ *
+ * @author Google, Inc.
+ */
+@SuppressWarnings("javadoc")
+public final class Scope3FlightWithDetailedEmissions extends com.google.api.client.json.GenericJson {
+
+ /**
+ * Additional metadata about the flight emissions calculation, including data provenance and
+ * external references.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private Scope3EmissionsMetadata emissionsMetadata;
+
+ /**
+ * All the flight emissions data.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private Scope3FlightEmissions flightEmissions;
+
+ /**
+ * Additional metadata about the flight emissions calculation, including data provenance and
+ * external references.
+ * @return value or {@code null} for none
+ */
+ public Scope3EmissionsMetadata getEmissionsMetadata() {
+ return emissionsMetadata;
+ }
+
+ /**
+ * Additional metadata about the flight emissions calculation, including data provenance and
+ * external references.
+ * @param emissionsMetadata emissionsMetadata or {@code null} for none
+ */
+ public Scope3FlightWithDetailedEmissions setEmissionsMetadata(Scope3EmissionsMetadata emissionsMetadata) {
+ this.emissionsMetadata = emissionsMetadata;
+ return this;
+ }
+
+ /**
+ * All the flight emissions data.
+ * @return value or {@code null} for none
+ */
+ public Scope3FlightEmissions getFlightEmissions() {
+ return flightEmissions;
+ }
+
+ /**
+ * All the flight emissions data.
+ * @param flightEmissions flightEmissions or {@code null} for none
+ */
+ public Scope3FlightWithDetailedEmissions setFlightEmissions(Scope3FlightEmissions flightEmissions) {
+ this.flightEmissions = flightEmissions;
+ return this;
+ }
+
+ @Override
+ public Scope3FlightWithDetailedEmissions set(String fieldName, Object value) {
+ return (Scope3FlightWithDetailedEmissions) super.set(fieldName, value);
+ }
+
+ @Override
+ public Scope3FlightWithDetailedEmissions clone() {
+ return (Scope3FlightWithDetailedEmissions) super.clone();
+ }
+
+}
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Status.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Status.java
new file mode 100644
index 00000000000..a67c2b8f33f
--- /dev/null
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/Status.java
@@ -0,0 +1,130 @@
+/*
+ * 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.travelimpactmodel.v1.model;
+
+/**
+ * Represents an error encountered while processing an individual flight or market in a request.
+ * When emission estimates cannot be computed for a requested item, the `errors` field contains one
+ * or more `Status` objects describing why: * `INVALID_ARGUMENT` (`code` `3`): Reports input errors
+ * on the requested item, such as missing or invalid airport codes, operating carrier codes, flight
+ * numbers, or departure dates. Multiple `Status` entries may be returned if multiple input fields
+ * are invalid. * `NOT_FOUND` (`code` `5`): Indicates that no emission estimates matched the
+ * requested flight or market inputs.
+ *
+ * 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 Travel Impact Model API. For a detailed explanation
+ * see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ *
+ *
+ * @author Google, Inc.
+ */
+@SuppressWarnings("javadoc")
+public final class Status extends com.google.api.client.json.GenericJson {
+
+ /**
+ * The numeric status code corresponding to a `google.rpc.Code` enum value: * `3`
+ * (`INVALID_ARGUMENT`): Input error (for example, a missing or invalid airport or carrier code).
+ * * `5` (`NOT_FOUND`): No emission estimates matched the requested inputs.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.Integer code;
+
+ /**
+ * Additional structured error details, when available.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.util.List> details;
+
+ /**
+ * A human-readable error message in English describing why emission estimates could not be
+ * returned for the requested item.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.String message;
+
+ /**
+ * The numeric status code corresponding to a `google.rpc.Code` enum value: * `3`
+ * (`INVALID_ARGUMENT`): Input error (for example, a missing or invalid airport or carrier code).
+ * * `5` (`NOT_FOUND`): No emission estimates matched the requested inputs.
+ * @return value or {@code null} for none
+ */
+ public java.lang.Integer getCode() {
+ return code;
+ }
+
+ /**
+ * The numeric status code corresponding to a `google.rpc.Code` enum value: * `3`
+ * (`INVALID_ARGUMENT`): Input error (for example, a missing or invalid airport or carrier code).
+ * * `5` (`NOT_FOUND`): No emission estimates matched the requested inputs.
+ * @param code code or {@code null} for none
+ */
+ public Status setCode(java.lang.Integer code) {
+ this.code = code;
+ return this;
+ }
+
+ /**
+ * Additional structured error details, when available.
+ * @return value or {@code null} for none
+ */
+ public java.util.List> getDetails() {
+ return details;
+ }
+
+ /**
+ * Additional structured error details, when available.
+ * @param details details or {@code null} for none
+ */
+ public Status setDetails(java.util.List> details) {
+ this.details = details;
+ return this;
+ }
+
+ /**
+ * A human-readable error message in English describing why emission estimates could not be
+ * returned for the requested item.
+ * @return value or {@code null} for none
+ */
+ public java.lang.String getMessage() {
+ return message;
+ }
+
+ /**
+ * A human-readable error message in English describing why emission estimates could not be
+ * returned for the requested item.
+ * @param message message or {@code null} for none
+ */
+ public Status setMessage(java.lang.String message) {
+ this.message = message;
+ return this;
+ }
+
+ @Override
+ public Status set(String fieldName, Object value) {
+ return (Status) super.set(fieldName, value);
+ }
+
+ @Override
+ public Status clone() {
+ return (Status) super.clone();
+ }
+
+}
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/TypicalFlightEmissions.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/TypicalFlightEmissions.java
index 25576deff17..be370d63793 100644
--- a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/TypicalFlightEmissions.java
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/TypicalFlightEmissions.java
@@ -40,6 +40,20 @@ public final class TypicalFlightEmissions extends com.google.api.client.json.Gen
@com.google.api.client.util.Key
private EmissionsGramsPerPax emissionsGramsPerPax;
+ /**
+ * Output only. Errors detailing why typical flight emission estimates could not be returned for
+ * the market. Empty when emission estimates are present.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.util.List errors;
+
+ static {
+ // hack to force ProGuard to consider Status used, since otherwise it would be stripped out
+ // see https://github.com/google/google-api-java-client/issues/543
+ com.google.api.client.util.Data.nullOf(Status.class);
+ }
+
/**
* Identifier. Matches the flight identifiers in the request. Note: all IATA codes are
* capitalized.
@@ -71,6 +85,25 @@ public TypicalFlightEmissions setEmissionsGramsPerPax(EmissionsGramsPerPax emiss
return this;
}
+ /**
+ * Output only. Errors detailing why typical flight emission estimates could not be returned for
+ * the market. Empty when emission estimates are present.
+ * @return value or {@code null} for none
+ */
+ public java.util.List getErrors() {
+ return errors;
+ }
+
+ /**
+ * Output only. Errors detailing why typical flight emission estimates could not be returned for
+ * the market. Empty when emission estimates are present.
+ * @param errors errors or {@code null} for none
+ */
+ public TypicalFlightEmissions setErrors(java.util.List errors) {
+ this.errors = errors;
+ return this;
+ }
+
/**
* Identifier. Matches the flight identifiers in the request. Note: all IATA codes are
* capitalized.
diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/pom.xml b/clients/google-api-services-travelimpactmodel/v1/2.0.0/pom.xml
index 1d12aecd50c..f42457af553 100644
--- a/clients/google-api-services-travelimpactmodel/v1/2.0.0/pom.xml
+++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/pom.xml
@@ -8,8 +8,8 @@
com.google.apis
google-api-services-travelimpactmodel
- v1-rev20261021-2.9.2
- Travel Impact Model API v1-rev20261021-2.9.2
+ v1-rev20261201-2.9.2
+ Travel Impact Model API v1-rev20261201-2.9.2
jar
2011
diff --git a/clients/google-api-services-travelimpactmodel/v1/README.md b/clients/google-api-services-travelimpactmodel/v1/README.md
index 5f2fab111a3..c9adb991415 100644
--- a/clients/google-api-services-travelimpactmodel/v1/README.md
+++ b/clients/google-api-services-travelimpactmodel/v1/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
com.google.apis
google-api-services-travelimpactmodel
- v1-rev20261021-2.9.2
+ v1-rev20261201-2.9.2
@@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
- implementation 'com.google.apis:google-api-services-travelimpactmodel:v1-rev20261021-2.9.2'
+ implementation 'com.google.apis:google-api-services-travelimpactmodel:v1-rev20261201-2.9.2'
}
```