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

Merged
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.clouddms.v1;

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

Expand Down Expand Up @@ -2152,12 +2146,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 @@ -339,14 +339,13 @@ public DataMigrationServiceStubSettings.Builder getStubSettingsBuilder() {
return ((DataMigrationServiceStubSettings.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 @@ -1207,14 +1207,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