Class TransformationConfig (3.21.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
TypeDescription
int

IMAGE_REDACT_TEMPLATE_FIELD_NUMBER

public static final int IMAGE_REDACT_TEMPLATE_FIELD_NUMBER
Field Value
TypeDescription
int

STRUCTURED_DEIDENTIFY_TEMPLATE_FIELD_NUMBER

public static final int STRUCTURED_DEIDENTIFY_TEMPLATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TransformationConfig getDefaultInstance()
Returns
TypeDescription
TransformationConfig

getDescriptor()

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

newBuilder()

public static TransformationConfig.Builder newBuilder()
Returns
TypeDescription
TransformationConfig.Builder

newBuilder(TransformationConfig prototype)

public static TransformationConfig.Builder newBuilder(TransformationConfig prototype)
Parameter
NameDescription
prototypeTransformationConfig
Returns
TypeDescription
TransformationConfig.Builder

parseDelimitedFrom(InputStream input)

public static TransformationConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TransformationConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static TransformationConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TransformationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static TransformationConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TransformationConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static TransformationConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TransformationConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static TransformationConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TransformationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<TransformationConfig> parser()
Returns
TypeDescription
Parser<TransformationConfig>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TransformationConfig getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for imageRedactTemplate.

getParserForType()

public Parser<TransformationConfig> getParserForType()
Returns
TypeDescription
Parser<TransformationConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for structuredDeidentifyTemplate.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 TransformationConfig.Builder newBuilderForType()
Returns
TypeDescription
TransformationConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public TransformationConfig.Builder toBuilder()
Returns
TypeDescription
TransformationConfig.Builder

writeTo(CodedOutputStream output)

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