@java.lang.Override
  public com.google.cloud.vertexai.api.Presets.Modality getModality() {
    com.google.cloud.vertexai.api.Presets.Modality result =
        com.google.cloud.vertexai.api.Presets.Modality.forNumber(modality_);
    return result == null ? com.google.cloud.vertexai.api.Presets.Modality.UNRECOGNIZED : result;
  }
<pre>
The modality of the uploaded model, which automatically configures the
distance measurement and feature normalization for the underlying example
index and queries. If your model does not precisely fit one of these types,
it is okay to choose the closest type.
</pre>

<code>.google.cloud.vertexai.v1.Presets.Modality modality = 2;</code>

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