Class UpdateCloudBackupAction.Builder (6.108.0)

public static final class UpdateCloudBackupAction.Builder extends GeneratedMessage.Builder<UpdateCloudBackupAction.Builder> implements UpdateCloudBackupActionOrBuilder

Action that updates a Cloud Spanner database backup.

Protobuf type google.spanner.executor.v1.UpdateCloudBackupAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public UpdateCloudBackupAction build()
Returns
Type Description
UpdateCloudBackupAction

buildPartial()

public UpdateCloudBackupAction buildPartial()
Returns
Type Description
UpdateCloudBackupAction

clear()

public UpdateCloudBackupAction.Builder clear()
Returns
Type Description
UpdateCloudBackupAction.Builder
Overrides

clearBackupId()

public UpdateCloudBackupAction.Builder clearBackupId()

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

string backup_id = 3;

Returns
Type Description
UpdateCloudBackupAction.Builder

This builder for chaining.

clearExpireTime()

public UpdateCloudBackupAction.Builder clearExpireTime()

Output only. Updated value of expire_time, this is the only field that supported to be updated.

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

Returns
Type Description
UpdateCloudBackupAction.Builder

clearInstanceId()

public UpdateCloudBackupAction.Builder clearInstanceId()

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

string instance_id = 2;

Returns
Type Description
UpdateCloudBackupAction.Builder

This builder for chaining.

clearProjectId()

public UpdateCloudBackupAction.Builder clearProjectId()

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

string project_id = 1;

Returns
Type Description
UpdateCloudBackupAction.Builder

This builder for chaining.

getBackupId()

public String getBackupId()

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

string backup_id = 3;

Returns
Type Description
String

The backupId.

getBackupIdBytes()

public ByteString getBackupIdBytes()

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

string backup_id = 3;

Returns
Type Description
ByteString

The bytes for backupId.

getDefaultInstanceForType()

public UpdateCloudBackupAction getDefaultInstanceForType()
Returns
Type Description
UpdateCloudBackupAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

Output only. Updated value of expire_time, this is the only field that supported to be updated.

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

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. Updated value of expire_time, this is the only field that supported to be updated.

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

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. Updated value of expire_time, this is the only field that supported to be updated.

.google.protobuf.Timestamp expire_time = 4 [(.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.

hasExpireTime()

public boolean hasExpireTime()

Output only. Updated value of expire_time, this is the only field that supported to be updated.

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

Returns
Type Description
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public UpdateCloudBackupAction.Builder mergeExpireTime(Timestamp value)

Output only. Updated value of expire_time, this is the only field that supported to be updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
UpdateCloudBackupAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateCloudBackupAction other)

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

setBackupId(String value)

public UpdateCloudBackupAction.Builder setBackupId(String value)

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

string backup_id = 3;

Parameter
Name Description
value String

The backupId to set.

Returns
Type Description
UpdateCloudBackupAction.Builder

This builder for chaining.

setBackupIdBytes(ByteString value)

public UpdateCloudBackupAction.Builder setBackupIdBytes(ByteString value)

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

string backup_id = 3;

Parameter
Name Description
value ByteString

The bytes for backupId to set.

Returns
Type Description
UpdateCloudBackupAction.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public UpdateCloudBackupAction.Builder setExpireTime(Timestamp value)

Output only. Updated value of expire_time, this is the only field that supported to be updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
UpdateCloudBackupAction.Builder

setExpireTime(Timestamp.Builder builderForValue)

public UpdateCloudBackupAction.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. Updated value of expire_time, this is the only field that supported to be updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateCloudBackupAction.Builder

setInstanceId(String value)

public UpdateCloudBackupAction.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
UpdateCloudBackupAction.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public UpdateCloudBackupAction.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
UpdateCloudBackupAction.Builder

This builder for chaining.

setProjectId(String value)

public UpdateCloudBackupAction.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
UpdateCloudBackupAction.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public UpdateCloudBackupAction.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
UpdateCloudBackupAction.Builder

This builder for chaining.