Class PersistenceConfig.RDBConfig.Builder (0.1.0)

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

Configuration for RDB based persistence.

Protobuf type google.cloud.memorystore.v1.PersistenceConfig.RDBConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRdbSnapshotPeriod()

public PersistenceConfig.RDBConfig.Builder clearRdbSnapshotPeriod()

Optional. Period between RDB snapshots.

.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.RDBConfig.Builder

This builder for chaining.

clearRdbSnapshotStartTime()

public PersistenceConfig.RDBConfig.Builder clearRdbSnapshotStartTime()

Optional. 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
PersistenceConfig.RDBConfig.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getRdbSnapshotPeriod()

public PersistenceConfig.RDBConfig.SnapshotPeriod getRdbSnapshotPeriod()

Optional. Period between RDB snapshots.

.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.RDBConfig.SnapshotPeriod

The rdbSnapshotPeriod.

getRdbSnapshotPeriodValue()

public int getRdbSnapshotPeriodValue()

Optional. Period between RDB snapshots.

.google.cloud.memorystore.v1.PersistenceConfig.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. 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. 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. 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. 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(PersistenceConfig.RDBConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRdbSnapshotStartTime(Timestamp value)

public PersistenceConfig.RDBConfig.Builder mergeRdbSnapshotStartTime(Timestamp value)

Optional. 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
PersistenceConfig.RDBConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setRdbSnapshotPeriod(PersistenceConfig.RDBConfig.SnapshotPeriod value)

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

Optional. Period between RDB snapshots.

.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PersistenceConfig.RDBConfig.SnapshotPeriod

The rdbSnapshotPeriod to set.

Returns
Type Description
PersistenceConfig.RDBConfig.Builder

This builder for chaining.

setRdbSnapshotPeriodValue(int value)

public PersistenceConfig.RDBConfig.Builder setRdbSnapshotPeriodValue(int value)

Optional. Period between RDB snapshots.

.google.cloud.memorystore.v1.PersistenceConfig.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
PersistenceConfig.RDBConfig.Builder

This builder for chaining.

setRdbSnapshotStartTime(Timestamp value)

public PersistenceConfig.RDBConfig.Builder setRdbSnapshotStartTime(Timestamp value)

Optional. 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
PersistenceConfig.RDBConfig.Builder

setRdbSnapshotStartTime(Timestamp.Builder builderForValue)

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

Optional. 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
PersistenceConfig.RDBConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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