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

Commit 2e4d203

Browse files
feat!: release gapic-generator-java v2.0.0 (#604)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/c9bb7ab7-8172-4b33-b6c7-7aaf6b9de426/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 388535346 Source-Link: googleapis/googleapis@d9eaf41 PiperOrigin-RevId: 388499329 Source-Link: googleapis/googleapis@bb0a090
1 parent 45e847d commit 2e4d203

File tree

7 files changed

+156
-504
lines changed

7 files changed

+156
-504
lines changed

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.dlp.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;
@@ -5251,12 +5250,7 @@ public static ApiFuture<ListInspectTemplatesPagedResponse> createAsync(
52515250
ListInspectTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse);
52525251
return ApiFutures.transform(
52535252
futurePage,
5254-
new ApiFunction<ListInspectTemplatesPage, ListInspectTemplatesPagedResponse>() {
5255-
@Override
5256-
public ListInspectTemplatesPagedResponse apply(ListInspectTemplatesPage input) {
5257-
return new ListInspectTemplatesPagedResponse(input);
5258-
}
5259-
},
5253+
input -> new ListInspectTemplatesPagedResponse(input),
52605254
MoreExecutors.directExecutor());
52615255
}
52625256

@@ -5341,12 +5335,7 @@ public static ApiFuture<ListDeidentifyTemplatesPagedResponse> createAsync(
53415335
ListDeidentifyTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse);
53425336
return ApiFutures.transform(
53435337
futurePage,
5344-
new ApiFunction<ListDeidentifyTemplatesPage, ListDeidentifyTemplatesPagedResponse>() {
5345-
@Override
5346-
public ListDeidentifyTemplatesPagedResponse apply(ListDeidentifyTemplatesPage input) {
5347-
return new ListDeidentifyTemplatesPagedResponse(input);
5348-
}
5349-
},
5338+
input -> new ListDeidentifyTemplatesPagedResponse(input),
53505339
MoreExecutors.directExecutor());
53515340
}
53525341

@@ -5432,12 +5421,7 @@ public static ApiFuture<ListJobTriggersPagedResponse> createAsync(
54325421
ListJobTriggersPage.createEmptyPage().createPageAsync(context, futureResponse);
54335422
return ApiFutures.transform(
54345423
futurePage,
5435-
new ApiFunction<ListJobTriggersPage, ListJobTriggersPagedResponse>() {
5436-
@Override
5437-
public ListJobTriggersPagedResponse apply(ListJobTriggersPage input) {
5438-
return new ListJobTriggersPagedResponse(input);
5439-
}
5440-
},
5424+
input -> new ListJobTriggersPagedResponse(input),
54415425
MoreExecutors.directExecutor());
54425426
}
54435427

@@ -5513,14 +5497,7 @@ public static ApiFuture<ListDlpJobsPagedResponse> createAsync(
55135497
ApiFuture<ListDlpJobsPage> futurePage =
55145498
ListDlpJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
55155499
return ApiFutures.transform(
5516-
futurePage,
5517-
new ApiFunction<ListDlpJobsPage, ListDlpJobsPagedResponse>() {
5518-
@Override
5519-
public ListDlpJobsPagedResponse apply(ListDlpJobsPage input) {
5520-
return new ListDlpJobsPagedResponse(input);
5521-
}
5522-
},
5523-
MoreExecutors.directExecutor());
5500+
futurePage, input -> new ListDlpJobsPagedResponse(input), MoreExecutors.directExecutor());
55245501
}
55255502

55265503
private ListDlpJobsPagedResponse(ListDlpJobsPage page) {
@@ -5595,12 +5572,7 @@ public static ApiFuture<ListStoredInfoTypesPagedResponse> createAsync(
55955572
ListStoredInfoTypesPage.createEmptyPage().createPageAsync(context, futureResponse);
55965573
return ApiFutures.transform(
55975574
futurePage,
5598-
new ApiFunction<ListStoredInfoTypesPage, ListStoredInfoTypesPagedResponse>() {
5599-
@Override
5600-
public ListStoredInfoTypesPagedResponse apply(ListStoredInfoTypesPage input) {
5601-
return new ListStoredInfoTypesPagedResponse(input);
5602-
}
5603-
},
5575+
input -> new ListStoredInfoTypesPagedResponse(input),
56045576
MoreExecutors.directExecutor());
56055577
}
56065578

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,14 +403,13 @@ public DlpServiceStubSettings.Builder getStubSettingsBuilder() {
403403
return ((DlpServiceStubSettings.Builder) getStubSettings());
404404
}
405405

406-
// NEXT_MAJOR_VER: remove 'throws Exception'.
407406
/**
408407
* Applies the given settings updater function to all of the unary API methods in this service.
409408
*
410409
* <p>Note: This method does not support applying settings to streaming methods.
411410
*/
412411
public Builder applyToAllUnaryMethods(
413-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
412+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
414413
super.applyToAllUnaryMethods(
415414
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
416415
return this;

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,14 +1285,13 @@ private static Builder initDefaults(Builder builder) {
12851285
return builder;
12861286
}
12871287

1288-
// NEXT_MAJOR_VER: remove 'throws Exception'.
12891288
/**
12901289
* Applies the given settings updater function to all of the unary API methods in this service.
12911290
*
12921291
* <p>Note: This method does not support applying settings to streaming methods.
12931292
*/
12941293
public Builder applyToAllUnaryMethods(
1295-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
1294+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
12961295
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
12971296
return this;
12981297
}

0 commit comments

Comments
 (0)