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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public OptimizeRestoredDatabaseMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public OptimizeRestoredDatabaseMetadata build()
public OptimizeRestoredDatabaseMetadata buildPartial()
public OptimizeRestoredDatabaseMetadata.Builder clear()
Overrides
public OptimizeRestoredDatabaseMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public OptimizeRestoredDatabaseMetadata.Builder clearName()
Name of the restored database being optimized.
string name = 1 [(.google.api.resource_reference) = { ... }
public OptimizeRestoredDatabaseMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public OptimizeRestoredDatabaseMetadata.Builder clearProgress()
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
public OptimizeRestoredDatabaseMetadata.Builder clone()
Overrides
public OptimizeRestoredDatabaseMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
public OperationProgress getProgress()
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
public OperationProgress.Builder getProgressBuilder()
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
public OperationProgressOrBuilder getProgressOrBuilder()
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
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()
Overrides
public final boolean isInitialized()
Overrides
public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(OptimizeRestoredDatabaseMetadata other)
public OptimizeRestoredDatabaseMetadata.Builder mergeProgress(OperationProgress value)
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
public final OptimizeRestoredDatabaseMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public OptimizeRestoredDatabaseMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
public OptimizeRestoredDatabaseMetadata.Builder setProgress(OperationProgress value)
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
public OptimizeRestoredDatabaseMetadata.Builder setProgress(OperationProgress.Builder builderForValue)
The progress of the post-restore optimizations.
.google.spanner.admin.database.v1.OperationProgress progress = 2;
public OptimizeRestoredDatabaseMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final OptimizeRestoredDatabaseMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides