public com.google.cloud.memorystore.v1beta.Instance getInstance() {
      if (instanceBuilder_ == null) {
        return instance_ == null
            ? com.google.cloud.memorystore.v1beta.Instance.getDefaultInstance()
            : instance_;
      } else {
        return instanceBuilder_.getMessage();
      }
    }
<pre>
Required. The instance to create.
</pre>

<code>
.google.cloud.memorystore.v1beta.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];
</code>

@return The instance.
java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/CreateInstanceRequest.java