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

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

Merged
merged 3 commits into from Aug 6, 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.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
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
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.

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
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
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