Class BackupSchedule (6.88.0)

public final class BackupSchedule extends GeneratedMessageV3 implements BackupScheduleOrBuilder

BackupSchedule expresses the automated backup creation specification for a Spanner database. Next ID: 10

Protobuf type google.spanner.admin.database.v1.BackupSchedule

Static Fields

ENCRYPTION_CONFIG_FIELD_NUMBER

public static final int ENCRYPTION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

FULL_BACKUP_SPEC_FIELD_NUMBER

public static final int FULL_BACKUP_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

INCREMENTAL_BACKUP_SPEC_FIELD_NUMBER

public static final int INCREMENTAL_BACKUP_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RETENTION_DURATION_FIELD_NUMBER

public static final int RETENTION_DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

SPEC_FIELD_NUMBER

public static final int SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BackupSchedule getDefaultInstance()
Returns
TypeDescription
BackupSchedule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static BackupSchedule.Builder newBuilder()
Returns
TypeDescription
BackupSchedule.Builder

newBuilder(BackupSchedule )

public static BackupSchedule.Builder newBuilder(BackupSchedule )
Parameter
NameDescription
BackupSchedule
Returns
TypeDescription
BackupSchedule.Builder

parseDelimitedFrom(InputStream input)

public static BackupSchedule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupSchedule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BackupSchedule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackupSchedule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackupSchedule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackupSchedule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackupSchedule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupSchedule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BackupSchedule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupSchedule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BackupSchedule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackupSchedule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupSchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BackupSchedule> parser()
Returns
TypeDescription
Parser<BackupSchedule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBackupTypeSpecCase()

public BackupSchedule.BackupTypeSpecCase getBackupTypeSpecCase()
Returns
TypeDescription
BackupSchedule.BackupTypeSpecCase

getDefaultInstanceForType()

public BackupSchedule getDefaultInstanceForType()
Returns
TypeDescription
BackupSchedule

getEncryptionConfig()

public CreateBackupEncryptionConfig getEncryptionConfig()

Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.

.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateBackupEncryptionConfig

The encryptionConfig.

getEncryptionConfigOrBuilder()

public CreateBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder()

Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.

.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateBackupEncryptionConfigOrBuilder

getFullBackupSpec()

public FullBackupSpec getFullBackupSpec()

The schedule creates only full backups.

.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;

Returns
TypeDescription
FullBackupSpec

The fullBackupSpec.

getFullBackupSpecOrBuilder()

public FullBackupSpecOrBuilder getFullBackupSpecOrBuilder()

The schedule creates only full backups.

.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;

Returns
TypeDescription
FullBackupSpecOrBuilder

getIncrementalBackupSpec()

public IncrementalBackupSpec getIncrementalBackupSpec()

The schedule creates incremental backup chains.

.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;

Returns
TypeDescription
IncrementalBackupSpec

The incrementalBackupSpec.

getIncrementalBackupSpecOrBuilder()

public IncrementalBackupSpecOrBuilder getIncrementalBackupSpecOrBuilder()

The schedule creates incremental backup chains.

.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;

Returns
TypeDescription
IncrementalBackupSpecOrBuilder

getName()

public String getName()

Identifier. Output only for the CreateBackupSchedule operation. Required for the UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which cannot be changed. Values are of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/a-z*[a-z0-9] The final segment of the name must be between 2 and 60 characters in length.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Output only for the CreateBackupSchedule operation. Required for the UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which cannot be changed. Values are of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/a-z*[a-z0-9] The final segment of the name must be between 2 and 60 characters in length.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<BackupSchedule> getParserForType()
Returns
TypeDescription
Parser<BackupSchedule>
Overrides

getRetentionDuration()

public Duration getRetentionDuration()

Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.

.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Duration

The retentionDuration.

getRetentionDurationOrBuilder()

public DurationOrBuilder getRetentionDurationOrBuilder()

Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.

.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DurationOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSpec()

public BackupScheduleSpec getSpec()

Optional. The schedule specification based on which the backup creations are triggered.

.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BackupScheduleSpec

The spec.

getSpecOrBuilder()

public BackupScheduleSpecOrBuilder getSpecOrBuilder()

Optional. The schedule specification based on which the backup creations are triggered.

.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BackupScheduleSpecOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasEncryptionConfig()

public boolean hasEncryptionConfig()

Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.

.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the encryptionConfig field is set.

hasFullBackupSpec()

public boolean hasFullBackupSpec()

The schedule creates only full backups.

.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;

Returns
TypeDescription
boolean

Whether the fullBackupSpec field is set.

hasIncrementalBackupSpec()

public boolean hasIncrementalBackupSpec()

The schedule creates incremental backup chains.

.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;

Returns
TypeDescription
boolean

Whether the incrementalBackupSpec field is set.

hasRetentionDuration()

public boolean hasRetentionDuration()

Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.

.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the retentionDuration field is set.

hasSpec()

public boolean hasSpec()

Optional. The schedule specification based on which the backup creations are triggered.

.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the spec field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BackupSchedule.Builder newBuilderForType()
Returns
TypeDescription
BackupSchedule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BackupSchedule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BackupSchedule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BackupSchedule.Builder toBuilder()
Returns
TypeDescription
BackupSchedule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException