Class BackupSchedule (3.20.0)

public final class BackupSchedule extends GeneratedMessageV3 implements BackupScheduleOrBuilder

A backup schedule for a Cloud Firestore Database.

This resource is owned by the database it is backing up, and is deleted along with the database. The actual backups are not though.

Protobuf type google.firestore.admin.v1.BackupSchedule

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DAILY_RECURRENCE_FIELD_NUMBER

public static final int DAILY_RECURRENCE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RETENTION_FIELD_NUMBER

public static final int RETENTION_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

WEEKLY_RECURRENCE_FIELD_NUMBER

public static final int WEEKLY_RECURRENCE_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 prototype)

public static BackupSchedule.Builder newBuilder(BackupSchedule prototype)
Parameter
NameDescription
prototypeBackupSchedule
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

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp at which this backup schedule was created and effective since.

No backups will be created for this schedule before this time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp at which this backup schedule was created and effective since.

No backups will be created for this schedule before this time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDailyRecurrence()

public DailyRecurrence getDailyRecurrence()

For a schedule that runs daily at a specified time.

.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7;

Returns
TypeDescription
DailyRecurrence

The dailyRecurrence.

getDailyRecurrenceOrBuilder()

public DailyRecurrenceOrBuilder getDailyRecurrenceOrBuilder()

For a schedule that runs daily at a specified time.

.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7;

Returns
TypeDescription
DailyRecurrenceOrBuilder

getDefaultInstanceForType()

public BackupSchedule getDefaultInstanceForType()
Returns
TypeDescription
BackupSchedule

getName()

public String getName()

Output only. The unique backup schedule identifier across all locations and databases for the given project.

This will be auto-assigned.

Format is projects/{project}/databases/{database}/backupSchedules/{backup_schedule}

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The unique backup schedule identifier across all locations and databases for the given project.

This will be auto-assigned.

Format is projects/{project}/databases/{database}/backupSchedules/{backup_schedule}

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

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getRecurrenceCase()

public BackupSchedule.RecurrenceCase getRecurrenceCase()
Returns
TypeDescription
BackupSchedule.RecurrenceCase

getRetention()

public Duration getRetention()

At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.

.google.protobuf.Duration retention = 6;

Returns
TypeDescription
Duration

The retention.

getRetentionOrBuilder()

public DurationOrBuilder getRetentionOrBuilder()

At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.

.google.protobuf.Duration retention = 6;

Returns
TypeDescription
DurationOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.

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

Returns
TypeDescription
TimestampOrBuilder

getWeeklyRecurrence()

public WeeklyRecurrence getWeeklyRecurrence()

For a schedule that runs weekly on a specific day and time.

.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8;

Returns
TypeDescription
WeeklyRecurrence

The weeklyRecurrence.

getWeeklyRecurrenceOrBuilder()

public WeeklyRecurrenceOrBuilder getWeeklyRecurrenceOrBuilder()

For a schedule that runs weekly on a specific day and time.

.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8;

Returns
TypeDescription
WeeklyRecurrenceOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp at which this backup schedule was created and effective since.

No backups will be created for this schedule before this time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDailyRecurrence()

public boolean hasDailyRecurrence()

For a schedule that runs daily at a specified time.

.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7;

Returns
TypeDescription
boolean

Whether the dailyRecurrence field is set.

hasRetention()

public boolean hasRetention()

At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.

.google.protobuf.Duration retention = 6;

Returns
TypeDescription
boolean

Whether the retention field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasWeeklyRecurrence()

public boolean hasWeeklyRecurrence()

For a schedule that runs weekly on a specific day and time.

.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8;

Returns
TypeDescription
boolean

Whether the weeklyRecurrence 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