Class RestoreDatabaseMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typegoogle.spanner.admin.database.v1.RestoreDatabaseMetadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RestoreDatabaseMetadata.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RestoreDatabaseMetadatabuild()RestoreDatabaseMetadatabuildPartial()RestoreDatabaseMetadata.Builderclear()RestoreDatabaseMetadata.BuilderclearBackupInfo()Information about the backup used to restore the database.RestoreDatabaseMetadata.BuilderclearCancelTime()The time at which cancellation of this operation was received.RestoreDatabaseMetadata.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RestoreDatabaseMetadata.BuilderclearName()Name of the database being created and restored to.RestoreDatabaseMetadata.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RestoreDatabaseMetadata.BuilderclearOptimizeDatabaseOperationName()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.RestoreDatabaseMetadata.BuilderclearProgress()The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.RestoreDatabaseMetadata.BuilderclearSourceInfo()RestoreDatabaseMetadata.BuilderclearSourceType()The type of the restore source.RestoreDatabaseMetadata.Builderclone()BackupInfogetBackupInfo()Information about the backup used to restore the database.BackupInfo.BuildergetBackupInfoBuilder()Information about the backup used to restore the database.BackupInfoOrBuildergetBackupInfoOrBuilder()Information about the backup used to restore the database.com.google.protobuf.TimestampgetCancelTime()The time at which cancellation of this operation was received.com.google.protobuf.Timestamp.BuildergetCancelTimeBuilder()The time at which cancellation of this operation was received.com.google.protobuf.TimestampOrBuildergetCancelTimeOrBuilder()The time at which cancellation of this operation was received.RestoreDatabaseMetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Name of the database being created and restored to.com.google.protobuf.ByteStringgetNameBytes()Name of the database being created and restored to.StringgetOptimizeDatabaseOperationName()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.ByteStringgetOptimizeDatabaseOperationNameBytes()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.OperationProgressgetProgress()The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.OperationProgress.BuildergetProgressBuilder()The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.OperationProgressOrBuildergetProgressOrBuilder()The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.RestoreDatabaseMetadata.SourceInfoCasegetSourceInfoCase()RestoreSourceTypegetSourceType()The type of the restore source.intgetSourceTypeValue()The type of the restore source.booleanhasBackupInfo()Information about the backup used to restore the database.booleanhasCancelTime()The time at which cancellation of this operation was received.booleanhasProgress()The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RestoreDatabaseMetadata.BuildermergeBackupInfo(BackupInfo value)Information about the backup used to restore the database.RestoreDatabaseMetadata.BuildermergeCancelTime(com.google.protobuf.Timestamp value)The time at which cancellation of this operation was received.RestoreDatabaseMetadata.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RestoreDatabaseMetadata.BuildermergeFrom(com.google.protobuf.Message other)RestoreDatabaseMetadata.BuildermergeFrom(RestoreDatabaseMetadata other)RestoreDatabaseMetadata.BuildermergeProgress(OperationProgress value)The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.RestoreDatabaseMetadata.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RestoreDatabaseMetadata.BuildersetBackupInfo(BackupInfo value)Information about the backup used to restore the database.RestoreDatabaseMetadata.BuildersetBackupInfo(BackupInfo.Builder builderForValue)Information about the backup used to restore the database.RestoreDatabaseMetadata.BuildersetCancelTime(com.google.protobuf.Timestamp value)The time at which cancellation of this operation was received.RestoreDatabaseMetadata.BuildersetCancelTime(com.google.protobuf.Timestamp.Builder builderForValue)The time at which cancellation of this operation was received.RestoreDatabaseMetadata.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RestoreDatabaseMetadata.BuildersetName(String value)Name of the database being created and restored to.RestoreDatabaseMetadata.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the database being created and restored to.RestoreDatabaseMetadata.BuildersetOptimizeDatabaseOperationName(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.RestoreDatabaseMetadata.BuildersetOptimizeDatabaseOperationNameBytes(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.RestoreDatabaseMetadata.BuildersetProgress(OperationProgress value)The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.RestoreDatabaseMetadata.BuildersetProgress(OperationProgress.Builder builderForValue)The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.RestoreDatabaseMetadata.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RestoreDatabaseMetadata.BuildersetSourceType(RestoreSourceType value)The type of the restore source.RestoreDatabaseMetadata.BuildersetSourceTypeValue(int value)The type of the restore source.RestoreDatabaseMetadata.BuildersetUnknownFields(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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
clear
public RestoreDatabaseMetadata.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
getDefaultInstanceForType
public RestoreDatabaseMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RestoreDatabaseMetadata build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RestoreDatabaseMetadata buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RestoreDatabaseMetadata.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
setField
public RestoreDatabaseMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
clearField
public RestoreDatabaseMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
clearOneof
public RestoreDatabaseMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
setRepeatedField
public RestoreDatabaseMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
addRepeatedField
public RestoreDatabaseMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
mergeFrom
public RestoreDatabaseMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RestoreDatabaseMetadata.Builder>
-
mergeFrom
public RestoreDatabaseMetadata.Builder mergeFrom(RestoreDatabaseMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RestoreDatabaseMetadata.Builder>- Throws:
IOException
-
getSourceInfoCase
public RestoreDatabaseMetadata.SourceInfoCase getSourceInfoCase()
- Specified by:
getSourceInfoCasein interfaceRestoreDatabaseMetadataOrBuilder
-
clearSourceInfo
public RestoreDatabaseMetadata.Builder clearSourceInfo()
-
getName
public String getName()
Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getNamein 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:
getNameBytesin interfaceRestoreDatabaseMetadataOrBuilder- Returns:
- The bytes for name.
-
setName
public RestoreDatabaseMetadata.Builder setName(String value)
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
public RestoreDatabaseMetadata.Builder clearName()
Name of the database being created and restored to.
string name = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public RestoreDatabaseMetadata.Builder setNameBytes(com.google.protobuf.ByteString value)
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:
getSourceTypeValuein interfaceRestoreDatabaseMetadataOrBuilder- Returns:
- The enum numeric value on the wire for sourceType.
-
setSourceTypeValue
public RestoreDatabaseMetadata.Builder setSourceTypeValue(int value)
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
public RestoreSourceType getSourceType()
The type of the restore source.
.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;- Specified by:
getSourceTypein interfaceRestoreDatabaseMetadataOrBuilder- Returns:
- The sourceType.
-
setSourceType
public RestoreDatabaseMetadata.Builder setSourceType(RestoreSourceType value)
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
public RestoreDatabaseMetadata.Builder 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:
hasBackupInfoin interfaceRestoreDatabaseMetadataOrBuilder- Returns:
- Whether the backupInfo field is set.
-
getBackupInfo
public BackupInfo getBackupInfo()
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;- Specified by:
getBackupInfoin interfaceRestoreDatabaseMetadataOrBuilder- Returns:
- The backupInfo.
-
setBackupInfo
public RestoreDatabaseMetadata.Builder setBackupInfo(BackupInfo value)
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
-
setBackupInfo
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;
-
mergeBackupInfo
public RestoreDatabaseMetadata.Builder mergeBackupInfo(BackupInfo value)
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
-
clearBackupInfo
public RestoreDatabaseMetadata.Builder clearBackupInfo()
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
-
getBackupInfoBuilder
public BackupInfo.Builder getBackupInfoBuilder()
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;
-
getBackupInfoOrBuilder
public BackupInfoOrBuilder getBackupInfoOrBuilder()
Information about the backup used to restore the database.
.google.spanner.admin.database.v1.BackupInfo backup_info = 3;- Specified by:
getBackupInfoOrBuilderin 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:
hasProgressin interfaceRestoreDatabaseMetadataOrBuilder- Returns:
- Whether the progress field is set.
-
getProgress
public OperationProgress getProgress()
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;- Specified by:
getProgressin interfaceRestoreDatabaseMetadataOrBuilder- Returns:
- The progress.
-
setProgress
public RestoreDatabaseMetadata.Builder setProgress(OperationProgress value)
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
-
setProgress
public RestoreDatabaseMetadata.Builder setProgress(OperationProgress.Builder builderForValue)
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
-
mergeProgress
public RestoreDatabaseMetadata.Builder mergeProgress(OperationProgress value)
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
-
clearProgress
public RestoreDatabaseMetadata.Builder clearProgress()
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
-
getProgressBuilder
public OperationProgress.Builder getProgressBuilder()
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;
-
getProgressOrBuilder
public OperationProgressOrBuilder getProgressOrBuilder()
The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 4;- Specified by:
getProgressOrBuilderin 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:
hasCancelTimein 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:
getCancelTimein interfaceRestoreDatabaseMetadataOrBuilder- Returns:
- The cancelTime.
-
setCancelTime
public RestoreDatabaseMetadata.Builder setCancelTime(com.google.protobuf.Timestamp value)
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
public RestoreDatabaseMetadata.Builder mergeCancelTime(com.google.protobuf.Timestamp value)
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
public RestoreDatabaseMetadata.Builder 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:
getCancelTimeOrBuilderin interfaceRestoreDatabaseMetadataOrBuilder
-
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][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:
getOptimizeDatabaseOperationNamein 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:
getOptimizeDatabaseOperationNameBytesin interfaceRestoreDatabaseMetadataOrBuilder- Returns:
- The bytes for optimizeDatabaseOperationName.
-
setOptimizeDatabaseOperationName
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][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
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][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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
mergeUnknownFields
public final RestoreDatabaseMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreDatabaseMetadata.Builder>
-
-