Skip to content

Commit

Permalink
fix(deps): Update the Java code generator (gapic-generator-java) to 2…
Browse files Browse the repository at this point in the history
….32.0 (#1293)

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

PiperOrigin-RevId: 599914188

Source-Link: googleapis/googleapis@17e6661

Source-Link: https://github.com/googleapis/googleapis-gen/commit/d86ba5be537e489435105ca85566cc4103301aba
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9

* 🦉 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] authored Jan 22, 2024
1 parent 4aa4558 commit f4ee0cb
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,108 +116,109 @@
* as threads. In the example above, try-with-resources is used, which automatically calls close().
*
* <table>
* <caption>Methods</caption>
* <caption>Methods</caption>
* <tr>
* <th>Method</th>
* <th>Description</th>
* <th>Method Variants</th>
* </tr>
* <tr>
* <td>ExportEntities</td>
* <td><p> ExportEntities</td>
* <td><p> Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>exportEntitiesAsync(ExportEntitiesRequest request)
* <li><p> exportEntitiesAsync(ExportEntitiesRequest 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>exportEntitiesAsync(String projectId, Map&lt;String, String&gt; labels, EntityFilter entityFilter, String outputUrlPrefix)
* <li><p> exportEntitiesAsync(String projectId, Map&lt;String, String&gt; labels, EntityFilter entityFilter, String outputUrlPrefix)
* </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>exportEntitiesOperationCallable()
* <li>exportEntitiesCallable()
* <li><p> exportEntitiesOperationCallable()
* <li><p> exportEntitiesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ImportEntities</td>
* <td><p> ImportEntities</td>
* <td><p> Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>importEntitiesAsync(ImportEntitiesRequest request)
* <li><p> importEntitiesAsync(ImportEntitiesRequest 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>importEntitiesAsync(String projectId, Map&lt;String, String&gt; labels, String inputUrl, EntityFilter entityFilter)
* <li><p> importEntitiesAsync(String projectId, Map&lt;String, String&gt; labels, String inputUrl, EntityFilter entityFilter)
* </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>importEntitiesOperationCallable()
* <li>importEntitiesCallable()
* <li><p> importEntitiesOperationCallable()
* <li><p> importEntitiesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>CreateIndex</td>
* <td><p> CreateIndex</td>
* <td><p> Creates the specified index. A newly created index's initial state is `CREATING`. On completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status.
* <p> During index creation, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then re-creating the index with [create] [google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
* <p> Indexes with a single property cannot be created.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>createIndexAsync(CreateIndexRequest request)
* <li><p> createIndexAsync(CreateIndexRequest 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>createIndexOperationCallable()
* <li>createIndexCallable()
* <li><p> createIndexOperationCallable()
* <li><p> createIndexCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>DeleteIndex</td>
* <td><p> DeleteIndex</td>
* <td><p> Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. On successful execution of the request, the index will be in a `DELETING` [state][google.datastore.admin.v1.Index.State]. And on completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed.
* <p> During index deletion, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>deleteIndexAsync(DeleteIndexRequest request)
* <li><p> deleteIndexAsync(DeleteIndexRequest 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>deleteIndexOperationCallable()
* <li>deleteIndexCallable()
* <li><p> deleteIndexOperationCallable()
* <li><p> deleteIndexCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>GetIndex</td>
* <td><p> GetIndex</td>
* <td><p> Gets an index.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>getIndex(GetIndexRequest request)
* <li><p> getIndex(GetIndexRequest 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>getIndexCallable()
* <li><p> getIndexCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ListIndexes</td>
* <td><p> ListIndexes</td>
* <td><p> Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>listIndexes(ListIndexesRequest request)
* <li><p> listIndexes(ListIndexesRequest 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>listIndexesPagedCallable()
* <li>listIndexesCallable()
* <li><p> listIndexesPagedCallable()
* <li><p> listIndexesCallable()
* </ul>
* </td>
* </tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,15 @@ public DatastoreAdminStub 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 @@ -491,7 +500,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 @@ -504,7 +512,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 @@ -719,6 +726,15 @@ public UnaryCallSettings.Builder<GetIndexRequest, Index> getIndexSettings() {
return listIndexesSettings;
}

/** 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 DatastoreAdminStubSettings build() throws IOException {
return new DatastoreAdminStubSettings(this);
Expand Down

0 comments on commit f4ee0cb

Please sign in to comment.