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

Commit

Permalink
feat!: release gapic-generator-java v2.0.0 (#562)
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 388535346

Source-Link: googleapis/googleapis@d9eaf41

Source-Link: googleapis/googleapis-gen@976c5ab
  • Loading branch information
gcf-owl-bot[bot] committed Aug 4, 2021
1 parent 0e0bedd commit 413e8f1
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 156 deletions.
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.iot.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 @@ -2369,12 +2368,7 @@ public static ApiFuture<ListDeviceRegistriesPagedResponse> createAsync(
ListDeviceRegistriesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListDeviceRegistriesPage, ListDeviceRegistriesPagedResponse>() {
@Override
public ListDeviceRegistriesPagedResponse apply(ListDeviceRegistriesPage input) {
return new ListDeviceRegistriesPagedResponse(input);
}
},
input -> new ListDeviceRegistriesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -2456,14 +2450,7 @@ public static ApiFuture<ListDevicesPagedResponse> createAsync(
ApiFuture<ListDevicesPage> futurePage =
ListDevicesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListDevicesPage, ListDevicesPagedResponse>() {
@Override
public ListDevicesPagedResponse apply(ListDevicesPage input) {
return new ListDevicesPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListDevicesPagedResponse(input), MoreExecutors.directExecutor());
}

private ListDevicesPagedResponse(ListDevicesPage page) {
Expand Down
Expand Up @@ -269,14 +269,13 @@ public DeviceManagerStubSettings.Builder getStubSettingsBuilder() {
return ((DeviceManagerStubSettings.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 @@ -790,14 +790,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 413e8f1

Please sign in to comment.