Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

   1  <?php
   2  /*
   3   * Copyright 2010 Google Inc.
   4   *
   5   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   6   * use this file except in compliance with the License. You may obtain a copy of
   7   * the License at
   8   *
   9   * http://www.apache.org/licenses/LICENSE-2.0
  10   *
  11   * Unless required by applicable law or agreed to in writing, software
  12   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14   * License for the specific language governing permissions and limitations under
  15   * the License.
  16   */
  17  
  18  /**
  19   * Service definition for QPXExpress (v1).
  20   *
  21   * <p>
  22   * Lets you find the least expensive flights between an origin and a
  23   * destination.</p>
  24   *
  25   * <p>
  26   * For more information about this service, see the API
  27   * <a href="http://developers.google.com/qpx-express" target="_blank">Documentation</a>
  28   * </p>
  29   *
  30   * @author Google, Inc.
  31   */
  32  class Google_Service_QPXExpress extends Google_Service
  33  {
  34  
  35  
  36    public $trips;
  37    
  38  
  39    /**
  40     * Constructs the internal representation of the QPXExpress service.
  41     *
  42     * @param Google_Client $client
  43     */
  44    public function __construct(Google_Client $client)
  45    {
  46      parent::__construct($client);
  47      $this->rootUrl = 'https://www.googleapis.com/';
  48      $this->servicePath = 'qpxExpress/v1/trips/';
  49      $this->version = 'v1';
  50      $this->serviceName = 'qpxExpress';
  51  
  52      $this->trips = new Google_Service_QPXExpress_Trips_Resource(
  53          $this,
  54          $this->serviceName,
  55          'trips',
  56          array(
  57            'methods' => array(
  58              'search' => array(
  59                'path' => 'search',
  60                'httpMethod' => 'POST',
  61                'parameters' => array(),
  62              ),
  63            )
  64          )
  65      );
  66    }
  67  }
  68  
  69  
  70  /**
  71   * The "trips" collection of methods.
  72   * Typical usage is:
  73   *  <code>
  74   *   $qpxExpressService = new Google_Service_QPXExpress(...);
  75   *   $trips = $qpxExpressService->trips;
  76   *  </code>
  77   */
  78  class Google_Service_QPXExpress_Trips_Resource extends Google_Service_Resource
  79  {
  80  
  81    /**
  82     * Returns a list of flights. (trips.search)
  83     *
  84     * @param Google_TripsSearchRequest $postBody
  85     * @param array $optParams Optional parameters.
  86     * @return Google_Service_QPXExpress_TripsSearchResponse
  87     */
  88    public function search(Google_Service_QPXExpress_TripsSearchRequest $postBody, $optParams = array())
  89    {
  90      $params = array('postBody' => $postBody);
  91      $params = array_merge($params, $optParams);
  92      return $this->call('search', array($params), "Google_Service_QPXExpress_TripsSearchResponse");
  93    }
  94  }
  95  
  96  
  97  
  98  
  99  class Google_Service_QPXExpress_AircraftData extends Google_Model
 100  {
 101    protected $internal_gapi_mappings = array(
 102    );
 103    public $code;
 104    public $kind;
 105    public $name;
 106  
 107  
 108    public function setCode($code)
 109    {
 110      $this->code = $code;
 111    }
 112    public function getCode()
 113    {
 114      return $this->code;
 115    }
 116    public function setKind($kind)
 117    {
 118      $this->kind = $kind;
 119    }
 120    public function getKind()
 121    {
 122      return $this->kind;
 123    }
 124    public function setName($name)
 125    {
 126      $this->name = $name;
 127    }
 128    public function getName()
 129    {
 130      return $this->name;
 131    }
 132  }
 133  
 134  class Google_Service_QPXExpress_AirportData extends Google_Model
 135  {
 136    protected $internal_gapi_mappings = array(
 137    );
 138    public $city;
 139    public $code;
 140    public $kind;
 141    public $name;
 142  
 143  
 144    public function setCity($city)
 145    {
 146      $this->city = $city;
 147    }
 148    public function getCity()
 149    {
 150      return $this->city;
 151    }
 152    public function setCode($code)
 153    {
 154      $this->code = $code;
 155    }
 156    public function getCode()
 157    {
 158      return $this->code;
 159    }
 160    public function setKind($kind)
 161    {
 162      $this->kind = $kind;
 163    }
 164    public function getKind()
 165    {
 166      return $this->kind;
 167    }
 168    public function setName($name)
 169    {
 170      $this->name = $name;
 171    }
 172    public function getName()
 173    {
 174      return $this->name;
 175    }
 176  }
 177  
 178  class Google_Service_QPXExpress_BagDescriptor extends Google_Collection
 179  {
 180    protected $collection_key = 'description';
 181    protected $internal_gapi_mappings = array(
 182    );
 183    public $commercialName;
 184    public $count;
 185    public $description;
 186    public $kind;
 187    public $subcode;
 188  
 189  
 190    public function setCommercialName($commercialName)
 191    {
 192      $this->commercialName = $commercialName;
 193    }
 194    public function getCommercialName()
 195    {
 196      return $this->commercialName;
 197    }
 198    public function setCount($count)
 199    {
 200      $this->count = $count;
 201    }
 202    public function getCount()
 203    {
 204      return $this->count;
 205    }
 206    public function setDescription($description)
 207    {
 208      $this->description = $description;
 209    }
 210    public function getDescription()
 211    {
 212      return $this->description;
 213    }
 214    public function setKind($kind)
 215    {
 216      $this->kind = $kind;
 217    }
 218    public function getKind()
 219    {
 220      return $this->kind;
 221    }
 222    public function setSubcode($subcode)
 223    {
 224      $this->subcode = $subcode;
 225    }
 226    public function getSubcode()
 227    {
 228      return $this->subcode;
 229    }
 230  }
 231  
 232  class Google_Service_QPXExpress_CarrierData extends Google_Model
 233  {
 234    protected $internal_gapi_mappings = array(
 235    );
 236    public $code;
 237    public $kind;
 238    public $name;
 239  
 240  
 241    public function setCode($code)
 242    {
 243      $this->code = $code;
 244    }
 245    public function getCode()
 246    {
 247      return $this->code;
 248    }
 249    public function setKind($kind)
 250    {
 251      $this->kind = $kind;
 252    }
 253    public function getKind()
 254    {
 255      return $this->kind;
 256    }
 257    public function setName($name)
 258    {
 259      $this->name = $name;
 260    }
 261    public function getName()
 262    {
 263      return $this->name;
 264    }
 265  }
 266  
 267  class Google_Service_QPXExpress_CityData extends Google_Model
 268  {
 269    protected $internal_gapi_mappings = array(
 270    );
 271    public $code;
 272    public $country;
 273    public $kind;
 274    public $name;
 275  
 276  
 277    public function setCode($code)
 278    {
 279      $this->code = $code;
 280    }
 281    public function getCode()
 282    {
 283      return $this->code;
 284    }
 285    public function setCountry($country)
 286    {
 287      $this->country = $country;
 288    }
 289    public function getCountry()
 290    {
 291      return $this->country;
 292    }
 293    public function setKind($kind)
 294    {
 295      $this->kind = $kind;
 296    }
 297    public function getKind()
 298    {
 299      return $this->kind;
 300    }
 301    public function setName($name)
 302    {
 303      $this->name = $name;
 304    }
 305    public function getName()
 306    {
 307      return $this->name;
 308    }
 309  }
 310  
 311  class Google_Service_QPXExpress_Data extends Google_Collection
 312  {
 313    protected $collection_key = 'tax';
 314    protected $internal_gapi_mappings = array(
 315    );
 316    protected $aircraftType = 'Google_Service_QPXExpress_AircraftData';
 317    protected $aircraftDataType = 'array';
 318    protected $airportType = 'Google_Service_QPXExpress_AirportData';
 319    protected $airportDataType = 'array';
 320    protected $carrierType = 'Google_Service_QPXExpress_CarrierData';
 321    protected $carrierDataType = 'array';
 322    protected $cityType = 'Google_Service_QPXExpress_CityData';
 323    protected $cityDataType = 'array';
 324    public $kind;
 325    protected $taxType = 'Google_Service_QPXExpress_TaxData';
 326    protected $taxDataType = 'array';
 327  
 328  
 329    public function setAircraft($aircraft)
 330    {
 331      $this->aircraft = $aircraft;
 332    }
 333    public function getAircraft()
 334    {
 335      return $this->aircraft;
 336    }
 337    public function setAirport($airport)
 338    {
 339      $this->airport = $airport;
 340    }
 341    public function getAirport()
 342    {
 343      return $this->airport;
 344    }
 345    public function setCarrier($carrier)
 346    {
 347      $this->carrier = $carrier;
 348    }
 349    public function getCarrier()
 350    {
 351      return $this->carrier;
 352    }
 353    public function setCity($city)
 354    {
 355      $this->city = $city;
 356    }
 357    public function getCity()
 358    {
 359      return $this->city;
 360    }
 361    public function setKind($kind)
 362    {
 363      $this->kind = $kind;
 364    }
 365    public function getKind()
 366    {
 367      return $this->kind;
 368    }
 369    public function setTax($tax)
 370    {
 371      $this->tax = $tax;
 372    }
 373    public function getTax()
 374    {
 375      return $this->tax;
 376    }
 377  }
 378  
 379  class Google_Service_QPXExpress_FareInfo extends Google_Model
 380  {
 381    protected $internal_gapi_mappings = array(
 382    );
 383    public $basisCode;
 384    public $carrier;
 385    public $destination;
 386    public $id;
 387    public $kind;
 388    public $origin;
 389    public $private;
 390  
 391  
 392    public function setBasisCode($basisCode)
 393    {
 394      $this->basisCode = $basisCode;
 395    }
 396    public function getBasisCode()
 397    {
 398      return $this->basisCode;
 399    }
 400    public function setCarrier($carrier)
 401    {
 402      $this->carrier = $carrier;
 403    }
 404    public function getCarrier()
 405    {
 406      return $this->carrier;
 407    }
 408    public function setDestination($destination)
 409    {
 410      $this->destination = $destination;
 411    }
 412    public function getDestination()
 413    {
 414      return $this->destination;
 415    }
 416    public function setId($id)
 417    {
 418      $this->id = $id;
 419    }
 420    public function getId()
 421    {
 422      return $this->id;
 423    }
 424    public function setKind($kind)
 425    {
 426      $this->kind = $kind;
 427    }
 428    public function getKind()
 429    {
 430      return $this->kind;
 431    }
 432    public function setOrigin($origin)
 433    {
 434      $this->origin = $origin;
 435    }
 436    public function getOrigin()
 437    {
 438      return $this->origin;
 439    }
 440    public function setPrivate($private)
 441    {
 442      $this->private = $private;
 443    }
 444    public function getPrivate()
 445    {
 446      return $this->private;
 447    }
 448  }
 449  
 450  class Google_Service_QPXExpress_FlightInfo extends Google_Model
 451  {
 452    protected $internal_gapi_mappings = array(
 453    );
 454    public $carrier;
 455    public $number;
 456  
 457  
 458    public function setCarrier($carrier)
 459    {
 460      $this->carrier = $carrier;
 461    }
 462    public function getCarrier()
 463    {
 464      return $this->carrier;
 465    }
 466    public function setNumber($number)
 467    {
 468      $this->number = $number;
 469    }
 470    public function getNumber()
 471    {
 472      return $this->number;
 473    }
 474  }
 475  
 476  class Google_Service_QPXExpress_FreeBaggageAllowance extends Google_Collection
 477  {
 478    protected $collection_key = 'bagDescriptor';
 479    protected $internal_gapi_mappings = array(
 480    );
 481    protected $bagDescriptorType = 'Google_Service_QPXExpress_BagDescriptor';
 482    protected $bagDescriptorDataType = 'array';
 483    public $kilos;
 484    public $kilosPerPiece;
 485    public $kind;
 486    public $pieces;
 487    public $pounds;
 488  
 489  
 490    public function setBagDescriptor($bagDescriptor)
 491    {
 492      $this->bagDescriptor = $bagDescriptor;
 493    }
 494    public function getBagDescriptor()
 495    {
 496      return $this->bagDescriptor;
 497    }
 498    public function setKilos($kilos)
 499    {
 500      $this->kilos = $kilos;
 501    }
 502    public function getKilos()
 503    {
 504      return $this->kilos;
 505    }
 506    public function setKilosPerPiece($kilosPerPiece)
 507    {
 508      $this->kilosPerPiece = $kilosPerPiece;
 509    }
 510    public function getKilosPerPiece()
 511    {
 512      return $this->kilosPerPiece;
 513    }
 514    public function setKind($kind)
 515    {
 516      $this->kind = $kind;
 517    }
 518    public function getKind()
 519    {
 520      return $this->kind;
 521    }
 522    public function setPieces($pieces)
 523    {
 524      $this->pieces = $pieces;
 525    }
 526    public function getPieces()
 527    {
 528      return $this->pieces;
 529    }
 530    public function setPounds($pounds)
 531    {
 532      $this->pounds = $pounds;
 533    }
 534    public function getPounds()
 535    {
 536      return $this->pounds;
 537    }
 538  }
 539  
 540  class Google_Service_QPXExpress_LegInfo extends Google_Model
 541  {
 542    protected $internal_gapi_mappings = array(
 543    );
 544    public $aircraft;
 545    public $arrivalTime;
 546    public $changePlane;
 547    public $connectionDuration;
 548    public $departureTime;
 549    public $destination;
 550    public $destinationTerminal;
 551    public $duration;
 552    public $id;
 553    public $kind;
 554    public $meal;
 555    public $mileage;
 556    public $onTimePerformance;
 557    public $operatingDisclosure;
 558    public $origin;
 559    public $originTerminal;
 560    public $secure;
 561  
 562  
 563    public function setAircraft($aircraft)
 564    {
 565      $this->aircraft = $aircraft;
 566    }
 567    public function getAircraft()
 568    {
 569      return $this->aircraft;
 570    }
 571    public function setArrivalTime($arrivalTime)
 572    {
 573      $this->arrivalTime = $arrivalTime;
 574    }
 575    public function getArrivalTime()
 576    {
 577      return $this->arrivalTime;
 578    }
 579    public function setChangePlane($changePlane)
 580    {
 581      $this->changePlane = $changePlane;
 582    }
 583    public function getChangePlane()
 584    {
 585      return $this->changePlane;
 586    }
 587    public function setConnectionDuration($connectionDuration)
 588    {
 589      $this->connectionDuration = $connectionDuration;
 590    }
 591    public function getConnectionDuration()
 592    {
 593      return $this->connectionDuration;
 594    }
 595    public function setDepartureTime($departureTime)
 596    {
 597      $this->departureTime = $departureTime;
 598    }
 599    public function getDepartureTime()
 600    {
 601      return $this->departureTime;
 602    }
 603    public function setDestination($destination)
 604    {
 605      $this->destination = $destination;
 606    }
 607    public function getDestination()
 608    {
 609      return $this->destination;
 610    }
 611    public function setDestinationTerminal($destinationTerminal)
 612    {
 613      $this->destinationTerminal = $destinationTerminal;
 614    }
 615    public function getDestinationTerminal()
 616    {
 617      return $this->destinationTerminal;
 618    }
 619    public function setDuration($duration)
 620    {
 621      $this->duration = $duration;
 622    }
 623    public function getDuration()
 624    {
 625      return $this->duration;
 626    }
 627    public function setId($id)
 628    {
 629      $this->id = $id;
 630    }
 631    public function getId()
 632    {
 633      return $this->id;
 634    }
 635    public function setKind($kind)
 636    {
 637      $this->kind = $kind;
 638    }
 639    public function getKind()
 640    {
 641      return $this->kind;
 642    }
 643    public function setMeal($meal)
 644    {
 645      $this->meal = $meal;
 646    }
 647    public function getMeal()
 648    {
 649      return $this->meal;
 650    }
 651    public function setMileage($mileage)
 652    {
 653      $this->mileage = $mileage;
 654    }
 655    public function getMileage()
 656    {
 657      return $this->mileage;
 658    }
 659    public function setOnTimePerformance($onTimePerformance)
 660    {
 661      $this->onTimePerformance = $onTimePerformance;
 662    }
 663    public function getOnTimePerformance()
 664    {
 665      return $this->onTimePerformance;
 666    }
 667    public function setOperatingDisclosure($operatingDisclosure)
 668    {
 669      $this->operatingDisclosure = $operatingDisclosure;
 670    }
 671    public function getOperatingDisclosure()
 672    {
 673      return $this->operatingDisclosure;
 674    }
 675    public function setOrigin($origin)
 676    {
 677      $this->origin = $origin;
 678    }
 679    public function getOrigin()
 680    {
 681      return $this->origin;
 682    }
 683    public function setOriginTerminal($originTerminal)
 684    {
 685      $this->originTerminal = $originTerminal;
 686    }
 687    public function getOriginTerminal()
 688    {
 689      return $this->originTerminal;
 690    }
 691    public function setSecure($secure)
 692    {
 693      $this->secure = $secure;
 694    }
 695    public function getSecure()
 696    {
 697      return $this->secure;
 698    }
 699  }
 700  
 701  class Google_Service_QPXExpress_PassengerCounts extends Google_Model
 702  {
 703    protected $internal_gapi_mappings = array(
 704    );
 705    public $adultCount;
 706    public $childCount;
 707    public $infantInLapCount;
 708    public $infantInSeatCount;
 709    public $kind;
 710    public $seniorCount;
 711  
 712  
 713    public function setAdultCount($adultCount)
 714    {
 715      $this->adultCount = $adultCount;
 716    }
 717    public function getAdultCount()
 718    {
 719      return $this->adultCount;
 720    }
 721    public function setChildCount($childCount)
 722    {
 723      $this->childCount = $childCount;
 724    }
 725    public function getChildCount()
 726    {
 727      return $this->childCount;
 728    }
 729    public function setInfantInLapCount($infantInLapCount)
 730    {
 731      $this->infantInLapCount = $infantInLapCount;
 732    }
 733    public function getInfantInLapCount()
 734    {
 735      return $this->infantInLapCount;
 736    }
 737    public function setInfantInSeatCount($infantInSeatCount)
 738    {
 739      $this->infantInSeatCount = $infantInSeatCount;
 740    }
 741    public function getInfantInSeatCount()
 742    {
 743      return $this->infantInSeatCount;
 744    }
 745    public function setKind($kind)
 746    {
 747      $this->kind = $kind;
 748    }
 749    public function getKind()
 750    {
 751      return $this->kind;
 752    }
 753    public function setSeniorCount($seniorCount)
 754    {
 755      $this->seniorCount = $seniorCount;
 756    }
 757    public function getSeniorCount()
 758    {
 759      return $this->seniorCount;
 760    }
 761  }
 762  
 763  class Google_Service_QPXExpress_PricingInfo extends Google_Collection
 764  {
 765    protected $collection_key = 'tax';
 766    protected $internal_gapi_mappings = array(
 767    );
 768    public $baseFareTotal;
 769    protected $fareType = 'Google_Service_QPXExpress_FareInfo';
 770    protected $fareDataType = 'array';
 771    public $fareCalculation;
 772    public $kind;
 773    public $latestTicketingTime;
 774    protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts';
 775    protected $passengersDataType = '';
 776    public $ptc;
 777    public $refundable;
 778    public $saleFareTotal;
 779    public $saleTaxTotal;
 780    public $saleTotal;
 781    protected $segmentPricingType = 'Google_Service_QPXExpress_SegmentPricing';
 782    protected $segmentPricingDataType = 'array';
 783    protected $taxType = 'Google_Service_QPXExpress_TaxInfo';
 784    protected $taxDataType = 'array';
 785  
 786  
 787    public function setBaseFareTotal($baseFareTotal)
 788    {
 789      $this->baseFareTotal = $baseFareTotal;
 790    }
 791    public function getBaseFareTotal()
 792    {
 793      return $this->baseFareTotal;
 794    }
 795    public function setFare($fare)
 796    {
 797      $this->fare = $fare;
 798    }
 799    public function getFare()
 800    {
 801      return $this->fare;
 802    }
 803    public function setFareCalculation($fareCalculation)
 804    {
 805      $this->fareCalculation = $fareCalculation;
 806    }
 807    public function getFareCalculation()
 808    {
 809      return $this->fareCalculation;
 810    }
 811    public function setKind($kind)
 812    {
 813      $this->kind = $kind;
 814    }
 815    public function getKind()
 816    {
 817      return $this->kind;
 818    }
 819    public function setLatestTicketingTime($latestTicketingTime)
 820    {
 821      $this->latestTicketingTime = $latestTicketingTime;
 822    }
 823    public function getLatestTicketingTime()
 824    {
 825      return $this->latestTicketingTime;
 826    }
 827    public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers)
 828    {
 829      $this->passengers = $passengers;
 830    }
 831    public function getPassengers()
 832    {
 833      return $this->passengers;
 834    }
 835    public function setPtc($ptc)
 836    {
 837      $this->ptc = $ptc;
 838    }
 839    public function getPtc()
 840    {
 841      return $this->ptc;
 842    }
 843    public function setRefundable($refundable)
 844    {
 845      $this->refundable = $refundable;
 846    }
 847    public function getRefundable()
 848    {
 849      return $this->refundable;
 850    }
 851    public function setSaleFareTotal($saleFareTotal)
 852    {
 853      $this->saleFareTotal = $saleFareTotal;
 854    }
 855    public function getSaleFareTotal()
 856    {
 857      return $this->saleFareTotal;
 858    }
 859    public function setSaleTaxTotal($saleTaxTotal)
 860    {
 861      $this->saleTaxTotal = $saleTaxTotal;
 862    }
 863    public function getSaleTaxTotal()
 864    {
 865      return $this->saleTaxTotal;
 866    }
 867    public function setSaleTotal($saleTotal)
 868    {
 869      $this->saleTotal = $saleTotal;
 870    }
 871    public function getSaleTotal()
 872    {
 873      return $this->saleTotal;
 874    }
 875    public function setSegmentPricing($segmentPricing)
 876    {
 877      $this->segmentPricing = $segmentPricing;
 878    }
 879    public function getSegmentPricing()
 880    {
 881      return $this->segmentPricing;
 882    }
 883    public function setTax($tax)
 884    {
 885      $this->tax = $tax;
 886    }
 887    public function getTax()
 888    {
 889      return $this->tax;
 890    }
 891  }
 892  
 893  class Google_Service_QPXExpress_SegmentInfo extends Google_Collection
 894  {
 895    protected $collection_key = 'leg';
 896    protected $internal_gapi_mappings = array(
 897    );
 898    public $bookingCode;
 899    public $bookingCodeCount;
 900    public $cabin;
 901    public $connectionDuration;
 902    public $duration;
 903    protected $flightType = 'Google_Service_QPXExpress_FlightInfo';
 904    protected $flightDataType = '';
 905    public $id;
 906    public $kind;
 907    protected $legType = 'Google_Service_QPXExpress_LegInfo';
 908    protected $legDataType = 'array';
 909    public $marriedSegmentGroup;
 910    public $subjectToGovernmentApproval;
 911  
 912  
 913    public function setBookingCode($bookingCode)
 914    {
 915      $this->bookingCode = $bookingCode;
 916    }
 917    public function getBookingCode()
 918    {
 919      return $this->bookingCode;
 920    }
 921    public function setBookingCodeCount($bookingCodeCount)
 922    {
 923      $this->bookingCodeCount = $bookingCodeCount;
 924    }
 925    public function getBookingCodeCount()
 926    {
 927      return $this->bookingCodeCount;
 928    }
 929    public function setCabin($cabin)
 930    {
 931      $this->cabin = $cabin;
 932    }
 933    public function getCabin()
 934    {
 935      return $this->cabin;
 936    }
 937    public function setConnectionDuration($connectionDuration)
 938    {
 939      $this->connectionDuration = $connectionDuration;
 940    }
 941    public function getConnectionDuration()
 942    {
 943      return $this->connectionDuration;
 944    }
 945    public function setDuration($duration)
 946    {
 947      $this->duration = $duration;
 948    }
 949    public function getDuration()
 950    {
 951      return $this->duration;
 952    }
 953    public function setFlight(Google_Service_QPXExpress_FlightInfo $flight)
 954    {
 955      $this->flight = $flight;
 956    }
 957    public function getFlight()
 958    {
 959      return $this->flight;
 960    }
 961    public function setId($id)
 962    {
 963      $this->id = $id;
 964    }
 965    public function getId()
 966    {
 967      return $this->id;
 968    }
 969    public function setKind($kind)
 970    {
 971      $this->kind = $kind;
 972    }
 973    public function getKind()
 974    {
 975      return $this->kind;
 976    }
 977    public function setLeg($leg)
 978    {
 979      $this->leg = $leg;
 980    }
 981    public function getLeg()
 982    {
 983      return $this->leg;
 984    }
 985    public function setMarriedSegmentGroup($marriedSegmentGroup)
 986    {
 987      $this->marriedSegmentGroup = $marriedSegmentGroup;
 988    }
 989    public function getMarriedSegmentGroup()
 990    {
 991      return $this->marriedSegmentGroup;
 992    }
 993    public function setSubjectToGovernmentApproval($subjectToGovernmentApproval)
 994    {
 995      $this->subjectToGovernmentApproval = $subjectToGovernmentApproval;
 996    }
 997    public function getSubjectToGovernmentApproval()
 998    {
 999      return $this->subjectToGovernmentApproval;
1000    }
1001  }
1002  
1003  class Google_Service_QPXExpress_SegmentPricing extends Google_Collection
1004  {
1005    protected $collection_key = 'freeBaggageOption';
1006    protected $internal_gapi_mappings = array(
1007    );
1008    public $fareId;
1009    protected $freeBaggageOptionType = 'Google_Service_QPXExpress_FreeBaggageAllowance';
1010    protected $freeBaggageOptionDataType = 'array';
1011    public $kind;
1012    public $segmentId;
1013  
1014  
1015    public function setFareId($fareId)
1016    {
1017      $this->fareId = $fareId;
1018    }
1019    public function getFareId()
1020    {
1021      return $this->fareId;
1022    }
1023    public function setFreeBaggageOption($freeBaggageOption)
1024    {
1025      $this->freeBaggageOption = $freeBaggageOption;
1026    }
1027    public function getFreeBaggageOption()
1028    {
1029      return $this->freeBaggageOption;
1030    }
1031    public function setKind($kind)
1032    {
1033      $this->kind = $kind;
1034    }
1035    public function getKind()
1036    {
1037      return $this->kind;
1038    }
1039    public function setSegmentId($segmentId)
1040    {
1041      $this->segmentId = $segmentId;
1042    }
1043    public function getSegmentId()
1044    {
1045      return $this->segmentId;
1046    }
1047  }
1048  
1049  class Google_Service_QPXExpress_SliceInfo extends Google_Collection
1050  {
1051    protected $collection_key = 'segment';
1052    protected $internal_gapi_mappings = array(
1053    );
1054    public $duration;
1055    public $kind;
1056    protected $segmentType = 'Google_Service_QPXExpress_SegmentInfo';
1057    protected $segmentDataType = 'array';
1058  
1059  
1060    public function setDuration($duration)
1061    {
1062      $this->duration = $duration;
1063    }
1064    public function getDuration()
1065    {
1066      return $this->duration;
1067    }
1068    public function setKind($kind)
1069    {
1070      $this->kind = $kind;
1071    }
1072    public function getKind()
1073    {
1074      return $this->kind;
1075    }
1076    public function setSegment($segment)
1077    {
1078      $this->segment = $segment;
1079    }
1080    public function getSegment()
1081    {
1082      return $this->segment;
1083    }
1084  }
1085  
1086  class Google_Service_QPXExpress_SliceInput extends Google_Collection
1087  {
1088    protected $collection_key = 'prohibitedCarrier';
1089    protected $internal_gapi_mappings = array(
1090    );
1091    public $alliance;
1092    public $date;
1093    public $destination;
1094    public $kind;
1095    public $maxConnectionDuration;
1096    public $maxStops;
1097    public $origin;
1098    public $permittedCarrier;
1099    protected $permittedDepartureTimeType = 'Google_Service_QPXExpress_TimeOfDayRange';
1100    protected $permittedDepartureTimeDataType = '';
1101    public $preferredCabin;
1102    public $prohibitedCarrier;
1103  
1104  
1105    public function setAlliance($alliance)
1106    {
1107      $this->alliance = $alliance;
1108    }
1109    public function getAlliance()
1110    {
1111      return $this->alliance;
1112    }
1113    public function setDate($date)
1114    {
1115      $this->date = $date;
1116    }
1117    public function getDate()
1118    {
1119      return $this->date;
1120    }
1121    public function setDestination($destination)
1122    {
1123      $this->destination = $destination;
1124    }
1125    public function getDestination()
1126    {
1127      return $this->destination;
1128    }
1129    public function setKind($kind)
1130    {
1131      $this->kind = $kind;
1132    }
1133    public function getKind()
1134    {
1135      return $this->kind;
1136    }
1137    public function setMaxConnectionDuration($maxConnectionDuration)
1138    {
1139      $this->maxConnectionDuration = $maxConnectionDuration;
1140    }
1141    public function getMaxConnectionDuration()
1142    {
1143      return $this->maxConnectionDuration;
1144    }
1145    public function setMaxStops($maxStops)
1146    {
1147      $this->maxStops = $maxStops;
1148    }
1149    public function getMaxStops()
1150    {
1151      return $this->maxStops;
1152    }
1153    public function setOrigin($origin)
1154    {
1155      $this->origin = $origin;
1156    }
1157    public function getOrigin()
1158    {
1159      return $this->origin;
1160    }
1161    public function setPermittedCarrier($permittedCarrier)
1162    {
1163      $this->permittedCarrier = $permittedCarrier;
1164    }
1165    public function getPermittedCarrier()
1166    {
1167      return $this->permittedCarrier;
1168    }
1169    public function setPermittedDepartureTime(Google_Service_QPXExpress_TimeOfDayRange $permittedDepartureTime)
1170    {
1171      $this->permittedDepartureTime = $permittedDepartureTime;
1172    }
1173    public function getPermittedDepartureTime()
1174    {
1175      return $this->permittedDepartureTime;
1176    }
1177    public function setPreferredCabin($preferredCabin)
1178    {
1179      $this->preferredCabin = $preferredCabin;
1180    }
1181    public function getPreferredCabin()
1182    {
1183      return $this->preferredCabin;
1184    }
1185    public function setProhibitedCarrier($prohibitedCarrier)
1186    {
1187      $this->prohibitedCarrier = $prohibitedCarrier;
1188    }
1189    public function getProhibitedCarrier()
1190    {
1191      return $this->prohibitedCarrier;
1192    }
1193  }
1194  
1195  class Google_Service_QPXExpress_TaxData extends Google_Model
1196  {
1197    protected $internal_gapi_mappings = array(
1198    );
1199    public $id;
1200    public $kind;
1201    public $name;
1202  
1203  
1204    public function setId($id)
1205    {
1206      $this->id = $id;
1207    }
1208    public function getId()
1209    {
1210      return $this->id;
1211    }
1212    public function setKind($kind)
1213    {
1214      $this->kind = $kind;
1215    }
1216    public function getKind()
1217    {
1218      return $this->kind;
1219    }
1220    public function setName($name)
1221    {
1222      $this->name = $name;
1223    }
1224    public function getName()
1225    {
1226      return $this->name;
1227    }
1228  }
1229  
1230  class Google_Service_QPXExpress_TaxInfo extends Google_Model
1231  {
1232    protected $internal_gapi_mappings = array(
1233    );
1234    public $chargeType;
1235    public $code;
1236    public $country;
1237    public $id;
1238    public $kind;
1239    public $salePrice;
1240  
1241  
1242    public function setChargeType($chargeType)
1243    {
1244      $this->chargeType = $chargeType;
1245    }
1246    public function getChargeType()
1247    {
1248      return $this->chargeType;
1249    }
1250    public function setCode($code)
1251    {
1252      $this->code = $code;
1253    }
1254    public function getCode()
1255    {
1256      return $this->code;
1257    }
1258    public function setCountry($country)
1259    {
1260      $this->country = $country;
1261    }
1262    public function getCountry()
1263    {
1264      return $this->country;
1265    }
1266    public function setId($id)
1267    {
1268      $this->id = $id;
1269    }
1270    public function getId()
1271    {
1272      return $this->id;
1273    }
1274    public function setKind($kind)
1275    {
1276      $this->kind = $kind;
1277    }
1278    public function getKind()
1279    {
1280      return $this->kind;
1281    }
1282    public function setSalePrice($salePrice)
1283    {
1284      $this->salePrice = $salePrice;
1285    }
1286    public function getSalePrice()
1287    {
1288      return $this->salePrice;
1289    }
1290  }
1291  
1292  class Google_Service_QPXExpress_TimeOfDayRange extends Google_Model
1293  {
1294    protected $internal_gapi_mappings = array(
1295    );
1296    public $earliestTime;
1297    public $kind;
1298    public $latestTime;
1299  
1300  
1301    public function setEarliestTime($earliestTime)
1302    {
1303      $this->earliestTime = $earliestTime;
1304    }
1305    public function getEarliestTime()
1306    {
1307      return $this->earliestTime;
1308    }
1309    public function setKind($kind)
1310    {
1311      $this->kind = $kind;
1312    }
1313    public function getKind()
1314    {
1315      return $this->kind;
1316    }
1317    public function setLatestTime($latestTime)
1318    {
1319      $this->latestTime = $latestTime;
1320    }
1321    public function getLatestTime()
1322    {
1323      return $this->latestTime;
1324    }
1325  }
1326  
1327  class Google_Service_QPXExpress_TripOption extends Google_Collection
1328  {
1329    protected $collection_key = 'slice';
1330    protected $internal_gapi_mappings = array(
1331    );
1332    public $id;
1333    public $kind;
1334    protected $pricingType = 'Google_Service_QPXExpress_PricingInfo';
1335    protected $pricingDataType = 'array';
1336    public $saleTotal;
1337    protected $sliceType = 'Google_Service_QPXExpress_SliceInfo';
1338    protected $sliceDataType = 'array';
1339  
1340  
1341    public function setId($id)
1342    {
1343      $this->id = $id;
1344    }
1345    public function getId()
1346    {
1347      return $this->id;
1348    }
1349    public function setKind($kind)
1350    {
1351      $this->kind = $kind;
1352    }
1353    public function getKind()
1354    {
1355      return $this->kind;
1356    }
1357    public function setPricing($pricing)
1358    {
1359      $this->pricing = $pricing;
1360    }
1361    public function getPricing()
1362    {
1363      return $this->pricing;
1364    }
1365    public function setSaleTotal($saleTotal)
1366    {
1367      $this->saleTotal = $saleTotal;
1368    }
1369    public function getSaleTotal()
1370    {
1371      return $this->saleTotal;
1372    }
1373    public function setSlice($slice)
1374    {
1375      $this->slice = $slice;
1376    }
1377    public function getSlice()
1378    {
1379      return $this->slice;
1380    }
1381  }
1382  
1383  class Google_Service_QPXExpress_TripOptionsRequest extends Google_Collection
1384  {
1385    protected $collection_key = 'slice';
1386    protected $internal_gapi_mappings = array(
1387    );
1388    public $maxPrice;
1389    protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts';
1390    protected $passengersDataType = '';
1391    public $refundable;
1392    public $saleCountry;
1393    protected $sliceType = 'Google_Service_QPXExpress_SliceInput';
1394    protected $sliceDataType = 'array';
1395    public $solutions;
1396  
1397  
1398    public function setMaxPrice($maxPrice)
1399    {
1400      $this->maxPrice = $maxPrice;
1401    }
1402    public function getMaxPrice()
1403    {
1404      return $this->maxPrice;
1405    }
1406    public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers)
1407    {
1408      $this->passengers = $passengers;
1409    }
1410    public function getPassengers()
1411    {
1412      return $this->passengers;
1413    }
1414    public function setRefundable($refundable)
1415    {
1416      $this->refundable = $refundable;
1417    }
1418    public function getRefundable()
1419    {
1420      return $this->refundable;
1421    }
1422    public function setSaleCountry($saleCountry)
1423    {
1424      $this->saleCountry = $saleCountry;
1425    }
1426    public function getSaleCountry()
1427    {
1428      return $this->saleCountry;
1429    }
1430    public function setSlice($slice)
1431    {
1432      $this->slice = $slice;
1433    }
1434    public function getSlice()
1435    {
1436      return $this->slice;
1437    }
1438    public function setSolutions($solutions)
1439    {
1440      $this->solutions = $solutions;
1441    }
1442    public function getSolutions()
1443    {
1444      return $this->solutions;
1445    }
1446  }
1447  
1448  class Google_Service_QPXExpress_TripOptionsResponse extends Google_Collection
1449  {
1450    protected $collection_key = 'tripOption';
1451    protected $internal_gapi_mappings = array(
1452    );
1453    protected $dataType = 'Google_Service_QPXExpress_Data';
1454    protected $dataDataType = '';
1455    public $kind;
1456    public $requestId;
1457    protected $tripOptionType = 'Google_Service_QPXExpress_TripOption';
1458    protected $tripOptionDataType = 'array';
1459  
1460  
1461    public function setData(Google_Service_QPXExpress_Data $data)
1462    {
1463      $this->data = $data;
1464    }
1465    public function getData()
1466    {
1467      return $this->data;
1468    }
1469    public function setKind($kind)
1470    {
1471      $this->kind = $kind;
1472    }
1473    public function getKind()
1474    {
1475      return $this->kind;
1476    }
1477    public function setRequestId($requestId)
1478    {
1479      $this->requestId = $requestId;
1480    }
1481    public function getRequestId()
1482    {
1483      return $this->requestId;
1484    }
1485    public function setTripOption($tripOption)
1486    {
1487      $this->tripOption = $tripOption;
1488    }
1489    public function getTripOption()
1490    {
1491      return $this->tripOption;
1492    }
1493  }
1494  
1495  class Google_Service_QPXExpress_TripsSearchRequest extends Google_Model
1496  {
1497    protected $internal_gapi_mappings = array(
1498    );
1499    protected $requestType = 'Google_Service_QPXExpress_TripOptionsRequest';
1500    protected $requestDataType = '';
1501  
1502  
1503    public function setRequest(Google_Service_QPXExpress_TripOptionsRequest $request)
1504    {
1505      $this->request = $request;
1506    }
1507    public function getRequest()
1508    {
1509      return $this->request;
1510    }
1511  }
1512  
1513  class Google_Service_QPXExpress_TripsSearchResponse extends Google_Model
1514  {
1515    protected $internal_gapi_mappings = array(
1516    );
1517    public $kind;
1518    protected $tripsType = 'Google_Service_QPXExpress_TripOptionsResponse';
1519    protected $tripsDataType = '';
1520  
1521  
1522    public function setKind($kind)
1523    {
1524      $this->kind = $kind;
1525    }
1526    public function getKind()
1527    {
1528      return $this->kind;
1529    }
1530    public function setTrips(Google_Service_QPXExpress_TripOptionsResponse $trips)
1531    {
1532      $this->trips = $trips;
1533    }
1534    public function getTrips()
1535    {
1536      return $this->trips;
1537    }
1538  }