public final class CreateBackupMetadata extends GeneratedMessageV3 implements CreateBackupMetadataOrBuilder
Metadata type for the operation returned by
CreateBackup.
Protobuf type google.spanner.admin.database.v1.CreateBackupMetadata
Fields
public static final int CANCEL_TIME_FIELD_NUMBER
Field Value
public static final int DATABASE_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
public static final int PROGRESS_FIELD_NUMBER
Field Value
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Timestamp getCancelTime()
The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1,
corresponding to Code.CANCELLED
.
.google.protobuf.Timestamp cancel_time = 4;
Returns
public TimestampOrBuilder getCancelTimeOrBuilder()
The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1,
corresponding to Code.CANCELLED
.
.google.protobuf.Timestamp cancel_time = 4;
Returns
public String getDatabase()
The name of the database the backup is created from.
string database = 2 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The database.
|
public ByteString getDatabaseBytes()
The name of the database the backup is created from.
string database = 2 [(.google.api.resource_reference) = { ... }
Returns
public static CreateBackupMetadata getDefaultInstance()
Returns
public CreateBackupMetadata getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
The name of the backup being created.
string name = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
The name of the backup being created.
string name = 1 [(.google.api.resource_reference) = { ... }
Returns
public Parser<CreateBackupMetadata> getParserForType()
Returns
Overrides
public OperationProgress getProgress()
The progress of the
CreateBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Returns
public OperationProgressOrBuilder getProgressOrBuilder()
The progress of the
CreateBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Returns
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasCancelTime()
The time at which cancellation of this operation was received.
Operations.CancelOperation
starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
Clients can use
Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a
google.rpc.Status.code of 1,
corresponding to Code.CANCELLED
.
.google.protobuf.Timestamp cancel_time = 4;
Returns
Type | Description |
boolean | Whether the cancelTime field is set.
|
public boolean hasProgress()
The progress of the
CreateBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Returns
Type | Description |
boolean | Whether the progress field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public static CreateBackupMetadata.Builder newBuilder()
Returns
public static CreateBackupMetadata.Builder newBuilder(CreateBackupMetadata prototype)
Parameter
Returns
public CreateBackupMetadata.Builder newBuilderForType()
Returns
protected CreateBackupMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static CreateBackupMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateBackupMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateBackupMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static CreateBackupMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateBackupMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static CreateBackupMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateBackupMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CreateBackupMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateBackupMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateBackupMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateBackupMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static CreateBackupMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<CreateBackupMetadata> parser()
Returns
public CreateBackupMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions