public sealed class Session.Types.Turn : IMessage<Session.Types.Turn>, IEquatable<Session.Types.Turn>, IDeepCloneable<Session.Types.Turn>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class Session.Types.Turn.
Represents a turn, including a query from the user and a
answer from service.
[[["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 document provides reference information for the \u003ccode\u003eSession.Types.Turn\u003c/code\u003e class within the Discovery Engine v1 API, specifically for version 1.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSession.Types.Turn\u003c/code\u003e class represents a single turn in a conversation, encompassing a user's query and the service's corresponding answer.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API documented is 1.6.0, while this page focuses on 1.5.0 and also includes references to older versions, dating back to 1.0.0-beta06.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSession.Types.Turn\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, showcasing its compatibility and functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, a default one and one that takes a \u003ccode\u003eSession.Types.Turn\u003c/code\u003e object as parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains a \u003ccode\u003eQuery\u003c/code\u003e property that holds the users query, and two properties related to the answer, \u003ccode\u003eAnswer\u003c/code\u003e and \u003ccode\u003eAnswerAsAnswerName\u003c/code\u003e, the first being a string while the latter represents the answer as a \u003ccode\u003eAnswerName\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]