Class CopyCloudBackupAction.Builder (6.66.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CopyCloudBackupAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CopyCloudBackupAction.Builder
Overrides

build()

public CopyCloudBackupAction build()
Returns
Type Description
CopyCloudBackupAction

buildPartial()

public CopyCloudBackupAction buildPartial()
Returns
Type Description
CopyCloudBackupAction

clear()

public CopyCloudBackupAction.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
CopyCloudBackupAction.Builder

clearField(Descriptors.FieldDescriptor field)

public CopyCloudBackupAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CopyCloudBackupAction.Builder
Overrides

clearInstanceId()

public CopyCloudBackupAction.Builder clearInstanceId()

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

string instance_id = 2;

Returns
Type Description
CopyCloudBackupAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CopyCloudBackupAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CopyCloudBackupAction.Builder
Overrides

clearProjectId()

public CopyCloudBackupAction.Builder clearProjectId()

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

string project_id = 1;

Returns
Type Description
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
Type Description
CopyCloudBackupAction.Builder

This builder for chaining.

clone()

public CopyCloudBackupAction.Builder clone()
Returns
Type Description
CopyCloudBackupAction.Builder
Overrides

getBackupId()

public String getBackupId()

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

string backup_id = 3;

Returns
Type Description
String

The backupId.

getBackupIdBytes()

public ByteString getBackupIdBytes()

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

string backup_id = 3;

Returns
Type Description
ByteString

The bytes for backupId.

getDefaultInstanceForType()

public CopyCloudBackupAction getDefaultInstanceForType()
Returns
Type Description
CopyCloudBackupAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getInstanceId()

public String getInstanceId()

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

string instance_id = 2;

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

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

string instance_id = 2;

Returns
Type Description
ByteString

The bytes for instanceId.

getProjectId()

public String getProjectId()

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

string project_id = 1;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

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

string project_id = 1;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
CopyCloudBackupAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CopyCloudBackupAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CopyCloudBackupAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CopyCloudBackupAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CopyCloudBackupAction.Builder
Overrides

mergeFrom(CopyCloudBackupAction other)

public CopyCloudBackupAction.Builder mergeFrom(CopyCloudBackupAction other)
Parameter
Name Description
other CopyCloudBackupAction
Returns
Type Description
CopyCloudBackupAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CopyCloudBackupAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The backupId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for backupId to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
CopyCloudBackupAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CopyCloudBackupAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The instanceId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
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
Name Description
value String

The projectId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The sourceBackup to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for sourceBackup to set.

Returns
Type Description
CopyCloudBackupAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CopyCloudBackupAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CopyCloudBackupAction.Builder
Overrides