public Builder addCandidatesTokensDetails(
          int index, com.google.cloud.vertexai.api.ModalityTokenCount value) {
        if (candidatesTokensDetailsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCandidatesTokensDetailsIsMutable();
          candidatesTokensDetails_.add(index, value);
          onChanged();
        } else {
          candidatesTokensDetailsBuilder_.addMessage(index, value);
        }
        return this;
      }
<pre>
Output only. List of modalities that were returned in the response.
</pre>

<code>
repeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentResponse.java