Package com.google.privacy.dlp.v2
Class TransformationConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
- com.google.privacy.dlp.v2.TransformationConfig.Builder
-
- All Implemented Interfaces:
TransformationConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TransformationConfig
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 typegoogle.privacy.dlp.v2.TransformationConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransformationConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransformationConfigbuild()TransformationConfigbuildPartial()TransformationConfig.Builderclear()TransformationConfig.BuilderclearDeidentifyTemplate()De-identify template.TransformationConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TransformationConfig.BuilderclearImageRedactTemplate()Image redact template.TransformationConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TransformationConfig.BuilderclearStructuredDeidentifyTemplate()Structured de-identify template.TransformationConfig.Builderclone()TransformationConfiggetDefaultInstanceForType()StringgetDeidentifyTemplate()De-identify template.com.google.protobuf.ByteStringgetDeidentifyTemplateBytes()De-identify template.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetImageRedactTemplate()Image redact template.com.google.protobuf.ByteStringgetImageRedactTemplateBytes()Image redact template.StringgetStructuredDeidentifyTemplate()Structured de-identify template.com.google.protobuf.ByteStringgetStructuredDeidentifyTemplateBytes()Structured de-identify template.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TransformationConfig.BuildermergeFrom(TransformationConfig other)TransformationConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TransformationConfig.BuildermergeFrom(com.google.protobuf.Message other)TransformationConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TransformationConfig.BuildersetDeidentifyTemplate(String value)De-identify template.TransformationConfig.BuildersetDeidentifyTemplateBytes(com.google.protobuf.ByteString value)De-identify template.TransformationConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransformationConfig.BuildersetImageRedactTemplate(String value)Image redact template.TransformationConfig.BuildersetImageRedactTemplateBytes(com.google.protobuf.ByteString value)Image redact template.TransformationConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TransformationConfig.BuildersetStructuredDeidentifyTemplate(String value)Structured de-identify template.TransformationConfig.BuildersetStructuredDeidentifyTemplateBytes(com.google.protobuf.ByteString value)Structured de-identify template.TransformationConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
clear
public TransformationConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
getDefaultInstanceForType
public TransformationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransformationConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransformationConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransformationConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
setField
public TransformationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
clearField
public TransformationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
clearOneof
public TransformationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
setRepeatedField
public TransformationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
addRepeatedField
public TransformationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
mergeFrom
public TransformationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransformationConfig.Builder>
-
mergeFrom
public TransformationConfig.Builder mergeFrom(TransformationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
mergeFrom
public TransformationConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransformationConfig.Builder>- Throws:
IOException
-
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;- Specified by:
getDeidentifyTemplatein interfaceTransformationConfigOrBuilder- Returns:
- The deidentifyTemplate.
-
getDeidentifyTemplateBytes
public 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;- Specified by:
getDeidentifyTemplateBytesin interfaceTransformationConfigOrBuilder- Returns:
- The bytes for deidentifyTemplate.
-
setDeidentifyTemplate
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;- Parameters:
value- The deidentifyTemplate to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDeidentifyTemplateBytes
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;- Parameters:
value- The bytes for deidentifyTemplate to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getStructuredDeidentifyTemplatein interfaceTransformationConfigOrBuilder- Returns:
- The structuredDeidentifyTemplate.
-
getStructuredDeidentifyTemplateBytes
public 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;- Specified by:
getStructuredDeidentifyTemplateBytesin interfaceTransformationConfigOrBuilder- Returns:
- The bytes for structuredDeidentifyTemplate.
-
setStructuredDeidentifyTemplate
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;- Parameters:
value- The structuredDeidentifyTemplate to set.- Returns:
- 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:
- This builder for chaining.
-
setStructuredDeidentifyTemplateBytes
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;- Parameters:
value- The bytes for structuredDeidentifyTemplate to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getImageRedactTemplatein interfaceTransformationConfigOrBuilder- Returns:
- The imageRedactTemplate.
-
getImageRedactTemplateBytes
public 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;- Specified by:
getImageRedactTemplateBytesin interfaceTransformationConfigOrBuilder- Returns:
- The bytes for imageRedactTemplate.
-
setImageRedactTemplate
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;- Parameters:
value- The imageRedactTemplate to set.- Returns:
- 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:
- This builder for chaining.
-
setImageRedactTemplateBytes
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;- Parameters:
value- The bytes for imageRedactTemplate to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TransformationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
mergeUnknownFields
public final TransformationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
-