Skip to content

Commit

Permalink
fix(deps): [Many APIs] Update the Java code generator (gapic-generato…
Browse files Browse the repository at this point in the history
…r-java) to 2.32.0 (#10253)

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

PiperOrigin-RevId: 599914188

Source-Link: googleapis/googleapis@17e6661

Source-Link: googleapis/googleapis-gen@d86ba5b
Copy-Tag: eyJwIjoiamF2YS1tZW1jYWNoZS8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9
Copy-Tag: eyJwIjoiamF2YS1taWdyYXRpb25jZW50ZXIvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ==
Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLWRhc2hib2FyZHMvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ==
Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLW1ldHJpY3NzY29wZS8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9
Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLy5Pd2xCb3QueWFtbCIsImgiOiJkODZiYTViZTUzN2U0ODk0MzUxMDVjYTg1NTY2Y2M0MTAzMzAxYWJhIn0=
Copy-Tag: eyJwIjoiamF2YS1uZXRhcHAvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ==
Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNh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IjoiamF2YS1waGlzaGluZ3Byb3RlY3Rpb24vLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ==
Copy-Tag: eyJwIjoiamF2YS1wb2xpY3ktdHJvdWJsZXNob290ZXIvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ==
Copy-Tag: eyJwIjoiamF2YS1wb2xpY3lzaW11bGF0b3IvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ==
Copy-Tag: eyJwIjoiamF2YS1wcml2YXRlLWNhdGFsb2cvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ==
Copy-Tag: eyJwIjoiamF2YS1wcm9maWxlci8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9

* 🦉 Updates from OwlBot post-processor

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

* 🦉 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 22, 2024
1 parent 161f5b5 commit 34ee60b
Show file tree
Hide file tree
Showing 106 changed files with 3,319 additions and 2,572 deletions.
2 changes: 1 addition & 1 deletion java-memcache/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-memcache.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.32.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.33.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
Expand Up @@ -85,198 +85,199 @@
* as threads. In the example above, try-with-resources is used, which automatically calls close().
*
* <table>
* <caption>Methods</caption>
* <tr>
* <th>Method</th>
* <th>Description</th>
* <th>Method Variants</th>
* </tr>
* <tr>
* <td>ListInstances</td>
* <td><p> ListInstances</td>
* <td><p> Lists Instances in a given location.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>listInstances(ListInstancesRequest request)
* <li><p> listInstances(ListInstancesRequest 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>listInstances(LocationName parent)
* <li>listInstances(String parent)
* <li><p> listInstances(LocationName parent)
* <li><p> listInstances(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>listInstancesPagedCallable()
* <li>listInstancesCallable()
* <li><p> listInstancesPagedCallable()
* <li><p> listInstancesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>GetInstance</td>
* <td><p> GetInstance</td>
* <td><p> Gets details of a single Instance.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>getInstance(GetInstanceRequest request)
* <li><p> getInstance(GetInstanceRequest 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>getInstance(InstanceName name)
* <li>getInstance(String name)
* <li><p> getInstance(InstanceName name)
* <li><p> getInstance(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>getInstanceCallable()
* <li><p> getInstanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>CreateInstance</td>
* <td><p> CreateInstance</td>
* <td><p> Creates a new Instance in a given location.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>createInstanceAsync(CreateInstanceRequest request)
* <li><p> createInstanceAsync(CreateInstanceRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li>createInstanceAsync(LocationName parent, Instance instance, String instanceId)
* <li>createInstanceAsync(String parent, Instance instance, String instanceId)
* <li><p> createInstanceAsync(LocationName parent, Instance instance, String instanceId)
* <li><p> createInstanceAsync(String parent, Instance instance, String instanceId)
* </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>createInstanceOperationCallable()
* <li>createInstanceCallable()
* <li><p> createInstanceOperationCallable()
* <li><p> createInstanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>UpdateInstance</td>
* <td><p> UpdateInstance</td>
* <td><p> Updates an existing Instance in a given project and location.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>updateInstanceAsync(UpdateInstanceRequest request)
* <li><p> updateInstanceAsync(UpdateInstanceRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li>updateInstanceAsync(Instance instance, FieldMask updateMask)
* <li><p> updateInstanceAsync(Instance instance, FieldMask updateMask)
* </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>updateInstanceOperationCallable()
* <li>updateInstanceCallable()
* <li><p> updateInstanceOperationCallable()
* <li><p> updateInstanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>UpdateParameters</td>
* <td><p> UpdateParameters</td>
* <td><p> Updates the defined Memcached parameters for an existing instance. This method only stages the parameters, it must be followed by `ApplyParameters` to apply the parameters to nodes of the Memcached instance.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>updateParametersAsync(UpdateParametersRequest request)
* <li><p> updateParametersAsync(UpdateParametersRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li>updateParametersAsync(InstanceName name, FieldMask updateMask, MemcacheParameters parameters)
* <li>updateParametersAsync(String name, FieldMask updateMask, MemcacheParameters parameters)
* <li><p> updateParametersAsync(InstanceName name, FieldMask updateMask, MemcacheParameters parameters)
* <li><p> updateParametersAsync(String name, FieldMask updateMask, MemcacheParameters parameters)
* </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>updateParametersOperationCallable()
* <li>updateParametersCallable()
* <li><p> updateParametersOperationCallable()
* <li><p> updateParametersCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>DeleteInstance</td>
* <td><p> DeleteInstance</td>
* <td><p> Deletes a single Instance.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>deleteInstanceAsync(DeleteInstanceRequest request)
* <li><p> deleteInstanceAsync(DeleteInstanceRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li>deleteInstanceAsync(InstanceName name)
* <li>deleteInstanceAsync(String name)
* <li><p> deleteInstanceAsync(InstanceName name)
* <li><p> deleteInstanceAsync(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>deleteInstanceOperationCallable()
* <li>deleteInstanceCallable()
* <li><p> deleteInstanceOperationCallable()
* <li><p> deleteInstanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ApplyParameters</td>
* <td><p> ApplyParameters</td>
* <td><p> `ApplyParameters` restarts the set of specified nodes in order to update them to the current set of parameters for the Memcached Instance.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>applyParametersAsync(ApplyParametersRequest request)
* <li><p> applyParametersAsync(ApplyParametersRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li>applyParametersAsync(InstanceName name, List<String> nodeIds, boolean applyAll)
* <li>applyParametersAsync(String name, List<String> nodeIds, boolean applyAll)
* <li><p> applyParametersAsync(InstanceName name, List&lt;String&gt; nodeIds, boolean applyAll)
* <li><p> applyParametersAsync(String name, List&lt;String&gt; nodeIds, boolean applyAll)
* </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>applyParametersOperationCallable()
* <li>applyParametersCallable()
* <li><p> applyParametersOperationCallable()
* <li><p> applyParametersCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>RescheduleMaintenance</td>
* <td><p> RescheduleMaintenance</td>
* <td><p> Reschedules upcoming maintenance event.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>rescheduleMaintenanceAsync(RescheduleMaintenanceRequest request)
* <li><p> rescheduleMaintenanceAsync(RescheduleMaintenanceRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li>rescheduleMaintenanceAsync(InstanceName instance, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime)
* <li>rescheduleMaintenanceAsync(String instance, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime)
* <li><p> rescheduleMaintenanceAsync(InstanceName instance, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime)
* <li><p> rescheduleMaintenanceAsync(String instance, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime)
* </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>rescheduleMaintenanceOperationCallable()
* <li>rescheduleMaintenanceCallable()
* <li><p> rescheduleMaintenanceOperationCallable()
* <li><p> rescheduleMaintenanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ListLocations</td>
* <td><p> ListLocations</td>
* <td><p> Lists information about the supported locations for this service.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>listLocations(ListLocationsRequest request)
* <li><p> listLocations(ListLocationsRequest 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>listLocationsPagedCallable()
* <li>listLocationsCallable()
* <li><p> listLocationsPagedCallable()
* <li><p> listLocationsCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>GetLocation</td>
* <td><p> GetLocation</td>
* <td><p> Gets information about a location.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>getLocation(GetLocationRequest request)
* <li><p> getLocation(GetLocationRequest 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>getLocationCallable()
* <li><p> getLocationCallable()
* </ul>
* </td>
* </tr>
* </tr>
* </table>
*
* <p>See the individual methods for example code.
Expand Down
Expand Up @@ -356,6 +356,15 @@ public CloudMemcacheStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}

/** Returns the endpoint set by the user or the the service's default endpoint. */
@Override
public String getEndpoint() {
if (super.getEndpoint() != null) {
return super.getEndpoint();
}
return getDefaultEndpoint();
}

/** Returns the default service name. */
@Override
public String getServiceName() {
Expand Down Expand Up @@ -618,7 +627,6 @@ private static Builder createDefault() {
builder.setTransportChannelProvider(defaultTransportChannelProvider());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);

Expand All @@ -631,7 +639,6 @@ private static Builder createHttpJsonDefault() {
builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);

Expand Down Expand Up @@ -955,6 +962,15 @@ public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettin
return getLocationSettings;
}

/** Returns the endpoint set by the user or the the service's default endpoint. */
@Override
public String getEndpoint() {
if (super.getEndpoint() != null) {
return super.getEndpoint();
}
return getDefaultEndpoint();
}

@Override
public CloudMemcacheStubSettings build() throws IOException {
return new CloudMemcacheStubSettings(this);
Expand Down

0 comments on commit 34ee60b

Please sign in to comment.