public static final class RedactionConfig.Builder extends GeneratedMessage.Builder<RedactionConfig.Builder> implements RedactionConfigOrBuilderConfiguration to instruct how sensitive data should be handled.
Protobuf type google.cloud.ces.v1.RedactionConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RedactionConfig.BuilderImplements
RedactionConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RedactionConfig build()| Returns | |
|---|---|
| Type | Description |
RedactionConfig |
|
buildPartial()
public RedactionConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
RedactionConfig |
|
clear()
public RedactionConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
RedactionConfig.Builder |
|
clearDeidentifyTemplate()
public RedactionConfig.Builder clearDeidentifyTemplate()Optional. DLP 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 |
RedactionConfig.Builder |
This builder for chaining. |
clearEnableRedaction()
public RedactionConfig.Builder clearEnableRedaction()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 |
RedactionConfig.Builder |
This builder for chaining. |
clearInspectTemplate()
public RedactionConfig.Builder clearInspectTemplate()Optional. DLP 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 |
RedactionConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public RedactionConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RedactionConfig |
|
getDeidentifyTemplate()
public String getDeidentifyTemplate()Optional. DLP 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 |
String |
The deidentifyTemplate. |
getDeidentifyTemplateBytes()
public ByteString getDeidentifyTemplateBytes()Optional. DLP 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 |
ByteString |
The bytes for deidentifyTemplate. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnableRedaction()
public 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 |
boolean |
The enableRedaction. |
getInspectTemplate()
public String getInspectTemplate()Optional. DLP 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 |
String |
The inspectTemplate. |
getInspectTemplateBytes()
public ByteString getInspectTemplateBytes()Optional. DLP 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 |
ByteString |
The bytes for inspectTemplate. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RedactionConfig other)
public RedactionConfig.Builder mergeFrom(RedactionConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
RedactionConfig |
| Returns | |
|---|---|
| Type | Description |
RedactionConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RedactionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RedactionConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RedactionConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RedactionConfig.Builder |
|
setDeidentifyTemplate(String value)
public RedactionConfig.Builder setDeidentifyTemplate(String value)Optional. DLP 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe deidentifyTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
RedactionConfig.Builder |
This builder for chaining. |
setDeidentifyTemplateBytes(ByteString value)
public RedactionConfig.Builder setDeidentifyTemplateBytes(ByteString value)Optional. DLP 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for deidentifyTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
RedactionConfig.Builder |
This builder for chaining. |
setEnableRedaction(boolean value)
public RedactionConfig.Builder setEnableRedaction(boolean value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enableRedaction to set. |
| Returns | |
|---|---|
| Type | Description |
RedactionConfig.Builder |
This builder for chaining. |
setInspectTemplate(String value)
public RedactionConfig.Builder setInspectTemplate(String value)Optional. DLP 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe inspectTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
RedactionConfig.Builder |
This builder for chaining. |
setInspectTemplateBytes(ByteString value)
public RedactionConfig.Builder setInspectTemplateBytes(ByteString value)Optional. DLP 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for inspectTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
RedactionConfig.Builder |
This builder for chaining. |