Class PersistenceConfig.Builder (0.1.0)

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

Represents persistence configuration for a instance.

Protobuf type google.cloud.memorystore.v1.PersistenceConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PersistenceConfig build()
Returns
Type Description
PersistenceConfig

buildPartial()

public PersistenceConfig buildPartial()
Returns
Type Description
PersistenceConfig

clear()

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

clearAofConfig()

public PersistenceConfig.Builder clearAofConfig()

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

.google.cloud.memorystore.v1.PersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public PersistenceConfig.Builder clearMode()

Optional. Current persistence mode.

.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRdbConfig()

public PersistenceConfig.Builder clearRdbConfig()

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

.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.Builder

clone()

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

getAofConfig()

public PersistenceConfig.AOFConfig getAofConfig()

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

.google.cloud.memorystore.v1.PersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.AOFConfig

The aofConfig.

getAofConfigBuilder()

public PersistenceConfig.AOFConfig.Builder getAofConfigBuilder()

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

.google.cloud.memorystore.v1.PersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.AOFConfig.Builder

getAofConfigOrBuilder()

public PersistenceConfig.AOFConfigOrBuilder getAofConfigOrBuilder()

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

.google.cloud.memorystore.v1.PersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.AOFConfigOrBuilder

getDefaultInstanceForType()

public PersistenceConfig getDefaultInstanceForType()
Returns
Type Description
PersistenceConfig

getDescriptorForType()

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

getMode()

public PersistenceConfig.PersistenceMode getMode()

Optional. Current persistence mode.

.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.PersistenceMode

The mode.

getModeValue()

public int getModeValue()

Optional. Current persistence mode.

.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mode.

getRdbConfig()

public PersistenceConfig.RDBConfig getRdbConfig()

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

.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.RDBConfig

The rdbConfig.

getRdbConfigBuilder()

public PersistenceConfig.RDBConfig.Builder getRdbConfigBuilder()

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

.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.RDBConfig.Builder

getRdbConfigOrBuilder()

public PersistenceConfig.RDBConfigOrBuilder getRdbConfigOrBuilder()

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

.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PersistenceConfig.RDBConfigOrBuilder

hasAofConfig()

public boolean hasAofConfig()

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

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

public PersistenceConfig.Builder mergeAofConfig(PersistenceConfig.AOFConfig value)

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

.google.cloud.memorystore.v1.PersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

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

mergeFrom(PersistenceConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRdbConfig(PersistenceConfig.RDBConfig value)

public PersistenceConfig.Builder mergeRdbConfig(PersistenceConfig.RDBConfig value)

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

.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAofConfig(PersistenceConfig.AOFConfig value)

public PersistenceConfig.Builder setAofConfig(PersistenceConfig.AOFConfig value)

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

.google.cloud.memorystore.v1.PersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setAofConfig(PersistenceConfig.AOFConfig.Builder builderForValue)

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

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

.google.cloud.memorystore.v1.PersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(PersistenceConfig.PersistenceMode value)

public PersistenceConfig.Builder setMode(PersistenceConfig.PersistenceMode value)

Optional. Current persistence mode.

.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PersistenceConfig.PersistenceMode

The mode to set.

Returns
Type Description
PersistenceConfig.Builder

This builder for chaining.

setModeValue(int value)

public PersistenceConfig.Builder setModeValue(int value)

Optional. Current persistence mode.

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

This builder for chaining.

setRdbConfig(PersistenceConfig.RDBConfig value)

public PersistenceConfig.Builder setRdbConfig(PersistenceConfig.RDBConfig value)

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

.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

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

setRdbConfig(PersistenceConfig.RDBConfig.Builder builderForValue)

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

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

.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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