Skip to content
Permalink
Browse files
feat: Added BigQueryDateShardedSpec.latest_shard_resource field feat:…
… Added SearchCatalogResult.display_name field feat: Added SearchCatalogResult.description field (#683)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 408274419

Source-Link: googleapis/googleapis@cbba92c

Source-Link: https://github.com/googleapis/googleapis-gen/commit/64b969f1299f572fbb269530cbc454966b14851d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjRiOTY5ZjEyOTlmNTcyZmJiMjY5NTMwY2JjNDU0OTY2YjE0ODUxZCJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 17, 2021
1 parent 5525650 commit fdac6a0a4b89c83fbc031a088b8e6cf426115563
Showing with 132 additions and 118 deletions.
  1. +19 −13 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java
  2. +26 −14 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java
  3. +4 −4 ...atacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java
  4. +19 −13 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java
  5. +26 −14 ...-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java
  6. +5 −5 ...talog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java
  7. +1 −1 google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java
  8. +6 −8 google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java
  9. +6 −12 ...e-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java
  10. +4 −4 ...atalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java
  11. +6 −8 ...e-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java
  12. +6 −12 ...ud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java
  13. +4 −4 ...g/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java
  14. +0 −1 grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java
  15. +0 −1 ...ogle-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java
  16. +0 −1 ...tacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java
  17. +0 −1 ...cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java
  18. +0 −1 ...-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java
  19. +0 −1 ...v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java
@@ -430,7 +430,7 @@ public final EntryGroup createEntryGroup(
*
* <pre>{@code
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
* String entryGroupId = "entryGroupId1228924712";
* EntryGroup entryGroup = EntryGroup.newBuilder().build();
* EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
@@ -493,7 +493,7 @@ public final EntryGroup createEntryGroup(
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* CreateEntryGroupRequest request =
* CreateEntryGroupRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
* .setEntryGroupId("entryGroupId1228924712")
* .setEntryGroup(EntryGroup.newBuilder().build())
* .build();
@@ -543,7 +543,7 @@ public final EntryGroup createEntryGroup(CreateEntryGroupRequest request) {
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* CreateEntryGroupRequest request =
* CreateEntryGroupRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
* .setEntryGroupId("entryGroupId1228924712")
* .setEntryGroup(EntryGroup.newBuilder().build())
* .build();
@@ -1815,7 +1815,7 @@ public final TagTemplate createTagTemplate(
*
* <pre>{@code
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* String parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString();
* String tagTemplateId = "tagTemplateId-1438776721";
* TagTemplate tagTemplate = TagTemplate.newBuilder().build();
* TagTemplate response =
@@ -1856,7 +1856,7 @@ public final TagTemplate createTagTemplate(
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* CreateTagTemplateRequest request =
* CreateTagTemplateRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
* .setTagTemplateId("tagTemplateId-1438776721")
* .setTagTemplate(TagTemplate.newBuilder().build())
* .build();
@@ -1885,7 +1885,7 @@ public final TagTemplate createTagTemplate(CreateTagTemplateRequest request) {
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* CreateTagTemplateRequest request =
* CreateTagTemplateRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
* .setTagTemplateId("tagTemplateId-1438776721")
* .setTagTemplate(TagTemplate.newBuilder().build())
* .build();
@@ -3318,7 +3318,8 @@ public final void deleteTag(EntryName name) {
*
* <pre>{@code
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
* String name =
* TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]").toString();
* dataCatalogClient.deleteTag(name);
* }
* }</pre>
@@ -3342,7 +3343,8 @@ public final void deleteTag(String name) {
* DeleteTagRequest request =
* DeleteTagRequest.newBuilder()
* .setName(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]")
* .toString())
* .build();
* dataCatalogClient.deleteTag(request);
* }
@@ -3366,7 +3368,8 @@ public final void deleteTag(DeleteTagRequest request) {
* DeleteTagRequest request =
* DeleteTagRequest.newBuilder()
* .setName(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]")
* .toString())
* .build();
* ApiFuture<Empty> future = dataCatalogClient.deleteTagCallable().futureCall(request);
* // Do something.
@@ -3414,7 +3417,7 @@ public final ListTagsPagedResponse listTags(EntryName parent) {
* <pre>{@code
* try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
* String parent =
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
* TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]").toString();
* for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) {
* // doThingsWith(element);
* }
@@ -3443,7 +3446,8 @@ public final ListTagsPagedResponse listTags(String parent) {
* ListTagsRequest request =
* ListTagsRequest.newBuilder()
* .setParent(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]")
* .toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
@@ -3471,7 +3475,8 @@ public final ListTagsPagedResponse listTags(ListTagsRequest request) {
* ListTagsRequest request =
* ListTagsRequest.newBuilder()
* .setParent(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]")
* .toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
@@ -3498,7 +3503,8 @@ public final UnaryCallable<ListTagsRequest, ListTagsPagedResponse> listTagsPaged
* ListTagsRequest request =
* ListTagsRequest.newBuilder()
* .setParent(
* EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
* TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]")
* .toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
@@ -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);
* }
@@ -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);
@@ -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 =
@@ -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);
* }
@@ -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();
@@ -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();
@@ -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();
@@ -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);
* }
@@ -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);
@@ -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 =
@@ -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);
* }
@@ -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();
@@ -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();
@@ -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();
@@ -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);
@@ -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);
@@ -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 =
@@ -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 =

0 comments on commit fdac6a0

Please sign in to comment.