PageRenderTime 43ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Google/Service/CivicInfo.php

https://github.com/leogaggl/pluspress
PHP | 1455 lines | 1125 code | 245 blank | 85 comment | 0 complexity | c2230dcd46bc69ab247c25c3c997e3d4 MD5 | raw file
  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. * Service definition for CivicInfo (us_v1).
  19. *
  20. * <p>
  21. * An API for accessing civic information.
  22. * </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. public $elections;
  34. public $representatives;
  35. /**
  36. * Constructs the internal representation of the CivicInfo service.
  37. *
  38. * @param Google_Client $client
  39. */
  40. public function __construct(Google_Client $client)
  41. {
  42. parent::__construct($client);
  43. $this->servicePath = 'civicinfo/us_v1/';
  44. $this->version = 'us_v1';
  45. $this->serviceName = 'civicinfo';
  46. $this->elections = new Google_Service_CivicInfo_Elections_Resource(
  47. $this,
  48. $this->serviceName,
  49. 'elections',
  50. array(
  51. 'methods' => array(
  52. 'electionQuery' => array(
  53. 'path' => 'elections',
  54. 'httpMethod' => 'GET',
  55. 'parameters' => array(),
  56. ),'voterInfoQuery' => array(
  57. 'path' => 'voterinfo/{electionId}/lookup',
  58. 'httpMethod' => 'POST',
  59. 'parameters' => array(
  60. 'electionId' => array(
  61. 'location' => 'path',
  62. 'type' => 'string',
  63. 'required' => true,
  64. ),
  65. 'officialOnly' => array(
  66. 'location' => 'query',
  67. 'type' => 'boolean',
  68. ),
  69. ),
  70. ),
  71. )
  72. )
  73. );
  74. $this->representatives = new Google_Service_CivicInfo_Representatives_Resource(
  75. $this,
  76. $this->serviceName,
  77. 'representatives',
  78. array(
  79. 'methods' => array(
  80. 'representativeInfoQuery' => array(
  81. 'path' => 'representatives/lookup',
  82. 'httpMethod' => 'POST',
  83. 'parameters' => array(
  84. 'ocdId' => array(
  85. 'location' => 'query',
  86. 'type' => 'string',
  87. ),
  88. 'includeOffices' => array(
  89. 'location' => 'query',
  90. 'type' => 'boolean',
  91. ),
  92. ),
  93. ),
  94. )
  95. )
  96. );
  97. }
  98. }
  99. /**
  100. * The "elections" collection of methods.
  101. * Typical usage is:
  102. * <code>
  103. * $civicinfoService = new Google_Service_CivicInfo(...);
  104. * $elections = $civicinfoService->elections;
  105. * </code>
  106. */
  107. class Google_Service_CivicInfo_Elections_Resource extends Google_Service_Resource
  108. {
  109. /**
  110. * List of available elections to query. (elections.electionQuery)
  111. *
  112. * @param array $optParams Optional parameters.
  113. * @return Google_Service_CivicInfo_ElectionsQueryResponse
  114. */
  115. public function electionQuery($optParams = array())
  116. {
  117. $params = array();
  118. $params = array_merge($params, $optParams);
  119. return $this->call('electionQuery', array($params), "Google_Service_CivicInfo_ElectionsQueryResponse");
  120. }
  121. /**
  122. * Looks up information relevant to a voter based on the voter's registered
  123. * address. (elections.voterInfoQuery)
  124. *
  125. * @param string $electionId
  126. * The unique ID of the election to look up. A list of election IDs can be obtained at
  127. * https://www.googleapis.com/civicinfo/{version}/elections
  128. * @param Google_VoterInfoRequest $postBody
  129. * @param array $optParams Optional parameters.
  130. *
  131. * @opt_param bool officialOnly
  132. * If set to true, only data from official state sources will be returned.
  133. * @return Google_Service_CivicInfo_VoterInfoResponse
  134. */
  135. public function voterInfoQuery($electionId, Google_Service_CivicInfo_VoterInfoRequest $postBody, $optParams = array())
  136. {
  137. $params = array('electionId' => $electionId, 'postBody' => $postBody);
  138. $params = array_merge($params, $optParams);
  139. return $this->call('voterInfoQuery', array($params), "Google_Service_CivicInfo_VoterInfoResponse");
  140. }
  141. }
  142. /**
  143. * The "representatives" collection of methods.
  144. * Typical usage is:
  145. * <code>
  146. * $civicinfoService = new Google_Service_CivicInfo(...);
  147. * $representatives = $civicinfoService->representatives;
  148. * </code>
  149. */
  150. class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_Resource
  151. {
  152. /**
  153. * Looks up political geography and (optionally) representative information
  154. * based on an address. (representatives.representativeInfoQuery)
  155. *
  156. * @param Google_RepresentativeInfoRequest $postBody
  157. * @param array $optParams Optional parameters.
  158. *
  159. * @opt_param string ocdId
  160. * The division to look up. May only be specified if the address field is not given in the request
  161. * body.
  162. * @opt_param bool includeOffices
  163. * Whether to return information about offices and officials. If false, only the top-level district
  164. * information will be returned.
  165. * @return Google_Service_CivicInfo_RepresentativeInfoResponse
  166. */
  167. public function representativeInfoQuery(Google_Service_CivicInfo_RepresentativeInfoRequest $postBody, $optParams = array())
  168. {
  169. $params = array('postBody' => $postBody);
  170. $params = array_merge($params, $optParams);
  171. return $this->call('representativeInfoQuery', array($params), "Google_Service_CivicInfo_RepresentativeInfoResponse");
  172. }
  173. }
  174. class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection
  175. {
  176. protected $electionAdministrationBodyType = 'Google_Service_CivicInfo_AdministrativeBody';
  177. protected $electionAdministrationBodyDataType = '';
  178. public $id;
  179. protected $localJurisdictionType = 'Google_Service_CivicInfo_AdministrationRegion';
  180. protected $localJurisdictionDataType = '';
  181. public $name;
  182. protected $sourcesType = 'Google_Service_CivicInfo_Source';
  183. protected $sourcesDataType = 'array';
  184. public function setElectionAdministrationBody(Google_Service_CivicInfo_AdministrativeBody $electionAdministrationBody)
  185. {
  186. $this->electionAdministrationBody = $electionAdministrationBody;
  187. }
  188. public function getElectionAdministrationBody()
  189. {
  190. return $this->electionAdministrationBody;
  191. }
  192. public function setId($id)
  193. {
  194. $this->id = $id;
  195. }
  196. public function getId()
  197. {
  198. return $this->id;
  199. }
  200. public function setLocalJurisdiction(Google_Service_CivicInfo_AdministrationRegion $localJurisdiction)
  201. {
  202. $this->localJurisdiction = $localJurisdiction;
  203. }
  204. public function getLocalJurisdiction()
  205. {
  206. return $this->localJurisdiction;
  207. }
  208. public function setName($name)
  209. {
  210. $this->name = $name;
  211. }
  212. public function getName()
  213. {
  214. return $this->name;
  215. }
  216. public function setSources($sources)
  217. {
  218. $this->sources = $sources;
  219. }
  220. public function getSources()
  221. {
  222. return $this->sources;
  223. }
  224. }
  225. class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection
  226. {
  227. public $absenteeVotingInfoUrl;
  228. public $ballotInfoUrl;
  229. protected $correspondenceAddressType = 'Google_Service_CivicInfo_SimpleAddressType';
  230. protected $correspondenceAddressDataType = '';
  231. public $electionInfoUrl;
  232. protected $electionOfficialsType = 'Google_Service_CivicInfo_ElectionOfficial';
  233. protected $electionOfficialsDataType = 'array';
  234. public $electionRegistrationConfirmationUrl;
  235. public $electionRegistrationUrl;
  236. public $electionRulesUrl;
  237. public $hoursOfOperation;
  238. public $name;
  239. protected $physicalAddressType = 'Google_Service_CivicInfo_SimpleAddressType';
  240. protected $physicalAddressDataType = '';
  241. public $voterServices;
  242. public $votingLocationFinderUrl;
  243. public function setAbsenteeVotingInfoUrl($absenteeVotingInfoUrl)
  244. {
  245. $this->absenteeVotingInfoUrl = $absenteeVotingInfoUrl;
  246. }
  247. public function getAbsenteeVotingInfoUrl()
  248. {
  249. return $this->absenteeVotingInfoUrl;
  250. }
  251. public function setBallotInfoUrl($ballotInfoUrl)
  252. {
  253. $this->ballotInfoUrl = $ballotInfoUrl;
  254. }
  255. public function getBallotInfoUrl()
  256. {
  257. return $this->ballotInfoUrl;
  258. }
  259. public function setCorrespondenceAddress(Google_Service_CivicInfo_SimpleAddressType $correspondenceAddress)
  260. {
  261. $this->correspondenceAddress = $correspondenceAddress;
  262. }
  263. public function getCorrespondenceAddress()
  264. {
  265. return $this->correspondenceAddress;
  266. }
  267. public function setElectionInfoUrl($electionInfoUrl)
  268. {
  269. $this->electionInfoUrl = $electionInfoUrl;
  270. }
  271. public function getElectionInfoUrl()
  272. {
  273. return $this->electionInfoUrl;
  274. }
  275. public function setElectionOfficials($electionOfficials)
  276. {
  277. $this->electionOfficials = $electionOfficials;
  278. }
  279. public function getElectionOfficials()
  280. {
  281. return $this->electionOfficials;
  282. }
  283. public function setElectionRegistrationConfirmationUrl($electionRegistrationConfirmationUrl)
  284. {
  285. $this->electionRegistrationConfirmationUrl = $electionRegistrationConfirmationUrl;
  286. }
  287. public function getElectionRegistrationConfirmationUrl()
  288. {
  289. return $this->electionRegistrationConfirmationUrl;
  290. }
  291. public function setElectionRegistrationUrl($electionRegistrationUrl)
  292. {
  293. $this->electionRegistrationUrl = $electionRegistrationUrl;
  294. }
  295. public function getElectionRegistrationUrl()
  296. {
  297. return $this->electionRegistrationUrl;
  298. }
  299. public function setElectionRulesUrl($electionRulesUrl)
  300. {
  301. $this->electionRulesUrl = $electionRulesUrl;
  302. }
  303. public function getElectionRulesUrl()
  304. {
  305. return $this->electionRulesUrl;
  306. }
  307. public function setHoursOfOperation($hoursOfOperation)
  308. {
  309. $this->hoursOfOperation = $hoursOfOperation;
  310. }
  311. public function getHoursOfOperation()
  312. {
  313. return $this->hoursOfOperation;
  314. }
  315. public function setName($name)
  316. {
  317. $this->name = $name;
  318. }
  319. public function getName()
  320. {
  321. return $this->name;
  322. }
  323. public function setPhysicalAddress(Google_Service_CivicInfo_SimpleAddressType $physicalAddress)
  324. {
  325. $this->physicalAddress = $physicalAddress;
  326. }
  327. public function getPhysicalAddress()
  328. {
  329. return $this->physicalAddress;
  330. }
  331. public function setVoterServices($voterServices)
  332. {
  333. $this->voterServices = $voterServices;
  334. }
  335. public function getVoterServices()
  336. {
  337. return $this->voterServices;
  338. }
  339. public function setVotingLocationFinderUrl($votingLocationFinderUrl)
  340. {
  341. $this->votingLocationFinderUrl = $votingLocationFinderUrl;
  342. }
  343. public function getVotingLocationFinderUrl()
  344. {
  345. return $this->votingLocationFinderUrl;
  346. }
  347. }
  348. class Google_Service_CivicInfo_Candidate extends Google_Collection
  349. {
  350. public $candidateUrl;
  351. protected $channelsType = 'Google_Service_CivicInfo_Channel';
  352. protected $channelsDataType = 'array';
  353. public $email;
  354. public $name;
  355. public $orderOnBallot;
  356. public $party;
  357. public $phone;
  358. public $photoUrl;
  359. public function setCandidateUrl($candidateUrl)
  360. {
  361. $this->candidateUrl = $candidateUrl;
  362. }
  363. public function getCandidateUrl()
  364. {
  365. return $this->candidateUrl;
  366. }
  367. public function setChannels($channels)
  368. {
  369. $this->channels = $channels;
  370. }
  371. public function getChannels()
  372. {
  373. return $this->channels;
  374. }
  375. public function setEmail($email)
  376. {
  377. $this->email = $email;
  378. }
  379. public function getEmail()
  380. {
  381. return $this->email;
  382. }
  383. public function setName($name)
  384. {
  385. $this->name = $name;
  386. }
  387. public function getName()
  388. {
  389. return $this->name;
  390. }
  391. public function setOrderOnBallot($orderOnBallot)
  392. {
  393. $this->orderOnBallot = $orderOnBallot;
  394. }
  395. public function getOrderOnBallot()
  396. {
  397. return $this->orderOnBallot;
  398. }
  399. public function setParty($party)
  400. {
  401. $this->party = $party;
  402. }
  403. public function getParty()
  404. {
  405. return $this->party;
  406. }
  407. public function setPhone($phone)
  408. {
  409. $this->phone = $phone;
  410. }
  411. public function getPhone()
  412. {
  413. return $this->phone;
  414. }
  415. public function setPhotoUrl($photoUrl)
  416. {
  417. $this->photoUrl = $photoUrl;
  418. }
  419. public function getPhotoUrl()
  420. {
  421. return $this->photoUrl;
  422. }
  423. }
  424. class Google_Service_CivicInfo_Channel extends Google_Model
  425. {
  426. public $id;
  427. public $type;
  428. public function setId($id)
  429. {
  430. $this->id = $id;
  431. }
  432. public function getId()
  433. {
  434. return $this->id;
  435. }
  436. public function setType($type)
  437. {
  438. $this->type = $type;
  439. }
  440. public function getType()
  441. {
  442. return $this->type;
  443. }
  444. }
  445. class Google_Service_CivicInfo_Contest extends Google_Collection
  446. {
  447. public $ballotPlacement;
  448. protected $candidatesType = 'Google_Service_CivicInfo_Candidate';
  449. protected $candidatesDataType = 'array';
  450. protected $districtType = 'Google_Service_CivicInfo_ElectoralDistrict';
  451. protected $districtDataType = '';
  452. public $electorateSpecifications;
  453. public $id;
  454. public $level;
  455. public $numberElected;
  456. public $numberVotingFor;
  457. public $office;
  458. public $primaryParty;
  459. public $referendumSubtitle;
  460. public $referendumTitle;
  461. public $referendumUrl;
  462. protected $sourcesType = 'Google_Service_CivicInfo_Source';
  463. protected $sourcesDataType = 'array';
  464. public $special;
  465. public $type;
  466. public function setBallotPlacement($ballotPlacement)
  467. {
  468. $this->ballotPlacement = $ballotPlacement;
  469. }
  470. public function getBallotPlacement()
  471. {
  472. return $this->ballotPlacement;
  473. }
  474. public function setCandidates($candidates)
  475. {
  476. $this->candidates = $candidates;
  477. }
  478. public function getCandidates()
  479. {
  480. return $this->candidates;
  481. }
  482. public function setDistrict(Google_Service_CivicInfo_ElectoralDistrict $district)
  483. {
  484. $this->district = $district;
  485. }
  486. public function getDistrict()
  487. {
  488. return $this->district;
  489. }
  490. public function setElectorateSpecifications($electorateSpecifications)
  491. {
  492. $this->electorateSpecifications = $electorateSpecifications;
  493. }
  494. public function getElectorateSpecifications()
  495. {
  496. return $this->electorateSpecifications;
  497. }
  498. public function setId($id)
  499. {
  500. $this->id = $id;
  501. }
  502. public function getId()
  503. {
  504. return $this->id;
  505. }
  506. public function setLevel($level)
  507. {
  508. $this->level = $level;
  509. }
  510. public function getLevel()
  511. {
  512. return $this->level;
  513. }
  514. public function setNumberElected($numberElected)
  515. {
  516. $this->numberElected = $numberElected;
  517. }
  518. public function getNumberElected()
  519. {
  520. return $this->numberElected;
  521. }
  522. public function setNumberVotingFor($numberVotingFor)
  523. {
  524. $this->numberVotingFor = $numberVotingFor;
  525. }
  526. public function getNumberVotingFor()
  527. {
  528. return $this->numberVotingFor;
  529. }
  530. public function setOffice($office)
  531. {
  532. $this->office = $office;
  533. }
  534. public function getOffice()
  535. {
  536. return $this->office;
  537. }
  538. public function setPrimaryParty($primaryParty)
  539. {
  540. $this->primaryParty = $primaryParty;
  541. }
  542. public function getPrimaryParty()
  543. {
  544. return $this->primaryParty;
  545. }
  546. public function setReferendumSubtitle($referendumSubtitle)
  547. {
  548. $this->referendumSubtitle = $referendumSubtitle;
  549. }
  550. public function getReferendumSubtitle()
  551. {
  552. return $this->referendumSubtitle;
  553. }
  554. public function setReferendumTitle($referendumTitle)
  555. {
  556. $this->referendumTitle = $referendumTitle;
  557. }
  558. public function getReferendumTitle()
  559. {
  560. return $this->referendumTitle;
  561. }
  562. public function setReferendumUrl($referendumUrl)
  563. {
  564. $this->referendumUrl = $referendumUrl;
  565. }
  566. public function getReferendumUrl()
  567. {
  568. return $this->referendumUrl;
  569. }
  570. public function setSources($sources)
  571. {
  572. $this->sources = $sources;
  573. }
  574. public function getSources()
  575. {
  576. return $this->sources;
  577. }
  578. public function setSpecial($special)
  579. {
  580. $this->special = $special;
  581. }
  582. public function getSpecial()
  583. {
  584. return $this->special;
  585. }
  586. public function setType($type)
  587. {
  588. $this->type = $type;
  589. }
  590. public function getType()
  591. {
  592. return $this->type;
  593. }
  594. }
  595. class Google_Service_CivicInfo_Election extends Google_Model
  596. {
  597. public $electionDay;
  598. public $id;
  599. public $name;
  600. public function setElectionDay($electionDay)
  601. {
  602. $this->electionDay = $electionDay;
  603. }
  604. public function getElectionDay()
  605. {
  606. return $this->electionDay;
  607. }
  608. public function setId($id)
  609. {
  610. $this->id = $id;
  611. }
  612. public function getId()
  613. {
  614. return $this->id;
  615. }
  616. public function setName($name)
  617. {
  618. $this->name = $name;
  619. }
  620. public function getName()
  621. {
  622. return $this->name;
  623. }
  624. }
  625. class Google_Service_CivicInfo_ElectionOfficial extends Google_Model
  626. {
  627. public $emailAddress;
  628. public $faxNumber;
  629. public $name;
  630. public $officePhoneNumber;
  631. public $title;
  632. public function setEmailAddress($emailAddress)
  633. {
  634. $this->emailAddress = $emailAddress;
  635. }
  636. public function getEmailAddress()
  637. {
  638. return $this->emailAddress;
  639. }
  640. public function setFaxNumber($faxNumber)
  641. {
  642. $this->faxNumber = $faxNumber;
  643. }
  644. public function getFaxNumber()
  645. {
  646. return $this->faxNumber;
  647. }
  648. public function setName($name)
  649. {
  650. $this->name = $name;
  651. }
  652. public function getName()
  653. {
  654. return $this->name;
  655. }
  656. public function setOfficePhoneNumber($officePhoneNumber)
  657. {
  658. $this->officePhoneNumber = $officePhoneNumber;
  659. }
  660. public function getOfficePhoneNumber()
  661. {
  662. return $this->officePhoneNumber;
  663. }
  664. public function setTitle($title)
  665. {
  666. $this->title = $title;
  667. }
  668. public function getTitle()
  669. {
  670. return $this->title;
  671. }
  672. }
  673. class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection
  674. {
  675. protected $electionsType = 'Google_Service_CivicInfo_Election';
  676. protected $electionsDataType = 'array';
  677. public $kind;
  678. public function setElections($elections)
  679. {
  680. $this->elections = $elections;
  681. }
  682. public function getElections()
  683. {
  684. return $this->elections;
  685. }
  686. public function setKind($kind)
  687. {
  688. $this->kind = $kind;
  689. }
  690. public function getKind()
  691. {
  692. return $this->kind;
  693. }
  694. }
  695. class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model
  696. {
  697. public $id;
  698. public $name;
  699. public $scope;
  700. public function setId($id)
  701. {
  702. $this->id = $id;
  703. }
  704. public function getId()
  705. {
  706. return $this->id;
  707. }
  708. public function setName($name)
  709. {
  710. $this->name = $name;
  711. }
  712. public function getName()
  713. {
  714. return $this->name;
  715. }
  716. public function setScope($scope)
  717. {
  718. $this->scope = $scope;
  719. }
  720. public function getScope()
  721. {
  722. return $this->scope;
  723. }
  724. }
  725. class Google_Service_CivicInfo_GeographicDivision extends Google_Collection
  726. {
  727. public $name;
  728. public $officeIds;
  729. public $scope;
  730. public function setName($name)
  731. {
  732. $this->name = $name;
  733. }
  734. public function getName()
  735. {
  736. return $this->name;
  737. }
  738. public function setOfficeIds($officeIds)
  739. {
  740. $this->officeIds = $officeIds;
  741. }
  742. public function getOfficeIds()
  743. {
  744. return $this->officeIds;
  745. }
  746. public function setScope($scope)
  747. {
  748. $this->scope = $scope;
  749. }
  750. public function getScope()
  751. {
  752. return $this->scope;
  753. }
  754. }
  755. class Google_Service_CivicInfo_Office extends Google_Collection
  756. {
  757. public $level;
  758. public $name;
  759. public $officialIds;
  760. protected $sourcesType = 'Google_Service_CivicInfo_Source';
  761. protected $sourcesDataType = 'array';
  762. public function setLevel($level)
  763. {
  764. $this->level = $level;
  765. }
  766. public function getLevel()
  767. {
  768. return $this->level;
  769. }
  770. public function setName($name)
  771. {
  772. $this->name = $name;
  773. }
  774. public function getName()
  775. {
  776. return $this->name;
  777. }
  778. public function setOfficialIds($officialIds)
  779. {
  780. $this->officialIds = $officialIds;
  781. }
  782. public function getOfficialIds()
  783. {
  784. return $this->officialIds;
  785. }
  786. public function setSources($sources)
  787. {
  788. $this->sources = $sources;
  789. }
  790. public function getSources()
  791. {
  792. return $this->sources;
  793. }
  794. }
  795. class Google_Service_CivicInfo_Official extends Google_Collection
  796. {
  797. protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType';
  798. protected $addressDataType = 'array';
  799. protected $channelsType = 'Google_Service_CivicInfo_Channel';
  800. protected $channelsDataType = 'array';
  801. public $emails;
  802. public $name;
  803. public $party;
  804. public $phones;
  805. public $photoUrl;
  806. public $urls;
  807. public function setAddress($address)
  808. {
  809. $this->address = $address;
  810. }
  811. public function getAddress()
  812. {
  813. return $this->address;
  814. }
  815. public function setChannels($channels)
  816. {
  817. $this->channels = $channels;
  818. }
  819. public function getChannels()
  820. {
  821. return $this->channels;
  822. }
  823. public function setEmails($emails)
  824. {
  825. $this->emails = $emails;
  826. }
  827. public function getEmails()
  828. {
  829. return $this->emails;
  830. }
  831. public function setName($name)
  832. {
  833. $this->name = $name;
  834. }
  835. public function getName()
  836. {
  837. return $this->name;
  838. }
  839. public function setParty($party)
  840. {
  841. $this->party = $party;
  842. }
  843. public function getParty()
  844. {
  845. return $this->party;
  846. }
  847. public function setPhones($phones)
  848. {
  849. $this->phones = $phones;
  850. }
  851. public function getPhones()
  852. {
  853. return $this->phones;
  854. }
  855. public function setPhotoUrl($photoUrl)
  856. {
  857. $this->photoUrl = $photoUrl;
  858. }
  859. public function getPhotoUrl()
  860. {
  861. return $this->photoUrl;
  862. }
  863. public function setUrls($urls)
  864. {
  865. $this->urls = $urls;
  866. }
  867. public function getUrls()
  868. {
  869. return $this->urls;
  870. }
  871. }
  872. class Google_Service_CivicInfo_PollingLocation extends Google_Collection
  873. {
  874. protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType';
  875. protected $addressDataType = '';
  876. public $endDate;
  877. public $id;
  878. public $name;
  879. public $notes;
  880. public $pollingHours;
  881. protected $sourcesType = 'Google_Service_CivicInfo_Source';
  882. protected $sourcesDataType = 'array';
  883. public $startDate;
  884. public $voterServices;
  885. public function setAddress(Google_Service_CivicInfo_SimpleAddressType $address)
  886. {
  887. $this->address = $address;
  888. }
  889. public function getAddress()
  890. {
  891. return $this->address;
  892. }
  893. public function setEndDate($endDate)
  894. {
  895. $this->endDate = $endDate;
  896. }
  897. public function getEndDate()
  898. {
  899. return $this->endDate;
  900. }
  901. public function setId($id)
  902. {
  903. $this->id = $id;
  904. }
  905. public function getId()
  906. {
  907. return $this->id;
  908. }
  909. public function setName($name)
  910. {
  911. $this->name = $name;
  912. }
  913. public function getName()
  914. {
  915. return $this->name;
  916. }
  917. public function setNotes($notes)
  918. {
  919. $this->notes = $notes;
  920. }
  921. public function getNotes()
  922. {
  923. return $this->notes;
  924. }
  925. public function setPollingHours($pollingHours)
  926. {
  927. $this->pollingHours = $pollingHours;
  928. }
  929. public function getPollingHours()
  930. {
  931. return $this->pollingHours;
  932. }
  933. public function setSources($sources)
  934. {
  935. $this->sources = $sources;
  936. }
  937. public function getSources()
  938. {
  939. return $this->sources;
  940. }
  941. public function setStartDate($startDate)
  942. {
  943. $this->startDate = $startDate;
  944. }
  945. public function getStartDate()
  946. {
  947. return $this->startDate;
  948. }
  949. public function setVoterServices($voterServices)
  950. {
  951. $this->voterServices = $voterServices;
  952. }
  953. public function getVoterServices()
  954. {
  955. return $this->voterServices;
  956. }
  957. }
  958. class Google_Service_CivicInfo_RepresentativeInfoRequest extends Google_Model
  959. {
  960. public $address;
  961. public function setAddress($address)
  962. {
  963. $this->address = $address;
  964. }
  965. public function getAddress()
  966. {
  967. return $this->address;
  968. }
  969. }
  970. class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Model
  971. {
  972. protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision';
  973. protected $divisionsDataType = 'map';
  974. public $kind;
  975. protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType';
  976. protected $normalizedInputDataType = '';
  977. protected $officesType = 'Google_Service_CivicInfo_Office';
  978. protected $officesDataType = 'map';
  979. protected $officialsType = 'Google_Service_CivicInfo_Official';
  980. protected $officialsDataType = 'map';
  981. public $status;
  982. public function setDivisions($divisions)
  983. {
  984. $this->divisions = $divisions;
  985. }
  986. public function getDivisions()
  987. {
  988. return $this->divisions;
  989. }
  990. public function setKind($kind)
  991. {
  992. $this->kind = $kind;
  993. }
  994. public function getKind()
  995. {
  996. return $this->kind;
  997. }
  998. public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput)
  999. {
  1000. $this->normalizedInput = $normalizedInput;
  1001. }
  1002. public function getNormalizedInput()
  1003. {
  1004. return $this->normalizedInput;
  1005. }
  1006. public function setOffices($offices)
  1007. {
  1008. $this->offices = $offices;
  1009. }
  1010. public function getOffices()
  1011. {
  1012. return $this->offices;
  1013. }
  1014. public function setOfficials($officials)
  1015. {
  1016. $this->officials = $officials;
  1017. }
  1018. public function getOfficials()
  1019. {
  1020. return $this->officials;
  1021. }
  1022. public function setStatus($status)
  1023. {
  1024. $this->status = $status;
  1025. }
  1026. public function getStatus()
  1027. {
  1028. return $this->status;
  1029. }
  1030. }
  1031. class Google_Service_CivicInfo_SimpleAddressType extends Google_Model
  1032. {
  1033. public $city;
  1034. public $line1;
  1035. public $line2;
  1036. public $line3;
  1037. public $locationName;
  1038. public $state;
  1039. public $zip;
  1040. public function setCity($city)
  1041. {
  1042. $this->city = $city;
  1043. }
  1044. public function getCity()
  1045. {
  1046. return $this->city;
  1047. }
  1048. public function setLine1($line1)
  1049. {
  1050. $this->line1 = $line1;
  1051. }
  1052. public function getLine1()
  1053. {
  1054. return $this->line1;
  1055. }
  1056. public function setLine2($line2)
  1057. {
  1058. $this->line2 = $line2;
  1059. }
  1060. public function getLine2()
  1061. {
  1062. return $this->line2;
  1063. }
  1064. public function setLine3($line3)
  1065. {
  1066. $this->line3 = $line3;
  1067. }
  1068. public function getLine3()
  1069. {
  1070. return $this->line3;
  1071. }
  1072. public function setLocationName($locationName)
  1073. {
  1074. $this->locationName = $locationName;
  1075. }
  1076. public function getLocationName()
  1077. {
  1078. return $this->locationName;
  1079. }
  1080. public function setState($state)
  1081. {
  1082. $this->state = $state;
  1083. }
  1084. public function getState()
  1085. {
  1086. return $this->state;
  1087. }
  1088. public function setZip($zip)
  1089. {
  1090. $this->zip = $zip;
  1091. }
  1092. public function getZip()
  1093. {
  1094. return $this->zip;
  1095. }
  1096. }
  1097. class Google_Service_CivicInfo_Source extends Google_Model
  1098. {
  1099. public $name;
  1100. public $official;
  1101. public function setName($name)
  1102. {
  1103. $this->name = $name;
  1104. }
  1105. public function getName()
  1106. {
  1107. return $this->name;
  1108. }
  1109. public function setOfficial($official)
  1110. {
  1111. $this->official = $official;
  1112. }
  1113. public function getOfficial()
  1114. {
  1115. return $this->official;
  1116. }
  1117. }
  1118. class Google_Service_CivicInfo_VoterInfoRequest extends Google_Model
  1119. {
  1120. public $address;
  1121. public function setAddress($address)
  1122. {
  1123. $this->address = $address;
  1124. }
  1125. public function getAddress()
  1126. {
  1127. return $this->address;
  1128. }
  1129. }
  1130. class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection
  1131. {
  1132. protected $contestsType = 'Google_Service_CivicInfo_Contest';
  1133. protected $contestsDataType = 'array';
  1134. protected $earlyVoteSitesType = 'Google_Service_CivicInfo_PollingLocation';
  1135. protected $earlyVoteSitesDataType = 'array';
  1136. protected $electionType = 'Google_Service_CivicInfo_Election';
  1137. protected $electionDataType = '';
  1138. public $kind;
  1139. protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType';
  1140. protected $normalizedInputDataType = '';
  1141. protected $pollingLocationsType = 'Google_Service_CivicInfo_PollingLocation';
  1142. protected $pollingLocationsDataType = 'array';
  1143. protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion';
  1144. protected $stateDataType = 'array';
  1145. public $status;
  1146. public function setContests($contests)
  1147. {
  1148. $this->contests = $contests;
  1149. }
  1150. public function getContests()
  1151. {
  1152. return $this->contests;
  1153. }
  1154. public function setEarlyVoteSites($earlyVoteSites)
  1155. {
  1156. $this->earlyVoteSites = $earlyVoteSites;
  1157. }
  1158. public function getEarlyVoteSites()
  1159. {
  1160. return $this->earlyVoteSites;
  1161. }
  1162. public function setElection(Google_Service_CivicInfo_Election $election)
  1163. {
  1164. $this->election = $election;
  1165. }
  1166. public function getElection()
  1167. {
  1168. return $this->election;
  1169. }
  1170. public function setKind($kind)
  1171. {
  1172. $this->kind = $kind;
  1173. }
  1174. public function getKind()
  1175. {
  1176. return $this->kind;
  1177. }
  1178. public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput)
  1179. {
  1180. $this->normalizedInput = $normalizedInput;
  1181. }
  1182. public function getNormalizedInput()
  1183. {
  1184. return $this->normalizedInput;
  1185. }
  1186. public function setPollingLocations($pollingLocations)
  1187. {
  1188. $this->pollingLocations = $pollingLocations;
  1189. }
  1190. public function getPollingLocations()
  1191. {
  1192. return $this->pollingLocations;
  1193. }
  1194. public function setState($state)
  1195. {
  1196. $this->state = $state;
  1197. }
  1198. public function getState()
  1199. {
  1200. return $this->state;
  1201. }
  1202. public function setStatus($status)
  1203. {
  1204. $this->status = $status;
  1205. }
  1206. public function getStatus()
  1207. {
  1208. return $this->status;
  1209. }
  1210. }