Class ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource
The "contexts" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.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(GoogleCloudDialogflowV2Context, string)
Creates a context. If the specified context already exists, overrides the context.
Declaration
public virtual ProjectsResource.LocationsResource.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: |
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. Format: |
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. Format: |
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. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.ListRequest |
Patch(GoogleCloudDialogflowV2Context, string)
Updates the specified context.
Declaration
public virtual ProjectsResource.LocationsResource.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:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.SessionsResource.ContextsResource.PatchRequest |