public sealed class Answer.Types.Citation : IMessage<Answer.Types.Citation>, IEquatable<Answer.Types.Citation>, IDeepCloneable<Answer.Types.Citation>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class Answer.Types.Citation.
End of the attributed segment, exclusive. Measured in bytes (UTF-8
unicode). If there are multi-byte characters,such as non-ASCII
characters, the index measurement is longer than the string length.
Index indicates the start of the segment, measured in bytes (UTF-8
unicode). If there are multi-byte characters,such as non-ASCII
characters, the index measurement is longer than the string length.
[[["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\u003eThis documentation covers the \u003ccode\u003eAnswer.Types.Citation\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnswer.Types.Citation\u003c/code\u003e class represents citation information for a segment and inherits from the object class while 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 class has a constructor \u003ccode\u003eCitation\u003c/code\u003e which creates a new instance and another constructor that copies properties from an existing instance of \u003ccode\u003eAnswer.Types.Citation\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eEndIndex\u003c/code\u003e and \u003ccode\u003eStartIndex\u003c/code\u003e, representing the boundaries of the cited segment, and \u003ccode\u003eSources\u003c/code\u003e, a collection of citation sources.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of this class are available, ranging from version 1.0.0-beta06 to the latest 1.6.0.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class Answer.Types.Citation (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.Answer.Types.Citation)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation) \n\n public sealed class Answer.Types.Citation : IMessage\u003cAnswer.Types.Citation\u003e, IEquatable\u003cAnswer.Types.Citation\u003e, IDeepCloneable\u003cAnswer.Types.Citation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class Answer.Types.Citation.\n\nCitation info for a segment. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Answer.Types.Citation \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Answer](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Answer)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Answer.Types)[Citation](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Answer](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Answer)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Answer.Types)[Citation](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Answer](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Answer)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Answer.Types)[Citation](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Answer.Types.Citation), [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### Citation()\n\n public Citation()\n\n### Citation(Citation)\n\n public Citation(Answer.Types.Citation other)\n\nProperties\n----------\n\n### EndIndex\n\n public long EndIndex { get; set; }\n\nEnd of the attributed segment, exclusive. Measured in bytes (UTF-8\nunicode). If there are multi-byte characters,such as non-ASCII\ncharacters, the index measurement is longer than the string length.\n\n### Sources\n\n public RepeatedField\u003cAnswer.Types.CitationSource\u003e Sources { get; }\n\nCitation sources for the attributed segment.\n\n### StartIndex\n\n public long StartIndex { get; set; }\n\nIndex indicates the start of the segment, measured in bytes (UTF-8\nunicode). If there are multi-byte characters,such as non-ASCII\ncharacters, the index measurement is longer than the string length."]]