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

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

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