Class DeidentifyTemplate.Builder (3.50.0)

public static final class DeidentifyTemplate.Builder extends GeneratedMessageV3.Builder<DeidentifyTemplate.Builder> implements DeidentifyTemplateOrBuilder

DeidentifyTemplates contains instructions on how to de-identify content. See https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to learn more.

Protobuf type google.privacy.dlp.v2.DeidentifyTemplate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeidentifyTemplate build()
Returns
Type Description
DeidentifyTemplate

buildPartial()

public DeidentifyTemplate buildPartial()
Returns
Type Description
DeidentifyTemplate

clear()

public DeidentifyTemplate.Builder clear()
Returns
Type Description
DeidentifyTemplate.Builder
Overrides

clearCreateTime()

public DeidentifyTemplate.Builder clearCreateTime()

Output only. The creation timestamp of an inspectTemplate.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeidentifyTemplate.Builder

clearDeidentifyConfig()

public DeidentifyTemplate.Builder clearDeidentifyConfig()

The core content of the template.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;

Returns
Type Description
DeidentifyTemplate.Builder

clearDescription()

public DeidentifyTemplate.Builder clearDescription()

Short description (max 256 chars).

string description = 3;

Returns
Type Description
DeidentifyTemplate.Builder

This builder for chaining.

clearDisplayName()

public DeidentifyTemplate.Builder clearDisplayName()

Display name (max 256 chars).

string display_name = 2;

Returns
Type Description
DeidentifyTemplate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DeidentifyTemplate.Builder clearName()

Output only. The template name.

The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeidentifyTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public DeidentifyTemplate.Builder clearUpdateTime()

Output only. The last update timestamp of an inspectTemplate.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeidentifyTemplate.Builder

clone()

public DeidentifyTemplate.Builder clone()
Returns
Type Description