Class Action.Deidentify (3.17.0)

public static final class Action.Deidentify extends GeneratedMessageV3 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 Fields

CLOUD_STORAGE_OUTPUT_FIELD_NUMBER

public static final int CLOUD_STORAGE_OUTPUT_FIELD_NUMBER
Field Value
TypeDescription
int

FILE_TYPES_TO_TRANSFORM_FIELD_NUMBER

public static final int FILE_TYPES_TO_TRANSFORM_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSFORMATION_CONFIG_FIELD_NUMBER

public static final int TRANSFORMATION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSFORMATION_DETAILS_STORAGE_CONFIG_FIELD_NUMBER

public static final int TRANSFORMATION_DETAILS_STORAGE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Action.Deidentify getDefaultInstance()
Returns
TypeDescription
Action.Deidentify

getDescriptor()

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

newBuilder()

public static Action.Deidentify.Builder newBuilder()
Returns
TypeDescription
Action.Deidentify.Builder

newBuilder(Action.Deidentify prototype)

public static Action.Deidentify.Builder newBuilder(Action.Deidentify prototype)
Parameter
NameDescription
prototypeAction.Deidentify
Returns
TypeDescription
Action.Deidentify.Builder

parseDelimitedFrom(InputStream input)

public static Action.Deidentify parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Action.Deidentify parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Action.Deidentify parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Action.Deidentify parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Action.Deidentify parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Action.Deidentify parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Action.Deidentify parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Action.Deidentify parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Action.Deidentify parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Action.Deidentify parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Action.Deidentify parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Action.Deidentify parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.Deidentify
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Action.Deidentify> parser()
Returns
TypeDescription
Parser<Deidentify>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCloudStorageOutput()

public String getCloudStorageOutput()

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
TypeDescription
String

The cloudStorageOutput.

getCloudStorageOutputBytes()

public ByteString getCloudStorageOutputBytes()

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

The bytes for cloudStorageOutput.

getDefaultInstanceForType()

public Action.Deidentify getDefaultInstanceForType()
Returns
TypeDescription
Action.Deidentify

getFileTypesToTransform(int index)

public FileType getFileTypesToTransform(int index)

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
FileType

The fileTypesToTransform at the given index.

getFileTypesToTransformCount()

public int getFileTypesToTransformCount()

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;

Returns
TypeDescription
int

The count of fileTypesToTransform.

getFileTypesToTransformList()

public List<FileType> getFileTypesToTransformList()

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;

Returns
TypeDescription
List<FileType>

A list containing the fileTypesToTransform.

getFileTypesToTransformValue(int index)

public int getFileTypesToTransformValue(int index)

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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of fileTypesToTransform at the given index.

getFileTypesToTransformValueList()

public List<Integer> getFileTypesToTransformValueList()

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;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for fileTypesToTransform.

getOutputCase()

public Action.Deidentify.OutputCase getOutputCase()
Returns
TypeDescription
Action.Deidentify.OutputCase

getParserForType()

public Parser<Action.Deidentify> getParserForType()
Returns
TypeDescription
Parser<Deidentify>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTransformationConfig()

public TransformationConfig getTransformationConfig()

User specified deidentify templates and configs for structured, unstructured, and image files.

.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;

Returns
TypeDescription
TransformationConfig

The transformationConfig.

getTransformationConfigOrBuilder()

public TransformationConfigOrBuilder getTransformationConfigOrBuilder()

User specified deidentify templates and configs for structured, unstructured, and image files.

.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;

Returns
TypeDescription
TransformationConfigOrBuilder

getTransformationDetailsStorageConfig()

public TransformationDetailsStorageConfig getTransformationDetailsStorageConfig()

Config for storing transformation details. This is separate from the de-identified content, and contains metadata about the successful transformations and/or failures that occurred while de-identifying. This needs to be set in order for users to access information about the status of each transformation (see TransformationDetails message for more information about what is noted).

.google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;

Returns
TypeDescription
TransformationDetailsStorageConfig

The transformationDetailsStorageConfig.

getTransformationDetailsStorageConfigOrBuilder()

public TransformationDetailsStorageConfigOrBuilder getTransformationDetailsStorageConfigOrBuilder()

Config for storing transformation details. This is separate from the de-identified content, and contains metadata about the successful transformations and/or failures that occurred while de-identifying. This needs to be set in order for users to access information about the status of each transformation (see TransformationDetails message for more information about what is noted).

.google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;

Returns
TypeDescription
TransformationDetailsStorageConfigOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCloudStorageOutput()

public boolean hasCloudStorageOutput()

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
TypeDescription
boolean

Whether the cloudStorageOutput field is set.

hasTransformationConfig()

public boolean hasTransformationConfig()

User specified deidentify templates and configs for structured, unstructured, and image files.

.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;

Returns
TypeDescription
boolean

Whether the transformationConfig field is set.

hasTransformationDetailsStorageConfig()

public boolean hasTransformationDetailsStorageConfig()

Config for storing transformation details. This is separate from the de-identified content, and contains metadata about the successful transformations and/or failures that occurred while de-identifying. This needs to be set in order for users to access information about the status of each transformation (see TransformationDetails message for more information about what is noted).

.google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;

Returns
TypeDescription
boolean

Whether the transformationDetailsStorageConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Action.Deidentify.Builder newBuilderForType()
Returns
TypeDescription
Action.Deidentify.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Action.Deidentify.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Action.Deidentify.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Action.Deidentify.Builder toBuilder()
Returns
TypeDescription
Action.Deidentify.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException