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

Commit ff1784f

Browse files
build: update from broken v1beta2 links to v1 (#628)
PiperOrigin-RevId: 389649385 Source-Link: googleapis/googleapis@2c1c2ac Source-Link: https://github.com/googleapis/googleapis-gen/commit/a10d84a0bdd6864acdd0b1750c19888d4b54d4e4 feat!: release gapic-generator-java v2.0.0 Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Link: googleapis/googleapis@d9eaf41 Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a
1 parent 0aaf5a3 commit ff1784f

File tree

43 files changed

+353
-1283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+353
-1283
lines changed

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.dataproc.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -944,12 +943,7 @@ public static ApiFuture<ListAutoscalingPoliciesPagedResponse> createAsync(
944943
ListAutoscalingPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse);
945944
return ApiFutures.transform(
946945
futurePage,
947-
new ApiFunction<ListAutoscalingPoliciesPage, ListAutoscalingPoliciesPagedResponse>() {
948-
@Override
949-
public ListAutoscalingPoliciesPagedResponse apply(ListAutoscalingPoliciesPage input) {
950-
return new ListAutoscalingPoliciesPagedResponse(input);
951-
}
952-
},
946+
input -> new ListAutoscalingPoliciesPagedResponse(input),
953947
MoreExecutors.directExecutor());
954948
}
955949

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,13 @@ public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() {
196196
return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings());
197197
}
198198

199-
// NEXT_MAJOR_VER: remove 'throws Exception'.
200199
/**
201200
* Applies the given settings updater function to all of the unary API methods in this service.
202201
*
203202
* <p>Note: This method does not support applying settings to streaming methods.
204203
*/
205204
public Builder applyToAllUnaryMethods(
206-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
205+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
207206
super.applyToAllUnaryMethods(
208207
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
209208
return this;

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.dataproc.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -1163,12 +1162,7 @@ public static ApiFuture<ListClustersPagedResponse> createAsync(
11631162
ListClustersPage.createEmptyPage().createPageAsync(context, futureResponse);
11641163
return ApiFutures.transform(
11651164
futurePage,
1166-
new ApiFunction<ListClustersPage, ListClustersPagedResponse>() {
1167-
@Override
1168-
public ListClustersPagedResponse apply(ListClustersPage input) {
1169-
return new ListClustersPagedResponse(input);
1170-
}
1171-
},
1165+
input -> new ListClustersPagedResponse(input),
11721166
MoreExecutors.directExecutor());
11731167
}
11741168

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,13 @@ public ClusterControllerStubSettings.Builder getStubSettingsBuilder() {
235235
return ((ClusterControllerStubSettings.Builder) getStubSettings());
236236
}
237237

238-
// NEXT_MAJOR_VER: remove 'throws Exception'.
239238
/**
240239
* Applies the given settings updater function to all of the unary API methods in this service.
241240
*
242241
* <p>Note: This method does not support applying settings to streaming methods.
243242
*/
244243
public Builder applyToAllUnaryMethods(
245-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
244+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
246245
super.applyToAllUnaryMethods(
247246
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
248247
return this;

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.dataproc.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -852,14 +851,7 @@ public static ApiFuture<ListJobsPagedResponse> createAsync(
852851
ApiFuture<ListJobsPage> futurePage =
853852
ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
854853
return ApiFutures.transform(
855-
futurePage,
856-
new ApiFunction<ListJobsPage, ListJobsPagedResponse>() {
857-
@Override
858-
public ListJobsPagedResponse apply(ListJobsPage input) {
859-
return new ListJobsPagedResponse(input);
860-
}
861-
},
862-
MoreExecutors.directExecutor());
854+
futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor());
863855
}
864856

865857
private ListJobsPagedResponse(ListJobsPage page) {

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,13 @@ public JobControllerStubSettings.Builder getStubSettingsBuilder() {
198198
return ((JobControllerStubSettings.Builder) getStubSettings());
199199
}
200200

201-
// NEXT_MAJOR_VER: remove 'throws Exception'.
202201
/**
203202
* Applies the given settings updater function to all of the unary API methods in this service.
204203
*
205204
* <p>Note: This method does not support applying settings to streaming methods.
206205
*/
207206
public Builder applyToAllUnaryMethods(
208-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
207+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
209208
super.applyToAllUnaryMethods(
210209
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
211210
return this;

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.dataproc.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -1679,12 +1678,7 @@ public static ApiFuture<ListWorkflowTemplatesPagedResponse> createAsync(
16791678
ListWorkflowTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse);
16801679
return ApiFutures.transform(
16811680
futurePage,
1682-
new ApiFunction<ListWorkflowTemplatesPage, ListWorkflowTemplatesPagedResponse>() {
1683-
@Override
1684-
public ListWorkflowTemplatesPagedResponse apply(ListWorkflowTemplatesPage input) {
1685-
return new ListWorkflowTemplatesPagedResponse(input);
1686-
}
1687-
},
1681+
input -> new ListWorkflowTemplatesPagedResponse(input),
16881682
MoreExecutors.directExecutor());
16891683
}
16901684

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,13 @@ public WorkflowTemplateServiceStubSettings.Builder getStubSettingsBuilder() {
224224
return ((WorkflowTemplateServiceStubSettings.Builder) getStubSettings());
225225
}
226226

227-
// NEXT_MAJOR_VER: remove 'throws Exception'.
228227
/**
229228
* Applies the given settings updater function to all of the unary API methods in this service.
230229
*
231230
* <p>Note: This method does not support applying settings to streaming methods.
232231
*/
233232
public Builder applyToAllUnaryMethods(
234-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
233+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
235234
super.applyToAllUnaryMethods(
236235
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
237236
return this;

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,14 +441,13 @@ private static Builder initDefaults(Builder builder) {
441441
return builder;
442442
}
443443

444-
// NEXT_MAJOR_VER: remove 'throws Exception'.
445444
/**
446445
* Applies the given settings updater function to all of the unary API methods in this service.
447446
*
448447
* <p>Note: This method does not support applying settings to streaming methods.
449448
*/
450449
public Builder applyToAllUnaryMethods(
451-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
450+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
452451
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
453452
return this;
454453
}

google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,14 +700,13 @@ private static Builder initDefaults(Builder builder) {
700700
return builder;
701701
}
702702

703-
// NEXT_MAJOR_VER: remove 'throws Exception'.
704703
/**
705704
* Applies the given settings updater function to all of the unary API methods in this service.
706705
*
707706
* <p>Note: This method does not support applying settings to streaming methods.
708707
*/
709708
public Builder applyToAllUnaryMethods(
710-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
709+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
711710
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
712711
return this;
713712
}

0 commit comments

Comments
 (0)