public static final class Backup.Builder extends GeneratedMessage.Builder<Backup.Builder> implements BackupOrBuilderA backup resource.
Protobuf type google.cloud.sql.v1beta4.Backup
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Backup.BuilderImplements
BackupOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Backup build()| Returns | |
|---|---|
| Type | Description |
Backup |
|
buildPartial()
public Backup buildPartial()| Returns | |
|---|---|
| Type | Description |
Backup |
|
clear()
public Backup.Builder clear()| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearBackupInterval()
public Backup.Builder clearBackupInterval()Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.
.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearBackupKind()
public Backup.Builder clearBackupKind()Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearBackupRun()
public Backup.Builder clearBackupRun()Output only. The mapping to backup run resource used for IAM validations.
string backup_run = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearDatabaseVersion()
public Backup.Builder clearDatabaseVersion()Output only. The database version of the instance of at the time this backup was made.
.google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearDescription()
public Backup.Builder clearDescription()The description of this backup.
string description = 5;
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearError()
public Backup.Builder clearError()Output only. Information about why the backup operation fails (for example, when the backup state fails).
.google.cloud.sql.v1beta4.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearExpiration()
public Backup.Builder clearExpiration()| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearExpiryTime()
public Backup.Builder clearExpiryTime()Backup expiration time. A UTC timestamp of when this resource expired.
.google.protobuf.Timestamp expiry_time = 17;
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearInstance()
public Backup.Builder clearInstance()The name of the database instance.
string instance = 6;
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearInstanceDeletionTime()
public Backup.Builder clearInstanceDeletionTime()Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.
.google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearInstanceSettings()
public Backup.Builder clearInstanceSettings()Optional. Output only. Instance setting of the source instance that's associated with this backup.
.google.cloud.sql.v1beta4.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearKind()
public Backup.Builder clearKind() Output only. This is always sql#backup.
string kind = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearKmsKey()
public Backup.Builder clearKmsKey()Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.
string kms_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearKmsKeyVersion()
public Backup.Builder clearKmsKeyVersion()Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.
string kms_key_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearLocation()
public Backup.Builder clearLocation()The storage location of the backups. The location can be multi-regional.
string location = 7;
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearMaxChargeableBytes()
public Backup.Builder clearMaxChargeableBytes()Output only. The maximum chargeable bytes for the backup.
optional int64 max_chargeable_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearName()
public Backup.Builder clearName()Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearSatisfiesPzi()
public Backup.Builder clearSatisfiesPzi()Output only. This status indicates whether the backup satisfies PZI.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearSatisfiesPzs()
public Backup.Builder clearSatisfiesPzs()Output only. This status indicates whether the backup satisfies PZS.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearSelfLink()
public Backup.Builder clearSelfLink()Output only. The URI of this resource.
string self_link = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearState()
public Backup.Builder clearState()Output only. The state of this backup.
.google.cloud.sql.v1beta4.Backup.SqlBackupState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearTimeZone()
public Backup.Builder clearTimeZone()Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.
string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearTtlDays()
public Backup.Builder clearTtlDays()Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.
int64 ttl_days = 16 [(.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearType()
public Backup.Builder clearType()Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND", or “FINAL”.
.google.cloud.sql.v1beta4.Backup.SqlBackupType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
getBackupInterval()
public Interval getBackupInterval()Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.
.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Interval |
The backupInterval. |
getBackupIntervalBuilder()
public Interval.Builder getBackupIntervalBuilder()Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.
.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Interval.Builder |
|
getBackupIntervalOrBuilder()
public IntervalOrBuilder getBackupIntervalOrBuilder()Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.
.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.type.IntervalOrBuilder |
|
getBackupKind()
public SqlBackupKind getBackupKind()Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SqlBackupKind |
The backupKind. |
getBackupKindValue()
public int getBackupKindValue()Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for backupKind. |
getBackupRun()
public String getBackupRun()Output only. The mapping to backup run resource used for IAM validations.
string backup_run = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The backupRun. |
getBackupRunBytes()
public ByteString getBackupRunBytes()Output only. The mapping to backup run resource used for IAM validations.
string backup_run = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for backupRun. |
getDatabaseVersion()
public SqlDatabaseVersion getDatabaseVersion()Output only. The database version of the instance of at the time this backup was made.
.google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SqlDatabaseVersion |
The databaseVersion. |
getDatabaseVersionValue()
public int getDatabaseVersionValue()Output only. The database version of the instance of at the time this backup was made.
.google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for databaseVersion. |
getDefaultInstanceForType()
public Backup getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Backup |
|
getDescription()
public String getDescription()The description of this backup.
string description = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()The description of this backup.
string description = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getError()
public OperationError getError()Output only. Information about why the backup operation fails (for example, when the backup state fails).
.google.cloud.sql.v1beta4.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OperationError |
The error. |
getErrorBuilder()
public OperationError.Builder getErrorBuilder()Output only. Information about why the backup operation fails (for example, when the backup state fails).
.google.cloud.sql.v1beta4.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OperationError.Builder |
|
getErrorOrBuilder()
public OperationErrorOrBuilder getErrorOrBuilder()Output only. Information about why the backup operation fails (for example, when the backup state fails).
.google.cloud.sql.v1beta4.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OperationErrorOrBuilder |
|
getExpirationCase()
public Backup.ExpirationCase getExpirationCase()| Returns | |
|---|---|
| Type | Description |
Backup.ExpirationCase |
|
getExpiryTime()
public Timestamp getExpiryTime()Backup expiration time. A UTC timestamp of when this resource expired.
.google.protobuf.Timestamp expiry_time = 17;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The expiryTime. |
getExpiryTimeBuilder()
public Timestamp.Builder getExpiryTimeBuilder()Backup expiration time. A UTC timestamp of when this resource expired.
.google.protobuf.Timestamp expiry_time = 17;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getExpiryTimeOrBuilder()
public TimestampOrBuilder getExpiryTimeOrBuilder()Backup expiration time. A UTC timestamp of when this resource expired.
.google.protobuf.Timestamp expiry_time = 17;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getInstance()
public String getInstance()The name of the database instance.
string instance = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The instance. |
getInstanceBytes()
public ByteString getInstanceBytes()The name of the database instance.
string instance = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for instance. |
getInstanceDeletionTime()
public Timestamp getInstanceDeletionTime()Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.
.google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The instanceDeletionTime. |
getInstanceDeletionTimeBuilder()
public Timestamp.Builder getInstanceDeletionTimeBuilder()Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.
.google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getInstanceDeletionTimeOrBuilder()
public TimestampOrBuilder getInstanceDeletionTimeOrBuilder()Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.
.google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getInstanceSettings()
public DatabaseInstance getInstanceSettings()Optional. Output only. Instance setting of the source instance that's associated with this backup.
.google.cloud.sql.v1beta4.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DatabaseInstance |
The instanceSettings. |
getInstanceSettingsBuilder()
public DatabaseInstance.Builder getInstanceSettingsBuilder()Optional. Output only. Instance setting of the source instance that's associated with this backup.
.google.cloud.sql.v1beta4.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DatabaseInstance.Builder |
|
getInstanceSettingsOrBuilder()
public DatabaseInstanceOrBuilder getInstanceSettingsOrBuilder()Optional. Output only. Instance setting of the source instance that's associated with this backup.
.google.cloud.sql.v1beta4.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DatabaseInstanceOrBuilder |
|
getKind()
public String getKind() Output only. This is always sql#backup.
string kind = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() Output only. This is always sql#backup.
string kind = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getKmsKey()
public String getKmsKey()Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.
string kms_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The kmsKey. |
getKmsKeyBytes()
public ByteString getKmsKeyBytes()Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.
string kms_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kmsKey. |
getKmsKeyVersion()
public String getKmsKeyVersion()Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.
string kms_key_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The kmsKeyVersion. |
getKmsKeyVersionBytes()
public ByteString getKmsKeyVersionBytes()Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.
string kms_key_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kmsKeyVersion. |
getLocation()
public String getLocation()The storage location of the backups. The location can be multi-regional.
string location = 7;
| Returns | |
|---|---|
| Type | Description |
String |
The location. |
getLocationBytes()
public ByteString getLocationBytes()The storage location of the backups. The location can be multi-regional.
string location = 7;
| 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 = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The maxChargeableBytes. |
getName()
public String getName()Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSatisfiesPzi()
public BoolValue getSatisfiesPzi()Output only. This status indicates whether the backup satisfies PZI.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BoolValue |
The satisfiesPzi. |
getSatisfiesPziBuilder()
public BoolValue.Builder getSatisfiesPziBuilder()Output only. This status indicates whether the backup satisfies PZI.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getSatisfiesPziOrBuilder()
public BoolValueOrBuilder getSatisfiesPziOrBuilder()Output only. This status indicates whether the backup satisfies PZI.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BoolValueOrBuilder |
|
getSatisfiesPzs()
public BoolValue getSatisfiesPzs()Output only. This status indicates whether the backup satisfies PZS.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BoolValue |
The satisfiesPzs. |
getSatisfiesPzsBuilder()
public BoolValue.Builder getSatisfiesPzsBuilder()Output only. This status indicates whether the backup satisfies PZS.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getSatisfiesPzsOrBuilder()
public BoolValueOrBuilder getSatisfiesPzsOrBuilder()Output only. This status indicates whether the backup satisfies PZS.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BoolValueOrBuilder |
|
getSelfLink()
public String getSelfLink()Output only. The URI of this resource.
string self_link = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()Output only. The URI of this resource.
string self_link = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for selfLink. |
getState()
public Backup.SqlBackupState getState()Output only. The state of this backup.
.google.cloud.sql.v1beta4.Backup.SqlBackupState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.SqlBackupState |
The state. |
getStateValue()
public int getStateValue()Output only. The state of this backup.
.google.cloud.sql.v1beta4.Backup.SqlBackupState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
getTimeZone()
public String getTimeZone()Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.
string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The timeZone. |
getTimeZoneBytes()
public ByteString getTimeZoneBytes()Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.
string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for timeZone. |
getTtlDays()
public long getTtlDays()Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.
int64 ttl_days = 16 [(.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The ttlDays. |
getType()
public Backup.SqlBackupType getType()Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND", or “FINAL”.
.google.cloud.sql.v1beta4.Backup.SqlBackupType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.SqlBackupType |
The type. |
getTypeValue()
public int getTypeValue()Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND", or “FINAL”.
.google.cloud.sql.v1beta4.Backup.SqlBackupType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
hasBackupInterval()
public boolean hasBackupInterval()Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.
.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backupInterval field is set. |
hasError()
public boolean hasError()Output only. Information about why the backup operation fails (for example, when the backup state fails).
.google.cloud.sql.v1beta4.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the error field is set. |
hasExpiryTime()
public boolean hasExpiryTime()Backup expiration time. A UTC timestamp of when this resource expired.
.google.protobuf.Timestamp expiry_time = 17;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the expiryTime field is set. |
hasInstanceDeletionTime()
public boolean hasInstanceDeletionTime()Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.
.google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the instanceDeletionTime field is set. |
hasInstanceSettings()
public boolean hasInstanceSettings()Optional. Output only. Instance setting of the source instance that's associated with this backup.
.google.cloud.sql.v1beta4.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the instanceSettings field is set. |
hasMaxChargeableBytes()
public boolean hasMaxChargeableBytes()Output only. The maximum chargeable bytes for the backup.
optional int64 max_chargeable_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maxChargeableBytes field is set. |
hasSatisfiesPzi()
public boolean hasSatisfiesPzi()Output only. This status indicates whether the backup satisfies PZI.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the satisfiesPzi field is set. |
hasSatisfiesPzs()
public boolean hasSatisfiesPzs()Output only. This status indicates whether the backup satisfies PZS.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the satisfiesPzs field is set. |
hasTtlDays()
public boolean hasTtlDays()Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.
int64 ttl_days = 16 [(.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the ttlDays field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBackupInterval(Interval value)
public Backup.Builder mergeBackupInterval(Interval value)Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.
.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Interval |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeError(OperationError value)
public Backup.Builder mergeError(OperationError value)Output only. Information about why the backup operation fails (for example, when the backup state fails).
.google.cloud.sql.v1beta4.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
OperationError |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeExpiryTime(Timestamp value)
public Backup.Builder mergeExpiryTime(Timestamp value)Backup expiration time. A UTC timestamp of when this resource expired.
.google.protobuf.Timestamp expiry_time = 17;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeFrom(Backup other)
public Backup.Builder mergeFrom(Backup other)| Parameter | |
|---|---|
| Name | Description |
other |
Backup |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Backup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Backup.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeInstanceDeletionTime(Timestamp value)
public Backup.Builder mergeInstanceDeletionTime(Timestamp value)Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.
.google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeInstanceSettings(DatabaseInstance value)
public Backup.Builder mergeInstanceSettings(DatabaseInstance value)Optional. Output only. Instance setting of the source instance that's associated with this backup.
.google.cloud.sql.v1beta4.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
DatabaseInstance |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeSatisfiesPzi(BoolValue value)
public Backup.Builder mergeSatisfiesPzi(BoolValue value)Output only. This status indicates whether the backup satisfies PZI.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeSatisfiesPzs(BoolValue value)
public Backup.Builder mergeSatisfiesPzs(BoolValue value)Output only. This status indicates whether the backup satisfies PZS.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupInterval(Interval value)
public Backup.Builder setBackupInterval(Interval value)Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.
.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Interval |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupInterval(Interval.Builder builderForValue)
public Backup.Builder setBackupInterval(Interval.Builder builderForValue)Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.
.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Interval.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupKind(SqlBackupKind value)
public Backup.Builder setBackupKind(SqlBackupKind value)Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
SqlBackupKindThe backupKind to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setBackupKindValue(int value)
public Backup.Builder setBackupKindValue(int value)Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
.google.cloud.sql.v1beta4.SqlBackupKind backup_kind = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for backupKind to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setBackupRun(String value)
public Backup.Builder setBackupRun(String value)Output only. The mapping to backup run resource used for IAM validations.
string backup_run = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe backupRun to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setBackupRunBytes(ByteString value)
public Backup.Builder setBackupRunBytes(ByteString value)Output only. The mapping to backup run resource used for IAM validations.
string backup_run = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for backupRun to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setDatabaseVersion(SqlDatabaseVersion value)
public Backup.Builder setDatabaseVersion(SqlDatabaseVersion value)Output only. The database version of the instance of at the time this backup was made.
.google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
SqlDatabaseVersionThe databaseVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setDatabaseVersionValue(int value)
public Backup.Builder setDatabaseVersionValue(int value)Output only. The database version of the instance of at the time this backup was made.
.google.cloud.sql.v1beta4.SqlDatabaseVersion database_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for databaseVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setDescription(String value)
public Backup.Builder setDescription(String value)The description of this backup.
string description = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Backup.Builder setDescriptionBytes(ByteString value)The description of this backup.
string description = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setError(OperationError value)
public Backup.Builder setError(OperationError value)Output only. Information about why the backup operation fails (for example, when the backup state fails).
.google.cloud.sql.v1beta4.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
OperationError |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setError(OperationError.Builder builderForValue)
public Backup.Builder setError(OperationError.Builder builderForValue)Output only. Information about why the backup operation fails (for example, when the backup state fails).
.google.cloud.sql.v1beta4.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
OperationError.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setExpiryTime(Timestamp value)
public Backup.Builder setExpiryTime(Timestamp value)Backup expiration time. A UTC timestamp of when this resource expired.
.google.protobuf.Timestamp expiry_time = 17;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setExpiryTime(Timestamp.Builder builderForValue)
public Backup.Builder setExpiryTime(Timestamp.Builder builderForValue)Backup expiration time. A UTC timestamp of when this resource expired.
.google.protobuf.Timestamp expiry_time = 17;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setInstance(String value)
public Backup.Builder setInstance(String value)The name of the database instance.
string instance = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe instance to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setInstanceBytes(ByteString value)
public Backup.Builder setInstanceBytes(ByteString value)The name of the database instance.
string instance = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for instance to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setInstanceDeletionTime(Timestamp value)
public Backup.Builder setInstanceDeletionTime(Timestamp value)Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.
.google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setInstanceDeletionTime(Timestamp.Builder builderForValue)
public Backup.Builder setInstanceDeletionTime(Timestamp.Builder builderForValue)Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.
.google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setInstanceSettings(DatabaseInstance value)
public Backup.Builder setInstanceSettings(DatabaseInstance value)Optional. Output only. Instance setting of the source instance that's associated with this backup.
.google.cloud.sql.v1beta4.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
DatabaseInstance |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setInstanceSettings(DatabaseInstance.Builder builderForValue)
public Backup.Builder setInstanceSettings(DatabaseInstance.Builder builderForValue)Optional. Output only. Instance setting of the source instance that's associated with this backup.
.google.cloud.sql.v1beta4.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DatabaseInstance.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setKind(String value)
public Backup.Builder setKind(String value) Output only. This is always sql#backup.
string kind = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public Backup.Builder setKindBytes(ByteString value) Output only. This is always sql#backup.
string kind = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setKmsKey(String value)
public Backup.Builder setKmsKey(String value)Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.
string kms_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kmsKey to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setKmsKeyBytes(ByteString value)
public Backup.Builder setKmsKeyBytes(ByteString value)Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.
string kms_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kmsKey to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setKmsKeyVersion(String value)
public Backup.Builder setKmsKeyVersion(String value)Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.
string kms_key_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kmsKeyVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setKmsKeyVersionBytes(ByteString value)
public Backup.Builder setKmsKeyVersionBytes(ByteString value)Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.
string kms_key_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kmsKeyVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setLocation(String value)
public Backup.Builder setLocation(String value)The storage location of the backups. The location can be multi-regional.
string location = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe location to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public Backup.Builder setLocationBytes(ByteString value)The storage location of the backups. The location can be multi-regional.
string location = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for location to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setMaxChargeableBytes(long value)
public Backup.Builder setMaxChargeableBytes(long value)Output only. The maximum chargeable bytes for the backup.
optional int64 max_chargeable_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe maxChargeableBytes to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setName(String value)
public Backup.Builder setName(String value)Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Backup.Builder setNameBytes(ByteString value)Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setSatisfiesPzi(BoolValue value)
public Backup.Builder setSatisfiesPzi(BoolValue value)Output only. This status indicates whether the backup satisfies PZI.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setSatisfiesPzi(BoolValue.Builder builderForValue)
public Backup.Builder setSatisfiesPzi(BoolValue.Builder builderForValue)Output only. This status indicates whether the backup satisfies PZI.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setSatisfiesPzs(BoolValue value)
public Backup.Builder setSatisfiesPzs(BoolValue value)Output only. This status indicates whether the backup satisfies PZS.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setSatisfiesPzs(BoolValue.Builder builderForValue)
public Backup.Builder setSatisfiesPzs(BoolValue.Builder builderForValue)Output only. This status indicates whether the backup satisfies PZS.
The status is reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setSelfLink(String value)
public Backup.Builder setSelfLink(String value)Output only. The URI of this resource.
string self_link = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setSelfLinkBytes(ByteString value)
public Backup.Builder setSelfLinkBytes(ByteString value)Output only. The URI of this resource.
string self_link = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setState(Backup.SqlBackupState value)
public Backup.Builder setState(Backup.SqlBackupState value)Output only. The state of this backup.
.google.cloud.sql.v1beta4.Backup.SqlBackupState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Backup.SqlBackupStateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setStateValue(int value)
public Backup.Builder setStateValue(int value)Output only. The state of this backup.
.google.cloud.sql.v1beta4.Backup.SqlBackupState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setTimeZone(String value)
public Backup.Builder setTimeZone(String value)Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.
string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe timeZone to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setTimeZoneBytes(ByteString value)
public Backup.Builder setTimeZoneBytes(ByteString value)Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.
string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for timeZone to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setTtlDays(long value)
public Backup.Builder setTtlDays(long value)Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.
int64 ttl_days = 16 [(.google.api.field_behavior) = INPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe ttlDays to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setType(Backup.SqlBackupType value)
public Backup.Builder setType(Backup.SqlBackupType value)Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND", or “FINAL”.
.google.cloud.sql.v1beta4.Backup.SqlBackupType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Backup.SqlBackupTypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setTypeValue(int value)
public Backup.Builder setTypeValue(int value)Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND", or “FINAL”.
.google.cloud.sql.v1beta4.Backup.SqlBackupType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |