Skip to content
This repository was archived by the owner on Jul 17, 2023. It is now read-only.
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading