Class RedactConfig.Builder (3.56.0)

public static final class RedactConfig.Builder extends GeneratedMessageV3.Builder<RedactConfig.Builder> implements RedactConfigOrBuilder

Redact a given value. For example, if used with an InfoTypeTransformation transforming PHONE_NUMBER, and input 'My phone number is 206-555-0123', the output would be 'My phone number is '.

Protobuf type google.privacy.dlp.v2.RedactConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RedactConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RedactConfig.Builder
Overrides

build()

public RedactConfig build()
Returns
Type Description
RedactConfig

buildPartial()

public RedactConfig buildPartial()
Returns
Type Description
RedactConfig

clear()

public RedactConfig.Builder clear()
Returns
Type Description
RedactConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RedactConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RedactConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RedactConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RedactConfig.Builder
Overrides

clone()

public RedactConfig.Builder clone()
Returns
Type Description
RedactConfig.Builder
Overrides

getDefaultInstanceForType()

public RedactConfig getDefaultInstanceForType()
Returns
Type Description
RedactConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RedactConfig other)

public RedactConfig.Builder mergeFrom(RedactConfig other)
Parameter
Name Description
other RedactConfig
Returns
Type Description
RedactConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RedactConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RedactConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RedactConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RedactConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RedactConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RedactConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RedactConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RedactConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RedactConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RedactConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RedactConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RedactConfig.Builder
Overrides