public static final class TransformationConfig.Builder extends GeneratedMessage.Builder<TransformationConfig.Builder> implements TransformationConfigOrBuilderUser 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TransformationConfig.BuilderImplements
TransformationConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TransformationConfig build()| Returns | |
|---|---|
| Type | Description |
TransformationConfig |
|
buildPartial()
public TransformationConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
TransformationConfig |
|
clear()
public TransformationConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|
clearDeidentifyTemplate()
public TransformationConfig.Builder clearDeidentifyTemplate() 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 |
TransformationConfig.Builder |
This builder for chaining. |
clearImageRedactTemplate()
public TransformationConfig.Builder clearImageRedactTemplate()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 |
TransformationConfig.Builder |
This builder for chaining. |
clearStructuredDeidentifyTemplate()
public TransformationConfig.Builder clearStructuredDeidentifyTemplate() 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 |
TransformationConfig.Builder |
This builder for chaining. |
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TransformationConfig other)
public TransformationConfig.Builder mergeFrom(TransformationConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
TransformationConfig |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TransformationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TransformationConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|
setDeidentifyTemplate(String value)
public TransformationConfig.Builder setDeidentifyTemplate(String value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe deidentifyTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
This builder for chaining. |
setDeidentifyTemplateBytes(ByteString value)
public TransformationConfig.Builder setDeidentifyTemplateBytes(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for deidentifyTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
This builder for chaining. |
setImageRedactTemplate(String value)
public TransformationConfig.Builder setImageRedactTemplate(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe imageRedactTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
This builder for chaining. |
setImageRedactTemplateBytes(ByteString value)
public TransformationConfig.Builder setImageRedactTemplateBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for imageRedactTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
This builder for chaining. |
setStructuredDeidentifyTemplate(String value)
public TransformationConfig.Builder setStructuredDeidentifyTemplate(String value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe structuredDeidentifyTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
This builder for chaining. |
setStructuredDeidentifyTemplateBytes(ByteString value)
public TransformationConfig.Builder setStructuredDeidentifyTemplateBytes(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for structuredDeidentifyTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
This builder for chaining. |