Class OptimizeRestoredDatabaseMetadata.Builder (6.82.0)

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

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OptimizeRestoredDatabaseMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides

build()

public OptimizeRestoredDatabaseMetadata build()
Returns
Type Description
OptimizeRestoredDatabaseMetadata

buildPartial()

public OptimizeRestoredDatabaseMetadata buildPartial()
Returns
Type Description
OptimizeRestoredDatabaseMetadata

clear()

public OptimizeRestoredDatabaseMetadata.Builder clear()
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OptimizeRestoredDatabaseMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides

clearName()

public OptimizeRestoredDatabaseMetadata.Builder clearName()

Name of the restored database being optimized.

string name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OptimizeRestoredDatabaseMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides

clearProgress()

public OptimizeRestoredDatabaseMetadata.Builder clearProgress()

The progress of the post-restore optimizations.

.google.spanner.admin.database.v1.OperationProgress progress = 2;

Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder

clone()

public OptimizeRestoredDatabaseMetadata.Builder clone()
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides

getDefaultInstanceForType()

public OptimizeRestoredDatabaseMetadata getDefaultInstanceForType()
Returns
Type Description
OptimizeRestoredDatabaseMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Name of the restored database being optimized.

string name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

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.

getProgress()

public OperationProgress getProgress()

The progress of the post-restore optimizations.

.google.spanner.admin.database.v1.OperationProgress progress = 2;

Returns
Type Description
OperationProgress

The progress.

getProgressBuilder()

public OperationProgress.Builder getProgressBuilder()

The progress of the post-restore optimizations.

.google.spanner.admin.database.v1.OperationProgress progress = 2;

Returns
Type Description
OperationProgress.Builder

getProgressOrBuilder()

public OperationProgressOrBuilder getProgressOrBuilder()

The progress of the post-restore optimizations.

.google.spanner.admin.database.v1.OperationProgress progress = 2;

Returns
Type Description
OperationProgressOrBuilder

hasProgress()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides

mergeFrom(OptimizeRestoredDatabaseMetadata other)

public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(OptimizeRestoredDatabaseMetadata other)
Parameter
Name Description
other OptimizeRestoredDatabaseMetadata
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder

mergeProgress(OperationProgress value)

public OptimizeRestoredDatabaseMetadata.Builder mergeProgress(OperationProgress value)

The progress of the post-restore optimizations.

.google.spanner.admin.database.v1.OperationProgress progress = 2;

Parameter
Name Description
value OperationProgress
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OptimizeRestoredDatabaseMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public OptimizeRestoredDatabaseMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides

setName(String value)

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
Type Description
OptimizeRestoredDatabaseMetadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

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
Type Description
OptimizeRestoredDatabaseMetadata.Builder

This builder for chaining.

setProgress(OperationProgress value)

public OptimizeRestoredDatabaseMetadata.Builder setProgress(OperationProgress value)

The progress of the post-restore optimizations.

.google.spanner.admin.database.v1.OperationProgress progress = 2;

Parameter
Name Description
value OperationProgress
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder

setProgress(OperationProgress.Builder builderForValue)

public OptimizeRestoredDatabaseMetadata.Builder setProgress(OperationProgress.Builder builderForValue)

The progress of the post-restore optimizations.

.google.spanner.admin.database.v1.OperationProgress progress = 2;

Parameter
Name Description
builderForValue OperationProgress.Builder
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OptimizeRestoredDatabaseMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OptimizeRestoredDatabaseMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OptimizeRestoredDatabaseMetadata.Builder
Overrides