Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 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 CivicInfo (v2).
  20   *
  21   * <p>
  22   * An API for accessing civic information.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://developers.google.com/civic-information" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  class Google_Service_CivicInfo extends Google_Service
  32  {
  33  
  34  
  35    public $divisions;
  36    public $elections;
  37    public $representatives;
  38    
  39  
  40    /**
  41     * Constructs the internal representation of the CivicInfo service.
  42     *
  43     * @param Google_Client $client
  44     */
  45    public function __construct(Google_Client $client)
  46    {
  47      parent::__construct($client);
  48      $this->rootUrl = 'https://www.googleapis.com/';
  49      $this->servicePath = 'civicinfo/v2/';
  50      $this->version = 'v2';
  51      $this->serviceName = 'civicinfo';
  52  
  53      $this->divisions = new Google_Service_CivicInfo_Divisions_Resource(
  54          $this,
  55          $this->serviceName,
  56          'divisions',
  57          array(
  58            'methods' => array(
  59              'search' => array(
  60                'path' => 'divisions',
  61                'httpMethod' => 'GET',
  62                'parameters' => array(
  63                  'query' => array(
  64                    'location' => 'query',
  65                    'type' => 'string',
  66                  ),
  67                ),
  68              ),
  69            )
  70          )
  71      );
  72      $this->elections = new Google_Service_CivicInfo_Elections_Resource(
  73          $this,
  74          $this->serviceName,
  75          'elections',
  76          array(
  77            'methods' => array(
  78              'electionQuery' => array(
  79                'path' => 'elections',
  80                'httpMethod' => 'GET',
  81                'parameters' => array(),
  82              ),'voterInfoQuery' => array(
  83                'path' => 'voterinfo',
  84                'httpMethod' => 'GET',
  85                'parameters' => array(
  86                  'address' => array(
  87                    'location' => 'query',
  88                    'type' => 'string',
  89                    'required' => true,
  90                  ),
  91                  'electionId' => array(
  92                    'location' => 'query',
  93                    'type' => 'string',
  94                  ),
  95                  'officialOnly' => array(
  96                    'location' => 'query',
  97                    'type' => 'boolean',
  98                  ),
  99                ),
 100              ),
 101            )
 102          )
 103      );
 104      $this->representatives = new Google_Service_CivicInfo_Representatives_Resource(
 105          $this,
 106          $this->serviceName,
 107          'representatives',
 108          array(
 109            'methods' => array(
 110              'representativeInfoByAddress' => array(
 111                'path' => 'representatives',
 112                'httpMethod' => 'GET',
 113                'parameters' => array(
 114                  'includeOffices' => array(
 115                    'location' => 'query',
 116                    'type' => 'boolean',
 117                  ),
 118                  'levels' => array(
 119                    'location' => 'query',
 120                    'type' => 'string',
 121                    'repeated' => true,
 122                  ),
 123                  'roles' => array(
 124                    'location' => 'query',
 125                    'type' => 'string',
 126                    'repeated' => true,
 127                  ),
 128                  'address' => array(
 129                    'location' => 'query',
 130                    'type' => 'string',
 131                  ),
 132                ),
 133              ),'representativeInfoByDivision' => array(
 134                'path' => 'representatives/{ocdId}',
 135                'httpMethod' => 'GET',
 136                'parameters' => array(
 137                  'ocdId' => array(
 138                    'location' => 'path',
 139                    'type' => 'string',
 140                    'required' => true,
 141                  ),
 142                  'levels' => array(
 143                    'location' => 'query',
 144                    'type' => 'string',
 145                    'repeated' => true,
 146                  ),
 147                  'recursive' => array(
 148                    'location' => 'query',
 149                    'type' => 'boolean',
 150                  ),
 151                  'roles' => array(
 152                    'location' => 'query',
 153                    'type' => 'string',
 154                    'repeated' => true,
 155                  ),
 156                ),
 157              ),
 158            )
 159          )
 160      );
 161    }
 162  }
 163  
 164  
 165  /**
 166   * The "divisions" collection of methods.
 167   * Typical usage is:
 168   *  <code>
 169   *   $civicinfoService = new Google_Service_CivicInfo(...);
 170   *   $divisions = $civicinfoService->divisions;
 171   *  </code>
 172   */
 173  class Google_Service_CivicInfo_Divisions_Resource extends Google_Service_Resource
 174  {
 175  
 176    /**
 177     * Searches for political divisions by their natural name or OCD ID.
 178     * (divisions.search)
 179     *
 180     * @param array $optParams Optional parameters.
 181     *
 182     * @opt_param string query The search query. Queries can cover any parts of a
 183     * OCD ID or a human readable division name. All words given in the query are
 184     * treated as required patterns. In addition to that, most query operators of
 185     * the Apache Lucene library are supported. See
 186     * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html
 187     * @return Google_Service_CivicInfo_DivisionSearchResponse
 188     */
 189    public function search($optParams = array())
 190    {
 191      $params = array();
 192      $params = array_merge($params, $optParams);
 193      return $this->call('search', array($params), "Google_Service_CivicInfo_DivisionSearchResponse");
 194    }
 195  }
 196  
 197  /**
 198   * The "elections" collection of methods.
 199   * Typical usage is:
 200   *  <code>
 201   *   $civicinfoService = new Google_Service_CivicInfo(...);
 202   *   $elections = $civicinfoService->elections;
 203   *  </code>
 204   */
 205  class Google_Service_CivicInfo_Elections_Resource extends Google_Service_Resource
 206  {
 207  
 208    /**
 209     * List of available elections to query. (elections.electionQuery)
 210     *
 211     * @param array $optParams Optional parameters.
 212     * @return Google_Service_CivicInfo_ElectionsQueryResponse
 213     */
 214    public function electionQuery($optParams = array())
 215    {
 216      $params = array();
 217      $params = array_merge($params, $optParams);
 218      return $this->call('electionQuery', array($params), "Google_Service_CivicInfo_ElectionsQueryResponse");
 219    }
 220  
 221    /**
 222     * Looks up information relevant to a voter based on the voter's registered
 223     * address. (elections.voterInfoQuery)
 224     *
 225     * @param string $address The registered address of the voter to look up.
 226     * @param array $optParams Optional parameters.
 227     *
 228     * @opt_param string electionId The unique ID of the election to look up. A list
 229     * of election IDs can be obtained at
 230     * https://www.googleapis.com/civicinfo/{version}/elections
 231     * @opt_param bool officialOnly If set to true, only data from official state
 232     * sources will be returned.
 233     * @return Google_Service_CivicInfo_VoterInfoResponse
 234     */
 235    public function voterInfoQuery($address, $optParams = array())
 236    {
 237      $params = array('address' => $address);
 238      $params = array_merge($params, $optParams);
 239      return $this->call('voterInfoQuery', array($params), "Google_Service_CivicInfo_VoterInfoResponse");
 240    }
 241  }
 242  
 243  /**
 244   * The "representatives" collection of methods.
 245   * Typical usage is:
 246   *  <code>
 247   *   $civicinfoService = new Google_Service_CivicInfo(...);
 248   *   $representatives = $civicinfoService->representatives;
 249   *  </code>
 250   */
 251  class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_Resource
 252  {
 253  
 254    /**
 255     * Looks up political geography and representative information for a single
 256     * address. (representatives.representativeInfoByAddress)
 257     *
 258     * @param array $optParams Optional parameters.
 259     *
 260     * @opt_param bool includeOffices Whether to return information about offices
 261     * and officials. If false, only the top-level district information will be
 262     * returned.
 263     * @opt_param string levels A list of office levels to filter by. Only offices
 264     * that serve at least one of these levels will be returned. Divisions that
 265     * don't contain a matching office will not be returned.
 266     * @opt_param string roles A list of office roles to filter by. Only offices
 267     * fulfilling one of these roles will be returned. Divisions that don't contain
 268     * a matching office will not be returned.
 269     * @opt_param string address The address to look up. May only be specified if
 270     * the field ocdId is not given in the URL.
 271     * @return Google_Service_CivicInfo_RepresentativeInfoResponse
 272     */
 273    public function representativeInfoByAddress($optParams = array())
 274    {
 275      $params = array();
 276      $params = array_merge($params, $optParams);
 277      return $this->call('representativeInfoByAddress', array($params), "Google_Service_CivicInfo_RepresentativeInfoResponse");
 278    }
 279  
 280    /**
 281     * Looks up representative information for a single geographic division.
 282     * (representatives.representativeInfoByDivision)
 283     *
 284     * @param string $ocdId The Open Civic Data division identifier of the division
 285     * to look up.
 286     * @param array $optParams Optional parameters.
 287     *
 288     * @opt_param string levels A list of office levels to filter by. Only offices
 289     * that serve at least one of these levels will be returned. Divisions that
 290     * don't contain a matching office will not be returned.
 291     * @opt_param bool recursive If true, information about all divisions contained
 292     * in the division requested will be included as well. For example, if querying
 293     * ocd-division/country:us/district:dc, this would also return all DC's wards
 294     * and ANCs.
 295     * @opt_param string roles A list of office roles to filter by. Only offices
 296     * fulfilling one of these roles will be returned. Divisions that don't contain
 297     * a matching office will not be returned.
 298     * @return Google_Service_CivicInfo_RepresentativeInfoData
 299     */
 300    public function representativeInfoByDivision($ocdId, $optParams = array())
 301    {
 302      $params = array('ocdId' => $ocdId);
 303      $params = array_merge($params, $optParams);
 304      return $this->call('representativeInfoByDivision', array($params), "Google_Service_CivicInfo_RepresentativeInfoData");
 305    }
 306  }
 307  
 308  
 309  
 310  
 311  class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection
 312  {
 313    protected $collection_key = 'sources';
 314    protected $internal_gapi_mappings = array(
 315          "localJurisdiction" => "local_jurisdiction",
 316    );
 317    protected $electionAdministrationBodyType = 'Google_Service_CivicInfo_AdministrativeBody';
 318    protected $electionAdministrationBodyDataType = '';
 319    public $id;
 320    protected $localJurisdictionType = 'Google_Service_CivicInfo_AdministrationRegion';
 321    protected $localJurisdictionDataType = '';
 322    public $name;
 323    protected $sourcesType = 'Google_Service_CivicInfo_Source';
 324    protected $sourcesDataType = 'array';
 325  
 326  
 327    public function setElectionAdministrationBody(Google_Service_CivicInfo_AdministrativeBody $electionAdministrationBody)
 328    {
 329      $this->electionAdministrationBody = $electionAdministrationBody;
 330    }
 331    public function getElectionAdministrationBody()
 332    {
 333      return $this->electionAdministrationBody;
 334    }
 335    public function setId($id)
 336    {
 337      $this->id = $id;
 338    }
 339    public function getId()
 340    {
 341      return $this->id;
 342    }
 343    public function setLocalJurisdiction(Google_Service_CivicInfo_AdministrationRegion $localJurisdiction)
 344    {
 345      $this->localJurisdiction = $localJurisdiction;
 346    }
 347    public function getLocalJurisdiction()
 348    {
 349      return $this->localJurisdiction;
 350    }
 351    public function setName($name)
 352    {
 353      $this->name = $name;
 354    }
 355    public function getName()
 356    {
 357      return $this->name;
 358    }
 359    public function setSources($sources)
 360    {
 361      $this->sources = $sources;
 362    }
 363    public function getSources()
 364    {
 365      return $this->sources;
 366    }
 367  }
 368  
 369  class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection
 370  {
 371    protected $collection_key = 'voter_services';
 372    protected $internal_gapi_mappings = array(
 373          "voterServices" => "voter_services",
 374    );
 375    public $absenteeVotingInfoUrl;
 376    public $ballotInfoUrl;
 377    protected $correspondenceAddressType = 'Google_Service_CivicInfo_SimpleAddressType';
 378    protected $correspondenceAddressDataType = '';
 379    public $electionInfoUrl;
 380    protected $electionOfficialsType = 'Google_Service_CivicInfo_ElectionOfficial';
 381    protected $electionOfficialsDataType = 'array';
 382    public $electionRegistrationConfirmationUrl;
 383    public $electionRegistrationUrl;
 384    public $electionRulesUrl;
 385    public $hoursOfOperation;
 386    public $name;
 387    protected $physicalAddressType = 'Google_Service_CivicInfo_SimpleAddressType';
 388    protected $physicalAddressDataType = '';
 389    public $voterServices;
 390    public $votingLocationFinderUrl;
 391  
 392  
 393    public function setAbsenteeVotingInfoUrl($absenteeVotingInfoUrl)
 394    {
 395      $this->absenteeVotingInfoUrl = $absenteeVotingInfoUrl;
 396    }
 397    public function getAbsenteeVotingInfoUrl()
 398    {
 399      return $this->absenteeVotingInfoUrl;
 400    }
 401    public function setBallotInfoUrl($ballotInfoUrl)
 402    {
 403      $this->ballotInfoUrl = $ballotInfoUrl;
 404    }
 405    public function getBallotInfoUrl()
 406    {
 407      return $this->ballotInfoUrl;
 408    }
 409    public function setCorrespondenceAddress(Google_Service_CivicInfo_SimpleAddressType $correspondenceAddress)
 410    {
 411      $this->correspondenceAddress = $correspondenceAddress;
 412    }
 413    public function getCorrespondenceAddress()
 414    {
 415      return $this->correspondenceAddress;
 416    }
 417    public function setElectionInfoUrl($electionInfoUrl)
 418    {
 419      $this->electionInfoUrl = $electionInfoUrl;
 420    }
 421    public function getElectionInfoUrl()
 422    {
 423      return $this->electionInfoUrl;
 424    }
 425    public function setElectionOfficials($electionOfficials)
 426    {
 427      $this->electionOfficials = $electionOfficials;
 428    }
 429    public function getElectionOfficials()
 430    {
 431      return $this->electionOfficials;
 432    }
 433    public function setElectionRegistrationConfirmationUrl($electionRegistrationConfirmationUrl)
 434    {
 435      $this->electionRegistrationConfirmationUrl = $electionRegistrationConfirmationUrl;
 436    }
 437    public function getElectionRegistrationConfirmationUrl()
 438    {
 439      return $this->electionRegistrationConfirmationUrl;
 440    }
 441    public function setElectionRegistrationUrl($electionRegistrationUrl)
 442    {
 443      $this->electionRegistrationUrl = $electionRegistrationUrl;
 444    }
 445    public function getElectionRegistrationUrl()
 446    {
 447      return $this->electionRegistrationUrl;
 448    }
 449    public function setElectionRulesUrl($electionRulesUrl)
 450    {
 451      $this->electionRulesUrl = $electionRulesUrl;
 452    }
 453    public function getElectionRulesUrl()
 454    {
 455      return $this->electionRulesUrl;
 456    }
 457    public function setHoursOfOperation($hoursOfOperation)
 458    {
 459      $this->hoursOfOperation = $hoursOfOperation;
 460    }
 461    public function getHoursOfOperation()
 462    {
 463      return $this->hoursOfOperation;
 464    }
 465    public function setName($name)
 466    {
 467      $this->name = $name;
 468    }
 469    public function getName()
 470    {
 471      return $this->name;
 472    }
 473    public function setPhysicalAddress(Google_Service_CivicInfo_SimpleAddressType $physicalAddress)
 474    {
 475      $this->physicalAddress = $physicalAddress;
 476    }
 477    public function getPhysicalAddress()
 478    {
 479      return $this->physicalAddress;
 480    }
 481    public function setVoterServices($voterServices)
 482    {
 483      $this->voterServices = $voterServices;
 484    }
 485    public function getVoterServices()
 486    {
 487      return $this->voterServices;
 488    }
 489    public function setVotingLocationFinderUrl($votingLocationFinderUrl)
 490    {
 491      $this->votingLocationFinderUrl = $votingLocationFinderUrl;
 492    }
 493    public function getVotingLocationFinderUrl()
 494    {
 495      return $this->votingLocationFinderUrl;
 496    }
 497  }
 498  
 499  class Google_Service_CivicInfo_Candidate extends Google_Collection
 500  {
 501    protected $collection_key = 'channels';
 502    protected $internal_gapi_mappings = array(
 503    );
 504    public $candidateUrl;
 505    protected $channelsType = 'Google_Service_CivicInfo_Channel';
 506    protected $channelsDataType = 'array';
 507    public $email;
 508    public $name;
 509    public $orderOnBallot;
 510    public $party;
 511    public $phone;
 512    public $photoUrl;
 513  
 514  
 515    public function setCandidateUrl($candidateUrl)
 516    {
 517      $this->candidateUrl = $candidateUrl;
 518    }
 519    public function getCandidateUrl()
 520    {
 521      return $this->candidateUrl;
 522    }
 523    public function setChannels($channels)
 524    {
 525      $this->channels = $channels;
 526    }
 527    public function getChannels()
 528    {
 529      return $this->channels;
 530    }
 531    public function setEmail($email)
 532    {
 533      $this->email = $email;
 534    }
 535    public function getEmail()
 536    {
 537      return $this->email;
 538    }
 539    public function setName($name)
 540    {
 541      $this->name = $name;
 542    }
 543    public function getName()
 544    {
 545      return $this->name;
 546    }
 547    public function setOrderOnBallot($orderOnBallot)
 548    {
 549      $this->orderOnBallot = $orderOnBallot;
 550    }
 551    public function getOrderOnBallot()
 552    {
 553      return $this->orderOnBallot;
 554    }
 555    public function setParty($party)
 556    {
 557      $this->party = $party;
 558    }
 559    public function getParty()
 560    {
 561      return $this->party;
 562    }
 563    public function setPhone($phone)
 564    {
 565      $this->phone = $phone;
 566    }
 567    public function getPhone()
 568    {
 569      return $this->phone;
 570    }
 571    public function setPhotoUrl($photoUrl)
 572    {
 573      $this->photoUrl = $photoUrl;
 574    }
 575    public function getPhotoUrl()
 576    {
 577      return $this->photoUrl;
 578    }
 579  }
 580  
 581  class Google_Service_CivicInfo_Channel extends Google_Model
 582  {
 583    protected $internal_gapi_mappings = array(
 584    );
 585    public $id;
 586    public $type;
 587  
 588  
 589    public function setId($id)
 590    {
 591      $this->id = $id;
 592    }
 593    public function getId()
 594    {
 595      return $this->id;
 596    }
 597    public function setType($type)
 598    {
 599      $this->type = $type;
 600    }
 601    public function getType()
 602    {
 603      return $this->type;
 604    }
 605  }
 606  
 607  class Google_Service_CivicInfo_Contest extends Google_Collection
 608  {
 609    protected $collection_key = 'sources';
 610    protected $internal_gapi_mappings = array(
 611    );
 612    public $ballotPlacement;
 613    protected $candidatesType = 'Google_Service_CivicInfo_Candidate';
 614    protected $candidatesDataType = 'array';
 615    protected $districtType = 'Google_Service_CivicInfo_ElectoralDistrict';
 616    protected $districtDataType = '';
 617    public $electorateSpecifications;
 618    public $id;
 619    public $level;
 620    public $numberElected;
 621    public $numberVotingFor;
 622    public $office;
 623    public $primaryParty;
 624    public $referendumBallotResponses;
 625    public $referendumBrief;
 626    public $referendumConStatement;
 627    public $referendumEffectOfAbstain;
 628    public $referendumPassageThreshold;
 629    public $referendumProStatement;
 630    public $referendumSubtitle;
 631    public $referendumText;
 632    public $referendumTitle;
 633    public $referendumUrl;
 634    public $roles;
 635    protected $sourcesType = 'Google_Service_CivicInfo_Source';
 636    protected $sourcesDataType = 'array';
 637    public $special;
 638    public $type;
 639  
 640  
 641    public function setBallotPlacement($ballotPlacement)
 642    {
 643      $this->ballotPlacement = $ballotPlacement;
 644    }
 645    public function getBallotPlacement()
 646    {
 647      return $this->ballotPlacement;
 648    }
 649    public function setCandidates($candidates)
 650    {
 651      $this->candidates = $candidates;
 652    }
 653    public function getCandidates()
 654    {
 655      return $this->candidates;
 656    }
 657    public function setDistrict(Google_Service_CivicInfo_ElectoralDistrict $district)
 658    {
 659      $this->district = $district;
 660    }
 661    public function getDistrict()
 662    {
 663      return $this->district;
 664    }
 665    public function setElectorateSpecifications($electorateSpecifications)
 666    {
 667      $this->electorateSpecifications = $electorateSpecifications;
 668    }
 669    public function getElectorateSpecifications()
 670    {
 671      return $this->electorateSpecifications;
 672    }
 673    public function setId($id)
 674    {
 675      $this->id = $id;
 676    }
 677    public function getId()
 678    {
 679      return $this->id;
 680    }
 681    public function setLevel($level)
 682    {
 683      $this->level = $level;
 684    }
 685    public function getLevel()
 686    {
 687      return $this->level;
 688    }
 689    public function setNumberElected($numberElected)
 690    {
 691      $this->numberElected = $numberElected;
 692    }
 693    public function getNumberElected()
 694    {
 695      return $this->numberElected;
 696    }
 697    public function setNumberVotingFor($numberVotingFor)
 698    {
 699      $this->numberVotingFor = $numberVotingFor;
 700    }
 701    public function getNumberVotingFor()
 702    {
 703      return $this->numberVotingFor;
 704    }
 705    public function setOffice($office)
 706    {
 707      $this->office = $office;
 708    }
 709    public function getOffice()
 710    {
 711      return $this->office;
 712    }
 713    public function setPrimaryParty($primaryParty)
 714    {
 715      $this->primaryParty = $primaryParty;
 716    }
 717    public function getPrimaryParty()
 718    {
 719      return $this->primaryParty;
 720    }
 721    public function setReferendumBallotResponses($referendumBallotResponses)
 722    {
 723      $this->referendumBallotResponses = $referendumBallotResponses;
 724    }
 725    public function getReferendumBallotResponses()
 726    {
 727      return $this->referendumBallotResponses;
 728    }
 729    public function setReferendumBrief($referendumBrief)
 730    {
 731      $this->referendumBrief = $referendumBrief;
 732    }
 733    public function getReferendumBrief()
 734    {
 735      return $this->referendumBrief;
 736    }
 737    public function setReferendumConStatement($referendumConStatement)
 738    {
 739      $this->referendumConStatement = $referendumConStatement;
 740    }
 741    public function getReferendumConStatement()
 742    {
 743      return $this->referendumConStatement;
 744    }
 745    public function setReferendumEffectOfAbstain($referendumEffectOfAbstain)
 746    {
 747      $this->referendumEffectOfAbstain = $referendumEffectOfAbstain;
 748    }
 749    public function getReferendumEffectOfAbstain()
 750    {
 751      return $this->referendumEffectOfAbstain;
 752    }
 753    public function setReferendumPassageThreshold($referendumPassageThreshold)
 754    {
 755      $this->referendumPassageThreshold = $referendumPassageThreshold;
 756    }
 757    public function getReferendumPassageThreshold()
 758    {
 759      return $this->referendumPassageThreshold;
 760    }
 761    public function setReferendumProStatement($referendumProStatement)
 762    {
 763      $this->referendumProStatement = $referendumProStatement;
 764    }
 765    public function getReferendumProStatement()
 766    {
 767      return $this->referendumProStatement;
 768    }
 769    public function setReferendumSubtitle($referendumSubtitle)
 770    {
 771      $this->referendumSubtitle = $referendumSubtitle;
 772    }
 773    public function getReferendumSubtitle()
 774    {
 775      return $this->referendumSubtitle;
 776    }
 777    public function setReferendumText($referendumText)
 778    {
 779      $this->referendumText = $referendumText;
 780    }
 781    public function getReferendumText()
 782    {
 783      return $this->referendumText;
 784    }
 785    public function setReferendumTitle($referendumTitle)
 786    {
 787      $this->referendumTitle = $referendumTitle;
 788    }
 789    public function getReferendumTitle()
 790    {
 791      return $this->referendumTitle;
 792    }
 793    public function setReferendumUrl($referendumUrl)
 794    {
 795      $this->referendumUrl = $referendumUrl;
 796    }
 797    public function getReferendumUrl()
 798    {
 799      return $this->referendumUrl;
 800    }
 801    public function setRoles($roles)
 802    {
 803      $this->roles = $roles;
 804    }
 805    public function getRoles()
 806    {
 807      return $this->roles;
 808    }
 809    public function setSources($sources)
 810    {
 811      $this->sources = $sources;
 812    }
 813    public function getSources()
 814    {
 815      return $this->sources;
 816    }
 817    public function setSpecial($special)
 818    {
 819      $this->special = $special;
 820    }
 821    public function getSpecial()
 822    {
 823      return $this->special;
 824    }
 825    public function setType($type)
 826    {
 827      $this->type = $type;
 828    }
 829    public function getType()
 830    {
 831      return $this->type;
 832    }
 833  }
 834  
 835  class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection
 836  {
 837    protected $collection_key = 'results';
 838    protected $internal_gapi_mappings = array(
 839    );
 840    public $kind;
 841    protected $resultsType = 'Google_Service_CivicInfo_DivisionSearchResult';
 842    protected $resultsDataType = 'array';
 843  
 844  
 845    public function setKind($kind)
 846    {
 847      $this->kind = $kind;
 848    }
 849    public function getKind()
 850    {
 851      return $this->kind;
 852    }
 853    public function setResults($results)
 854    {
 855      $this->results = $results;
 856    }
 857    public function getResults()
 858    {
 859      return $this->results;
 860    }
 861  }
 862  
 863  class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection
 864  {
 865    protected $collection_key = 'aliases';
 866    protected $internal_gapi_mappings = array(
 867    );
 868    public $aliases;
 869    public $name;
 870    public $ocdId;
 871  
 872  
 873    public function setAliases($aliases)
 874    {
 875      $this->aliases = $aliases;
 876    }
 877    public function getAliases()
 878    {
 879      return $this->aliases;
 880    }
 881    public function setName($name)
 882    {
 883      $this->name = $name;
 884    }
 885    public function getName()
 886    {
 887      return $this->name;
 888    }
 889    public function setOcdId($ocdId)
 890    {
 891      $this->ocdId = $ocdId;
 892    }
 893    public function getOcdId()
 894    {
 895      return $this->ocdId;
 896    }
 897  }
 898  
 899  class Google_Service_CivicInfo_Election extends Google_Model
 900  {
 901    protected $internal_gapi_mappings = array(
 902    );
 903    public $electionDay;
 904    public $id;
 905    public $name;
 906    public $ocdDivisionId;
 907  
 908  
 909    public function setElectionDay($electionDay)
 910    {
 911      $this->electionDay = $electionDay;
 912    }
 913    public function getElectionDay()
 914    {
 915      return $this->electionDay;
 916    }
 917    public function setId($id)
 918    {
 919      $this->id = $id;
 920    }
 921    public function getId()
 922    {
 923      return $this->id;
 924    }
 925    public function setName($name)
 926    {
 927      $this->name = $name;
 928    }
 929    public function getName()
 930    {
 931      return $this->name;
 932    }
 933    public function setOcdDivisionId($ocdDivisionId)
 934    {
 935      $this->ocdDivisionId = $ocdDivisionId;
 936    }
 937    public function getOcdDivisionId()
 938    {
 939      return $this->ocdDivisionId;
 940    }
 941  }
 942  
 943  class Google_Service_CivicInfo_ElectionOfficial extends Google_Model
 944  {
 945    protected $internal_gapi_mappings = array(
 946    );
 947    public $emailAddress;
 948    public $faxNumber;
 949    public $name;
 950    public $officePhoneNumber;
 951    public $title;
 952  
 953  
 954    public function setEmailAddress($emailAddress)
 955    {
 956      $this->emailAddress = $emailAddress;
 957    }
 958    public function getEmailAddress()
 959    {
 960      return $this->emailAddress;
 961    }
 962    public function setFaxNumber($faxNumber)
 963    {
 964      $this->faxNumber = $faxNumber;
 965    }
 966    public function getFaxNumber()
 967    {
 968      return $this->faxNumber;
 969    }
 970    public function setName($name)
 971    {
 972      $this->name = $name;
 973    }
 974    public function getName()
 975    {
 976      return $this->name;
 977    }
 978    public function setOfficePhoneNumber($officePhoneNumber)
 979    {
 980      $this->officePhoneNumber = $officePhoneNumber;
 981    }
 982    public function getOfficePhoneNumber()
 983    {
 984      return $this->officePhoneNumber;
 985    }
 986    public function setTitle($title)
 987    {
 988      $this->title = $title;
 989    }
 990    public function getTitle()
 991    {
 992      return $this->title;
 993    }
 994  }
 995  
 996  class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection
 997  {
 998    protected $collection_key = 'elections';
 999    protected $internal_gapi_mappings = array(
1000    );
1001    protected $electionsType = 'Google_Service_CivicInfo_Election';
1002    protected $electionsDataType = 'array';
1003    public $kind;
1004  
1005  
1006    public function setElections($elections)
1007    {
1008      $this->elections = $elections;
1009    }
1010    public function getElections()
1011    {
1012      return $this->elections;
1013    }
1014    public function setKind($kind)
1015    {
1016      $this->kind = $kind;
1017    }
1018    public function getKind()
1019    {
1020      return $this->kind;
1021    }
1022  }
1023  
1024  class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model
1025  {
1026    protected $internal_gapi_mappings = array(
1027    );
1028    public $id;
1029    public $name;
1030    public $scope;
1031  
1032  
1033    public function setId($id)
1034    {
1035      $this->id = $id;
1036    }
1037    public function getId()
1038    {
1039      return $this->id;
1040    }
1041    public function setName($name)
1042    {
1043      $this->name = $name;
1044    }
1045    public function getName()
1046    {
1047      return $this->name;
1048    }
1049    public function setScope($scope)
1050    {
1051      $this->scope = $scope;
1052    }
1053    public function getScope()
1054    {
1055      return $this->scope;
1056    }
1057  }
1058  
1059  class Google_Service_CivicInfo_GeographicDivision extends Google_Collection
1060  {
1061    protected $collection_key = 'officeIndices';
1062    protected $internal_gapi_mappings = array(
1063    );
1064    public $alsoKnownAs;
1065    public $name;
1066    public $officeIndices;
1067  
1068  
1069    public function setAlsoKnownAs($alsoKnownAs)
1070    {
1071      $this->alsoKnownAs = $alsoKnownAs;
1072    }
1073    public function getAlsoKnownAs()
1074    {
1075      return $this->alsoKnownAs;
1076    }
1077    public function setName($name)
1078    {
1079      $this->name = $name;
1080    }
1081    public function getName()
1082    {
1083      return $this->name;
1084    }
1085    public function setOfficeIndices($officeIndices)
1086    {
1087      $this->officeIndices = $officeIndices;
1088    }
1089    public function getOfficeIndices()
1090    {
1091      return $this->officeIndices;
1092    }
1093  }
1094  
1095  class Google_Service_CivicInfo_Office extends Google_Collection
1096  {
1097    protected $collection_key = 'sources';
1098    protected $internal_gapi_mappings = array(
1099    );
1100    public $divisionId;
1101    public $levels;
1102    public $name;
1103    public $officialIndices;
1104    public $roles;
1105    protected $sourcesType = 'Google_Service_CivicInfo_Source';
1106    protected $sourcesDataType = 'array';
1107  
1108  
1109    public function setDivisionId($divisionId)
1110    {
1111      $this->divisionId = $divisionId;
1112    }
1113    public function getDivisionId()
1114    {
1115      return $this->divisionId;
1116    }
1117    public function setLevels($levels)
1118    {
1119      $this->levels = $levels;
1120    }
1121    public function getLevels()
1122    {
1123      return $this->levels;
1124    }
1125    public function setName($name)
1126    {
1127      $this->name = $name;
1128    }
1129    public function getName()
1130    {
1131      return $this->name;
1132    }
1133    public function setOfficialIndices($officialIndices)
1134    {
1135      $this->officialIndices = $officialIndices;
1136    }
1137    public function getOfficialIndices()
1138    {
1139      return $this->officialIndices;
1140    }
1141    public function setRoles($roles)
1142    {
1143      $this->roles = $roles;
1144    }
1145    public function getRoles()
1146    {
1147      return $this->roles;
1148    }
1149    public function setSources($sources)
1150    {
1151      $this->sources = $sources;
1152    }
1153    public function getSources()
1154    {
1155      return $this->sources;
1156    }
1157  }
1158  
1159  class Google_Service_CivicInfo_Official extends Google_Collection
1160  {
1161    protected $collection_key = 'urls';
1162    protected $internal_gapi_mappings = array(
1163    );
1164    protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType';
1165    protected $addressDataType = 'array';
1166    protected $channelsType = 'Google_Service_CivicInfo_Channel';
1167    protected $channelsDataType = 'array';
1168    public $emails;
1169    public $name;
1170    public $party;
1171    public $phones;
1172    public $photoUrl;
1173    public $urls;
1174  
1175  
1176    public function setAddress($address)
1177    {
1178      $this->address = $address;
1179    }
1180    public function getAddress()
1181    {
1182      return $this->address;
1183    }
1184    public function setChannels($channels)
1185    {
1186      $this->channels = $channels;
1187    }
1188    public function getChannels()
1189    {
1190      return $this->channels;
1191    }
1192    public function setEmails($emails)
1193    {
1194      $this->emails = $emails;
1195    }
1196    public function getEmails()
1197    {
1198      return $this->emails;
1199    }
1200    public function setName($name)
1201    {
1202      $this->name = $name;
1203    }
1204    public function getName()
1205    {
1206      return $this->name;
1207    }
1208    public function setParty($party)
1209    {
1210      $this->party = $party;
1211    }
1212    public function getParty()
1213    {
1214      return $this->party;
1215    }
1216    public function setPhones($phones)
1217    {
1218      $this->phones = $phones;
1219    }
1220    public function getPhones()
1221    {
1222      return $this->phones;
1223    }
1224    public function setPhotoUrl($photoUrl)
1225    {
1226      $this->photoUrl = $photoUrl;
1227    }
1228    public function getPhotoUrl()
1229    {
1230      return $this->photoUrl;
1231    }
1232    public function setUrls($urls)
1233    {
1234      $this->urls = $urls;
1235    }
1236    public function getUrls()
1237    {
1238      return $this->urls;
1239    }
1240  }
1241  
1242  class Google_Service_CivicInfo_PollingLocation extends Google_Collection
1243  {
1244    protected $collection_key = 'sources';
1245    protected $internal_gapi_mappings = array(
1246    );
1247    protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType';
1248    protected $addressDataType = '';
1249    public $endDate;
1250    public $id;
1251    public $name;
1252    public $notes;
1253    public $pollingHours;
1254    protected $sourcesType = 'Google_Service_CivicInfo_Source';
1255    protected $sourcesDataType = 'array';
1256    public $startDate;
1257    public $voterServices;
1258  
1259  
1260    public function setAddress(Google_Service_CivicInfo_SimpleAddressType $address)
1261    {
1262      $this->address = $address;
1263    }
1264    public function getAddress()
1265    {
1266      return $this->address;
1267    }
1268    public function setEndDate($endDate)
1269    {
1270      $this->endDate = $endDate;
1271    }
1272    public function getEndDate()
1273    {
1274      return $this->endDate;
1275    }
1276    public function setId($id)
1277    {
1278      $this->id = $id;
1279    }
1280    public function getId()
1281    {
1282      return $this->id;
1283    }
1284    public function setName($name)
1285    {
1286      $this->name = $name;
1287    }
1288    public function getName()
1289    {
1290      return $this->name;
1291    }
1292    public function setNotes($notes)
1293    {
1294      $this->notes = $notes;
1295    }
1296    public function getNotes()
1297    {
1298      return $this->notes;
1299    }
1300    public function setPollingHours($pollingHours)
1301    {
1302      $this->pollingHours = $pollingHours;
1303    }
1304    public function getPollingHours()
1305    {
1306      return $this->pollingHours;
1307    }
1308    public function setSources($sources)
1309    {
1310      $this->sources = $sources;
1311    }
1312    public function getSources()
1313    {
1314      return $this->sources;
1315    }
1316    public function setStartDate($startDate)
1317    {
1318      $this->startDate = $startDate;
1319    }
1320    public function getStartDate()
1321    {
1322      return $this->startDate;
1323    }
1324    public function setVoterServices($voterServices)
1325    {
1326      $this->voterServices = $voterServices;
1327    }
1328    public function getVoterServices()
1329    {
1330      return $this->voterServices;
1331    }
1332  }
1333  
1334  class Google_Service_CivicInfo_RepresentativeInfoData extends Google_Collection
1335  {
1336    protected $collection_key = 'officials';
1337    protected $internal_gapi_mappings = array(
1338    );
1339    protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision';
1340    protected $divisionsDataType = 'map';
1341    protected $officesType = 'Google_Service_CivicInfo_Office';
1342    protected $officesDataType = 'array';
1343    protected $officialsType = 'Google_Service_CivicInfo_Official';
1344    protected $officialsDataType = 'array';
1345  
1346  
1347    public function setDivisions($divisions)
1348    {
1349      $this->divisions = $divisions;
1350    }
1351    public function getDivisions()
1352    {
1353      return $this->divisions;
1354    }
1355    public function setOffices($offices)
1356    {
1357      $this->offices = $offices;
1358    }
1359    public function getOffices()
1360    {
1361      return $this->offices;
1362    }
1363    public function setOfficials($officials)
1364    {
1365      $this->officials = $officials;
1366    }
1367    public function getOfficials()
1368    {
1369      return $this->officials;
1370    }
1371  }
1372  
1373  class Google_Service_CivicInfo_RepresentativeInfoDataDivisions extends Google_Model
1374  {
1375  }
1376  
1377  class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Collection
1378  {
1379    protected $collection_key = 'officials';
1380    protected $internal_gapi_mappings = array(
1381    );
1382    protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision';
1383    protected $divisionsDataType = 'map';
1384    public $kind;
1385    protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType';
1386    protected $normalizedInputDataType = '';
1387    protected $officesType = 'Google_Service_CivicInfo_Office';
1388    protected $officesDataType = 'array';
1389    protected $officialsType = 'Google_Service_CivicInfo_Official';
1390    protected $officialsDataType = 'array';
1391  
1392  
1393    public function setDivisions($divisions)
1394    {
1395      $this->divisions = $divisions;
1396    }
1397    public function getDivisions()
1398    {
1399      return $this->divisions;
1400    }
1401    public function setKind($kind)
1402    {
1403      $this->kind = $kind;
1404    }
1405    public function getKind()
1406    {
1407      return $this->kind;
1408    }
1409    public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput)
1410    {
1411      $this->normalizedInput = $normalizedInput;
1412    }
1413    public function getNormalizedInput()
1414    {
1415      return $this->normalizedInput;
1416    }
1417    public function setOffices($offices)
1418    {
1419      $this->offices = $offices;
1420    }
1421    public function getOffices()
1422    {
1423      return $this->offices;
1424    }
1425    public function setOfficials($officials)
1426    {
1427      $this->officials = $officials;
1428    }
1429    public function getOfficials()
1430    {
1431      return $this->officials;
1432    }
1433  }
1434  
1435  class Google_Service_CivicInfo_RepresentativeInfoResponseDivisions extends Google_Model
1436  {
1437  }
1438  
1439  class Google_Service_CivicInfo_SimpleAddressType extends Google_Model
1440  {
1441    protected $internal_gapi_mappings = array(
1442    );
1443    public $city;
1444    public $line1;
1445    public $line2;
1446    public $line3;
1447    public $locationName;
1448    public $state;
1449    public $zip;
1450  
1451  
1452    public function setCity($city)
1453    {
1454      $this->city = $city;
1455    }
1456    public function getCity()
1457    {
1458      return $this->city;
1459    }
1460    public function setLine1($line1)
1461    {
1462      $this->line1 = $line1;
1463    }
1464    public function getLine1()
1465    {
1466      return $this->line1;
1467    }
1468    public function setLine2($line2)
1469    {
1470      $this->line2 = $line2;
1471    }
1472    public function getLine2()
1473    {
1474      return $this->line2;
1475    }
1476    public function setLine3($line3)
1477    {
1478      $this->line3 = $line3;
1479    }
1480    public function getLine3()
1481    {
1482      return $this->line3;
1483    }
1484    public function setLocationName($locationName)
1485    {
1486      $this->locationName = $locationName;
1487    }
1488    public function getLocationName()
1489    {
1490      return $this->locationName;
1491    }
1492    public function setState($state)
1493    {
1494      $this->state = $state;
1495    }
1496    public function getState()
1497    {
1498      return $this->state;
1499    }
1500    public function setZip($zip)
1501    {
1502      $this->zip = $zip;
1503    }
1504    public function getZip()
1505    {
1506      return $this->zip;
1507    }
1508  }
1509  
1510  class Google_Service_CivicInfo_Source extends Google_Model
1511  {
1512    protected $internal_gapi_mappings = array(
1513    );
1514    public $name;
1515    public $official;
1516  
1517  
1518    public function setName($name)
1519    {
1520      $this->name = $name;
1521    }
1522    public function getName()
1523    {
1524      return $this->name;
1525    }
1526    public function setOfficial($official)
1527    {
1528      $this->official = $official;
1529    }
1530    public function getOfficial()
1531    {
1532      return $this->official;
1533    }
1534  }
1535  
1536  class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection
1537  {
1538    protected $collection_key = 'state';
1539    protected $internal_gapi_mappings = array(
1540    );
1541    protected $contestsType = 'Google_Service_CivicInfo_Contest';
1542    protected $contestsDataType = 'array';
1543    protected $dropOffLocationsType = 'Google_Service_CivicInfo_PollingLocation';
1544    protected $dropOffLocationsDataType = 'array';
1545    protected $earlyVoteSitesType = 'Google_Service_CivicInfo_PollingLocation';
1546    protected $earlyVoteSitesDataType = 'array';
1547    protected $electionType = 'Google_Service_CivicInfo_Election';
1548    protected $electionDataType = '';
1549    public $kind;
1550    public $mailOnly;
1551    protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType';
1552    protected $normalizedInputDataType = '';
1553    protected $otherElectionsType = 'Google_Service_CivicInfo_Election';
1554    protected $otherElectionsDataType = 'array';
1555    protected $pollingLocationsType = 'Google_Service_CivicInfo_PollingLocation';
1556    protected $pollingLocationsDataType = 'array';
1557    public $precinctId;
1558    protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion';
1559    protected $stateDataType = 'array';
1560  
1561  
1562    public function setContests($contests)
1563    {
1564      $this->contests = $contests;
1565    }
1566    public function getContests()
1567    {
1568      return $this->contests;
1569    }
1570    public function setDropOffLocations($dropOffLocations)
1571    {
1572      $this->dropOffLocations = $dropOffLocations;
1573    }
1574    public function getDropOffLocations()
1575    {
1576      return $this->dropOffLocations;
1577    }
1578    public function setEarlyVoteSites($earlyVoteSites)
1579    {
1580      $this->earlyVoteSites = $earlyVoteSites;
1581    }
1582    public function getEarlyVoteSites()
1583    {
1584      return $this->earlyVoteSites;
1585    }
1586    public function setElection(Google_Service_CivicInfo_Election $election)
1587    {
1588      $this->election = $election;
1589    }
1590    public function getElection()
1591    {
1592      return $this->election;
1593    }
1594    public function setKind($kind)
1595    {
1596      $this->kind = $kind;
1597    }
1598    public function getKind()
1599    {
1600      return $this->kind;
1601    }
1602    public function setMailOnly($mailOnly)
1603    {
1604      $this->mailOnly = $mailOnly;
1605    }
1606    public function getMailOnly()
1607    {
1608      return $this->mailOnly;
1609    }
1610    public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput)
1611    {
1612      $this->normalizedInput = $normalizedInput;
1613    }
1614    public function getNormalizedInput()
1615    {
1616      return $this->normalizedInput;
1617    }
1618    public function setOtherElections($otherElections)
1619    {
1620      $this->otherElections = $otherElections;
1621    }
1622    public function getOtherElections()
1623    {
1624      return $this->otherElections;
1625    }
1626    public function setPollingLocations($pollingLocations)
1627    {
1628      $this->pollingLocations = $pollingLocations;
1629    }
1630    public function getPollingLocations()
1631    {
1632      return $this->pollingLocations;
1633    }
1634    public function setPrecinctId($precinctId)
1635    {
1636      $this->precinctId = $precinctId;
1637    }
1638    public function getPrecinctId()
1639    {
1640      return $this->precinctId;
1641    }
1642    public function setState($state)
1643    {
1644      $this->state = $state;
1645    }
1646    public function getState()
1647    {
1648      return $this->state;
1649    }
1650  }