public static final class TransformationConfig.Builder extends GeneratedMessageV3.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
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TransformationConfig.BuilderImplements
TransformationConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TransformationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|
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. |
clearField(Descriptors.FieldDescriptor field)
public TransformationConfig.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TransformationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|
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. |
clone()
public TransformationConfig.Builder clone()| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|
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 GeneratedMessageV3.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 |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TransformationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| 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. |
setField(Descriptors.FieldDescriptor field, Object value)
public TransformationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|
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. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TransformationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|
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. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TransformationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
TransformationConfig.Builder |
|