diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java index 0369cde5..0eb29ad1 100644 --- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java +++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java @@ -430,7 +430,7 @@ public final EntryGroup createEntryGroup( * *
{@code * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - * String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").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(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").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(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setEntryGroupId("entryGroupId1228924712") * .setEntryGroup(EntryGroup.newBuilder().build()) * .build(); @@ -1607,6 +1607,10 @@ public final UnaryCallablelookupEntryCallable() { /** * Lists entries. * + * Note: Currently, this method can list only custom entries. To get a list of both custom and + * automatically created entries, use + * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. + * *
Sample code: * *
{@code @@ -1634,6 +1638,10 @@ public final ListEntriesPagedResponse listEntries(EntryGroupName parent) { /** * Lists entries. * + *Note: Currently, this method can list only custom entries. To get a list of both custom and + * automatically created entries, use + * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. + * *
Sample code: * *
{@code @@ -1658,6 +1666,10 @@ public final ListEntriesPagedResponse listEntries(String parent) { /** * Lists entries. * + *Note: Currently, this method can list only custom entries. To get a list of both custom and + * automatically created entries, use + * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. + * *
Sample code: * *
{@code @@ -1686,6 +1698,10 @@ public final ListEntriesPagedResponse listEntries(ListEntriesRequest request) { /** * Lists entries. * + *Note: Currently, this method can list only custom entries. To get a list of both custom and + * automatically created entries, use + * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. + * *
Sample code: * *
{@code @@ -1714,6 +1730,10 @@ public final ListEntriesPagedResponse listEntries(ListEntriesRequest request) { /** * Lists entries. * + *Note: Currently, this method can list only custom entries. To get a list of both custom and + * automatically created entries, use + * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. + * *
Sample code: * *
{@code @@ -1795,7 +1815,7 @@ public final TagTemplate createTagTemplate( * ** - * @param name Required. The name of the tag template. + * @param name Required. The name of the tag template field. * @param newTagTemplateFieldId Required. The new ID of this tag template field. For example, * `my_new_field`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3014,9 +3037,9 @@ public final void deleteTagTemplateField(DeleteTagTemplateFieldRequest request) * *{@code * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - * String parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String tagTemplateId = "tagTemplateId-1438776721"; * TagTemplate tagTemplate = TagTemplate.newBuilder().build(); * TagTemplate response = @@ -1836,7 +1856,7 @@ public final TagTemplate createTagTemplate( * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { * CreateTagTemplateRequest request = * CreateTagTemplateRequest.newBuilder() - * .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setTagTemplateId("tagTemplateId-1438776721") * .setTagTemplate(TagTemplate.newBuilder().build()) * .build(); @@ -1865,7 +1885,7 @@ public final TagTemplate createTagTemplate(CreateTagTemplateRequest request) { * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { * CreateTagTemplateRequest request = * CreateTagTemplateRequest.newBuilder() - * .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setTagTemplateId("tagTemplateId-1438776721") * .setTagTemplate(TagTemplate.newBuilder().build()) * .build(); @@ -2021,9 +2041,12 @@ public final TagTemplate updateTagTemplate(TagTemplate tagTemplate) { * * @param tagTemplate Required. The template to update. The `name` field must be set. * @param updateMask Names of fields whose values to overwrite on a tag template. Currently, only - * `display_name` can be overwritten. + * `display_name` and `is_publicly_readable` can be overwritten. ** - * @param name Required. The name of the tag template. + * @param name Required. The name of the tag template field. * @param newTagTemplateFieldId Required. The new ID of this tag template field. For example, * `my_new_field`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2659,7 +2682,7 @@ public final TagTemplateField renameTagTemplateField( * } * }If this parameter is absent or empty, all modifiable fields are overwritten. If such * fields are non-required and omitted in the request body, their values are emptied. + *
Note: Updating the `is_publicly_readable` field may require up to 12 hours to take + * effect in search results. Additionally, it also requires the `tagTemplates.getIamPolicy` + * and `tagTemplates.setIamPolicy` permissions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TagTemplate updateTagTemplate(TagTemplate tagTemplate, FieldMask updateMask) { @@ -2623,7 +2646,7 @@ public final TagTemplateField updateTagTemplateField(UpdateTagTemplateFieldReque * } * }
*
* *- An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * ``projects.locations.entryGroups.entries.tags.create``. + * `projects.locations.entryGroups.entries.tags.create`. *
- Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method name is - * ``projects.locations.entryGroups.tags.create``. + * `projects.locations.entryGroups.tags.create`. *
Note: The project identified by the `parent` parameter for the [tag] @@ -3058,9 +3081,9 @@ public final Tag createTag(TagName parent, Tag tag) { * *
*
* *- An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * ``projects.locations.entryGroups.entries.tags.create``. + * `projects.locations.entryGroups.entries.tags.create`. *
- Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method name is - * ``projects.locations.entryGroups.tags.create``. + * `projects.locations.entryGroups.tags.create`. *
Note: The project identified by the `parent` parameter for the [tag] @@ -3099,9 +3122,9 @@ public final Tag createTag(String parent, Tag tag) { * *
*
* *- An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * ``projects.locations.entryGroups.entries.tags.create``. + * `projects.locations.entryGroups.entries.tags.create`. *
- Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method name is - * ``projects.locations.entryGroups.tags.create``. + * `projects.locations.entryGroups.tags.create`. *
Note: The project identified by the `parent` parameter for the [tag] @@ -3138,9 +3161,9 @@ public final Tag createTag(CreateTagRequest request) { * *
*
* *- An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * ``projects.locations.entryGroups.entries.tags.create``. + * `projects.locations.entryGroups.entries.tags.create`. *
- Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method name is - * ``projects.locations.entryGroups.tags.create``. + * `projects.locations.entryGroups.tags.create`. *
Note: The project identified by the `parent` parameter for the [tag] @@ -3295,8 +3318,7 @@ public final void deleteTag(EntryName name) { * *
{@code * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - * String name = - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]").toString(); + * String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); * dataCatalogClient.deleteTag(name); * } * }@@ -3320,8 +3342,7 @@ public final void deleteTag(String name) { * DeleteTagRequest request = * DeleteTagRequest.newBuilder() * .setName( - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - * .toString()) + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) * .build(); * dataCatalogClient.deleteTag(request); * } @@ -3345,8 +3366,7 @@ public final void deleteTag(DeleteTagRequest request) { * DeleteTagRequest request = * DeleteTagRequest.newBuilder() * .setName( - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - * .toString()) + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) * .build(); * ApiFuturefuture = dataCatalogClient.deleteTagCallable().futureCall(request); * // Do something. @@ -3394,7 +3414,7 @@ public final ListTagsPagedResponse listTags(EntryName parent) { * {@code * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { * String parent = - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]").toString(); + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); * for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) { * // doThingsWith(element); * } @@ -3423,8 +3443,7 @@ public final ListTagsPagedResponse listTags(String parent) { * ListTagsRequest request = * ListTagsRequest.newBuilder() * .setParent( - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - * .toString()) + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -3452,8 +3471,7 @@ public final ListTagsPagedResponse listTags(ListTagsRequest request) { * ListTagsRequest request = * ListTagsRequest.newBuilder() * .setParent( - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - * .toString()) + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -3480,8 +3498,7 @@ public final UnaryCallablelistTagsPaged * ListTagsRequest request = * ListTagsRequest.newBuilder() * .setParent( - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - * .toString()) + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java index 838ed477..f400f95f 100644 --- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java +++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java @@ -199,7 +199,7 @@ public final Taxonomy createTaxonomy(LocationName parent, Taxonomy taxonomy) { * * {@code * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - * String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").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(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").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(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setTaxonomy(Taxonomy.newBuilder().build()) * .build(); * ApiFuturefuture = @@ -466,7 +466,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(LocationName parent) { * * {@code * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - * String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").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(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").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(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").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(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -673,8 +673,7 @@ public final UnaryCallable* - * @param parent Required. Resource name of the taxonomy that the policy tag will belong to.<br - * /><br /> + * @param parent Required. Resource name of the taxonomy that the policy tag will belong to. * @param policyTag The policy tag to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -695,15 +694,13 @@ public final PolicyTag createPolicyTag(TaxonomyName parent, PolicyTag policyTag) * *getTaxonomyCallable() { * } * } {@code * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - * String parent = - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString(); + * String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); * PolicyTag policyTag = PolicyTag.newBuilder().build(); * PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag); * } * }* - * @param parent Required. Resource name of the taxonomy that the policy tag will belong to.<br - * /><br /> + * @param parent Required. Resource name of the taxonomy that the policy tag will belong to. * @param policyTag The policy tag to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -723,9 +720,7 @@ public final PolicyTag createPolicyTag(String parent, PolicyTag policyTag) { * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * CreatePolicyTagRequest request = * CreatePolicyTagRequest.newBuilder() - * .setParent( - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - * .toString()) + * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) * .setPolicyTag(PolicyTag.newBuilder().build()) * .build(); * PolicyTag response = policyTagManagerClient.createPolicyTag(request); @@ -749,9 +744,7 @@ public final PolicyTag createPolicyTag(CreatePolicyTagRequest request) { * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * CreatePolicyTagRequest request = * CreatePolicyTagRequest.newBuilder() - * .setParent( - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - * .toString()) + * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) * .setPolicyTag(PolicyTag.newBuilder().build()) * .build(); * ApiFuturefuture = @@ -991,8 +984,7 @@ public final ListPolicyTagsPagedResponse listPolicyTags(TaxonomyName parent) { * * {@code * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - * String parent = - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString(); + * String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); * for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) { * // doThingsWith(element); * } @@ -1017,9 +1009,7 @@ public final ListPolicyTagsPagedResponse listPolicyTags(String parent) { * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * ListPolicyTagsRequest request = * ListPolicyTagsRequest.newBuilder() - * .setParent( - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - * .toString()) + * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -1046,9 +1036,7 @@ public final ListPolicyTagsPagedResponse listPolicyTags(ListPolicyTagsRequest re * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * ListPolicyTagsRequest request = * ListPolicyTagsRequest.newBuilder() - * .setParent( - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - * .toString()) + * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -1076,9 +1064,7 @@ public final ListPolicyTagsPagedResponse listPolicyTags(ListPolicyTagsRequest re * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * ListPolicyTagsRequest request = * ListPolicyTagsRequest.newBuilder() - * .setParent( - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - * .toString()) + * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java index 6274436f..3a5dfd9a 100644 --- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java +++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java @@ -239,7 +239,7 @@ public final UnaryCallablereplaceTaxonomyCall * PolicyTagManagerSerializationClient.create()) { * ImportTaxonomiesRequest request = * ImportTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); * ImportTaxonomiesResponse response = * policyTagManagerSerializationClient.importTaxonomies(request); @@ -271,7 +271,7 @@ public final ImportTaxonomiesResponse importTaxonomies(ImportTaxonomiesRequest r * PolicyTagManagerSerializationClient.create()) { * ImportTaxonomiesRequest request = * ImportTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); * ApiFuture future = * policyTagManagerSerializationClient.importTaxonomiesCallable().futureCall(request); @@ -300,7 +300,7 @@ public final ImportTaxonomiesResponse importTaxonomies(ImportTaxonomiesRequest r * PolicyTagManagerSerializationClient.create()) { * ExportTaxonomiesRequest request = * ExportTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .addAllTaxonomies(new ArrayList ()) * .build(); * ExportTaxonomiesResponse response = @@ -330,7 +330,7 @@ public final ExportTaxonomiesResponse exportTaxonomies(ExportTaxonomiesRequest r * PolicyTagManagerSerializationClient.create()) { * ExportTaxonomiesRequest request = * ExportTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .addAllTaxonomies(new ArrayList ()) * .build(); * ApiFuture future = diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java index a7b928d2..049269cd 100644 --- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java +++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java @@ -393,7 +393,7 @@ public final EntryGroup createEntryGroup( * * {@code * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - * String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String entryGroupId = "entryGroupId1228924712"; * EntryGroup entryGroup = EntryGroup.newBuilder().build(); * EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup); @@ -437,7 +437,7 @@ public final EntryGroup createEntryGroup( * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { * CreateEntryGroupRequest request = * CreateEntryGroupRequest.newBuilder() - * .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setEntryGroupId("entryGroupId1228924712") * .setEntryGroup(EntryGroup.newBuilder().build()) * .build(); @@ -466,7 +466,7 @@ public final EntryGroup createEntryGroup(CreateEntryGroupRequest request) { * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { * CreateEntryGroupRequest request = * CreateEntryGroupRequest.newBuilder() - * .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setEntryGroupId("entryGroupId1228924712") * .setEntryGroup(EntryGroup.newBuilder().build()) * .build(); @@ -1693,7 +1693,7 @@ public final TagTemplate createTagTemplate( * *{@code * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - * String parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String tagTemplateId = "tagTemplateId-1438776721"; * TagTemplate tagTemplate = TagTemplate.newBuilder().build(); * TagTemplate response = @@ -1736,7 +1736,7 @@ public final TagTemplate createTagTemplate( * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { * CreateTagTemplateRequest request = * CreateTagTemplateRequest.newBuilder() - * .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setTagTemplateId("tagTemplateId-1438776721") * .setTagTemplate(TagTemplate.newBuilder().build()) * .build(); @@ -1764,7 +1764,7 @@ public final TagTemplate createTagTemplate(CreateTagTemplateRequest request) { * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { * CreateTagTemplateRequest request = * CreateTagTemplateRequest.newBuilder() - * .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setTagTemplateId("tagTemplateId-1438776721") * .setTagTemplate(TagTemplate.newBuilder().build()) * .build(); @@ -3009,8 +3009,7 @@ public final void deleteTag(EntryName name) { * *{@code * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - * String name = - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]").toString(); + * String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); * dataCatalogClient.deleteTag(name); * } * }@@ -3038,8 +3037,7 @@ public final void deleteTag(String name) { * DeleteTagRequest request = * DeleteTagRequest.newBuilder() * .setName( - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - * .toString()) + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) * .build(); * dataCatalogClient.deleteTag(request); * } @@ -3063,8 +3061,7 @@ public final void deleteTag(DeleteTagRequest request) { * DeleteTagRequest request = * DeleteTagRequest.newBuilder() * .setName( - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - * .toString()) + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) * .build(); * ApiFuturefuture = dataCatalogClient.deleteTagCallable().futureCall(request); * // Do something. @@ -3117,7 +3114,7 @@ public final ListTagsPagedResponse listTags(EntryName parent) { * {@code * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { * String parent = - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]").toString(); + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); * for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) { * // doThingsWith(element); * } @@ -3151,8 +3148,7 @@ public final ListTagsPagedResponse listTags(String parent) { * ListTagsRequest request = * ListTagsRequest.newBuilder() * .setParent( - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - * .toString()) + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -3180,8 +3176,7 @@ public final ListTagsPagedResponse listTags(ListTagsRequest request) { * ListTagsRequest request = * ListTagsRequest.newBuilder() * .setParent( - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - * .toString()) + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -3208,8 +3203,7 @@ public final UnaryCallablelistTagsPaged * ListTagsRequest request = * ListTagsRequest.newBuilder() * .setParent( - * TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - * .toString()) + * EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java index 4131823a..404ea595 100644 --- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java +++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java @@ -193,7 +193,7 @@ public final Taxonomy createTaxonomy(LocationName parent, Taxonomy taxonomy) { * * {@code * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - * String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Taxonomy taxonomy = Taxonomy.newBuilder().build(); * Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy); * } @@ -219,7 +219,7 @@ public final Taxonomy createTaxonomy(String parent, Taxonomy taxonomy) { * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * CreateTaxonomyRequest request = * CreateTaxonomyRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setTaxonomy(Taxonomy.newBuilder().build()) * .build(); * Taxonomy response = policyTagManagerClient.createTaxonomy(request); @@ -243,7 +243,7 @@ public final Taxonomy createTaxonomy(CreateTaxonomyRequest request) { * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * CreateTaxonomyRequest request = * CreateTaxonomyRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setTaxonomy(Taxonomy.newBuilder().build()) * .build(); * ApiFuturefuture = @@ -458,7 +458,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(LocationName parent) { * * {@code * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - * String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Taxonomy element : policyTagManagerClient.listTaxonomies(parent).iterateAll()) { * // doThingsWith(element); * } @@ -484,7 +484,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(String parent) { * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * ListTaxonomiesRequest request = * ListTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -512,7 +512,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(ListTaxonomiesRequest re * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * ListTaxonomiesRequest request = * ListTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -541,7 +541,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(ListTaxonomiesRequest re * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * ListTaxonomiesRequest request = * ListTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -689,8 +689,7 @@ public final PolicyTag createPolicyTag(TaxonomyName parent, PolicyTag policyTag) * *{@code * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - * String parent = - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString(); + * String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); * PolicyTag policyTag = PolicyTag.newBuilder().build(); * PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag); * } @@ -716,9 +715,7 @@ public final PolicyTag createPolicyTag(String parent, PolicyTag policyTag) { * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * CreatePolicyTagRequest request = * CreatePolicyTagRequest.newBuilder() - * .setParent( - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - * .toString()) + * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) * .setPolicyTag(PolicyTag.newBuilder().build()) * .build(); * PolicyTag response = policyTagManagerClient.createPolicyTag(request); @@ -742,9 +739,7 @@ public final PolicyTag createPolicyTag(CreatePolicyTagRequest request) { * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * CreatePolicyTagRequest request = * CreatePolicyTagRequest.newBuilder() - * .setParent( - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - * .toString()) + * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) * .setPolicyTag(PolicyTag.newBuilder().build()) * .build(); * ApiFuturefuture = @@ -960,8 +955,7 @@ public final ListPolicyTagsPagedResponse listPolicyTags(TaxonomyName parent) { * * {@code * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - * String parent = - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString(); + * String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); * for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) { * // doThingsWith(element); * } @@ -986,9 +980,7 @@ public final ListPolicyTagsPagedResponse listPolicyTags(String parent) { * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * ListPolicyTagsRequest request = * ListPolicyTagsRequest.newBuilder() - * .setParent( - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - * .toString()) + * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -1015,9 +1007,7 @@ public final ListPolicyTagsPagedResponse listPolicyTags(ListPolicyTagsRequest re * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * ListPolicyTagsRequest request = * ListPolicyTagsRequest.newBuilder() - * .setParent( - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - * .toString()) + * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -1045,9 +1035,7 @@ public final ListPolicyTagsPagedResponse listPolicyTags(ListPolicyTagsRequest re * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { * ListPolicyTagsRequest request = * ListPolicyTagsRequest.newBuilder() - * .setParent( - * PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - * .toString()) + * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java index 5cc4bbf2..0c2aa59c 100644 --- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java +++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java @@ -38,7 +38,7 @@ * PolicyTagManagerSerializationClient.create()) { * ImportTaxonomiesRequest request = * ImportTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); * ImportTaxonomiesResponse response = * policyTagManagerSerializationClient.importTaxonomies(request); @@ -165,7 +165,7 @@ public PolicyTagManagerSerializationStub getStub() { * PolicyTagManagerSerializationClient.create()) { * ImportTaxonomiesRequest request = * ImportTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); * ImportTaxonomiesResponse response = * policyTagManagerSerializationClient.importTaxonomies(request); @@ -192,7 +192,7 @@ public final ImportTaxonomiesResponse importTaxonomies(ImportTaxonomiesRequest r * PolicyTagManagerSerializationClient.create()) { * ImportTaxonomiesRequest request = * ImportTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); * ApiFuture@@ -2142,7 +2142,8 @@ public com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder getSc *future = * policyTagManagerSerializationClient.importTaxonomiesCallable().futureCall(request); @@ -220,7 +220,7 @@ public final ImportTaxonomiesResponse importTaxonomies(ImportTaxonomiesRequest r * PolicyTagManagerSerializationClient.create()) { * ExportTaxonomiesRequest request = * ExportTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .addAllTaxonomies(new ArrayList ()) * .build(); * ExportTaxonomiesResponse response = @@ -249,7 +249,7 @@ public final ExportTaxonomiesResponse exportTaxonomies(ExportTaxonomiesRequest r * PolicyTagManagerSerializationClient.create()) { * ExportTaxonomiesRequest request = * ExportTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .addAllTaxonomies(new ArrayList ()) * .build(); * ApiFuture future = diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java index 3ff2548a..c1d42e36 100644 --- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java +++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java @@ -60,7 +60,7 @@ * PolicyTagManagerSerializationClient.create()) { * ImportTaxonomiesRequest request = * ImportTaxonomiesRequest.newBuilder() - * .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); * ImportTaxonomiesResponse response = * policyTagManagerSerializationClient.importTaxonomies(request); diff --git a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java index e822b804..28d5735d 100644 --- a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java +++ b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java @@ -2433,7 +2433,7 @@ public void setIamPolicyTest() throws Exception { .build(); mockDataCatalog.addResponse(expectedResponse); - ResourceName resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); + ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); Policy policy = Policy.newBuilder().build(); Policy actualResponse = client.setIamPolicy(resource, policy); @@ -2457,7 +2457,7 @@ public void setIamPolicyExceptionTest() throws Exception { mockDataCatalog.addException(exception); try { - ResourceName resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); + ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); Policy policy = Policy.newBuilder().build(); client.setIamPolicy(resource, policy); Assert.fail("No exception raised"); @@ -2519,7 +2519,7 @@ public void getIamPolicyTest() throws Exception { .build(); mockDataCatalog.addResponse(expectedResponse); - ResourceName resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); + ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); Policy actualResponse = client.getIamPolicy(resource); Assert.assertEquals(expectedResponse, actualResponse); @@ -2541,7 +2541,7 @@ public void getIamPolicyExceptionTest() throws Exception { mockDataCatalog.addException(exception); try { - ResourceName resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); + ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -2597,7 +2597,8 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setResource( + EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) .addAllPermissions(new ArrayList ()) .build(); @@ -2624,7 +2625,8 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setResource( + EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) .addAllPermissions(new ArrayList ()) .build(); client.testIamPermissions(request); diff --git a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java index 9ef92347..02d9f82b 100644 --- a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java +++ b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java @@ -862,7 +862,8 @@ public void getIamPolicyTest() throws Exception { 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(); @@ -889,7 +890,8 @@ public void getIamPolicyExceptionTest() throws Exception { try { 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(); client.getIamPolicy(request); @@ -911,7 +913,8 @@ public void setIamPolicyTest() throws Exception { 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(); @@ -938,7 +941,8 @@ public void setIamPolicyExceptionTest() throws Exception { try { 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(); client.setIamPolicy(request); @@ -956,7 +960,8 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setResource( + EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) .addAllPermissions(new ArrayList ()) .build(); @@ -983,7 +988,8 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setResource( + EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) .addAllPermissions(new ArrayList ()) .build(); client.testIamPermissions(request); diff --git a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java index e3cad102..6535a1c5 100644 --- a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java +++ b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java @@ -137,7 +137,7 @@ public void importTaxonomiesTest() throws Exception { ImportTaxonomiesRequest request = ImportTaxonomiesRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); ImportTaxonomiesResponse actualResponse = client.importTaxonomies(request); @@ -164,7 +164,7 @@ public void importTaxonomiesExceptionTest() throws Exception { try { ImportTaxonomiesRequest request = ImportTaxonomiesRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); client.importTaxonomies(request); Assert.fail("No exception raised"); @@ -183,7 +183,7 @@ public void exportTaxonomiesTest() throws Exception { ExportTaxonomiesRequest request = ExportTaxonomiesRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .addAllTaxonomies(new ArrayList ()) .build(); @@ -211,7 +211,7 @@ public void exportTaxonomiesExceptionTest() throws Exception { try { ExportTaxonomiesRequest request = ExportTaxonomiesRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .addAllTaxonomies(new ArrayList ()) .build(); client.exportTaxonomies(request); diff --git a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java index 44c813ae..9f98c773 100644 --- a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java +++ b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java @@ -2278,7 +2278,7 @@ public void setIamPolicyTest() throws Exception { .build(); mockDataCatalog.addResponse(expectedResponse); - ResourceName resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); + ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); Policy policy = Policy.newBuilder().build(); Policy actualResponse = client.setIamPolicy(resource, policy); @@ -2302,7 +2302,7 @@ public void setIamPolicyExceptionTest() throws Exception { mockDataCatalog.addException(exception); try { - ResourceName resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); + ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); Policy policy = Policy.newBuilder().build(); client.setIamPolicy(resource, policy); Assert.fail("No exception raised"); @@ -2364,7 +2364,7 @@ public void getIamPolicyTest() throws Exception { .build(); mockDataCatalog.addResponse(expectedResponse); - ResourceName resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); + ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); Policy actualResponse = client.getIamPolicy(resource); Assert.assertEquals(expectedResponse, actualResponse); @@ -2386,7 +2386,7 @@ public void getIamPolicyExceptionTest() throws Exception { mockDataCatalog.addException(exception); try { - ResourceName resource = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); + ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -2442,7 +2442,8 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setResource( + EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) .addAllPermissions(new ArrayList ()) .build(); @@ -2469,7 +2470,8 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setResource( + EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) .addAllPermissions(new ArrayList ()) .build(); client.testIamPermissions(request); diff --git a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java index 6d3a6e72..ff757ad6 100644 --- a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java +++ b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java @@ -852,7 +852,8 @@ public void getIamPolicyTest() throws Exception { 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(); @@ -879,7 +880,8 @@ public void getIamPolicyExceptionTest() throws Exception { try { 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(); client.getIamPolicy(request); @@ -901,7 +903,8 @@ public void setIamPolicyTest() throws Exception { 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(); @@ -928,7 +931,8 @@ public void setIamPolicyExceptionTest() throws Exception { try { 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(); client.setIamPolicy(request); @@ -946,7 +950,8 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setResource( + EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) .addAllPermissions(new ArrayList ()) .build(); @@ -973,7 +978,8 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setResource( + EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) .addAllPermissions(new ArrayList ()) .build(); client.testIamPermissions(request); diff --git a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java index 94ab57c0..7994c7ab 100644 --- a/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java +++ b/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java @@ -85,7 +85,7 @@ public void importTaxonomiesTest() throws Exception { ImportTaxonomiesRequest request = ImportTaxonomiesRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); ImportTaxonomiesResponse actualResponse = client.importTaxonomies(request); @@ -111,7 +111,7 @@ public void importTaxonomiesExceptionTest() throws Exception { try { ImportTaxonomiesRequest request = ImportTaxonomiesRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); client.importTaxonomies(request); Assert.fail("No exception raised"); @@ -130,7 +130,7 @@ public void exportTaxonomiesTest() throws Exception { ExportTaxonomiesRequest request = ExportTaxonomiesRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .addAllTaxonomies(new ArrayList ()) .build(); @@ -158,7 +158,7 @@ public void exportTaxonomiesExceptionTest() throws Exception { try { ExportTaxonomiesRequest request = ExportTaxonomiesRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .addAllTaxonomies(new ArrayList ()) .build(); client.exportTaxonomies(request); diff --git a/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java b/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java index 0b175e19..233da4d5 100644 --- a/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java +++ b/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java @@ -28,6 +28,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/datacatalog/v1/datacatalog.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class DataCatalogGrpc { private DataCatalogGrpc() {} @@ -1553,6 +1554,9 @@ public void lookupEntry( * * * Lists entries. + * Note: Currently, this method can list only custom entries. + * To get a list of both custom and automatically created entries, use + * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. **/ public void listEntries( @@ -1728,9 +1732,9 @@ public void deleteTagTemplateField( ** Creates a tag and assigns it to: * * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * ``projects.locations.entryGroups.entries.tags.create``. + * `projects.locations.entryGroups.entries.tags.create`. * * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method - * name is ``projects.locations.entryGroups.tags.create``. + * name is `projects.locations.entryGroups.tags.create`. * Note: The project identified by the `parent` parameter for the [tag] * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) * and the [tag template] @@ -2304,6 +2308,9 @@ public void lookupEntry( * *@@ -2001,7 +2001,7 @@ public Builder setIncludePublicTagTemplates(boolean value) { * in the search results. By default, they are included only if you have * explicit permissions on them to view them. For example, if you are the * owner. - * Other scope fields, for example, ``include_org_ids``, + * Other scope fields, for example, `include_org_ids`, * still restrict the returned public tag templates and at least one of * them is required. ** Lists entries. + * Note: Currently, this method can list only custom entries. + * To get a list of both custom and automatically created entries, use + * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. **/ public void listEntries( @@ -2499,9 +2506,9 @@ public void deleteTagTemplateField( ** Creates a tag and assigns it to: * * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * ``projects.locations.entryGroups.entries.tags.create``. + * `projects.locations.entryGroups.entries.tags.create`. * * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method - * name is ``projects.locations.entryGroups.tags.create``. + * name is `projects.locations.entryGroups.tags.create`. * Note: The project identified by the `parent` parameter for the [tag] * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) * and the [tag template] @@ -2866,6 +2873,9 @@ public com.google.cloud.datacatalog.v1.Entry lookupEntry( * *@@ -1975,7 +1975,7 @@ public boolean getIncludePublicTagTemplates() { * in the search results. By default, they are included only if you have * explicit permissions on them to view them. For example, if you are the * owner. - * Other scope fields, for example, ``include_org_ids``, + * Other scope fields, for example, `include_org_ids`, * still restrict the returned public tag templates and at least one of * them is required. ** Lists entries. + * Note: Currently, this method can list only custom entries. + * To get a list of both custom and automatically created entries, use + * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. **/ public com.google.cloud.datacatalog.v1.ListEntriesResponse listEntries( @@ -3026,9 +3036,9 @@ public com.google.protobuf.Empty deleteTagTemplateField( ** Creates a tag and assigns it to: * * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * ``projects.locations.entryGroups.entries.tags.create``. + * `projects.locations.entryGroups.entries.tags.create`. * * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method - * name is ``projects.locations.entryGroups.tags.create``. + * name is `projects.locations.entryGroups.tags.create`. * Note: The project identified by the `parent` parameter for the [tag] * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) * and the [tag template] @@ -3381,6 +3391,9 @@ protected DataCatalogFutureStub build( * *@@ -1952,7 +1952,7 @@ public Builder addRestrictedLocationsBytes(com.google.protobuf.ByteString value) * in the search results. By default, they are included only if you have * explicit permissions on them to view them. For example, if you are the * owner. - * Other scope fields, for example, ``include_org_ids``, + * Other scope fields, for example, `include_org_ids`, * still restrict the returned public tag templates and at least one of * them is required. ** Lists entries. + * Note: Currently, this method can list only custom entries. + * To get a list of both custom and automatically created entries, use + * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. **/ public com.google.common.util.concurrent.ListenableFuture< @@ -3555,9 +3568,9 @@ protected DataCatalogFutureStub build( ** Creates a tag and assigns it to: * * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * ``projects.locations.entryGroups.entries.tags.create``. + * `projects.locations.entryGroups.entries.tags.create`. * * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method - * name is ``projects.locations.entryGroups.tags.create``. + * name is `projects.locations.entryGroups.tags.create`. * Note: The project identified by the `parent` parameter for the [tag] * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) * and the [tag template] diff --git a/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java b/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java index 84f84e9c..ca0bd99f 100644 --- a/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java +++ b/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java @@ -31,6 +31,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/datacatalog/v1/policytagmanager.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class PolicyTagManagerGrpc { private PolicyTagManagerGrpc() {} diff --git a/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java b/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java index 736db04a..34a64b7a 100644 --- a/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java +++ b/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java @@ -29,6 +29,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class PolicyTagManagerSerializationGrpc { private PolicyTagManagerSerializationGrpc() {} diff --git a/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java b/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java index 04c2e3bc..c52edd60 100644 --- a/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java +++ b/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java @@ -28,6 +28,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/datacatalog/v1beta1/datacatalog.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class DataCatalogGrpc { private DataCatalogGrpc() {} diff --git a/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java b/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java index cfc4d133..2eb2f526 100644 --- a/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java +++ b/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java @@ -28,6 +28,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/datacatalog/v1beta1/policytagmanager.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class PolicyTagManagerGrpc { private PolicyTagManagerGrpc() {} diff --git a/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java b/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java index 52db710d..d6d1ba0d 100644 --- a/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java +++ b/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java @@ -28,6 +28,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class PolicyTagManagerSerializationGrpc { private PolicyTagManagerSerializationGrpc() {} diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java index 4bca0e50..92539271 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java @@ -43,6 +43,7 @@ private BigQueryDateShardedSpec(com.google.protobuf.GeneratedMessageV3.Builder private BigQueryDateShardedSpec() { dataset_ = ""; tablePrefix_ = ""; + latestShardResource_ = ""; } @java.lang.Override @@ -93,6 +94,13 @@ private BigQueryDateShardedSpec( shardCount_ = input.readInt64(); break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + latestShardResource_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -257,6 +265,55 @@ public long getShardCount() { return shardCount_; } + public static final int LATEST_SHARD_RESOURCE_FIELD_NUMBER = 4; + private volatile java.lang.Object latestShardResource_; + /** + * + * + *@@ -802,7 +802,7 @@ public com.google.protobuf.ByteString getRestrictedLocationsBytes(int index) { * in the search results. By default, they are included only if you have * explicit permissions on them to view them. For example, if you are the * owner. - * Other scope fields, for example, ``include_org_ids``, + * Other scope fields, for example, `include_org_ids`, * still restrict the returned public tag templates and at least one of * them is required. *+ * Output only. BigQuery resource name of the latest shard. + *+ * + *string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The latestShardResource. + */ + @java.lang.Override + public java.lang.String getLatestShardResource() { + java.lang.Object ref = latestShardResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestShardResource_ = s; + return s; + } + } + /** + * + * + *+ * Output only. BigQuery resource name of the latest shard. + *+ * + *string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The bytes for latestShardResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatestShardResourceBytes() { + java.lang.Object ref = latestShardResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestShardResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -280,6 +337,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (shardCount_ != 0L) { output.writeInt64(3, shardCount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestShardResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, latestShardResource_); + } unknownFields.writeTo(output); } @@ -298,6 +358,9 @@ public int getSerializedSize() { if (shardCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, shardCount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestShardResource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, latestShardResource_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -317,6 +380,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDataset().equals(other.getDataset())) return false; if (!getTablePrefix().equals(other.getTablePrefix())) return false; if (getShardCount() != other.getShardCount()) return false; + if (!getLatestShardResource().equals(other.getLatestShardResource())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,6 +398,8 @@ public int hashCode() { hash = (53 * hash) + getTablePrefix().hashCode(); hash = (37 * hash) + SHARD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getShardCount()); + hash = (37 * hash) + LATEST_SHARD_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getLatestShardResource().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -489,6 +555,8 @@ public Builder clear() { shardCount_ = 0L; + latestShardResource_ = ""; + return this; } @@ -519,6 +587,7 @@ public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec buildPartial() { result.dataset_ = dataset_; result.tablePrefix_ = tablePrefix_; result.shardCount_ = shardCount_; + result.latestShardResource_ = latestShardResource_; onBuilt(); return result; } @@ -580,6 +649,10 @@ public Builder mergeFrom(com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec if (other.getShardCount() != 0L) { setShardCount(other.getShardCount()); } + if (!other.getLatestShardResource().isEmpty()) { + latestShardResource_ = other.latestShardResource_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -909,6 +982,112 @@ public Builder clearShardCount() { return this; } + private java.lang.Object latestShardResource_ = ""; + /** + * + * + *+ * Output only. BigQuery resource name of the latest shard. + *+ * + *string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The latestShardResource. + */ + public java.lang.String getLatestShardResource() { + java.lang.Object ref = latestShardResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestShardResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Output only. BigQuery resource name of the latest shard. + *+ * + *string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The bytes for latestShardResource. + */ + public com.google.protobuf.ByteString getLatestShardResourceBytes() { + java.lang.Object ref = latestShardResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestShardResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Output only. BigQuery resource name of the latest shard. + *+ * + *string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @param value The latestShardResource to set. + * @return This builder for chaining. + */ + public Builder setLatestShardResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + latestShardResource_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. BigQuery resource name of the latest shard. + *+ * + *string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return This builder for chaining. + */ + public Builder clearLatestShardResource() { + + latestShardResource_ = getDefaultInstance().getLatestShardResource(); + onChanged(); + return this; + } + /** + * + * + *+ * Output only. BigQuery resource name of the latest shard. + *+ * + *string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @param value The bytes for latestShardResource to set. + * @return This builder for chaining. + */ + public Builder setLatestShardResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + latestShardResource_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java index 99a2ec53..301c6bc5 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java @@ -99,4 +99,29 @@ public interface BigQueryDateShardedSpecOrBuilder * @return The shardCount. */ long getShardCount(); + + /** + * + * + *+ * Output only. BigQuery resource name of the latest shard. + *+ * + *string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The latestShardResource. + */ + java.lang.String getLatestShardResource(); + /** + * + * + *+ * Output only. BigQuery resource name of the latest shard. + *+ * + *string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The bytes for latestShardResource. + */ + com.google.protobuf.ByteString getLatestShardResourceBytes(); } diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java index 51ae9e3e..b695bbf3 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java @@ -36,19 +36,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n(google/cloud/datacatalog/v1/common.pro" - + "to\022\033google.cloud.datacatalog.v1*m\n\020Integ" - + "ratedSystem\022!\n\035INTEGRATED_SYSTEM_UNSPECI" - + "FIED\020\000\022\014\n\010BIGQUERY\020\001\022\020\n\014CLOUD_PUBSUB\020\002\022\026" - + "\n\022DATAPROC_METASTORE\020\003B\313\001\n\037com.google.cl" - + "oud.datacatalog.v1P\001ZFgoogle.golang.org/" - + "genproto/googleapis/cloud/datacatalog/v1" - + ";datacatalog\370\001\001\252\002\033Google.Cloud.DataCatal" - + "og.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Go" - + "ogle::Cloud::DataCatalog::V1b\006proto3" + + "to\022\033google.cloud.datacatalog.v1\032\037google/" + + "protobuf/timestamp.proto*m\n\020IntegratedSy" + + "stem\022!\n\035INTEGRATED_SYSTEM_UNSPECIFIED\020\000\022" + + "\014\n\010BIGQUERY\020\001\022\020\n\014CLOUD_PUBSUB\020\002\022\026\n\022DATAP" + + "ROC_METASTORE\020\003B\313\001\n\037com.google.cloud.dat" + + "acatalog.v1P\001ZFgoogle.golang.org/genprot" + + "o/googleapis/cloud/datacatalog/v1;dataca" + + "talog\370\001\001\252\002\033Google.Cloud.DataCatalog.V1\312\002" + + "\033Google\\Cloud\\DataCatalog\\V1\352\002\036Google::C" + + "loud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java index 9b61940d..50fdccaa 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java @@ -134,8 +134,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *- * Required. Resource name of the taxonomy that the policy tag will belong to.<br /><br - * /> + * Required. Resource name of the taxonomy that the policy tag will belong to. ** *@@ -160,8 +159,7 @@ public java.lang.String getParent() { * * *
- * Required. Resource name of the taxonomy that the policy tag will belong to.<br /><br - * /> + * Required. Resource name of the taxonomy that the policy tag will belong to. ** *@@ -584,8 +582,7 @@ public Builder mergeFrom( * * *
- * Required. Resource name of the taxonomy that the policy tag will belong to.<br /><br - * /> + * Required. Resource name of the taxonomy that the policy tag will belong to. ** *@@ -609,8 +606,7 @@ public java.lang.String getParent() { * * *
- * Required. Resource name of the taxonomy that the policy tag will belong to.<br /><br - * /> + * Required. Resource name of the taxonomy that the policy tag will belong to. ** *@@ -634,8 +630,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
- * Required. Resource name of the taxonomy that the policy tag will belong to.<br /><br - * /> + * Required. Resource name of the taxonomy that the policy tag will belong to. ** *@@ -658,8 +653,7 @@ public Builder setParent(java.lang.String value) { * * *
- * Required. Resource name of the taxonomy that the policy tag will belong to.<br /><br - * /> + * Required. Resource name of the taxonomy that the policy tag will belong to. ** *@@ -678,8 +672,7 @@ public Builder clearParent() { * * *
- * Required. Resource name of the taxonomy that the policy tag will belong to.<br /><br - * /> + * Required. Resource name of the taxonomy that the policy tag will belong to. ** *diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java index f723dfb7..c459a713 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java @@ -27,8 +27,7 @@ public interface CreatePolicyTagRequestOrBuilder * * *
- * Required. Resource name of the taxonomy that the policy tag will belong to.<br /><br - * /> + * Required. Resource name of the taxonomy that the policy tag will belong to. ** *@@ -42,8 +41,7 @@ public interface CreatePolicyTagRequestOrBuilder * * *
- * Required. Resource name of the taxonomy that the policy tag will belong to.<br /><br - * /> + * Required. Resource name of the taxonomy that the policy tag will belong to. ** *diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java index 01fd8cf5..05ec163b 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java @@ -165,8 +165,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
* Output only. Resource name of this policy tag in the URL format. - * The policy tag manager generates unique taxonomy IDs and policy tag IDs.<br - * /><br /> + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -190,8 +189,7 @@ public java.lang.String getName() { * ** Output only. Resource name of this policy tag in the URL format. - * The policy tag manager generates unique taxonomy IDs and policy tag IDs.<br - * /><br /> + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -857,8 +855,7 @@ public Builder mergeFrom( * ** Output only. Resource name of this policy tag in the URL format. - * The policy tag manager generates unique taxonomy IDs and policy tag IDs.<br - * /><br /> + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -881,8 +878,7 @@ public java.lang.String getName() { * ** Output only. Resource name of this policy tag in the URL format. - * The policy tag manager generates unique taxonomy IDs and policy tag IDs.<br - * /><br /> + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -905,8 +901,7 @@ public com.google.protobuf.ByteString getNameBytes() { * ** Output only. Resource name of this policy tag in the URL format. - * The policy tag manager generates unique taxonomy IDs and policy tag IDs.<br - * /><br /> + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -928,8 +923,7 @@ public Builder setName(java.lang.String value) { * ** Output only. Resource name of this policy tag in the URL format. - * The policy tag manager generates unique taxonomy IDs and policy tag IDs.<br - * /><br /> + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -947,8 +941,7 @@ public Builder clearName() { * ** Output only. Resource name of this policy tag in the URL format. - * The policy tag manager generates unique taxonomy IDs and policy tag IDs.<br - * /><br /> + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java index eac59b10..8a6ab903 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java @@ -28,8 +28,7 @@ public interface PolicyTagOrBuilder * ** Output only. Resource name of this policy tag in the URL format. - * The policy tag manager generates unique taxonomy IDs and policy tag IDs.<br - * /><br /> + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -42,8 +41,7 @@ public interface PolicyTagOrBuilder * ** Output only. Resource name of this policy tag in the URL format. - * The policy tag manager generates unique taxonomy IDs and policy tag IDs.<br - * /><br /> + * The policy tag manager generates unique taxonomy IDs and policy tag IDs. ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java index b1c71c1f..ad97bf32 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java @@ -126,7 +126,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *- * Required. The name of the tag template. + * Required. The name of the tag template field. ** *@@ -151,7 +151,7 @@ public java.lang.String getName() { * * *
- * Required. The name of the tag template. + * Required. The name of the tag template field. ** *@@ -566,7 +566,7 @@ public Builder mergeFrom( * * *
- * Required. The name of the tag template. + * Required. The name of the tag template field. ** *@@ -590,7 +590,7 @@ public java.lang.String getName() { * * *
- * Required. The name of the tag template. + * Required. The name of the tag template field. ** *@@ -614,7 +614,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
- * Required. The name of the tag template. + * Required. The name of the tag template field. ** *@@ -637,7 +637,7 @@ public Builder setName(java.lang.String value) { * * *
- * Required. The name of the tag template. + * Required. The name of the tag template field. ** *@@ -656,7 +656,7 @@ public Builder clearName() { * * *
- * Required. The name of the tag template. + * Required. The name of the tag template field. ** *diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java index aeb042c3..488f6af0 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface RenameTagTemplateFieldRequestOrBuilder * * *
- * Required. The name of the tag template. + * Required. The name of the tag template field. ** *@@ -41,7 +41,7 @@ public interface RenameTagTemplateFieldRequestOrBuilder * * *
- * Required. The name of the tag template. + * Required. The name of the tag template field. ** *diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java index 2f79f238..968a281a 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java @@ -44,7 +44,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\022\033google.cloud.datacatalog.v1\032\037google/" + "api/field_behavior.proto\032(google/cloud/d" + "atacatalog/v1/common.proto\032\037google/proto" - + "buf/timestamp.proto\"\203\003\n\023SearchCatalogRes" + + "buf/timestamp.proto\"\256\003\n\023SearchCatalogRes" + "ult\022I\n\022search_result_type\030\001 \001(\0162-.google" + ".cloud.datacatalog.v1.SearchResultType\022\035" + "\n\025search_result_subtype\030\002 \001(\t\022\036\n\026relativ" @@ -53,16 +53,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tobuf.Timestamp\022O\n\021integrated_system\030\010 \001" + "(\0162-.google.cloud.datacatalog.v1.Integra" + "tedSystemB\003\340A\003H\000\022\037\n\025user_specified_syste" - + "m\030\t \001(\tH\000\022\034\n\024fully_qualified_name\030\n \001(\tB" - + "\010\n\006system*d\n\020SearchResultType\022\"\n\036SEARCH_" - + "RESULT_TYPE_UNSPECIFIED\020\000\022\t\n\005ENTRY\020\001\022\020\n\014" - + "TAG_TEMPLATE\020\002\022\017\n\013ENTRY_GROUP\020\003B\313\001\n\037com." - + "google.cloud.datacatalog.v1P\001ZFgoogle.go" - + "lang.org/genproto/googleapis/cloud/datac" - + "atalog/v1;datacatalog\370\001\001\252\002\033Google.Cloud." - + "DataCatalog.V1\312\002\033Google\\Cloud\\DataCatalo" - + "g\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006p" - + "roto3" + + "m\030\t \001(\tH\000\022\034\n\024fully_qualified_name\030\n \001(\t\022" + + "\024\n\014display_name\030\014 \001(\t\022\023\n\013description\030\r \001" + + "(\tB\010\n\006system*d\n\020SearchResultType\022\"\n\036SEAR" + + "CH_RESULT_TYPE_UNSPECIFIED\020\000\022\t\n\005ENTRY\020\001\022" + + "\020\n\014TAG_TEMPLATE\020\002\022\017\n\013ENTRY_GROUP\020\003B\313\001\n\037c" + + "om.google.cloud.datacatalog.v1P\001ZFgoogle" + + ".golang.org/genproto/googleapis/cloud/da" + + "tacatalog/v1;datacatalog\370\001\001\252\002\033Google.Clo" + + "ud.DataCatalog.V1\312\002\033Google\\Cloud\\DataCat" + + "alog\\V1\352\002\036Google::Cloud::DataCatalog::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -86,6 +87,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IntegratedSystem", "UserSpecifiedSystem", "FullyQualifiedName", + "DisplayName", + "Description", "System", }); com.google.protobuf.ExtensionRegistry registry = diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java index 6c87e02a..e170f5e3 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java @@ -385,7 +385,7 @@ public interface ScopeOrBuilder * in the search results. By default, they are included only if you have * explicit permissions on them to view them. For example, if you are the * owner. - * Other scope fields, for example, ``include_org_ids``, + * Other scope fields, for example, `include_org_ids`, * still restrict the returned public tag templates and at least one of * them is required. *
* Optional. The query string with a minimum of 3 characters and specific syntax. * For more information, see - * [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). * An empty query string returns all data assets (in the specified scope) * that you have access to. * A query string can be a simple `xyz` or qualified by predicates: @@ -2173,7 +2174,8 @@ public java.lang.String getQuery() { ** Optional. The query string with a minimum of 3 characters and specific syntax. * For more information, see - * [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). * An empty query string returns all data assets (in the specified scope) * that you have access to. * A query string can be a simple `xyz` or qualified by predicates: @@ -2968,7 +2970,8 @@ public com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder getSc ** Optional. The query string with a minimum of 3 characters and specific syntax. * For more information, see - * [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). * An empty query string returns all data assets (in the specified scope) * that you have access to. * A query string can be a simple `xyz` or qualified by predicates: @@ -2998,7 +3001,8 @@ public java.lang.String getQuery() { ** Optional. The query string with a minimum of 3 characters and specific syntax. * For more information, see - * [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). * An empty query string returns all data assets (in the specified scope) * that you have access to. * A query string can be a simple `xyz` or qualified by predicates: @@ -3028,7 +3032,8 @@ public com.google.protobuf.ByteString getQueryBytes() { ** Optional. The query string with a minimum of 3 characters and specific syntax. * For more information, see - * [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). * An empty query string returns all data assets (in the specified scope) * that you have access to. * A query string can be a simple `xyz` or qualified by predicates: @@ -3057,7 +3062,8 @@ public Builder setQuery(java.lang.String value) { ** Optional. The query string with a minimum of 3 characters and specific syntax. * For more information, see - * [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). * An empty query string returns all data assets (in the specified scope) * that you have access to. * A query string can be a simple `xyz` or qualified by predicates: @@ -3082,7 +3088,8 @@ public Builder clearQuery() { ** Optional. The query string with a minimum of 3 characters and specific syntax. * For more information, see - * [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). * An empty query string returns all data assets (in the specified scope) * that you have access to. * A query string can be a simple `xyz` or qualified by predicates: diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java index 39689350..834594fa 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java @@ -79,7 +79,8 @@ public interface SearchCatalogRequestOrBuilder ** Optional. The query string with a minimum of 3 characters and specific syntax. * For more information, see - * [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). * An empty query string returns all data assets (in the specified scope) * that you have access to. * A query string can be a simple `xyz` or qualified by predicates: @@ -99,7 +100,8 @@ public interface SearchCatalogRequestOrBuilder ** Optional. The query string with a minimum of 3 characters and specific syntax. * For more information, see - * [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + * [Data Catalog search + * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). * An empty query string returns all data assets (in the specified scope) * that you have access to. * A query string can be a simple `xyz` or qualified by predicates: diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java index 2dc85d9c..586b2193 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java @@ -44,6 +44,8 @@ private SearchCatalogResult() { relativeResourceName_ = ""; linkedResource_ = ""; fullyQualifiedName_ = ""; + displayName_ = ""; + description_ = ""; } @java.lang.Override @@ -139,6 +141,20 @@ private SearchCatalogResult( fullyQualifiedName_ = s; break; } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -670,6 +686,106 @@ public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { } } + public static final int DISPLAY_NAME_FIELD_NUMBER = 12; + private volatile java.lang.Object displayName_; + /** + * + * + *+ * The display name of the result. + *+ * + *string display_name = 12;
+ * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *+ * The display name of the result. + *+ * + *string display_name = 12;
+ * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 13; + private volatile java.lang.Object description_; + /** + * + * + *+ * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + *+ * + *string description = 13;
+ * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *+ * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + *+ * + *string description = 13;
+ * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -710,6 +826,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, fullyQualifiedName_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, description_); + } unknownFields.writeTo(output); } @@ -746,6 +868,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, fullyQualifiedName_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, description_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -771,6 +899,8 @@ public boolean equals(final java.lang.Object obj) { if (!getModifyTime().equals(other.getModifyTime())) return false; } if (!getFullyQualifiedName().equals(other.getFullyQualifiedName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!getSystemCase().equals(other.getSystemCase())) return false; switch (systemCase_) { case 8: @@ -807,6 +937,10 @@ public int hashCode() { } hash = (37 * hash) + FULLY_QUALIFIED_NAME_FIELD_NUMBER; hash = (53 * hash) + getFullyQualifiedName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); switch (systemCase_) { case 8: hash = (37 * hash) + INTEGRATED_SYSTEM_FIELD_NUMBER; @@ -981,6 +1115,10 @@ public Builder clear() { } fullyQualifiedName_ = ""; + displayName_ = ""; + + description_ = ""; + systemCase_ = 0; system_ = null; return this; @@ -1026,6 +1164,8 @@ public com.google.cloud.datacatalog.v1.SearchCatalogResult buildPartial() { result.system_ = system_; } result.fullyQualifiedName_ = fullyQualifiedName_; + result.displayName_ = displayName_; + result.description_ = description_; result.systemCase_ = systemCase_; onBuilt(); return result; @@ -1099,6 +1239,14 @@ public Builder mergeFrom(com.google.cloud.datacatalog.v1.SearchCatalogResult oth fullyQualifiedName_ = other.fullyQualifiedName_; onChanged(); } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } switch (other.getSystemCase()) { case INTEGRATED_SYSTEM: { @@ -2223,6 +2371,223 @@ public Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) return this; } + private java.lang.Object displayName_ = ""; + /** + * + * + *+ * The display name of the result. + *+ * + *string display_name = 12;
+ * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The display name of the result. + *+ * + *string display_name = 12;
+ * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The display name of the result. + *+ * + *string display_name = 12;
+ * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * The display name of the result. + *+ * + *string display_name = 12;
+ * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *+ * The display name of the result. + *+ * + *string display_name = 12;
+ * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *+ * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + *+ * + *string description = 13;
+ * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + *+ * + *string description = 13;
+ * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + *+ * + *string description = 13;
+ * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + *+ * + *string description = 13;
+ * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *+ * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + *+ * + *string description = 13;
+ * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java index 61dd9150..9d3ecc1b 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java @@ -304,5 +304,57 @@ public interface SearchCatalogResultOrBuilder */ com.google.protobuf.ByteString getFullyQualifiedNameBytes(); + /** + * + * + *+ * The display name of the result. + *+ * + *string display_name = 12;
+ * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *+ * The display name of the result. + *+ * + *string display_name = 12;
+ * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *+ * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + *+ * + *string description = 13;
+ * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *+ * Entry description that can consist of several sentences or paragraphs that + * describe entry contents. + *+ * + *string description = 13;
+ * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + public com.google.cloud.datacatalog.v1.SearchCatalogResult.SystemCase getSystemCase(); } diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java index dac4f012..bd0ca5b3 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java @@ -64,19 +64,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\ttype_spec\"#\n\010ViewSpec\022\027\n\nview_query\030\001 \001" + "(\tB\003\340A\003\"L\n\tTableSpec\022?\n\rgrouped_entry\030\001 " + "\001(\tB(\340A\003\372A\"\n datacatalog.googleapis.com/" - + "Entry\"\211\001\n\027BigQueryDateShardedSpec\0229\n\007dat" + + "Entry\"\255\001\n\027BigQueryDateShardedSpec\0229\n\007dat" + "aset\030\001 \001(\tB(\340A\003\372A\"\n datacatalog.googleap" + "is.com/Entry\022\031\n\014table_prefix\030\002 \001(\tB\003\340A\003\022" - + "\030\n\013shard_count\030\003 \001(\003B\003\340A\003*{\n\017TableSource" - + "Type\022!\n\035TABLE_SOURCE_TYPE_UNSPECIFIED\020\000\022" - + "\021\n\rBIGQUERY_VIEW\020\002\022\022\n\016BIGQUERY_TABLE\020\005\022\036" - + "\n\032BIGQUERY_MATERIALIZED_VIEW\020\007B\313\001\n\037com.g" - + "oogle.cloud.datacatalog.v1P\001ZFgoogle.gol" - + "ang.org/genproto/googleapis/cloud/dataca" - + "talog/v1;datacatalog\370\001\001\252\002\033Google.Cloud.D" - + "ataCatalog.V1\312\002\033Google\\Cloud\\DataCatalog" - + "\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006pr" - + "oto3" + + "\030\n\013shard_count\030\003 \001(\003B\003\340A\003\022\"\n\025latest_shar" + + "d_resource\030\004 \001(\tB\003\340A\003*{\n\017TableSourceType" + + "\022!\n\035TABLE_SOURCE_TYPE_UNSPECIFIED\020\000\022\021\n\rB" + + "IGQUERY_VIEW\020\002\022\022\n\016BIGQUERY_TABLE\020\005\022\036\n\032BI" + + "GQUERY_MATERIALIZED_VIEW\020\007B\313\001\n\037com.googl" + + "e.cloud.datacatalog.v1P\001ZFgoogle.golang." + + "org/genproto/googleapis/cloud/datacatalo" + + "g/v1;datacatalog\370\001\001\252\002\033Google.Cloud.DataC" + + "atalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352" + + "\002\036Google::Cloud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -115,7 +115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor, new java.lang.String[] { - "Dataset", "TablePrefix", "ShardCount", + "Dataset", "TablePrefix", "ShardCount", "LatestShardResource", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java index c209b6a2..c34d2870 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java @@ -195,10 +195,14 @@ public com.google.cloud.datacatalog.v1.TagTemplateOrBuilder getTagTemplateOrBuil * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -214,10 +218,14 @@ public boolean hasUpdateMask() { * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -233,10 +241,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -821,10 +833,14 @@ public com.google.cloud.datacatalog.v1.TagTemplateOrBuilder getTagTemplateOrBuil * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -839,10 +855,14 @@ public boolean hasUpdateMask() { * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -863,10 +883,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -889,10 +913,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -912,10 +940,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -940,10 +972,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -964,10 +1000,14 @@ public Builder clearUpdateMask() { * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -982,10 +1022,14 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -1004,10 +1048,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
diff --git a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java index d0a8820e..e2ab5589 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java +++ b/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java @@ -69,10 +69,14 @@ public interface UpdateTagTemplateRequestOrBuilder * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -85,10 +89,14 @@ public interface UpdateTagTemplateRequestOrBuilder * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
@@ -101,10 +109,14 @@ public interface UpdateTagTemplateRequestOrBuilder * ** Names of fields whose values to overwrite on a tag template. Currently, - * only `display_name` can be overwritten. + * only `display_name` and `is_publicly_readable` can be overwritten. * If this parameter is absent or empty, all modifiable fields * are overwritten. If such fields are non-required and omitted in the * request body, their values are emptied. + * Note: Updating the `is_publicly_readable` field may require up to 12 + * hours to take effect in search results. Additionally, it also requires + * the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + * permissions. ** *.google.protobuf.FieldMask update_mask = 2;
diff --git a/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto b/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto index 182b91dd..2856643d 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto +++ b/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto @@ -16,6 +16,8 @@ syntax = "proto3"; package google.cloud.datacatalog.v1; +import "google/protobuf/timestamp.proto"; + option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; diff --git a/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto b/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto index fc60b83f..2b2ebb2e 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto +++ b/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto @@ -226,6 +226,10 @@ service DataCatalog { } // Lists entries. + // + // Note: Currently, this method can list only custom entries. + // To get a list of both custom and automatically created entries, use + // [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. rpc ListEntries(ListEntriesRequest) returns (ListEntriesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/entryGroups/*}/entries" @@ -355,9 +359,9 @@ service DataCatalog { // Creates a tag and assigns it to: // // * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - // ``projects.locations.entryGroups.entries.tags.create``. + // `projects.locations.entryGroups.entries.tags.create`. // * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method - // name is ``projects.locations.entryGroups.tags.create``. + // name is `projects.locations.entryGroups.tags.create`. // // Note: The project identified by the `parent` parameter for the [tag] // (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) @@ -551,7 +555,7 @@ message SearchCatalogRequest { // explicit permissions on them to view them. For example, if you are the // owner. // - // Other scope fields, for example, ``include_org_ids``, + // Other scope fields, for example, `include_org_ids`, // still restrict the returned public tag templates and at least one of // them is required. bool include_public_tag_templates = 19 [(google.api.field_behavior) = OPTIONAL]; @@ -566,7 +570,8 @@ message SearchCatalogRequest { // Optional. The query string with a minimum of 3 characters and specific syntax. // For more information, see - // [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). + // [Data Catalog search + // syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). // // An empty query string returns all data assets (in the specified scope) // that you have access to. @@ -917,6 +922,7 @@ message Entry { // and read-only afterwards. Can be used for search and lookup of the entries. // // + // // FQNs take two forms: // // * For non-regionalized resources: @@ -1224,11 +1230,16 @@ message UpdateTagTemplateRequest { TagTemplate tag_template = 1 [(google.api.field_behavior) = REQUIRED]; // Names of fields whose values to overwrite on a tag template. Currently, - // only `display_name` can be overwritten. + // only `display_name` and `is_publicly_readable` can be overwritten. // // If this parameter is absent or empty, all modifiable fields // are overwritten. If such fields are non-required and omitted in the // request body, their values are emptied. + // + // Note: Updating the `is_publicly_readable` field may require up to 12 + // hours to take effect in search results. Additionally, it also requires + // the `tagTemplates.getIamPolicy` and `tagTemplates.setIamPolicy` + // permissions. google.protobuf.FieldMask update_mask = 2; } @@ -1359,7 +1370,7 @@ message UpdateTagTemplateFieldRequest { // Request message for // [RenameTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateField]. message RenameTagTemplateFieldRequest { - // Required. The name of the tag template. + // Required. The name of the tag template field. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto b/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto index ce423b95..7cabb874 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto +++ b/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto @@ -269,8 +269,7 @@ message PolicyTag { // Output only. Resource name of this policy tag in the URL format. // - // The policy tag manager generates unique taxonomy IDs and policy tag IDs.
+ // The policy tag manager generates unique taxonomy IDs and policy tag IDs. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. User-defined name of this policy tag. @@ -391,8 +390,7 @@ message GetTaxonomyRequest { // Request message for // [CreatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTag]. message CreatePolicyTagRequest { - // Required. Resource name of the taxonomy that the policy tag will belong to.
+ // Required. Resource name of the taxonomy that the policy tag will belong to. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto b/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto index d70bdd1d..2194c6f8 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto +++ b/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto @@ -94,6 +94,13 @@ message SearchCatalogResult { // // `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID` string fully_qualified_name = 10; + + // The display name of the result. + string display_name = 12; + + // Entry description that can consist of several sentences or paragraphs that + // describe entry contents. + string description = 13; } // The resource types that can be returned in search results. diff --git a/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/table_spec.proto b/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/table_spec.proto index 6c4fb9b2..c8da4042 100644 --- a/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/table_spec.proto +++ b/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/table_spec.proto @@ -108,4 +108,7 @@ message BigQueryDateShardedSpec { // Output only. Total number of shards. int64 shard_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. BigQuery resource name of the latest shard. + string latest_shard_resource = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; }