Class CopyCloudBackupAction.Builder (6.56.0)

public static final class CopyCloudBackupAction.Builder extends GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder> implements CopyCloudBackupActionOrBuilder

Action that copies a Cloud Spanner database backup.

Protobuf type google.spanner.executor.v1.CopyCloudBackupAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CopyCloudBackupAction build()
Returns
TypeDescription
CopyCloudBackupAction

buildPartial()

public CopyCloudBackupAction buildPartial()
Returns
TypeDescription
CopyCloudBackupAction

clear()

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

clearBackupId()

public CopyCloudBackupAction.Builder clearBackupId()

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

clearExpireTime()

public CopyCloudBackupAction.Builder clearExpireTime()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CopyCloudBackupAction.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceId()

public CopyCloudBackupAction.Builder clearInstanceId()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public CopyCloudBackupAction.Builder clearProjectId()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

clearSourceBackup()

public CopyCloudBackupAction.Builder clearSourceBackup()

The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".

string source_backup = 4;

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

clone()

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

getBackupId()

public String getBackupId()

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Returns
TypeDescription
String

The backupId.

getBackupIdBytes()

public ByteString getBackupIdBytes()

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Returns
TypeDescription
ByteString

The bytes for backupId.

getDefaultInstanceForType()

public CopyCloudBackupAction getDefaultInstanceForType()
Returns
TypeDescription
CopyCloudBackupAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getInstanceId()

public String getInstanceId()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Returns
TypeDescription
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Returns
TypeDescription
ByteString

The bytes for instanceId.

getProjectId()

public String getProjectId()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Returns
TypeDescription
ByteString

The bytes for projectId.

getSourceBackup()

public String getSourceBackup()

The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".

string source_backup = 4;

Returns
TypeDescription
String

The sourceBackup.

getSourceBackupBytes()

public ByteString getSourceBackupBytes()

The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".

string source_backup = 4;

Returns
TypeDescription
ByteString

The bytes for sourceBackup.

hasExpireTime()

public boolean hasExpireTime()

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExpireTime(Timestamp value)

public CopyCloudBackupAction.Builder mergeExpireTime(Timestamp value)

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CopyCloudBackupAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CopyCloudBackupAction other)

public CopyCloudBackupAction.Builder mergeFrom(CopyCloudBackupAction other)
Parameter
NameDescription
otherCopyCloudBackupAction
Returns
TypeDescription
CopyCloudBackupAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBackupId(String value)

public CopyCloudBackupAction.Builder setBackupId(String value)

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Parameter
NameDescription
valueString

The backupId to set.

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

setBackupIdBytes(ByteString value)

public CopyCloudBackupAction.Builder setBackupIdBytes(ByteString value)

The id of the backup to be created, e.g. "test-backup".

string backup_id = 3;

Parameter
NameDescription
valueByteString

The bytes for backupId to set.

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public CopyCloudBackupAction.Builder setExpireTime(Timestamp value)

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CopyCloudBackupAction.Builder

setExpireTime(Timestamp.Builder builderForValue)

public CopyCloudBackupAction.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CopyCloudBackupAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceId(String value)

public CopyCloudBackupAction.Builder setInstanceId(String value)

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Parameter
NameDescription
valueString

The instanceId to set.

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public CopyCloudBackupAction.Builder setInstanceIdBytes(ByteString value)

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 2;

Parameter
NameDescription
valueByteString

The bytes for instanceId to set.

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

setProjectId(String value)

public CopyCloudBackupAction.Builder setProjectId(String value)

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public CopyCloudBackupAction.Builder setProjectIdBytes(ByteString value)

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 1;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

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

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

setSourceBackup(String value)

public CopyCloudBackupAction.Builder setSourceBackup(String value)

The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".

string source_backup = 4;

Parameter
NameDescription
valueString

The sourceBackup to set.

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

setSourceBackupBytes(ByteString value)

public CopyCloudBackupAction.Builder setSourceBackupBytes(ByteString value)

The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".

string source_backup = 4;

Parameter
NameDescription
valueByteString

The bytes for sourceBackup to set.

Returns
TypeDescription
CopyCloudBackupAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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