Class AutomatedBackupConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutomatedBackupConfig.Builder>
com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.Builder
All Implemented Interfaces:
AutomatedBackupConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AutomatedBackupConfig

public static final class AutomatedBackupConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutomatedBackupConfig.Builder> implements AutomatedBackupConfigOrBuilder
 The automated backup config for a cluster.
 
Protobuf type google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig
  • 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<AutomatedBackupConfig.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<AutomatedBackupConfig.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<AutomatedBackupConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public AutomatedBackupConfig.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<AutomatedBackupConfig.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<AutomatedBackupConfig.Builder>
    • mergeFrom

      public AutomatedBackupConfig.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<AutomatedBackupConfig.Builder>
      Throws:
      IOException
    • getScheduleCase

      public AutomatedBackupConfig.ScheduleCase getScheduleCase()
      Specified by:
      getScheduleCase in interface AutomatedBackupConfigOrBuilder
    • clearSchedule

      public AutomatedBackupConfig.Builder clearSchedule()
    • hasFixedFrequencySchedule

      public boolean hasFixedFrequencySchedule()
       Optional. Trigger automated backups at a fixed frequency.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFixedFrequencySchedule in interface AutomatedBackupConfigOrBuilder
      Returns:
      Whether the fixedFrequencySchedule field is set.
    • getFixedFrequencySchedule

      public AutomatedBackupConfig.FixedFrequencySchedule getFixedFrequencySchedule()
       Optional. Trigger automated backups at a fixed frequency.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFixedFrequencySchedule in interface AutomatedBackupConfigOrBuilder
      Returns:
      The fixedFrequencySchedule.
    • setFixedFrequencySchedule

       Optional. Trigger automated backups at a fixed frequency.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setFixedFrequencySchedule

      public AutomatedBackupConfig.Builder setFixedFrequencySchedule(AutomatedBackupConfig.FixedFrequencySchedule.Builder builderForValue)
       Optional. Trigger automated backups at a fixed frequency.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeFixedFrequencySchedule

       Optional. Trigger automated backups at a fixed frequency.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearFixedFrequencySchedule

      public AutomatedBackupConfig.Builder clearFixedFrequencySchedule()
       Optional. Trigger automated backups at a fixed frequency.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFixedFrequencyScheduleBuilder

      public AutomatedBackupConfig.FixedFrequencySchedule.Builder getFixedFrequencyScheduleBuilder()
       Optional. Trigger automated backups at a fixed frequency.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFixedFrequencyScheduleOrBuilder

      public AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder getFixedFrequencyScheduleOrBuilder()
       Optional. Trigger automated backups at a fixed frequency.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFixedFrequencyScheduleOrBuilder in interface AutomatedBackupConfigOrBuilder
    • getAutomatedBackupModeValue

      public int getAutomatedBackupModeValue()
       Optional. The automated backup mode. If the mode is disabled, the other
       fields will be ignored.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutomatedBackupModeValue in interface AutomatedBackupConfigOrBuilder
      Returns:
      The enum numeric value on the wire for automatedBackupMode.
    • setAutomatedBackupModeValue

      public AutomatedBackupConfig.Builder setAutomatedBackupModeValue(int value)
       Optional. The automated backup mode. If the mode is disabled, the other
       fields will be ignored.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for automatedBackupMode to set.
      Returns:
      This builder for chaining.
    • getAutomatedBackupMode

      public AutomatedBackupConfig.AutomatedBackupMode getAutomatedBackupMode()
       Optional. The automated backup mode. If the mode is disabled, the other
       fields will be ignored.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutomatedBackupMode in interface AutomatedBackupConfigOrBuilder
      Returns:
      The automatedBackupMode.
    • setAutomatedBackupMode

       Optional. The automated backup mode. If the mode is disabled, the other
       fields will be ignored.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The automatedBackupMode to set.
      Returns:
      This builder for chaining.
    • clearAutomatedBackupMode

      public AutomatedBackupConfig.Builder clearAutomatedBackupMode()
       Optional. The automated backup mode. If the mode is disabled, the other
       fields will be ignored.
       
      .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasRetention

      public boolean hasRetention()
       Optional. How long to keep automated backups before the backups are
       deleted. The value should be between 1 day and 365 days. If not specified,
       the default value is 35 days.
       
      optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRetention in interface AutomatedBackupConfigOrBuilder
      Returns:
      Whether the retention field is set.
    • getRetention

      public com.google.protobuf.Duration getRetention()
       Optional. How long to keep automated backups before the backups are
       deleted. The value should be between 1 day and 365 days. If not specified,
       the default value is 35 days.
       
      optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetention in interface AutomatedBackupConfigOrBuilder
      Returns:
      The retention.
    • setRetention

      public AutomatedBackupConfig.Builder setRetention(com.google.protobuf.Duration value)
       Optional. How long to keep automated backups before the backups are
       deleted. The value should be between 1 day and 365 days. If not specified,
       the default value is 35 days.
       
      optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setRetention

      public AutomatedBackupConfig.Builder setRetention(com.google.protobuf.Duration.Builder builderForValue)
       Optional. How long to keep automated backups before the backups are
       deleted. The value should be between 1 day and 365 days. If not specified,
       the default value is 35 days.
       
      optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRetention

      public AutomatedBackupConfig.Builder mergeRetention(com.google.protobuf.Duration value)
       Optional. How long to keep automated backups before the backups are
       deleted. The value should be between 1 day and 365 days. If not specified,
       the default value is 35 days.
       
      optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearRetention

      public AutomatedBackupConfig.Builder clearRetention()
       Optional. How long to keep automated backups before the backups are
       deleted. The value should be between 1 day and 365 days. If not specified,
       the default value is 35 days.
       
      optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getRetentionBuilder

      public com.google.protobuf.Duration.Builder getRetentionBuilder()
       Optional. How long to keep automated backups before the backups are
       deleted. The value should be between 1 day and 365 days. If not specified,
       the default value is 35 days.
       
      optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getRetentionOrBuilder

      public com.google.protobuf.DurationOrBuilder getRetentionOrBuilder()
       Optional. How long to keep automated backups before the backups are
       deleted. The value should be between 1 day and 365 days. If not specified,
       the default value is 35 days.
       
      optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetentionOrBuilder in interface AutomatedBackupConfigOrBuilder