Class Action.Deidentify.Builder (3.50.0)

public static final class Action.Deidentify.Builder extends GeneratedMessageV3.Builder<Action.Deidentify.Builder> implements Action.DeidentifyOrBuilder

Create a de-identified copy of the requested table or files.

A TransformationDetail will be created for each transformation.

If any rows in BigQuery are skipped during de-identification (transformation errors or row size exceeds BigQuery insert API limits) they are placed in the failure output table. If the original row exceeds the BigQuery insert API limit it will be truncated when written to the failure output table. The failure output table can be set in the action.deidentify.output.big_query_output.deidentified_failure_output_table field, if no table is set, a table will be automatically created in the same project and dataset as the original table.

Compatible with: Inspect

Protobuf type google.privacy.dlp.v2.Action.Deidentify

Static Methods

getDescriptor()

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

Methods

addAllFileTypesToTransform(Iterable<? extends FileType> values)

public Action.Deidentify.Builder addAllFileTypesToTransform(Iterable<? extends FileType> values)

List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV.

repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.FileType>

The fileTypesToTransform to add.

Returns
Type Description
Action.Deidentify.Builder

This builder for chaining.

addAllFileTypesToTransformValue(Iterable<Integer> values)

public Action.Deidentify.Builder addAllFileTypesToTransformValue(Iterable<Integer> values)

List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV.

repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for fileTypesToTransform to add.

Returns
Type Description
Action.Deidentify.Builder

This builder for chaining.

addFileTypesToTransform(FileType value)

public Action.Deidentify.Builder addFileTypesToTransform(FileType value)

List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV.

repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;

Parameter
Name Description
value FileType

The fileTypesToTransform to add.

Returns
Type Description
Action.Deidentify.Builder

This builder for chaining.

addFileTypesToTransformValue(int value)

public Action.Deidentify.Builder addFileTypesToTransformValue(int value)

List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV.

repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;

Parameter
Name Description
value int

The enum numeric value on the wire for fileTypesToTransform to add.

Returns
Type Description
Action.Deidentify.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Action.Deidentify build()
Returns
Type Description
Action.Deidentify

buildPartial()

public Action.Deidentify buildPartial()
Returns
Type Description
Action.Deidentify

clear()

public Action.Deidentify.Builder clear()
Returns
Type Description
Action.Deidentify.Builder
Overrides

clearCloudStorageOutput()

public Action.Deidentify.Builder clearCloudStorageOutput()

Required. User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path.

Form of: gs://bucket/folder/ or gs://bucket

string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Action.Deidentify.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Action.Deidentify.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field