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"]],[["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 webpage provides documentation for the \u003ccode\u003eCreateContextRequest\u003c/code\u003e class within the Google Cloud Dialogflow v2 API for .NET, with the current version being 4.10.0, and the latest being 4.26.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateContextRequest\u003c/code\u003e class is used to create a context, and is part of the \u003ccode\u003eGoogle.Cloud.Dialogflow.V2\u003c/code\u003e namespace in the \u003ccode\u003eGoogle.Cloud.Dialogflow.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers the class's inheritance, showing it implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and that it inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eCreateContextRequest\u003c/code\u003e include \u003ccode\u003eContext\u003c/code\u003e (the context to be created) and \u003ccode\u003eParent\u003c/code\u003e (the session to create the context for), alongside the \u003ccode\u003eParentAsSessionName\u003c/code\u003e which provides a \u003ccode\u003eSessionName\u003c/code\u003e-typed view of the parent resource.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides an overview of the class's constructors (\u003ccode\u003eCreateContextRequest()\u003c/code\u003e and \u003ccode\u003eCreateContextRequest(CreateContextRequest other)\u003c/code\u003e) alongside the documentation for each version of the class, ranging from version 3.2.0 up to 4.26.0.\u003c/p\u003e\n"]]],[],null,[]]