Class ClusterPersistenceConfig.RDBConfig.Builder (0.27.0)

public static final class ClusterPersistenceConfig.RDBConfig.Builder extends GeneratedMessageV3.Builder<ClusterPersistenceConfig.RDBConfig.Builder> implements ClusterPersistenceConfig.RDBConfigOrBuilder

Configuration of the RDB based persistence.

Protobuf type google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClusterPersistenceConfig.RDBConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides

build()

public ClusterPersistenceConfig.RDBConfig build()
Returns
Type Description
ClusterPersistenceConfig.RDBConfig

buildPartial()

public ClusterPersistenceConfig.RDBConfig buildPartial()
Returns
Type Description
ClusterPersistenceConfig.RDBConfig

clear()

public ClusterPersistenceConfig.RDBConfig.Builder clear()
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ClusterPersistenceConfig.RDBConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ClusterPersistenceConfig.RDBConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides

clearRdbSnapshotPeriod()

public ClusterPersistenceConfig.RDBConfig.Builder clearRdbSnapshotPeriod()

Optional. Period between RDB snapshots.

.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder

This builder for chaining.

clearRdbSnapshotStartTime()

public ClusterPersistenceConfig.RDBConfig.Builder clearRdbSnapshotStartTime()

Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder

clone()

public ClusterPersistenceConfig.RDBConfig.Builder clone()
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides

getDefaultInstanceForType()

public ClusterPersistenceConfig.RDBConfig getDefaultInstanceForType()
Returns
Type Description
ClusterPersistenceConfig.RDBConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRdbSnapshotPeriod()

public ClusterPersistenceConfig.RDBConfig.SnapshotPeriod getRdbSnapshotPeriod()

Optional. Period between RDB snapshots.

.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.RDBConfig.SnapshotPeriod

The rdbSnapshotPeriod.

getRdbSnapshotPeriodValue()

public int getRdbSnapshotPeriodValue()

Optional. Period between RDB snapshots.

.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for rdbSnapshotPeriod.

getRdbSnapshotStartTime()

public Timestamp getRdbSnapshotStartTime()

Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The rdbSnapshotStartTime.

getRdbSnapshotStartTimeBuilder()

public Timestamp.Builder getRdbSnapshotStartTimeBuilder()

Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getRdbSnapshotStartTimeOrBuilder()

public TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder()

Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

hasRdbSnapshotStartTime()

public boolean hasRdbSnapshotStartTime()

Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rdbSnapshotStartTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClusterPersistenceConfig.RDBConfig other)

public ClusterPersistenceConfig.RDBConfig.Builder mergeFrom(ClusterPersistenceConfig.RDBConfig other)
Parameter
Name Description
other ClusterPersistenceConfig.RDBConfig
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClusterPersistenceConfig.RDBConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ClusterPersistenceConfig.RDBConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides

mergeRdbSnapshotStartTime(Timestamp value)

public ClusterPersistenceConfig.RDBConfig.Builder mergeRdbSnapshotStartTime(Timestamp value)

Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClusterPersistenceConfig.RDBConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ClusterPersistenceConfig.RDBConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides

setRdbSnapshotPeriod(ClusterPersistenceConfig.RDBConfig.SnapshotPeriod value)

public ClusterPersistenceConfig.RDBConfig.Builder setRdbSnapshotPeriod(ClusterPersistenceConfig.RDBConfig.SnapshotPeriod value)

Optional. Period between RDB snapshots.

.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ClusterPersistenceConfig.RDBConfig.SnapshotPeriod

The rdbSnapshotPeriod to set.

Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder

This builder for chaining.

setRdbSnapshotPeriodValue(int value)

public ClusterPersistenceConfig.RDBConfig.Builder setRdbSnapshotPeriodValue(int value)

Optional. Period between RDB snapshots.

.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for rdbSnapshotPeriod to set.

Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder

This builder for chaining.

setRdbSnapshotStartTime(Timestamp value)

public ClusterPersistenceConfig.RDBConfig.Builder setRdbSnapshotStartTime(Timestamp value)

Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder

setRdbSnapshotStartTime(Timestamp.Builder builderForValue)

public ClusterPersistenceConfig.RDBConfig.Builder setRdbSnapshotStartTime(Timestamp.Builder builderForValue)

Optional. The 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ClusterPersistenceConfig.RDBConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ClusterPersistenceConfig.RDBConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder
Overrides