Class RedactionConfig.Builder (2.24.0)

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

DLP resources used for redaction while ingesting conversations.

Protobuf type google.cloud.contactcenterinsights.v1.RedactionConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RedactionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RedactionConfig.Builder
Overrides

build()

public RedactionConfig build()
Returns
TypeDescription
RedactionConfig

buildPartial()

public RedactionConfig buildPartial()
Returns
TypeDescription
RedactionConfig

clear()

public RedactionConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
RedactionConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RedactionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RedactionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RedactionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RedactionConfig.Builder
Overrides

clone()

public RedactionConfig.Builder clone()
Returns
TypeDescription
RedactionConfig.Builder
Overrides

getDefaultInstanceForType()

public RedactionConfig getDefaultInstanceForType()
Returns
TypeDescription
RedactionConfig

getDeidentifyTemplate()

public String getDeidentifyTemplate()

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

string deidentify_template = 1;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for deidentifyTemplate.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for inspectTemplate.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RedactionConfig other)

public RedactionConfig.Builder mergeFrom(RedactionConfig other)
Parameter
NameDescription
otherRedactionConfig
Returns
TypeDescription
RedactionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RedactionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RedactionConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RedactionConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RedactionConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RedactionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The deidentifyTemplate to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for deidentifyTemplate to set.

Returns
TypeDescription
RedactionConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RedactionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The inspectTemplate to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for inspectTemplate to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RedactionConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RedactionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RedactionConfig.Builder
Overrides