PrevPrevious commit
Next Next commit
feat: Adding two new fields for Instance create_time and update_time
PiperOrigin-RevId: 458877561

Source-Link: googleapis/googleapis@207bf59

Source-Link: https://.com/googleapis/googleapis-gen/commit/5ede6e4fbc14d76f9a6f48152a16d8141d8aff52
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWVkZTZlNGZiYzE0ZDc2ZjlhNmY0ODE1MmExNmQ4MTQxZDhhZmY1MiJ9
  • Loading branch information
@gcf-owl-bot
gcf-owl-bot[bot] committedJul 4, 2022
commit 69e2d3aee6de10bb83d0c706e43731a72d6781e0
Original file line numberDiff line numberDiff line change
Expand Up@@ -103,13 +103,13 @@
* methods:
*
* <ol>
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* <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,
* <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
* <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>
*
Expand DownExpand Up@@ -3183,10 +3183,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListDatabasesPagedResponse
extends AbstractPagedListResponse<
ListDatabasesRequest,
ListDatabasesResponse,
Database,
ListDatabasesPage,
ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage,
ListDatabasesFixedSizeCollection> {

public static ApiFuture<ListDatabasesPagedResponse> createAsync(
Expand DownExpand Up@@ -3236,10 +3233,7 @@ public ApiFuture<ListDatabasesPage> createPageAsync(

public static class ListDatabasesFixedSizeCollection
extends AbstractFixedSizeCollection<
ListDatabasesRequest,
ListDatabasesResponse,
Database,
ListDatabasesPage,
ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage,
ListDatabasesFixedSizeCollection> {

private ListDatabasesFixedSizeCollection(List<ListDatabasesPage> pages, int collectionSize) {
Expand All@@ -3259,10 +3253,7 @@ protected ListDatabasesFixedSizeCollection createCollection(

public static class ListBackupsPagedResponse
extends AbstractPagedListResponse<
ListBackupsRequest,
ListBackupsResponse,
Backup,
ListBackupsPage,
ListBackupsRequest, ListBackupsResponse, Backup, ListBackupsPage,
ListBackupsFixedSizeCollection> {

public static ApiFuture<ListBackupsPagedResponse> createAsync(
Expand DownExpand Up@@ -3309,10 +3300,7 @@ public ApiFuture<ListBackupsPage> createPageAsync(

public static class ListBackupsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListBackupsRequest,
ListBackupsResponse,
Backup,
ListBackupsPage,
ListBackupsRequest, ListBackupsResponse, Backup, ListBackupsPage,
ListBackupsFixedSizeCollection> {

private ListBackupsFixedSizeCollection(List<ListBackupsPage> pages, int collectionSize) {
Expand All@@ -3332,11 +3320,8 @@ protected ListBackupsFixedSizeCollection createCollection(

public static class ListDatabaseOperationsPagedResponse
extends AbstractPagedListResponse<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
Operation,
ListDatabaseOperationsPage,
ListDatabaseOperationsFixedSizeCollection> {
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse, Operation,
ListDatabaseOperationsPage, ListDatabaseOperationsFixedSizeCollection> {

public static ApiFuture<ListDatabaseOperationsPagedResponse> createAsync(
PageContext<ListDatabaseOperationsRequest, ListDatabaseOperationsResponse, Operation>
Expand All@@ -3357,9 +3342,7 @@ private ListDatabaseOperationsPagedResponse(ListDatabaseOperationsPage page) {

public static class ListDatabaseOperationsPage
extends AbstractPage<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
Operation,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse, Operation,
ListDatabaseOperationsPage> {

private ListDatabaseOperationsPage(
Expand DownExpand Up@@ -3392,11 +3375,8 @@ public ApiFuture<ListDatabaseOperationsPage> createPageAsync(

public static class ListDatabaseOperationsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
Operation,
ListDatabaseOperationsPage,
ListDatabaseOperationsFixedSizeCollection> {
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse, Operation,
ListDatabaseOperationsPage, ListDatabaseOperationsFixedSizeCollection> {

private ListDatabaseOperationsFixedSizeCollection(
List<ListDatabaseOperationsPage> pages, int collectionSize) {
Expand All@@ -3416,11 +3396,8 @@ protected ListDatabaseOperationsFixedSizeCollection createCollection(

public static class ListBackupOperationsPagedResponse
extends AbstractPagedListResponse<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
Operation,
ListBackupOperationsPage,
ListBackupOperationsFixedSizeCollection> {
ListBackupOperationsRequest, ListBackupOperationsResponse, Operation,
ListBackupOperationsPage, ListBackupOperationsFixedSizeCollection> {

public static ApiFuture<ListBackupOperationsPagedResponse> createAsync(
PageContext<ListBackupOperationsRequest, ListBackupOperationsResponse, Operation> context,
Expand All@@ -3440,9 +3417,7 @@ private ListBackupOperationsPagedResponse(ListBackupOperationsPage page) {

public static class ListBackupOperationsPage
extends AbstractPage<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
Operation,
ListBackupOperationsRequest, ListBackupOperationsResponse, Operation,
ListBackupOperationsPage> {

private ListBackupOperationsPage(
Expand DownExpand Up@@ -3472,11 +3447,8 @@ public ApiFuture<ListBackupOperationsPage> createPageAsync(

public static class ListBackupOperationsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
Operation,
ListBackupOperationsPage,
ListBackupOperationsFixedSizeCollection> {
ListBackupOperationsRequest, ListBackupOperationsResponse, Operation,
ListBackupOperationsPage, ListBackupOperationsFixedSizeCollection> {

private ListBackupOperationsFixedSizeCollection(
List<ListBackupOperationsPage> pages, int collectionSize) {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
Expand Up@@ -100,9 +100,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (spanner.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> The default service address (spanner.googleapis.com) and default port (443) are used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand DownExpand Up@@ -168,13 +168,11 @@ public class DatabaseAdminStubSettings extends StubSettings<DatabaseAdminStubSet
private final OperationCallSettings<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
restoreDatabaseOperationSettings;
private final PagedCallSettings<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings;
private final PagedCallSettings<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings;

Expand DownExpand Up@@ -367,13 +365,11 @@ public ApiFuture<ListBackupsPagedResponse> getFuturePagedResponse(
};

private static final PagedListResponseFactory<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
LIST_DATABASE_OPERATIONS_PAGE_STR_FACT =
new PagedListResponseFactory<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>() {
@Override
public ApiFuture<ListDatabaseOperationsPagedResponse> getFuturePagedResponse(
Expand All@@ -391,13 +387,11 @@ public ApiFuture<ListDatabaseOperationsPagedResponse> getFuturePagedResponse(
};

private static final PagedListResponseFactory<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
LIST_BACKUP_OPERATIONS_PAGE_STR_FACT =
new PagedListResponseFactory<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>() {
@Override
public ApiFuture<ListBackupOperationsPagedResponse> getFuturePagedResponse(
Expand DownExpand Up@@ -528,17 +522,15 @@ public UnaryCallSettings<RestoreDatabaseRequest, Operation> restoreDatabaseSetti

/** Returns the object with the settings used for calls to listDatabaseOperations. */
public PagedCallSettings<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings() {
return listDatabaseOperationsSettings;
}

/** Returns the object with the settings used for calls to listBackupOperations. */
public PagedCallSettings<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings() {
return listBackupOperationsSettings;
Expand DownExpand Up@@ -718,13 +710,11 @@ public static class Builder extends StubSettings.Builder<DatabaseAdminStubSettin
RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
restoreDatabaseOperationSettings;
private final PagedCallSettings.Builder<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings;
private final PagedCallSettings.Builder<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings;
private static final ImmutableMap<String, ImmutableSet<StatusCode.Code>>
Expand DownExpand Up@@ -1285,17 +1275,15 @@ public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatab

/** Returns the builder for the settings used for calls to listDatabaseOperations. */
public PagedCallSettings.Builder<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings() {
return listDatabaseOperationsSettings;
}

/** Returns the builder for the settings used for calls to listBackupOperations. */
public PagedCallSettings.Builder<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings() {
return listBackupOperationsSettings;
Expand Down
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
Expand Up@@ -33,6 +33,7 @@
import com.google.api.gax.httpjson.ProtoMessageResponseParser;
import com.google.api.gax.httpjson.ProtoRestSerializer;
import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub;
import com.google.api.gax.longrunning.OperationSnapshot;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
Expand Down
Loading