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

Commit

Permalink
feat!: release gapic-generator-java v2.0.0 (#581)
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] committed Aug 4, 2021
1 parent f7ad30f commit 33401b0
Show file tree
Hide file tree
Showing 24 changed files with 152 additions and 325 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.resourcemanager.v3;

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 @@ -1819,14 +1818,7 @@ public static ApiFuture<ListFoldersPagedResponse> createAsync(
ApiFuture<ListFoldersPage> futurePage =
ListFoldersPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListFoldersPage, ListFoldersPagedResponse>() {
@Override
public ListFoldersPagedResponse apply(ListFoldersPage input) {
return new ListFoldersPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListFoldersPagedResponse(input), MoreExecutors.directExecutor());
}

private ListFoldersPagedResponse(ListFoldersPage page) {
Expand Down Expand Up @@ -1900,12 +1892,7 @@ public static ApiFuture<SearchFoldersPagedResponse> createAsync(
SearchFoldersPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<SearchFoldersPage, SearchFoldersPagedResponse>() {
@Override
public SearchFoldersPagedResponse apply(SearchFoldersPage input) {
return new SearchFoldersPagedResponse(input);
}
},
input -> new SearchFoldersPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,13 @@ public FoldersStubSettings.Builder getStubSettingsBuilder() {
return ((FoldersStubSettings.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.resourcemanager.v3;

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

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,13 @@ public ProjectsStubSettings.Builder getStubSettingsBuilder() {
return ((ProjectsStubSettings.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.resourcemanager.v3;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,13 @@ public TagBindingsStubSettings.Builder getStubSettingsBuilder() {
return ((TagBindingsStubSettings.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.resourcemanager.v3;

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 @@ -1107,14 +1106,7 @@ public static ApiFuture<ListTagKeysPagedResponse> createAsync(
ApiFuture<ListTagKeysPage> futurePage =
ListTagKeysPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListTagKeysPage, ListTagKeysPagedResponse>() {
@Override
public ListTagKeysPagedResponse apply(ListTagKeysPage input) {
return new ListTagKeysPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListTagKeysPagedResponse(input), MoreExecutors.directExecutor());
}

private ListTagKeysPagedResponse(ListTagKeysPage page) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,13 @@ public TagKeysStubSettings.Builder getStubSettingsBuilder() {
return ((TagKeysStubSettings.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.resourcemanager.v3;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,13 @@ public TagValuesStubSettings.Builder getStubSettingsBuilder() {
return ((TagValuesStubSettings.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 @@ -769,14 +769,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 33401b0

Please sign in to comment.