public MemorystoreStub getStub() {
    return stub;
  }
Constructs an instance of MemorystoreClient, using the given settings. This is protected so
that it is easy to make a subclass, but otherwise, the static factory methods should be
preferred.
java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java