# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::SecuritySettings (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.26.0 0.25.0 0.24.2 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.1 0.6.0 0.5.0 0.4.0 Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #audio_export_settings

    def audio_export_settings() -> ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::AudioExportSettings

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::AudioExportSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-AudioExportSettings)) --- Controls audio export settings for post-conversation analytics when ingesting audio to conversations via \[Participants.AnalyzeContent\]\[\] or \[Participants.StreamingAnalyzeContent\]\[\].


  If
  [retention_strategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings#Google__Cloud__Dialogflow__CX__V3__SecuritySettings_retention_strategy_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettings#retention_strategy (method)")
  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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Sessions-Client#Google__Cloud__Dialogflow__CX__V3__Sessions__Client_detect_intent_instance_ "Google::Cloud::Dialogflow::CX::V3::Sessions::Client#detect_intent (method)")
  or
  [Sessions.StreamingDetectIntent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Sessions-Client#Google__Cloud__Dialogflow__CX__V3__Sessions__Client_streaming_detect_intent_instance_ "Google::Cloud::Dialogflow::CX::V3::Sessions::Client#streaming_detect_intent (method)").

### #audio_export_settings=

    def audio_export_settings=(value) -> ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::AudioExportSettings

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::AudioExportSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-AudioExportSettings)) --- Controls audio export settings for post-conversation analytics when ingesting audio to conversations via \[Participants.AnalyzeContent\]\[\] or \[Participants.StreamingAnalyzeContent\]\[\].


  If
  [retention_strategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings#Google__Cloud__Dialogflow__CX__V3__SecuritySettings_retention_strategy_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettings#retention_strategy (method)")
  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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Sessions-Client#Google__Cloud__Dialogflow__CX__V3__Sessions__Client_detect_intent_instance_ "Google::Cloud::Dialogflow::CX::V3::Sessions::Client#detect_intent (method)")
  or
  [Sessions.StreamingDetectIntent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Sessions-Client#Google__Cloud__Dialogflow__CX__V3__Sessions__Client_streaming_detect_intent_instance_ "Google::Cloud::Dialogflow::CX::V3::Sessions::Client#streaming_detect_intent (method)").
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::AudioExportSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-AudioExportSettings)) --- Controls audio export settings for post-conversation analytics when ingesting audio to conversations via \[Participants.AnalyzeContent\]\[\] or \[Participants.StreamingAnalyzeContent\]\[\].


  If
  [retention_strategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings#Google__Cloud__Dialogflow__CX__V3__SecuritySettings_retention_strategy_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettings#retention_strategy (method)")
  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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Sessions-Client#Google__Cloud__Dialogflow__CX__V3__Sessions__Client_detect_intent_instance_ "Google::Cloud::Dialogflow::CX::V3::Sessions::Client#detect_intent (method)")
  or
  [Sessions.StreamingDetectIntent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Sessions-Client#Google__Cloud__Dialogflow__CX__V3__Sessions__Client_streaming_detect_intent_instance_ "Google::Cloud::Dialogflow::CX::V3::Sessions::Client#streaming_detect_intent (method)").

### #deidentify_template

    def deidentify_template() -> ::String

**Returns**

- (::String) --- [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`.

### #deidentify_template=

    def deidentify_template=(value) -> ::String

**Parameter**

- **value** (::String) --- [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`.
**Returns**

- (::String) --- [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`.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Required. The human-readable name of the security settings, unique within the location.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The human-readable name of the security settings, unique within the location.
**Returns**

- (::String) --- Required. The human-readable name of the security settings, unique within the location.

### #insights_export_settings

    def insights_export_settings() -> ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::InsightsExportSettings

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::InsightsExportSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-InsightsExportSettings)) --- Controls conversation exporting settings to Insights after conversation is completed.


  If
  [retention_strategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings#Google__Cloud__Dialogflow__CX__V3__SecuritySettings_retention_strategy_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettings#retention_strategy (method)")
  is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
  what you configure here.

### #insights_export_settings=

    def insights_export_settings=(value) -> ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::InsightsExportSettings

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::InsightsExportSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-InsightsExportSettings)) --- Controls conversation exporting settings to Insights after conversation is completed.


  If
  [retention_strategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings#Google__Cloud__Dialogflow__CX__V3__SecuritySettings_retention_strategy_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettings#retention_strategy (method)")
  is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
  what you configure here.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::InsightsExportSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-InsightsExportSettings)) --- Controls conversation exporting settings to Insights after conversation is completed.


  If
  [retention_strategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings#Google__Cloud__Dialogflow__CX__V3__SecuritySettings_retention_strategy_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettings#retention_strategy (method)")
  is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
  what you configure here.

### #inspect_template

    def inspect_template() -> ::String

**Returns**

- (::String) --- [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`.

### #inspect_template=

    def inspect_template=(value) -> ::String

**Parameter**

- **value** (::String) --- [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`.
**Returns**

- (::String) --- [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`.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Resource name of the settings. Required for the [SecuritySettingsService.UpdateSecuritySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettingsService-Client#Google__Cloud__Dialogflow__CX__V3__SecuritySettingsService__Client_update_security_settings_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client#update_security_settings (method)") method. [SecuritySettingsService.CreateSecuritySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettingsService-Client#Google__Cloud__Dialogflow__CX__V3__SecuritySettingsService__Client_create_security_settings_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client#create_security_settings (method)") populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/securitySettings/<SecuritySettingsID>`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Resource name of the settings. Required for the [SecuritySettingsService.UpdateSecuritySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettingsService-Client#Google__Cloud__Dialogflow__CX__V3__SecuritySettingsService__Client_update_security_settings_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client#update_security_settings (method)") method. [SecuritySettingsService.CreateSecuritySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettingsService-Client#Google__Cloud__Dialogflow__CX__V3__SecuritySettingsService__Client_create_security_settings_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client#create_security_settings (method)") populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/securitySettings/<SecuritySettingsID>`.
**Returns**

- (::String) --- Resource name of the settings. Required for the [SecuritySettingsService.UpdateSecuritySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettingsService-Client#Google__Cloud__Dialogflow__CX__V3__SecuritySettingsService__Client_update_security_settings_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client#update_security_settings (method)") method. [SecuritySettingsService.CreateSecuritySettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettingsService-Client#Google__Cloud__Dialogflow__CX__V3__SecuritySettingsService__Client_create_security_settings_instance_ "Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client#create_security_settings (method)") populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/securitySettings/<SecuritySettingsID>`.

### #purge_data_types

    def purge_data_types() -> ::Array<::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::PurgeDataType>

**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::PurgeDataType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-PurgeDataType)\>) --- List of types of data to remove when retention settings triggers purge.

### #purge_data_types=

    def purge_data_types=(value) -> ::Array<::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::PurgeDataType>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::PurgeDataType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-PurgeDataType)\>) --- List of types of data to remove when retention settings triggers purge.
**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::PurgeDataType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-PurgeDataType)\>) --- List of types of data to remove when retention settings triggers purge.

### #redaction_scope

    def redaction_scope() -> ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RedactionScope

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RedactionScope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RedactionScope)) --- Defines the data for which Dialogflow applies redaction. Dialogflow does not redact data that it does not have access to -- for example, Cloud logging.

### #redaction_scope=

    def redaction_scope=(value) -> ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RedactionScope

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RedactionScope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RedactionScope)) --- Defines the data for which Dialogflow applies redaction. Dialogflow does not redact data that it does not have access to -- for example, Cloud logging.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RedactionScope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RedactionScope)) --- Defines the data for which Dialogflow applies redaction. Dialogflow does not redact data that it does not have access to -- for example, Cloud logging.

### #redaction_strategy

    def redaction_strategy() -> ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RedactionStrategy

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RedactionStrategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RedactionStrategy)) --- Strategy that defines how we do redaction.

### #redaction_strategy=

    def redaction_strategy=(value) -> ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RedactionStrategy

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RedactionStrategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RedactionStrategy)) --- Strategy that defines how we do redaction.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RedactionStrategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RedactionStrategy)) --- Strategy that defines how we do redaction.

### #retention_strategy

    def retention_strategy() -> ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RetentionStrategy

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RetentionStrategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RetentionStrategy)) --- Specifies the retention behavior defined by [SecuritySettings.RetentionStrategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RetentionStrategy "Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RetentionStrategy (module)").


  Note: The following fields are mutually exclusive: `retention_strategy`, `retention_window_days`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #retention_strategy=

    def retention_strategy=(value) -> ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RetentionStrategy

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RetentionStrategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RetentionStrategy)) --- Specifies the retention behavior defined by [SecuritySettings.RetentionStrategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RetentionStrategy "Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RetentionStrategy (module)").


  Note: The following fields are mutually exclusive: `retention_strategy`, `retention_window_days`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RetentionStrategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RetentionStrategy)) --- Specifies the retention behavior defined by [SecuritySettings.RetentionStrategy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-SecuritySettings-RetentionStrategy "Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RetentionStrategy (module)").


  Note: The following fields are mutually exclusive: `retention_strategy`, `retention_window_days`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #retention_window_days

    def retention_window_days() -> ::Integer

**Returns**

- (::Integer) --- 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.

  Note: The following fields are mutually exclusive: `retention_window_days`, `retention_strategy`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #retention_window_days=

    def retention_window_days=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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.


  Note: The following fields are mutually exclusive: `retention_window_days`, `retention_strategy`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Integer) --- 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.

  Note: The following fields are mutually exclusive: `retention_window_days`, `retention_strategy`. If a field in that set is populated, all other fields in the set will automatically be cleared.