wp-database-backup
/
includes
/
admin
/
Destination
/
Google
/
google-api-php-client
/
src
/
contrib
/
Google_CivicInfoService.php
Google_CivicInfoService.php in WP Database Backup – Unlimited Database & Files Backup by Backup for WP 7.7, at includes/admin/Destination/Google/google-api-php-client/src/contrib/Google_CivicInfoService.php
| 1 | <?php |
| 2 | /* |
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | * use this file except in compliance with the License. You may obtain a copy of |
| 5 | * the License at |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | * License for the specific language governing permissions and limitations under |
| 13 | * the License. |
| 14 | */ |
| 15 | |
| 16 | |
| 17 | /** |
| 18 | * The "elections" collection of methods. |
| 19 | * Typical usage is: |
| 20 | * <code> |
| 21 | * $civicinfoService = new Google_CivicInfoService(...); |
| 22 | * $elections = $civicinfoService->elections; |
| 23 | * </code> |
| 24 | */ |
| 25 | class Google_ElectionsServiceResource extends Google_ServiceResource { |
| 26 | |
| 27 | /** |
| 28 | * List of available elections to query. (elections.electionQuery) |
| 29 | * |
| 30 | * @param array $optParams Optional parameters. |
| 31 | * @return Google_ElectionsQueryResponse |
| 32 | */ |
| 33 | public function electionQuery($optParams = array()) { |
| 34 | $params = array(); |
| 35 | $params = array_merge($params, $optParams); |
| 36 | $data = $this->__call('electionQuery', array($params)); |
| 37 | if ($this->useObjects()) { |
| 38 | return new Google_ElectionsQueryResponse($data); |
| 39 | } else { |
| 40 | return $data; |
| 41 | } |
| 42 | } |
| 43 | /** |
| 44 | * Looks up information relevant to a voter based on the voter's registered address. |
| 45 | * (elections.voterInfoQuery) |
| 46 | * |
| 47 | * @param string $electionId The unique ID of the election to look up. A list of election IDs can be obtained at.https://www.googleapis.com/civicinfo/{version}/elections |
| 48 | * @param Google_VoterInfoRequest $postBody |
| 49 | * @param array $optParams Optional parameters. |
| 50 | * |
| 51 | * @opt_param bool officialOnly If set to true, only data from official state sources will be returned. |
| 52 | * @return Google_VoterInfoResponse |
| 53 | */ |
| 54 | public function voterInfoQuery($electionId, Google_VoterInfoRequest $postBody, $optParams = array()) { |
| 55 | $params = array('electionId' => $electionId, 'postBody' => $postBody); |
| 56 | $params = array_merge($params, $optParams); |
| 57 | $data = $this->__call('voterInfoQuery', array($params)); |
| 58 | if ($this->useObjects()) { |
| 59 | return new Google_VoterInfoResponse($data); |
| 60 | } else { |
| 61 | return $data; |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Service definition for Google_CivicInfo (us_v1). |
| 68 | * |
| 69 | * <p> |
| 70 | * An API for accessing civic information. |
| 71 | * </p> |
| 72 | * |
| 73 | * <p> |
| 74 | * For more information about this service, see the |
| 75 | * <a href="https://developers.google.com/civic-information" target="_blank">API Documentation</a> |
| 76 | * </p> |
| 77 | * |
| 78 | * @author Google, Inc. |
| 79 | */ |
| 80 | class Google_CivicInfoService extends Google_Service { |
| 81 | public $elections; |
| 82 | /** |
| 83 | * Constructs the internal representation of the CivicInfo service. |
| 84 | * |
| 85 | * @param Google_Client $client |
| 86 | */ |
| 87 | public function __construct(Google_Client $client) { |
| 88 | $this->servicePath = 'civicinfo/us_v1/'; |
| 89 | $this->version = 'us_v1'; |
| 90 | $this->serviceName = 'civicinfo'; |
| 91 | |
| 92 | $client->addService($this->serviceName, $this->version); |
| 93 | $this->elections = new Google_ElectionsServiceResource($this, $this->serviceName, 'elections', json_decode('{"methods": {"electionQuery": {"id": "civicinfo.elections.electionQuery", "path": "elections", "httpMethod": "GET", "response": {"$ref": "ElectionsQueryResponse"}}, "voterInfoQuery": {"id": "civicinfo.elections.voterInfoQuery", "path": "voterinfo/{electionId}/lookup", "httpMethod": "POST", "parameters": {"electionId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "officialOnly": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "VoterInfoRequest"}, "response": {"$ref": "VoterInfoResponse"}}}}', true)); |
| 94 | |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | |
| 99 | |
| 100 | class Google_AdministrationRegion extends Google_Model { |
| 101 | protected $__electionAdministrationBodyType = 'Google_AdministrativeBody'; |
| 102 | protected $__electionAdministrationBodyDataType = ''; |
| 103 | public $electionAdministrationBody; |
| 104 | public $id; |
| 105 | protected $__local_jurisdictionType = 'Google_AdministrationRegion'; |
| 106 | protected $__local_jurisdictionDataType = ''; |
| 107 | public $local_jurisdiction; |
| 108 | public $name; |
| 109 | protected $__sourcesType = 'Google_Source'; |
| 110 | protected $__sourcesDataType = 'array'; |
| 111 | public $sources; |
| 112 | public function setElectionAdministrationBody(Google_AdministrativeBody $electionAdministrationBody) { |
| 113 | $this->electionAdministrationBody = $electionAdministrationBody; |
| 114 | } |
| 115 | public function getElectionAdministrationBody() { |
| 116 | return $this->electionAdministrationBody; |
| 117 | } |
| 118 | public function setId( $id) { |
| 119 | $this->id = $id; |
| 120 | } |
| 121 | public function getId() { |
| 122 | return $this->id; |
| 123 | } |
| 124 | public function setLocal_jurisdiction(Google_AdministrationRegion $local_jurisdiction) { |
| 125 | $this->local_jurisdiction = $local_jurisdiction; |
| 126 | } |
| 127 | public function getLocal_jurisdiction() { |
| 128 | return $this->local_jurisdiction; |
| 129 | } |
| 130 | public function setName( $name) { |
| 131 | $this->name = $name; |
| 132 | } |
| 133 | public function getName() { |
| 134 | return $this->name; |
| 135 | } |
| 136 | public function setSources(/* array(Google_Source) */ $sources) { |
| 137 | $this->assertIsArray($sources, 'Google_Source', __METHOD__); |
| 138 | $this->sources = $sources; |
| 139 | } |
| 140 | public function getSources() { |
| 141 | return $this->sources; |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | class Google_AdministrativeBody extends Google_Model { |
| 146 | public $absenteeVotingInfoUrl; |
| 147 | public $ballotInfoUrl; |
| 148 | protected $__correspondenceAddressType = 'Google_SimpleAddressType'; |
| 149 | protected $__correspondenceAddressDataType = ''; |
| 150 | public $correspondenceAddress; |
| 151 | public $electionInfoUrl; |
| 152 | protected $__electionOfficialsType = 'Google_ElectionOfficial'; |
| 153 | protected $__electionOfficialsDataType = 'array'; |
| 154 | public $electionOfficials; |
| 155 | public $electionRegistrationConfirmationUrl; |
| 156 | public $electionRegistrationUrl; |
| 157 | public $electionRulesUrl; |
| 158 | public $hoursOfOperation; |
| 159 | public $name; |
| 160 | protected $__physicalAddressType = 'Google_SimpleAddressType'; |
| 161 | protected $__physicalAddressDataType = ''; |
| 162 | public $physicalAddress; |
| 163 | public $voter_services; |
| 164 | public $votingLocationFinderUrl; |
| 165 | public function setAbsenteeVotingInfoUrl( $absenteeVotingInfoUrl) { |
| 166 | $this->absenteeVotingInfoUrl = $absenteeVotingInfoUrl; |
| 167 | } |
| 168 | public function getAbsenteeVotingInfoUrl() { |
| 169 | return $this->absenteeVotingInfoUrl; |
| 170 | } |
| 171 | public function setBallotInfoUrl( $ballotInfoUrl) { |
| 172 | $this->ballotInfoUrl = $ballotInfoUrl; |
| 173 | } |
| 174 | public function getBallotInfoUrl() { |
| 175 | return $this->ballotInfoUrl; |
| 176 | } |
| 177 | public function setCorrespondenceAddress(Google_SimpleAddressType $correspondenceAddress) { |
| 178 | $this->correspondenceAddress = $correspondenceAddress; |
| 179 | } |
| 180 | public function getCorrespondenceAddress() { |
| 181 | return $this->correspondenceAddress; |
| 182 | } |
| 183 | public function setElectionInfoUrl( $electionInfoUrl) { |
| 184 | $this->electionInfoUrl = $electionInfoUrl; |
| 185 | } |
| 186 | public function getElectionInfoUrl() { |
| 187 | return $this->electionInfoUrl; |
| 188 | } |
| 189 | public function setElectionOfficials(/* array(Google_ElectionOfficial) */ $electionOfficials) { |
| 190 | $this->assertIsArray($electionOfficials, 'Google_ElectionOfficial', __METHOD__); |
| 191 | $this->electionOfficials = $electionOfficials; |
| 192 | } |
| 193 | public function getElectionOfficials() { |
| 194 | return $this->electionOfficials; |
| 195 | } |
| 196 | public function setElectionRegistrationConfirmationUrl( $electionRegistrationConfirmationUrl) { |
| 197 | $this->electionRegistrationConfirmationUrl = $electionRegistrationConfirmationUrl; |
| 198 | } |
| 199 | public function getElectionRegistrationConfirmationUrl() { |
| 200 | return $this->electionRegistrationConfirmationUrl; |
| 201 | } |
| 202 | public function setElectionRegistrationUrl( $electionRegistrationUrl) { |
| 203 | $this->electionRegistrationUrl = $electionRegistrationUrl; |
| 204 | } |
| 205 | public function getElectionRegistrationUrl() { |
| 206 | return $this->electionRegistrationUrl; |
| 207 | } |
| 208 | public function setElectionRulesUrl( $electionRulesUrl) { |
| 209 | $this->electionRulesUrl = $electionRulesUrl; |
| 210 | } |
| 211 | public function getElectionRulesUrl() { |
| 212 | return $this->electionRulesUrl; |
| 213 | } |
| 214 | public function setHoursOfOperation( $hoursOfOperation) { |
| 215 | $this->hoursOfOperation = $hoursOfOperation; |
| 216 | } |
| 217 | public function getHoursOfOperation() { |
| 218 | return $this->hoursOfOperation; |
| 219 | } |
| 220 | public function setName( $name) { |
| 221 | $this->name = $name; |
| 222 | } |
| 223 | public function getName() { |
| 224 | return $this->name; |
| 225 | } |
| 226 | public function setPhysicalAddress(Google_SimpleAddressType $physicalAddress) { |
| 227 | $this->physicalAddress = $physicalAddress; |
| 228 | } |
| 229 | public function getPhysicalAddress() { |
| 230 | return $this->physicalAddress; |
| 231 | } |
| 232 | public function setVoter_services(/* array(Google_string) */ $voter_services) { |
| 233 | $this->assertIsArray($voter_services, 'Google_string', __METHOD__); |
| 234 | $this->voter_services = $voter_services; |
| 235 | } |
| 236 | public function getVoter_services() { |
| 237 | return $this->voter_services; |
| 238 | } |
| 239 | public function setVotingLocationFinderUrl( $votingLocationFinderUrl) { |
| 240 | $this->votingLocationFinderUrl = $votingLocationFinderUrl; |
| 241 | } |
| 242 | public function getVotingLocationFinderUrl() { |
| 243 | return $this->votingLocationFinderUrl; |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | class Google_Candidate extends Google_Model { |
| 248 | public $candidateUrl; |
| 249 | protected $__channelsType = 'Google_Channel'; |
| 250 | protected $__channelsDataType = 'array'; |
| 251 | public $channels; |
| 252 | public $email; |
| 253 | public $name; |
| 254 | public $orderOnBallot; |
| 255 | public $party; |
| 256 | public $phone; |
| 257 | public $photoUrl; |
| 258 | public function setCandidateUrl( $candidateUrl) { |
| 259 | $this->candidateUrl = $candidateUrl; |
| 260 | } |
| 261 | public function getCandidateUrl() { |
| 262 | return $this->candidateUrl; |
| 263 | } |
| 264 | public function setChannels(/* array(Google_Channel) */ $channels) { |
| 265 | $this->assertIsArray($channels, 'Google_Channel', __METHOD__); |
| 266 | $this->channels = $channels; |
| 267 | } |
| 268 | public function getChannels() { |
| 269 | return $this->channels; |
| 270 | } |
| 271 | public function setEmail( $email) { |
| 272 | $this->email = $email; |
| 273 | } |
| 274 | public function getEmail() { |
| 275 | return $this->email; |
| 276 | } |
| 277 | public function setName( $name) { |
| 278 | $this->name = $name; |
| 279 | } |
| 280 | public function getName() { |
| 281 | return $this->name; |
| 282 | } |
| 283 | public function setOrderOnBallot( $orderOnBallot) { |
| 284 | $this->orderOnBallot = $orderOnBallot; |
| 285 | } |
| 286 | public function getOrderOnBallot() { |
| 287 | return $this->orderOnBallot; |
| 288 | } |
| 289 | public function setParty( $party) { |
| 290 | $this->party = $party; |
| 291 | } |
| 292 | public function getParty() { |
| 293 | return $this->party; |
| 294 | } |
| 295 | public function setPhone( $phone) { |
| 296 | $this->phone = $phone; |
| 297 | } |
| 298 | public function getPhone() { |
| 299 | return $this->phone; |
| 300 | } |
| 301 | public function setPhotoUrl( $photoUrl) { |
| 302 | $this->photoUrl = $photoUrl; |
| 303 | } |
| 304 | public function getPhotoUrl() { |
| 305 | return $this->photoUrl; |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | class Google_Channel extends Google_Model { |
| 310 | public $id; |
| 311 | public $type; |
| 312 | public function setId( $id) { |
| 313 | $this->id = $id; |
| 314 | } |
| 315 | public function getId() { |
| 316 | return $this->id; |
| 317 | } |
| 318 | public function setType( $type) { |
| 319 | $this->type = $type; |
| 320 | } |
| 321 | public function getType() { |
| 322 | return $this->type; |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | class Google_Contest extends Google_Model { |
| 327 | public $ballotPlacement; |
| 328 | protected $__candidatesType = 'Google_Candidate'; |
| 329 | protected $__candidatesDataType = 'array'; |
| 330 | public $candidates; |
| 331 | protected $__districtType = 'Google_ElectoralDistrict'; |
| 332 | protected $__districtDataType = ''; |
| 333 | public $district; |
| 334 | public $electorateSpecifications; |
| 335 | public $id; |
| 336 | public $level; |
| 337 | public $numberElected; |
| 338 | public $numberVotingFor; |
| 339 | public $office; |
| 340 | public $primaryParty; |
| 341 | public $referendumSubtitle; |
| 342 | public $referendumTitle; |
| 343 | public $referendumUrl; |
| 344 | protected $__sourcesType = 'Google_Source'; |
| 345 | protected $__sourcesDataType = 'array'; |
| 346 | public $sources; |
| 347 | public $special; |
| 348 | public $type; |
| 349 | public function setBallotPlacement( $ballotPlacement) { |
| 350 | $this->ballotPlacement = $ballotPlacement; |
| 351 | } |
| 352 | public function getBallotPlacement() { |
| 353 | return $this->ballotPlacement; |
| 354 | } |
| 355 | public function setCandidates(/* array(Google_Candidate) */ $candidates) { |
| 356 | $this->assertIsArray($candidates, 'Google_Candidate', __METHOD__); |
| 357 | $this->candidates = $candidates; |
| 358 | } |
| 359 | public function getCandidates() { |
| 360 | return $this->candidates; |
| 361 | } |
| 362 | public function setDistrict(Google_ElectoralDistrict $district) { |
| 363 | $this->district = $district; |
| 364 | } |
| 365 | public function getDistrict() { |
| 366 | return $this->district; |
| 367 | } |
| 368 | public function setElectorateSpecifications( $electorateSpecifications) { |
| 369 | $this->electorateSpecifications = $electorateSpecifications; |
| 370 | } |
| 371 | public function getElectorateSpecifications() { |
| 372 | return $this->electorateSpecifications; |
| 373 | } |
| 374 | public function setId( $id) { |
| 375 | $this->id = $id; |
| 376 | } |
| 377 | public function getId() { |
| 378 | return $this->id; |
| 379 | } |
| 380 | public function setLevel( $level) { |
| 381 | $this->level = $level; |
| 382 | } |
| 383 | public function getLevel() { |
| 384 | return $this->level; |
| 385 | } |
| 386 | public function setNumberElected( $numberElected) { |
| 387 | $this->numberElected = $numberElected; |
| 388 | } |
| 389 | public function getNumberElected() { |
| 390 | return $this->numberElected; |
| 391 | } |
| 392 | public function setNumberVotingFor( $numberVotingFor) { |
| 393 | $this->numberVotingFor = $numberVotingFor; |
| 394 | } |
| 395 | public function getNumberVotingFor() { |
| 396 | return $this->numberVotingFor; |
| 397 | } |
| 398 | public function setOffice( $office) { |
| 399 | $this->office = $office; |
| 400 | } |
| 401 | public function getOffice() { |
| 402 | return $this->office; |
| 403 | } |
| 404 | public function setPrimaryParty( $primaryParty) { |
| 405 | $this->primaryParty = $primaryParty; |
| 406 | } |
| 407 | public function getPrimaryParty() { |
| 408 | return $this->primaryParty; |
| 409 | } |
| 410 | public function setReferendumSubtitle( $referendumSubtitle) { |
| 411 | $this->referendumSubtitle = $referendumSubtitle; |
| 412 | } |
| 413 | public function getReferendumSubtitle() { |
| 414 | return $this->referendumSubtitle; |
| 415 | } |
| 416 | public function setReferendumTitle( $referendumTitle) { |
| 417 | $this->referendumTitle = $referendumTitle; |
| 418 | } |
| 419 | public function getReferendumTitle() { |
| 420 | return $this->referendumTitle; |
| 421 | } |
| 422 | public function setReferendumUrl( $referendumUrl) { |
| 423 | $this->referendumUrl = $referendumUrl; |
| 424 | } |
| 425 | public function getReferendumUrl() { |
| 426 | return $this->referendumUrl; |
| 427 | } |
| 428 | public function setSources(/* array(Google_Source) */ $sources) { |
| 429 | $this->assertIsArray($sources, 'Google_Source', __METHOD__); |
| 430 | $this->sources = $sources; |
| 431 | } |
| 432 | public function getSources() { |
| 433 | return $this->sources; |
| 434 | } |
| 435 | public function setSpecial( $special) { |
| 436 | $this->special = $special; |
| 437 | } |
| 438 | public function getSpecial() { |
| 439 | return $this->special; |
| 440 | } |
| 441 | public function setType( $type) { |
| 442 | $this->type = $type; |
| 443 | } |
| 444 | public function getType() { |
| 445 | return $this->type; |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | class Google_Election extends Google_Model { |
| 450 | public $electionDay; |
| 451 | public $id; |
| 452 | public $name; |
| 453 | public function setElectionDay( $electionDay) { |
| 454 | $this->electionDay = $electionDay; |
| 455 | } |
| 456 | public function getElectionDay() { |
| 457 | return $this->electionDay; |
| 458 | } |
| 459 | public function setId( $id) { |
| 460 | $this->id = $id; |
| 461 | } |
| 462 | public function getId() { |
| 463 | return $this->id; |
| 464 | } |
| 465 | public function setName( $name) { |
| 466 | $this->name = $name; |
| 467 | } |
| 468 | public function getName() { |
| 469 | return $this->name; |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | class Google_ElectionOfficial extends Google_Model { |
| 474 | public $emailAddress; |
| 475 | public $faxNumber; |
| 476 | public $name; |
| 477 | public $officePhoneNumber; |
| 478 | public $title; |
| 479 | public function setEmailAddress( $emailAddress) { |
| 480 | $this->emailAddress = $emailAddress; |
| 481 | } |
| 482 | public function getEmailAddress() { |
| 483 | return $this->emailAddress; |
| 484 | } |
| 485 | public function setFaxNumber( $faxNumber) { |
| 486 | $this->faxNumber = $faxNumber; |
| 487 | } |
| 488 | public function getFaxNumber() { |
| 489 | return $this->faxNumber; |
| 490 | } |
| 491 | public function setName( $name) { |
| 492 | $this->name = $name; |
| 493 | } |
| 494 | public function getName() { |
| 495 | return $this->name; |
| 496 | } |
| 497 | public function setOfficePhoneNumber( $officePhoneNumber) { |
| 498 | $this->officePhoneNumber = $officePhoneNumber; |
| 499 | } |
| 500 | public function getOfficePhoneNumber() { |
| 501 | return $this->officePhoneNumber; |
| 502 | } |
| 503 | public function setTitle( $title) { |
| 504 | $this->title = $title; |
| 505 | } |
| 506 | public function getTitle() { |
| 507 | return $this->title; |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | class Google_ElectionsQueryResponse extends Google_Model { |
| 512 | protected $__electionsType = 'Google_Election'; |
| 513 | protected $__electionsDataType = 'array'; |
| 514 | public $elections; |
| 515 | public $kind; |
| 516 | public function setElections(/* array(Google_Election) */ $elections) { |
| 517 | $this->assertIsArray($elections, 'Google_Election', __METHOD__); |
| 518 | $this->elections = $elections; |
| 519 | } |
| 520 | public function getElections() { |
| 521 | return $this->elections; |
| 522 | } |
| 523 | public function setKind( $kind) { |
| 524 | $this->kind = $kind; |
| 525 | } |
| 526 | public function getKind() { |
| 527 | return $this->kind; |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | class Google_ElectoralDistrict extends Google_Model { |
| 532 | public $id; |
| 533 | public $name; |
| 534 | public $scope; |
| 535 | public function setId( $id) { |
| 536 | $this->id = $id; |
| 537 | } |
| 538 | public function getId() { |
| 539 | return $this->id; |
| 540 | } |
| 541 | public function setName( $name) { |
| 542 | $this->name = $name; |
| 543 | } |
| 544 | public function getName() { |
| 545 | return $this->name; |
| 546 | } |
| 547 | public function setScope( $scope) { |
| 548 | $this->scope = $scope; |
| 549 | } |
| 550 | public function getScope() { |
| 551 | return $this->scope; |
| 552 | } |
| 553 | } |
| 554 | |
| 555 | class Google_PollingLocation extends Google_Model { |
| 556 | protected $__addressType = 'Google_SimpleAddressType'; |
| 557 | protected $__addressDataType = ''; |
| 558 | public $address; |
| 559 | public $endDate; |
| 560 | public $id; |
| 561 | public $name; |
| 562 | public $notes; |
| 563 | public $pollingHours; |
| 564 | protected $__sourcesType = 'Google_Source'; |
| 565 | protected $__sourcesDataType = 'array'; |
| 566 | public $sources; |
| 567 | public $startDate; |
| 568 | public $voterServices; |
| 569 | public function setAddress(Google_SimpleAddressType $address) { |
| 570 | $this->address = $address; |
| 571 | } |
| 572 | public function getAddress() { |
| 573 | return $this->address; |
| 574 | } |
| 575 | public function setEndDate( $endDate) { |
| 576 | $this->endDate = $endDate; |
| 577 | } |
| 578 | public function getEndDate() { |
| 579 | return $this->endDate; |
| 580 | } |
| 581 | public function setId( $id) { |
| 582 | $this->id = $id; |
| 583 | } |
| 584 | public function getId() { |
| 585 | return $this->id; |
| 586 | } |
| 587 | public function setName( $name) { |
| 588 | $this->name = $name; |
| 589 | } |
| 590 | public function getName() { |
| 591 | return $this->name; |
| 592 | } |
| 593 | public function setNotes( $notes) { |
| 594 | $this->notes = $notes; |
| 595 | } |
| 596 | public function getNotes() { |
| 597 | return $this->notes; |
| 598 | } |
| 599 | public function setPollingHours( $pollingHours) { |
| 600 | $this->pollingHours = $pollingHours; |
| 601 | } |
| 602 | public function getPollingHours() { |
| 603 | return $this->pollingHours; |
| 604 | } |
| 605 | public function setSources(/* array(Google_Source) */ $sources) { |
| 606 | $this->assertIsArray($sources, 'Google_Source', __METHOD__); |
| 607 | $this->sources = $sources; |
| 608 | } |
| 609 | public function getSources() { |
| 610 | return $this->sources; |
| 611 | } |
| 612 | public function setStartDate( $startDate) { |
| 613 | $this->startDate = $startDate; |
| 614 | } |
| 615 | public function getStartDate() { |
| 616 | return $this->startDate; |
| 617 | } |
| 618 | public function setVoterServices( $voterServices) { |
| 619 | $this->voterServices = $voterServices; |
| 620 | } |
| 621 | public function getVoterServices() { |
| 622 | return $this->voterServices; |
| 623 | } |
| 624 | } |
| 625 | |
| 626 | class Google_SimpleAddressType extends Google_Model { |
| 627 | public $city; |
| 628 | public $line1; |
| 629 | public $line2; |
| 630 | public $line3; |
| 631 | public $locationName; |
| 632 | public $state; |
| 633 | public $zip; |
| 634 | public function setCity( $city) { |
| 635 | $this->city = $city; |
| 636 | } |
| 637 | public function getCity() { |
| 638 | return $this->city; |
| 639 | } |
| 640 | public function setLine1( $line1) { |
| 641 | $this->line1 = $line1; |
| 642 | } |
| 643 | public function getLine1() { |
| 644 | return $this->line1; |
| 645 | } |
| 646 | public function setLine2( $line2) { |
| 647 | $this->line2 = $line2; |
| 648 | } |
| 649 | public function getLine2() { |
| 650 | return $this->line2; |
| 651 | } |
| 652 | public function setLine3( $line3) { |
| 653 | $this->line3 = $line3; |
| 654 | } |
| 655 | public function getLine3() { |
| 656 | return $this->line3; |
| 657 | } |
| 658 | public function setLocationName( $locationName) { |
| 659 | $this->locationName = $locationName; |
| 660 | } |
| 661 | public function getLocationName() { |
| 662 | return $this->locationName; |
| 663 | } |
| 664 | public function setState( $state) { |
| 665 | $this->state = $state; |
| 666 | } |
| 667 | public function getState() { |
| 668 | return $this->state; |
| 669 | } |
| 670 | public function setZip( $zip) { |
| 671 | $this->zip = $zip; |
| 672 | } |
| 673 | public function getZip() { |
| 674 | return $this->zip; |
| 675 | } |
| 676 | } |
| 677 | |
| 678 | class Google_Source extends Google_Model { |
| 679 | public $name; |
| 680 | public $official; |
| 681 | public function setName( $name) { |
| 682 | $this->name = $name; |
| 683 | } |
| 684 | public function getName() { |
| 685 | return $this->name; |
| 686 | } |
| 687 | public function setOfficial( $official) { |
| 688 | $this->official = $official; |
| 689 | } |
| 690 | public function getOfficial() { |
| 691 | return $this->official; |
| 692 | } |
| 693 | } |
| 694 | |
| 695 | class Google_VoterInfoRequest extends Google_Model { |
| 696 | public $address; |
| 697 | public function setAddress( $address) { |
| 698 | $this->address = $address; |
| 699 | } |
| 700 | public function getAddress() { |
| 701 | return $this->address; |
| 702 | } |
| 703 | } |
| 704 | |
| 705 | class Google_VoterInfoResponse extends Google_Model { |
| 706 | protected $__contestsType = 'Google_Contest'; |
| 707 | protected $__contestsDataType = 'array'; |
| 708 | public $contests; |
| 709 | protected $__earlyVoteSitesType = 'Google_PollingLocation'; |
| 710 | protected $__earlyVoteSitesDataType = 'array'; |
| 711 | public $earlyVoteSites; |
| 712 | protected $__electionType = 'Google_Election'; |
| 713 | protected $__electionDataType = ''; |
| 714 | public $election; |
| 715 | public $kind; |
| 716 | protected $__normalizedInputType = 'Google_SimpleAddressType'; |
| 717 | protected $__normalizedInputDataType = ''; |
| 718 | public $normalizedInput; |
| 719 | protected $__pollingLocationsType = 'Google_PollingLocation'; |
| 720 | protected $__pollingLocationsDataType = 'array'; |
| 721 | public $pollingLocations; |
| 722 | protected $__stateType = 'Google_AdministrationRegion'; |
| 723 | protected $__stateDataType = 'array'; |
| 724 | public $state; |
| 725 | public $status; |
| 726 | public function setContests(/* array(Google_Contest) */ $contests) { |
| 727 | $this->assertIsArray($contests, 'Google_Contest', __METHOD__); |
| 728 | $this->contests = $contests; |
| 729 | } |
| 730 | public function getContests() { |
| 731 | return $this->contests; |
| 732 | } |
| 733 | public function setEarlyVoteSites(/* array(Google_PollingLocation) */ $earlyVoteSites) { |
| 734 | $this->assertIsArray($earlyVoteSites, 'Google_PollingLocation', __METHOD__); |
| 735 | $this->earlyVoteSites = $earlyVoteSites; |
| 736 | } |
| 737 | public function getEarlyVoteSites() { |
| 738 | return $this->earlyVoteSites; |
| 739 | } |
| 740 | public function setElection(Google_Election $election) { |
| 741 | $this->election = $election; |
| 742 | } |
| 743 | public function getElection() { |
| 744 | return $this->election; |
| 745 | } |
| 746 | public function setKind( $kind) { |
| 747 | $this->kind = $kind; |
| 748 | } |
| 749 | public function getKind() { |
| 750 | return $this->kind; |
| 751 | } |
| 752 | public function setNormalizedInput(Google_SimpleAddressType $normalizedInput) { |
| 753 | $this->normalizedInput = $normalizedInput; |
| 754 | } |
| 755 | public function getNormalizedInput() { |
| 756 | return $this->normalizedInput; |
| 757 | } |
| 758 | public function setPollingLocations(/* array(Google_PollingLocation) */ $pollingLocations) { |
| 759 | $this->assertIsArray($pollingLocations, 'Google_PollingLocation', __METHOD__); |
| 760 | $this->pollingLocations = $pollingLocations; |
| 761 | } |
| 762 | public function getPollingLocations() { |
| 763 | return $this->pollingLocations; |
| 764 | } |
| 765 | public function setState(/* array(Google_AdministrationRegion) */ $state) { |
| 766 | $this->assertIsArray($state, 'Google_AdministrationRegion', __METHOD__); |
| 767 | $this->state = $state; |
| 768 | } |
| 769 | public function getState() { |
| 770 | return $this->state; |
| 771 | } |
| 772 | public function setStatus( $status) { |
| 773 | $this->status = $status; |
| 774 | } |
| 775 | public function getStatus() { |
| 776 | return $this->status; |
| 777 | } |
| 778 | } |
| 779 |