public final class TransformationConfig extends GeneratedMessageV3 implements TransformationConfigOrBuilder
User specified templates and configs for how to deidentify structured,
unstructures, and image files. User must provide either a unstructured
deidentify template or at least one redact image config.
Protobuf type google.privacy.dlp.v2.TransformationConfig
Static Fields
public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER
Field Value
public static final int IMAGE_REDACT_TEMPLATE_FIELD_NUMBER
Field Value
public static final int STRUCTURED_DEIDENTIFY_TEMPLATE_FIELD_NUMBER
Field Value
Static Methods
public static TransformationConfig getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static TransformationConfig.Builder newBuilder()
Returns
public static TransformationConfig.Builder newBuilder(TransformationConfig prototype)
Parameter
Returns
public static TransformationConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TransformationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransformationConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static TransformationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransformationConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static TransformationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransformationConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TransformationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransformationConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TransformationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransformationConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static TransformationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<TransformationConfig> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public TransformationConfig getDefaultInstanceForType()
Returns
public String getDeidentifyTemplate()
De-identify template.
If this template is specified, it will serve as the default de-identify
template. This template cannot contain record_transformations
since it
can be used for unstructured content such as free-form text files. If this
template is not set, a default ReplaceWithInfoTypeConfig
will be used to
de-identify unstructured content.
string deidentify_template = 1;
Returns
Type | Description |
String | The deidentifyTemplate.
|
public ByteString getDeidentifyTemplateBytes()
De-identify template.
If this template is specified, it will serve as the default de-identify
template. This template cannot contain record_transformations
since it
can be used for unstructured content such as free-form text files. If this
template is not set, a default ReplaceWithInfoTypeConfig
will be used to
de-identify unstructured content.
string deidentify_template = 1;
Returns
Type | Description |
ByteString | The bytes for deidentifyTemplate.
|
public String getImageRedactTemplate()
Image redact template.
If this template is specified, it will serve as the de-identify template
for images. If this template is not set, all findings in the image will be
redacted with a black box.
string image_redact_template = 4;
Returns
Type | Description |
String | The imageRedactTemplate.
|
public ByteString getImageRedactTemplateBytes()
Image redact template.
If this template is specified, it will serve as the de-identify template
for images. If this template is not set, all findings in the image will be
redacted with a black box.
string image_redact_template = 4;
Returns
Type | Description |
ByteString | The bytes for imageRedactTemplate.
|
public Parser<TransformationConfig> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public String getStructuredDeidentifyTemplate()
Structured de-identify template.
If this template is specified, it will serve as the de-identify template
for structured content such as delimited files and tables. If this template
is not set but the deidentify_template
is set, then deidentify_template
will also apply to the structured content. If neither template is set, a
default ReplaceWithInfoTypeConfig
will be used to de-identify structured
content.
string structured_deidentify_template = 2;
Returns
Type | Description |
String | The structuredDeidentifyTemplate.
|
public ByteString getStructuredDeidentifyTemplateBytes()
Structured de-identify template.
If this template is specified, it will serve as the de-identify template
for structured content such as delimited files and tables. If this template
is not set but the deidentify_template
is set, then deidentify_template
will also apply to the structured content. If neither template is set, a
default ReplaceWithInfoTypeConfig
will be used to de-identify structured
content.
string structured_deidentify_template = 2;
Returns
Type | Description |
ByteString | The bytes for structuredDeidentifyTemplate.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TransformationConfig.Builder newBuilderForType()
Returns
protected TransformationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public TransformationConfig.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions