Class ClusterPersistenceConfig.Builder (0.26.0)

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

Configuration of the persistence functionality.

Protobuf type google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ClusterPersistenceConfig build()
Returns
Type Description
ClusterPersistenceConfig

buildPartial()

public ClusterPersistenceConfig buildPartial()
Returns
Type Description
ClusterPersistenceConfig

clear()

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

clearAofConfig()

public ClusterPersistenceConfig.Builder clearAofConfig()

Optional. AOF configuration. This field will be ignored if mode is not AOF.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public ClusterPersistenceConfig.Builder clearMode()

Optional. The mode of persistence.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRdbConfig()

public ClusterPersistenceConfig.Builder clearRdbConfig()

Optional. RDB configuration. This field will be ignored if mode is not RDB.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.Builder

clone()

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

getAofConfig()

public ClusterPersistenceConfig.AOFConfig getAofConfig()

Optional. AOF configuration. This field will be ignored if mode is not AOF.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.AOFConfig

The aofConfig.

getAofConfigBuilder()

public ClusterPersistenceConfig.AOFConfig.Builder getAofConfigBuilder()

Optional. AOF configuration. This field will be ignored if mode is not AOF.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.AOFConfig.Builder

getAofConfigOrBuilder()

public ClusterPersistenceConfig.AOFConfigOrBuilder getAofConfigOrBuilder()

Optional. AOF configuration. This field will be ignored if mode is not AOF.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.AOFConfigOrBuilder

getDefaultInstanceForType()

public ClusterPersistenceConfig getDefaultInstanceForType()
Returns
Type Description
ClusterPersistenceConfig

getDescriptorForType()

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

getMode()

public ClusterPersistenceConfig.PersistenceMode getMode()

Optional. The mode of persistence.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.PersistenceMode

The mode.

getModeValue()

public int getModeValue()

Optional. The mode of persistence.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mode.

getRdbConfig()

public ClusterPersistenceConfig.RDBConfig getRdbConfig()

Optional. RDB configuration. This field will be ignored if mode is not RDB.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.RDBConfig

The rdbConfig.

getRdbConfigBuilder()

public ClusterPersistenceConfig.RDBConfig.Builder getRdbConfigBuilder()

Optional. RDB configuration. This field will be ignored if mode is not RDB.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.RDBConfig.Builder

getRdbConfigOrBuilder()

public ClusterPersistenceConfig.RDBConfigOrBuilder getRdbConfigOrBuilder()

Optional. RDB configuration. This field will be ignored if mode is not RDB.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ClusterPersistenceConfig.RDBConfigOrBuilder

hasAofConfig()

public boolean hasAofConfig()

Optional. AOF configuration. This field will be ignored if mode is not AOF.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the aofConfig field is set.

hasRdbConfig()

public boolean hasRdbConfig()

Optional. RDB configuration. This field will be ignored if mode is not RDB.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rdbConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAofConfig(ClusterPersistenceConfig.AOFConfig value)

public ClusterPersistenceConfig.Builder mergeAofConfig(ClusterPersistenceConfig.AOFConfig value)

Optional. AOF configuration. This field will be ignored if mode is not AOF.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ClusterPersistenceConfig.AOFConfig
Returns
Type Description
ClusterPersistenceConfig.Builder

mergeFrom(ClusterPersistenceConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRdbConfig(ClusterPersistenceConfig.RDBConfig value)

public ClusterPersistenceConfig.Builder mergeRdbConfig(ClusterPersistenceConfig.RDBConfig value)

Optional. RDB configuration. This field will be ignored if mode is not RDB.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAofConfig(ClusterPersistenceConfig.AOFConfig value)

public ClusterPersistenceConfig.Builder setAofConfig(ClusterPersistenceConfig.AOFConfig value)

Optional. AOF configuration. This field will be ignored if mode is not AOF.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ClusterPersistenceConfig.AOFConfig
Returns
Type Description
ClusterPersistenceConfig.Builder

setAofConfig(ClusterPersistenceConfig.AOFConfig.Builder builderForValue)

public ClusterPersistenceConfig.Builder setAofConfig(ClusterPersistenceConfig.AOFConfig.Builder builderForValue)

Optional. AOF configuration. This field will be ignored if mode is not AOF.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(ClusterPersistenceConfig.PersistenceMode value)

public ClusterPersistenceConfig.Builder setMode(ClusterPersistenceConfig.PersistenceMode value)

Optional. The mode of persistence.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ClusterPersistenceConfig.PersistenceMode

The mode to set.

Returns
Type Description
ClusterPersistenceConfig.Builder

This builder for chaining.

setModeValue(int value)

public ClusterPersistenceConfig.Builder setModeValue(int value)

Optional. The mode of persistence.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
ClusterPersistenceConfig.Builder

This builder for chaining.

setRdbConfig(ClusterPersistenceConfig.RDBConfig value)

public ClusterPersistenceConfig.Builder setRdbConfig(ClusterPersistenceConfig.RDBConfig value)

Optional. RDB configuration. This field will be ignored if mode is not RDB.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

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

setRdbConfig(ClusterPersistenceConfig.RDBConfig.Builder builderForValue)

public ClusterPersistenceConfig.Builder setRdbConfig(ClusterPersistenceConfig.RDBConfig.Builder builderForValue)

Optional. RDB configuration. This field will be ignored if mode is not RDB.

.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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