public sealed class DeleteGuardrailRequest : IMessage<DeleteGuardrailRequest>, IEquatable<DeleteGuardrailRequest>, IDeepCloneable<DeleteGuardrailRequest>, IBufferMessage, IMessageReference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class DeleteGuardrailRequest.
Request message for [AgentService.DeleteGuardrail][google.cloud.ces.v1.AgentService.DeleteGuardrail].
Implements
IMessageDeleteGuardrailRequest, IEquatableDeleteGuardrailRequest, IDeepCloneableDeleteGuardrailRequest, IBufferMessage, IMessageNamespace
Google.Cloud.Ces.V1Assembly
Google.Cloud.Ces.V1.dll
Constructors
DeleteGuardrailRequest()
public DeleteGuardrailRequest()DeleteGuardrailRequest(DeleteGuardrailRequest)
public DeleteGuardrailRequest(DeleteGuardrailRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
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 |
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 |
bool |
|
GuardrailName
public GuardrailName GuardrailName { get; set; }GuardrailName-typed view over the Name resource name property.
| Property Value | |
|---|---|
| Type | Description |
GuardrailName |
|
Name
public string Name { get; set; }Required. The resource name of the guardrail to delete.
| Property Value | |
|---|---|
| Type | Description |
string |
|