[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/google/Google/Service/ -> CivicInfo.php (source)

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


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1