Class PersistenceConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.redis.v1.PersistenceConfig
All Implemented Interfaces:
PersistenceConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class PersistenceConfig extends com.google.protobuf.GeneratedMessage implements PersistenceConfigOrBuilder
 Configuration of the persistence functionality.
 
Protobuf type google.cloud.redis.v1.PersistenceConfig
See Also:
  • Field Details

    • PERSISTENCE_MODE_FIELD_NUMBER

      public static final int PERSISTENCE_MODE_FIELD_NUMBER
      See Also:
    • RDB_SNAPSHOT_PERIOD_FIELD_NUMBER

      public static final int RDB_SNAPSHOT_PERIOD_FIELD_NUMBER
      See Also:
    • RDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBER

      public static final int RDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBER
      See Also:
    • RDB_SNAPSHOT_START_TIME_FIELD_NUMBER

      public static final int RDB_SNAPSHOT_START_TIME_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PersistenceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PersistenceConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PersistenceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PersistenceConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PersistenceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PersistenceConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PersistenceConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PersistenceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PersistenceConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PersistenceConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PersistenceConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PersistenceConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static PersistenceConfig.Builder newBuilder()
    • newBuilder

      public static PersistenceConfig.Builder newBuilder(PersistenceConfig prototype)
    • toBuilder

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

      protected PersistenceConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static PersistenceConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PersistenceConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<PersistenceConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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