Show / Hide Table of Contents

Class ProjectsResource.AgentResource.EnvironmentsResource.UsersResource.SessionsResource.ContextsResource

The "contexts" collection of methods.

Inheritance
object
ProjectsResource.AgentResource.EnvironmentsResource.UsersResource.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.v2beta1
Assembly: Google.Apis.Dialogflow.v2beta1.dll
Syntax
public class ProjectsResource.AgentResource.EnvironmentsResource.UsersResource.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.AgentResource.EnvironmentsResource.UsersResource.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: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser ID` is not specified, we assume default '-' user.

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

Delete(string)

Deletes the specified context.

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

Required. The name of the context to delete. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//agent/environments//users//sessions//contexts/, If Location ID is not specified we assume default 'us' location. 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.EnvironmentsResource.UsersResource.SessionsResource.ContextsResource.DeleteRequest

Get(string)

Retrieves the specified context.

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

Required. The name of the context. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//agent/environments//users//sessions//contexts/, If Location ID is not specified we assume default 'us' location. 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.EnvironmentsResource.UsersResource.SessionsResource.ContextsResource.GetRequest

List(string)

Returns the list of all contexts in the specified session.

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

Required. The session to list all contexts from. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser ID` is not specified, we assume default '-' user.

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

Patch(GoogleCloudDialogflowV2beta1Context, string)

Updates the specified context.

Declaration
public virtual ProjectsResource.AgentResource.EnvironmentsResource.UsersResource.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: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//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.EnvironmentsResource.UsersResource.SessionsResource.ContextsResource.PatchRequest
In this article
Back to top Generated by DocFX