@@ -269,6 +269,118 @@ public ComputeFlightEmissions set(String parameterName, Object value) {
269
269
return (ComputeFlightEmissions ) super .set (parameterName , value );
270
270
}
271
271
}
272
+ /**
273
+ * Retrieves typical flight emissions estimates between two airports, also known as a market. If
274
+ * there are no estimates available for a certain market, the response will return the market object
275
+ * with empty emission fields. The request will still be considered successful. Details on how the
276
+ * typical emissions estimates are computed are on [GitHub](https://github.com/google/travel-impact-
277
+ * model/blob/main/projects/typical_flight_emissions.md). The request can contain up to 1000
278
+ * markets. If the request has more than 1000 markets, it will fail with an INVALID_ARGUMENT error.
279
+ *
280
+ * Create a request for the method "flights.computeTypicalFlightEmissions".
281
+ *
282
+ * This request holds the parameters needed by the travelimpactmodel server. After setting any
283
+ * optional parameters, call the {@link ComputeTypicalFlightEmissions#execute()} method to invoke
284
+ * the remote operation.
285
+ *
286
+ * @param content the {@link com.google.api.services.travelimpactmodel.v1.model.ComputeTypicalFlightEmissionsRequest}
287
+ * @return the request
288
+ */
289
+ public ComputeTypicalFlightEmissions computeTypicalFlightEmissions (com .google .api .services .travelimpactmodel .v1 .model .ComputeTypicalFlightEmissionsRequest content ) throws java .io .IOException {
290
+ ComputeTypicalFlightEmissions result = new ComputeTypicalFlightEmissions (content );
291
+ initialize (result );
292
+ return result ;
293
+ }
294
+
295
+ public class ComputeTypicalFlightEmissions extends TravelImpactModelRequest <com .google .api .services .travelimpactmodel .v1 .model .ComputeTypicalFlightEmissionsResponse > {
296
+
297
+ private static final String REST_PATH = "v1/flights:computeTypicalFlightEmissions" ;
298
+
299
+ /**
300
+ * Retrieves typical flight emissions estimates between two airports, also known as a market. If
301
+ * there are no estimates available for a certain market, the response will return the market
302
+ * object with empty emission fields. The request will still be considered successful. Details on
303
+ * how the typical emissions estimates are computed are on
304
+ * [GitHub](https://github.com/google/travel-impact-
305
+ * model/blob/main/projects/typical_flight_emissions.md). The request can contain up to 1000
306
+ * markets. If the request has more than 1000 markets, it will fail with an INVALID_ARGUMENT
307
+ * error.
308
+ *
309
+ * Create a request for the method "flights.computeTypicalFlightEmissions".
310
+ *
311
+ * This request holds the parameters needed by the the travelimpactmodel server. After setting
312
+ * any optional parameters, call the {@link ComputeTypicalFlightEmissions#execute()} method to
313
+ * invoke the remote operation. <p> {@link ComputeTypicalFlightEmissions#initialize(com.google.api
314
+ * .client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this
315
+ * instance immediately after invoking the constructor. </p>
316
+ *
317
+ * @param content the {@link com.google.api.services.travelimpactmodel.v1.model.ComputeTypicalFlightEmissionsRequest}
318
+ * @since 1.13
319
+ */
320
+ protected ComputeTypicalFlightEmissions (com .google .api .services .travelimpactmodel .v1 .model .ComputeTypicalFlightEmissionsRequest content ) {
321
+ super (TravelImpactModel .this , "POST" , REST_PATH , content , com .google .api .services .travelimpactmodel .v1 .model .ComputeTypicalFlightEmissionsResponse .class );
322
+ }
323
+
324
+ @ Override
325
+ public ComputeTypicalFlightEmissions set$Xgafv (java .lang .String $Xgafv ) {
326
+ return (ComputeTypicalFlightEmissions ) super .set$Xgafv ($Xgafv );
327
+ }
328
+
329
+ @ Override
330
+ public ComputeTypicalFlightEmissions setAccessToken (java .lang .String accessToken ) {
331
+ return (ComputeTypicalFlightEmissions ) super .setAccessToken (accessToken );
332
+ }
333
+
334
+ @ Override
335
+ public ComputeTypicalFlightEmissions setAlt (java .lang .String alt ) {
336
+ return (ComputeTypicalFlightEmissions ) super .setAlt (alt );
337
+ }
338
+
339
+ @ Override
340
+ public ComputeTypicalFlightEmissions setCallback (java .lang .String callback ) {
341
+ return (ComputeTypicalFlightEmissions ) super .setCallback (callback );
342
+ }
343
+
344
+ @ Override
345
+ public ComputeTypicalFlightEmissions setFields (java .lang .String fields ) {
346
+ return (ComputeTypicalFlightEmissions ) super .setFields (fields );
347
+ }
348
+
349
+ @ Override
350
+ public ComputeTypicalFlightEmissions setKey (java .lang .String key ) {
351
+ return (ComputeTypicalFlightEmissions ) super .setKey (key );
352
+ }
353
+
354
+ @ Override
355
+ public ComputeTypicalFlightEmissions setOauthToken (java .lang .String oauthToken ) {
356
+ return (ComputeTypicalFlightEmissions ) super .setOauthToken (oauthToken );
357
+ }
358
+
359
+ @ Override
360
+ public ComputeTypicalFlightEmissions setPrettyPrint (java .lang .Boolean prettyPrint ) {
361
+ return (ComputeTypicalFlightEmissions ) super .setPrettyPrint (prettyPrint );
362
+ }
363
+
364
+ @ Override
365
+ public ComputeTypicalFlightEmissions setQuotaUser (java .lang .String quotaUser ) {
366
+ return (ComputeTypicalFlightEmissions ) super .setQuotaUser (quotaUser );
367
+ }
368
+
369
+ @ Override
370
+ public ComputeTypicalFlightEmissions setUploadType (java .lang .String uploadType ) {
371
+ return (ComputeTypicalFlightEmissions ) super .setUploadType (uploadType );
372
+ }
373
+
374
+ @ Override
375
+ public ComputeTypicalFlightEmissions setUploadProtocol (java .lang .String uploadProtocol ) {
376
+ return (ComputeTypicalFlightEmissions ) super .setUploadProtocol (uploadProtocol );
377
+ }
378
+
379
+ @ Override
380
+ public ComputeTypicalFlightEmissions set (String parameterName , Object value ) {
381
+ return (ComputeTypicalFlightEmissions ) super .set (parameterName , value );
382
+ }
383
+ }
272
384
273
385
}
274
386
0 commit comments