Package com.google.cloud.redis.v1beta1
Class PersistenceConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.redis.v1beta1.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 typegoogle.cloud.redis.v1beta1.PersistenceConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPersistenceConfig.BuilderConfiguration of the persistence functionality.static classPersistenceConfig.PersistenceModeAvailable Persistence modes.static classPersistenceConfig.SnapshotPeriodAvailable snapshot periods for scheduling.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intPERSISTENCE_MODE_FIELD_NUMBERstatic intRDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBERstatic intRDB_SNAPSHOT_PERIOD_FIELD_NUMBERstatic intRDB_SNAPSHOT_START_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static PersistenceConfiggetDefaultInstance()PersistenceConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<PersistenceConfig>getParserForType()PersistenceConfig.PersistenceModegetPersistenceMode()Optional.intgetPersistenceModeValue()Optional.com.google.protobuf.TimestampgetRdbNextSnapshotTime()Output only.com.google.protobuf.TimestampOrBuildergetRdbNextSnapshotTimeOrBuilder()Output only.PersistenceConfig.SnapshotPeriodgetRdbSnapshotPeriod()Optional.intgetRdbSnapshotPeriodValue()Optional.com.google.protobuf.TimestampgetRdbSnapshotStartTime()Optional.com.google.protobuf.TimestampOrBuildergetRdbSnapshotStartTimeOrBuilder()Optional.intgetSerializedSize()inthashCode()booleanhasRdbNextSnapshotTime()Output only.booleanhasRdbSnapshotStartTime()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PersistenceConfig.BuildernewBuilder()static PersistenceConfig.BuildernewBuilder(PersistenceConfig prototype)PersistenceConfig.BuildernewBuilderForType()protected PersistenceConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PersistenceConfigparseDelimitedFrom(InputStream input)static PersistenceConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PersistenceConfigparseFrom(byte[] data)static PersistenceConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PersistenceConfigparseFrom(com.google.protobuf.ByteString data)static PersistenceConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PersistenceConfigparseFrom(com.google.protobuf.CodedInputStream input)static PersistenceConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PersistenceConfigparseFrom(InputStream input)static PersistenceConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PersistenceConfigparseFrom(ByteBuffer data)static PersistenceConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<PersistenceConfig>parser()PersistenceConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.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.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPersistenceModeValuein interfacePersistenceConfigOrBuilder- 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.v1beta1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPersistenceModein interfacePersistenceConfigOrBuilder- 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.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRdbSnapshotPeriodValuein interfacePersistenceConfigOrBuilder- 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.v1beta1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRdbSnapshotPeriodin interfacePersistenceConfigOrBuilder- 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:
hasRdbNextSnapshotTimein interfacePersistenceConfigOrBuilder- 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:
getRdbNextSnapshotTimein interfacePersistenceConfigOrBuilder- 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:
getRdbNextSnapshotTimeOrBuilderin interfacePersistenceConfigOrBuilder
-
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:
hasRdbSnapshotStartTimein interfacePersistenceConfigOrBuilder- 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:
getRdbSnapshotStartTimein interfacePersistenceConfigOrBuilder- 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:
getRdbSnapshotStartTimeOrBuilderin interfacePersistenceConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PersistenceConfig.Builder newBuilder()
-
newBuilder
public static PersistenceConfig.Builder newBuilder(PersistenceConfig prototype)
-
toBuilder
public PersistenceConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PersistenceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PersistenceConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PersistenceConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<PersistenceConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PersistenceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-