public Builder addRestrictions(
        int index,
        com.google.cloud.vertexai.api.ExamplesRestrictionsNamespace.Builder builderForValue) {
      if (restrictionsBuilder_ == null) {
        ensureRestrictionsIsMutable();
        restrictions_.add(index, builderForValue.build());
        onChanged();
      } else {
        restrictionsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
<pre>
Restrict the resulting nearest neighbors to respect these constraints.
</pre>

<code>repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ExamplesOverride.java