Class PersistenceConfig (2.81.0)

publicfinalclass PersistenceConfigextendsGeneratedMessageV3implementsPersistenceConfigOrBuilder

Configuration of the persistence functionality.

Protobuf type google.cloud.redis.v1.PersistenceConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

PERSISTENCE_MODE_FIELD_NUMBER

publicstaticfinalintPERSISTENCE_MODE_FIELD_NUMBER
Field Value
Type Description
int

RDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBER

publicstaticfinalintRDB_NEXT_SNAPSHOT_TIME_FIELD_NUMBER
Field Value
Type Description
int

RDB_SNAPSHOT_PERIOD_FIELD_NUMBER

publicstaticfinalintRDB_SNAPSHOT_PERIOD_FIELD_NUMBER
Field Value
Type Description
int

RDB_SNAPSHOT_START_TIME_FIELD_NUMBER

publicstaticfinalintRDB_SNAPSHOT_START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticPersistenceConfiggetDefaultInstance()
Returns
Type Description
PersistenceConfig

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticPersistenceConfig.BuildernewBuilder()
Returns
Type Description
PersistenceConfig.Builder

newBuilder(PersistenceConfig prototype)

publicstaticPersistenceConfig.BuildernewBuilder(PersistenceConfigprototype)
Parameter
Name Description
prototype PersistenceConfig
Returns
Type Description
PersistenceConfig.Builder

parseDelimitedFrom(InputStream input)

publicstaticPersistenceConfigparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPersistenceConfigparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticPersistenceConfigparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticPersistenceConfigparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticPersistenceConfigparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticPersistenceConfigparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticPersistenceConfigparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPersistenceConfigparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticPersistenceConfigparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPersistenceConfigparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticPersistenceConfigparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticPersistenceConfigparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<PersistenceConfig>parser()
Returns
Type Description
Parser<PersistenceConfig>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicPersistenceConfiggetDefaultInstanceForType()
Returns
Type Description
PersistenceConfig

getParserForType()

publicParser<PersistenceConfig>getParserForType()
Returns
Type Description
Parser<PersistenceConfig>
Overrides

getPersistenceMode()

publicPersistenceConfig.PersistenceModegetPersistenceMode()

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];

Returns
Type Description
PersistenceConfig.PersistenceMode

The persistenceMode.

getPersistenceModeValue()

publicintgetPersistenceModeValue()

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];

Returns
Type Description
int

The enum numeric value on the wire for persistenceMode.

getRdbNextSnapshotTime()

publicTimestampgetRdbNextSnapshotTime()

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];

Returns
Type Description
Timestamp

The rdbNextSnapshotTime.

getRdbNextSnapshotTimeOrBuilder()

publicTimestampOrBuildergetRdbNextSnapshotTimeOrBuilder()

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];

Returns
Type Description
TimestampOrBuilder

getRdbSnapshotPeriod()

publicPersistenceConfig.SnapshotPeriodgetRdbSnapshotPeriod()

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];

Returns
Type Description
PersistenceConfig.SnapshotPeriod

The rdbSnapshotPeriod.

getRdbSnapshotPeriodValue()

publicintgetRdbSnapshotPeriodValue()

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];

Returns
Type Description
int

The enum numeric value on the wire for rdbSnapshotPeriod.

getRdbSnapshotStartTime()

publicTimestampgetRdbSnapshotStartTime()

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];

Returns
Type Description
Timestamp

The rdbSnapshotStartTime.

getRdbSnapshotStartTimeOrBuilder()

publicTimestampOrBuildergetRdbSnapshotStartTimeOrBuilder()

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];

Returns
Type Description
TimestampOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasRdbNextSnapshotTime()

publicbooleanhasRdbNextSnapshotTime()

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];

Returns
Type Description
boolean

Whether the rdbNextSnapshotTime field is set.

hasRdbSnapshotStartTime()

publicbooleanhasRdbSnapshotStartTime()

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];

Returns
Type Description
boolean

Whether the rdbSnapshotStartTime field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicPersistenceConfig.BuildernewBuilderForType()
Returns
Type Description
PersistenceConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedPersistenceConfig.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PersistenceConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicPersistenceConfig.BuildertoBuilder()
Returns
Type Description
PersistenceConfig.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.