Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

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