Skip to content

Commit d2456e4

Browse files
feat!: release gapic-generator-java v2.0.0 (#938)
* chore: release gapic-generator-java v1.0.13 Committer: @miraleung PiperOrigin-RevId: 379784268 Source-Author: Google APIs <[email protected]> Source-Date: Wed Jun 16 12:29:58 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 551681f25e36b11829e87e580281350461f4f3f5 Source-Link: googleapis/googleapis@551681f * chore: release gapic-generator-java v1.0.17 Committer: @miraleung PiperOrigin-RevId: 388499329 Source-Author: Google APIs <[email protected]> Source-Date: Tue Aug 3 11:12:29 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: bb0a090d9204110042ab5dee2ce9e06e8071ce54 Source-Link: googleapis/googleapis@bb0a090 * feat!: release gapic-generator-java v2.0.0 Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Author: Google APIs <[email protected]> Source-Date: Tue Aug 3 13:48:38 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: d9eaf41de44d953458b18712a3f240bb4c564e48 Source-Link: googleapis/googleapis@d9eaf41 * remove test * update clirr-ignored-differences.xml Co-authored-by: Kristen O'Leary <[email protected]>
1 parent 1d7c224 commit d2456e4

24 files changed

+256
-975
lines changed

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java

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

1717
package com.google.cloud.bigtable.admin.v2;
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;
@@ -2266,12 +2265,7 @@ public static ApiFuture<ListAppProfilesPagedResponse> createAsync(
22662265
ListAppProfilesPage.createEmptyPage().createPageAsync(context, futureResponse);
22672266
return ApiFutures.transform(
22682267
futurePage,
2269-
new ApiFunction<ListAppProfilesPage, ListAppProfilesPagedResponse>() {
2270-
@Override
2271-
public ListAppProfilesPagedResponse apply(ListAppProfilesPage input) {
2272-
return new ListAppProfilesPagedResponse(input);
2273-
}
2274-
},
2268+
input -> new ListAppProfilesPagedResponse(input),
22752269
MoreExecutors.directExecutor());
22762270
}
22772271

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -288,14 +288,13 @@ public BigtableInstanceAdminStubSettings.Builder getStubSettingsBuilder() {
288288
return ((BigtableInstanceAdminStubSettings.Builder) getStubSettings());
289289
}
290290

291-
// NEXT_MAJOR_VER: remove 'throws Exception'.
292291
/**
293292
* Applies the given settings updater function to all of the unary API methods in this service.
294293
*
295294
* <p>Note: This method does not support applying settings to streaming methods.
296295
*/
297296
public Builder applyToAllUnaryMethods(
298-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
297+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
299298
super.applyToAllUnaryMethods(
300299
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
301300
return this;

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java

+3-23
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.bigtable.admin.v2;
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;
@@ -3087,14 +3086,7 @@ public static ApiFuture<ListTablesPagedResponse> createAsync(
30873086
ApiFuture<ListTablesPage> futurePage =
30883087
ListTablesPage.createEmptyPage().createPageAsync(context, futureResponse);
30893088
return ApiFutures.transform(
3090-
futurePage,
3091-
new ApiFunction<ListTablesPage, ListTablesPagedResponse>() {
3092-
@Override
3093-
public ListTablesPagedResponse apply(ListTablesPage input) {
3094-
return new ListTablesPagedResponse(input);
3095-
}
3096-
},
3097-
MoreExecutors.directExecutor());
3089+
futurePage, input -> new ListTablesPagedResponse(input), MoreExecutors.directExecutor());
30983090
}
30993091

31003092
private ListTablesPagedResponse(ListTablesPage page) {
@@ -3168,12 +3160,7 @@ public static ApiFuture<ListSnapshotsPagedResponse> createAsync(
31683160
ListSnapshotsPage.createEmptyPage().createPageAsync(context, futureResponse);
31693161
return ApiFutures.transform(
31703162
futurePage,
3171-
new ApiFunction<ListSnapshotsPage, ListSnapshotsPagedResponse>() {
3172-
@Override
3173-
public ListSnapshotsPagedResponse apply(ListSnapshotsPage input) {
3174-
return new ListSnapshotsPagedResponse(input);
3175-
}
3176-
},
3163+
input -> new ListSnapshotsPagedResponse(input),
31773164
MoreExecutors.directExecutor());
31783165
}
31793166

@@ -3248,14 +3235,7 @@ public static ApiFuture<ListBackupsPagedResponse> createAsync(
32483235
ApiFuture<ListBackupsPage> futurePage =
32493236
ListBackupsPage.createEmptyPage().createPageAsync(context, futureResponse);
32503237
return ApiFutures.transform(
3251-
futurePage,
3252-
new ApiFunction<ListBackupsPage, ListBackupsPagedResponse>() {
3253-
@Override
3254-
public ListBackupsPagedResponse apply(ListBackupsPage input) {
3255-
return new ListBackupsPagedResponse(input);
3256-
}
3257-
},
3258-
MoreExecutors.directExecutor());
3238+
futurePage, input -> new ListBackupsPagedResponse(input), MoreExecutors.directExecutor());
32593239
}
32603240

32613241
private ListBackupsPagedResponse(ListBackupsPage page) {

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,13 @@ public BigtableTableAdminStubSettings.Builder getStubSettingsBuilder() {
311311
return ((BigtableTableAdminStubSettings.Builder) getStubSettings());
312312
}
313313

314-
// NEXT_MAJOR_VER: remove 'throws Exception'.
315314
/**
316315
* Applies the given settings updater function to all of the unary API methods in this service.
317316
*
318317
* <p>Note: This method does not support applying settings to streaming methods.
319318
*/
320319
public Builder applyToAllUnaryMethods(
321-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
320+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
322321
super.applyToAllUnaryMethods(
323322
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
324323
return this;

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -894,14 +894,13 @@ private static Builder initDefaults(Builder builder) {
894894
return builder;
895895
}
896896

897-
// NEXT_MAJOR_VER: remove 'throws Exception'.
898897
/**
899898
* Applies the given settings updater function to all of the unary API methods in this service.
900899
*
901900
* <p>Note: This method does not support applying settings to streaming methods.
902901
*/
903902
public Builder applyToAllUnaryMethods(
904-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
903+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
905904
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
906905
return this;
907906
}

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStubSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1055,14 +1055,13 @@ private static Builder initDefaults(Builder builder) {
10551055
return builder;
10561056
}
10571057

1058-
// NEXT_MAJOR_VER: remove 'throws Exception'.
10591058
/**
10601059
* Applies the given settings updater function to all of the unary API methods in this service.
10611060
*
10621061
* <p>Note: This method does not support applying settings to streaming methods.
10631062
*/
10641063
public Builder applyToAllUnaryMethods(
1065-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
1064+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
10661065
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
10671066
return this;
10681067
}

0 commit comments

Comments
 (0)