Struct google_api_proto::google::privacy::dlp::v2::DeidentifyContentRequest
source · pub struct DeidentifyContentRequest {
pub parent: String,
pub deidentify_config: Option<DeidentifyConfig>,
pub inspect_config: Option<InspectConfig>,
pub item: Option<ContentItem>,
pub inspect_template_name: String,
pub deidentify_template_name: String,
pub location_id: String,
}
Expand description
Request to de-identify a ContentItem.
Fields§
§parent: String
Parent resource name.
The format of this value varies depending on whether you have specified a processing location:
- Projects scope, location specified:
projects/{project_id}/locations/{location_id}
- Projects scope, no location specified (defaults to global):
projects/{project_id}
The following example parent
string specifies a parent project with the
identifier example-project
, and specifies the europe-west3
location
for processing data:
parent=projects/example-project/locations/europe-west3
deidentify_config: Option<DeidentifyConfig>
Configuration for the de-identification of the content item. Items specified here will override the template referenced by the deidentify_template_name argument.
inspect_config: Option<InspectConfig>
Configuration for the inspector. Items specified here will override the template referenced by the inspect_template_name argument.
item: Option<ContentItem>
The item to de-identify. Will be treated as text.
This value must be of type [Table][google.privacy.dlp.v2.Table] if your [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] is a [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] object.
inspect_template_name: String
Template to use. Any configuration directly specified in inspect_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.
deidentify_template_name: String
Template to use. Any configuration directly specified in deidentify_config will override those set in the template. Singular fields that are set in this request will replace their corresponding fields in the template. Repeated fields are appended. Singular sub-messages and groups are recursively merged.
location_id: String
Deprecated. This field has no effect.
Trait Implementations§
source§impl Clone for DeidentifyContentRequest
impl Clone for DeidentifyContentRequest
source§fn clone(&self) -> DeidentifyContentRequest
fn clone(&self) -> DeidentifyContentRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeidentifyContentRequest
impl Debug for DeidentifyContentRequest
source§impl Default for DeidentifyContentRequest
impl Default for DeidentifyContentRequest
source§impl Message for DeidentifyContentRequest
impl Message for DeidentifyContentRequest
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 DeidentifyContentRequest
impl PartialEq for DeidentifyContentRequest
source§fn eq(&self, other: &DeidentifyContentRequest) -> bool
fn eq(&self, other: &DeidentifyContentRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeidentifyContentRequest
Auto Trait Implementations§
impl !Freeze for DeidentifyContentRequest
impl RefUnwindSafe for DeidentifyContentRequest
impl Send for DeidentifyContentRequest
impl Sync for DeidentifyContentRequest
impl Unpin for DeidentifyContentRequest
impl UnwindSafe for DeidentifyContentRequest
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