public sealed class Content : IMessage<Content>, IEquatable<Content>, IDeepCloneable<Content>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1 API class Content.
The base structured datatype containing multi-part content of a message.
A Content includes a role field designating the producer of the Content
and a parts field containing multi-part data that contains the content of
the message turn.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eContent\u003c/code\u003e class within the Google Cloud AI Platform v1 API, detailing its structure and usage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContent\u003c/code\u003e class is a structured data type used for multi-part content in messages, including a \u003ccode\u003erole\u003c/code\u003e to specify the producer and \u003ccode\u003eparts\u003c/code\u003e for the message's data.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers a comprehensive list of versioned references for the \u003ccode\u003eContent\u003c/code\u003e class, ranging from version 1.0.0 to the latest version 3.22.0, for the .NET library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContent\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, offering methods for deep cloning, equality checks, and message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains two main properties: \u003ccode\u003eParts\u003c/code\u003e, which is a required ordered list of content \u003ccode\u003ePart\u003c/code\u003e objects, and \u003ccode\u003eRole\u003c/code\u003e, which specifies if the content was created by the 'user' or 'model'.\u003c/p\u003e\n"]]],[],null,[]]