@java.lang.Override
    public com.google.cloud.memorystore.v1.Instance.Mode getMode() {
      com.google.cloud.memorystore.v1.Instance.Mode result =
          com.google.cloud.memorystore.v1.Instance.Mode.forNumber(mode_);
      return result == null ? com.google.cloud.memorystore.v1.Instance.Mode.UNRECOGNIZED : result;
    }
<pre>
Optional. The mode config for the instance.
</pre>

<code>
.google.cloud.memorystore.v1.Instance.Mode mode = 26 [(.google.api.field_behavior) = OPTIONAL];
</code>

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