1.0.0-beta10 (latest) 1.0.0-beta09

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

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class DeleteGuardrailRequest.

Request message for
\[AgentService.DeleteGuardrail\]\[google.cloud.ces.v1beta.AgentService.DeleteGuardrail\].

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteGuardrailRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.DeleteGuardrailRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteGuardrailRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.DeleteGuardrailRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteGuardrailRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.DeleteGuardrailRequest), [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.Ces.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta)

## Assembly

Google.Cloud.Ces.V1Beta.dll

## Constructors

### DeleteGuardrailRequest()

    public DeleteGuardrailRequest()

### DeleteGuardrailRequest(DeleteGuardrailRequest)

    public DeleteGuardrailRequest(DeleteGuardrailRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.DeleteGuardrailRequest` |

## Properties

### Etag

    public string Etag { get; set; }

Optional. The current etag of the guardrail. If an etag is not provided,
the deletion will overwrite any concurrent changes. If an etag is provided
and does not match the current etag of the guardrail, deletion will be
blocked and an ABORTED error will be returned.

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

### Force

    public bool Force { get; set; }

Optional. Indicates whether to forcefully delete the guardrail, even if it
is still referenced by app/agents.

- If `force = false`, the deletion fails if any apps/agents still reference the guardrail.
- If `force = true`, all existing references from apps/agents will be removed and the guardrail will be deleted.

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

### GuardrailName

    public GuardrailName GuardrailName { get; set; }

[GuardrailName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.GuardrailName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.DeleteGuardrailRequest#Google_Cloud_Ces_V1Beta_DeleteGuardrailRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.GuardrailName` |   |

### Name

    public string Name { get; set; }

Required. The resource name of the guardrail to delete.

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