Class PersistenceConfig.Builder

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

public static final class PersistenceConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PersistenceConfig.Builder> implements PersistenceConfigOrBuilder
 Configuration of the persistence functionality.
 
Protobuf type google.cloud.redis.v1.PersistenceConfig
  • 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<PersistenceConfig.Builder>
    • clear

      public PersistenceConfig.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<PersistenceConfig.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<PersistenceConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PersistenceConfig.Builder mergeFrom(PersistenceConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PersistenceConfig.Builder>
    • mergeFrom

      public PersistenceConfig.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<PersistenceConfig.Builder>
      Throws:
      IOException
    • getPersistenceModeValue

      public int getPersistenceModeValue()
       Optional. Controls whether Persistence features are enabled.
       If not provided, the existing value will be used.
       
      .google.cloud.redis.v1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPersistenceModeValue in interface PersistenceConfigOrBuilder
      Returns:
      The enum numeric value on the wire for persistenceMode.
    • setPersistenceModeValue

      public PersistenceConfig.Builder setPersistenceModeValue(int value)
       Optional. Controls whether Persistence features are enabled.
       If not provided, the existing value will be used.
       
      .google.cloud.redis.v1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for persistenceMode to set.
      Returns:
      This builder for chaining.
    • getPersistenceMode

      public PersistenceConfig.PersistenceMode getPersistenceMode()
       Optional. Controls whether Persistence features are enabled.
       If not provided, the existing value will be used.
       
      .google.cloud.redis.v1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPersistenceMode in interface PersistenceConfigOrBuilder
      Returns:
      The persistenceMode.
    • setPersistenceMode

       Optional. Controls whether Persistence features are enabled.
       If not provided, the existing value will be used.
       
      .google.cloud.redis.v1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The persistenceMode to set.
      Returns:
      This builder for chaining.
    • clearPersistenceMode

      public PersistenceConfig.Builder clearPersistenceMode()
       Optional. Controls whether Persistence features are enabled.
       If not provided, the existing value will be used.
       
      .google.cloud.redis.v1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getRdbSnapshotPeriodValue

      public int getRdbSnapshotPeriodValue()
       Optional. Period between RDB snapshots. Snapshots will be attempted every
       period starting from the provided snapshot start time. For example, a start
       time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing
       until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45,
       18:45, and 00:45 the next day, and so on. If not provided,
       TWENTY_FOUR_HOURS will be used as default.
       
      .google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRdbSnapshotPeriodValue in interface PersistenceConfigOrBuilder
      Returns:
      The enum numeric value on the wire for rdbSnapshotPeriod.
    • setRdbSnapshotPeriodValue

      public PersistenceConfig.Builder setRdbSnapshotPeriodValue(int value)
       Optional. Period between RDB snapshots. Snapshots will be attempted every
       period starting from the provided snapshot start time. For example, a start
       time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing
       until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45,
       18:45, and 00:45 the next day, and so on. If not provided,
       TWENTY_FOUR_HOURS will be used as default.
       
      .google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for rdbSnapshotPeriod to set.
      Returns:
      This builder for chaining.
    • getRdbSnapshotPeriod

      public PersistenceConfig.SnapshotPeriod getRdbSnapshotPeriod()
       Optional. Period between RDB snapshots. Snapshots will be attempted every
       period starting from the provided snapshot start time. For example, a start
       time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing
       until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45,
       18:45, and 00:45 the next day, and so on. If not provided,
       TWENTY_FOUR_HOURS will be used as default.
       
      .google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRdbSnapshotPeriod in interface PersistenceConfigOrBuilder
      Returns:
      The rdbSnapshotPeriod.
    • setRdbSnapshotPeriod

      public PersistenceConfig.Builder setRdbSnapshotPeriod(PersistenceConfig.SnapshotPeriod value)
       Optional. Period between RDB snapshots. Snapshots will be attempted every
       period starting from the provided snapshot start time. For example, a start
       time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing
       until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45,
       18:45, and 00:45 the next day, and so on. If not provided,
       TWENTY_FOUR_HOURS will be used as default.
       
      .google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The rdbSnapshotPeriod to set.
      Returns:
      This builder for chaining.
    • clearRdbSnapshotPeriod

      public PersistenceConfig.Builder clearRdbSnapshotPeriod()
       Optional. Period between RDB snapshots. Snapshots will be attempted every
       period starting from the provided snapshot start time. For example, a start
       time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing
       until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45,
       18:45, and 00:45 the next day, and so on. If not provided,
       TWENTY_FOUR_HOURS will be used as default.
       
      .google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasRdbNextSnapshotTime

      public boolean hasRdbNextSnapshotTime()
       Output only. The next time that a snapshot attempt is scheduled to occur.
       
      .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasRdbNextSnapshotTime in interface PersistenceConfigOrBuilder
      Returns:
      Whether the rdbNextSnapshotTime field is set.
    • getRdbNextSnapshotTime

      public com.google.protobuf.Timestamp getRdbNextSnapshotTime()
       Output only. The next time that a snapshot attempt is scheduled to occur.
       
      .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRdbNextSnapshotTime in interface PersistenceConfigOrBuilder
      Returns:
      The rdbNextSnapshotTime.
    • setRdbNextSnapshotTime

      public PersistenceConfig.Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp value)
       Output only. The next time that a snapshot attempt is scheduled to occur.
       
      .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setRdbNextSnapshotTime

      public PersistenceConfig.Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The next time that a snapshot attempt is scheduled to occur.
       
      .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeRdbNextSnapshotTime

      public PersistenceConfig.Builder mergeRdbNextSnapshotTime(com.google.protobuf.Timestamp value)
       Output only. The next time that a snapshot attempt is scheduled to occur.
       
      .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearRdbNextSnapshotTime

      public PersistenceConfig.Builder clearRdbNextSnapshotTime()
       Output only. The next time that a snapshot attempt is scheduled to occur.
       
      .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRdbNextSnapshotTimeBuilder

      public com.google.protobuf.Timestamp.Builder getRdbNextSnapshotTimeBuilder()
       Output only. The next time that a snapshot attempt is scheduled to occur.
       
      .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRdbNextSnapshotTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder()
       Output only. The next time that a snapshot attempt is scheduled to occur.
       
      .google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRdbNextSnapshotTimeOrBuilder in interface PersistenceConfigOrBuilder
    • hasRdbSnapshotStartTime

      public boolean hasRdbSnapshotStartTime()
       Optional. Date and time that the first snapshot was/will be attempted, and
       to which future snapshots will be aligned. If not provided, the current
       time will be used.
       
      .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRdbSnapshotStartTime in interface PersistenceConfigOrBuilder
      Returns:
      Whether the rdbSnapshotStartTime field is set.
    • getRdbSnapshotStartTime

      public com.google.protobuf.Timestamp getRdbSnapshotStartTime()
       Optional. Date and time that the first snapshot was/will be attempted, and
       to which future snapshots will be aligned. If not provided, the current
       time will be used.
       
      .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRdbSnapshotStartTime in interface PersistenceConfigOrBuilder
      Returns:
      The rdbSnapshotStartTime.
    • setRdbSnapshotStartTime

      public PersistenceConfig.Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp value)
       Optional. Date and time that the first snapshot was/will be attempted, and
       to which future snapshots will be aligned. If not provided, the current
       time will be used.
       
      .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setRdbSnapshotStartTime

      public PersistenceConfig.Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. Date and time that the first snapshot was/will be attempted, and
       to which future snapshots will be aligned. If not provided, the current
       time will be used.
       
      .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRdbSnapshotStartTime

      public PersistenceConfig.Builder mergeRdbSnapshotStartTime(com.google.protobuf.Timestamp value)
       Optional. Date and time that the first snapshot was/will be attempted, and
       to which future snapshots will be aligned. If not provided, the current
       time will be used.
       
      .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearRdbSnapshotStartTime

      public PersistenceConfig.Builder clearRdbSnapshotStartTime()
       Optional. Date and time that the first snapshot was/will be attempted, and
       to which future snapshots will be aligned. If not provided, the current
       time will be used.
       
      .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getRdbSnapshotStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getRdbSnapshotStartTimeBuilder()
       Optional. Date and time that the first snapshot was/will be attempted, and
       to which future snapshots will be aligned. If not provided, the current
       time will be used.
       
      .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getRdbSnapshotStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder()
       Optional. Date and time that the first snapshot was/will be attempted, and
       to which future snapshots will be aligned. If not provided, the current
       time will be used.
       
      .google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRdbSnapshotStartTimeOrBuilder in interface PersistenceConfigOrBuilder