@java.lang.Override
  public com.google.cloud.vertexai.api.EncryptionSpec getEncryptionSpec() {
    return encryptionSpec_ == null
        ? com.google.cloud.vertexai.api.EncryptionSpec.getDefaultInstance()
        : encryptionSpec_;
  }
<pre>
Customer-managed encryption key spec for an Endpoint. If set, this
Endpoint and all sub-resources of this Endpoint will be secured by
this key.
</pre>

<code>.google.cloud.vertexai.v1.EncryptionSpec encryption_spec = 10;</code>

@return The encryptionSpec.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java