Class RestoreDatabaseMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,RestoreDatabaseMetadataOrBuilder
,Cloneable
- Enclosing class:
- RestoreDatabaseMetadata
public static final class RestoreDatabaseMetadata.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
implements RestoreDatabaseMetadataOrBuilder
Metadata type for the long-running operation returned by [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase].Protobuf type
google.spanner.admin.database.v1.RestoreDatabaseMetadata
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Information about the backup used to restore the database.The time at which cancellation of this operation was received.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Name of the database being created and restored to.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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 progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.The type of the restore source.clone()
Information about the backup used to restore the database.Information about the backup used to restore the database.Information about the backup used to restore the database.com.google.protobuf.Timestamp
The time at which cancellation of this operation was received.com.google.protobuf.Timestamp.Builder
The time at which cancellation of this operation was received.com.google.protobuf.TimestampOrBuilder
The time at which cancellation of this operation was received.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getName()
Name of the database being created and restored to.com.google.protobuf.ByteString
Name of the database being created and restored to.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.com.google.protobuf.ByteString
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 progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.The type of the restore source.int
The type of the restore source.boolean
Information about the backup used to restore the database.boolean
The time at which cancellation of this operation was received.boolean
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeBackupInfo
(BackupInfo value) Information about the backup used to restore the database.mergeCancelTime
(com.google.protobuf.Timestamp value) The time at which cancellation of this operation was received.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(RestoreDatabaseMetadata other) mergeProgress
(OperationProgress value) The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setBackupInfo
(BackupInfo value) Information about the backup used to restore the database.setBackupInfo
(BackupInfo.Builder builderForValue) Information about the backup used to restore the database.setCancelTime
(com.google.protobuf.Timestamp value) The time at which cancellation of this operation was received.setCancelTime
(com.google.protobuf.Timestamp.Builder builderForValue) The time at which cancellation of this operation was received.Name of the database being created and restored to.setNameBytes
(com.google.protobuf.ByteString value) Name of the database being created and restored to.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.setOptimizeDatabaseOperationNameBytes
(com.google.protobuf.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.setProgress
(OperationProgress value) The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.setProgress
(OperationProgress.Builder builderForValue) The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSourceType
(RestoreSourceType value) The type of the restore source.setSourceTypeValue
(int value) The type of the restore source.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
setField
public RestoreDatabaseMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
clearField
public RestoreDatabaseMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
clearOneof
public RestoreDatabaseMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
setRepeatedField
public RestoreDatabaseMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
addRepeatedField
public RestoreDatabaseMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RestoreDatabaseMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
mergeFrom
public RestoreDatabaseMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RestoreDatabaseMetadata.Builder>
- Throws:
IOException
-
getSourceInfoCase
- Specified by:
getSourceInfoCase
in interfaceRestoreDatabaseMetadataOrBuilder
-
clearSourceInfo
-
getName
Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }
- Specified by:
getName
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }
- Specified by:
getNameBytes
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- The bytes for name.
-
setName
Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setNameBytes
Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getSourceTypeValue
public int getSourceTypeValue()The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;
- Specified by:
getSourceTypeValue
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- The enum numeric value on the wire for sourceType.
-
setSourceTypeValue
The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;
- Parameters:
value
- The enum numeric value on the wire for sourceType to set.- Returns:
- This builder for chaining.
-
getSourceType
The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;
- Specified by:
getSourceType
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- The sourceType.
-
setSourceType
The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;
- Parameters:
value
- The sourceType to set.- Returns:
- This builder for chaining.
-
clearSourceType
The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;
- Returns:
- This builder for chaining.
-
hasBackupInfo
public boolean hasBackupInfo()Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
- Specified by:
hasBackupInfo
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- Whether the backupInfo field is set.
-
getBackupInfo
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
- Specified by:
getBackupInfo
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- The backupInfo.
-
setBackupInfo
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
-
setBackupInfo
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
-
mergeBackupInfo
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
-
clearBackupInfo
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
-
getBackupInfoBuilder
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
-
getBackupInfoOrBuilder
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
- Specified by:
getBackupInfoOrBuilder
in interfaceRestoreDatabaseMetadataOrBuilder
-
hasProgress
public boolean hasProgress()The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
- Specified by:
hasProgress
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- Whether the progress field is set.
-
getProgress
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
- Specified by:
getProgress
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- The progress.
-
setProgress
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
-
setProgress
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
-
mergeProgress
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
-
clearProgress
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
-
getProgressBuilder
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
-
getProgressOrBuilder
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
- Specified by:
getProgressOrBuilder
in interfaceRestoreDatabaseMetadataOrBuilder
-
hasCancelTime
public boolean hasCancelTime()The time at which cancellation of this operation was received. [Operations.CancelOperation][google.longrunning.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][google.longrunning.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][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 5;
- Specified by:
hasCancelTime
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- Whether the cancelTime field is set.
-
getCancelTime
public com.google.protobuf.Timestamp getCancelTime()The time at which cancellation of this operation was received. [Operations.CancelOperation][google.longrunning.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][google.longrunning.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][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 5;
- Specified by:
getCancelTime
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- The cancelTime.
-
setCancelTime
The time at which cancellation of this operation was received. [Operations.CancelOperation][google.longrunning.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][google.longrunning.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][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 5;
-
setCancelTime
public RestoreDatabaseMetadata.Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which cancellation of this operation was received. [Operations.CancelOperation][google.longrunning.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][google.longrunning.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][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 5;
-
mergeCancelTime
The time at which cancellation of this operation was received. [Operations.CancelOperation][google.longrunning.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][google.longrunning.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][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 5;
-
clearCancelTime
The time at which cancellation of this operation was received. [Operations.CancelOperation][google.longrunning.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][google.longrunning.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][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 5;
-
getCancelTimeBuilder
public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder()The time at which cancellation of this operation was received. [Operations.CancelOperation][google.longrunning.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][google.longrunning.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][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 5;
-
getCancelTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder()The time at which cancellation of this operation was received. [Operations.CancelOperation][google.longrunning.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][google.longrunning.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][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 5;
- Specified by:
getCancelTimeOrBuilder
in interfaceRestoreDatabaseMetadataOrBuilder
-
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][google.spanner.admin.database.v1.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;
- Specified by:
getOptimizeDatabaseOperationName
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- The optimizeDatabaseOperationName.
-
getOptimizeDatabaseOperationNameBytes
public com.google.protobuf.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][google.spanner.admin.database.v1.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;
- Specified by:
getOptimizeDatabaseOperationNameBytes
in interfaceRestoreDatabaseMetadataOrBuilder
- Returns:
- The bytes for optimizeDatabaseOperationName.
-
setOptimizeDatabaseOperationName
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][google.spanner.admin.database.v1.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;
- Parameters:
value
- The optimizeDatabaseOperationName to set.- Returns:
- This builder for chaining.
-
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][google.spanner.admin.database.v1.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:
- This builder for chaining.
-
setOptimizeDatabaseOperationNameBytes
public RestoreDatabaseMetadata.Builder setOptimizeDatabaseOperationNameBytes(com.google.protobuf.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][google.spanner.admin.database.v1.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;
- Parameters:
value
- The bytes for optimizeDatabaseOperationName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RestoreDatabaseMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
mergeUnknownFields
public final RestoreDatabaseMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-