Class BackupRun.Builder (0.1.0)

public static final class BackupRun.Builder extends GeneratedMessage.Builder<BackupRun.Builder> implements BackupRunOrBuilder

A BackupRun resource.

Protobuf type google.cloud.sql.v1beta4.BackupRun

Implements

BackupRunOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public BackupRun build()
Returns
Type Description
BackupRun

buildPartial()

public BackupRun buildPartial()
Returns
Type Description
BackupRun

clear()

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

clearBackupKind()

public BackupRun.Builder clearBackupKind()

Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 19;

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearDatabaseVersion()

public BackupRun.Builder clearDatabaseVersion()

Output only. The instance database version at the time this backup was made.

.google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearDescription()

public BackupRun.Builder clearDescription()

The description of this run, only applicable to on-demand backups.

string description = 9;

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearDiskEncryptionConfiguration()

public BackupRun.Builder clearDiskEncryptionConfiguration()

Encryption configuration specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16;

Returns
Type Description
BackupRun.Builder

clearDiskEncryptionStatus()

public BackupRun.Builder clearDiskEncryptionStatus()

Encryption status specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;

Returns
Type Description
BackupRun.Builder

clearEndTime()

public BackupRun.Builder clearEndTime()

The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
BackupRun.Builder

clearEnqueuedTime()

public BackupRun.Builder clearEnqueuedTime()

The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp enqueued_time = 3;

Returns
Type Description
BackupRun.Builder

clearError()

public BackupRun.Builder clearError()

Information about why the backup operation failed. This is only present if the run has the FAILED status.

.google.cloud.sql.v1beta4.OperationError error = 7;

Returns
Type Description
BackupRun.Builder

clearId()

public BackupRun.Builder clearId()

The identifier for this backup run. Unique only for a specific Cloud SQL instance.

int64 id = 4;

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearInstance()

public BackupRun.Builder clearInstance()

Name of the database instance.

string instance = 11;

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearKind()

public BackupRun.Builder clearKind()

This is always sql#backupRun.

string kind = 1;

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearLocation()

public BackupRun.Builder clearLocation()

Location of the backups.

string location = 13;

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearMaxChargeableBytes()

public BackupRun.Builder clearMaxChargeableBytes()

Output only. The maximum chargeable bytes for the backup.

optional int64 max_chargeable_bytes = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupRun.Builder

This builder for chaining.

public BackupRun.Builder clearSelfLink()

The URI of this resource.

string self_link = 12;

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearStartTime()

public BackupRun.Builder clearStartTime()

The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
BackupRun.Builder

clearStatus()

public BackupRun.Builder clearStatus()

The status of this run.

.google.cloud.sql.v1beta4.SqlBackupRunStatus status = 2;

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearTimeZone()

public BackupRun.Builder clearTimeZone()

Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.

string time_zone = 23;

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearType()

public BackupRun.Builder clearType()

The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.

.google.cloud.sql.v1beta4.SqlBackupRunType type = 8;

Returns
Type Description
BackupRun.Builder

This builder for chaining.

clearWindowStartTime()

public BackupRun.Builder clearWindowStartTime()

The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp window_start_time = 10;

Returns
Type Description
BackupRun.Builder

getBackupKind()

public SqlBackupKind getBackupKind()

Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 19;

Returns
Type Description
SqlBackupKind

The backupKind.

getBackupKindValue()

public int getBackupKindValue()

Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 19;

Returns
Type Description
int

The enum numeric value on the wire for backupKind.

getDatabaseVersion()

public SqlDatabaseVersion getDatabaseVersion()

Output only. The instance database version at the time this backup was made.

.google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SqlDatabaseVersion

The databaseVersion.

getDatabaseVersionValue()

public int getDatabaseVersionValue()

Output only. The instance database version at the time this backup was made.

.google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for databaseVersion.

getDefaultInstanceForType()

public BackupRun getDefaultInstanceForType()
Returns
Type Description
BackupRun

getDescription()

public String getDescription()

The description of this run, only applicable to on-demand backups.

string description = 9;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of this run, only applicable to on-demand backups.

string description = 9;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDiskEncryptionConfiguration()

public DiskEncryptionConfiguration getDiskEncryptionConfiguration()

Encryption configuration specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16;

Returns
Type Description
DiskEncryptionConfiguration

The diskEncryptionConfiguration.

getDiskEncryptionConfigurationBuilder()

public DiskEncryptionConfiguration.Builder getDiskEncryptionConfigurationBuilder()

Encryption configuration specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16;

Returns
Type Description
DiskEncryptionConfiguration.Builder

getDiskEncryptionConfigurationOrBuilder()

public DiskEncryptionConfigurationOrBuilder getDiskEncryptionConfigurationOrBuilder()

Encryption configuration specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16;

Returns
Type Description
DiskEncryptionConfigurationOrBuilder

getDiskEncryptionStatus()

public DiskEncryptionStatus getDiskEncryptionStatus()

Encryption status specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;

Returns
Type Description
DiskEncryptionStatus

The diskEncryptionStatus.

getDiskEncryptionStatusBuilder()

public DiskEncryptionStatus.Builder getDiskEncryptionStatusBuilder()

Encryption status specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;

Returns
Type Description
DiskEncryptionStatus.Builder

getDiskEncryptionStatusOrBuilder()

public DiskEncryptionStatusOrBuilder getDiskEncryptionStatusOrBuilder()

Encryption status specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;

Returns
Type Description
DiskEncryptionStatusOrBuilder

getEndTime()

public Timestamp getEndTime()

The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
TimestampOrBuilder

getEnqueuedTime()

public Timestamp getEnqueuedTime()

The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp enqueued_time = 3;

Returns
Type Description
Timestamp

The enqueuedTime.

getEnqueuedTimeBuilder()

public Timestamp.Builder getEnqueuedTimeBuilder()

The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp enqueued_time = 3;

Returns
Type Description
Builder

getEnqueuedTimeOrBuilder()

public TimestampOrBuilder getEnqueuedTimeOrBuilder()

The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp enqueued_time = 3;

Returns
Type Description
TimestampOrBuilder

getError()

public OperationError getError()

Information about why the backup operation failed. This is only present if the run has the FAILED status.

.google.cloud.sql.v1beta4.OperationError error = 7;

Returns
Type Description
OperationError

The error.

getErrorBuilder()

public OperationError.Builder getErrorBuilder()

Information about why the backup operation failed. This is only present if the run has the FAILED status.

.google.cloud.sql.v1beta4.OperationError error = 7;

Returns
Type Description
OperationError.Builder

getErrorOrBuilder()

public OperationErrorOrBuilder getErrorOrBuilder()

Information about why the backup operation failed. This is only present if the run has the FAILED status.

.google.cloud.sql.v1beta4.OperationError error = 7;

Returns
Type Description
OperationErrorOrBuilder

getId()

public long getId()

The identifier for this backup run. Unique only for a specific Cloud SQL instance.

int64 id = 4;

Returns
Type Description
long

The id.

getInstance()

public String getInstance()

Name of the database instance.

string instance = 11;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Name of the database instance.

string instance = 11;

Returns
Type Description
ByteString

The bytes for instance.

getKind()

public String getKind()

This is always sql#backupRun.

string kind = 1;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

This is always sql#backupRun.

string kind = 1;

Returns
Type Description
ByteString

The bytes for kind.

getLocation()

public String getLocation()

Location of the backups.

string location = 13;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Location of the backups.

string location = 13;

Returns
Type Description
ByteString

The bytes for location.

getMaxChargeableBytes()

public long getMaxChargeableBytes()

Output only. The maximum chargeable bytes for the backup.

optional int64 max_chargeable_bytes = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The maxChargeableBytes.

public String getSelfLink()

The URI of this resource.

string self_link = 12;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

The URI of this resource.

string self_link = 12;

Returns
Type Description
ByteString

The bytes for selfLink.

getStartTime()

public Timestamp getStartTime()

The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
TimestampOrBuilder

getStatus()

public SqlBackupRunStatus getStatus()

The status of this run.

.google.cloud.sql.v1beta4.SqlBackupRunStatus status = 2;

Returns
Type Description
SqlBackupRunStatus

The status.

getStatusValue()

public int getStatusValue()

The status of this run.

.google.cloud.sql.v1beta4.SqlBackupRunStatus status = 2;

Returns
Type Description
int

The enum numeric value on the wire for status.

getTimeZone()

public String getTimeZone()

Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.

string time_zone = 23;

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.

string time_zone = 23;

Returns
Type Description
ByteString

The bytes for timeZone.

getType()

public SqlBackupRunType getType()

The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.

.google.cloud.sql.v1beta4.SqlBackupRunType type = 8;

Returns
Type Description
SqlBackupRunType

The type.

getTypeValue()

public int getTypeValue()

The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.

.google.cloud.sql.v1beta4.SqlBackupRunType type = 8;

Returns
Type Description
int

The enum numeric value on the wire for type.

getWindowStartTime()

public Timestamp getWindowStartTime()

The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp window_start_time = 10;

Returns
Type Description
Timestamp

The windowStartTime.

getWindowStartTimeBuilder()

public Timestamp.Builder getWindowStartTimeBuilder()

The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp window_start_time = 10;

Returns
Type Description
Builder

getWindowStartTimeOrBuilder()

public TimestampOrBuilder getWindowStartTimeOrBuilder()

The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp window_start_time = 10;

Returns
Type Description
TimestampOrBuilder

hasDiskEncryptionConfiguration()

public boolean hasDiskEncryptionConfiguration()

Encryption configuration specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16;

Returns
Type Description
boolean

Whether the diskEncryptionConfiguration field is set.

hasDiskEncryptionStatus()

public boolean hasDiskEncryptionStatus()

Encryption status specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;

Returns
Type Description
boolean

Whether the diskEncryptionStatus field is set.

hasEndTime()

public boolean hasEndTime()

The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
boolean

Whether the endTime field is set.

hasEnqueuedTime()

public boolean hasEnqueuedTime()

The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp enqueued_time = 3;

Returns
Type Description
boolean

Whether the enqueuedTime field is set.

hasError()

public boolean hasError()

Information about why the backup operation failed. This is only present if the run has the FAILED status.

.google.cloud.sql.v1beta4.OperationError error = 7;

Returns
Type Description
boolean

Whether the error field is set.

hasMaxChargeableBytes()

public boolean hasMaxChargeableBytes()

Output only. The maximum chargeable bytes for the backup.

optional int64 max_chargeable_bytes = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the maxChargeableBytes field is set.

hasStartTime()

public boolean hasStartTime()

The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
boolean

Whether the startTime field is set.

hasWindowStartTime()

public boolean hasWindowStartTime()

The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp window_start_time = 10;

Returns
Type Description
boolean

Whether the windowStartTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDiskEncryptionConfiguration(DiskEncryptionConfiguration value)

public BackupRun.Builder mergeDiskEncryptionConfiguration(DiskEncryptionConfiguration value)

Encryption configuration specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16;

Parameter
Name Description
value DiskEncryptionConfiguration
Returns
Type Description
BackupRun.Builder

mergeDiskEncryptionStatus(DiskEncryptionStatus value)

public BackupRun.Builder mergeDiskEncryptionStatus(DiskEncryptionStatus value)

Encryption status specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;

Parameter
Name Description
value DiskEncryptionStatus
Returns
Type Description
BackupRun.Builder

mergeEndTime(Timestamp value)

public BackupRun.Builder mergeEndTime(Timestamp value)

The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRun.Builder

mergeEnqueuedTime(Timestamp value)

public BackupRun.Builder mergeEnqueuedTime(Timestamp value)

The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp enqueued_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRun.Builder

mergeError(OperationError value)

public BackupRun.Builder mergeError(OperationError value)

Information about why the backup operation failed. This is only present if the run has the FAILED status.

.google.cloud.sql.v1beta4.OperationError error = 7;

Parameter
Name Description
value OperationError
Returns
Type Description
BackupRun.Builder

mergeFrom(BackupRun other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public BackupRun.Builder mergeStartTime(Timestamp value)

The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp start_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRun.Builder

mergeWindowStartTime(Timestamp value)

public BackupRun.Builder mergeWindowStartTime(Timestamp value)

The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp window_start_time = 10;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRun.Builder

setBackupKind(SqlBackupKind value)

public BackupRun.Builder setBackupKind(SqlBackupKind value)

Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 19;

Parameter
Name Description
value SqlBackupKind

The backupKind to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setBackupKindValue(int value)

public BackupRun.Builder setBackupKindValue(int value)

Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 19;

Parameter
Name Description
value int

The enum numeric value on the wire for backupKind to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setDatabaseVersion(SqlDatabaseVersion value)

public BackupRun.Builder setDatabaseVersion(SqlDatabaseVersion value)

Output only. The instance database version at the time this backup was made.

.google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SqlDatabaseVersion

The databaseVersion to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setDatabaseVersionValue(int value)

public BackupRun.Builder setDatabaseVersionValue(int value)

Output only. The instance database version at the time this backup was made.

.google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for databaseVersion to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setDescription(String value)

public BackupRun.Builder setDescription(String value)

The description of this run, only applicable to on-demand backups.

string description = 9;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public BackupRun.Builder setDescriptionBytes(ByteString value)

The description of this run, only applicable to on-demand backups.

string description = 9;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setDiskEncryptionConfiguration(DiskEncryptionConfiguration value)

public BackupRun.Builder setDiskEncryptionConfiguration(DiskEncryptionConfiguration value)

Encryption configuration specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16;

Parameter
Name Description
value DiskEncryptionConfiguration
Returns
Type Description
BackupRun.Builder

setDiskEncryptionConfiguration(DiskEncryptionConfiguration.Builder builderForValue)

public BackupRun.Builder setDiskEncryptionConfiguration(DiskEncryptionConfiguration.Builder builderForValue)

Encryption configuration specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionConfiguration disk_encryption_configuration = 16;

Parameter
Name Description
builderForValue DiskEncryptionConfiguration.Builder
Returns
Type Description
BackupRun.Builder

setDiskEncryptionStatus(DiskEncryptionStatus value)

public BackupRun.Builder setDiskEncryptionStatus(DiskEncryptionStatus value)

Encryption status specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;

Parameter
Name Description
value DiskEncryptionStatus
Returns
Type Description
BackupRun.Builder

setDiskEncryptionStatus(DiskEncryptionStatus.Builder builderForValue)

public BackupRun.Builder setDiskEncryptionStatus(DiskEncryptionStatus.Builder builderForValue)

Encryption status specific to a backup.

.google.cloud.sql.v1beta4.DiskEncryptionStatus disk_encryption_status = 17;

Parameter
Name Description
builderForValue DiskEncryptionStatus.Builder
Returns
Type Description
BackupRun.Builder

setEndTime(Timestamp value)

public BackupRun.Builder setEndTime(Timestamp value)

The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRun.Builder

setEndTime(Timestamp.Builder builderForValue)

public BackupRun.Builder setEndTime(Timestamp.Builder builderForValue)

The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupRun.Builder

setEnqueuedTime(Timestamp value)

public BackupRun.Builder setEnqueuedTime(Timestamp value)

The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp enqueued_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRun.Builder

setEnqueuedTime(Timestamp.Builder builderForValue)

public BackupRun.Builder setEnqueuedTime(Timestamp.Builder builderForValue)

The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp enqueued_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupRun.Builder

setError(OperationError value)

public BackupRun.Builder setError(OperationError value)

Information about why the backup operation failed. This is only present if the run has the FAILED status.

.google.cloud.sql.v1beta4.OperationError error = 7;

Parameter
Name Description
value OperationError
Returns
Type Description
BackupRun.Builder

setError(OperationError.Builder builderForValue)

public BackupRun.Builder setError(OperationError.Builder builderForValue)

Information about why the backup operation failed. This is only present if the run has the FAILED status.

.google.cloud.sql.v1beta4.OperationError error = 7;

Parameter
Name Description
builderForValue OperationError.Builder
Returns
Type Description
BackupRun.Builder

setId(long value)

public BackupRun.Builder setId(long value)

The identifier for this backup run. Unique only for a specific Cloud SQL instance.

int64 id = 4;

Parameter
Name Description
value long

The id to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setInstance(String value)

public BackupRun.Builder setInstance(String value)

Name of the database instance.

string instance = 11;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public BackupRun.Builder setInstanceBytes(ByteString value)

Name of the database instance.

string instance = 11;

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setKind(String value)

public BackupRun.Builder setKind(String value)

This is always sql#backupRun.

string kind = 1;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setKindBytes(ByteString value)

public BackupRun.Builder setKindBytes(ByteString value)

This is always sql#backupRun.

string kind = 1;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setLocation(String value)

public BackupRun.Builder setLocation(String value)

Location of the backups.

string location = 13;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public BackupRun.Builder setLocationBytes(ByteString value)

Location of the backups.

string location = 13;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setMaxChargeableBytes(long value)

public BackupRun.Builder setMaxChargeableBytes(long value)

Output only. The maximum chargeable bytes for the backup.

optional int64 max_chargeable_bytes = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The maxChargeableBytes to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

public BackupRun.Builder setSelfLink(String value)

The URI of this resource.

string self_link = 12;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public BackupRun.Builder setSelfLinkBytes(ByteString value)

The URI of this resource.

string self_link = 12;

Parameter
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setStartTime(Timestamp value)

public BackupRun.Builder setStartTime(Timestamp value)

The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp start_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRun.Builder

setStartTime(Timestamp.Builder builderForValue)

public BackupRun.Builder setStartTime(Timestamp.Builder builderForValue)

The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp start_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupRun.Builder

setStatus(SqlBackupRunStatus value)

public BackupRun.Builder setStatus(SqlBackupRunStatus value)

The status of this run.

.google.cloud.sql.v1beta4.SqlBackupRunStatus status = 2;

Parameter
Name Description
value SqlBackupRunStatus

The status to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setStatusValue(int value)

public BackupRun.Builder setStatusValue(int value)

The status of this run.

.google.cloud.sql.v1beta4.SqlBackupRunStatus status = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for status to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setTimeZone(String value)

public BackupRun.Builder setTimeZone(String value)

Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.

string time_zone = 23;

Parameter
Name Description
value String

The timeZone to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setTimeZoneBytes(ByteString value)

public BackupRun.Builder setTimeZoneBytes(ByteString value)

Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.

string time_zone = 23;

Parameter
Name Description
value ByteString

The bytes for timeZone to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setType(SqlBackupRunType value)

public BackupRun.Builder setType(SqlBackupRunType value)

The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.

.google.cloud.sql.v1beta4.SqlBackupRunType type = 8;

Parameter
Name Description
value SqlBackupRunType

The type to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setTypeValue(int value)

public BackupRun.Builder setTypeValue(int value)

The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.

.google.cloud.sql.v1beta4.SqlBackupRunType type = 8;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
BackupRun.Builder

This builder for chaining.

setWindowStartTime(Timestamp value)

public BackupRun.Builder setWindowStartTime(Timestamp value)

The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp window_start_time = 10;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupRun.Builder

setWindowStartTime(Timestamp.Builder builderForValue)

public BackupRun.Builder setWindowStartTime(Timestamp.Builder builderForValue)

The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp window_start_time = 10;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupRun.Builder