Class OptimizeRestoredDatabaseMetadata.Builder (6.55.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OptimizeRestoredDatabaseMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides

build()

public OptimizeRestoredDatabaseMetadata build()
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata

buildPartial()

public OptimizeRestoredDatabaseMetadata buildPartial()
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata

clear()

public OptimizeRestoredDatabaseMetadata.Builder clear()
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OptimizeRestoredDatabaseMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides

clearName()

public OptimizeRestoredDatabaseMetadata.Builder clearName()

Name of the restored database being optimized.

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

Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OptimizeRestoredDatabaseMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides

clearProgress()

public OptimizeRestoredDatabaseMetadata.Builder clearProgress()

The progress of the post-restore optimizations.

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

Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder

clone()

public OptimizeRestoredDatabaseMetadata.Builder clone()
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides

getDefaultInstanceForType()

public OptimizeRestoredDatabaseMetadata getDefaultInstanceForType()
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Name of the restored database being optimized.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the restored database being optimized.

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

Returns
TypeDescription
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
TypeDescription
OperationProgress

The progress.

getProgressBuilder()

public OperationProgress.Builder getProgressBuilder()

The progress of the post-restore optimizations.

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

Returns
TypeDescription
OperationProgress.Builder

getProgressOrBuilder()

public OperationProgressOrBuilder getProgressOrBuilder()

The progress of the post-restore optimizations.

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

Returns
TypeDescription
OperationProgressOrBuilder

hasProgress()

public boolean hasProgress()

The progress of the post-restore optimizations.

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

Returns
TypeDescription
boolean

Whether the progress field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides

mergeFrom(OptimizeRestoredDatabaseMetadata other)

public OptimizeRestoredDatabaseMetadata.Builder mergeFrom(OptimizeRestoredDatabaseMetadata other)
Parameter
NameDescription
otherOptimizeRestoredDatabaseMetadata
Returns
TypeDescription
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
NameDescription
valueOperationProgress
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OptimizeRestoredDatabaseMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public OptimizeRestoredDatabaseMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueOperationProgress
Returns
TypeDescription
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
NameDescription
builderForValueOperationProgress.Builder
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder

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

public OptimizeRestoredDatabaseMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OptimizeRestoredDatabaseMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides