Class PersistenceConfig

  • All Implemented Interfaces:
    PersistenceConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class PersistenceConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements PersistenceConfigOrBuilder
     Configuration of the persistence functionality.
     
    Protobuf type google.cloud.redis.v1.PersistenceConfig
    See Also:
    Serialized Form
    • Field Detail

      • PERSISTENCE_MODE_FIELD_NUMBER

        public static final int PERSISTENCE_MODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RDB_SNAPSHOT_PERIOD_FIELD_NUMBER

        public static final int RDB_SNAPSHOT_PERIOD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBER

        public static final int RDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RDB_SNAPSHOT_START_TIME_FIELD_NUMBER

        public static final int RDB_SNAPSHOT_START_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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