@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.memorystore.v1beta.PersistenceConfig)) {
      return super.equals(obj);
    }
    com.google.cloud.memorystore.v1beta.PersistenceConfig other =
        (com.google.cloud.memorystore.v1beta.PersistenceConfig) obj;

    if (mode_ != other.mode_) return false;
    if (hasRdbConfig() != other.hasRdbConfig()) return false;
    if (hasRdbConfig()) {
      if (!getRdbConfig().equals(other.getRdbConfig())) return false;
    }
    if (hasAofConfig() != other.hasAofConfig()) return false;
    if (hasAofConfig()) {
      if (!getAofConfig().equals(other.getAofConfig())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. AOF configuration. This field will be ignored if mode is not AOF.
</pre>

<code>
.google.cloud.memorystore.v1beta.PersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PersistenceConfig.java