Package com.google.cloud.alloydb.v1beta
Class ContinuousBackupInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupInfo.Builder>
com.google.cloud.alloydb.v1beta.ContinuousBackupInfo.Builder
- All Implemented Interfaces:
ContinuousBackupInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ContinuousBackupInfo
public static final class ContinuousBackupInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupInfo.Builder>
implements ContinuousBackupInfoOrBuilder
ContinuousBackupInfo describes the continuous backup properties of a cluster.Protobuf type
google.cloud.alloydb.v1beta.ContinuousBackupInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllSchedule(Iterable<? extends DayOfWeek> values) Output only.addAllScheduleValue(Iterable<Integer> values) Output only.addSchedule(DayOfWeek value) Output only.addScheduleValue(int value) Output only.build()clear()Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.Output only.Output only.getSchedule(int index) Output only.intOutput only.Output only.intgetScheduleValue(int index) Output only.Output only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEarliestRestorableTime(com.google.protobuf.Timestamp value) Output only.mergeEnabledTime(com.google.protobuf.Timestamp value) Output only.Output only.mergeFrom(ContinuousBackupInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEarliestRestorableTime(com.google.protobuf.Timestamp value) Output only.setEarliestRestorableTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setEnabledTime(com.google.protobuf.Timestamp value) Output only.setEnabledTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setEncryptionInfo(EncryptionInfo value) Output only.setEncryptionInfo(EncryptionInfo.Builder builderForValue) Output only.setSchedule(int index, DayOfWeek value) Output only.setScheduleValue(int index, int value) Output only.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<ContinuousBackupInfo.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<ContinuousBackupInfo.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<ContinuousBackupInfo.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<ContinuousBackupInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ContinuousBackupInfo.Builder>
-
mergeFrom
public ContinuousBackupInfo.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<ContinuousBackupInfo.Builder>- Throws:
IOException
-
hasEncryptionInfo
public boolean hasEncryptionInfo()Output only. The encryption information for the WALs and backups required for ContinuousBackup.
.google.cloud.alloydb.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEncryptionInfoin interfaceContinuousBackupInfoOrBuilder- Returns:
- Whether the encryptionInfo field is set.
-
getEncryptionInfo
Output only. The encryption information for the WALs and backups required for ContinuousBackup.
.google.cloud.alloydb.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEncryptionInfoin interfaceContinuousBackupInfoOrBuilder- Returns:
- The encryptionInfo.
-
setEncryptionInfo
Output only. The encryption information for the WALs and backups required for ContinuousBackup.
.google.cloud.alloydb.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setEncryptionInfo
Output only. The encryption information for the WALs and backups required for ContinuousBackup.
.google.cloud.alloydb.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeEncryptionInfo
Output only. The encryption information for the WALs and backups required for ContinuousBackup.
.google.cloud.alloydb.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearEncryptionInfo
Output only. The encryption information for the WALs and backups required for ContinuousBackup.
.google.cloud.alloydb.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getEncryptionInfoBuilder
Output only. The encryption information for the WALs and backups required for ContinuousBackup.
.google.cloud.alloydb.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getEncryptionInfoOrBuilder
Output only. The encryption information for the WALs and backups required for ContinuousBackup.
.google.cloud.alloydb.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEncryptionInfoOrBuilderin interfaceContinuousBackupInfoOrBuilder
-
hasEnabledTime
public boolean hasEnabledTime()Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEnabledTimein interfaceContinuousBackupInfoOrBuilder- Returns:
- Whether the enabledTime field is set.
-
getEnabledTime
public com.google.protobuf.Timestamp getEnabledTime()Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEnabledTimein interfaceContinuousBackupInfoOrBuilder- Returns:
- The enabledTime.
-
setEnabledTime
Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setEnabledTime
public ContinuousBackupInfo.Builder setEnabledTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeEnabledTime
Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearEnabledTime
Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getEnabledTimeBuilder
public com.google.protobuf.Timestamp.Builder getEnabledTimeBuilder()Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getEnabledTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEnabledTimeOrBuilder()Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.
.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEnabledTimeOrBuilderin interfaceContinuousBackupInfoOrBuilder
-
getScheduleList
Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScheduleListin interfaceContinuousBackupInfoOrBuilder- Returns:
- A list containing the schedule.
-
getScheduleCount
public int getScheduleCount()Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScheduleCountin interfaceContinuousBackupInfoOrBuilder- Returns:
- The count of schedule.
-
getSchedule
Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSchedulein interfaceContinuousBackupInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The schedule at the given index.
-
setSchedule
Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The schedule to set.- Returns:
- This builder for chaining.
-
addSchedule
Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The schedule to add.- Returns:
- This builder for chaining.
-
addAllSchedule
Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The schedule to add.- Returns:
- This builder for chaining.
-
clearSchedule
Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getScheduleValueList
Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScheduleValueListin interfaceContinuousBackupInfoOrBuilder- Returns:
- A list containing the enum numeric values on the wire for schedule.
-
getScheduleValue
public int getScheduleValue(int index) Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScheduleValuein interfaceContinuousBackupInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of schedule at the given index.
-
setScheduleValue
Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for schedule to set.- Returns:
- This builder for chaining.
-
addScheduleValue
Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for schedule to add.- Returns:
- This builder for chaining.
-
addAllScheduleValue
Output only. Days of the week on which a continuous backup is taken.
repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The enum numeric values on the wire for schedule to add.- Returns:
- This builder for chaining.
-
hasEarliestRestorableTime
public boolean hasEarliestRestorableTime()Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEarliestRestorableTimein interfaceContinuousBackupInfoOrBuilder- Returns:
- Whether the earliestRestorableTime field is set.
-
getEarliestRestorableTime
public com.google.protobuf.Timestamp getEarliestRestorableTime()Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEarliestRestorableTimein interfaceContinuousBackupInfoOrBuilder- Returns:
- The earliestRestorableTime.
-
setEarliestRestorableTime
Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setEarliestRestorableTime
public ContinuousBackupInfo.Builder setEarliestRestorableTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeEarliestRestorableTime
public ContinuousBackupInfo.Builder mergeEarliestRestorableTime(com.google.protobuf.Timestamp value) Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearEarliestRestorableTime
Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getEarliestRestorableTimeBuilder
public com.google.protobuf.Timestamp.Builder getEarliestRestorableTimeBuilder()Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getEarliestRestorableTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEarliestRestorableTimeOrBuilder()Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEarliestRestorableTimeOrBuilderin interfaceContinuousBackupInfoOrBuilder
-