Skip to content
Permalink
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
  • Loading branch information
yoshi-automation committed Aug 11, 2021
1 parent 45e847d commit 2e4d20384ea486ca0121ff631032211563fa5e0e
@@ -16,7 +16,6 @@

package com.google.cloud.dlp.v2;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
@@ -5251,12 +5250,7 @@ public static ApiFuture<ListInspectTemplatesPagedResponse> createAsync(
ListInspectTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListInspectTemplatesPage, ListInspectTemplatesPagedResponse>() {
@Override
public ListInspectTemplatesPagedResponse apply(ListInspectTemplatesPage input) {
return new ListInspectTemplatesPagedResponse(input);
}
},
input -> new ListInspectTemplatesPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -5341,12 +5335,7 @@ public static ApiFuture<ListDeidentifyTemplatesPagedResponse> createAsync(
ListDeidentifyTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListDeidentifyTemplatesPage, ListDeidentifyTemplatesPagedResponse>() {
@Override
public ListDeidentifyTemplatesPagedResponse apply(ListDeidentifyTemplatesPage input) {
return new ListDeidentifyTemplatesPagedResponse(input);
}
},
input -> new ListDeidentifyTemplatesPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -5432,12 +5421,7 @@ public static ApiFuture<ListJobTriggersPagedResponse> createAsync(
ListJobTriggersPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListJobTriggersPage, ListJobTriggersPagedResponse>() {
@Override
public ListJobTriggersPagedResponse apply(ListJobTriggersPage input) {
return new ListJobTriggersPagedResponse(input);
}
},
input -> new ListJobTriggersPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -5513,14 +5497,7 @@ public static ApiFuture<ListDlpJobsPagedResponse> createAsync(
ApiFuture<ListDlpJobsPage> futurePage =
ListDlpJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListDlpJobsPage, ListDlpJobsPagedResponse>() {
@Override
public ListDlpJobsPagedResponse apply(ListDlpJobsPage input) {
return new ListDlpJobsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListDlpJobsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListDlpJobsPagedResponse(ListDlpJobsPage page) {
@@ -5595,12 +5572,7 @@ public static ApiFuture<ListStoredInfoTypesPagedResponse> createAsync(
ListStoredInfoTypesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListStoredInfoTypesPage, ListStoredInfoTypesPagedResponse>() {
@Override
public ListStoredInfoTypesPagedResponse apply(ListStoredInfoTypesPage input) {
return new ListStoredInfoTypesPagedResponse(input);
}
},
input -> new ListStoredInfoTypesPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -403,14 +403,13 @@ public DlpServiceStubSettings.Builder getStubSettingsBuilder() {
return ((DlpServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
@@ -1285,14 +1285,13 @@ private static Builder initDefaults(Builder builder) {
return builder;
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
return this;
}

0 comments on commit 2e4d203

Please sign in to comment.