public final class BackupConfiguration extends GeneratedMessage implements BackupConfigurationOrBuilder
Database instance backup configuration.
Protobuf type google.cloud.sql.v1.BackupConfiguration
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
BACKUP_RETENTION_SETTINGS_FIELD_NUMBER
public static final int BACKUP_RETENTION_SETTINGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
BACKUP_TIER_FIELD_NUMBER
public static final int BACKUP_TIER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
BINARY_LOG_ENABLED_FIELD_NUMBER
public static final int BINARY_LOG_ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
POINT_IN_TIME_RECOVERY_ENABLED_FIELD_NUMBER
public static final int POINT_IN_TIME_RECOVERY_ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
REPLICATION_LOG_ARCHIVING_ENABLED_FIELD_NUMBER
public static final int REPLICATION_LOG_ARCHIVING_ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TRANSACTIONAL_LOG_STORAGE_STATE_FIELD_NUMBER
public static final int TRANSACTIONAL_LOG_STORAGE_STATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TRANSACTION_LOG_RETENTION_DAYS_FIELD_NUMBER
public static final int TRANSACTION_LOG_RETENTION_DAYS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static BackupConfiguration getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static BackupConfiguration.Builder newBuilder()
newBuilder(BackupConfiguration prototype)
public static BackupConfiguration.Builder newBuilder(BackupConfiguration prototype)
public static BackupConfiguration parseDelimitedFrom(InputStream input)
public static BackupConfiguration parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static BackupConfiguration parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BackupConfiguration parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static BackupConfiguration parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BackupConfiguration parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BackupConfiguration parseFrom(CodedInputStream input)
public static BackupConfiguration parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BackupConfiguration parseFrom(InputStream input)
public static BackupConfiguration parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static BackupConfiguration parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BackupConfiguration parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<BackupConfiguration> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getBackupRetentionSettings()
public BackupRetentionSettings getBackupRetentionSettings()
Backup retention settings.
.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;
getBackupRetentionSettingsOrBuilder()
public BackupRetentionSettingsOrBuilder getBackupRetentionSettingsOrBuilder()
Backup retention settings.
.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;
getBackupTier()
public BackupConfiguration.BackupTier getBackupTier()
Output only. Backup tier that manages the backups for the instance.
optional .google.cloud.sql.v1.BackupConfiguration.BackupTier backup_tier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getBackupTierValue()
public int getBackupTierValue()
Output only. Backup tier that manages the backups for the instance.
optional .google.cloud.sql.v1.BackupConfiguration.BackupTier backup_tier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for backupTier.
|
getBinaryLogEnabled()
public BoolValue getBinaryLogEnabled()
(MySQL only) Whether binary log is enabled. If backup configuration is
disabled, binarylog must be disabled as well.
.google.protobuf.BoolValue binary_log_enabled = 4;
| Returns |
| Type |
Description |
BoolValue |
The binaryLogEnabled.
|
getBinaryLogEnabledOrBuilder()
public BoolValueOrBuilder getBinaryLogEnabledOrBuilder()
(MySQL only) Whether binary log is enabled. If backup configuration is
disabled, binarylog must be disabled as well.
.google.protobuf.BoolValue binary_log_enabled = 4;
getDefaultInstanceForType()
public BackupConfiguration getDefaultInstanceForType()
getEnabled()
public BoolValue getEnabled()
Whether this configuration is enabled.
.google.protobuf.BoolValue enabled = 2;
| Returns |
| Type |
Description |
BoolValue |
The enabled.
|
getEnabledOrBuilder()
public BoolValueOrBuilder getEnabledOrBuilder()
Whether this configuration is enabled.
.google.protobuf.BoolValue enabled = 2;
getKind()
This is always sql#backupConfiguration.
string kind = 3;
| Returns |
| Type |
Description |
String |
The kind.
|
getKindBytes()
public ByteString getKindBytes()
This is always sql#backupConfiguration.
string kind = 3;
| Returns |
| Type |
Description |
ByteString |
The bytes for kind.
|
getLocation()
public String getLocation()
Location of the backup
string location = 6;
| Returns |
| Type |
Description |
String |
The location.
|
getLocationBytes()
public ByteString getLocationBytes()
Location of the backup
string location = 6;
| Returns |
| Type |
Description |
ByteString |
The bytes for location.
|
getParserForType()
public Parser<BackupConfiguration> getParserForType()
Overrides
getPointInTimeRecoveryEnabled()
public BoolValue getPointInTimeRecoveryEnabled()
Whether point in time recovery is enabled.
.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;
| Returns |
| Type |
Description |
BoolValue |
The pointInTimeRecoveryEnabled.
|
getPointInTimeRecoveryEnabledOrBuilder()
public BoolValueOrBuilder getPointInTimeRecoveryEnabledOrBuilder()
Whether point in time recovery is enabled.
.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;
getReplicationLogArchivingEnabled() (deprecated)
public BoolValue getReplicationLogArchivingEnabled()
Deprecated. google.cloud.sql.v1.BackupConfiguration.replication_log_archiving_enabled is
deprecated. See google/cloud/sql/v1/cloud_sql_resources.proto;l=165
Optional. Deprecated: replication_log_archiving_enabled is deprecated and
will be removed from a future version of the API. Use
point_in_time_recovery_enabled
instead.
.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
BoolValue |
The replicationLogArchivingEnabled.
|
getReplicationLogArchivingEnabledOrBuilder() (deprecated)
public BoolValueOrBuilder getReplicationLogArchivingEnabledOrBuilder()
Optional. Deprecated: replication_log_archiving_enabled is deprecated and
will be removed from a future version of the API. Use
point_in_time_recovery_enabled
instead.
.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getStartTime()
public String getStartTime()
Start time for the daily backup configuration in UTC timezone in the 24
hour format - HH:MM.
string start_time = 1;
| Returns |
| Type |
Description |
String |
The startTime.
|
getStartTimeBytes()
public ByteString getStartTimeBytes()
Start time for the daily backup configuration in UTC timezone in the 24
hour format - HH:MM.
string start_time = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for startTime.
|
getTransactionLogRetentionDays()
public Int32Value getTransactionLogRetentionDays()
The number of days of transaction logs we retain for point in time
restore, from 1-7.
.google.protobuf.Int32Value transaction_log_retention_days = 9;
| Returns |
| Type |
Description |
Int32Value |
The transactionLogRetentionDays.
|
getTransactionLogRetentionDaysOrBuilder()
public Int32ValueOrBuilder getTransactionLogRetentionDaysOrBuilder()
The number of days of transaction logs we retain for point in time
restore, from 1-7.
.google.protobuf.Int32Value transaction_log_retention_days = 9;
getTransactionalLogStorageState()
public BackupConfiguration.TransactionalLogStorageState getTransactionalLogStorageState()
Output only. This value contains the storage location of transactional logs
used to perform point-in-time recovery (PITR) for the database.
optional .google.cloud.sql.v1.BackupConfiguration.TransactionalLogStorageState transactional_log_storage_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTransactionalLogStorageStateValue()
public int getTransactionalLogStorageStateValue()
Output only. This value contains the storage location of transactional logs
used to perform point-in-time recovery (PITR) for the database.
optional .google.cloud.sql.v1.BackupConfiguration.TransactionalLogStorageState transactional_log_storage_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for transactionalLogStorageState.
|
hasBackupRetentionSettings()
public boolean hasBackupRetentionSettings()
Backup retention settings.
.google.cloud.sql.v1.BackupRetentionSettings backup_retention_settings = 8;
| Returns |
| Type |
Description |
boolean |
Whether the backupRetentionSettings field is set.
|
hasBackupTier()
public boolean hasBackupTier()
Output only. Backup tier that manages the backups for the instance.
optional .google.cloud.sql.v1.BackupConfiguration.BackupTier backup_tier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the backupTier field is set.
|
hasBinaryLogEnabled()
public boolean hasBinaryLogEnabled()
(MySQL only) Whether binary log is enabled. If backup configuration is
disabled, binarylog must be disabled as well.
.google.protobuf.BoolValue binary_log_enabled = 4;
| Returns |
| Type |
Description |
boolean |
Whether the binaryLogEnabled field is set.
|
hasEnabled()
public boolean hasEnabled()
Whether this configuration is enabled.
.google.protobuf.BoolValue enabled = 2;
| Returns |
| Type |
Description |
boolean |
Whether the enabled field is set.
|
hasPointInTimeRecoveryEnabled()
public boolean hasPointInTimeRecoveryEnabled()
Whether point in time recovery is enabled.
.google.protobuf.BoolValue point_in_time_recovery_enabled = 7;
| Returns |
| Type |
Description |
boolean |
Whether the pointInTimeRecoveryEnabled field is set.
|
hasReplicationLogArchivingEnabled() (deprecated)
public boolean hasReplicationLogArchivingEnabled()
Deprecated. google.cloud.sql.v1.BackupConfiguration.replication_log_archiving_enabled is
deprecated. See google/cloud/sql/v1/cloud_sql_resources.proto;l=165
Optional. Deprecated: replication_log_archiving_enabled is deprecated and
will be removed from a future version of the API. Use
point_in_time_recovery_enabled
instead.
.google.protobuf.BoolValue replication_log_archiving_enabled = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the replicationLogArchivingEnabled field is set.
|
hasTransactionLogRetentionDays()
public boolean hasTransactionLogRetentionDays()
The number of days of transaction logs we retain for point in time
restore, from 1-7.
.google.protobuf.Int32Value transaction_log_retention_days = 9;
| Returns |
| Type |
Description |
boolean |
Whether the transactionLogRetentionDays field is set.
|
hasTransactionalLogStorageState()
public boolean hasTransactionalLogStorageState()
Output only. This value contains the storage location of transactional logs
used to perform point-in-time recovery (PITR) for the database.
optional .google.cloud.sql.v1.BackupConfiguration.TransactionalLogStorageState transactional_log_storage_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the transactionalLogStorageState field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public BackupConfiguration.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected BackupConfiguration.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public BackupConfiguration.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides