Class PersistenceConfig (0.1.0)

public final class PersistenceConfig extends GeneratedMessageV3 implements PersistenceConfigOrBuilder

Represents persistence configuration for a instance.

Protobuf type google.cloud.memorystore.v1beta.PersistenceConfig

Static Fields

AOF_CONFIG_FIELD_NUMBER

public static final int AOF_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

MODE_FIELD_NUMBER

public static final int MODE_FIELD_NUMBER
Field Value
Type Description
int

RDB_CONFIG_FIELD_NUMBER

public static final int RDB_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PersistenceConfig getDefaultInstance()
Returns
Type Description
PersistenceConfig

getDescriptor()

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

newBuilder()

public static PersistenceConfig.Builder newBuilder()
Returns
Type Description
PersistenceConfig.Builder

newBuilder(PersistenceConfig prototype)

public static PersistenceConfig.Builder newBuilder(PersistenceConfig prototype)
Parameter
Name Description
prototype PersistenceConfig
Returns
Type Description
PersistenceConfig.Builder

parseDelimitedFrom(InputStream input)

public static PersistenceConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PersistenceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PersistenceConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PersistenceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PersistenceConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PersistenceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PersistenceConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PersistenceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PersistenceConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PersistenceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PersistenceConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PersistenceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistenceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PersistenceConfig> parser()
Returns
Type Description
Parser<PersistenceConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAofConfig()

public PersistenceConfig.AOFConfig getAofConfig()

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

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

Returns
Type Description
PersistenceConfig.AOFConfig

The aofConfig.

getAofConfigOrBuilder()

public PersistenceConfig.AOFConfigOrBuilder getAofConfigOrBuilder()

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

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

Returns
Type Description
PersistenceConfig.AOFConfigOrBuilder

getDefaultInstanceForType()

public PersistenceConfig getDefaultInstanceForType()
Returns
Type Description
PersistenceConfig

getMode()

public PersistenceConfig.PersistenceMode getMode()

Optional. Current persistence mode.

.google.cloud.memorystore.v1beta.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.v1beta.PersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mode.

getParserForType()

public Parser<PersistenceConfig> getParserForType()
Returns
Type Description
Parser<PersistenceConfig>
Overrides

getRdbConfig()

public PersistenceConfig.RDBConfig getRdbConfig()

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

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

Returns
Type Description
PersistenceConfig.RDBConfig

The rdbConfig.

getRdbConfigOrBuilder()

public PersistenceConfig.RDBConfigOrBuilder getRdbConfigOrBuilder()

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

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

Returns
Type Description
PersistenceConfig.RDBConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAofConfig()

public boolean hasAofConfig()

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

.google.cloud.memorystore.v1beta.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.v1beta.PersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rdbConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PersistenceConfig.Builder newBuilderForType()
Returns
Type Description
PersistenceConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PersistenceConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PersistenceConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PersistenceConfig.Builder toBuilder()
Returns
Type Description
PersistenceConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException