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 v1beta API class Answer.Types.Citation.
[[["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\u003eAnswer.Types.Citation\u003c/code\u003e class in the Discovery Engine v1beta API is 1.0.0-beta18, which can be found under the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1Beta\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAnswer.Types.Citation\u003c/code\u003e provides citation information for a specific segment and it inherits from the \u003ccode\u003eobject\u003c/code\u003e class and it implements \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 two constructors, \u003ccode\u003eCitation()\u003c/code\u003e and \u003ccode\u003eCitation(Answer.Types.Citation other)\u003c/code\u003e, for creating new citation objects, including one that can clone an existing citation.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eEndIndex\u003c/code\u003e and \u003ccode\u003eStartIndex\u003c/code\u003e, which indicate the exclusive end and start positions of the attributed segment in bytes, and \u003ccode\u003eSources\u003c/code\u003e, which contains a list of citation sources.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnswer.Types.Citation\u003c/code\u003e class is in the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1Beta.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class Answer.Types.Citation (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Answer.Types.Citation)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.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 v1beta 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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Answer)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Answer.Types)[Citation](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Answer.Types.Citation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Answer](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Answer)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Answer.Types)[Citation](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Answer)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Answer.Types)[Citation](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.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.\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)."]]