public final class PersistenceConfig extends com.google.protobuf.GeneratedMessageV3 implements PersistenceConfigOrBuilder
Configuration of the persistence functionality.Protobuf type
google.cloud.redis.v1.PersistenceConfig| Modifier and Type | Class and 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.
|
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| Modifier and Type | Field and 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 |
| Modifier and Type | Method and 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(ByteBuffer data) |
static PersistenceConfig |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<PersistenceConfig> |
parser() |
PersistenceConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PERSISTENCE_MODE_FIELD_NUMBER
public static final int RDB_SNAPSHOT_PERIOD_FIELD_NUMBER
public static final int RDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBER
public static final int RDB_SNAPSHOT_START_TIME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];
getPersistenceModeValue in interface PersistenceConfigOrBuilderpublic 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];
getPersistenceMode in interface PersistenceConfigOrBuilderpublic 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];
getRdbSnapshotPeriodValue in interface PersistenceConfigOrBuilderpublic 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];
getRdbSnapshotPeriod in interface PersistenceConfigOrBuilderpublic 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];
hasRdbNextSnapshotTime in interface PersistenceConfigOrBuilderpublic 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];
getRdbNextSnapshotTime in interface PersistenceConfigOrBuilderpublic 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];
getRdbNextSnapshotTimeOrBuilder in interface PersistenceConfigOrBuilderpublic 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];
hasRdbSnapshotStartTime in interface PersistenceConfigOrBuilderpublic 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];
getRdbSnapshotStartTime in interface PersistenceConfigOrBuilderpublic 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];
getRdbSnapshotStartTimeOrBuilder in interface PersistenceConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static PersistenceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PersistenceConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PersistenceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PersistenceConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PersistenceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PersistenceConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PersistenceConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static PersistenceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PersistenceConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PersistenceConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PersistenceConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PersistenceConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PersistenceConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PersistenceConfig.Builder newBuilder()
public static PersistenceConfig.Builder newBuilder(PersistenceConfig prototype)
public PersistenceConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PersistenceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PersistenceConfig getDefaultInstance()
public static com.google.protobuf.Parser<PersistenceConfig> parser()
public com.google.protobuf.Parser<PersistenceConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PersistenceConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.