Class CharsToIgnore.Builder (3.58.0)

public static final class CharsToIgnore.Builder extends GeneratedMessageV3.Builder<CharsToIgnore.Builder> implements CharsToIgnoreOrBuilder

Characters to skip when doing deidentification of a value. These will be left alone and skipped.

Protobuf type google.privacy.dlp.v2.CharsToIgnore

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CharsToIgnore build()
Returns
Type Description
CharsToIgnore

buildPartial()

public CharsToIgnore buildPartial()
Returns
Type Description
CharsToIgnore

clear()

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

clearCharacters()

public CharsToIgnore.Builder clearCharacters()
Returns
Type Description
CharsToIgnore.Builder

clearCharactersToSkip()

public CharsToIgnore.Builder clearCharactersToSkip()

Characters to not transform when masking.

string characters_to_skip = 1;

Returns
Type Description
CharsToIgnore.Builder

This builder for chaining.

clearCommonCharactersToIgnore()

public CharsToIgnore.Builder clearCommonCharactersToIgnore()

Common characters to not transform when masking. Useful to avoid removing punctuation.

.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2;

Returns
Type Description
CharsToIgnore.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCharactersCase()

public CharsToIgnore.CharactersCase getCharactersCase()
Returns
Type Description
CharsToIgnore.CharactersCase

getCharactersToSkip()

public String getCharactersToSkip()

Characters to not transform when masking.

string characters_to_skip = 1;

Returns
Type Description
String

The charactersToSkip.

getCharactersToSkipBytes()

public ByteString getCharactersToSkipBytes()

Characters to not transform when masking.

string characters_to_skip = 1;

Returns
Type Description
ByteString

The bytes for charactersToSkip.

getCommonCharactersToIgnore()

public CharsToIgnore.CommonCharsToIgnore getCommonCharactersToIgnore()

Common characters to not transform when masking. Useful to avoid removing punctuation.

.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2;

Returns
Type Description
CharsToIgnore.CommonCharsToIgnore

The commonCharactersToIgnore.

getCommonCharactersToIgnoreValue()

public int getCommonCharactersToIgnoreValue()

Common characters to not transform when masking. Useful to avoid removing punctuation.

.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2;

Returns
Type Description
int

The enum numeric value on the wire for commonCharactersToIgnore.

getDefaultInstanceForType()

public CharsToIgnore getDefaultInstanceForType()
Returns
Type Description
CharsToIgnore

getDescriptorForType()

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

hasCharactersToSkip()

public boolean hasCharactersToSkip()

Characters to not transform when masking.

string characters_to_skip = 1;

Returns
Type Description
boolean

Whether the charactersToSkip field is set.

hasCommonCharactersToIgnore()

public boolean hasCommonCharactersToIgnore()

Common characters to not transform when masking. Useful to avoid removing punctuation.

.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2;

Returns
Type Description
boolean

Whether the commonCharactersToIgnore field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CharsToIgnore other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCharactersToSkip(String value)

public CharsToIgnore.Builder setCharactersToSkip(String value)

Characters to not transform when masking.

string characters_to_skip = 1;

Parameter
Name Description
value String

The charactersToSkip to set.

Returns
Type Description
CharsToIgnore.Builder

This builder for chaining.

setCharactersToSkipBytes(ByteString value)

public CharsToIgnore.Builder setCharactersToSkipBytes(ByteString value)

Characters to not transform when masking.

string characters_to_skip = 1;

Parameter
Name Description
value ByteString

The bytes for charactersToSkip to set.

Returns
Type Description
CharsToIgnore.Builder

This builder for chaining.

setCommonCharactersToIgnore(CharsToIgnore.CommonCharsToIgnore value)

public CharsToIgnore.Builder setCommonCharactersToIgnore(CharsToIgnore.CommonCharsToIgnore value)

Common characters to not transform when masking. Useful to avoid removing punctuation.

.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2;

Parameter
Name Description
value CharsToIgnore.CommonCharsToIgnore

The commonCharactersToIgnore to set.

Returns
Type Description
CharsToIgnore.Builder

This builder for chaining.

setCommonCharactersToIgnoreValue(int value)

public CharsToIgnore.Builder setCommonCharactersToIgnoreValue(int value)

Common characters to not transform when masking. Useful to avoid removing punctuation.

.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for commonCharactersToIgnore to set.

Returns
Type Description
CharsToIgnore.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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