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

Commit

Permalink
chore: Re-generated to pick up changes from googleapis (#604)
Browse files Browse the repository at this point in the history
* chore: release gapic-generator-java v1.0.17

Committer: @miraleung
PiperOrigin-RevId: 388499329

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Aug 3 11:12:29 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: bb0a090d9204110042ab5dee2ce9e06e8071ce54
Source-Link: googleapis/googleapis@bb0a090

* feat!: release gapic-generator-java v2.0.0

Committer: @miraleung
PiperOrigin-RevId: 388535346

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Aug 3 13:48:38 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: d9eaf41de44d953458b18712a3f240bb4c564e48
Source-Link: googleapis/googleapis@d9eaf41

* chore: release gapic-generator-java v2.0.1

Committer: @miraleung
PiperOrigin-RevId: 389657692

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Aug 9 09:53:52 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: a739464cacb3aa6d375683aefe16b79c21da1bb0
Source-Link: googleapis/googleapis@a739464

Co-authored-by: Emily Ball <emilyball@google.com>
  • Loading branch information
yoshi-automation and eaball35 committed Aug 30, 2021
1 parent 96fa38e commit 34cf8d0
Show file tree
Hide file tree
Showing 23 changed files with 460 additions and 741 deletions.
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.datacatalog.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 @@ -3526,7 +3525,7 @@ public final UnaryCallable<ListTagsRequest, ListTagsResponse> listTagsCallable()
*
* <pre>{@code
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* ResourceName resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]");
* ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
* Policy policy = Policy.newBuilder().build();
* Policy response = dataCatalogClient.setIamPolicy(resource, policy);
* }
Expand Down Expand Up @@ -3569,7 +3568,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
*
* <pre>{@code
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* String resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
* String resource =
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
* Policy policy = Policy.newBuilder().build();
* Policy response = dataCatalogClient.setIamPolicy(resource, policy);
* }
Expand Down Expand Up @@ -3611,7 +3611,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .setPolicy(Policy.newBuilder().build())
* .build();
* Policy response = dataCatalogClient.setIamPolicy(request);
Expand Down Expand Up @@ -3648,7 +3649,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .setPolicy(Policy.newBuilder().build())
* .build();
* ApiFuture<Policy> future = dataCatalogClient.setIamPolicyCallable().futureCall(request);
Expand Down Expand Up @@ -3689,7 +3691,7 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
*
* <pre>{@code
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* ResourceName resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]");
* ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
* Policy response = dataCatalogClient.getIamPolicy(resource);
* }
* }</pre>
Expand Down Expand Up @@ -3734,7 +3736,8 @@ public final Policy getIamPolicy(ResourceName resource) {
*
* <pre>{@code
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* String resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
* String resource =
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
* Policy response = dataCatalogClient.getIamPolicy(resource);
* }
* }</pre>
Expand Down Expand Up @@ -3778,7 +3781,8 @@ public final Policy getIamPolicy(String resource) {
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = dataCatalogClient.getIamPolicy(request);
Expand Down Expand Up @@ -3822,7 +3826,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future = dataCatalogClient.getIamPolicyCallable().futureCall(request);
Expand Down Expand Up @@ -3857,7 +3862,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = dataCatalogClient.testIamPermissions(request);
Expand Down Expand Up @@ -3893,7 +3899,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
Expand Down Expand Up @@ -3953,12 +3960,7 @@ public static ApiFuture<SearchCatalogPagedResponse> createAsync(
SearchCatalogPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<SearchCatalogPage, SearchCatalogPagedResponse>() {
@Override
public SearchCatalogPagedResponse apply(SearchCatalogPage input) {
return new SearchCatalogPagedResponse(input);
}
},
input -> new SearchCatalogPagedResponse(input),
MoreExecutors.directExecutor());
}

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

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

private ListEntriesPagedResponse(ListEntriesPage page) {
Expand Down Expand Up @@ -4191,14 +4181,7 @@ public static ApiFuture<ListTagsPagedResponse> createAsync(
ApiFuture<ListTagsPage> futurePage =
ListTagsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListTagsPage, ListTagsPagedResponse>() {
@Override
public ListTagsPagedResponse apply(ListTagsPage input) {
return new ListTagsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListTagsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListTagsPagedResponse(ListTagsPage page) {
Expand Down
Expand Up @@ -311,14 +311,13 @@ public DataCatalogStubSettings.Builder getStubSettingsBuilder() {
return ((DataCatalogStubSettings.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 @@ -16,7 +16,6 @@

package com.google.cloud.datacatalog.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 @@ -1209,7 +1208,8 @@ public final UnaryCallable<GetPolicyTagRequest, PolicyTag> getPolicyTagCallable(
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = policyTagManagerClient.getIamPolicy(request);
Expand All @@ -1233,7 +1233,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future = policyTagManagerClient.getIamPolicyCallable().futureCall(request);
Expand All @@ -1256,7 +1257,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .setPolicy(Policy.newBuilder().build())
* .build();
* Policy response = policyTagManagerClient.setIamPolicy(request);
Expand All @@ -1280,7 +1282,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .setPolicy(Policy.newBuilder().build())
* .build();
* ApiFuture<Policy> future = policyTagManagerClient.setIamPolicyCallable().futureCall(request);
Expand All @@ -1303,7 +1306,8 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = policyTagManagerClient.testIamPermissions(request);
Expand All @@ -1327,7 +1331,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setResource(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
Expand Down Expand Up @@ -1387,12 +1392,7 @@ public static ApiFuture<ListTaxonomiesPagedResponse> createAsync(
ListTaxonomiesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListTaxonomiesPage, ListTaxonomiesPagedResponse>() {
@Override
public ListTaxonomiesPagedResponse apply(ListTaxonomiesPage input) {
return new ListTaxonomiesPagedResponse(input);
}
},
input -> new ListTaxonomiesPagedResponse(input),
MoreExecutors.directExecutor());
}

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

Expand Down
Expand Up @@ -174,14 +174,13 @@ public PolicyTagManagerSerializationStubSettings.Builder getStubSettingsBuilder(
return ((PolicyTagManagerSerializationStubSettings.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 @@ -231,14 +231,13 @@ public PolicyTagManagerStubSettings.Builder getStubSettingsBuilder() {
return ((PolicyTagManagerStubSettings.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 @@ -1029,14 +1029,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

0 comments on commit 34cf8d0

Please sign in to comment.