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

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

Merged
Merged
Show file tree
Hide file tree
Changes from all 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.datalabeling.v1beta1;

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 @@ -4466,12 +4465,7 @@ public static ApiFuture<ListDatasetsPagedResponse> createAsync(
ListDatasetsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListDatasetsPage, ListDatasetsPagedResponse>() {
@Override
public ListDatasetsPagedResponse apply(ListDatasetsPage input) {
return new ListDatasetsPagedResponse(input);
}
},
input -> new ListDatasetsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4546,12 +4540,7 @@ public static ApiFuture<ListDataItemsPagedResponse> createAsync(
ListDataItemsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListDataItemsPage, ListDataItemsPagedResponse>() {
@Override
public ListDataItemsPagedResponse apply(ListDataItemsPage input) {
return new ListDataItemsPagedResponse(input);
}
},
input -> new ListDataItemsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4628,12 +4617,7 @@ public static ApiFuture<ListAnnotatedDatasetsPagedResponse> createAsync(
ListAnnotatedDatasetsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAnnotatedDatasetsPage, ListAnnotatedDatasetsPagedResponse>() {
@Override
public ListAnnotatedDatasetsPagedResponse apply(ListAnnotatedDatasetsPage input) {
return new ListAnnotatedDatasetsPagedResponse(input);
}
},
input -> new ListAnnotatedDatasetsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4716,12 +4700,7 @@ public static ApiFuture<ListExamplesPagedResponse> createAsync(
ListExamplesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListExamplesPage, ListExamplesPagedResponse>() {
@Override
public ListExamplesPagedResponse apply(ListExamplesPage input) {
return new ListExamplesPagedResponse(input);
}
},
input -> new ListExamplesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4798,12 +4777,7 @@ public static ApiFuture<ListAnnotationSpecSetsPagedResponse> createAsync(
ListAnnotationSpecSetsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAnnotationSpecSetsPage, ListAnnotationSpecSetsPagedResponse>() {
@Override
public ListAnnotationSpecSetsPagedResponse apply(ListAnnotationSpecSetsPage input) {
return new ListAnnotationSpecSetsPagedResponse(input);
}
},
input -> new ListAnnotationSpecSetsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4889,12 +4863,7 @@ public static ApiFuture<ListInstructionsPagedResponse> createAsync(
ListInstructionsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListInstructionsPage, ListInstructionsPagedResponse>() {
@Override
public ListInstructionsPagedResponse apply(ListInstructionsPage input) {
return new ListInstructionsPagedResponse(input);
}
},
input -> new ListInstructionsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4971,12 +4940,7 @@ public static ApiFuture<SearchEvaluationsPagedResponse> createAsync(
SearchEvaluationsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<SearchEvaluationsPage, SearchEvaluationsPagedResponse>() {
@Override
public SearchEvaluationsPagedResponse apply(SearchEvaluationsPage input) {
return new SearchEvaluationsPagedResponse(input);
}
},
input -> new SearchEvaluationsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -5057,12 +5021,7 @@ public static ApiFuture<SearchExampleComparisonsPagedResponse> createAsync(
SearchExampleComparisonsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<SearchExampleComparisonsPage, SearchExampleComparisonsPagedResponse>() {
@Override
public SearchExampleComparisonsPagedResponse apply(SearchExampleComparisonsPage input) {
return new SearchExampleComparisonsPagedResponse(input);
}
},
input -> new SearchExampleComparisonsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -5154,12 +5113,7 @@ public static ApiFuture<ListEvaluationJobsPagedResponse> createAsync(
ListEvaluationJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListEvaluationJobsPage, ListEvaluationJobsPagedResponse>() {
@Override
public ListEvaluationJobsPagedResponse apply(ListEvaluationJobsPage input) {
return new ListEvaluationJobsPagedResponse(input);
}
},
input -> new ListEvaluationJobsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -403,14 +403,13 @@ public DataLabelingServiceStubSettings.Builder getStubSettingsBuilder() {
return ((DataLabelingServiceStubSettings.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 @@ -1787,14 +1787,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