@java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (promptTokenCount_ != 0) {
        size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_);
      }
      if (candidatesTokenCount_ != 0) {
        size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_);
      }
      if (totalTokenCount_ != 0) {
        size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_);
      }
      if (cachedContentTokenCount_ != 0) {
        size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, cachedContentTokenCount_);
      }
      for (int i = 0; i < promptTokensDetails_.size(); i++) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                9, promptTokensDetails_.get(i));
      }
      for (int i = 0; i < cacheTokensDetails_.size(); i++) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                10, cacheTokensDetails_.get(i));
      }
      for (int i = 0; i < candidatesTokensDetails_.size(); i++) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                11, candidatesTokensDetails_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<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