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\u003eThe latest version available for the Google.Cloud.AIPlatform.V1 API is 3.22.0, with a range of versions from 1.0.0 to 3.22.0 being accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContent\u003c/code\u003e class is a fundamental structured data type for messages in the API, containing multi-part content.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContent\u003c/code\u003e class contains properties such as \u003ccode\u003eParts\u003c/code\u003e, which represents the ordered parts of a single message, and \u003ccode\u003eRole\u003c/code\u003e, which identifies the content's producer as either a 'user' or 'model'.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContent\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<Content>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<Content>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, which are used in the API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContent\u003c/code\u003e class is constructed with a default constructor, \u003ccode\u003eContent()\u003c/code\u003e, or a constructor that accepts another \u003ccode\u003eContent\u003c/code\u003e object as an argument for copying, \u003ccode\u003eContent(Content other)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]