Skip to content

Commit 8fa5c5a

Browse files
feat!: release gapic-generator-java v2.0.0 (#605)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/ac2f064d-3d3b-450a-971d-7858aaf4e364/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 388535346 Source-Link: googleapis/googleapis@d9eaf41 PiperOrigin-RevId: 388499329 Source-Link: googleapis/googleapis@bb0a090 chore: release gapic-generator-java v1.0.17
1 parent 85e496d commit 8fa5c5a

13 files changed

+166
-304
lines changed

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java

+4-31
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.logging.v2;
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;
@@ -2855,14 +2854,7 @@ public static ApiFuture<ListBucketsPagedResponse> createAsync(
28552854
ApiFuture<ListBucketsPage> futurePage =
28562855
ListBucketsPage.createEmptyPage().createPageAsync(context, futureResponse);
28572856
return ApiFutures.transform(
2858-
futurePage,
2859-
new ApiFunction<ListBucketsPage, ListBucketsPagedResponse>() {
2860-
@Override
2861-
public ListBucketsPagedResponse apply(ListBucketsPage input) {
2862-
return new ListBucketsPagedResponse(input);
2863-
}
2864-
},
2865-
MoreExecutors.directExecutor());
2857+
futurePage, input -> new ListBucketsPagedResponse(input), MoreExecutors.directExecutor());
28662858
}
28672859

28682860
private ListBucketsPagedResponse(ListBucketsPage page) {
@@ -2935,14 +2927,7 @@ public static ApiFuture<ListViewsPagedResponse> createAsync(
29352927
ApiFuture<ListViewsPage> futurePage =
29362928
ListViewsPage.createEmptyPage().createPageAsync(context, futureResponse);
29372929
return ApiFutures.transform(
2938-
futurePage,
2939-
new ApiFunction<ListViewsPage, ListViewsPagedResponse>() {
2940-
@Override
2941-
public ListViewsPagedResponse apply(ListViewsPage input) {
2942-
return new ListViewsPagedResponse(input);
2943-
}
2944-
},
2945-
MoreExecutors.directExecutor());
2930+
futurePage, input -> new ListViewsPagedResponse(input), MoreExecutors.directExecutor());
29462931
}
29472932

29482933
private ListViewsPagedResponse(ListViewsPage page) {
@@ -3015,14 +3000,7 @@ public static ApiFuture<ListSinksPagedResponse> createAsync(
30153000
ApiFuture<ListSinksPage> futurePage =
30163001
ListSinksPage.createEmptyPage().createPageAsync(context, futureResponse);
30173002
return ApiFutures.transform(
3018-
futurePage,
3019-
new ApiFunction<ListSinksPage, ListSinksPagedResponse>() {
3020-
@Override
3021-
public ListSinksPagedResponse apply(ListSinksPage input) {
3022-
return new ListSinksPagedResponse(input);
3023-
}
3024-
},
3025-
MoreExecutors.directExecutor());
3003+
futurePage, input -> new ListSinksPagedResponse(input), MoreExecutors.directExecutor());
30263004
}
30273005

30283006
private ListSinksPagedResponse(ListSinksPage page) {
@@ -3096,12 +3074,7 @@ public static ApiFuture<ListExclusionsPagedResponse> createAsync(
30963074
ListExclusionsPage.createEmptyPage().createPageAsync(context, futureResponse);
30973075
return ApiFutures.transform(
30983076
futurePage,
3099-
new ApiFunction<ListExclusionsPage, ListExclusionsPagedResponse>() {
3100-
@Override
3101-
public ListExclusionsPagedResponse apply(ListExclusionsPage input) {
3102-
return new ListExclusionsPagedResponse(input);
3103-
}
3104-
},
3077+
input -> new ListExclusionsPagedResponse(input),
31053078
MoreExecutors.directExecutor());
31063079
}
31073080

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,13 @@ public ConfigServiceV2StubSettings.Builder getStubSettingsBuilder() {
308308
return ((ConfigServiceV2StubSettings.Builder) getStubSettings());
309309
}
310310

311-
// NEXT_MAJOR_VER: remove 'throws Exception'.
312311
/**
313312
* Applies the given settings updater function to all of the unary API methods in this service.
314313
*
315314
* <p>Note: This method does not support applying settings to streaming methods.
316315
*/
317316
public Builder applyToAllUnaryMethods(
318-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
317+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
319318
super.applyToAllUnaryMethods(
320319
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
321320
return this;

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java

+3-24
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import com.google.api.MonitoredResource;
2020
import com.google.api.MonitoredResourceDescriptor;
21-
import com.google.api.core.ApiFunction;
2221
import com.google.api.core.ApiFuture;
2322
import com.google.api.core.ApiFutures;
2423
import com.google.api.core.BetaApi;
@@ -1032,12 +1031,7 @@ public static ApiFuture<ListLogEntriesPagedResponse> createAsync(
10321031
ListLogEntriesPage.createEmptyPage().createPageAsync(context, futureResponse);
10331032
return ApiFutures.transform(
10341033
futurePage,
1035-
new ApiFunction<ListLogEntriesPage, ListLogEntriesPagedResponse>() {
1036-
@Override
1037-
public ListLogEntriesPagedResponse apply(ListLogEntriesPage input) {
1038-
return new ListLogEntriesPagedResponse(input);
1039-
}
1040-
},
1034+
input -> new ListLogEntriesPagedResponse(input),
10411035
MoreExecutors.directExecutor());
10421036
}
10431037

@@ -1118,15 +1112,7 @@ public static ApiFuture<ListMonitoredResourceDescriptorsPagedResponse> createAsy
11181112
.createPageAsync(context, futureResponse);
11191113
return ApiFutures.transform(
11201114
futurePage,
1121-
new ApiFunction<
1122-
ListMonitoredResourceDescriptorsPage,
1123-
ListMonitoredResourceDescriptorsPagedResponse>() {
1124-
@Override
1125-
public ListMonitoredResourceDescriptorsPagedResponse apply(
1126-
ListMonitoredResourceDescriptorsPage input) {
1127-
return new ListMonitoredResourceDescriptorsPagedResponse(input);
1128-
}
1129-
},
1115+
input -> new ListMonitoredResourceDescriptorsPagedResponse(input),
11301116
MoreExecutors.directExecutor());
11311117
}
11321118

@@ -1214,14 +1200,7 @@ public static ApiFuture<ListLogsPagedResponse> createAsync(
12141200
ApiFuture<ListLogsPage> futurePage =
12151201
ListLogsPage.createEmptyPage().createPageAsync(context, futureResponse);
12161202
return ApiFutures.transform(
1217-
futurePage,
1218-
new ApiFunction<ListLogsPage, ListLogsPagedResponse>() {
1219-
@Override
1220-
public ListLogsPagedResponse apply(ListLogsPage input) {
1221-
return new ListLogsPagedResponse(input);
1222-
}
1223-
},
1224-
MoreExecutors.directExecutor());
1203+
futurePage, input -> new ListLogsPagedResponse(input), MoreExecutors.directExecutor());
12251204
}
12261205

12271206
private ListLogsPagedResponse(ListLogsPage page) {

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,13 @@ public LoggingServiceV2StubSettings.Builder getStubSettingsBuilder() {
208208
return ((LoggingServiceV2StubSettings.Builder) getStubSettings());
209209
}
210210

211-
// NEXT_MAJOR_VER: remove 'throws Exception'.
212211
/**
213212
* Applies the given settings updater function to all of the unary API methods in this service.
214213
*
215214
* <p>Note: This method does not support applying settings to streaming methods.
216215
*/
217216
public Builder applyToAllUnaryMethods(
218-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
217+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
219218
super.applyToAllUnaryMethods(
220219
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
221220
return this;

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java

+1-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.logging.v2;
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;
@@ -734,12 +733,7 @@ public static ApiFuture<ListLogMetricsPagedResponse> createAsync(
734733
ListLogMetricsPage.createEmptyPage().createPageAsync(context, futureResponse);
735734
return ApiFutures.transform(
736735
futurePage,
737-
new ApiFunction<ListLogMetricsPage, ListLogMetricsPagedResponse>() {
738-
@Override
739-
public ListLogMetricsPagedResponse apply(ListLogMetricsPage input) {
740-
return new ListLogMetricsPagedResponse(input);
741-
}
742-
},
736+
input -> new ListLogMetricsPagedResponse(input),
743737
MoreExecutors.directExecutor());
744738
}
745739

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,13 @@ public MetricsServiceV2StubSettings.Builder getStubSettingsBuilder() {
187187
return ((MetricsServiceV2StubSettings.Builder) getStubSettings());
188188
}
189189

190-
// NEXT_MAJOR_VER: remove 'throws Exception'.
191190
/**
192191
* Applies the given settings updater function to all of the unary API methods in this service.
193192
*
194193
* <p>Note: This method does not support applying settings to streaming methods.
195194
*/
196195
public Builder applyToAllUnaryMethods(
197-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
196+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
198197
super.applyToAllUnaryMethods(
199198
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
200199
return this;

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -922,14 +922,13 @@ private static Builder initDefaults(Builder builder) {
922922
return builder;
923923
}
924924

925-
// NEXT_MAJOR_VER: remove 'throws Exception'.
926925
/**
927926
* Applies the given settings updater function to all of the unary API methods in this service.
928927
*
929928
* <p>Note: This method does not support applying settings to streaming methods.
930929
*/
931930
public Builder applyToAllUnaryMethods(
932-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
931+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
933932
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
934933
return this;
935934
}

0 commit comments

Comments
 (0)