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

Commit 4f06e96

Browse files
feat!: release gapic-generator-java v2.0.0 (#30)
Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Link: googleapis/googleapis@d9eaf41 Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a
1 parent 68474f3 commit 4f06e96

15 files changed

Lines changed: 17 additions & 59 deletions

google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,13 @@ public FlexTemplatesServiceStubSettings.Builder getStubSettingsBuilder() {
160160
return ((FlexTemplatesServiceStubSettings.Builder) getStubSettings());
161161
}
162162

163-
// NEXT_MAJOR_VER: remove 'throws Exception'.
164163
/**
165164
* Applies the given settings updater function to all of the unary API methods in this service.
166165
*
167166
* <p>Note: This method does not support applying settings to streaming methods.
168167
*/
169168
public Builder applyToAllUnaryMethods(
170-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
169+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
171170
super.applyToAllUnaryMethods(
172171
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
173172
return this;

google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Client.java

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.dataflow.v1beta3;
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;
@@ -682,14 +681,7 @@ public static ApiFuture<ListJobsPagedResponse> createAsync(
682681
ApiFuture<ListJobsPage> futurePage =
683682
ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
684683
return ApiFutures.transform(
685-
futurePage,
686-
new ApiFunction<ListJobsPage, ListJobsPagedResponse>() {
687-
@Override
688-
public ListJobsPagedResponse apply(ListJobsPage input) {
689-
return new ListJobsPagedResponse(input);
690-
}
691-
},
692-
MoreExecutors.directExecutor());
684+
futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor());
693685
}
694686

695687
private ListJobsPagedResponse(ListJobsPage page) {
@@ -757,12 +749,7 @@ public static ApiFuture<AggregatedListJobsPagedResponse> createAsync(
757749
AggregatedListJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
758750
return ApiFutures.transform(
759751
futurePage,
760-
new ApiFunction<AggregatedListJobsPage, AggregatedListJobsPagedResponse>() {
761-
@Override
762-
public AggregatedListJobsPagedResponse apply(AggregatedListJobsPage input) {
763-
return new AggregatedListJobsPagedResponse(input);
764-
}
765-
},
752+
input -> new AggregatedListJobsPagedResponse(input),
766753
MoreExecutors.directExecutor());
767754
}
768755

google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Settings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,13 @@ public JobsV1Beta3StubSettings.Builder getStubSettingsBuilder() {
192192
return ((JobsV1Beta3StubSettings.Builder) getStubSettings());
193193
}
194194

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

google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Client.java

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

1717
package com.google.dataflow.v1beta3;
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;
@@ -332,12 +331,7 @@ public static ApiFuture<ListJobMessagesPagedResponse> createAsync(
332331
ListJobMessagesPage.createEmptyPage().createPageAsync(context, futureResponse);
333332
return ApiFutures.transform(
334333
futurePage,
335-
new ApiFunction<ListJobMessagesPage, ListJobMessagesPagedResponse>() {
336-
@Override
337-
public ListJobMessagesPagedResponse apply(ListJobMessagesPage input) {
338-
return new ListJobMessagesPagedResponse(input);
339-
}
340-
},
334+
input -> new ListJobMessagesPagedResponse(input),
341335
MoreExecutors.directExecutor());
342336
}
343337

google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Settings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,13 @@ public MessagesV1Beta3StubSettings.Builder getStubSettingsBuilder() {
162162
return ((MessagesV1Beta3StubSettings.Builder) getStubSettings());
163163
}
164164

165-
// NEXT_MAJOR_VER: remove 'throws Exception'.
166165
/**
167166
* Applies the given settings updater function to all of the unary API methods in this service.
168167
*
169168
* <p>Note: This method does not support applying settings to streaming methods.
170169
*/
171170
public Builder applyToAllUnaryMethods(
172-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
171+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
173172
super.applyToAllUnaryMethods(
174173
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
175174
return this;

google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Client.java

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.dataflow.v1beta3;
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;
@@ -478,12 +477,7 @@ public static ApiFuture<GetJobExecutionDetailsPagedResponse> createAsync(
478477
GetJobExecutionDetailsPage.createEmptyPage().createPageAsync(context, futureResponse);
479478
return ApiFutures.transform(
480479
futurePage,
481-
new ApiFunction<GetJobExecutionDetailsPage, GetJobExecutionDetailsPagedResponse>() {
482-
@Override
483-
public GetJobExecutionDetailsPagedResponse apply(GetJobExecutionDetailsPage input) {
484-
return new GetJobExecutionDetailsPagedResponse(input);
485-
}
486-
},
480+
input -> new GetJobExecutionDetailsPagedResponse(input),
487481
MoreExecutors.directExecutor());
488482
}
489483

@@ -563,12 +557,7 @@ public static ApiFuture<GetStageExecutionDetailsPagedResponse> createAsync(
563557
GetStageExecutionDetailsPage.createEmptyPage().createPageAsync(context, futureResponse);
564558
return ApiFutures.transform(
565559
futurePage,
566-
new ApiFunction<GetStageExecutionDetailsPage, GetStageExecutionDetailsPagedResponse>() {
567-
@Override
568-
public GetStageExecutionDetailsPagedResponse apply(GetStageExecutionDetailsPage input) {
569-
return new GetStageExecutionDetailsPagedResponse(input);
570-
}
571-
},
560+
input -> new GetStageExecutionDetailsPagedResponse(input),
572561
MoreExecutors.directExecutor());
573562
}
574563

google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Settings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,13 @@ public MetricsV1Beta3StubSettings.Builder getStubSettingsBuilder() {
177177
return ((MetricsV1Beta3StubSettings.Builder) getStubSettings());
178178
}
179179

180-
// NEXT_MAJOR_VER: remove 'throws Exception'.
181180
/**
182181
* Applies the given settings updater function to all of the unary API methods in this service.
183182
*
184183
* <p>Note: This method does not support applying settings to streaming methods.
185184
*/
186185
public Builder applyToAllUnaryMethods(
187-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
186+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
188187
super.applyToAllUnaryMethods(
189188
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
190189
return this;

google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Settings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,13 @@ public SnapshotsV1Beta3StubSettings.Builder getStubSettingsBuilder() {
167167
return ((SnapshotsV1Beta3StubSettings.Builder) getStubSettings());
168168
}
169169

170-
// NEXT_MAJOR_VER: remove 'throws Exception'.
171170
/**
172171
* Applies the given settings updater function to all of the unary API methods in this service.
173172
*
174173
* <p>Note: This method does not support applying settings to streaming methods.
175174
*/
176175
public Builder applyToAllUnaryMethods(
177-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
176+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
178177
super.applyToAllUnaryMethods(
179178
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
180179
return this;

google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,13 @@ public TemplatesServiceStubSettings.Builder getStubSettingsBuilder() {
167167
return ((TemplatesServiceStubSettings.Builder) getStubSettings());
168168
}
169169

170-
// NEXT_MAJOR_VER: remove 'throws Exception'.
171170
/**
172171
* Applies the given settings updater function to all of the unary API methods in this service.
173172
*
174173
* <p>Note: This method does not support applying settings to streaming methods.
175174
*/
176175
public Builder applyToAllUnaryMethods(
177-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
176+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
178177
super.applyToAllUnaryMethods(
179178
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
180179
return this;

google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,13 @@ private static Builder initDefaults(Builder builder) {
244244
return builder;
245245
}
246246

247-
// NEXT_MAJOR_VER: remove 'throws Exception'.
248247
/**
249248
* Applies the given settings updater function to all of the unary API methods in this service.
250249
*
251250
* <p>Note: This method does not support applying settings to streaming methods.
252251
*/
253252
public Builder applyToAllUnaryMethods(
254-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
253+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
255254
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
256255
return this;
257256
}

0 commit comments

Comments
 (0)