Class CharsToIgnore.Builder (3.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CharsToIgnore build()
Returns
TypeDescription
CharsToIgnore

buildPartial()

public CharsToIgnore buildPartial()
Returns
TypeDescription
CharsToIgnore

clear()

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

clearCharacters()

public CharsToIgnore.Builder clearCharacters()
Returns
TypeDescription
CharsToIgnore.Builder

clearCharactersToSkip()

public CharsToIgnore.Builder clearCharactersToSkip()

Characters to not transform when masking.

string characters_to_skip = 1;

Returns
TypeDescription
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
TypeDescription
CharsToIgnore.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCharactersCase()

public CharsToIgnore.CharactersCase getCharactersCase()
Returns
TypeDescription
CharsToIgnore.CharactersCase

getCharactersToSkip()

public String getCharactersToSkip()

Characters to not transform when masking.

string characters_to_skip = 1;

Returns
TypeDescription
String

The charactersToSkip.

getCharactersToSkipBytes()

public ByteString getCharactersToSkipBytes()

Characters to not transform when masking.

string characters_to_skip = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for commonCharactersToIgnore.

getDefaultInstanceForType()

public CharsToIgnore getDefaultInstanceForType()
Returns
TypeDescription
CharsToIgnore

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasCharactersToSkip()

public boolean hasCharactersToSkip()

Characters to not transform when masking.

string characters_to_skip = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the commonCharactersToIgnore field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CharsToIgnore other)

public CharsToIgnore.Builder mergeFrom(CharsToIgnore other)
Parameter
NameDescription
otherCharsToIgnore
Returns
TypeDescription
CharsToIgnore.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCharactersToSkip(String value)

public CharsToIgnore.Builder setCharactersToSkip(String value)

Characters to not transform when masking.

string characters_to_skip = 1;

Parameter
NameDescription
valueString

The charactersToSkip to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for charactersToSkip to set.

Returns
TypeDescription
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
NameDescription
valueCharsToIgnore.CommonCharsToIgnore

The commonCharactersToIgnore to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
CharsToIgnore.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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