- 6.108.0 (latest)
- 6.107.0
- 6.103.0
- 6.102.1
- 6.101.1
- 6.100.0
- 6.99.0
- 6.98.1
- 6.97.1
- 6.96.1
- 6.95.1
- 6.94.0
- 6.93.0
- 6.89.0
- 6.88.0
- 6.87.0
- 6.86.0
- 6.85.0
- 6.83.0
- 6.82.0
- 6.80.1
- 6.79.0
- 6.77.0
- 6.74.1
- 6.72.0
- 6.71.0
- 6.69.0
- 6.68.0
- 6.66.0
- 6.65.1
- 6.62.0
- 6.60.0
- 6.58.0
- 6.57.0
- 6.56.0
- 6.55.0
- 6.54.0
- 6.53.0
- 6.52.1
- 6.51.0
- 6.50.1
- 6.49.0
- 6.25.1
- 6.24.0
- 6.23.4
- 6.22.0
- 6.21.2
- 6.20.0
- 6.19.1
- 6.18.0
- 6.17.4
- 6.14.1
public static final class RestoreDatabaseMetadata.Builder extends GeneratedMessage.Builder<RestoreDatabaseMetadata.Builder> implements RestoreDatabaseMetadataOrBuilderMetadata type for the long-running operation returned by RestoreDatabase.
Protobuf type google.spanner.admin.database.v1.RestoreDatabaseMetadata
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RestoreDatabaseMetadata.BuilderImplements
RestoreDatabaseMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RestoreDatabaseMetadata build()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata |
|
buildPartial()
public RestoreDatabaseMetadata buildPartial()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata |
|
clear()
public RestoreDatabaseMetadata.Builder clear()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
clearBackupInfo()
public RestoreDatabaseMetadata.Builder clearBackupInfo()Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
clearCancelTime()
public RestoreDatabaseMetadata.Builder clearCancelTime() The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
.google.protobuf.Timestamp cancel_time = 5;
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
clearName()
public RestoreDatabaseMetadata.Builder clearName()Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
This builder for chaining. |
clearOptimizeDatabaseOperationName()
public RestoreDatabaseMetadata.Builder clearOptimizeDatabaseOperationName() If exists, the name of the long-running operation that will be used to
track the post-restore optimization process to optimize the performance of
the restored database, and remove the dependency on the restore source.
The name is of the form
projects/<project>/instances/<instance>/databases/<database>/operations/<operation>
where the <database> is the name of database being created and restored to.
The metadata type of the long-running operation is
OptimizeRestoredDatabaseMetadata.
This long-running operation will be automatically created by the system
after the RestoreDatabase long-running operation completes successfully.
This operation will not be created if the restore was not successful.
string optimize_database_operation_name = 6;
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
This builder for chaining. |
clearProgress()
public RestoreDatabaseMetadata.Builder clearProgress()The progress of the RestoreDatabase operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
clearSourceInfo()
public RestoreDatabaseMetadata.Builder clearSourceInfo()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
clearSourceType()
public RestoreDatabaseMetadata.Builder clearSourceType()The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
This builder for chaining. |
getBackupInfo()
public BackupInfo getBackupInfo()Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
| Returns | |
|---|---|
| Type | Description |
BackupInfo |
The backupInfo. |
getBackupInfoBuilder()
public BackupInfo.Builder getBackupInfoBuilder()Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
| Returns | |
|---|---|
| Type | Description |
BackupInfo.Builder |
|
getBackupInfoOrBuilder()
public BackupInfoOrBuilder getBackupInfoOrBuilder()Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
| Returns | |
|---|---|
| Type | Description |
BackupInfoOrBuilder |
|
getCancelTime()
public Timestamp getCancelTime() The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
.google.protobuf.Timestamp cancel_time = 5;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The cancelTime. |
getCancelTimeBuilder()
public Timestamp.Builder getCancelTimeBuilder() The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
.google.protobuf.Timestamp cancel_time = 5;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCancelTimeOrBuilder()
public TimestampOrBuilder getCancelTimeOrBuilder() The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
.google.protobuf.Timestamp cancel_time = 5;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public RestoreDatabaseMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getOptimizeDatabaseOperationName()
public String getOptimizeDatabaseOperationName() If exists, the name of the long-running operation that will be used to
track the post-restore optimization process to optimize the performance of
the restored database, and remove the dependency on the restore source.
The name is of the form
projects/<project>/instances/<instance>/databases/<database>/operations/<operation>
where the <database> is the name of database being created and restored to.
The metadata type of the long-running operation is
OptimizeRestoredDatabaseMetadata.
This long-running operation will be automatically created by the system
after the RestoreDatabase long-running operation completes successfully.
This operation will not be created if the restore was not successful.
string optimize_database_operation_name = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The optimizeDatabaseOperationName. |
getOptimizeDatabaseOperationNameBytes()
public ByteString getOptimizeDatabaseOperationNameBytes() If exists, the name of the long-running operation that will be used to
track the post-restore optimization process to optimize the performance of
the restored database, and remove the dependency on the restore source.
The name is of the form
projects/<project>/instances/<instance>/databases/<database>/operations/<operation>
where the <database> is the name of database being created and restored to.
The metadata type of the long-running operation is
OptimizeRestoredDatabaseMetadata.
This long-running operation will be automatically created by the system
after the RestoreDatabase long-running operation completes successfully.
This operation will not be created if the restore was not successful.
string optimize_database_operation_name = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for optimizeDatabaseOperationName. |
getProgress()
public OperationProgress getProgress()The progress of the RestoreDatabase operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
| Returns | |
|---|---|
| Type | Description |
OperationProgress |
The progress. |
getProgressBuilder()
public OperationProgress.Builder getProgressBuilder()The progress of the RestoreDatabase operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
| Returns | |
|---|---|
| Type | Description |
OperationProgress.Builder |
|
getProgressOrBuilder()
public OperationProgressOrBuilder getProgressOrBuilder()The progress of the RestoreDatabase operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
| Returns | |
|---|---|
| Type | Description |
OperationProgressOrBuilder |
|
getSourceInfoCase()
public RestoreDatabaseMetadata.SourceInfoCase getSourceInfoCase()| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.SourceInfoCase |
|
getSourceType()
public RestoreSourceType getSourceType()The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;
| Returns | |
|---|---|
| Type | Description |
RestoreSourceType |
The sourceType. |
getSourceTypeValue()
public int getSourceTypeValue()The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for sourceType. |
hasBackupInfo()
public boolean hasBackupInfo()Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backupInfo field is set. |
hasCancelTime()
public boolean hasCancelTime() The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
.google.protobuf.Timestamp cancel_time = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the cancelTime field is set. |
hasProgress()
public boolean hasProgress()The progress of the RestoreDatabase operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the progress field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBackupInfo(BackupInfo value)
public RestoreDatabaseMetadata.Builder mergeBackupInfo(BackupInfo value)Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
BackupInfo |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
mergeCancelTime(Timestamp value)
public RestoreDatabaseMetadata.Builder mergeCancelTime(Timestamp value) The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
.google.protobuf.Timestamp cancel_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RestoreDatabaseMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RestoreDatabaseMetadata.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
mergeFrom(RestoreDatabaseMetadata other)
public RestoreDatabaseMetadata.Builder mergeFrom(RestoreDatabaseMetadata other)| Parameter | |
|---|---|
| Name | Description |
other |
RestoreDatabaseMetadata |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
mergeProgress(OperationProgress value)
public RestoreDatabaseMetadata.Builder mergeProgress(OperationProgress value)The progress of the RestoreDatabase operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
OperationProgress |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
setBackupInfo(BackupInfo value)
public RestoreDatabaseMetadata.Builder setBackupInfo(BackupInfo value)Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
BackupInfo |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
setBackupInfo(BackupInfo.Builder builderForValue)
public RestoreDatabaseMetadata.Builder setBackupInfo(BackupInfo.Builder builderForValue)Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BackupInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
setCancelTime(Timestamp value)
public RestoreDatabaseMetadata.Builder setCancelTime(Timestamp value) The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
.google.protobuf.Timestamp cancel_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
setCancelTime(Timestamp.Builder builderForValue)
public RestoreDatabaseMetadata.Builder setCancelTime(Timestamp.Builder builderForValue) The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED.
.google.protobuf.Timestamp cancel_time = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
setName(String value)
public RestoreDatabaseMetadata.Builder setName(String value)Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public RestoreDatabaseMetadata.Builder setNameBytes(ByteString value)Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
This builder for chaining. |
setOptimizeDatabaseOperationName(String value)
public RestoreDatabaseMetadata.Builder setOptimizeDatabaseOperationName(String value) If exists, the name of the long-running operation that will be used to
track the post-restore optimization process to optimize the performance of
the restored database, and remove the dependency on the restore source.
The name is of the form
projects/<project>/instances/<instance>/databases/<database>/operations/<operation>
where the <database> is the name of database being created and restored to.
The metadata type of the long-running operation is
OptimizeRestoredDatabaseMetadata.
This long-running operation will be automatically created by the system
after the RestoreDatabase long-running operation completes successfully.
This operation will not be created if the restore was not successful.
string optimize_database_operation_name = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe optimizeDatabaseOperationName to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
This builder for chaining. |
setOptimizeDatabaseOperationNameBytes(ByteString value)
public RestoreDatabaseMetadata.Builder setOptimizeDatabaseOperationNameBytes(ByteString value) If exists, the name of the long-running operation that will be used to
track the post-restore optimization process to optimize the performance of
the restored database, and remove the dependency on the restore source.
The name is of the form
projects/<project>/instances/<instance>/databases/<database>/operations/<operation>
where the <database> is the name of database being created and restored to.
The metadata type of the long-running operation is
OptimizeRestoredDatabaseMetadata.
This long-running operation will be automatically created by the system
after the RestoreDatabase long-running operation completes successfully.
This operation will not be created if the restore was not successful.
string optimize_database_operation_name = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for optimizeDatabaseOperationName to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
This builder for chaining. |
setProgress(OperationProgress value)
public RestoreDatabaseMetadata.Builder setProgress(OperationProgress value)The progress of the RestoreDatabase operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
OperationProgress |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
setProgress(OperationProgress.Builder builderForValue)
public RestoreDatabaseMetadata.Builder setProgress(OperationProgress.Builder builderForValue)The progress of the RestoreDatabase operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
OperationProgress.Builder |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
|
setSourceType(RestoreSourceType value)
public RestoreDatabaseMetadata.Builder setSourceType(RestoreSourceType value)The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
RestoreSourceTypeThe sourceType to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
This builder for chaining. |
setSourceTypeValue(int value)
public RestoreDatabaseMetadata.Builder setSourceTypeValue(int value)The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for sourceType to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreDatabaseMetadata.Builder |
This builder for chaining. |