Class TransformationConfig (3.51.0)

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

DEIDENTIFY_TEMPLATE_FIELD_NUMBER

public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_REDACT_TEMPLATE_FIELD_NUMBER

public static final int IMAGE_REDACT_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

STRUCTURED_DEIDENTIFY_TEMPLATE_FIELD_NUMBER

public static final int STRUCTURED_DEIDENTIFY_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TransformationConfig getDefaultInstance()
Returns
Type Description
TransformationConfig

getDescriptor()

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

newBuilder()

public static TransformationConfig.Builder newBuilder()
Returns
Type Description
TransformationConfig.Builder

newBuilder(TransformationConfig prototype)

public static TransformationConfig.Builder newBuilder(TransformationConfig prototype)
Parameter
Name Description
prototype TransformationConfig
Returns
Type Description
TransformationConfig.Builder

parseDelimitedFrom(InputStream input)

public static TransformationConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TransformationConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransformationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransformationConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TransformationConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TransformationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TransformationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransformationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TransformationConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TransformationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TransformationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransformationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TransformationConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TransformationConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TransformationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransformationConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TransformationConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TransformationConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransformationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransformationConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TransformationConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TransformationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TransformationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransformationConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TransformationConfig> parser()
Returns
Type Description
Parser<TransformationConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TransformationConfig getDefaultInstanceForType()
Returns
Type Description
TransformationConfig

getDeidentifyTemplate()

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.

getDeidentifyTemplateBytes()

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.

getImageRedactTemplate()

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.

getImageRedactTemplateBytes()

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.

getParserForType()

public Parser<TransformationConfig> getParserForType()
Returns
Type Description
Parser<TransformationConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStructuredDeidentifyTemplate()

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.

getStructuredDeidentifyTemplateBytes()

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TransformationConfig.Builder newBuilderForType()
Returns
Type Description
TransformationConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TransformationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TransformationConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TransformationConfig.Builder toBuilder()
Returns
Type Description
TransformationConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException