Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

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

private ListQueuesPagedResponse(ListQueuesPage page) {
Expand Down Expand Up @@ -2353,14 +2345,7 @@ public static ApiFuture<ListTasksPagedResponse> createAsync(
ApiFuture<ListTasksPage> futurePage =
ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListTasksPage, ListTasksPagedResponse>() {
@Override
public ListTasksPagedResponse apply(ListTasksPage input) {
return new ListTasksPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor());
}

private ListTasksPagedResponse(ListTasksPage page) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,13 @@ public CloudTasksStubSettings.Builder getStubSettingsBuilder() {
return ((CloudTasksStubSettings.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 @@ -660,14 +660,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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.tasks.v2beta2;

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

private ListQueuesPagedResponse(ListQueuesPage page) {
Expand Down Expand Up @@ -3017,14 +3009,7 @@ public static ApiFuture<ListTasksPagedResponse> createAsync(
ApiFuture<ListTasksPage> futurePage =
ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListTasksPage, ListTasksPagedResponse>() {
@Override
public ListTasksPagedResponse apply(ListTasksPage input) {
return new ListTasksPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor());
}

private ListTasksPagedResponse(ListTasksPage page) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,13 @@ public CloudTasksStubSettings.Builder getStubSettingsBuilder() {
return ((CloudTasksStubSettings.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 @@ -735,14 +735,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