public Builder setModelRoutingPreference(
            com.google.cloud.vertexai.api.GenerationConfig.RoutingConfig.AutoRoutingMode
                    .ModelRoutingPreference
                value) {
          if (value == null) {
            throw new NullPointerException();
          }
          bitField0_ |= 0x00000001;
          modelRoutingPreference_ = value.getNumber();
          onChanged();
          return this;
        }
<pre>
The model routing preference.
</pre>

<code>
optional .google.cloud.vertexai.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference model_routing_preference = 1;
</code>

@param value The modelRoutingPreference to set.
@return This builder for chaining.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java