public Builder toBuilder() {
    return new Builder(this);
  }
Returns a builder containing all the values of this settings class.
java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java