public sealed class GroundedGenerationContent.Types.Part : IMessage<GroundedGenerationContent.Types.Part>, IEquatable<GroundedGenerationContent.Types.Part>, IDeepCloneable<GroundedGenerationContent.Types.Part>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class GroundedGenerationContent.Types.Part.
[[["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-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGroundedGenerationContent.Types.Part\u003c/code\u003e class in the Discovery Engine v1 API is 1.6.0, and there are also previous versions documented, ranging from 1.5.0 down to 1.0.0-beta06.\u003c/p\u003e\n"],["\u003cp\u003eThis class represents a single component of content, and it inherits from the \u003ccode\u003eobject\u003c/code\u003e class, while also implementing \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePart\u003c/code\u003e class includes constructors for creating new instances, either empty or by copying an existing \u003ccode\u003ePart\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties such as \u003ccode\u003eDataCase\u003c/code\u003e, indicating which type of data is currently set, \u003ccode\u003eHasText\u003c/code\u003e to check whether the "text" property is set, and \u003ccode\u003eText\u003c/code\u003e to get or set the inline text content of the part.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class GroundedGenerationContent.Types.Part (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part) \n\n public sealed class GroundedGenerationContent.Types.Part : IMessage\u003cGroundedGenerationContent.Types.Part\u003e, IEquatable\u003cGroundedGenerationContent.Types.Part\u003e, IDeepCloneable\u003cGroundedGenerationContent.Types.Part\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class GroundedGenerationContent.Types.Part.\n\nSingle part of content. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GroundedGenerationContent.Types.Part \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GroundedGenerationContent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types)[Part](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GroundedGenerationContent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types)[Part](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GroundedGenerationContent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types)[Part](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GroundedGenerationContent.Types.Part), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### Part()\n\n public Part()\n\n### Part(Part)\n\n public Part(GroundedGenerationContent.Types.Part other)\n\nProperties\n----------\n\n### DataCase\n\n public GroundedGenerationContent.Types.Part.DataOneofCase DataCase { get; }\n\n### HasText\n\n public bool HasText { get; }\n\nGets whether the \"text\" field is set\n\n### Text\n\n public string Text { get; set; }\n\nInline text."]]