Skip to content

Commit

Permalink
feat!: release gapic-generator-java v2.0.0 (#605)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yoshi-automation committed Aug 4, 2021
1 parent 85e496d commit 8fa5c5a
Show file tree
Hide file tree
Showing 13 changed files with 166 additions and 304 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.logging.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 @@ -2855,14 +2854,7 @@ public static ApiFuture<ListBucketsPagedResponse> createAsync(
ApiFuture<ListBucketsPage> futurePage =
ListBucketsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListBucketsPage, ListBucketsPagedResponse>() {
@Override
public ListBucketsPagedResponse apply(ListBucketsPage input) {
return new ListBucketsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListBucketsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListBucketsPagedResponse(ListBucketsPage page) {
Expand Down Expand Up @@ -2935,14 +2927,7 @@ public static ApiFuture<ListViewsPagedResponse> createAsync(
ApiFuture<ListViewsPage> futurePage =
ListViewsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListViewsPage, ListViewsPagedResponse>() {
@Override
public ListViewsPagedResponse apply(ListViewsPage input) {
return new ListViewsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListViewsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListViewsPagedResponse(ListViewsPage page) {
Expand Down Expand Up @@ -3015,14 +3000,7 @@ public static ApiFuture<ListSinksPagedResponse> createAsync(
ApiFuture<ListSinksPage> futurePage =
ListSinksPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListSinksPage, ListSinksPagedResponse>() {
@Override
public ListSinksPagedResponse apply(ListSinksPage input) {
return new ListSinksPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListSinksPagedResponse(input), MoreExecutors.directExecutor());
}

private ListSinksPagedResponse(ListSinksPage page) {
Expand Down Expand Up @@ -3096,12 +3074,7 @@ public static ApiFuture<ListExclusionsPagedResponse> createAsync(
ListExclusionsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListExclusionsPage, ListExclusionsPagedResponse>() {
@Override
public ListExclusionsPagedResponse apply(ListExclusionsPage input) {
return new ListExclusionsPagedResponse(input);
}
},
input -> new ListExclusionsPagedResponse(input),
MoreExecutors.directExecutor());
}

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

import com.google.api.MonitoredResource;
import com.google.api.MonitoredResourceDescriptor;
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 @@ -1032,12 +1031,7 @@ public static ApiFuture<ListLogEntriesPagedResponse> createAsync(
ListLogEntriesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListLogEntriesPage, ListLogEntriesPagedResponse>() {
@Override
public ListLogEntriesPagedResponse apply(ListLogEntriesPage input) {
return new ListLogEntriesPagedResponse(input);
}
},
input -> new ListLogEntriesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -1118,15 +1112,7 @@ public static ApiFuture<ListMonitoredResourceDescriptorsPagedResponse> createAsy
.createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<
ListMonitoredResourceDescriptorsPage,
ListMonitoredResourceDescriptorsPagedResponse>() {
@Override
public ListMonitoredResourceDescriptorsPagedResponse apply(
ListMonitoredResourceDescriptorsPage input) {
return new ListMonitoredResourceDescriptorsPagedResponse(input);
}
},
input -> new ListMonitoredResourceDescriptorsPagedResponse(input),
MoreExecutors.directExecutor());
}

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

private ListLogsPagedResponse(ListLogsPage page) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,13 @@ public LoggingServiceV2StubSettings.Builder getStubSettingsBuilder() {
return ((LoggingServiceV2StubSettings.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.logging.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 @@ -734,12 +733,7 @@ public static ApiFuture<ListLogMetricsPagedResponse> createAsync(
ListLogMetricsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListLogMetricsPage, ListLogMetricsPagedResponse>() {
@Override
public ListLogMetricsPagedResponse apply(ListLogMetricsPage input) {
return new ListLogMetricsPagedResponse(input);
}
},
input -> new ListLogMetricsPagedResponse(input),
MoreExecutors.directExecutor());
}

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

0 comments on commit 8fa5c5a

Please sign in to comment.