public int getInstancesCount() {
      if (instancesBuilder_ == null) {
        return instances_.size();
      } else {
        return instancesBuilder_.getCount();
      }
    }
<pre>
Optional. The instances that are the input to token computing API call.
Schema is identical to the prediction schema of the text model, even for
the non-text models, like chat models, or Codey models.
</pre>

<code>
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensRequest.java