public Builder addRestrictions(
        com.google.cloud.vertexai.api.ExamplesRestrictionsNamespace value) {
      if (restrictionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRestrictionsIsMutable();
        restrictions_.add(value);
        onChanged();
      } else {
        restrictionsBuilder_.addMessage(value);
      }
      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