Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#581)
  • Loading branch information
gcf-owl-bot[bot] committed Aug 4, 2021
1 parent f7ad30f commit 33401b0454a9f6bd87ed34c83d805b6e72f9e116
Showing with 152 additions and 325 deletions.
  1. +2 −15 google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersClient.java
  2. +1 −2 google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersSettings.java
  3. +1 −7 ...-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsClient.java
  4. +1 −2 ...loud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsSettings.java
  5. +2 −13 google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java
  6. +1 −2 google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsSettings.java
  7. +1 −7 ...le-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsClient.java
  8. +1 −2 ...-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsSettings.java
  9. +1 −9 google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java
  10. +1 −2 google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysSettings.java
  11. +1 −7 google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesClient.java
  12. +1 −2 ...le-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesSettings.java
  13. +1 −2 ...d-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStubSettings.java
  14. +32 −58 ...cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/GrpcFoldersStub.java
  15. +16 −30 ...resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/GrpcOrganizationsStub.java
  16. +32 −58 ...loud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/GrpcProjectsStub.java
  17. +4 −9 ...d-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/GrpcTagBindingsStub.java
  18. +24 −44 ...cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/GrpcTagKeysStub.java
  19. +24 −44 ...oud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/GrpcTagValuesStub.java
  20. +1 −2 ...urcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/OrganizationsStubSettings.java
  21. +1 −2 ...-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStubSettings.java
  22. +1 −2 ...sourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStubSettings.java
  23. +1 −2 ...d-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStubSettings.java
  24. +1 −2 ...resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStubSettings.java
@@ -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;
@@ -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) {
@@ -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());
}

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

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

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

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

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

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

0 comments on commit 33401b0

Please sign in to comment.