Show / Hide Table of Contents

Class ProjectsResource.AgentResource.SessionsResource.ContextsResource

The "contexts" collection of methods.

Inheritance
System.Object
ProjectsResource.AgentResource.SessionsResource.ContextsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ContextsResource

Constructors

ContextsResource(IClientService)

Constructs a new resource.

Declaration
public ContextsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(GoogleCloudDialogflowV2Context, String)

Creates a context. If the specified context already exists, overrides the context.

Declaration
public virtual ProjectsResource.AgentResource.SessionsResource.ContextsResource.CreateRequest Create(GoogleCloudDialogflowV2Context body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowV2Context body

The body of the request.

System.String parent

Required. The session to create a context for. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

Returns
Type Description
ProjectsResource.AgentResource.SessionsResource.ContextsResource.CreateRequest

Delete(String)

Deletes the specified context.

Declaration
public virtual ProjectsResource.AgentResource.SessionsResource.ContextsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
System.String name

Required. The name of the context to delete. Format: projects//agent/sessions//contexts/ or projects//agent/environments//users//sessions//contexts/. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

Returns
Type Description
ProjectsResource.AgentResource.SessionsResource.ContextsResource.DeleteRequest

Get(String)

Retrieves the specified context.

Declaration
public virtual ProjectsResource.AgentResource.SessionsResource.ContextsResource.GetRequest Get(string name)
Parameters
Type Name Description
System.String name

Required. The name of the context. Format: projects//agent/sessions//contexts/ or projects//agent/environments//users//sessions//contexts/. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

Returns
Type Description
ProjectsResource.AgentResource.SessionsResource.ContextsResource.GetRequest

List(String)

Returns the list of all contexts in the specified session.

Declaration
public virtual ProjectsResource.AgentResource.SessionsResource.ContextsResource.ListRequest List(string parent)
Parameters
Type Name Description
System.String parent

Required. The session to list all contexts from. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

Returns
Type Description
ProjectsResource.AgentResource.SessionsResource.ContextsResource.ListRequest

Patch(GoogleCloudDialogflowV2Context, String)

Updates the specified context.

Declaration
public virtual ProjectsResource.AgentResource.SessionsResource.ContextsResource.PatchRequest Patch(GoogleCloudDialogflowV2Context body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowV2Context body

The body of the request.

System.String name

Required. The unique identifier of the context. Format: projects//agent/sessions//contexts/, or projects//agent/environments//users//sessions//contexts/. The Context ID is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * __system_counters__ * *_id_dialog_context * *_dialog_params_size

Returns
Type Description
ProjectsResource.AgentResource.SessionsResource.ContextsResource.PatchRequest
In This Article
Back to top