Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#567)
  • Loading branch information
gcf-owl-bot[bot] committed Aug 4, 2021
1 parent e4d80b4 commit a6f9f4e7dbea8354e57c6845a0770a65e232cb26
@@ -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;
@@ -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());
}

@@ -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());
}

@@ -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());
}

@@ -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());
}

@@ -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());
}

@@ -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());
}

@@ -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());
}

@@ -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());
}

@@ -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());
}

@@ -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;
@@ -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;
}

0 comments on commit a6f9f4e

Please sign in to comment.