public static final class CopyBackupMetadata.Builder extends GeneratedMessageV3.Builder<CopyBackupMetadata.Builder> implements CopyBackupMetadataOrBuilder
Metadata type for the google.longrunning.Operation returned by CopyBackup.
Protobuf type google.spanner.admin.database.v1.CopyBackupMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CopyBackupMetadata.BuilderImplements
CopyBackupMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CopyBackupMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CopyBackupMetadata.Builder |
build()
public CopyBackupMetadata build()
Type | Description |
CopyBackupMetadata |
buildPartial()
public CopyBackupMetadata buildPartial()
Type | Description |
CopyBackupMetadata |
clear()
public CopyBackupMetadata.Builder clear()
Type | Description |
CopyBackupMetadata.Builder |
clearCancelTime()
public CopyBackupMetadata.Builder clearCancelTime()
The time at which cancellation of CopyBackup 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;
Type | Description |
CopyBackupMetadata.Builder |
clearField(Descriptors.FieldDescriptor field)
public CopyBackupMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CopyBackupMetadata.Builder |
clearName()
public CopyBackupMetadata.Builder clearName()
The name of the backup being created through the copy operation.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>
.
string name = 1 [(.google.api.resource_reference) = { ... }
Type | Description |
CopyBackupMetadata.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CopyBackupMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CopyBackupMetadata.Builder |
clearProgress()
public CopyBackupMetadata.Builder clearProgress()
The progress of the CopyBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Type | Description |
CopyBackupMetadata.Builder |
clearSourceBackup()
public CopyBackupMetadata.Builder clearSourceBackup()
The name of the source backup that is being copied.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>
.
string source_backup = 2 [(.google.api.resource_reference) = { ... }
Type | Description |
CopyBackupMetadata.Builder | This builder for chaining. |
clone()
public CopyBackupMetadata.Builder clone()
Type | Description |
CopyBackupMetadata.Builder |
getCancelTime()
public Timestamp getCancelTime()
The time at which cancellation of CopyBackup 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;
Type | Description |
Timestamp | The cancelTime. |
getCancelTimeBuilder()
public Timestamp.Builder getCancelTimeBuilder()
The time at which cancellation of CopyBackup 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;
Type | Description |
Builder |
getCancelTimeOrBuilder()
public TimestampOrBuilder getCancelTimeOrBuilder()
The time at which cancellation of CopyBackup 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;
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public CopyBackupMetadata getDefaultInstanceForType()
Type | Description |
CopyBackupMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getName()
public String getName()
The name of the backup being created through the copy operation.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>
.
string name = 1 [(.google.api.resource_reference) = { ... }
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the backup being created through the copy operation.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>
.
string name = 1 [(.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for name. |
getProgress()
public OperationProgress getProgress()
The progress of the CopyBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Type | Description |
OperationProgress | The progress. |
getProgressBuilder()
public OperationProgress.Builder getProgressBuilder()
The progress of the CopyBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Type | Description |
OperationProgress.Builder |
getProgressOrBuilder()
public OperationProgressOrBuilder getProgressOrBuilder()
The progress of the CopyBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Type | Description |
OperationProgressOrBuilder |
getSourceBackup()
public String getSourceBackup()
The name of the source backup that is being copied.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>
.
string source_backup = 2 [(.google.api.resource_reference) = { ... }
Type | Description |
String | The sourceBackup. |
getSourceBackupBytes()
public ByteString getSourceBackupBytes()
The name of the source backup that is being copied.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>
.
string source_backup = 2 [(.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for sourceBackup. |
hasCancelTime()
public boolean hasCancelTime()
The time at which cancellation of CopyBackup 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;
Type | Description |
boolean | Whether the cancelTime field is set. |
hasProgress()
public boolean hasProgress()
The progress of the CopyBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Type | Description |
boolean | Whether the progress field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCancelTime(Timestamp value)
public CopyBackupMetadata.Builder mergeCancelTime(Timestamp value)
The time at which cancellation of CopyBackup 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;
Name | Description |
value | Timestamp |
Type | Description |
CopyBackupMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CopyBackupMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CopyBackupMetadata.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CopyBackupMetadata.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CopyBackupMetadata.Builder |
mergeFrom(CopyBackupMetadata other)
public CopyBackupMetadata.Builder mergeFrom(CopyBackupMetadata other)
Name | Description |
other | CopyBackupMetadata |
Type | Description |
CopyBackupMetadata.Builder |
mergeProgress(OperationProgress value)
public CopyBackupMetadata.Builder mergeProgress(OperationProgress value)
The progress of the CopyBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Name | Description |
value | OperationProgress |
Type | Description |
CopyBackupMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CopyBackupMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CopyBackupMetadata.Builder |
setCancelTime(Timestamp value)
public CopyBackupMetadata.Builder setCancelTime(Timestamp value)
The time at which cancellation of CopyBackup 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;
Name | Description |
value | Timestamp |
Type | Description |
CopyBackupMetadata.Builder |
setCancelTime(Timestamp.Builder builderForValue)
public CopyBackupMetadata.Builder setCancelTime(Timestamp.Builder builderForValue)
The time at which cancellation of CopyBackup 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;
Name | Description |
builderForValue | Builder |
Type | Description |
CopyBackupMetadata.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CopyBackupMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CopyBackupMetadata.Builder |
setName(String value)
public CopyBackupMetadata.Builder setName(String value)
The name of the backup being created through the copy operation.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>
.
string name = 1 [(.google.api.resource_reference) = { ... }
Name | Description |
value | String The name to set. |
Type | Description |
CopyBackupMetadata.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public CopyBackupMetadata.Builder setNameBytes(ByteString value)
The name of the backup being created through the copy operation.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>
.
string name = 1 [(.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
CopyBackupMetadata.Builder | This builder for chaining. |
setProgress(OperationProgress value)
public CopyBackupMetadata.Builder setProgress(OperationProgress value)
The progress of the CopyBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Name | Description |
value | OperationProgress |
Type | Description |
CopyBackupMetadata.Builder |
setProgress(OperationProgress.Builder builderForValue)
public CopyBackupMetadata.Builder setProgress(OperationProgress.Builder builderForValue)
The progress of the CopyBackup operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;
Name | Description |
builderForValue | OperationProgress.Builder |
Type | Description |
CopyBackupMetadata.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CopyBackupMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CopyBackupMetadata.Builder |
setSourceBackup(String value)
public CopyBackupMetadata.Builder setSourceBackup(String value)
The name of the source backup that is being copied.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>
.
string source_backup = 2 [(.google.api.resource_reference) = { ... }
Name | Description |
value | String The sourceBackup to set. |
Type | Description |
CopyBackupMetadata.Builder | This builder for chaining. |
setSourceBackupBytes(ByteString value)
public CopyBackupMetadata.Builder setSourceBackupBytes(ByteString value)
The name of the source backup that is being copied.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>
.
string source_backup = 2 [(.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for sourceBackup to set. |
Type | Description |
CopyBackupMetadata.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CopyBackupMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CopyBackupMetadata.Builder |