@java.lang.Override
    public com.google.cloud.memorystore.v1.Instance.TransitEncryptionMode
        getTransitEncryptionMode() {
      com.google.cloud.memorystore.v1.Instance.TransitEncryptionMode result =
          com.google.cloud.memorystore.v1.Instance.TransitEncryptionMode.forNumber(
              transitEncryptionMode_);
      return result == null
          ? com.google.cloud.memorystore.v1.Instance.TransitEncryptionMode.UNRECOGNIZED
          : result;
    }
<pre>
Optional. Immutable. In-transit encryption mode of the instance.
</pre>

<code>
.google.cloud.memorystore.v1.Instance.TransitEncryptionMode transit_encryption_mode = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
</code>

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