Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: release gapic-generator-java v2.0.0 #605

Merged
merged 4 commits into from Aug 4, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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
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
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
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
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