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 used to send a request to create a new context within the Dialogflow V2 API."],["The `CreateContextRequest` class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing functionality for message handling, equality checks, deep cloning, and buffer operations."],["The class has two constructors, one default and another to copy an existing `CreateContextRequest` object, along with properties `Context`, `Parent`, and `ParentAsSessionName` to define the context to be created and the session it belongs to."],["The `CreateContextRequest` class belongs to the `Google.Cloud.Dialogflow.V2` namespace within the `Google.Cloud.Dialogflow.V2.dll` assembly, and numerous versions are listed, with version 4.26.0 being the latest."],["The page displays the inheritance of the class, which stems from the base `Object` class."]]],[]]