public static final class TransformationConfig.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
TransformationConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransformationConfig |
build() |
TransformationConfig |
buildPartial() |
TransformationConfig.Builder |
clear() |
TransformationConfig.Builder |
clearDeidentifyTemplate()
De-identify template.
|
TransformationConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TransformationConfig.Builder |
clearImageRedactTemplate()
Image redact template.
|
TransformationConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TransformationConfig.Builder |
clearStructuredDeidentifyTemplate()
Structured de-identify template.
|
TransformationConfig.Builder |
clone() |
TransformationConfig |
getDefaultInstanceForType() |
String |
getDeidentifyTemplate()
De-identify template.
|
com.google.protobuf.ByteString |
getDeidentifyTemplateBytes()
De-identify template.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getImageRedactTemplate()
Image redact template.
|
com.google.protobuf.ByteString |
getImageRedactTemplateBytes()
Image redact template.
|
String |
getStructuredDeidentifyTemplate()
Structured de-identify template.
|
com.google.protobuf.ByteString |
getStructuredDeidentifyTemplateBytes()
Structured de-identify template.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TransformationConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TransformationConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
TransformationConfig.Builder |
mergeFrom(TransformationConfig other) |
TransformationConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransformationConfig.Builder |
setDeidentifyTemplate(String value)
De-identify template.
|
TransformationConfig.Builder |
setDeidentifyTemplateBytes(com.google.protobuf.ByteString value)
De-identify template.
|
TransformationConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransformationConfig.Builder |
setImageRedactTemplate(String value)
Image redact template.
|
TransformationConfig.Builder |
setImageRedactTemplateBytes(com.google.protobuf.ByteString value)
Image redact template.
|
TransformationConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TransformationConfig.Builder |
setStructuredDeidentifyTemplate(String value)
Structured de-identify template.
|
TransformationConfig.Builder |
setStructuredDeidentifyTemplateBytes(com.google.protobuf.ByteString value)
Structured de-identify template.
|
TransformationConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public TransformationConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public TransformationConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TransformationConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TransformationConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TransformationConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public TransformationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public TransformationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public TransformationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public TransformationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public TransformationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public TransformationConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransformationConfig.Builder>public TransformationConfig.Builder mergeFrom(TransformationConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public TransformationConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransformationConfig.Builder>IOExceptionpublic 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;getDeidentifyTemplate in interface TransformationConfigOrBuilderpublic com.google.protobuf.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;getDeidentifyTemplateBytes in interface TransformationConfigOrBuilderpublic 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;value - The deidentifyTemplate to set.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;public TransformationConfig.Builder setDeidentifyTemplateBytes(com.google.protobuf.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;value - The bytes for deidentifyTemplate to set.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;getStructuredDeidentifyTemplate in interface TransformationConfigOrBuilderpublic com.google.protobuf.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;getStructuredDeidentifyTemplateBytes in interface TransformationConfigOrBuilderpublic 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;value - The structuredDeidentifyTemplate to set.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;public TransformationConfig.Builder setStructuredDeidentifyTemplateBytes(com.google.protobuf.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;value - The bytes for structuredDeidentifyTemplate to set.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;getImageRedactTemplate in interface TransformationConfigOrBuilderpublic com.google.protobuf.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;getImageRedactTemplateBytes in interface TransformationConfigOrBuilderpublic 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;value - The imageRedactTemplate to set.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;public TransformationConfig.Builder setImageRedactTemplateBytes(com.google.protobuf.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;value - The bytes for imageRedactTemplate to set.public final TransformationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>public final TransformationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>Copyright © 2022 Google LLC. All rights reserved.