public sealed class CreateContextRequest : IMessage<CreateContextRequest>, IEquatable<CreateContextRequest>, IDeepCloneable<CreateContextRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class CreateContextRequest.
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 provides documentation for the `CreateContextRequest` class within the Google Cloud Dialogflow v2 API, specifically for .NET development, spanning versions from 3.2.0 up to the latest 4.26.0."],["The `CreateContextRequest` class is used to send a request to create a new context in a Dialogflow session, implementing various interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The class includes two constructors, `CreateContextRequest()` and `CreateContextRequest(CreateContextRequest other)`, facilitating the creation of new context requests and copies of existing ones, respectively."],["Key properties of the `CreateContextRequest` class include `Context`, which represents the context to be created, and `Parent`, which specifies the session for which the context is being created, with a `ParentAsSessionName` property offering a typed view."],["The documentation also details the class's inheritance from `Object` and lists inherited members such as `GetHashCode()`, `GetType()`, `MemberwiseClone()`, and `ToString()`, along with the namespace and assembly information."]]],[]]