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 class
PersistenceConfig.Builder
Configuration of the persistence functionality.static class
PersistenceConfig.PersistenceMode
Available Persistence modes.static class
PersistenceConfig.SnapshotPeriod
Available 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 int
PERSISTENCE_MODE_FIELD_NUMBER
static int
RDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBER
static int
RDB_SNAPSHOT_PERIOD_FIELD_NUMBER
static int
RDB_SNAPSHOT_START_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static PersistenceConfig
getDefaultInstance()
PersistenceConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Parser<PersistenceConfig>
getParserForType()
PersistenceConfig.PersistenceMode
getPersistenceMode()
Optional.int
getPersistenceModeValue()
Optional.com.google.protobuf.Timestamp
getRdbNextSnapshotTime()
Output only.com.google.protobuf.TimestampOrBuilder
getRdbNextSnapshotTimeOrBuilder()
Output only.PersistenceConfig.SnapshotPeriod
getRdbSnapshotPeriod()
Optional.int
getRdbSnapshotPeriodValue()
Optional.com.google.protobuf.Timestamp
getRdbSnapshotStartTime()
Optional.com.google.protobuf.TimestampOrBuilder
getRdbSnapshotStartTimeOrBuilder()
Optional.int
getSerializedSize()
int
hashCode()
boolean
hasRdbNextSnapshotTime()
Output only.boolean
hasRdbSnapshotStartTime()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static PersistenceConfig.Builder
newBuilder()
static PersistenceConfig.Builder
newBuilder(PersistenceConfig prototype)
PersistenceConfig.Builder
newBuilderForType()
protected PersistenceConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static PersistenceConfig
parseDelimitedFrom(InputStream input)
static PersistenceConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PersistenceConfig
parseFrom(byte[] data)
static PersistenceConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PersistenceConfig
parseFrom(com.google.protobuf.ByteString data)
static PersistenceConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PersistenceConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static PersistenceConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PersistenceConfig
parseFrom(InputStream input)
static PersistenceConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PersistenceConfig
parseFrom(ByteBuffer data)
static PersistenceConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<PersistenceConfig>
parser()
PersistenceConfig.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.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 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:
getPersistenceModeValue
in 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:
getPersistenceMode
in 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:
getRdbSnapshotPeriodValue
in 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:
getRdbSnapshotPeriod
in 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:
hasRdbNextSnapshotTime
in 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:
getRdbNextSnapshotTime
in 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:
getRdbNextSnapshotTimeOrBuilder
in 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:
hasRdbSnapshotStartTime
in 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:
getRdbSnapshotStartTime
in 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:
getRdbSnapshotStartTimeOrBuilder
in interfacePersistenceConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PersistenceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PersistenceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-