public sealed class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment : IMessage<AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment>, IEquatable<AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment>, IDeepCloneable<AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment.
Zero-based index indicating the start of the segment, measured in bytes
of a UTF-8 string (i.e. characters encoded on multiple bytes have a
length of more than one).
[[["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-28 UTC."],[],[],null,["# Discovery Engine v1 API - Class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment (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.Segment)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment) \n\n public sealed class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment : IMessage\u003cAssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment\u003e, IEquatable\u003cAssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment\u003e, IDeepCloneable\u003cAssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment.\n\nGrounding information for a segment of the text. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment \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)[Segment](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment), [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)[Segment](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment), [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)[Segment](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment), [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### Segment()\n\n public Segment()\n\n### Segment(Segment)\n\n public Segment(AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment other)\n\nProperties\n----------\n\n### EndIndex\n\n public long EndIndex { get; set; }\n\nEnd of the segment, exclusive.\n\n### GroundingScore\n\n public float GroundingScore { get; set; }\n\nScore for the segment.\n\n### ReferenceIndices\n\n public RepeatedField\u003cint\u003e ReferenceIndices { get; }\n\nReferences for the segment.\n\n### StartIndex\n\n public long StartIndex { get; set; }\n\nZero-based index indicating the start of the segment, measured in bytes\nof a UTF-8 string (i.e. characters encoded on multiple bytes have a\nlength of more than one).\n\n### Text\n\n public string Text { get; set; }\n\nThe text segment itself."]]