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

Commit

Permalink
feat!: release gapic-generator-java v2.0.0 (#236)
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 388535346

Source-Link: googleapis/googleapis@d9eaf41

Source-Link: googleapis/googleapis-gen@976c5ab
  • Loading branch information
gcf-owl-bot[bot] authored Aug 4, 2021
1 parent 43eee85 commit 7659402
Show file tree
Hide file tree
Showing 8 changed files with 221 additions and 457 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.security.privateca.v1;

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

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

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

private ListCaPoolsPagedResponse(ListCaPoolsPage page) {
Expand Down Expand Up @@ -4571,14 +4551,7 @@ public static ApiFuture<ListCertificateRevocationListsPagedResponse> createAsync
.createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<
ListCertificateRevocationListsPage, ListCertificateRevocationListsPagedResponse>() {
@Override
public ListCertificateRevocationListsPagedResponse apply(
ListCertificateRevocationListsPage input) {
return new ListCertificateRevocationListsPagedResponse(input);
}
},
input -> new ListCertificateRevocationListsPagedResponse(input),
MoreExecutors.directExecutor());
}

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,13 @@ public CertificateAuthorityServiceStubSettings.Builder getStubSettingsBuilder()
return ((CertificateAuthorityServiceStubSettings.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 @@ -1838,14 +1838,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
Loading

0 comments on commit 7659402

Please sign in to comment.