Class CreateContextRequest
The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
Implements
Namespace: Google.Cloud.Dialogflow.V2
Assembly: Google.Cloud.Dialogflow.V2.dll
Syntax
public sealed class CreateContextRequest : IMessage<CreateContextRequest>, IEquatable<CreateContextRequest>, IDeepCloneable<CreateContextRequest>, IBufferMessage, IMessage
Constructors
CreateContextRequest()
Declaration
public CreateContextRequest()
CreateContextRequest(CreateContextRequest)
Declaration
public CreateContextRequest(CreateContextRequest other)
Parameters
Type | Name | Description |
---|---|---|
CreateContextRequest | other |
Properties
Context
Required. The context to create.
Declaration
public Context Context { get; set; }
Property Value
Type | Description |
---|---|
Context |
Parent
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.
Declaration
public string Parent { get; set; }
Property Value
Type | Description |
---|---|
string |
ParentAsSessionName
SessionName-typed view over the Parent resource name property.
Declaration
public SessionName ParentAsSessionName { get; set; }
Property Value
Type | Description |
---|---|
SessionName |