Skip to content
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.bigtable.admin.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 @@ -2266,12 +2265,7 @@ public static ApiFuture<ListAppProfilesPagedResponse> createAsync(
ListAppProfilesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAppProfilesPage, ListAppProfilesPagedResponse>() {
@Override
public ListAppProfilesPagedResponse apply(ListAppProfilesPage input) {
return new ListAppProfilesPagedResponse(input);
}
},
input -> new ListAppProfilesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,13 @@ public BigtableInstanceAdminStubSettings.Builder getStubSettingsBuilder() {
return ((BigtableInstanceAdminStubSettings.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 @@ -16,7 +16,6 @@

package com.google.cloud.bigtable.admin.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 @@ -3087,14 +3086,7 @@ public static ApiFuture<ListTablesPagedResponse> createAsync(
ApiFuture<ListTablesPage> futurePage =
ListTablesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListTablesPage, ListTablesPagedResponse>() {
@Override
public ListTablesPagedResponse apply(ListTablesPage input) {
return new ListTablesPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListTablesPagedResponse(input), MoreExecutors.directExecutor());
}

private ListTablesPagedResponse(ListTablesPage page) {
Expand Down Expand Up @@ -3168,12 +3160,7 @@ public static ApiFuture<ListSnapshotsPagedResponse> createAsync(
ListSnapshotsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListSnapshotsPage, ListSnapshotsPagedResponse>() {
@Override
public ListSnapshotsPagedResponse apply(ListSnapshotsPage input) {
return new ListSnapshotsPagedResponse(input);
}
},
input -> new ListSnapshotsPagedResponse(input),
MoreExecutors.directExecutor());
}

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

private ListBackupsPagedResponse(ListBackupsPage page) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,13 @@ public BigtableTableAdminStubSettings.Builder getStubSettingsBuilder() {
return ((BigtableTableAdminStubSettings.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 @@ -894,14 +894,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
Original file line number Diff line number Diff line change
Expand Up @@ -1055,14 +1055,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
Loading