@java.lang.Override
  public com.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode getMode() {
    com.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode result =
        com.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode.forNumber(mode_);
    return result == null
        ? com.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode.UNRECOGNIZED
        : result;
  }
<pre>
Optional. Current persistence mode.
</pre>

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

@return The mode.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PersistenceConfig.java