@java.lang.Override
  public com.google.cloud.memorystore.v1beta.Instance.State getState() {
    com.google.cloud.memorystore.v1beta.Instance.State result =
        com.google.cloud.memorystore.v1beta.Instance.State.forNumber(state_);
    return result == null
        ? com.google.cloud.memorystore.v1beta.Instance.State.UNRECOGNIZED
        : result;
  }
<pre>
Output only. Current state of the instance.
</pre>

<code>
.google.cloud.memorystore.v1beta.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

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