public static final MemorystoreSettings create(MemorystoreStubSettings stub) throws IOException {
    return new MemorystoreSettings.Builder(stub.toBuilder()).build();
  }
Returns the object with the settings used for calls to getLocation.
java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreSettings.java