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 all commits
Commits
File filter

Filter by extension

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.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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ public Builder setDevice(String device) {
}

private Builder(DeviceName deviceName) {
project = deviceName.project;
location = deviceName.location;
registry = deviceName.registry;
device = deviceName.device;
this.project = deviceName.project;
this.location = deviceName.location;
this.registry = deviceName.registry;
this.device = deviceName.device;
}

public DeviceName build() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ public Builder setLocation(String location) {
}

private Builder(LocationName locationName) {
project = locationName.project;
location = locationName.location;
this.project = locationName.project;
this.location = locationName.location;
}

public LocationName build() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ public Builder setRegistry(String registry) {
}

private Builder(RegistryName registryName) {
project = registryName.project;
location = registryName.location;
registry = registryName.registry;
this.project = registryName.project;
this.location = registryName.location;
this.registry = registryName.registry;
}

public RegistryName build() {
Expand Down