Skip to content

Commit

Permalink
[CHANGE ME] Re-generated to pick up changes in the API or client libr…
Browse files Browse the repository at this point in the history
…ary generator.
  • Loading branch information
yoshi-automation committed Mar 12, 2020
1 parent 57f5fd0 commit 2c7df30
Show file tree
Hide file tree
Showing 58 changed files with 32,165 additions and 308 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
package com.google.cloud.spanner.admin.database.v1;

import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListBackupOperationsPagedResponse;
import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListBackupsPagedResponse;
import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListDatabaseOperationsPagedResponse;
import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListDatabasesPagedResponse;

import com.google.api.core.ApiFunction;
Expand All @@ -37,15 +40,29 @@
import com.google.iam.v1.TestIamPermissionsResponse;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import com.google.spanner.admin.database.v1.Backup;
import com.google.spanner.admin.database.v1.CreateBackupMetadata;
import com.google.spanner.admin.database.v1.CreateBackupRequest;
import com.google.spanner.admin.database.v1.CreateDatabaseMetadata;
import com.google.spanner.admin.database.v1.CreateDatabaseRequest;
import com.google.spanner.admin.database.v1.Database;
import com.google.spanner.admin.database.v1.DeleteBackupRequest;
import com.google.spanner.admin.database.v1.DropDatabaseRequest;
import com.google.spanner.admin.database.v1.GetBackupRequest;
import com.google.spanner.admin.database.v1.GetDatabaseDdlRequest;
import com.google.spanner.admin.database.v1.GetDatabaseDdlResponse;
import com.google.spanner.admin.database.v1.GetDatabaseRequest;
import com.google.spanner.admin.database.v1.ListBackupOperationsRequest;
import com.google.spanner.admin.database.v1.ListBackupOperationsResponse;
import com.google.spanner.admin.database.v1.ListBackupsRequest;
import com.google.spanner.admin.database.v1.ListBackupsResponse;
import com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest;
import com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse;
import com.google.spanner.admin.database.v1.ListDatabasesRequest;
import com.google.spanner.admin.database.v1.ListDatabasesResponse;
import com.google.spanner.admin.database.v1.RestoreDatabaseMetadata;
import com.google.spanner.admin.database.v1.RestoreDatabaseRequest;
import com.google.spanner.admin.database.v1.UpdateBackupRequest;
import com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata;
import com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest;
import java.io.IOException;
Expand Down Expand Up @@ -143,6 +160,71 @@ public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).testIamPermissionsSettings();
}

/** Returns the object with the settings used for calls to createBackup. */
public UnaryCallSettings<CreateBackupRequest, Operation> createBackupSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).createBackupSettings();
}

/** Returns the object with the settings used for calls to createBackup. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings<CreateBackupRequest, Backup, CreateBackupMetadata>
createBackupOperationSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).createBackupOperationSettings();
}

/** Returns the object with the settings used for calls to getBackup. */
public UnaryCallSettings<GetBackupRequest, Backup> getBackupSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).getBackupSettings();
}

/** Returns the object with the settings used for calls to updateBackup. */
public UnaryCallSettings<UpdateBackupRequest, Backup> updateBackupSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).updateBackupSettings();
}

/** Returns the object with the settings used for calls to deleteBackup. */
public UnaryCallSettings<DeleteBackupRequest, Empty> deleteBackupSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).deleteBackupSettings();
}

/** Returns the object with the settings used for calls to listBackups. */
public PagedCallSettings<ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
listBackupsSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).listBackupsSettings();
}

/** Returns the object with the settings used for calls to restoreDatabase. */
public UnaryCallSettings<RestoreDatabaseRequest, Operation> restoreDatabaseSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).restoreDatabaseSettings();
}

/** Returns the object with the settings used for calls to restoreDatabase. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
restoreDatabaseOperationSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).restoreDatabaseOperationSettings();
}

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

/** Returns the object with the settings used for calls to listBackupOperations. */
public PagedCallSettings<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).listBackupOperationsSettings();
}

/** Returns the object with the settings used for calls to listDatabases. */
public PagedCallSettings<ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
listDatabasesSettings() {
Expand Down Expand Up @@ -305,6 +387,72 @@ public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettin
return getStubSettingsBuilder().testIamPermissionsSettings();
}

/** Returns the builder for the settings used for calls to createBackup. */
public UnaryCallSettings.Builder<CreateBackupRequest, Operation> createBackupSettings() {
return getStubSettingsBuilder().createBackupSettings();
}

/** Returns the builder for the settings used for calls to createBackup. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder<CreateBackupRequest, Backup, CreateBackupMetadata>
createBackupOperationSettings() {
return getStubSettingsBuilder().createBackupOperationSettings();
}

/** Returns the builder for the settings used for calls to getBackup. */
public UnaryCallSettings.Builder<GetBackupRequest, Backup> getBackupSettings() {
return getStubSettingsBuilder().getBackupSettings();
}

/** Returns the builder for the settings used for calls to updateBackup. */
public UnaryCallSettings.Builder<UpdateBackupRequest, Backup> updateBackupSettings() {
return getStubSettingsBuilder().updateBackupSettings();
}

/** Returns the builder for the settings used for calls to deleteBackup. */
public UnaryCallSettings.Builder<DeleteBackupRequest, Empty> deleteBackupSettings() {
return getStubSettingsBuilder().deleteBackupSettings();
}

/** Returns the builder for the settings used for calls to listBackups. */
public PagedCallSettings.Builder<
ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
listBackupsSettings() {
return getStubSettingsBuilder().listBackupsSettings();
}

/** Returns the builder for the settings used for calls to restoreDatabase. */
public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatabaseSettings() {
return getStubSettingsBuilder().restoreDatabaseSettings();
}

/** Returns the builder for the settings used for calls to restoreDatabase. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
restoreDatabaseOperationSettings() {
return getStubSettingsBuilder().restoreDatabaseOperationSettings();
}

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

/** Returns the builder for the settings used for calls to listBackupOperations. */
public PagedCallSettings.Builder<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings() {
return getStubSettingsBuilder().listBackupOperationsSettings();
}

/** Returns the builder for the settings used for calls to listDatabases. */
public PagedCallSettings.Builder<
ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
* <p>Service Description: Cloud Spanner Database Admin API
*
* <p>The Cloud Spanner Database Admin API can be used to create, drop, and list databases. It also
* enables updating the schema of pre-existing databases.
* enables updating the schema of pre-existing databases. It can be also used to create, delete and
* list backups for a database and to restore from an existing backup.
*
* <p>Sample for DatabaseAdminClient:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
package com.google.cloud.spanner.admin.database.v1.stub;

import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListBackupOperationsPagedResponse;
import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListBackupsPagedResponse;
import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListDatabaseOperationsPagedResponse;
import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListDatabasesPagedResponse;

import com.google.api.core.BetaApi;
Expand All @@ -29,15 +32,29 @@
import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
import com.google.protobuf.Empty;
import com.google.spanner.admin.database.v1.Backup;
import com.google.spanner.admin.database.v1.CreateBackupMetadata;
import com.google.spanner.admin.database.v1.CreateBackupRequest;
import com.google.spanner.admin.database.v1.CreateDatabaseMetadata;
import com.google.spanner.admin.database.v1.CreateDatabaseRequest;
import com.google.spanner.admin.database.v1.Database;
import com.google.spanner.admin.database.v1.DeleteBackupRequest;
import com.google.spanner.admin.database.v1.DropDatabaseRequest;
import com.google.spanner.admin.database.v1.GetBackupRequest;
import com.google.spanner.admin.database.v1.GetDatabaseDdlRequest;
import com.google.spanner.admin.database.v1.GetDatabaseDdlResponse;
import com.google.spanner.admin.database.v1.GetDatabaseRequest;
import com.google.spanner.admin.database.v1.ListBackupOperationsRequest;
import com.google.spanner.admin.database.v1.ListBackupOperationsResponse;
import com.google.spanner.admin.database.v1.ListBackupsRequest;
import com.google.spanner.admin.database.v1.ListBackupsResponse;
import com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest;
import com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse;
import com.google.spanner.admin.database.v1.ListDatabasesRequest;
import com.google.spanner.admin.database.v1.ListDatabasesResponse;
import com.google.spanner.admin.database.v1.RestoreDatabaseMetadata;
import com.google.spanner.admin.database.v1.RestoreDatabaseRequest;
import com.google.spanner.admin.database.v1.UpdateBackupRequest;
import com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata;
import com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest;
import javax.annotation.Generated;
Expand Down Expand Up @@ -103,6 +120,67 @@ public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
}

@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable<CreateBackupRequest, Backup, CreateBackupMetadata>
createBackupOperationCallable() {
throw new UnsupportedOperationException("Not implemented: createBackupOperationCallable()");
}

public UnaryCallable<CreateBackupRequest, Operation> createBackupCallable() {
throw new UnsupportedOperationException("Not implemented: createBackupCallable()");
}

public UnaryCallable<GetBackupRequest, Backup> getBackupCallable() {
throw new UnsupportedOperationException("Not implemented: getBackupCallable()");
}

public UnaryCallable<UpdateBackupRequest, Backup> updateBackupCallable() {
throw new UnsupportedOperationException("Not implemented: updateBackupCallable()");
}

public UnaryCallable<DeleteBackupRequest, Empty> deleteBackupCallable() {
throw new UnsupportedOperationException("Not implemented: deleteBackupCallable()");
}

public UnaryCallable<ListBackupsRequest, ListBackupsPagedResponse> listBackupsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()");
}

public UnaryCallable<ListBackupsRequest, ListBackupsResponse> listBackupsCallable() {
throw new UnsupportedOperationException("Not implemented: listBackupsCallable()");
}

@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
restoreDatabaseOperationCallable() {
throw new UnsupportedOperationException("Not implemented: restoreDatabaseOperationCallable()");
}

public UnaryCallable<RestoreDatabaseRequest, Operation> restoreDatabaseCallable() {
throw new UnsupportedOperationException("Not implemented: restoreDatabaseCallable()");
}

public UnaryCallable<ListDatabaseOperationsRequest, ListDatabaseOperationsPagedResponse>
listDatabaseOperationsPagedCallable() {
throw new UnsupportedOperationException(
"Not implemented: listDatabaseOperationsPagedCallable()");
}

public UnaryCallable<ListDatabaseOperationsRequest, ListDatabaseOperationsResponse>
listDatabaseOperationsCallable() {
throw new UnsupportedOperationException("Not implemented: listDatabaseOperationsCallable()");
}

public UnaryCallable<ListBackupOperationsRequest, ListBackupOperationsPagedResponse>
listBackupOperationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listBackupOperationsPagedCallable()");
}

public UnaryCallable<ListBackupOperationsRequest, ListBackupOperationsResponse>
listBackupOperationsCallable() {
throw new UnsupportedOperationException("Not implemented: listBackupOperationsCallable()");
}

public UnaryCallable<ListDatabasesRequest, ListDatabasesPagedResponse>
listDatabasesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listDatabasesPagedCallable()");
Expand Down
Loading

0 comments on commit 2c7df30

Please sign in to comment.