google-apis-civicinfo_v2 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc633fd90a449ef44351f06c4c58a128fb9d361920da6b0156fc1853bb2f01f4
4
- data.tar.gz: 33ad98ca2677505247a48cb693a2210fd834fd5d8be8ffc1a15908b893af6845
3
+ metadata.gz: 8fcd8e85574b9e5be6bbe580a3505bc90b54418045cfab92e34352287e7e540e
4
+ data.tar.gz: 3660256d05d9e4e7d4f7512d1ec20391f136f4918863fc45c72af5708728a38e
5
5
  SHA512:
6
- metadata.gz: 8a99d7f0442e5ac35dd8cfeb2abe363bebc0ff0930fd31f242c50e129f6fb6f599204f2540bfb7299d1817ec2c4650ca72f471930354d5603b2e8d9b89dc26f9
7
- data.tar.gz: bcb3512ca0a40df8756bb6f7bb969f27b3e2ceccb7277ad012859f3d5a2a60473b1241fad53c95d8504d3fa06f438adac1c41714df0bdc3da563063194bfb7ff
6
+ metadata.gz: 0f91d69340cc395b439f1309317298294702fe02aff94329bf2da7469f036384800a01d8403b9def70b6804e4f0b0263defb3ab95b92ce7f1dd8dcc641cb8a1e
7
+ data.tar.gz: 7c02fe93433519aaec82593fce1a1b9eb6d76e38660bdd5dda48ef8001de9ea16ffbd95303036b7411afd7941a5db0f242107f0dba4d1cf5b8464c53115f6295
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-civicinfo_v2
2
2
 
3
+ ### v0.18.0 (2023-06-11)
4
+
5
+ * Regenerated from discovery document revision 20230606
6
+
7
+ ### v0.17.0 (2023-04-02)
8
+
9
+ * Regenerated from discovery document revision 20230328
10
+
3
11
  ### v0.16.0 (2023-02-26)
4
12
 
5
13
  * Regenerated from discovery document revision 20221206
@@ -321,13 +321,6 @@ module Google
321
321
  # @return [Array<String>]
322
322
  attr_accessor :primary_parties
323
323
 
324
- # [DEPRECATED] If this is a partisan election, the name of the party it is for.
325
- # This field as deprecated in favor of the array "primaryParties", as contests
326
- # may contain more than one party.
327
- # Corresponds to the JSON property `primaryParty`
328
- # @return [String]
329
- attr_accessor :primary_party
330
-
331
324
  # The set of ballot responses for the referendum. A ballot response represents a
332
325
  # line on the ballot. Common examples might include "yes" or "no" for referenda.
333
326
  # This field is only populated for contests of type 'Referendum'.
@@ -431,7 +424,6 @@ module Google
431
424
  @number_voting_for = args[:number_voting_for] if args.key?(:number_voting_for)
432
425
  @office = args[:office] if args.key?(:office)
433
426
  @primary_parties = args[:primary_parties] if args.key?(:primary_parties)
434
- @primary_party = args[:primary_party] if args.key?(:primary_party)
435
427
  @referendum_ballot_responses = args[:referendum_ballot_responses] if args.key?(:referendum_ballot_responses)
436
428
  @referendum_brief = args[:referendum_brief] if args.key?(:referendum_brief)
437
429
  @referendum_con_statement = args[:referendum_con_statement] if args.key?(:referendum_con_statement)
@@ -660,128 +652,6 @@ module Google
660
652
  end
661
653
  end
662
654
 
663
- # A globally unique identifier associated with each feature. We use 128-bit
664
- # identifiers so that we have lots of bits available to distinguish between
665
- # features. The feature id currently consists of a 64-bit "cell id" that **
666
- # sometimes** corresponds to the approximate centroid of the feature, plus a 64-
667
- # bit fingerprint of other identifying information. See more on each respective
668
- # field in its comments. Feature ids are first assigned when the data is created
669
- # in MapFacts. After initial creation of the feature, they are immutable. This
670
- # means that the only properties that you should rely on are that they are
671
- # unique, and that cell_ids often - but not always - preserve spatial locality.
672
- # The degree of locality varies as the feature undergoes geometry changes, and
673
- # should not in general be considered a firm guarantee of the location of any
674
- # particular feature. In fact, some locationless features have randomized cell
675
- # IDs! Consumers of FeatureProtos from Mapfacts are guaranteed that fprints in
676
- # the id field of features will be globally unique. Using the fprint allows
677
- # consumers who don't need the spatial benefit of cell ids to uniquely identify
678
- # features in a 64-bit address space. This property is not guaranteed for other
679
- # sources of FeatureProtos.
680
- class FeatureIdProto
681
- include Google::Apis::Core::Hashable
682
-
683
- # The S2CellId corresponding to the approximate location of this feature as of
684
- # when it was first created. This can be of variable accuracy, ranging from the
685
- # exact centroid of the feature at creation, a very large S2 Cell, or even being
686
- # completely randomized for locationless features. Cell ids have the nice
687
- # property that they follow a space-filling curve over the surface of the earth.
688
- # (See s2cellid.h for details.) WARNING: Clients should only use cell IDs to
689
- # perform spatial locality optimizations. There is no strict guarantee that the
690
- # cell ID of a feature is related to the current geometry of the feature in any
691
- # way.
692
- # Corresponds to the JSON property `cellId`
693
- # @return [Fixnum]
694
- attr_accessor :cell_id
695
-
696
- # A 64-bit fingerprint used to identify features. Most clients should rely on
697
- # MapFacts or OneRing to choose fingerprints. If creating new fprints, the
698
- # strategy should be chosen so that the chance of collision is remote or non-
699
- # existent, and the distribution should be reasonably uniform. For example, if
700
- # the source data assigns unique ids to features, then a fingerprint of the
701
- # provider name, version, and source id is sufficient.
702
- # Corresponds to the JSON property `fprint`
703
- # @return [Fixnum]
704
- attr_accessor :fprint
705
-
706
- # This is proto2's version of MessageSet.
707
- # Corresponds to the JSON property `temporaryData`
708
- # @return [Google::Apis::CivicinfoV2::MessageSet]
709
- attr_accessor :temporary_data
710
-
711
- def initialize(**args)
712
- update!(**args)
713
- end
714
-
715
- # Update properties of this object
716
- def update!(**args)
717
- @cell_id = args[:cell_id] if args.key?(:cell_id)
718
- @fprint = args[:fprint] if args.key?(:fprint)
719
- @temporary_data = args[:temporary_data] if args.key?(:temporary_data)
720
- end
721
- end
722
-
723
- # Detailed summary of the result from geocoding an address
724
- class GeocodingSummary
725
- include Google::Apis::Core::Hashable
726
-
727
- # Represents the best estimate of whether or not the input address was fully
728
- # understood and the address is correctly componentized. Mirrors the same-name
729
- # field in geostore.staging.AddressLinkupScoringProto.
730
- # Corresponds to the JSON property `addressUnderstood`
731
- # @return [Boolean]
732
- attr_accessor :address_understood
733
- alias_method :address_understood?, :address_understood
734
-
735
- # A globally unique identifier associated with each feature. We use 128-bit
736
- # identifiers so that we have lots of bits available to distinguish between
737
- # features. The feature id currently consists of a 64-bit "cell id" that **
738
- # sometimes** corresponds to the approximate centroid of the feature, plus a 64-
739
- # bit fingerprint of other identifying information. See more on each respective
740
- # field in its comments. Feature ids are first assigned when the data is created
741
- # in MapFacts. After initial creation of the feature, they are immutable. This
742
- # means that the only properties that you should rely on are that they are
743
- # unique, and that cell_ids often - but not always - preserve spatial locality.
744
- # The degree of locality varies as the feature undergoes geometry changes, and
745
- # should not in general be considered a firm guarantee of the location of any
746
- # particular feature. In fact, some locationless features have randomized cell
747
- # IDs! Consumers of FeatureProtos from Mapfacts are guaranteed that fprints in
748
- # the id field of features will be globally unique. Using the fprint allows
749
- # consumers who don't need the spatial benefit of cell ids to uniquely identify
750
- # features in a 64-bit address space. This property is not guaranteed for other
751
- # sources of FeatureProtos.
752
- # Corresponds to the JSON property `featureId`
753
- # @return [Google::Apis::CivicinfoV2::FeatureIdProto]
754
- attr_accessor :feature_id
755
-
756
- # The feature type for the FeatureProto returned by the geocoder
757
- # Corresponds to the JSON property `featureType`
758
- # @return [String]
759
- attr_accessor :feature_type
760
-
761
- # Precision of the center point (lat/long) of the geocoded FeatureProto
762
- # Corresponds to the JSON property `positionPrecisionMeters`
763
- # @return [Float]
764
- attr_accessor :position_precision_meters
765
-
766
- # The query sent to the geocoder
767
- # Corresponds to the JSON property `queryString`
768
- # @return [String]
769
- attr_accessor :query_string
770
-
771
- def initialize(**args)
772
- update!(**args)
773
- end
774
-
775
- # Update properties of this object
776
- def update!(**args)
777
- @address_understood = args[:address_understood] if args.key?(:address_understood)
778
- @feature_id = args[:feature_id] if args.key?(:feature_id)
779
- @feature_type = args[:feature_type] if args.key?(:feature_type)
780
- @position_precision_meters = args[:position_precision_meters] if args.key?(:position_precision_meters)
781
- @query_string = args[:query_string] if args.key?(:query_string)
782
- end
783
- end
784
-
785
655
  # Describes a political geography.
786
656
  class GeographicDivision
787
657
  include Google::Apis::Core::Hashable
@@ -822,19 +692,6 @@ module Google
822
692
  end
823
693
  end
824
694
 
825
- # This is proto2's version of MessageSet.
826
- class MessageSet
827
- include Google::Apis::Core::Hashable
828
-
829
- def initialize(**args)
830
- update!(**args)
831
- end
832
-
833
- # Update properties of this object
834
- def update!(**args)
835
- end
836
- end
837
-
838
695
  # Information about an Office held by one or more Officials.
839
696
  class Office
840
697
  include Google::Apis::Core::Hashable
@@ -912,11 +769,6 @@ module Google
912
769
  # @return [Array<String>]
913
770
  attr_accessor :emails
914
771
 
915
- # Detailed summary about the official's address's geocoding
916
- # Corresponds to the JSON property `geocodingSummaries`
917
- # @return [Array<Google::Apis::CivicinfoV2::GeocodingSummary>]
918
- attr_accessor :geocoding_summaries
919
-
920
772
  # The official's name.
921
773
  # Corresponds to the JSON property `name`
922
774
  # @return [String]
@@ -951,7 +803,6 @@ module Google
951
803
  @address = args[:address] if args.key?(:address)
952
804
  @channels = args[:channels] if args.key?(:channels)
953
805
  @emails = args[:emails] if args.key?(:emails)
954
- @geocoding_summaries = args[:geocoding_summaries] if args.key?(:geocoding_summaries)
955
806
  @name = args[:name] if args.key?(:name)
956
807
  @party = args[:party] if args.key?(:party)
957
808
  @phones = args[:phones] if args.key?(:phones)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CivicinfoV2
18
18
  # Version of the google-apis-civicinfo_v2 gem
19
- GEM_VERSION = "0.16.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221206"
25
+ REVISION = "20230606"
26
26
  end
27
27
  end
28
28
  end
@@ -88,30 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class FeatureIdProto
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- class GeocodingSummary
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
91
  class GeographicDivision
104
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
93
 
106
94
  include Google::Apis::Core::JsonObjectSupport
107
95
  end
108
96
 
109
- class MessageSet
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
-
112
- include Google::Apis::Core::JsonObjectSupport
113
- end
114
-
115
97
  class Office
116
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
99
 
@@ -241,7 +223,6 @@ module Google
241
223
  property :number_voting_for, :numeric_string => true, as: 'numberVotingFor'
242
224
  property :office, as: 'office'
243
225
  collection :primary_parties, as: 'primaryParties'
244
- property :primary_party, as: 'primaryParty'
245
226
  collection :referendum_ballot_responses, as: 'referendumBallotResponses'
246
227
  property :referendum_brief, as: 'referendumBrief'
247
228
  property :referendum_con_statement, as: 'referendumConStatement'
@@ -318,28 +299,6 @@ module Google
318
299
  end
319
300
  end
320
301
 
321
- class FeatureIdProto
322
- # @private
323
- class Representation < Google::Apis::Core::JsonRepresentation
324
- property :cell_id, :numeric_string => true, as: 'cellId'
325
- property :fprint, :numeric_string => true, as: 'fprint'
326
- property :temporary_data, as: 'temporaryData', class: Google::Apis::CivicinfoV2::MessageSet, decorator: Google::Apis::CivicinfoV2::MessageSet::Representation
327
-
328
- end
329
- end
330
-
331
- class GeocodingSummary
332
- # @private
333
- class Representation < Google::Apis::Core::JsonRepresentation
334
- property :address_understood, as: 'addressUnderstood'
335
- property :feature_id, as: 'featureId', class: Google::Apis::CivicinfoV2::FeatureIdProto, decorator: Google::Apis::CivicinfoV2::FeatureIdProto::Representation
336
-
337
- property :feature_type, as: 'featureType'
338
- property :position_precision_meters, as: 'positionPrecisionMeters'
339
- property :query_string, as: 'queryString'
340
- end
341
- end
342
-
343
302
  class GeographicDivision
344
303
  # @private
345
304
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -349,12 +308,6 @@ module Google
349
308
  end
350
309
  end
351
310
 
352
- class MessageSet
353
- # @private
354
- class Representation < Google::Apis::Core::JsonRepresentation
355
- end
356
- end
357
-
358
311
  class Office
359
312
  # @private
360
313
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -376,8 +329,6 @@ module Google
376
329
  collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::Channel, decorator: Google::Apis::CivicinfoV2::Channel::Representation
377
330
 
378
331
  collection :emails, as: 'emails'
379
- collection :geocoding_summaries, as: 'geocodingSummaries', class: Google::Apis::CivicinfoV2::GeocodingSummary, decorator: Google::Apis::CivicinfoV2::GeocodingSummary::Representation
380
-
381
332
  property :name, as: 'name'
382
333
  property :party, as: 'party'
383
334
  collection :phones, as: 'phones'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-civicinfo_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-26 00:00:00.000000000 Z
11
+ date: 2023-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-civicinfo_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-civicinfo_v2/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-civicinfo_v2/v0.18.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-civicinfo_v2
63
63
  post_install_message:
64
64
  rdoc_options: []