Class GrpcDatabaseAdminStub (6.74.0)

public class GrpcDatabaseAdminStub extends DatabaseAdminStub

gRPC stub implementation for the DatabaseAdmin service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > DatabaseAdminStub > GrpcDatabaseAdminStub

Static Methods

create(ClientContext clientContext)

public static final GrpcDatabaseAdminStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcDatabaseAdminStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDatabaseAdminStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcDatabaseAdminStub
Exceptions
Type Description
IOException

create(DatabaseAdminStubSettings settings)

public static final GrpcDatabaseAdminStub create(DatabaseAdminStubSettings settings)
Parameter
Name Description
settings DatabaseAdminStubSettings
Returns
Type Description
GrpcDatabaseAdminStub
Exceptions
Type Description
IOException

Constructors

GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext)

protected GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDatabaseAdminStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings DatabaseAdminStubSettings
clientContext ClientContext

GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDatabaseAdminStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings DatabaseAdminStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

copyBackupCallable()

public UnaryCallable<CopyBackupRequest,Operation> copyBackupCallable()
Returns
Type Description
UnaryCallable<CopyBackupRequest,Operation>
Overrides

copyBackupOperationCallable()

public OperationCallable<CopyBackupRequest,Backup,CopyBackupMetadata> copyBackupOperationCallable()
Returns
Type Description
OperationCallable<CopyBackupRequest,Backup,CopyBackupMetadata>
Overrides

createBackupCallable()

public UnaryCallable<CreateBackupRequest,Operation> createBackupCallable()
Returns
Type Description
UnaryCallable<CreateBackupRequest,Operation>
Overrides

createBackupOperationCallable()

public OperationCallable<CreateBackupRequest,Backup,CreateBackupMetadata> createBackupOperationCallable()
Returns
Type Description
OperationCallable<CreateBackupRequest,Backup,CreateBackupMetadata>
Overrides

createBackupScheduleCallable()

public UnaryCallable<CreateBackupScheduleRequest,BackupSchedule> createBackupScheduleCallable()
Returns
Type Description
UnaryCallable<CreateBackupScheduleRequest,BackupSchedule>
Overrides

createDatabaseCallable()

public UnaryCallable<CreateDatabaseRequest,Operation> createDatabaseCallable()
Returns
Type Description
UnaryCallable<CreateDatabaseRequest,Operation>
Overrides

createDatabaseOperationCallable()

public OperationCallable<CreateDatabaseRequest,Database,CreateDatabaseMetada