Struct google_api_proto::google::privacy::dlp::v2::data_profile_action::PubSubNotification
source · pub struct PubSubNotification {
pub topic: String,
pub event: i32,
pub pubsub_condition: Option<DataProfilePubSubCondition>,
pub detail_of_message: i32,
}
Expand description
Send a Pub/Sub message into the given Pub/Sub topic to connect other
systems to data profile generation. The message payload data will
be the byte serialization of DataProfilePubSubMessage
.
Fields§
§topic: String
Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.
event: i32
The type of event that triggers a Pub/Sub. At most one
PubSubNotification
per EventType is permitted.
pubsub_condition: Option<DataProfilePubSubCondition>
Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
detail_of_message: i32
How much data to include in the Pub/Sub message. If the user wishes to limit the size of the message, they can use resource_name and fetch the profile fields they wish to. Per table profile (not per column).
Implementations§
source§impl PubSubNotification
impl PubSubNotification
sourcepub fn event(&self) -> EventType
pub fn event(&self) -> EventType
Returns the enum value of event
, or the default if the field is set to an invalid enum value.
sourcepub fn detail_of_message(&self) -> DetailLevel
pub fn detail_of_message(&self) -> DetailLevel
Returns the enum value of detail_of_message
, or the default if the field is set to an invalid enum value.
sourcepub fn set_detail_of_message(&mut self, value: DetailLevel)
pub fn set_detail_of_message(&mut self, value: DetailLevel)
Sets detail_of_message
to the provided enum value.
Trait Implementations§
source§impl Clone for PubSubNotification
impl Clone for PubSubNotification
source§fn clone(&self) -> PubSubNotification
fn clone(&self) -> PubSubNotification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PubSubNotification
impl Debug for PubSubNotification
source§impl Default for PubSubNotification
impl Default for PubSubNotification
source§impl Message for PubSubNotification
impl Message for PubSubNotification
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 PubSubNotification
impl PartialEq for PubSubNotification
source§fn eq(&self, other: &PubSubNotification) -> bool
fn eq(&self, other: &PubSubNotification) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PubSubNotification
Auto Trait Implementations§
impl Freeze for PubSubNotification
impl RefUnwindSafe for PubSubNotification
impl Send for PubSubNotification
impl Sync for PubSubNotification
impl Unpin for PubSubNotification
impl UnwindSafe for PubSubNotification
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