# Interface RedactionConfigOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface RedactionConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDeidentifyTemplate()

    public abstract String getDeidentifyTemplate()

Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
to instruct on how to de-identify content.

Format:
`projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`

`
string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The deidentifyTemplate. |

### getDeidentifyTemplateBytes()

    public abstract ByteString getDeidentifyTemplateBytes()

Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
to instruct on how to de-identify content.

Format:
`projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`

`
string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for deidentifyTemplate. |

### getEnableRedaction()

    public abstract boolean getEnableRedaction()

Optional. If true, redaction will be applied in various logging scenarios,
including conversation history, Cloud Logging and audio recording.

`bool enable_redaction = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enableRedaction. |

### getInspectTemplate()

    public abstract String getInspectTemplate()

Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
configure detection of sensitive data types.

Format:
`projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`

`
string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The inspectTemplate. |

### getInspectTemplateBytes()

    public abstract ByteString getInspectTemplateBytes()

Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
configure detection of sensitive data types.

Format:
`projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`

`
string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for inspectTemplate. |