Struct google_api_proto::google::cloud::dialogflow::cx::v3beta1::SecuritySettings
source · pub struct SecuritySettings {
pub name: String,
pub display_name: String,
pub redaction_strategy: i32,
pub redaction_scope: i32,
pub inspect_template: String,
pub deidentify_template: String,
pub purge_data_types: Vec<i32>,
pub audio_export_settings: Option<AudioExportSettings>,
pub insights_export_settings: Option<InsightsExportSettings>,
pub data_retention: Option<DataRetention>,
}
Expand description
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.
Fields§
§name: String
Resource name of the settings.
Required for the
[SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings]
method.
[SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings]
populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>
.
display_name: String
Required. The human-readable name of the security settings, unique within the location.
redaction_strategy: i32
Strategy that defines how we do redaction.
redaction_scope: i32
Defines the data for which Dialogflow applies redaction. Dialogflow does not redact data that it does not have access to – for example, Cloud logging.
inspect_template: String
DLP 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/<Project ID>/locations/<Location ID>/inspectTemplates/<Template ID>
OR organizations/<Organization ID>/locations/<Location ID>/inspectTemplates/<Template ID>
Note: inspect_template
must be located in the same region as the
SecuritySettings
.
deidentify_template: String
DLP 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/<Project ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>
OR organizations/<Organization ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>
Note: deidentify_template
must be located in the same region as the
SecuritySettings
.
purge_data_types: Vec<i32>
List of types of data to remove when retention settings triggers purge.
audio_export_settings: Option<AudioExportSettings>
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.v3beta1.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.v3beta1.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent].
insights_export_settings: Option<InsightsExportSettings>
Controls conversation exporting settings to Insights after conversation is completed.
If [retention_strategy][google.cloud.dialogflow.cx.v3beta1.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter what you configure here.
data_retention: Option<DataRetention>
Specifies how data is retained. Note that even if the data is purged due to retention policy, we may still hold it in backup storage for a few days without allowing direct readings.
Implementations§
source§impl SecuritySettings
impl SecuritySettings
sourcepub fn redaction_strategy(&self) -> RedactionStrategy
pub fn redaction_strategy(&self) -> RedactionStrategy
Returns the enum value of redaction_strategy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_redaction_strategy(&mut self, value: RedactionStrategy)
pub fn set_redaction_strategy(&mut self, value: RedactionStrategy)
Sets redaction_strategy
to the provided enum value.
sourcepub fn redaction_scope(&self) -> RedactionScope
pub fn redaction_scope(&self) -> RedactionScope
Returns the enum value of redaction_scope
, or the default if the field is set to an invalid enum value.
sourcepub fn set_redaction_scope(&mut self, value: RedactionScope)
pub fn set_redaction_scope(&mut self, value: RedactionScope)
Sets redaction_scope
to the provided enum value.
sourcepub fn purge_data_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<PurgeDataType>>
pub fn purge_data_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<PurgeDataType>>
Returns an iterator which yields the valid enum values contained in purge_data_types
.
sourcepub fn push_purge_data_types(&mut self, value: PurgeDataType)
pub fn push_purge_data_types(&mut self, value: PurgeDataType)
Appends the provided enum value to purge_data_types
.
Trait Implementations§
source§impl Clone for SecuritySettings
impl Clone for SecuritySettings
source§fn clone(&self) -> SecuritySettings
fn clone(&self) -> SecuritySettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecuritySettings
impl Debug for SecuritySettings
source§impl Default for SecuritySettings
impl Default for SecuritySettings
source§impl Message for SecuritySettings
impl Message for SecuritySettings
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SecuritySettings
impl PartialEq for SecuritySettings
source§fn eq(&self, other: &SecuritySettings) -> bool
fn eq(&self, other: &SecuritySettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecuritySettings
Auto Trait Implementations§
impl Freeze for SecuritySettings
impl RefUnwindSafe for SecuritySettings
impl Send for SecuritySettings
impl Sync for SecuritySettings
impl Unpin for SecuritySettings
impl UnwindSafe for SecuritySettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request