Class RedactConfig.Builder (3.27.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RedactConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RedactConfig.Builder
Overrides

build()

public RedactConfig build()
Returns
TypeDescription
RedactConfig

buildPartial()

public RedactConfig buildPartial()
Returns
TypeDescription
RedactConfig

clear()

public RedactConfig.Builder clear()
Returns
TypeDescription
RedactConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RedactConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RedactConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RedactConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RedactConfig.Builder
Overrides

clone()

public RedactConfig.Builder clone()
Returns
TypeDescription
RedactConfig.Builder
Overrides

getDefaultInstanceForType()

public RedactConfig getDefaultInstanceForType()
Returns
TypeDescription
RedactConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RedactConfig other)

public RedactConfig.Builder mergeFrom(RedactConfig other)
Parameter
NameDescription
otherRedactConfig
Returns
TypeDescription
RedactConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RedactConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RedactConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RedactConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RedactConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RedactConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RedactConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RedactConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RedactConfig.Builder
Overrides

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

public RedactConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RedactConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RedactConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RedactConfig.Builder
Overrides