public sealed class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata : IMessage<AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata>, IEquatable<AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata>, IDeepCloneable<AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata.
Domain name from the document URI. Note that the uri field may
contain a URL that redirects to the actual website, in which case
this will contain the domain name of the target site.
[[["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-08-28 UTC."],[],[],null,["# Discovery Engine v1 API - Class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata (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.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata) \n\n public sealed class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata : IMessage\u003cAssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata\u003e, IEquatable\u003cAssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata\u003e, IDeepCloneable\u003cAssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata.\n\nDocument metadata. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AssistantGroundedContent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types)[TextGroundingMetadata](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types)[Reference](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types)[DocumentMetadata](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AssistantGroundedContent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types)[TextGroundingMetadata](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types)[Reference](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types)[DocumentMetadata](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AssistantGroundedContent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types)[TextGroundingMetadata](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types)[Reference](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types)[DocumentMetadata](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata), [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### DocumentMetadata()\n\n public DocumentMetadata()\n\n### DocumentMetadata(DocumentMetadata)\n\n public DocumentMetadata(AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata other)\n\nProperties\n----------\n\n### Document\n\n public string Document { get; set; }\n\nDocument resource name.\n\n### DocumentAsDocumentName\n\n public DocumentName DocumentAsDocumentName { get; set; }\n\n[DocumentName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentName)-typed view over the [Document](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Reference.Types.DocumentMetadata#Google_Cloud_DiscoveryEngine_V1_AssistantGroundedContent_Types_TextGroundingMetadata_Types_Reference_Types_DocumentMetadata_Document) resource name\nproperty.\n\n### Domain\n\n public string Domain { get; set; }\n\nDomain name from the document URI. Note that the `uri` field may\ncontain a URL that redirects to the actual website, in which case\nthis will contain the domain name of the target site.\n\n### HasDocument\n\n public bool HasDocument { get; }\n\nGets whether the \"document\" field is set\n\n### HasDomain\n\n public bool HasDomain { get; }\n\nGets whether the \"domain\" field is set\n\n### HasPageIdentifier\n\n public bool HasPageIdentifier { get; }\n\nGets whether the \"page_identifier\" field is set\n\n### HasTitle\n\n public bool HasTitle { get; }\n\nGets whether the \"title\" field is set\n\n### HasUri\n\n public bool HasUri { get; }\n\nGets whether the \"uri\" field is set\n\n### PageIdentifier\n\n public string PageIdentifier { get; set; }\n\nPage identifier.\n\n### Title\n\n public string Title { get; set; }\n\nTitle.\n\n### Uri\n\n public string Uri { get; set; }\n\nURI for the document. It may contain a URL that redirects to the\nactual website."]]