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

Commit fe4563c

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

File tree

4 files changed

+75
-141
lines changed

4 files changed

+75
-141
lines changed

google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java

+2-13
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.clouddms.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;
@@ -2065,12 +2064,7 @@ public static ApiFuture<ListMigrationJobsPagedResponse> createAsync(
20652064
ListMigrationJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
20662065
return ApiFutures.transform(
20672066
futurePage,
2068-
new ApiFunction<ListMigrationJobsPage, ListMigrationJobsPagedResponse>() {
2069-
@Override
2070-
public ListMigrationJobsPagedResponse apply(ListMigrationJobsPage input) {
2071-
return new ListMigrationJobsPagedResponse(input);
2072-
}
2073-
},
2067+
input -> new ListMigrationJobsPagedResponse(input),
20742068
MoreExecutors.directExecutor());
20752069
}
20762070

@@ -2152,12 +2146,7 @@ public static ApiFuture<ListConnectionProfilesPagedResponse> createAsync(
21522146
ListConnectionProfilesPage.createEmptyPage().createPageAsync(context, futureResponse);
21532147
return ApiFutures.transform(
21542148
futurePage,
2155-
new ApiFunction<ListConnectionProfilesPage, ListConnectionProfilesPagedResponse>() {
2156-
@Override
2157-
public ListConnectionProfilesPagedResponse apply(ListConnectionProfilesPage input) {
2158-
return new ListConnectionProfilesPagedResponse(input);
2159-
}
2160-
},
2149+
input -> new ListConnectionProfilesPagedResponse(input),
21612150
MoreExecutors.directExecutor());
21622151
}
21632152

google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -339,14 +339,13 @@ public DataMigrationServiceStubSettings.Builder getStubSettingsBuilder() {
339339
return ((DataMigrationServiceStubSettings.Builder) getStubSettings());
340340
}
341341

342-
// NEXT_MAJOR_VER: remove 'throws Exception'.
343342
/**
344343
* Applies the given settings updater function to all of the unary API methods in this service.
345344
*
346345
* <p>Note: This method does not support applying settings to streaming methods.
347346
*/
348347
public Builder applyToAllUnaryMethods(
349-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
348+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
350349
super.applyToAllUnaryMethods(
351350
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
352351
return this;

google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1207,14 +1207,13 @@ private static Builder initDefaults(Builder builder) {
12071207
return builder;
12081208
}
12091209

1210-
// NEXT_MAJOR_VER: remove 'throws Exception'.
12111210
/**
12121211
* Applies the given settings updater function to all of the unary API methods in this service.
12131212
*
12141213
* <p>Note: This method does not support applying settings to streaming methods.
12151214
*/
12161215
public Builder applyToAllUnaryMethods(
1217-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
1216+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
12181217
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
12191218
return this;
12201219
}

0 commit comments

Comments
 (0)