Skip to content

Commit 40b57e4

Browse files
1 parent f128a75 commit 40b57e4

26 files changed

+350
-434
lines changed

clients/google-api-services-civicinfo/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-civicinfo</artifactId>
25-
<version>v2-rev20240910-2.0.0</version>
25+
<version>v2-rev20250320-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-civicinfo:v2-rev20240910-2.0.0'
38+
implementation 'com.google.apis:google-api-services-civicinfo:v2-rev20250320-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-civicinfo/v2/2.0.0/com/google/api/services/civicinfo/v2/CivicInfo.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public QueryDivisionByAddress queryDivisionByAddress() throws java.io.IOExceptio
170170
return result;
171171
}
172172

173-
public class QueryDivisionByAddress extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.DivisionByAddressResponse> {
173+
public class QueryDivisionByAddress extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2DivisionByAddressResponse> {
174174

175175
private static final String REST_PATH = "civicinfo/v2/divisionsByAddress";
176176

@@ -188,7 +188,7 @@ public class QueryDivisionByAddress extends CivicInfoRequest<com.google.api.serv
188188
* @since 1.13
189189
*/
190190
protected QueryDivisionByAddress() {
191-
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.DivisionByAddressResponse.class);
191+
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2DivisionByAddressResponse.class);
192192
}
193193

194194
@Override
@@ -292,7 +292,7 @@ public Search search() throws java.io.IOException {
292292
return result;
293293
}
294294

295-
public class Search extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.DivisionSearchResponse> {
295+
public class Search extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2DivisionSearchResponse> {
296296

297297
private static final String REST_PATH = "civicinfo/v2/divisions";
298298

@@ -310,7 +310,7 @@ public class Search extends CivicInfoRequest<com.google.api.services.civicinfo.v
310310
* @since 1.13
311311
*/
312312
protected Search() {
313-
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.DivisionSearchResponse.class);
313+
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2DivisionSearchResponse.class);
314314
}
315315

316316
@Override
@@ -451,7 +451,7 @@ public ElectionQuery electionQuery() throws java.io.IOException {
451451
return result;
452452
}
453453

454-
public class ElectionQuery extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.ElectionsQueryResponse> {
454+
public class ElectionQuery extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2ElectionsQueryResponse> {
455455

456456
private static final String REST_PATH = "civicinfo/v2/elections";
457457

@@ -469,7 +469,7 @@ public class ElectionQuery extends CivicInfoRequest<com.google.api.services.civi
469469
* @since 1.13
470470
*/
471471
protected ElectionQuery() {
472-
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.ElectionsQueryResponse.class);
472+
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2ElectionsQueryResponse.class);
473473
}
474474

475475
@Override
@@ -601,7 +601,7 @@ public VoterInfoQuery voterInfoQuery() throws java.io.IOException {
601601
return result;
602602
}
603603

604-
public class VoterInfoQuery extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.VoterInfoResponse> {
604+
public class VoterInfoQuery extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2VoterInfoResponse> {
605605

606606
private static final String REST_PATH = "civicinfo/v2/voterinfo";
607607

@@ -619,7 +619,7 @@ public class VoterInfoQuery extends CivicInfoRequest<com.google.api.services.civ
619619
* @since 1.13
620620
*/
621621
protected VoterInfoQuery() {
622-
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.VoterInfoResponse.class);
622+
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2VoterInfoResponse.class);
623623
}
624624

625625
@Override
@@ -929,7 +929,7 @@ public RepresentativeInfoByAddress representativeInfoByAddress() throws java.io.
929929
return result;
930930
}
931931

932-
public class RepresentativeInfoByAddress extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.RepresentativeInfoResponse> {
932+
public class RepresentativeInfoByAddress extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2RepresentativeInfoResponse> {
933933

934934
private static final String REST_PATH = "civicinfo/v2/representatives";
935935

@@ -947,7 +947,7 @@ public class RepresentativeInfoByAddress extends CivicInfoRequest<com.google.api
947947
* @since 1.13
948948
*/
949949
protected RepresentativeInfoByAddress() {
950-
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.RepresentativeInfoResponse.class);
950+
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2RepresentativeInfoResponse.class);
951951
}
952952

953953
@Override
@@ -1155,7 +1155,7 @@ public RepresentativeInfoByDivision representativeInfoByDivision(java.lang.Strin
11551155
return result;
11561156
}
11571157

1158-
public class RepresentativeInfoByDivision extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.RepresentativeInfoData> {
1158+
public class RepresentativeInfoByDivision extends CivicInfoRequest<com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2RepresentativeInfoData> {
11591159

11601160
private static final String REST_PATH = "civicinfo/v2/representatives/{ocdId}";
11611161

@@ -1174,7 +1174,7 @@ public class RepresentativeInfoByDivision extends CivicInfoRequest<com.google.ap
11741174
* @since 1.13
11751175
*/
11761176
protected RepresentativeInfoByDivision(java.lang.String ocdId) {
1177-
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.RepresentativeInfoData.class);
1177+
super(CivicInfo.this, "GET", REST_PATH, null, com.google.api.services.civicinfo.v2.model.CivicinfoApiprotosV2RepresentativeInfoData.class);
11781178
this.ocdId = com.google.api.client.util.Preconditions.checkNotNull(ocdId, "Required parameter ocdId must be specified.");
11791179
}
11801180

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.api.services.civicinfo.v2.model;
1818

1919
/**
20-
* Model definition for DivisionByAddressResponse.
20+
* Model definition for CivicinfoApiprotosV2DivisionByAddressResponse.
2121
*
2222
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2323
* transmitted over HTTP when working with the Google Civic Information API. For a detailed
@@ -28,32 +28,32 @@
2828
* @author Google, Inc.
2929
*/
3030
@SuppressWarnings("javadoc")
31-
public final class DivisionByAddressResponse extends com.google.api.client.json.GenericJson {
31+
public final class CivicinfoApiprotosV2DivisionByAddressResponse extends com.google.api.client.json.GenericJson {
3232

3333
/**
3434
* The value may be {@code null}.
3535
*/
3636
@com.google.api.client.util.Key
37-
private java.util.Map<String, GeographicDivision> divisions;
37+
private java.util.Map<String, CivicinfoSchemaV2GeographicDivision> divisions;
3838

3939
/**
4040
* The normalized version of the requested address.
4141
* The value may be {@code null}.
4242
*/
4343
@com.google.api.client.util.Key
44-
private SimpleAddressType normalizedInput;
44+
private CivicinfoSchemaV2SimpleAddressType normalizedInput;
4545

4646
/**
4747
* @return value or {@code null} for none
4848
*/
49-
public java.util.Map<String, GeographicDivision> getDivisions() {
49+
public java.util.Map<String, CivicinfoSchemaV2GeographicDivision> getDivisions() {
5050
return divisions;
5151
}
5252

5353
/**
5454
* @param divisions divisions or {@code null} for none
5555
*/
56-
public DivisionByAddressResponse setDivisions(java.util.Map<String, GeographicDivision> divisions) {
56+
public CivicinfoApiprotosV2DivisionByAddressResponse setDivisions(java.util.Map<String, CivicinfoSchemaV2GeographicDivision> divisions) {
5757
this.divisions = divisions;
5858
return this;
5959
}
@@ -62,27 +62,27 @@ public DivisionByAddressResponse setDivisions(java.util.Map<String, GeographicDi
6262
* The normalized version of the requested address.
6363
* @return value or {@code null} for none
6464
*/
65-
public SimpleAddressType getNormalizedInput() {
65+
public CivicinfoSchemaV2SimpleAddressType getNormalizedInput() {
6666
return normalizedInput;
6767
}
6868

6969
/**
7070
* The normalized version of the requested address.
7171
* @param normalizedInput normalizedInput or {@code null} for none
7272
*/
73-
public DivisionByAddressResponse setNormalizedInput(SimpleAddressType normalizedInput) {
73+
public CivicinfoApiprotosV2DivisionByAddressResponse setNormalizedInput(CivicinfoSchemaV2SimpleAddressType normalizedInput) {
7474
this.normalizedInput = normalizedInput;
7575
return this;
7676
}
7777

7878
@Override
79-
public DivisionByAddressResponse set(String fieldName, Object value) {
80-
return (DivisionByAddressResponse) super.set(fieldName, value);
79+
public CivicinfoApiprotosV2DivisionByAddressResponse set(String fieldName, Object value) {
80+
return (CivicinfoApiprotosV2DivisionByAddressResponse) super.set(fieldName, value);
8181
}
8282

8383
@Override
84-
public DivisionByAddressResponse clone() {
85-
return (DivisionByAddressResponse) super.clone();
84+
public CivicinfoApiprotosV2DivisionByAddressResponse clone() {
85+
return (CivicinfoApiprotosV2DivisionByAddressResponse) super.clone();
8686
}
8787

8888
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @author Google, Inc.
2929
*/
3030
@SuppressWarnings("javadoc")
31-
public final class DivisionSearchResponse extends com.google.api.client.json.GenericJson {
31+
public final class CivicinfoApiprotosV2DivisionSearchResponse extends com.google.api.client.json.GenericJson {
3232

3333
/**
3434
* Identifies what kind of resource this is. Value: the fixed string
@@ -42,7 +42,7 @@ public final class DivisionSearchResponse extends com.google.api.client.json.Gen
4242
* The value may be {@code null}.
4343
*/
4444
@com.google.api.client.util.Key
45-
private java.util.List<DivisionSearchResult> results;
45+
private java.util.List<CivicinfoApiprotosV2DivisionSearchResult> results;
4646

4747
/**
4848
* Identifies what kind of resource this is. Value: the fixed string
@@ -58,34 +58,34 @@ public java.lang.String getKind() {
5858
* "civicinfo#divisionSearchResponse".
5959
* @param kind kind or {@code null} for none
6060
*/
61-
public DivisionSearchResponse setKind(java.lang.String kind) {
61+
public CivicinfoApiprotosV2DivisionSearchResponse setKind(java.lang.String kind) {
6262
this.kind = kind;
6363
return this;
6464
}
6565

6666
/**
6767
* @return value or {@code null} for none
6868
*/
69-
public java.util.List<DivisionSearchResult> getResults() {
69+
public java.util.List<CivicinfoApiprotosV2DivisionSearchResult> getResults() {
7070
return results;
7171
}
7272

7373
/**
7474
* @param results results or {@code null} for none
7575
*/
76-
public DivisionSearchResponse setResults(java.util.List<DivisionSearchResult> results) {
76+
public CivicinfoApiprotosV2DivisionSearchResponse setResults(java.util.List<CivicinfoApiprotosV2DivisionSearchResult> results) {
7777
this.results = results;
7878
return this;
7979
}
8080

8181
@Override
82-
public DivisionSearchResponse set(String fieldName, Object value) {
83-
return (DivisionSearchResponse) super.set(fieldName, value);
82+
public CivicinfoApiprotosV2DivisionSearchResponse set(String fieldName, Object value) {
83+
return (CivicinfoApiprotosV2DivisionSearchResponse) super.set(fieldName, value);
8484
}
8585

8686
@Override
87-
public DivisionSearchResponse clone() {
88-
return (DivisionSearchResponse) super.clone();
87+
public CivicinfoApiprotosV2DivisionSearchResponse clone() {
88+
return (CivicinfoApiprotosV2DivisionSearchResponse) super.clone();
8989
}
9090

9191
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @author Google, Inc.
2929
*/
3030
@SuppressWarnings("javadoc")
31-
public final class DivisionSearchResult extends com.google.api.client.json.GenericJson {
31+
public final class CivicinfoApiprotosV2DivisionSearchResult extends com.google.api.client.json.GenericJson {
3232

3333
/**
3434
* Other Open Civic Data identifiers that refer to the same division -- for example, those that
@@ -72,7 +72,7 @@ public java.util.List<java.lang.String> getAliases() {
7272
* division/country:us/state:wy/cd:1, since Wyoming has only one Congressional district.
7373
* @param aliases aliases or {@code null} for none
7474
*/
75-
public DivisionSearchResult setAliases(java.util.List<java.lang.String> aliases) {
75+
public CivicinfoApiprotosV2DivisionSearchResult setAliases(java.util.List<java.lang.String> aliases) {
7676
this.aliases = aliases;
7777
return this;
7878
}
@@ -89,7 +89,7 @@ public java.lang.String getName() {
8989
* The name of the division.
9090
* @param name name or {@code null} for none
9191
*/
92-
public DivisionSearchResult setName(java.lang.String name) {
92+
public CivicinfoApiprotosV2DivisionSearchResult setName(java.lang.String name) {
9393
this.name = name;
9494
return this;
9595
}
@@ -106,19 +106,19 @@ public java.lang.String getOcdId() {
106106
* The unique Open Civic Data identifier for this division
107107
* @param ocdId ocdId or {@code null} for none
108108
*/
109-
public DivisionSearchResult setOcdId(java.lang.String ocdId) {
109+
public CivicinfoApiprotosV2DivisionSearchResult setOcdId(java.lang.String ocdId) {
110110
this.ocdId = ocdId;
111111
return this;
112112
}
113113

114114
@Override
115-
public DivisionSearchResult set(String fieldName, Object value) {
116-
return (DivisionSearchResult) super.set(fieldName, value);
115+
public CivicinfoApiprotosV2DivisionSearchResult set(String fieldName, Object value) {
116+
return (CivicinfoApiprotosV2DivisionSearchResult) super.set(fieldName, value);
117117
}
118118

119119
@Override
120-
public DivisionSearchResult clone() {
121-
return (DivisionSearchResult) super.clone();
120+
public CivicinfoApiprotosV2DivisionSearchResult clone() {
121+
return (CivicinfoApiprotosV2DivisionSearchResult) super.clone();
122122
}
123123

124124
}
Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,14 @@
2828
* @author Google, Inc.
2929
*/
3030
@SuppressWarnings("javadoc")
31-
public final class ElectionsQueryResponse extends com.google.api.client.json.GenericJson {
31+
public final class CivicinfoApiprotosV2ElectionsQueryResponse extends com.google.api.client.json.GenericJson {
3232

3333
/**
3434
* A list of available elections
3535
* The value may be {@code null}.
3636
*/
3737
@com.google.api.client.util.Key
38-
private java.util.List<Election> elections;
39-
40-
static {
41-
// hack to force ProGuard to consider Election used, since otherwise it would be stripped out
42-
// see https://github.com/google/google-api-java-client/issues/543
43-
com.google.api.client.util.Data.nullOf(Election.class);
44-
}
38+
private java.util.List<CivicinfoSchemaV2Election> elections;
4539

4640
/**
4741
* Identifies what kind of resource this is. Value: the fixed string
@@ -55,15 +49,15 @@ public final class ElectionsQueryResponse extends com.google.api.client.json.Gen
5549
* A list of available elections
5650
* @return value or {@code null} for none
5751
*/
58-
public java.util.List<Election> getElections() {
52+
public java.util.List<CivicinfoSchemaV2Election> getElections() {
5953
return elections;
6054
}
6155

6256
/**
6357
* A list of available elections
6458
* @param elections elections or {@code null} for none
6559
*/
66-
public ElectionsQueryResponse setElections(java.util.List<Election> elections) {
60+
public CivicinfoApiprotosV2ElectionsQueryResponse setElections(java.util.List<CivicinfoSchemaV2Election> elections) {
6761
this.elections = elections;
6862
return this;
6963
}
@@ -82,19 +76,19 @@ public java.lang.String getKind() {
8276
* "civicinfo#electionsQueryResponse".
8377
* @param kind kind or {@code null} for none
8478
*/
85-
public ElectionsQueryResponse setKind(java.lang.String kind) {
79+
public CivicinfoApiprotosV2ElectionsQueryResponse setKind(java.lang.String kind) {
8680
this.kind = kind;
8781
return this;
8882
}
8983

9084
@Override
91-
public ElectionsQueryResponse set(String fieldName, Object value) {
92-
return (ElectionsQueryResponse) super.set(fieldName, value);
85+
public CivicinfoApiprotosV2ElectionsQueryResponse set(String fieldName, Object value) {
86+
return (CivicinfoApiprotosV2ElectionsQueryResponse) super.set(fieldName, value);
9387
}
9488

9589
@Override
96-
public ElectionsQueryResponse clone() {
97-
return (ElectionsQueryResponse) super.clone();
90+
public CivicinfoApiprotosV2ElectionsQueryResponse clone() {
91+
return (CivicinfoApiprotosV2ElectionsQueryResponse) super.clone();
9892
}
9993

10094
}

0 commit comments

Comments
 (0)