public static final class OptimizeRestoredDatabaseMetadata.Builder extends GeneratedMessageV3.Builder<OptimizeRestoredDatabaseMetadata.Builder> implements OptimizeRestoredDatabaseMetadataOrBuilder
Metadata type for the long-running operation used to track the progress
of optimizations performed on a newly restored database. This long-running
operation is automatically created by the system after the successful
completion of a database restore, and cannot be cancelled.
Protobuf type google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public OptimizeRestoredDatabaseMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public OptimizeRestoredDatabaseMetadata build()
Returns
public OptimizeRestoredDatabaseMetadata buildPartial()
Returns
public OptimizeRestoredDatabaseMetadata.Builder clear()
Returns
Overrides
public OptimizeRestoredDatabaseMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public OptimizeRestoredDatabaseMetadata.Builder clearName()
Name of the restored database being optimized.
string name = 1 [(.google.api.resource_reference) = { ... }
Returns
public OptimizeRestoredDatabaseMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public OptimizeRestoredDatabaseMetadata.Builder clearProgress()
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
Returns
public OptimizeRestoredDatabaseMetadata.Builder clone()
Returns
Overrides
public OptimizeRestoredDatabaseMetadata getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
Name of the restored database being optimized.
string name = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Name of the restored database being optimized.
string name = 1 [(.google.api.resource_reference) = { ... }
Returns
public OperationProgress getProgress()
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
Returns
public OperationProgress.Builder getProgressBuilder()
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
Returns
public OperationProgressOrBuilder getProgressOrBuilder()
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
Returns
public boolean hasProgress()
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
Returns
Type | Description |
boolean | Whether the progress field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(OptimizeRestoredDatabaseMetadata other)
Parameter
Returns
public OptimizeRestoredDatabaseMetadata.Builder mergeProgress(OperationProgress value)
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
Parameter
Returns
public final OptimizeRestoredDatabaseMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public OptimizeRestoredDatabaseMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public OptimizeRestoredDatabaseMetadata.Builder setName(String value)
Name of the restored database being optimized.
string name = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
public OptimizeRestoredDatabaseMetadata.Builder setNameBytes(ByteString value)
Name of the restored database being optimized.
string name = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public OptimizeRestoredDatabaseMetadata.Builder setProgress(OperationProgress value)
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
Parameter
Returns
public OptimizeRestoredDatabaseMetadata.Builder setProgress(OperationProgress.Builder builderForValue)
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
Parameter
Returns
public OptimizeRestoredDatabaseMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final OptimizeRestoredDatabaseMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides