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
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-travelimpactmodel</artifactId>
<version>v1-rev20261021-2.9.2</version>
<version>v1-rev20261201-2.9.2</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/*
* 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;

/**
* Input definition for the ComputeScope3DetailedFlightEmissions request.
*
* <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 Travel Impact Model 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 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<Scope3FlightSegment> 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<Scope3FlightSegment> 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<Scope3FlightSegment> 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();
}

}
Original file line number Diff line number Diff line change
@@ -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.
*
* <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 Travel Impact Model 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 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<Scope3FlightWithDetailedEmissions> 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<Scope3FlightWithDetailedEmissions> 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<Scope3FlightWithDetailedEmissions> 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();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -64,7 +68,11 @@ public ComputeScope3FlightEmissionsRequest setFlights(java.util.List<Scope3Fligh

/**
* 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.
* @return value or {@code null} for none
*/
public ModelVersion getModelVersion() {
Expand All @@ -73,7 +81,11 @@ public ModelVersion getModelVersion() {

/**
* 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.
* @param modelVersion modelVersion or {@code null} for none
*/
public ComputeScope3FlightEmissionsRequest setModelVersion(ModelVersion modelVersion) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ public final class FlightWithDetailedEmissions extends com.google.api.client.jso
@com.google.api.client.util.Key
private EmissionsMetadata emissionsMetadata;

/**
* Output only. Errors detailing why detailed 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<Status> errors;

/**
* Output only. Matches the flight identifiers in the request. Note: all IATA codes are
* capitalized.
Expand Down Expand Up @@ -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<Status> 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<Status> errors) {
this.errors = errors;
return this;
}

/**
* Output only. Matches the flight identifiers in the request. Note: all IATA codes are
* capitalized.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Status> errors;

/**
* Identifier. Matches the flight identifiers in the request. Note: all IATA codes are
* capitalized.
Expand Down Expand Up @@ -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<Status> 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<Status> errors) {
this.errors = errors;
return this;
}

/**
* Identifier. Matches the flight identifiers in the request. Note: all IATA codes are
* capitalized.
Expand Down
Loading
Loading