Package com.google.cloud.gkebackup.v1
Interface BackupPlan.ScheduleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BackupPlan.Schedule,BackupPlan.Schedule.Builder
- Enclosing class:
- BackupPlan
public static interface BackupPlan.ScheduleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOptional.Optional.Optional.booleanOutput only.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getCronSchedule
String getCronSchedule()Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config] field since at most one schedule can be defined for a BackupPlan. If this is defined, then [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days] must also be defined. Default (empty): no automatic backup creation will occur.
string cron_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The cronSchedule.
-
getCronScheduleBytes
com.google.protobuf.ByteString getCronScheduleBytes()Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config] field since at most one schedule can be defined for a BackupPlan. If this is defined, then [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days] must also be defined. Default (empty): no automatic backup creation will occur.
string cron_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for cronSchedule.
-
getPaused
boolean getPaused()Optional. This flag denotes whether automatic Backup creation is paused for this BackupPlan. Default: False
bool paused = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The paused.
-
hasRpoConfig
boolean hasRpoConfig()Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule] field since at most one schedule can be defined for a BackupPLan. If this is defined, then [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days] must also be defined. Default (empty): no automatic backup creation will occur.
.google.cloud.gkebackup.v1.RpoConfig rpo_config = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the rpoConfig field is set.
-
getRpoConfig
RpoConfig getRpoConfig()Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule] field since at most one schedule can be defined for a BackupPLan. If this is defined, then [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days] must also be defined. Default (empty): no automatic backup creation will occur.
.google.cloud.gkebackup.v1.RpoConfig rpo_config = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The rpoConfig.
-
getRpoConfigOrBuilder
RpoConfigOrBuilder getRpoConfigOrBuilder()Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule] field since at most one schedule can be defined for a BackupPLan. If this is defined, then [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days] must also be defined. Default (empty): no automatic backup creation will occur.
.google.cloud.gkebackup.v1.RpoConfig rpo_config = 3 [(.google.api.field_behavior) = OPTIONAL]; -
hasNextScheduledBackupTime
boolean hasNextScheduledBackupTime()Output only. Start time of next scheduled backup under this BackupPlan by either cron_schedule or rpo config.
.google.protobuf.Timestamp next_scheduled_backup_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the nextScheduledBackupTime field is set.
-
getNextScheduledBackupTime
com.google.protobuf.Timestamp getNextScheduledBackupTime()Output only. Start time of next scheduled backup under this BackupPlan by either cron_schedule or rpo config.
.google.protobuf.Timestamp next_scheduled_backup_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The nextScheduledBackupTime.
-
getNextScheduledBackupTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getNextScheduledBackupTimeOrBuilder()Output only. Start time of next scheduled backup under this BackupPlan by either cron_schedule or rpo config.
.google.protobuf.Timestamp next_scheduled_backup_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-