Class ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource
The "contexts" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Dialogflow.v2beta1
Assembly: Google.Apis.Dialogflow.v2beta1.dll
Syntax
public class ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource
Constructors
ContextsResource(IClientService)
Constructs a new resource.
Declaration
public ContextsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(GoogleCloudDialogflowV2beta1Context, string)
Creates a context. If the specified context already exists, overrides the context.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.CreateRequest Create(GoogleCloudDialogflowV2beta1Context body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowV2beta1Context | body | The body of the request. |
string | parent | Required. The session to create a context for. Supported formats: -
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.CreateRequest |
Delete(string)
Deletes the specified context.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the context to delete. Supported formats: -
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.DeleteRequest |
Get(string)
Retrieves the specified context.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the context. Supported formats: -
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.GetRequest |
List(string)
Returns the list of all contexts in the specified session.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The session to list all contexts from. Supported formats: -
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.ListRequest |
Patch(GoogleCloudDialogflowV2beta1Context, string)
Updates the specified context.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.PatchRequest Patch(GoogleCloudDialogflowV2beta1Context body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowV2beta1Context | body | The body of the request. |
string | name | Required. The unique identifier of the context. Supported formats: -
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.PatchRequest |