Show / Hide Table of Contents

Class ProjectsResource.AgentResource.SessionsResource.ContextsResource

The "contexts" collection of methods.

Inheritance
object
ProjectsResource.AgentResource.SessionsResource.ContextsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ProjectsResource.AgentResource.SessionsResource.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.

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
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
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
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.

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 Generated by DocFX