{@link ComputeDetailedFlightEmissions#initialize(com.google.ap + * i.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.ComputeDetailedFlightEmissionsRequest} + * @since 1.13 + */ + protected ComputeDetailedFlightEmissions(com.google.api.services.travelimpactmodel.v1.model.ComputeDetailedFlightEmissionsRequest content) { + super(TravelImpactModel.this, "POST", REST_PATH, content, com.google.api.services.travelimpactmodel.v1.model.ComputeDetailedFlightEmissionsResponse.class); + } + + @Override + public ComputeDetailedFlightEmissions set$Xgafv(java.lang.String $Xgafv) { + return (ComputeDetailedFlightEmissions) super.set$Xgafv($Xgafv); + } + + @Override + public ComputeDetailedFlightEmissions setAccessToken(java.lang.String accessToken) { + return (ComputeDetailedFlightEmissions) super.setAccessToken(accessToken); + } + + @Override + public ComputeDetailedFlightEmissions setAlt(java.lang.String alt) { + return (ComputeDetailedFlightEmissions) super.setAlt(alt); + } + + @Override + public ComputeDetailedFlightEmissions setCallback(java.lang.String callback) { + return (ComputeDetailedFlightEmissions) super.setCallback(callback); + } + + @Override + public ComputeDetailedFlightEmissions setFields(java.lang.String fields) { + return (ComputeDetailedFlightEmissions) super.setFields(fields); + } + + @Override + public ComputeDetailedFlightEmissions setKey(java.lang.String key) { + return (ComputeDetailedFlightEmissions) super.setKey(key); + } + + @Override + public ComputeDetailedFlightEmissions setOauthToken(java.lang.String oauthToken) { + return (ComputeDetailedFlightEmissions) super.setOauthToken(oauthToken); + } + + @Override + public ComputeDetailedFlightEmissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ComputeDetailedFlightEmissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public ComputeDetailedFlightEmissions setQuotaUser(java.lang.String quotaUser) { + return (ComputeDetailedFlightEmissions) super.setQuotaUser(quotaUser); + } + + @Override + public ComputeDetailedFlightEmissions setUploadType(java.lang.String uploadType) { + return (ComputeDetailedFlightEmissions) super.setUploadType(uploadType); + } + + @Override + public ComputeDetailedFlightEmissions setUploadProtocol(java.lang.String uploadProtocol) { + return (ComputeDetailedFlightEmissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ComputeDetailedFlightEmissions set(String parameterName, Object value) { + return (ComputeDetailedFlightEmissions) super.set(parameterName, value); + } + } /** * Retrieves emission estimates. Details on how emission estimates are computed are in * [GitHub](https://github.com/google/travel-impact-model). The response will contain all entries diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeDetailedFlightEmissionsRequest.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeDetailedFlightEmissionsRequest.java new file mode 100644 index 00000000000..9872bbf1438 --- /dev/null +++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/ComputeDetailedFlightEmissionsRequest.java @@ -0,0 +1,67 @@ +/* + * 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 ComputeDetailedFlightEmissions request. + * + *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 ComputeDetailedFlightEmissionsRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Direct flights to return emission estimates for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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 ComputeDetailedFlightEmissionsResponse extends com.google.api.client.json.GenericJson { + + /** + * List of flight legs with emission estimates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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 EmissionsBreakdown extends com.google.api.client.json.GenericJson { + + /** + * Per-passenger tank-to-wake emission estimate numbers. Will not be present if emissions could + * not be computed. For the list of reasons why emissions could not be computed, see + * ComputeFlightEmissions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EmissionsGramsPerPax ttwEmissionsGramsPerPax; + + /** + * Per-passenger well-to-tank emission estimate numbers. Will not be present if emissions could + * not be computed. For the list of reasons why emissions could not be computed, see + * ComputeFlightEmissions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EmissionsGramsPerPax wttEmissionsGramsPerPax; + + /** + * Per-passenger tank-to-wake emission estimate numbers. Will not be present if emissions could + * not be computed. For the list of reasons why emissions could not be computed, see + * ComputeFlightEmissions. + * @return value or {@code null} for none + */ + public EmissionsGramsPerPax getTtwEmissionsGramsPerPax() { + return ttwEmissionsGramsPerPax; + } + + /** + * Per-passenger tank-to-wake emission estimate numbers. Will not be present if emissions could + * not be computed. For the list of reasons why emissions could not be computed, see + * ComputeFlightEmissions. + * @param ttwEmissionsGramsPerPax ttwEmissionsGramsPerPax or {@code null} for none + */ + public EmissionsBreakdown setTtwEmissionsGramsPerPax(EmissionsGramsPerPax ttwEmissionsGramsPerPax) { + this.ttwEmissionsGramsPerPax = ttwEmissionsGramsPerPax; + return this; + } + + /** + * Per-passenger well-to-tank emission estimate numbers. Will not be present if emissions could + * not be computed. For the list of reasons why emissions could not be computed, see + * ComputeFlightEmissions. + * @return value or {@code null} for none + */ + public EmissionsGramsPerPax getWttEmissionsGramsPerPax() { + return wttEmissionsGramsPerPax; + } + + /** + * Per-passenger well-to-tank emission estimate numbers. Will not be present if emissions could + * not be computed. For the list of reasons why emissions could not be computed, see + * ComputeFlightEmissions. + * @param wttEmissionsGramsPerPax wttEmissionsGramsPerPax or {@code null} for none + */ + public EmissionsBreakdown setWttEmissionsGramsPerPax(EmissionsGramsPerPax wttEmissionsGramsPerPax) { + this.wttEmissionsGramsPerPax = wttEmissionsGramsPerPax; + return this; + } + + @Override + public EmissionsBreakdown set(String fieldName, Object value) { + return (EmissionsBreakdown) super.set(fieldName, value); + } + + @Override + public EmissionsBreakdown clone() { + return (EmissionsBreakdown) super.clone(); + } + +} diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/EmissionsMetadata.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/EmissionsMetadata.java new file mode 100644 index 00000000000..8eeb541b018 --- /dev/null +++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/EmissionsMetadata.java @@ -0,0 +1,124 @@ +/* + * 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; + +/** + * All additional metadata. + * + *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 EmissionsMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. Metadata about the EASA Flight Emissions Label. Only set when the emissions data + * source is EASA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EasaLabelMetadata easaLabelMetadata; + + /** + * Output only. 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/flight?itinerary=ZRH-BOS-LX-52-20261225. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timWebsiteEmissionsCalculatorUrl; + + /** + * Output only. Metadata about the EASA Flight Emissions Label. Only set when the emissions data + * source is EASA. + * @return value or {@code null} for none + */ + public EasaLabelMetadata getEasaLabelMetadata() { + return easaLabelMetadata; + } + + /** + * Output only. Metadata about the EASA Flight Emissions Label. Only set when the emissions data + * source is EASA. + * @param easaLabelMetadata easaLabelMetadata or {@code null} for none + */ + public EmissionsMetadata setEasaLabelMetadata(EasaLabelMetadata easaLabelMetadata) { + this.easaLabelMetadata = easaLabelMetadata; + return this; + } + + /** + * Output only. 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; + } + + /** + * Output only. 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 EmissionsMetadata setEmissionsProvenance(EmissionsProvenance emissionsProvenance) { + this.emissionsProvenance = emissionsProvenance; + return this; + } + + /** + * Output only. Link to the `travelimpactmodel.org` Emissions Calculator website. Example: + * https://travelimpactmodel.org/lookup/flight?itinerary=ZRH-BOS-LX-52-20261225. + * @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/flight?itinerary=ZRH-BOS-LX-52-20261225. + * @param timWebsiteEmissionsCalculatorUrl timWebsiteEmissionsCalculatorUrl or {@code null} for none + */ + public EmissionsMetadata setTimWebsiteEmissionsCalculatorUrl(java.lang.String timWebsiteEmissionsCalculatorUrl) { + this.timWebsiteEmissionsCalculatorUrl = timWebsiteEmissionsCalculatorUrl; + return this; + } + + @Override + public EmissionsMetadata set(String fieldName, Object value) { + return (EmissionsMetadata) super.set(fieldName, value); + } + + @Override + public EmissionsMetadata clone() { + return (EmissionsMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/EmissionsProvenance.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/EmissionsProvenance.java new file mode 100644 index 00000000000..364a98e112e --- /dev/null +++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/EmissionsProvenance.java @@ -0,0 +1,68 @@ +/* + * 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; + +/** + * Information about the provenance of the data used to calculate emissions estimates, including + * contributing factors and their data sources. + * + *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 EmissionsProvenance extends com.google.api.client.json.GenericJson { + + /** + * Output only. All contributing factors used to calculate emissions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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 EmissionsProvenanceEntry extends com.google.api.client.json.GenericJson { + + /** + * Output only. The cargo mass fraction value. If not set, the cargo mass fraction value is not + * available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double cargoMassFractionData; + + /** + * Output only. Strategy for T100 cargo mass fraction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cargoMassFractionT100Strategy; + + /** + * Output only. Data category of the data source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataCategory; + + /** + * Output only. Strategy for distance adjustment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String distanceAdjustmentStrategy; + + /** + * Output only. The estimated distance flown in CCD flight phase in kilometers value calculated + * using the distance adjustment factor (DAF). If not set, the estimated flight distance value is + * not available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer estimatedFlightDistanceKm; + + /** + * Output only. Strategy for EEA fuel burn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fuelBurnEeaStrategy; + + /** + * Output only. Strategy for CH Aviation load factors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String loadFactorsChAviationStrategy; + + /** + * Output only. The load factors data value. If not set, the load factors value is not available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double loadFactorsData; + + /** + * Output only. Strategy for T100 load factors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String loadFactorsT100Strategy; + + /** + * Output only. The type of the provenance entry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String provenanceEntryType; + + /** + * Output only. The seat area ratio value for each seating class. If not set, the seat area ratio + * value is not available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SeatAreaRatioData seatAreaRatioData; + + /** + * Output only. Strategy for IATA seat area ratios. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String seatAreaRatioIataStrategy; + + /** + * Output only. The source of the data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Output only. The version of the source data. For example, "2025/04". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceVersion; + + /** + * Output only. The cargo mass fraction value. If not set, the cargo mass fraction value is not + * available. + * @return value or {@code null} for none + */ + public java.lang.Double getCargoMassFractionData() { + return cargoMassFractionData; + } + + /** + * Output only. The cargo mass fraction value. If not set, the cargo mass fraction value is not + * available. + * @param cargoMassFractionData cargoMassFractionData or {@code null} for none + */ + public EmissionsProvenanceEntry setCargoMassFractionData(java.lang.Double cargoMassFractionData) { + this.cargoMassFractionData = cargoMassFractionData; + return this; + } + + /** + * Output only. Strategy for T100 cargo mass fraction. + * @return value or {@code null} for none + */ + public java.lang.String getCargoMassFractionT100Strategy() { + return cargoMassFractionT100Strategy; + } + + /** + * Output only. Strategy for T100 cargo mass fraction. + * @param cargoMassFractionT100Strategy cargoMassFractionT100Strategy or {@code null} for none + */ + public EmissionsProvenanceEntry setCargoMassFractionT100Strategy(java.lang.String cargoMassFractionT100Strategy) { + this.cargoMassFractionT100Strategy = cargoMassFractionT100Strategy; + return this; + } + + /** + * Output only. Data category of the data source. + * @return value or {@code null} for none + */ + public java.lang.String getDataCategory() { + return dataCategory; + } + + /** + * Output only. Data category of the data source. + * @param dataCategory dataCategory or {@code null} for none + */ + public EmissionsProvenanceEntry setDataCategory(java.lang.String dataCategory) { + this.dataCategory = dataCategory; + return this; + } + + /** + * Output only. Strategy for distance adjustment. + * @return value or {@code null} for none + */ + public java.lang.String getDistanceAdjustmentStrategy() { + return distanceAdjustmentStrategy; + } + + /** + * Output only. Strategy for distance adjustment. + * @param distanceAdjustmentStrategy distanceAdjustmentStrategy or {@code null} for none + */ + public EmissionsProvenanceEntry setDistanceAdjustmentStrategy(java.lang.String distanceAdjustmentStrategy) { + this.distanceAdjustmentStrategy = distanceAdjustmentStrategy; + return this; + } + + /** + * Output only. The estimated distance flown in CCD flight phase in kilometers value calculated + * using the distance adjustment factor (DAF). If not set, the estimated flight distance value is + * not available. + * @return value or {@code null} for none + */ + public java.lang.Integer getEstimatedFlightDistanceKm() { + return estimatedFlightDistanceKm; + } + + /** + * Output only. The estimated distance flown in CCD flight phase in kilometers value calculated + * using the distance adjustment factor (DAF). If not set, the estimated flight distance value is + * not available. + * @param estimatedFlightDistanceKm estimatedFlightDistanceKm or {@code null} for none + */ + public EmissionsProvenanceEntry setEstimatedFlightDistanceKm(java.lang.Integer estimatedFlightDistanceKm) { + this.estimatedFlightDistanceKm = estimatedFlightDistanceKm; + return this; + } + + /** + * Output only. Strategy for EEA fuel burn. + * @return value or {@code null} for none + */ + public java.lang.String getFuelBurnEeaStrategy() { + return fuelBurnEeaStrategy; + } + + /** + * Output only. Strategy for EEA fuel burn. + * @param fuelBurnEeaStrategy fuelBurnEeaStrategy or {@code null} for none + */ + public EmissionsProvenanceEntry setFuelBurnEeaStrategy(java.lang.String fuelBurnEeaStrategy) { + this.fuelBurnEeaStrategy = fuelBurnEeaStrategy; + return this; + } + + /** + * Output only. Strategy for CH Aviation load factors. + * @return value or {@code null} for none + */ + public java.lang.String getLoadFactorsChAviationStrategy() { + return loadFactorsChAviationStrategy; + } + + /** + * Output only. Strategy for CH Aviation load factors. + * @param loadFactorsChAviationStrategy loadFactorsChAviationStrategy or {@code null} for none + */ + public EmissionsProvenanceEntry setLoadFactorsChAviationStrategy(java.lang.String loadFactorsChAviationStrategy) { + this.loadFactorsChAviationStrategy = loadFactorsChAviationStrategy; + return this; + } + + /** + * Output only. The load factors data value. If not set, the load factors value is not available. + * @return value or {@code null} for none + */ + public java.lang.Double getLoadFactorsData() { + return loadFactorsData; + } + + /** + * Output only. The load factors data value. If not set, the load factors value is not available. + * @param loadFactorsData loadFactorsData or {@code null} for none + */ + public EmissionsProvenanceEntry setLoadFactorsData(java.lang.Double loadFactorsData) { + this.loadFactorsData = loadFactorsData; + return this; + } + + /** + * Output only. Strategy for T100 load factors. + * @return value or {@code null} for none + */ + public java.lang.String getLoadFactorsT100Strategy() { + return loadFactorsT100Strategy; + } + + /** + * Output only. Strategy for T100 load factors. + * @param loadFactorsT100Strategy loadFactorsT100Strategy or {@code null} for none + */ + public EmissionsProvenanceEntry setLoadFactorsT100Strategy(java.lang.String loadFactorsT100Strategy) { + this.loadFactorsT100Strategy = loadFactorsT100Strategy; + return this; + } + + /** + * Output only. The type of the provenance entry. + * @return value or {@code null} for none + */ + public java.lang.String getProvenanceEntryType() { + return provenanceEntryType; + } + + /** + * Output only. The type of the provenance entry. + * @param provenanceEntryType provenanceEntryType or {@code null} for none + */ + public EmissionsProvenanceEntry setProvenanceEntryType(java.lang.String provenanceEntryType) { + this.provenanceEntryType = provenanceEntryType; + return this; + } + + /** + * Output only. The seat area ratio value for each seating class. If not set, the seat area ratio + * value is not available. + * @return value or {@code null} for none + */ + public SeatAreaRatioData getSeatAreaRatioData() { + return seatAreaRatioData; + } + + /** + * Output only. The seat area ratio value for each seating class. If not set, the seat area ratio + * value is not available. + * @param seatAreaRatioData seatAreaRatioData or {@code null} for none + */ + public EmissionsProvenanceEntry setSeatAreaRatioData(SeatAreaRatioData seatAreaRatioData) { + this.seatAreaRatioData = seatAreaRatioData; + return this; + } + + /** + * Output only. Strategy for IATA seat area ratios. + * @return value or {@code null} for none + */ + public java.lang.String getSeatAreaRatioIataStrategy() { + return seatAreaRatioIataStrategy; + } + + /** + * Output only. Strategy for IATA seat area ratios. + * @param seatAreaRatioIataStrategy seatAreaRatioIataStrategy or {@code null} for none + */ + public EmissionsProvenanceEntry setSeatAreaRatioIataStrategy(java.lang.String seatAreaRatioIataStrategy) { + this.seatAreaRatioIataStrategy = seatAreaRatioIataStrategy; + return this; + } + + /** + * Output only. The source of the data. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Output only. The source of the data. + * @param source source or {@code null} for none + */ + public EmissionsProvenanceEntry setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Output only. The version of the source data. For example, "2025/04". + * @return value or {@code null} for none + */ + public java.lang.String getSourceVersion() { + return sourceVersion; + } + + /** + * Output only. The version of the source data. For example, "2025/04". + * @param sourceVersion sourceVersion or {@code null} for none + */ + public EmissionsProvenanceEntry setSourceVersion(java.lang.String sourceVersion) { + this.sourceVersion = sourceVersion; + return this; + } + + @Override + public EmissionsProvenanceEntry set(String fieldName, Object value) { + return (EmissionsProvenanceEntry) super.set(fieldName, value); + } + + @Override + public EmissionsProvenanceEntry clone() { + return (EmissionsProvenanceEntry) super.clone(); + } + +} diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/FlightEmissionsDetails.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/FlightEmissionsDetails.java new file mode 100644 index 00000000000..44a86e860da --- /dev/null +++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/FlightEmissionsDetails.java @@ -0,0 +1,151 @@ +/* + * 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; + +/** + * Details about the specific flight's emissions. + * + *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 FlightEmissionsDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. The significance of contrails warming impact compared to the total CO2e emissions + * impact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contrailsImpactBucket; + + /** + * Output only. Details about the various emissions portions of the total emissions_grams_per_pax + * value. The value of the summed breakdowns should always equal emissions_grams_per_pax. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EmissionsBreakdown emissionsBreakdown; + + /** + * Output only. Per-passenger emission estimate numbers. Will not be present if emissions could + * not be computed. For the list of reasons why emissions could not be computed, see + * ComputeDetailedFlightEmissions + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EmissionsGramsPerPax emissionsGramsPerPax; + + /** + * Output only. The source of the emissions data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Output only. The significance of contrails warming impact compared to the total CO2e emissions + * impact. + * @return value or {@code null} for none + */ + public java.lang.String getContrailsImpactBucket() { + return contrailsImpactBucket; + } + + /** + * Output only. The significance of contrails warming impact compared to the total CO2e emissions + * impact. + * @param contrailsImpactBucket contrailsImpactBucket or {@code null} for none + */ + public FlightEmissionsDetails setContrailsImpactBucket(java.lang.String contrailsImpactBucket) { + this.contrailsImpactBucket = contrailsImpactBucket; + return this; + } + + /** + * Output only. Details about the various emissions portions of the total emissions_grams_per_pax + * value. The value of the summed breakdowns should always equal emissions_grams_per_pax. + * @return value or {@code null} for none + */ + public EmissionsBreakdown getEmissionsBreakdown() { + return emissionsBreakdown; + } + + /** + * Output only. Details about the various emissions portions of the total emissions_grams_per_pax + * value. The value of the summed breakdowns should always equal emissions_grams_per_pax. + * @param emissionsBreakdown emissionsBreakdown or {@code null} for none + */ + public FlightEmissionsDetails setEmissionsBreakdown(EmissionsBreakdown emissionsBreakdown) { + this.emissionsBreakdown = emissionsBreakdown; + return this; + } + + /** + * Output only. Per-passenger emission estimate numbers. Will not be present if emissions could + * not be computed. For the list of reasons why emissions could not be computed, see + * ComputeDetailedFlightEmissions + * @return value or {@code null} for none + */ + public EmissionsGramsPerPax getEmissionsGramsPerPax() { + return emissionsGramsPerPax; + } + + /** + * Output only. Per-passenger emission estimate numbers. Will not be present if emissions could + * not be computed. For the list of reasons why emissions could not be computed, see + * ComputeDetailedFlightEmissions + * @param emissionsGramsPerPax emissionsGramsPerPax or {@code null} for none + */ + public FlightEmissionsDetails setEmissionsGramsPerPax(EmissionsGramsPerPax emissionsGramsPerPax) { + this.emissionsGramsPerPax = emissionsGramsPerPax; + return this; + } + + /** + * Output only. The source of the emissions data. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Output only. The source of the emissions data. + * @param source source or {@code null} for none + */ + public FlightEmissionsDetails setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public FlightEmissionsDetails set(String fieldName, Object value) { + return (FlightEmissionsDetails) super.set(fieldName, value); + } + + @Override + public FlightEmissionsDetails clone() { + return (FlightEmissionsDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/FlightWithDetailedEmissions.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/FlightWithDetailedEmissions.java new file mode 100644 index 00000000000..fba5b570d5c --- /dev/null +++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/FlightWithDetailedEmissions.java @@ -0,0 +1,118 @@ +/* + * 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; + +/** + * Direct flight with emission estimates details. + * + *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 FlightWithDetailedEmissions extends com.google.api.client.json.GenericJson { + + /** + * Output only. Additional metadata about the flight emissions calculation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EmissionsMetadata emissionsMetadata; + + /** + * Output only. Matches the flight identifiers in the request. Note: all IATA codes are + * capitalized. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Flight flight; + + /** + * Output only. All the flight emissions data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FlightEmissionsDetails flightEmissionsDetails; + + /** + * Output only. Additional metadata about the flight emissions calculation. + * @return value or {@code null} for none + */ + public EmissionsMetadata getEmissionsMetadata() { + return emissionsMetadata; + } + + /** + * Output only. Additional metadata about the flight emissions calculation. + * @param emissionsMetadata emissionsMetadata or {@code null} for none + */ + public FlightWithDetailedEmissions setEmissionsMetadata(EmissionsMetadata emissionsMetadata) { + this.emissionsMetadata = emissionsMetadata; + return this; + } + + /** + * Output only. Matches the flight identifiers in the request. Note: all IATA codes are + * capitalized. + * @return value or {@code null} for none + */ + public Flight getFlight() { + return flight; + } + + /** + * Output only. Matches the flight identifiers in the request. Note: all IATA codes are + * capitalized. + * @param flight flight or {@code null} for none + */ + public FlightWithDetailedEmissions setFlight(Flight flight) { + this.flight = flight; + return this; + } + + /** + * Output only. All the flight emissions data. + * @return value or {@code null} for none + */ + public FlightEmissionsDetails getFlightEmissionsDetails() { + return flightEmissionsDetails; + } + + /** + * Output only. All the flight emissions data. + * @param flightEmissionsDetails flightEmissionsDetails or {@code null} for none + */ + public FlightWithDetailedEmissions setFlightEmissionsDetails(FlightEmissionsDetails flightEmissionsDetails) { + this.flightEmissionsDetails = flightEmissionsDetails; + return this; + } + + @Override + public FlightWithDetailedEmissions set(String fieldName, Object value) { + return (FlightWithDetailedEmissions) super.set(fieldName, value); + } + + @Override + public FlightWithDetailedEmissions clone() { + return (FlightWithDetailedEmissions) super.clone(); + } + +} diff --git a/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/SeatAreaRatioData.java b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/SeatAreaRatioData.java new file mode 100644 index 00000000000..9627ccfbdfd --- /dev/null +++ b/clients/google-api-services-travelimpactmodel/v1/2.0.0/com/google/api/services/travelimpactmodel/v1/model/SeatAreaRatioData.java @@ -0,0 +1,141 @@ +/* + * 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; + +/** + * Seat area ratio data values. Economy is always 1.0 and serves as the reference point; other class + * values are relative to economy. All 4 fields are always set whether the seating class exists on + * the aircraft or not. + * + *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 SeatAreaRatioData extends com.google.api.client.json.GenericJson { + + /** + * Output only. Business seating class data value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double business; + + /** + * Output only. Economy seating class data value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double economy; + + /** + * Output only. First seating class data value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double first; + + /** + * Output only. Premium economy seating class data value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double premiumEconomy; + + /** + * Output only. Business seating class data value. + * @return value or {@code null} for none + */ + public java.lang.Double getBusiness() { + return business; + } + + /** + * Output only. Business seating class data value. + * @param business business or {@code null} for none + */ + public SeatAreaRatioData setBusiness(java.lang.Double business) { + this.business = business; + return this; + } + + /** + * Output only. Economy seating class data value. + * @return value or {@code null} for none + */ + public java.lang.Double getEconomy() { + return economy; + } + + /** + * Output only. Economy seating class data value. + * @param economy economy or {@code null} for none + */ + public SeatAreaRatioData setEconomy(java.lang.Double economy) { + this.economy = economy; + return this; + } + + /** + * Output only. First seating class data value. + * @return value or {@code null} for none + */ + public java.lang.Double getFirst() { + return first; + } + + /** + * Output only. First seating class data value. + * @param first first or {@code null} for none + */ + public SeatAreaRatioData setFirst(java.lang.Double first) { + this.first = first; + return this; + } + + /** + * Output only. Premium economy seating class data value. + * @return value or {@code null} for none + */ + public java.lang.Double getPremiumEconomy() { + return premiumEconomy; + } + + /** + * Output only. Premium economy seating class data value. + * @param premiumEconomy premiumEconomy or {@code null} for none + */ + public SeatAreaRatioData setPremiumEconomy(java.lang.Double premiumEconomy) { + this.premiumEconomy = premiumEconomy; + return this; + } + + @Override + public SeatAreaRatioData set(String fieldName, Object value) { + return (SeatAreaRatioData) super.set(fieldName, value); + } + + @Override + public SeatAreaRatioData clone() { + return (SeatAreaRatioData) super.clone(); + } + +} 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 e67e7e75b74..bc4c115c903 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 @@