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

Commit

Permalink
feat!: release gapic-generator-java v2.0.0 (#29)
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 4, 2021
1 parent 88ec35b commit 65f3189
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 190 deletions.
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.datastream.v1alpha1;

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 @@ -2802,12 +2801,7 @@ public static ApiFuture<ListConnectionProfilesPagedResponse> createAsync(
ListConnectionProfilesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListConnectionProfilesPage, ListConnectionProfilesPagedResponse>() {
@Override
public ListConnectionProfilesPagedResponse apply(ListConnectionProfilesPage input) {
return new ListConnectionProfilesPagedResponse(input);
}
},
input -> new ListConnectionProfilesPagedResponse(input),
MoreExecutors.directExecutor());
}

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

private ListStreamsPagedResponse(ListStreamsPage page) {
Expand Down Expand Up @@ -2973,12 +2960,7 @@ public static ApiFuture<FetchStaticIpsPagedResponse> createAsync(
FetchStaticIpsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<FetchStaticIpsPage, FetchStaticIpsPagedResponse>() {
@Override
public FetchStaticIpsPagedResponse apply(FetchStaticIpsPage input) {
return new FetchStaticIpsPagedResponse(input);
}
},
input -> new FetchStaticIpsPagedResponse(input),
MoreExecutors.directExecutor());
}

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

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

private ListRoutesPagedResponse(ListRoutesPage page) {
Expand Down
Expand Up @@ -351,14 +351,13 @@ public DatastreamStubSettings.Builder getStubSettingsBuilder() {
return ((DatastreamStubSettings.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 @@ -1435,14 +1435,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

0 comments on commit 65f3189

Please sign in to comment.