@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKeyName_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Required. The Cloud KMS resource identifier of the customer managed
encryption key used to protect a resource. Has the form:
`projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`.
The key needs to be in the same region as where the compute resource is
created.
</pre>

<code>string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];</code>

@return The bytes for kmsKeyName.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EncryptionSpec.java