Package com.google.firestore.admin.v1
Class BackupSchedule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BackupSchedule.Builder>
com.google.firestore.admin.v1.BackupSchedule.Builder
- All Implemented Interfaces:
BackupScheduleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BackupSchedule
public static final class BackupSchedule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BackupSchedule.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.For a schedule that runs daily.Output only.At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.Output only.For a schedule that runs weekly on a specific day.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.For a schedule that runs daily.For a schedule that runs daily.For a schedule that runs daily.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.DurationAt what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.com.google.protobuf.Duration.BuilderAt what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.com.google.protobuf.DurationOrBuilderAt what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.For a schedule that runs weekly on a specific day.For a schedule that runs weekly on a specific day.For a schedule that runs weekly on a specific day.booleanOutput only.booleanFor a schedule that runs daily.booleanAt what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.booleanOutput only.booleanFor a schedule that runs weekly on a specific day.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.For a schedule that runs daily.mergeFrom(BackupSchedule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRetention(com.google.protobuf.Duration value) At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.For a schedule that runs weekly on a specific day.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.For a schedule that runs daily.setDailyRecurrence(DailyRecurrence.Builder builderForValue) For a schedule that runs daily.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setRetention(com.google.protobuf.Duration value) At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.setRetention(com.google.protobuf.Duration.Builder builderForValue) At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.For a schedule that runs weekly on a specific day.setWeeklyRecurrence(WeeklyRecurrence.Builder builderForValue) For a schedule that runs weekly on a specific day.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BackupSchedule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BackupSchedule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BackupSchedule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackupSchedule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BackupSchedule.Builder>
-
mergeFrom
public BackupSchedule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackupSchedule.Builder>- Throws:
IOException
-
getRecurrenceCase
- Specified by:
getRecurrenceCasein interfaceBackupScheduleOrBuilder
-
clearRecurrence
-
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];- Specified by:
getNamein interfaceBackupScheduleOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceBackupScheduleOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfaceBackupScheduleOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.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];- Specified by:
getCreateTimein interfaceBackupScheduleOrBuilder- Returns:
- The createTime.
-
setCreateTime
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]; -
setCreateTime
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]; -
mergeCreateTime
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]; -
clearCreateTime
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]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()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]; -
getCreateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getCreateTimeOrBuilderin interfaceBackupScheduleOrBuilder
-
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];- Specified by:
hasUpdateTimein interfaceBackupScheduleOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.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];- Specified by:
getUpdateTimein interfaceBackupScheduleOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
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]; -
setUpdateTime
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]; -
mergeUpdateTime
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]; -
clearUpdateTime
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]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()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]; -
getUpdateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getUpdateTimeOrBuilderin interfaceBackupScheduleOrBuilder
-
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. The maximum supported retention period is 14 weeks.
.google.protobuf.Duration retention = 6;- Specified by:
hasRetentionin interfaceBackupScheduleOrBuilder- Returns:
- Whether the retention field is set.
-
getRetention
public com.google.protobuf.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. The maximum supported retention period is 14 weeks.
.google.protobuf.Duration retention = 6;- Specified by:
getRetentionin interfaceBackupScheduleOrBuilder- Returns:
- The retention.
-
setRetention
At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days. The maximum supported retention period is 14 weeks.
.google.protobuf.Duration retention = 6; -
setRetention
At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days. The maximum supported retention period is 14 weeks.
.google.protobuf.Duration retention = 6; -
mergeRetention
At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days. The maximum supported retention period is 14 weeks.
.google.protobuf.Duration retention = 6; -
clearRetention
At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days. The maximum supported retention period is 14 weeks.
.google.protobuf.Duration retention = 6; -
getRetentionBuilder
public com.google.protobuf.Duration.Builder getRetentionBuilder()At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days. The maximum supported retention period is 14 weeks.
.google.protobuf.Duration retention = 6; -
getRetentionOrBuilder
public com.google.protobuf.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. The maximum supported retention period is 14 weeks.
.google.protobuf.Duration retention = 6;- Specified by:
getRetentionOrBuilderin interfaceBackupScheduleOrBuilder
-
hasDailyRecurrence
public boolean hasDailyRecurrence()For a schedule that runs daily.
.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7;- Specified by:
hasDailyRecurrencein interfaceBackupScheduleOrBuilder- Returns:
- Whether the dailyRecurrence field is set.
-
getDailyRecurrence
For a schedule that runs daily.
.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7;- Specified by:
getDailyRecurrencein interfaceBackupScheduleOrBuilder- Returns:
- The dailyRecurrence.
-
setDailyRecurrence
For a schedule that runs daily.
.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7; -
setDailyRecurrence
For a schedule that runs daily.
.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7; -
mergeDailyRecurrence
For a schedule that runs daily.
.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7; -
clearDailyRecurrence
For a schedule that runs daily.
.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7; -
getDailyRecurrenceBuilder
For a schedule that runs daily.
.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7; -
getDailyRecurrenceOrBuilder
For a schedule that runs daily.
.google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7;- Specified by:
getDailyRecurrenceOrBuilderin interfaceBackupScheduleOrBuilder
-
hasWeeklyRecurrence
public boolean hasWeeklyRecurrence()For a schedule that runs weekly on a specific day.
.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8;- Specified by:
hasWeeklyRecurrencein interfaceBackupScheduleOrBuilder- Returns:
- Whether the weeklyRecurrence field is set.
-
getWeeklyRecurrence
For a schedule that runs weekly on a specific day.
.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8;- Specified by:
getWeeklyRecurrencein interfaceBackupScheduleOrBuilder- Returns:
- The weeklyRecurrence.
-
setWeeklyRecurrence
For a schedule that runs weekly on a specific day.
.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8; -
setWeeklyRecurrence
For a schedule that runs weekly on a specific day.
.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8; -
mergeWeeklyRecurrence
For a schedule that runs weekly on a specific day.
.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8; -
clearWeeklyRecurrence
For a schedule that runs weekly on a specific day.
.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8; -
getWeeklyRecurrenceBuilder
For a schedule that runs weekly on a specific day.
.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8; -
getWeeklyRecurrenceOrBuilder
For a schedule that runs weekly on a specific day.
.google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8;- Specified by:
getWeeklyRecurrenceOrBuilderin interfaceBackupScheduleOrBuilder
-