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

Commit

Permalink
feat: Added BigQueryDateShardedSpec.latest_shard_resource field feat:…
Browse files Browse the repository at this point in the history
… Added SearchCatalogResult.display_name field feat: Added SearchCatalogResult.description field

PiperOrigin-RevId: 408274419

Source-Link: googleapis/googleapis@cbba92c

Source-Link: googleapis/googleapis-gen@64b969f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjRiOTY5ZjEyOTlmNTcyZmJiMjY5NTMwY2JjNDU0OTY2YjE0ODUxZCJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 17, 2021
1 parent 6ae3060 commit c2b5eea
Show file tree
Hide file tree
Showing 474 changed files with 45,025 additions and 72,059 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Expand Up @@ -30,6 +30,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.datacatalog.v1.stub.DataCatalogStubSettings;
Expand All @@ -50,9 +51,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (datacatalog.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> The default service address (datacatalog.googleapis.com) and default port (443) are used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down
Expand Up @@ -66,13 +66,13 @@
* methods:
*
* <ol>
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* <li> A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* <li> A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
*
Expand Down Expand Up @@ -199,7 +199,7 @@ public final Taxonomy createTaxonomy(LocationName parent, Taxonomy taxonomy) {
*
* <pre>{@code
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
* Taxonomy taxonomy = Taxonomy.newBuilder().build();
* Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy);
* }
Expand Down Expand Up @@ -227,7 +227,7 @@ public final Taxonomy createTaxonomy(String parent, Taxonomy taxonomy) {
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* CreateTaxonomyRequest request =
* CreateTaxonomyRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setTaxonomy(Taxonomy.newBuilder().build())
* .build();
* Taxonomy response = policyTagManagerClient.createTaxonomy(request);
Expand All @@ -253,7 +253,7 @@ public final Taxonomy createTaxonomy(CreateTaxonomyRequest request) {
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* CreateTaxonomyRequest request =
* CreateTaxonomyRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setTaxonomy(Taxonomy.newBuilder().build())
* .build();
* ApiFuture<Taxonomy> future =
Expand Down Expand Up @@ -466,7 +466,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(LocationName parent) {
*
* <pre>{@code
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
* for (Taxonomy element : policyTagManagerClient.listTaxonomies(parent).iterateAll()) {
* // doThingsWith(element);
* }
Expand All @@ -491,7 +491,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(String parent) {
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* ListTaxonomiesRequest request =
* ListTaxonomiesRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand All @@ -518,7 +518,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(ListTaxonomiesRequest re
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* ListTaxonomiesRequest request =
* ListTaxonomiesRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -546,7 +546,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(ListTaxonomiesRequest re
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* ListTaxonomiesRequest request =
* ListTaxonomiesRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -694,7 +694,8 @@ public final PolicyTag createPolicyTag(TaxonomyName parent, PolicyTag policyTag)
*
* <pre>{@code
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
* String parent =
* PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString();
* PolicyTag policyTag = PolicyTag.newBuilder().build();
* PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag);
* }
Expand All @@ -720,7 +721,9 @@ public final PolicyTag createPolicyTag(String parent, PolicyTag policyTag) {
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* CreatePolicyTagRequest request =
* CreatePolicyTagRequest.newBuilder()
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setParent(
* PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
* .toString())
* .setPolicyTag(PolicyTag.newBuilder().build())
* .build();
* PolicyTag response = policyTagManagerClient.createPolicyTag(request);
Expand All @@ -744,7 +747,9 @@ public final PolicyTag createPolicyTag(CreatePolicyTagRequest request) {
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* CreatePolicyTagRequest request =
* CreatePolicyTagRequest.newBuilder()
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setParent(
* PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
* .toString())
* .setPolicyTag(PolicyTag.newBuilder().build())
* .build();
* ApiFuture<PolicyTag> future =
Expand All @@ -763,9 +768,9 @@ public final UnaryCallable<CreatePolicyTagRequest, PolicyTag> createPolicyTagCal
* Deletes a policy tag together with the following:
*
* <ul>
* <li>All of its descendant policy tags, if any
* <li>Policies associated with the policy tag and its descendants
* <li>References from BigQuery table schema of the policy tag and its descendants
* <li> All of its descendant policy tags, if any
* <li> Policies associated with the policy tag and its descendants
* <li> References from BigQuery table schema of the policy tag and its descendants
* </ul>
*
* <p>Sample code:
Expand Down Expand Up @@ -793,9 +798,9 @@ public final void deletePolicyTag(PolicyTagName name) {
* Deletes a policy tag together with the following:
*
* <ul>
* <li>All of its descendant policy tags, if any
* <li>Policies associated with the policy tag and its descendants
* <li>References from BigQuery table schema of the policy tag and its descendants
* <li> All of its descendant policy tags, if any
* <li> Policies associated with the policy tag and its descendants
* <li> References from BigQuery table schema of the policy tag and its descendants
* </ul>
*
* <p>Sample code:
Expand All @@ -822,9 +827,9 @@ public final void deletePolicyTag(String name) {
* Deletes a policy tag together with the following:
*
* <ul>
* <li>All of its descendant policy tags, if any
* <li>Policies associated with the policy tag and its descendants
* <li>References from BigQuery table schema of the policy tag and its descendants
* <li> All of its descendant policy tags, if any
* <li> Policies associated with the policy tag and its descendants
* <li> References from BigQuery table schema of the policy tag and its descendants
* </ul>
*
* <p>Sample code:
Expand Down Expand Up @@ -853,9 +858,9 @@ public final void deletePolicyTag(DeletePolicyTagRequest request) {
* Deletes a policy tag together with the following:
*
* <ul>
* <li>All of its descendant policy tags, if any
* <li>Policies associated with the policy tag and its descendants
* <li>References from BigQuery table schema of the policy tag and its descendants
* <li> All of its descendant policy tags, if any
* <li> Policies associated with the policy tag and its descendants
* <li> References from BigQuery table schema of the policy tag and its descendants
* </ul>
*
* <p>Sample code:
Expand Down Expand Up @@ -984,7 +989,8 @@ public final ListPolicyTagsPagedResponse listPolicyTags(TaxonomyName parent) {
*
* <pre>{@code
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
* String parent =
* PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString();
* for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) {
* // doThingsWith(element);
* }
Expand All @@ -1009,7 +1015,9 @@ public final ListPolicyTagsPagedResponse listPolicyTags(String parent) {
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* ListPolicyTagsRequest request =
* ListPolicyTagsRequest.newBuilder()
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setParent(
* PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
* .toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand All @@ -1036,7 +1044,9 @@ public final ListPolicyTagsPagedResponse listPolicyTags(ListPolicyTagsRequest re
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* ListPolicyTagsRequest request =
* ListPolicyTagsRequest.newBuilder()
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setParent(
* PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
* .toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -1064,7 +1074,9 @@ public final ListPolicyTagsPagedResponse listPolicyTags(ListPolicyTagsRequest re
* try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
* ListPolicyTagsRequest request =
* ListPolicyTagsRequest.newBuilder()
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .setParent(
* PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
* .toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -1365,10 +1377,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListTaxonomiesPagedResponse
extends AbstractPagedListResponse<
ListTaxonomiesRequest,
ListTaxonomiesResponse,
Taxonomy,
ListTaxonomiesPage,
ListTaxonomiesRequest, ListTaxonomiesResponse, Taxonomy, ListTaxonomiesPage,
ListTaxonomiesFixedSizeCollection> {

public static ApiFuture<ListTaxonomiesPagedResponse> createAsync(
Expand Down Expand Up @@ -1418,10 +1427,7 @@ public ApiFuture<ListTaxonomiesPage> createPageAsync(

public static class ListTaxonomiesFixedSizeCollection
extends AbstractFixedSizeCollection<
ListTaxonomiesRequest,
ListTaxonomiesResponse,
Taxonomy,
ListTaxonomiesPage,
ListTaxonomiesRequest, ListTaxonomiesResponse, Taxonomy, ListTaxonomiesPage,
ListTaxonomiesFixedSizeCollection> {

private ListTaxonomiesFixedSizeCollection(List<ListTaxonomiesPage> pages, int collectionSize) {
Expand All @@ -1441,10 +1447,7 @@ protected ListTaxonomiesFixedSizeCollection createCollection(

public static class ListPolicyTagsPagedResponse
extends AbstractPagedListResponse<
ListPolicyTagsRequest,
ListPolicyTagsResponse,
PolicyTag,
ListPolicyTagsPage,
ListPolicyTagsRequest, ListPolicyTagsResponse, PolicyTag, ListPolicyTagsPage,
ListPolicyTagsFixedSizeCollection> {

public static ApiFuture<ListPolicyTagsPagedResponse> createAsync(
Expand Down Expand Up @@ -1494,10 +1497,7 @@ public ApiFuture<ListPolicyTagsPage> createPageAsync(

public static class ListPolicyTagsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListPolicyTagsRequest,
ListPolicyTagsResponse,
PolicyTag,
ListPolicyTagsPage,
ListPolicyTagsRequest, ListPolicyTagsResponse, PolicyTag, ListPolicyTagsPage,
ListPolicyTagsFixedSizeCollection> {

private ListPolicyTagsFixedSizeCollection(List<ListPolicyTagsPage> pages, int collectionSize) {
Expand Down
Expand Up @@ -55,13 +55,13 @@
* methods:
*
* <ol>
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* <li> A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* <li> A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
*
Expand Down Expand Up @@ -239,7 +239,7 @@ public final UnaryCallable<ReplaceTaxonomyRequest, Taxonomy> replaceTaxonomyCall
* PolicyTagManagerSerializationClient.create()) {
* ImportTaxonomiesRequest request =
* ImportTaxonomiesRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .build();
* ImportTaxonomiesResponse response =
* policyTagManagerSerializationClient.importTaxonomies(request);
Expand Down Expand Up @@ -271,7 +271,7 @@ public final ImportTaxonomiesResponse importTaxonomies(ImportTaxonomiesRequest r
* PolicyTagManagerSerializationClient.create()) {
* ImportTaxonomiesRequest request =
* ImportTaxonomiesRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .build();
* ApiFuture<ImportTaxonomiesResponse> future =
* policyTagManagerSerializationClient.importTaxonomiesCallable().futureCall(request);
Expand Down Expand Up @@ -300,7 +300,7 @@ public final ImportTaxonomiesResponse importTaxonomies(ImportTaxonomiesRequest r
* PolicyTagManagerSerializationClient.create()) {
* ExportTaxonomiesRequest request =
* ExportTaxonomiesRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .addAllTaxonomies(new ArrayList<String>())
* .build();
* ExportTaxonomiesResponse response =
Expand Down Expand Up @@ -330,7 +330,7 @@ public final ExportTaxonomiesResponse exportTaxonomies(ExportTaxonomiesRequest r
* PolicyTagManagerSerializationClient.create()) {
* ExportTaxonomiesRequest request =
* ExportTaxonomiesRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
* .addAllTaxonomies(new ArrayList<String>())
* .build();
* ApiFuture<ExportTaxonomiesResponse> future =
Expand Down
Expand Up @@ -24,6 +24,7 @@
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.datacatalog.v1.stub.PolicyTagManagerSerializationStubSettings;
Expand All @@ -38,9 +39,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (datacatalog.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> The default service address (datacatalog.googleapis.com) and default port (443) are used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down

0 comments on commit c2b5eea

Please sign in to comment.