Class ClusterPersistenceConfig.RDBConfig.Builder

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

public static final class ClusterPersistenceConfig.RDBConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClusterPersistenceConfig.RDBConfig.Builder> implements ClusterPersistenceConfig.RDBConfigOrBuilder
 Configuration of the RDB based persistence.
 
Protobuf type google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig
  • 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<ClusterPersistenceConfig.RDBConfig.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<ClusterPersistenceConfig.RDBConfig.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<ClusterPersistenceConfig.RDBConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public ClusterPersistenceConfig.RDBConfig.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<ClusterPersistenceConfig.RDBConfig.Builder>
      Throws:
      IOException
    • getRdbSnapshotPeriodValue

      public int getRdbSnapshotPeriodValue()
       Optional. Period between RDB snapshots.
       
      .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRdbSnapshotPeriodValue in interface ClusterPersistenceConfig.RDBConfigOrBuilder
      Returns:
      The enum numeric value on the wire for rdbSnapshotPeriod.
    • setRdbSnapshotPeriodValue

      public ClusterPersistenceConfig.RDBConfig.Builder setRdbSnapshotPeriodValue(int value)
       Optional. Period between RDB snapshots.
       
      .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for rdbSnapshotPeriod to set.
      Returns:
      This builder for chaining.
    • getRdbSnapshotPeriod

       Optional. Period between RDB snapshots.
       
      .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRdbSnapshotPeriod in interface ClusterPersistenceConfig.RDBConfigOrBuilder
      Returns:
      The rdbSnapshotPeriod.
    • setRdbSnapshotPeriod

       Optional. Period between RDB snapshots.
       
      .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The rdbSnapshotPeriod to set.
      Returns:
      This builder for chaining.
    • clearRdbSnapshotPeriod

      public ClusterPersistenceConfig.RDBConfig.Builder clearRdbSnapshotPeriod()
       Optional. Period between RDB snapshots.
       
      .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasRdbSnapshotStartTime

      public boolean hasRdbSnapshotStartTime()
       Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRdbSnapshotStartTime in interface ClusterPersistenceConfig.RDBConfigOrBuilder
      Returns:
      Whether the rdbSnapshotStartTime field is set.
    • getRdbSnapshotStartTime

      public com.google.protobuf.Timestamp getRdbSnapshotStartTime()
       Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRdbSnapshotStartTime in interface ClusterPersistenceConfig.RDBConfigOrBuilder
      Returns:
      The rdbSnapshotStartTime.
    • setRdbSnapshotStartTime

      public ClusterPersistenceConfig.RDBConfig.Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp value)
       Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setRdbSnapshotStartTime

      public ClusterPersistenceConfig.RDBConfig.Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRdbSnapshotStartTime

      public ClusterPersistenceConfig.RDBConfig.Builder mergeRdbSnapshotStartTime(com.google.protobuf.Timestamp value)
       Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearRdbSnapshotStartTime

      public ClusterPersistenceConfig.RDBConfig.Builder clearRdbSnapshotStartTime()
       Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getRdbSnapshotStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getRdbSnapshotStartTimeBuilder()
       Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getRdbSnapshotStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder()
       Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRdbSnapshotStartTimeOrBuilder in interface ClusterPersistenceConfig.RDBConfigOrBuilder