Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.32.0 #10253

Merged
merged 4 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion java-memcache/README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading
Loading