Class RedactionConfig.Builder (2.53.0)

public static final class RedactionConfig.Builder extends GeneratedMessageV3.Builder<RedactionConfig.Builder> implements RedactionConfigOrBuilder

DLP resources used for redaction while ingesting conversations. DLP settings are applied to conversations ingested from the UploadConversation and IngestConversations endpoints, including conversation coming from CCAI Platform. They are not applied to conversations ingested from the CreateConversation endpoint or the Dialogflow / Agent Assist runtime integrations. When using Dialogflow / Agent Assist runtime integrations, redaction should be performed in Dialogflow / Agent Assist.

Protobuf type google.cloud.contactcenterinsights.v1.RedactionConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RedactionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RedactionConfig.Builder
Overrides

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
Overrides

clearDeidentifyTemplate()

public RedactionConfig.Builder clearDeidentifyTemplate()

The fully-qualified DLP deidentify template resource name. Format: projects/{project}/deidentifyTemplates/{template}

string deidentify_template = 1;

Returns
Type Description
RedactionConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RedactionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RedactionConfig.Builder
Overrides

clearInspectTemplate()

public RedactionConfig.Builder clearInspectTemplate()

The fully-qualified DLP inspect template resource name. Format: projects/{project}/locations/{location}/inspectTemplates/{template}

string inspect_template = 2;

Returns
Type Description
RedactionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RedactionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RedactionConfig.Builder
Overrides

clone()

public RedactionConfig.Builder clone()
Returns
Type Description
RedactionConfig.Builder
Overrides

getDefaultInstanceForType()

public RedactionConfig getDefaultInstanceForType()
Returns
Type Description
RedactionConfig

getDeidentifyTemplate()

public String getDeidentifyTemplate()

The fully-qualified DLP deidentify template resource name. Format: projects/{project}/deidentifyTemplates/{template}

string deidentify_template = 1;

Returns
Type Description
String

The deidentifyTemplate.

getDeidentifyTemplateBytes()

public ByteString getDeidentifyTemplateBytes()

The fully-qualified DLP deidentify template resource name. Format: projects/{project}/deidentifyTemplates/{template}

string deidentify_template = 1;

Returns
Type Description
ByteString

The bytes for deidentifyTemplate.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInspectTemplate()

public String getInspectTemplate()

The fully-qualified DLP inspect template resource name. Format: projects/{project}/locations/{location}/inspectTemplates/{template}

string inspect_template = 2;

Returns
Type Description
String

The inspectTemplate.

getInspectTemplateBytes()

public ByteString getInspectTemplateBytes()

The fully-qualified DLP inspect template resource name. Format: projects/{project}/locations/{location}/inspectTemplates/{template}

string inspect_template = 2;

Returns
Type Description
ByteString

The bytes for inspectTemplate.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RedactionConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RedactionConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RedactionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RedactionConfig.Builder
Overrides

setDeidentifyTemplate(String value)

public RedactionConfig.Builder setDeidentifyTemplate(String value)

The fully-qualified DLP deidentify template resource name. Format: projects/{project}/deidentifyTemplates/{template}

string deidentify_template = 1;

Parameter
Name Description
value String

The deidentifyTemplate to set.

Returns
Type Description
RedactionConfig.Builder

This builder for chaining.

setDeidentifyTemplateBytes(ByteString value)

public RedactionConfig.Builder setDeidentifyTemplateBytes(ByteString value)

The fully-qualified DLP deidentify template resource name. Format: projects/{project}/deidentifyTemplates/{template}

string deidentify_template = 1;

Parameter
Name Description
value ByteString

The bytes for deidentifyTemplate to set.

Returns
Type Description
RedactionConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RedactionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RedactionConfig.Builder
Overrides

setInspectTemplate(String value)

public RedactionConfig.Builder setInspectTemplate(String value)

The fully-qualified DLP inspect template resource name. Format: projects/{project}/locations/{location}/inspectTemplates/{template}

string inspect_template = 2;

Parameter
Name Description
value String

The inspectTemplate to set.

Returns
Type Description
RedactionConfig.Builder

This builder for chaining.

setInspectTemplateBytes(ByteString value)

public RedactionConfig.Builder setInspectTemplateBytes(ByteString value)

The fully-qualified DLP inspect template resource name. Format: projects/{project}/locations/{location}/inspectTemplates/{template}

string inspect_template = 2;

Parameter
Name Description
value ByteString

The bytes for inspectTemplate to set.

Returns
Type Description
RedactionConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RedactionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RedactionConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RedactionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RedactionConfig.Builder
Overrides