Skip to content

Commit

Permalink
fix(deps): [datacatalog] Update the Java code generator (gapic-genera…
Browse files Browse the repository at this point in the history
…tor-java) to 2.31.0 (#10190)

* docs: Change field behavior of the property "name" to IDENTIFIER

PiperOrigin-RevId: 596091522

Source-Link: googleapis/googleapis@4d7831d

Source-Link: googleapis/googleapis-gen@b6dfc3e
Copy-Tag: eyJwIjoiamF2YS1kYXRhY2F0YWxvZy8uT3dsQm90LnlhbWwiLCJoIjoiYjZkZmMzZWI2NWMxYTE3MWU5NzBlZmRlNWViNTM0YjhhMDcwOWVkZCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix: Change field behavior of the property "name" to IDENTIFIER

The solution follows guidelines from https://google.aip.dev/203#identifier and https://github.com/googleapis/googleapis/blob/master/google/api/field_behavior.proto#L91-L103.

PiperOrigin-RevId: 596643040

Source-Link: googleapis/googleapis@3c84a3c

Source-Link: googleapis/googleapis-gen@4c4a9f4
Copy-Tag: eyJwIjoiamF2YS1kYXRhY2F0YWxvZy8uT3dsQm90LnlhbWwiLCJoIjoiNGM0YTlmNDNmNGE0ZjdkODdjOTMxYzEyMWUwYmQwZmJkNjM5MjQ2OCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix(deps): Update the Java code generator (gapic-generator-java) to 2.31.0

PiperOrigin-RevId: 596645164

Source-Link: googleapis/googleapis@4a0e62e

Source-Link: googleapis/googleapis-gen@a10ed6a
Copy-Tag: eyJwIjoiamF2YS1kYXRhY2F0YWxvZy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jan 9, 2024
1 parent 0a11aac commit 4e23220
Show file tree
Hide file tree
Showing 25 changed files with 1,940 additions and 163 deletions.
2 changes: 1 addition & 1 deletion java-datacatalog/README.md
Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.36.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.38.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -66,19 +66,251 @@
* such as threads. In the example above, try-with-resources is used, which automatically calls
* close().
*
* <p>The surface of this class includes several types of Java methods for each of the API's
* methods:
*
* <ol>
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
* <table>
* <tr>
* <th>Method</th>
* <th>Description</th>
* <th>Method Variants</th>
* <tr>
* <td>CreateTaxonomy</td>
* <td><p> Creates a taxonomy in a specified project.
* <p> The taxonomy is initially empty, that is, it doesn't contain policy tags.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>createTaxonomy(CreateTaxonomyRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li>createTaxonomy(LocationName parent, Taxonomy taxonomy)
* <li>createTaxonomy(String parent, Taxonomy taxonomy)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>createTaxonomyCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>DeleteTaxonomy</td>
* <td><p> Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and the policy tags references from BigQuery columns.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>deleteTaxonomy(DeleteTaxonomyRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li>deleteTaxonomy(TaxonomyName name)
* <li>deleteTaxonomy(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>deleteTaxonomyCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>UpdateTaxonomy</td>
* <td><p> Updates a taxonomy, including its display name, description, and activated policy types.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>updateTaxonomy(UpdateTaxonomyRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li>updateTaxonomy(Taxonomy taxonomy)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>updateTaxonomyCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ListTaxonomies</td>
* <td><p> Lists all taxonomies in a project in a particular location that you have a permission to view.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>listTaxonomies(ListTaxonomiesRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li>listTaxonomies(LocationName parent)
* <li>listTaxonomies(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>listTaxonomiesPagedCallable()
* <li>listTaxonomiesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>GetTaxonomy</td>
* <td><p> Gets a taxonomy.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>getTaxonomy(GetTaxonomyRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li>getTaxonomy(TaxonomyName name)
* <li>getTaxonomy(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>getTaxonomyCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>CreatePolicyTag</td>
* <td><p> Creates a policy tag in a taxonomy.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>createPolicyTag(CreatePolicyTagRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li>createPolicyTag(TaxonomyName parent, PolicyTag policyTag)
* <li>createPolicyTag(String parent, PolicyTag policyTag)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>createPolicyTagCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>DeletePolicyTag</td>
* <td><p> Deletes a policy tag together with the following:
* <ul>
* <li> All of its descendant policy tags, if any
* <li> Policies associated with the policy tag and its descendants
* <li> References from BigQuery table schema of the policy tag and its descendants
* </ul></td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>deletePolicyTag(DeletePolicyTagRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li>deletePolicyTag(PolicyTagName name)
* <li>deletePolicyTag(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>deletePolicyTagCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>UpdatePolicyTag</td>
* <td><p> Updates a policy tag, including its display name, description, and parent policy tag.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>updatePolicyTag(UpdatePolicyTagRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li>updatePolicyTag(PolicyTag policyTag)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>updatePolicyTagCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ListPolicyTags</td>
* <td><p> Lists all policy tags in a taxonomy.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>listPolicyTags(ListPolicyTagsRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li>listPolicyTags(TaxonomyName parent)
* <li>listPolicyTags(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>listPolicyTagsPagedCallable()
* <li>listPolicyTagsCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>GetPolicyTag</td>
* <td><p> Gets a policy tag.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>getPolicyTag(GetPolicyTagRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li>getPolicyTag(PolicyTagName name)
* <li>getPolicyTag(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>getPolicyTagCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>GetIamPolicy</td>
* <td><p> Gets the IAM policy for a policy tag or a taxonomy.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>getIamPolicy(GetIamPolicyRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>getIamPolicyCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>SetIamPolicy</td>
* <td><p> Sets the IAM policy for a policy tag or a taxonomy.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>setIamPolicy(SetIamPolicyRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>setIamPolicyCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>TestIamPermissions</td>
* <td><p> Returns your permissions on a specified policy tag or taxonomy.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>testIamPermissions(TestIamPermissionsRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>testIamPermissionsCallable()
* </ul>
* </td>
* </tr>
* </tr>
* </table>
*
* <p>See the individual methods for example code.
*
Expand Down
Expand Up @@ -55,19 +55,61 @@
* resources such as threads. In the example above, try-with-resources is used, which automatically
* calls close().
*
* <p>The surface of this class includes several types of Java methods for each of the API's
* methods:
*
* <ol>
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
* <table>
* <tr>
* <th>Method</th>
* <th>Description</th>
* <th>Method Variants</th>
* <tr>
* <td>ReplaceTaxonomy</td>
* <td><p> Replaces (updates) a taxonomy and all its policy tags.
* <p> The taxonomy and its entire hierarchy of policy tags must be represented literally by `SerializedTaxonomy` and the nested `SerializedPolicyTag` messages.
* <p> This operation automatically does the following:
* <p> - Deletes the existing policy tags that are missing from the `SerializedPolicyTag`. - Creates policy tags that don't have resource names. They are considered new. - Updates policy tags with valid resources names accordingly.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>replaceTaxonomy(ReplaceTaxonomyRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>replaceTaxonomyCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ImportTaxonomies</td>
* <td><p> Creates new taxonomies (including their policy tags) in a given project by importing from inlined or cross-regional sources.
* <p> For a cross-regional source, new taxonomies are created by copying from a source in another region.
* <p> For an inlined source, taxonomies and policy tags are created in bulk using nested protocol buffer structures.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>importTaxonomies(ImportTaxonomiesRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>importTaxonomiesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ExportTaxonomies</td>
* <td><p> Exports taxonomies in the requested type and returns them, including their policy tags. The requested taxonomies must belong to the same project.
* <p> This method generates `SerializedTaxonomy` protocol buffers with nested policy tags that can be used as input for `ImportTaxonomies` calls.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>exportTaxonomies(ExportTaxonomiesRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li>exportTaxonomiesCallable()
* </ul>
* </td>
* </tr>
* </tr>
* </table>
*
* <p>See the individual methods for example code.
*
Expand Down
Expand Up @@ -638,6 +638,12 @@ public DataCatalogStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}

/** Returns the default service name. */
@Override
public String getServiceName() {
return "datacatalog";
}

/** Returns a builder for the default ExecutorProvider for this service. */
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return InstantiatingExecutorProvider.newBuilder();
Expand Down
Expand Up @@ -133,6 +133,12 @@ public PolicyTagManagerSerializationStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}

/** Returns the default service name. */
@Override
public String getServiceName() {
return "datacatalog";
}

/** Returns a builder for the default ExecutorProvider for this service. */
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return InstantiatingExecutorProvider.newBuilder();
Expand Down
Expand Up @@ -329,6 +329,12 @@ public PolicyTagManagerStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}

/** Returns the default service name. */
@Override
public String getServiceName() {
return "datacatalog";
}

/** Returns a builder for the default ExecutorProvider for this service. */
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return InstantiatingExecutorProvider.newBuilder();
Expand Down

0 comments on commit 4e23220

Please sign in to comment.