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

feat!: release gapic-generator-java v2.0.0 #604

Merged
merged 6 commits into from Aug 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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());
}

Expand Down
Expand Up @@ -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;
Expand Down
Expand Up @@ -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;
}
Expand Down