public int getRestrictionsCount() {
      if (restrictionsBuilder_ == null) {
        return restrictions_.size();
      } else {
        return restrictionsBuilder_.getCount();
      }
    }
<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