Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 0882fa3

Browse files
feat!: release gapic-generator-java v2.0.0 (#91)
Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Link: googleapis/googleapis@d9eaf41 Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a
1 parent 82bf963 commit 0882fa3

36 files changed

+165
-604
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>google-cloud-appengine-admin</artifactId>
22-
<version>1.0.0</version>
22+
<version>1.0.1</version>
2323
</dependency>
2424
```
2525

2626
If you are using Gradle without BOM, add this to your dependencies
2727

2828
```Groovy
29-
compile 'com.google.cloud:google-cloud-appengine-admin:1.0.0'
29+
compile 'com.google.cloud:google-cloud-appengine-admin:1.0.1'
3030
```
3131

3232
If you are using SBT, add this to your dependencies
3333

3434
```Scala
35-
libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "1.0.0"
35+
libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "1.0.1"
3636
```
3737

3838
## Authentication

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,13 @@ public ApplicationsStubSettings.Builder getStubSettingsBuilder() {
190190
return ((ApplicationsStubSettings.Builder) getStubSettings());
191191
}
192192

193-
// NEXT_MAJOR_VER: remove 'throws Exception'.
194193
/**
195194
* Applies the given settings updater function to all of the unary API methods in this service.
196195
*
197196
* <p>Note: This method does not support applying settings to streaming methods.
198197
*/
199198
public Builder applyToAllUnaryMethods(
200-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
199+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
201200
super.applyToAllUnaryMethods(
202201
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
203202
return this;

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesClient.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.appengine.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -521,14 +520,7 @@ public static ApiFuture<ListAuthorizedCertificatesPagedResponse> createAsync(
521520
ListAuthorizedCertificatesPage.createEmptyPage().createPageAsync(context, futureResponse);
522521
return ApiFutures.transform(
523522
futurePage,
524-
new ApiFunction<
525-
ListAuthorizedCertificatesPage, ListAuthorizedCertificatesPagedResponse>() {
526-
@Override
527-
public ListAuthorizedCertificatesPagedResponse apply(
528-
ListAuthorizedCertificatesPage input) {
529-
return new ListAuthorizedCertificatesPagedResponse(input);
530-
}
531-
},
523+
input -> new ListAuthorizedCertificatesPagedResponse(input),
532524
MoreExecutors.directExecutor());
533525
}
534526

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,13 @@ public AuthorizedCertificatesStubSettings.Builder getStubSettingsBuilder() {
195195
return ((AuthorizedCertificatesStubSettings.Builder) getStubSettings());
196196
}
197197

198-
// NEXT_MAJOR_VER: remove 'throws Exception'.
199198
/**
200199
* Applies the given settings updater function to all of the unary API methods in this service.
201200
*
202201
* <p>Note: This method does not support applying settings to streaming methods.
203202
*/
204203
public Builder applyToAllUnaryMethods(
205-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
204+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
206205
super.applyToAllUnaryMethods(
207206
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
208207
return this;

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedDomainsClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.appengine.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -298,12 +297,7 @@ public static ApiFuture<ListAuthorizedDomainsPagedResponse> createAsync(
298297
ListAuthorizedDomainsPage.createEmptyPage().createPageAsync(context, futureResponse);
299298
return ApiFutures.transform(
300299
futurePage,
301-
new ApiFunction<ListAuthorizedDomainsPage, ListAuthorizedDomainsPagedResponse>() {
302-
@Override
303-
public ListAuthorizedDomainsPagedResponse apply(ListAuthorizedDomainsPage input) {
304-
return new ListAuthorizedDomainsPagedResponse(input);
305-
}
306-
},
300+
input -> new ListAuthorizedDomainsPagedResponse(input),
307301
MoreExecutors.directExecutor());
308302
}
309303

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedDomainsSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,13 @@ public AuthorizedDomainsStubSettings.Builder getStubSettingsBuilder() {
163163
return ((AuthorizedDomainsStubSettings.Builder) getStubSettings());
164164
}
165165

166-
// NEXT_MAJOR_VER: remove 'throws Exception'.
167166
/**
168167
* Applies the given settings updater function to all of the unary API methods in this service.
169168
*
170169
* <p>Note: This method does not support applying settings to streaming methods.
171170
*/
172171
public Builder applyToAllUnaryMethods(
173-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
172+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
174173
super.applyToAllUnaryMethods(
175174
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
176175
return this;

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/DomainMappingsClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.appengine.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -576,12 +575,7 @@ public static ApiFuture<ListDomainMappingsPagedResponse> createAsync(
576575
ListDomainMappingsPage.createEmptyPage().createPageAsync(context, futureResponse);
577576
return ApiFutures.transform(
578577
futurePage,
579-
new ApiFunction<ListDomainMappingsPage, ListDomainMappingsPagedResponse>() {
580-
@Override
581-
public ListDomainMappingsPagedResponse apply(ListDomainMappingsPage input) {
582-
return new ListDomainMappingsPagedResponse(input);
583-
}
584-
},
578+
input -> new ListDomainMappingsPagedResponse(input),
585579
MoreExecutors.directExecutor());
586580
}
587581

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/DomainMappingsSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,13 @@ public DomainMappingsStubSettings.Builder getStubSettingsBuilder() {
202202
return ((DomainMappingsStubSettings.Builder) getStubSettings());
203203
}
204204

205-
// NEXT_MAJOR_VER: remove 'throws Exception'.
206205
/**
207206
* Applies the given settings updater function to all of the unary API methods in this service.
208207
*
209208
* <p>Note: This method does not support applying settings to streaming methods.
210209
*/
211210
public Builder applyToAllUnaryMethods(
212-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
211+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
213212
super.applyToAllUnaryMethods(
214213
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
215214
return this;

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/FirewallClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.appengine.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -534,12 +533,7 @@ public static ApiFuture<ListIngressRulesPagedResponse> createAsync(
534533
ListIngressRulesPage.createEmptyPage().createPageAsync(context, futureResponse);
535534
return ApiFutures.transform(
536535
futurePage,
537-
new ApiFunction<ListIngressRulesPage, ListIngressRulesPagedResponse>() {
538-
@Override
539-
public ListIngressRulesPagedResponse apply(ListIngressRulesPage input) {
540-
return new ListIngressRulesPagedResponse(input);
541-
}
542-
},
536+
input -> new ListIngressRulesPagedResponse(input),
543537
MoreExecutors.directExecutor());
544538
}
545539

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/FirewallSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,13 @@ public FirewallStubSettings.Builder getStubSettingsBuilder() {
187187
return ((FirewallStubSettings.Builder) getStubSettings());
188188
}
189189

190-
// NEXT_MAJOR_VER: remove 'throws Exception'.
191190
/**
192191
* Applies the given settings updater function to all of the unary API methods in this service.
193192
*
194193
* <p>Note: This method does not support applying settings to streaming methods.
195194
*/
196195
public Builder applyToAllUnaryMethods(
197-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
196+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
198197
super.applyToAllUnaryMethods(
199198
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
200199
return this;

0 commit comments

Comments
 (0)