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"]],[["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-04-09 UTC."],[[["This page details the `CreateContextRequest` class, which is utilized for creating contexts within the Dialogflow V2 API."],["The latest version of the `CreateContextRequest` class is 4.26.0, but it also provides access to multiple historical versions ranging from 3.2.0 to the current release."],["`CreateContextRequest` inherits from the base `Object` class and implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `CreateContextRequest` class has two constructors and defines two key properties: `Context`, which is the context to be created, and `Parent`, which indicates the session where the context will be created, and the `ParentAsSessionName`, which is the SessionName typed view over the Parent resource name."],["The namespace for the `CreateContextRequest` is `Google.Cloud.Dialogflow.V2`, and the assembly it belongs to is `Google.Cloud.Dialogflow.V2.dll`."]]],[]]