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

Commit

Permalink
Browse files Browse the repository at this point in the history
feat!: release gapic-generator-java v2.0.0 (#484)
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/5976b7b3-c22d-4a71-a592-a8358d89311c/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 388535346
Source-Link: googleapis/googleapis@d9eaf41
PiperOrigin-RevId: 388499329
Source-Link: googleapis/googleapis@bb0a090
  • Loading branch information
yoshi-automation committed Aug 6, 2021
1 parent 0ab4700 commit c4f2381
Show file tree
Hide file tree
Showing 13 changed files with 244 additions and 439 deletions.
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

0 comments on commit c4f2381

Please sign in to comment.