Class OptimizeRestoredDatabaseMetadata (6.51.0)

public final class OptimizeRestoredDatabaseMetadata extends GeneratedMessageV3 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OptimizeRestoredDatabaseMetadata

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROGRESS_FIELD_NUMBER

public static final int PROGRESS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OptimizeRestoredDatabaseMetadata getDefaultInstance()
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static OptimizeRestoredDatabaseMetadata.Builder newBuilder()
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder

newBuilder(OptimizeRestoredDatabaseMetadata prototype)

public static OptimizeRestoredDatabaseMetadata.Builder newBuilder(OptimizeRestoredDatabaseMetadata prototype)
Parameter
NameDescription
prototypeOptimizeRestoredDatabaseMetadata
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder

parseDelimitedFrom(InputStream input)

public static OptimizeRestoredDatabaseMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OptimizeRestoredDatabaseMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OptimizeRestoredDatabaseMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OptimizeRestoredDatabaseMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OptimizeRestoredDatabaseMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OptimizeRestoredDatabaseMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OptimizeRestoredDatabaseMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OptimizeRestoredDatabaseMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OptimizeRestoredDatabaseMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OptimizeRestoredDatabaseMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OptimizeRestoredDatabaseMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OptimizeRestoredDatabaseMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OptimizeRestoredDatabaseMetadata> parser()
Returns
TypeDescription
Parser<OptimizeRestoredDatabaseMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public OptimizeRestoredDatabaseMetadata getDefaultInstanceForType()
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata

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.

getParserForType()

public Parser<OptimizeRestoredDatabaseMetadata> getParserForType()
Returns
TypeDescription
Parser<OptimizeRestoredDatabaseMetadata>
Overrides

getProgress()

public OperationProgress getProgress()

The progress of the post-restore optimizations.

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

Returns
TypeDescription
OperationProgress

The progress.

getProgressOrBuilder()

public OperationProgressOrBuilder getProgressOrBuilder()

The progress of the post-restore optimizations.

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

Returns
TypeDescription
OperationProgressOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OptimizeRestoredDatabaseMetadata.Builder newBuilderForType()
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OptimizeRestoredDatabaseMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OptimizeRestoredDatabaseMetadata.Builder toBuilder()
Returns
TypeDescription
OptimizeRestoredDatabaseMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException