public sealed class CreateContextRequest : IMessage<CreateContextRequest>, IEquatable<CreateContextRequest>, IDeepCloneable<CreateContextRequest>, IBufferMessage, IMessage
The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
Required. The session to create a context for.
Format: projects/{Project ID}/agent/sessions/{Session ID} or
projects/{Project ID}/agent/environments/{Environment ID}/users/{User
ID>/sessions/<Session 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"]],[["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 page provides documentation for the \u003ccode\u003eCreateContextRequest\u003c/code\u003e class within the Google.Cloud.Dialogflow.V2 namespace, specifically for version 3.6.0 of the library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateContextRequest\u003c/code\u003e class is a request message used for creating contexts in Dialogflow, as specified by the \u003ccode\u003eContexts.CreateContext\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from the base \u003ccode\u003eObject\u003c/code\u003e class and 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, indicating its role in handling messages and objects.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists all available versions of \u003ccode\u003eCreateContextRequest\u003c/code\u003e from 3.2.0 up to 4.26.0, with 4.26.0 being the latest, and provides hyperlinks to the documentation for each version.\u003c/p\u003e\n"],["\u003cp\u003eThe main properties \u003ccode\u003eContext\u003c/code\u003e and \u003ccode\u003eParent\u003c/code\u003e are available for this request object, detailing the Context to be created and the Session which the context belongs to respectively.\u003c/p\u003e\n"]]],[],null,[]]