public Builder setModalityValue(int value) {
      modality_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
<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>

@param value The enum numeric value on the wire for modality to set.
@return This builder for chaining.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Presets.java