@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (mode_
        != com.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode
            .PERSISTENCE_MODE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(1, mode_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(2, getRdbConfig());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(3, getAofConfig());
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Optional. AOF configuration. This field will be ignored if mode is not AOF.
</pre>

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