3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Dialogflow v3 API class SecuritySettings.

Represents the settings related to security issues, such as data redaction
and data retention. It may take hours for updates on the settings to
propagate to all the related components and take effect.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[SecuritySettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.SecuritySettings.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SecuritySettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.SecuritySettings.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[SecuritySettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.SecuritySettings.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Constructors

### SecuritySettings()

    public SecuritySettings()

### SecuritySettings(SecuritySettings)

    public SecuritySettings(SecuritySettings other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `SecuritySettings` |

## Properties

### AudioExportSettings

    public SecuritySettings.Types.AudioExportSettings AudioExportSettings { get; set; }

Controls audio export settings for post-conversation analytics when
ingesting audio to conversations via \[Participants.AnalyzeContent\]\[\] or
\[Participants.StreamingAnalyzeContent\]\[\].

If
\[retention_strategy\]\[google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy\]
is set to REMOVE_AFTER_CONVERSATION or \[audio_export_settings.gcs_bucket\]\[\]
is empty, audio export is disabled.

If audio export is enabled, audio is recorded and saved to
\[audio_export_settings.gcs_bucket\]\[\], subject to retention policy of
\[audio_export_settings.gcs_bucket\]\[\].

This setting won't effect audio input for implicit sessions via
\[Sessions.DetectIntent\]\[google.cloud.dialogflow.cx.v3.Sessions.DetectIntent\]
or
\[Sessions.StreamingDetectIntent\]\[google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SecuritySettingsTypesAudioExportSettings` |   |

### DataRetentionCase

    public SecuritySettings.DataRetentionOneofCase DataRetentionCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SecuritySettingsDataRetentionOneofCase` |   |

### DeidentifyTemplate

    public string DeidentifyTemplate { get; set; }

[DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
template to define de-identification configuration for the content.

The `DLP De-identify Templates Reader` role is needed on the Dialogflow
service identity service account (has the form
`service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
for your agent's project.

If empty, Dialogflow replaces sensitive info with `[redacted]` text.

The template name will have one of the following formats:
`projects/<ProjectID>/locations/<LocationID>/deidentifyTemplates/<TemplateID>`
OR
`organizations/<OrganizationID>/locations/<LocationID>/deidentifyTemplates/<TemplateID>`

Note: `deidentify_template` must be located in the same region as the
`SecuritySettings`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DeidentifyTemplateAsDeidentifyTemplateName

    public DeidentifyTemplateName DeidentifyTemplateAsDeidentifyTemplateName { get; set; }

[DeidentifyTemplateName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.DeidentifyTemplateName.md.txt)-typed view over the [DeidentifyTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.SecuritySettings.md.txt#Google_Cloud_Dialogflow_Cx_V3_SecuritySettings_DeidentifyTemplate) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DeidentifyTemplateName` |   |

### DisplayName

    public string DisplayName { get; set; }

Required. The human-readable name of the security settings, unique within
the location.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### HasRetentionStrategy

    public bool HasRetentionStrategy { get; }

Gets whether the "retention_strategy" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasRetentionWindowDays

    public bool HasRetentionWindowDays { get; }

Gets whether the "retention_window_days" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### InsightsExportSettings

    public SecuritySettings.Types.InsightsExportSettings InsightsExportSettings { get; set; }

Controls conversation exporting settings to Insights after conversation is
completed.

If
\[retention_strategy\]\[google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy\]
is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
what you configure here.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SecuritySettingsTypesInsightsExportSettings` |   |

### InspectTemplate

    public string InspectTemplate { get; set; }

[DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
template to define inspect base settings.

The `DLP Inspect Templates Reader` role is needed on the Dialogflow
service identity service account (has the form
`service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
for your agent's project.

If empty, we use the default DLP inspect config.

The template name will have one of the following formats:
`projects/<ProjectID>/locations/<LocationID>/inspectTemplates/<TemplateID>`
OR
`organizations/<OrganizationID>/locations/<LocationID>/inspectTemplates/<TemplateID>`

Note: `inspect_template` must be located in the same region as the
`SecuritySettings`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### InspectTemplateAsInspectTemplateName

    public InspectTemplateName InspectTemplateAsInspectTemplateName { get; set; }

[InspectTemplateName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.InspectTemplateName.md.txt)-typed view over the [InspectTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.SecuritySettings.md.txt#Google_Cloud_Dialogflow_Cx_V3_SecuritySettings_InspectTemplate) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InspectTemplateName` |   |

### Name

    public string Name { get; set; }

Resource name of the settings.
Required for the
\[SecuritySettingsService.UpdateSecuritySettings\]\[google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings\]
method.
\[SecuritySettingsService.CreateSecuritySettings\]\[google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings\]
populates the name automatically. Format:
`projects/<ProjectID>/locations/<LocationID>/securitySettings/<SecuritySettingsID>`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PurgeDataTypes

    public RepeatedField<SecuritySettings.Types.PurgeDataType> PurgeDataTypes { get; }

List of types of data to remove when retention settings triggers purge.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldSecuritySettingsTypesPurgeDataType` |   |

### RedactionScope

    public SecuritySettings.Types.RedactionScope RedactionScope { get; set; }

Defines the data for which Dialogflow applies redaction. Dialogflow does
not redact data that it does not have access to -- for example, Cloud
logging.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SecuritySettingsTypesRedactionScope` |   |

### RedactionStrategy

    public SecuritySettings.Types.RedactionStrategy RedactionStrategy { get; set; }

Strategy that defines how we do redaction.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SecuritySettingsTypesRedactionStrategy` |   |

### RetentionStrategy

    public SecuritySettings.Types.RetentionStrategy RetentionStrategy { get; set; }

Specifies the retention behavior defined by
\[SecuritySettings.RetentionStrategy\]\[google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SecuritySettingsTypesRetentionStrategy` |   |

### RetentionWindowDays

    public int RetentionWindowDays { get; set; }

Retains the data for the specified number of days.
User must set a value lower than Dialogflow's default 365d TTL (30 days
for Agent Assist traffic), higher value will be ignored and use default.
Setting a value higher than that has no effect. A missing value or
setting to 0 also means we use default TTL.
When data retention configuration is changed, it only applies to the data
created after the change; the TTL of existing data created before the
change stays intact.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### SecuritySettingsName

    public SecuritySettingsName SecuritySettingsName { get; set; }

[SecuritySettingsName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.SecuritySettingsName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.SecuritySettings.md.txt#Google_Cloud_Dialogflow_Cx_V3_SecuritySettings_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SecuritySettingsName` |   |