Class BackupPlan.Schedule (0.39.0)

public static final class BackupPlan.Schedule extends GeneratedMessageV3 implements BackupPlan.ScheduleOrBuilder

Defines scheduling parameters for automatically creating Backups via this BackupPlan.

Protobuf type google.cloud.gkebackup.v1.BackupPlan.Schedule

Static Fields

CRON_SCHEDULE_FIELD_NUMBER

public static final int CRON_SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_SCHEDULED_BACKUP_TIME_FIELD_NUMBER

public static final int NEXT_SCHEDULED_BACKUP_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

PAUSED_FIELD_NUMBER

public static final int PAUSED_FIELD_NUMBER
Field Value
TypeDescription
int

RPO_CONFIG_FIELD_NUMBER

public static final int RPO_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BackupPlan.Schedule getDefaultInstance()
Returns
TypeDescription
BackupPlan.Schedule

getDescriptor()

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

newBuilder()

public static BackupPlan.Schedule.Builder newBuilder()
Returns
TypeDescription
BackupPlan.Schedule.Builder

newBuilder(BackupPlan.Schedule prototype)

public static BackupPlan.Schedule.Builder newBuilder(BackupPlan.Schedule prototype)
Parameter
NameDescription
prototypeBackupPlan.Schedule
Returns
TypeDescription
BackupPlan.Schedule.Builder

parseDelimitedFrom(InputStream input)

public static BackupPlan.Schedule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BackupPlan.Schedule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static BackupPlan.Schedule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BackupPlan.Schedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static BackupPlan.Schedule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BackupPlan.Schedule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static BackupPlan.Schedule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BackupPlan.Schedule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static BackupPlan.Schedule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BackupPlan.Schedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<BackupPlan.Schedule> parser()
Returns
TypeDescription
Parser<Schedule>

Methods

equals(Object obj)

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

getCronSchedule()

public String getCronSchedule()

Optional. A standard cron string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the rpo_config field since at most one schedule can be defined for a BackupPlan. If this is defined, then 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
TypeDescription
String

The cronSchedule.

getCronScheduleBytes()

public ByteString getCronScheduleBytes()

Optional. A standard cron string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the rpo_config field since at most one schedule can be defined for a BackupPlan. If this is defined, then 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
TypeDescription
ByteString

The bytes for cronSchedule.

getDefaultInstanceForType()

public BackupPlan.Schedule getDefaultInstanceForType()
Returns
TypeDescription
BackupPlan.Schedule

getNextScheduledBackupTime()

public 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
TypeDescription
Timestamp

The nextScheduledBackupTime.

getNextScheduledBackupTimeOrBuilder()

public 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];

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

public Parser<BackupPlan.Schedule> getParserForType()
Returns
TypeDescription
Parser<Schedule>
Overrides

getPaused()

public 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
TypeDescription
boolean

The paused.

getRpoConfig()

public RpoConfig getRpoConfig()

Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the cron_schedule field since at most one schedule can be defined for a BackupPLan. If this is defined, then 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
TypeDescription
RpoConfig

The rpoConfig.

getRpoConfigOrBuilder()

public RpoConfigOrBuilder getRpoConfigOrBuilder()

Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the cron_schedule field since at most one schedule can be defined for a BackupPLan. If this is defined, then 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
TypeDescription
RpoConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasNextScheduledBackupTime()

public 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
TypeDescription
boolean

Whether the nextScheduledBackupTime field is set.

hasRpoConfig()

public boolean hasRpoConfig()

Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the cron_schedule field since at most one schedule can be defined for a BackupPLan. If this is defined, then 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
TypeDescription
boolean

Whether the rpoConfig 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 BackupPlan.Schedule.Builder newBuilderForType()
Returns
TypeDescription
BackupPlan.Schedule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public BackupPlan.Schedule.Builder toBuilder()
Returns
TypeDescription
BackupPlan.Schedule.Builder

writeTo(CodedOutputStream output)

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