Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
an array which contains the actual payload of each part. The element
could be either a single String or a Part. When it's a single string, it's converted to a
com.google.cloud.vertexai.api.Part that has the Text field set.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,["# Class ContentMaker (1.32.0)\n\n public class ContentMaker\n\n**Deprecated.** *This class and its package are deprecated. See the [migration guide](https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java) for more details.*\n\nHelper class to create content. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e ContentMaker \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### forRole(String role) (deprecated)\n\n public static ContentMaker.ContentMakerForRole forRole(String role)\n\nCreates a ContentMakerForRole for a given role.\n\n### fromMultiModalData(Object\\[\\] multiModalData) (deprecated)\n\n public static Content fromMultiModalData(Object[] multiModalData)\n\nCreates a content from an array of Objects, assuming the role is \"user\".\n\nThe resulting content can contain multiple [com.google.cloud.vertexai.api.Part](/vertex-ai/generative-ai/docs/reference/java/latest/com.google.cloud.vertexai.api.Part)s. Each\nelement in the array becomes one part.\n\nTo create a non-text modality content for any other\n\n### fromString(String text) (deprecated)\n\n public static Content fromString(String text)\n\nCreates a content from a string, assuming the role is \"user\".\n\nThe resulting content will contain one single [com.google.cloud.vertexai.api.Part](/vertex-ai/generative-ai/docs/reference/java/latest/com.google.cloud.vertexai.api.Part)\nwith its text field set.\n\nTo create a text content for \"model\", use \\`ContentMaker.forRole(\"model\").fromString(text);\n\nConstructors\n------------\n\n### ContentMaker() (deprecated)\n\n public ContentMaker()"]]