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 details the \u003ccode\u003eCreateContextRequest\u003c/code\u003e class, which is used to create contexts within the Google Cloud Dialogflow V2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateContextRequest\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, facilitating its use within the Google.Protobuf ecosystem.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for the \u003ccode\u003eCreateContextRequest\u003c/code\u003e class, a default constructor and one that accepts another \u003ccode\u003eCreateContextRequest\u003c/code\u003e object for copying.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eCreateContextRequest\u003c/code\u003e include \u003ccode\u003eContext\u003c/code\u003e (the context to be created), \u003ccode\u003eParent\u003c/code\u003e (the session to create the context for, using a specified format), and \u003ccode\u003eParentAsSessionName\u003c/code\u003e (a typed view of the parent resource name).\u003c/p\u003e\n"],["\u003cp\u003eThe page also contains a navigable list of older versions of the documentation of the same class, starting from version 4.26.0 to 3.2.0.\u003c/p\u003e\n"]]],[],null,[]]