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

Commit

Permalink
feat!: release gapic-generator-java v2.0.0 (#589)
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 388535346

Source-Link: googleapis/googleapis@d9eaf41

Source-Link: googleapis/googleapis-gen@976c5ab
  • Loading branch information
gcf-owl-bot[bot] committed Aug 10, 2021
1 parent 849cb1c commit 38c3102
Show file tree
Hide file tree
Showing 24 changed files with 425 additions and 2,863 deletions.
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.securitycenter.v1;

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 @@ -2862,14 +2861,7 @@ public static ApiFuture<GroupAssetsPagedResponse> createAsync(
ApiFuture<GroupAssetsPage> futurePage =
GroupAssetsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<GroupAssetsPage, GroupAssetsPagedResponse>() {
@Override
public GroupAssetsPagedResponse apply(GroupAssetsPage input) {
return new GroupAssetsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new GroupAssetsPagedResponse(input), MoreExecutors.directExecutor());
}

private GroupAssetsPagedResponse(GroupAssetsPage page) {
Expand Down Expand Up @@ -2943,12 +2935,7 @@ public static ApiFuture<GroupFindingsPagedResponse> createAsync(
GroupFindingsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<GroupFindingsPage, GroupFindingsPagedResponse>() {
@Override
public GroupFindingsPagedResponse apply(GroupFindingsPage input) {
return new GroupFindingsPagedResponse(input);
}
},
input -> new GroupFindingsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -3024,14 +3011,7 @@ public static ApiFuture<ListAssetsPagedResponse> createAsync(
ApiFuture<ListAssetsPage> futurePage =
ListAssetsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAssetsPage, ListAssetsPagedResponse>() {
@Override
public ListAssetsPagedResponse apply(ListAssetsPage input) {
return new ListAssetsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListAssetsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListAssetsPagedResponse(ListAssetsPage page) {
Expand Down Expand Up @@ -3114,12 +3094,7 @@ public static ApiFuture<ListFindingsPagedResponse> createAsync(
ListFindingsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListFindingsPage, ListFindingsPagedResponse>() {
@Override
public ListFindingsPagedResponse apply(ListFindingsPage input) {
return new ListFindingsPagedResponse(input);
}
},
input -> new ListFindingsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -3206,12 +3181,7 @@ public static ApiFuture<ListNotificationConfigsPagedResponse> createAsync(
ListNotificationConfigsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListNotificationConfigsPage, ListNotificationConfigsPagedResponse>() {
@Override
public ListNotificationConfigsPagedResponse apply(ListNotificationConfigsPage input) {
return new ListNotificationConfigsPagedResponse(input);
}
},
input -> new ListNotificationConfigsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -3296,14 +3266,7 @@ public static ApiFuture<ListSourcesPagedResponse> createAsync(
ApiFuture<ListSourcesPage> futurePage =
ListSourcesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListSourcesPage, ListSourcesPagedResponse>() {
@Override
public ListSourcesPagedResponse apply(ListSourcesPage input) {
return new ListSourcesPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListSourcesPagedResponse(input), MoreExecutors.directExecutor());
}

private ListSourcesPagedResponse(ListSourcesPage page) {
Expand Down
Expand Up @@ -306,14 +306,13 @@ public SecurityCenterStubSettings.Builder getStubSettingsBuilder() {
return ((SecurityCenterStubSettings.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

0 comments on commit 38c3102

Please sign in to comment.