Package com.google.privacy.dlp.v2
Class Action.Deidentify
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.privacy.dlp.v2.Action.Deidentify
-
- All Implemented Interfaces:
Action.DeidentifyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Action
public static final class Action.Deidentify extends com.google.protobuf.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 typegoogle.privacy.dlp.v2.Action.Deidentify- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAction.Deidentify.BuilderCreate a de-identified copy of the requested table or files.static classAction.Deidentify.OutputCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCLOUD_STORAGE_OUTPUT_FIELD_NUMBERstatic intFILE_TYPES_TO_TRANSFORM_FIELD_NUMBERstatic intTRANSFORMATION_CONFIG_FIELD_NUMBERstatic intTRANSFORMATION_DETAILS_STORAGE_CONFIG_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCloudStorageOutput()Required.com.google.protobuf.ByteStringgetCloudStorageOutputBytes()Required.static Action.DeidentifygetDefaultInstance()Action.DeidentifygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()FileTypegetFileTypesToTransform(int index)List of user-specified file type groups to transform.intgetFileTypesToTransformCount()List of user-specified file type groups to transform.List<FileType>getFileTypesToTransformList()List of user-specified file type groups to transform.intgetFileTypesToTransformValue(int index)List of user-specified file type groups to transform.List<Integer>getFileTypesToTransformValueList()List of user-specified file type groups to transform.Action.Deidentify.OutputCasegetOutputCase()com.google.protobuf.Parser<Action.Deidentify>getParserForType()intgetSerializedSize()TransformationConfiggetTransformationConfig()User specified deidentify templates and configs for structured, unstructured, and image files.TransformationConfigOrBuildergetTransformationConfigOrBuilder()User specified deidentify templates and configs for structured, unstructured, and image files.TransformationDetailsStorageConfiggetTransformationDetailsStorageConfig()Config for storing transformation details.TransformationDetailsStorageConfigOrBuildergetTransformationDetailsStorageConfigOrBuilder()Config for storing transformation details.booleanhasCloudStorageOutput()Required.inthashCode()booleanhasTransformationConfig()User specified deidentify templates and configs for structured, unstructured, and image files.booleanhasTransformationDetailsStorageConfig()Config for storing transformation details.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Action.Deidentify.BuildernewBuilder()static Action.Deidentify.BuildernewBuilder(Action.Deidentify prototype)Action.Deidentify.BuildernewBuilderForType()protected Action.Deidentify.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Action.DeidentifyparseDelimitedFrom(InputStream input)static Action.DeidentifyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Action.DeidentifyparseFrom(byte[] data)static Action.DeidentifyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Action.DeidentifyparseFrom(com.google.protobuf.ByteString data)static Action.DeidentifyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Action.DeidentifyparseFrom(com.google.protobuf.CodedInputStream input)static Action.DeidentifyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Action.DeidentifyparseFrom(InputStream input)static Action.DeidentifyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Action.DeidentifyparseFrom(ByteBuffer data)static Action.DeidentifyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Action.Deidentify>parser()Action.Deidentify.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TRANSFORMATION_CONFIG_FIELD_NUMBER
public static final int TRANSFORMATION_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSFORMATION_DETAILS_STORAGE_CONFIG_FIELD_NUMBER
public static final int TRANSFORMATION_DETAILS_STORAGE_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLOUD_STORAGE_OUTPUT_FIELD_NUMBER
public static final int CLOUD_STORAGE_OUTPUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILE_TYPES_TO_TRANSFORM_FIELD_NUMBER
public static final int FILE_TYPES_TO_TRANSFORM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getOutputCase
public Action.Deidentify.OutputCase getOutputCase()
- Specified by:
getOutputCasein interfaceAction.DeidentifyOrBuilder
-
hasTransformationConfig
public boolean hasTransformationConfig()
User specified deidentify templates and configs for structured, unstructured, and image files.
.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;- Specified by:
hasTransformationConfigin interfaceAction.DeidentifyOrBuilder- Returns:
- Whether the transformationConfig field is set.
-
getTransformationConfig
public TransformationConfig getTransformationConfig()
User specified deidentify templates and configs for structured, unstructured, and image files.
.google.privacy.dlp.v2.TransformationConfig transformation_config = 7;- Specified by:
getTransformationConfigin interfaceAction.DeidentifyOrBuilder- Returns:
- 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;- Specified by:
getTransformationConfigOrBuilderin interfaceAction.DeidentifyOrBuilder
-
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][google.privacy.dlp.v2.TransformationDetails] message for more information about what is noted).
.google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;- Specified by:
hasTransformationDetailsStorageConfigin interfaceAction.DeidentifyOrBuilder- Returns:
- Whether the transformationDetailsStorageConfig field is set.
-
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][google.privacy.dlp.v2.TransformationDetails] message for more information about what is noted).
.google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;- Specified by:
getTransformationDetailsStorageConfigin interfaceAction.DeidentifyOrBuilder- Returns:
- 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][google.privacy.dlp.v2.TransformationDetails] message for more information about what is noted).
.google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;- Specified by:
getTransformationDetailsStorageConfigOrBuilderin interfaceAction.DeidentifyOrBuilder
-
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];- Specified by:
hasCloudStorageOutputin interfaceAction.DeidentifyOrBuilder- Returns:
- Whether the cloudStorageOutput field is set.
-
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];- Specified by:
getCloudStorageOutputin interfaceAction.DeidentifyOrBuilder- Returns:
- The cloudStorageOutput.
-
getCloudStorageOutputBytes
public com.google.protobuf.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];- Specified by:
getCloudStorageOutputBytesin interfaceAction.DeidentifyOrBuilder- Returns:
- The bytes for cloudStorageOutput.
-
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;- Specified by:
getFileTypesToTransformListin interfaceAction.DeidentifyOrBuilder- Returns:
- A list containing the fileTypesToTransform.
-
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;- Specified by:
getFileTypesToTransformCountin interfaceAction.DeidentifyOrBuilder- Returns:
- The count of fileTypesToTransform.
-
getFileTypesToTransform
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;- Specified by:
getFileTypesToTransformin interfaceAction.DeidentifyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The 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;- Specified by:
getFileTypesToTransformValueListin interfaceAction.DeidentifyOrBuilder- Returns:
- A list containing the enum numeric values on the wire for fileTypesToTransform.
-
getFileTypesToTransformValue
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;- Specified by:
getFileTypesToTransformValuein interfaceAction.DeidentifyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of fileTypesToTransform at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Action.Deidentify parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Action.Deidentify parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Action.Deidentify parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Action.Deidentify parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Action.Deidentify parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Action.Deidentify parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Action.Deidentify parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Action.Deidentify parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Action.Deidentify parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Action.Deidentify parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Action.Deidentify parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Action.Deidentify parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Action.Deidentify.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Action.Deidentify.Builder newBuilder()
-
newBuilder
public static Action.Deidentify.Builder newBuilder(Action.Deidentify prototype)
-
toBuilder
public Action.Deidentify.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Action.Deidentify.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Action.Deidentify getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Action.Deidentify> parser()
-
getParserForType
public com.google.protobuf.Parser<Action.Deidentify> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Action.Deidentify getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-