public sealed class GetContextRequest : IMessage<GetContextRequest>, IEquatable<GetContextRequest>, IDeepCloneable<GetContextRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class GetContextRequest.
The request message for
[Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].
Required. The name of the context. Format:
projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>
or projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>/contexts/<Context ID>.
If Environment ID is not specified, we assume default 'draft'
environment. If User ID is not specified, we assume default '-' user.
[[["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-07 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003eGetContextRequest\u003c/code\u003e class in the Google Cloud Dialogflow v2 API is 4.26.0.\u003c/p\u003e\n"],["\u003cp\u003eThis document provides reference material for the \u003ccode\u003eGetContextRequest\u003c/code\u003e class, which is used to retrieve a specific context from a Dialogflow session.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetContextRequest\u003c/code\u003e class has an inheritance from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetContextRequest\u003c/code\u003e class contains two constructors and properties such as \u003ccode\u003eContextName\u003c/code\u003e and \u003ccode\u003eName\u003c/code\u003e to specify the context that is being requested.\u003c/p\u003e\n"],["\u003cp\u003eThere is a history of prior releases of \u003ccode\u003eGetContextRequest\u003c/code\u003e dating back to version 3.2.0.\u003c/p\u003e\n"]]],[],null,[]]