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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PersistenceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PersistenceConfig build()
buildPartial()
public PersistenceConfig buildPartial()
clear()
public PersistenceConfig.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public PersistenceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMode()
public PersistenceConfig.Builder clearMode()
Optional. Current persistence mode.
.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
clearOneof(Descriptors.OneofDescriptor oneof)
public PersistenceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public PersistenceConfig.Builder clone()
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];
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];
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];
getDefaultInstanceForType()
public PersistenceConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMode()
public PersistenceConfig.PersistenceMode getMode()
Optional. Current persistence mode.
.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
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];
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
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];
mergeFrom(PersistenceConfig other)
public PersistenceConfig.Builder mergeFrom(PersistenceConfig other)
public PersistenceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PersistenceConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PersistenceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public PersistenceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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.
|
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PersistenceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PersistenceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides