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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupInfo.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupInfo.Builder>
    • getDefaultInstanceForType

      public ContinuousBackupInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ContinuousBackupInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ContinuousBackupInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ContinuousBackupInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContinuousBackupInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasEncryptionInfo in interface ContinuousBackupInfoOrBuilder
      Returns:
      Whether the encryptionInfo field is set.
    • getEncryptionInfo

      public EncryptionInfo 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:
      getEncryptionInfo in interface ContinuousBackupInfoOrBuilder
      Returns:
      The encryptionInfo.
    • setEncryptionInfo

      public ContinuousBackupInfo.Builder setEncryptionInfo(EncryptionInfo value)
       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

      public ContinuousBackupInfo.Builder setEncryptionInfo(EncryptionInfo.Builder builderForValue)
       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

      public ContinuousBackupInfo.Builder mergeEncryptionInfo(EncryptionInfo value)
       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

      public ContinuousBackupInfo.Builder 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

      public EncryptionInfo.Builder 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

      public EncryptionInfoOrBuilder 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:
      getEncryptionInfoOrBuilder in interface ContinuousBackupInfoOrBuilder
    • 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:
      hasEnabledTime in interface ContinuousBackupInfoOrBuilder
      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:
      getEnabledTime in interface ContinuousBackupInfoOrBuilder
      Returns:
      The enabledTime.
    • setEnabledTime

      public ContinuousBackupInfo.Builder setEnabledTime(com.google.protobuf.Timestamp value)
       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

      public ContinuousBackupInfo.Builder mergeEnabledTime(com.google.protobuf.Timestamp value)
       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

      public ContinuousBackupInfo.Builder 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:
      getEnabledTimeOrBuilder in interface ContinuousBackupInfoOrBuilder
    • getScheduleList

      public List<DayOfWeek> 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:
      getScheduleList in interface ContinuousBackupInfoOrBuilder
      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:
      getScheduleCount in interface ContinuousBackupInfoOrBuilder
      Returns:
      The count of schedule.
    • getSchedule

      public DayOfWeek getSchedule(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:
      getSchedule in interface ContinuousBackupInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The schedule at the given index.
    • setSchedule

      public ContinuousBackupInfo.Builder setSchedule(int index, DayOfWeek value)
       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

      public ContinuousBackupInfo.Builder addSchedule(DayOfWeek value)
       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

      public ContinuousBackupInfo.Builder addAllSchedule(Iterable<? extends DayOfWeek> values)
       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

      public ContinuousBackupInfo.Builder 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

      public List<Integer> 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:
      getScheduleValueList in interface ContinuousBackupInfoOrBuilder
      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:
      getScheduleValue in interface ContinuousBackupInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of schedule at the given index.
    • setScheduleValue

      public ContinuousBackupInfo.Builder setScheduleValue(int index, int value)
       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

      public ContinuousBackupInfo.Builder addScheduleValue(int value)
       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

      public ContinuousBackupInfo.Builder addAllScheduleValue(Iterable<Integer> values)
       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:
      hasEarliestRestorableTime in interface ContinuousBackupInfoOrBuilder
      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:
      getEarliestRestorableTime in interface ContinuousBackupInfoOrBuilder
      Returns:
      The earliestRestorableTime.
    • setEarliestRestorableTime

      public ContinuousBackupInfo.Builder setEarliestRestorableTime(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];
    • 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

      public ContinuousBackupInfo.Builder 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:
      getEarliestRestorableTimeOrBuilder in interface ContinuousBackupInfoOrBuilder