# Google Cloud Dialogflow v2beta1 API - Class DeleteAllContextsRequest (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

    public sealed class DeleteAllContextsRequest : IMessage<DeleteAllContextsRequest>, IEquatable<DeleteAllContextsRequest>, IDeepCloneable<DeleteAllContextsRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class DeleteAllContextsRequest.

The request message for
\[Contexts.DeleteAllContexts\]\[google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DeleteAllContextsRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteAllContextsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteAllContextsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteAllContextsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteAllContextsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteAllContextsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteAllContextsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.V2Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)

## Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

## Constructors

### DeleteAllContextsRequest()

    public DeleteAllContextsRequest()

### DeleteAllContextsRequest(DeleteAllContextsRequest)

    public DeleteAllContextsRequest(DeleteAllContextsRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteAllContextsRequest` |

## Properties

### Parent

    public string Parent { get; set; }

Required. The name of the session to delete all contexts from. Supported
formats:

- \`projects/\<Project ID\>/agent/sessions/\<Session ID\>,
- `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session
  ID>`,
- `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
  ID>/sessions/<Session ID>`,
- `projects/<Project ID>/locations/<Location
  ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
  ID>`,

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParentAsSessionName

    public SessionName ParentAsSessionName { get; set; }

[SessionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SessionName)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteAllContextsRequest#Google_Cloud_Dialogflow_V2Beta1_DeleteAllContextsRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SessionName` |   |