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.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(TransformationConfig other)
TransformationConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TransformationConfig.Builder
mergeFrom(com.google.protobuf.Message 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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
clear
public TransformationConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
getDefaultInstanceForType
public TransformationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransformationConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransformationConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransformationConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
setField
public TransformationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
clearField
public TransformationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
clearOneof
public TransformationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
setRepeatedField
public TransformationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
addRepeatedField
public TransformationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
mergeFrom
public TransformationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TransformationConfig.Builder>
-
mergeFrom
public TransformationConfig.Builder mergeFrom(TransformationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getDeidentifyTemplate
in 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:
getDeidentifyTemplateBytes
in 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:
getStructuredDeidentifyTemplate
in 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:
getStructuredDeidentifyTemplateBytes
in 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:
getImageRedactTemplate
in 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:
getImageRedactTemplateBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
mergeUnknownFields
public final TransformationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationConfig.Builder>
-
-