- 3.57.0 (latest)
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.7
- 3.5.0
- 3.4.0
- 3.3.2
- 3.2.1
- 3.1.4
public static final class TransformationConfig.Builder extends GeneratedMessageV3.Builder<TransformationConfig.Builder> 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
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 |
String The 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 |
ByteString The 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 |
String The 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 |
ByteString The 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 |
String The 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 |
ByteString The 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 |