public static Content getContent(GenerateContentResponse response) {
    checkFinishReason(getFinishReason(response));

    return response.getCandidates(0).getContent();
  }
Gets the content in a GenerateContentResponse.

@param response a {@link com.google.cloud.vertexai.api.GenerateContentResponse} instance
@return the {@link com.google.cloud.vertexai.api.Content} in the response
@throws IllegalArgumentException if the response has 0 or more than 1 candidates, or if the
    response is blocked by safety reason or unauthorized citations
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ResponseHandler.java