Class 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.GeneratedMessageV3.Builder<ContinuousBackupInfo.Builder>
    implements ContinuousBackupInfoOrBuilder
     ContinuousBackupInfo describes the continuous backup properties of a
     cluster.
     
    Protobuf type google.cloud.alloydb.v1beta.ContinuousBackupInfo
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public ContinuousBackupInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupInfo.Builder>
      • setField

        public ContinuousBackupInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupInfo.Builder>
      • clearField

        public ContinuousBackupInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupInfo.Builder>
      • clearOneof

        public ContinuousBackupInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupInfo.Builder>
      • setRepeatedField

        public ContinuousBackupInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupInfo.Builder>
      • addRepeatedField

        public ContinuousBackupInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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];
      • 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<com.google.type.DayOfWeek> getScheduleList()
         Output only. Days of the week on which a continuous backup is taken. Output
         only field. Ignored if passed into the request.
         
        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. Output
         only field. Ignored if passed into the request.
         
        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 com.google.type.DayOfWeek getSchedule​(int index)
         Output only. Days of the week on which a continuous backup is taken. Output
         only field. Ignored if passed into the request.
         
        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,
                                                        com.google.type.DayOfWeek value)
         Output only. Days of the week on which a continuous backup is taken. Output
         only field. Ignored if passed into the request.
         
        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​(com.google.type.DayOfWeek value)
         Output only. Days of the week on which a continuous backup is taken. Output
         only field. Ignored if passed into the request.
         
        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 com.google.type.DayOfWeek> values)
         Output only. Days of the week on which a continuous backup is taken. Output
         only field. Ignored if passed into the request.
         
        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. Output
         only field. Ignored if passed into the request.
         
        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. Output
         only field. Ignored if passed into the request.
         
        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. Output
         only field. Ignored if passed into the request.
         
        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. Output
         only field. Ignored if passed into the request.
         
        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. Output
         only field. Ignored if passed into the request.
         
        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. Output
         only field. Ignored if passed into the request.
         
        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. Output
         only field.
         
        .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. Output
         only field.
         
        .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. Output
         only field.
         
        .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. Output
         only field.
         
        .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. Output
         only field.
         
        .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. Output
         only field.
         
        .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. Output
         only field.
         
        .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. Output
         only field.
         
        .google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEarliestRestorableTimeOrBuilder in interface ContinuousBackupInfoOrBuilder
      • setUnknownFields

        public final ContinuousBackupInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupInfo.Builder>
      • mergeUnknownFields

        public final ContinuousBackupInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupInfo.Builder>