Class CloudStorageOptions.Builder (3.48.0)

public static final class CloudStorageOptions.Builder extends GeneratedMessageV3.Builder<CloudStorageOptions.Builder> implements CloudStorageOptionsOrBuilder

Options defining a file or a set of files within a Cloud Storage bucket.

Protobuf type google.privacy.dlp.v2.CloudStorageOptions

Static Methods

getDescriptor()

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

Methods

addAllFileTypes(Iterable<? extends FileType> values)

public CloudStorageOptions.Builder addAllFileTypes(Iterable<? extends FileType> values)

List of file type groups to include in the scan. If empty, all files are scanned and available data format processors are applied. In addition, the binary content of the selected files is always scanned as well. Images are scanned only as binary if the specified region does not support image inspection and no file_types were specified. Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.

repeated .google.privacy.dlp.v2.FileType file_types = 5;

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

The fileTypes to add.

Returns
Type Description
CloudStorageOptions.Builder

This builder for chaining.

addAllFileTypesValue(Iterable<Integer> values)

public CloudStorageOptions.Builder addAllFileTypesValue(Iterable<Integer> values)

List of file type groups to include in the scan. If empty, all files are scanned and available data format processors are applied. In addition, the binary content of the selected files is always scanned as well. Images are scanned only as binary if the specified region does not support image inspection and no file_types were specified. Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.

repeated .google.privacy.dlp.v2.FileType file_types = 5;

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
CloudStorageOptions.Builder

This builder for chaining.

addFileTypes(FileType value)

public CloudStorageOptions.Builder addFileTypes(FileType value)

List of file type groups to include in the scan. If empty, all files are scanned and available data format processors are applied. In addition, the binary content of the selected files is always scanned as well. Images are scanned only as binary if the specified region does not support image inspection and no file_types were specified. Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.

repeated .google.privacy.dlp.v2.FileType file_types = 5;

Parameter
Name Description
value FileType

The fileTypes to add.

Returns
Type Description
CloudStorageOptions.Builder

This builder for chaining.

addFileTypesValue(int value)

public CloudStorageOptions.Builder addFileTypesValue(int value)

List of file type groups to include in the scan. If empty, all files are scanned and available data format processors are applied. In addition, the binary content of the selected files is always scanned as well. Images are scanned only as binary if the specified region does not support image inspection and no file_types were specified. Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.

repeated .google.privacy.dlp.v2.FileType file_types = 5;

Parameter
Name Description
value int

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

Returns
Type Description
CloudStorageOptions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudStorageOptions build()
Returns
Type Description
CloudStorageOptions

buildPartial()

public CloudStorageOptions buildPartial()
Returns
Type Description
CloudStorageOptions

clear()

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