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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int IMAGE_REDACT_TEMPLATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int STRUCTURED_DEIDENTIFY_TEMPLATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static TransformationConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static TransformationConfig.Builder newBuilder()
public static TransformationConfig.Builder newBuilder(TransformationConfig prototype)
public static TransformationConfig parseDelimitedFrom(InputStream input)
public static TransformationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TransformationConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static TransformationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TransformationConfig parseFrom(ByteString data)
public static TransformationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TransformationConfig parseFrom(CodedInputStream input)
public static TransformationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TransformationConfig parseFrom(InputStream input)
public static TransformationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TransformationConfig parseFrom(ByteBuffer data)
public static TransformationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<TransformationConfig> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public TransformationConfig getDefaultInstanceForType()
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()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public TransformationConfig.Builder newBuilderForType()
protected TransformationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public TransformationConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides