public Builder setTransitEncryptionMode(
        com.google.cloud.memorystore.v1.Instance.TransitEncryptionMode value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000800;
      transitEncryptionMode_ = value.getNumber();
      onChanged();
      return this;
    }
<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>

@param value The transitEncryptionMode to set.
@return This builder for chaining.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java