Class PrimitiveTransformation (3.41.0)

public final class PrimitiveTransformation extends GeneratedMessageV3 implements PrimitiveTransformationOrBuilder

A rule for transforming a value.

Protobuf type google.privacy.dlp.v2.PrimitiveTransformation

Static Fields

BUCKETING_CONFIG_FIELD_NUMBER

public static final int BUCKETING_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

CHARACTER_MASK_CONFIG_FIELD_NUMBER

public static final int CHARACTER_MASK_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

CRYPTO_DETERMINISTIC_CONFIG_FIELD_NUMBER

public static final int CRYPTO_DETERMINISTIC_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

CRYPTO_HASH_CONFIG_FIELD_NUMBER

public static final int CRYPTO_HASH_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

CRYPTO_REPLACE_FFX_FPE_CONFIG_FIELD_NUMBER

public static final int CRYPTO_REPLACE_FFX_FPE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

DATE_SHIFT_CONFIG_FIELD_NUMBER

public static final int DATE_SHIFT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

FIXED_SIZE_BUCKETING_CONFIG_FIELD_NUMBER

public static final int FIXED_SIZE_BUCKETING_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

REDACT_CONFIG_FIELD_NUMBER

public static final int REDACT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

REPLACE_CONFIG_FIELD_NUMBER

public static final int REPLACE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

REPLACE_DICTIONARY_CONFIG_FIELD_NUMBER

public static final int REPLACE_DICTIONARY_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

REPLACE_WITH_INFO_TYPE_CONFIG_FIELD_NUMBER

public static final int REPLACE_WITH_INFO_TYPE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

TIME_PART_CONFIG_FIELD_NUMBER

public static final int TIME_PART_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PrimitiveTransformation getDefaultInstance()
Returns
TypeDescription
PrimitiveTransformation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PrimitiveTransformation.Builder newBuilder()
Returns
TypeDescription
PrimitiveTransformation.Builder

newBuilder(PrimitiveTransformation prototype)

public static PrimitiveTransformation.Builder newBuilder(PrimitiveTransformation prototype)
Parameter
NameDescription
prototypePrimitiveTransformation
Returns
TypeDescription
PrimitiveTransformation.Builder

parseDelimitedFrom(InputStream input)

public static PrimitiveTransformation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PrimitiveTransformation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PrimitiveTransformation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PrimitiveTransformation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PrimitiveTransformation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PrimitiveTransformation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrimitiveTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PrimitiveTransformation> parser()
Returns
TypeDescription
Parser<PrimitiveTransformation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBucketingConfig()

public BucketingConfig getBucketingConfig()

Bucketing

.google.privacy.dlp.v2.BucketingConfig bucketing_config = 6;

Returns
TypeDescription
BucketingConfig

The bucketingConfig.

getBucketingConfigOrBuilder()

public BucketingConfigOrBuilder getBucketingConfigOrBuilder()

Bucketing

.google.privacy.dlp.v2.BucketingConfig bucketing_config = 6;

Returns
TypeDescription
BucketingConfigOrBuilder

getCharacterMaskConfig()

public CharacterMaskConfig getCharacterMaskConfig()

Mask

.google.privacy.dlp.v2.CharacterMaskConfig character_mask_config = 3;

Returns
TypeDescription
CharacterMaskConfig

The characterMaskConfig.

getCharacterMaskConfigOrBuilder()

public CharacterMaskConfigOrBuilder getCharacterMaskConfigOrBuilder()

Mask

.google.privacy.dlp.v2.CharacterMaskConfig character_mask_config = 3;

Returns
TypeDescription
CharacterMaskConfigOrBuilder

getCryptoDeterministicConfig()

public CryptoDeterministicConfig getCryptoDeterministicConfig()

Deterministic Crypto

.google.privacy.dlp.v2.CryptoDeterministicConfig crypto_deterministic_config = 12;

Returns
TypeDescription
CryptoDeterministicConfig

The cryptoDeterministicConfig.

getCryptoDeterministicConfigOrBuilder()

public CryptoDeterministicConfigOrBuilder getCryptoDeterministicConfigOrBuilder()

Deterministic Crypto

.google.privacy.dlp.v2.CryptoDeterministicConfig crypto_deterministic_config = 12;

Returns
TypeDescription
CryptoDeterministicConfigOrBuilder

getCryptoHashConfig()

public CryptoHashConfig getCryptoHashConfig()

Crypto

.google.privacy.dlp.v2.CryptoHashConfig crypto_hash_config = 9;

Returns
TypeDescription
CryptoHashConfig

The cryptoHashConfig.

getCryptoHashConfigOrBuilder()

public CryptoHashConfigOrBuilder getCryptoHashConfigOrBuilder()

Crypto

.google.privacy.dlp.v2.CryptoHashConfig crypto_hash_config = 9;

Returns
TypeDescription
CryptoHashConfigOrBuilder

getCryptoReplaceFfxFpeConfig()

public CryptoReplaceFfxFpeConfig getCryptoReplaceFfxFpeConfig()

Ffx-Fpe

.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;

Returns
TypeDescription
CryptoReplaceFfxFpeConfig

The cryptoReplaceFfxFpeConfig.

getCryptoReplaceFfxFpeConfigOrBuilder()

public CryptoReplaceFfxFpeConfigOrBuilder getCryptoReplaceFfxFpeConfigOrBuilder()

Ffx-Fpe

.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;

Returns
TypeDescription
CryptoReplaceFfxFpeConfigOrBuilder

getDateShiftConfig()

public DateShiftConfig getDateShiftConfig()

Date Shift

.google.privacy.dlp.v2.DateShiftConfig date_shift_config = 11;

Returns
TypeDescription
DateShiftConfig

The dateShiftConfig.

getDateShiftConfigOrBuilder()

public DateShiftConfigOrBuilder getDateShiftConfigOrBuilder()

Date Shift

.google.privacy.dlp.v2.DateShiftConfig date_shift_config = 11;

Returns
TypeDescription
DateShiftConfigOrBuilder

getDefaultInstanceForType()

public PrimitiveTransformation getDefaultInstanceForType()
Returns
TypeDescription
PrimitiveTransformation

getFixedSizeBucketingConfig()

public FixedSizeBucketingConfig getFixedSizeBucketingConfig()

Fixed size bucketing

.google.privacy.dlp.v2.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;

Returns
TypeDescription
FixedSizeBucketingConfig

The fixedSizeBucketingConfig.

getFixedSizeBucketingConfigOrBuilder()

public FixedSizeBucketingConfigOrBuilder getFixedSizeBucketingConfigOrBuilder()

Fixed size bucketing

.google.privacy.dlp.v2.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;

Returns
TypeDescription
FixedSizeBucketingConfigOrBuilder

getParserForType()

public Parser<PrimitiveTransformation> getParserForType()
Returns
TypeDescription
Parser<PrimitiveTransformation>
Overrides

getRedactConfig()

public RedactConfig getRedactConfig()

Redact

.google.privacy.dlp.v2.RedactConfig redact_config = 2;

Returns
TypeDescription
RedactConfig

The redactConfig.

getRedactConfigOrBuilder()

public RedactConfigOrBuilder getRedactConfigOrBuilder()

Redact

.google.privacy.dlp.v2.RedactConfig redact_config = 2;

Returns
TypeDescription
RedactConfigOrBuilder

getReplaceConfig()

public ReplaceValueConfig getReplaceConfig()

Replace with a specified value.

.google.privacy.dlp.v2.ReplaceValueConfig replace_config = 1;

Returns
TypeDescription
ReplaceValueConfig

The replaceConfig.

getReplaceConfigOrBuilder()

public ReplaceValueConfigOrBuilder getReplaceConfigOrBuilder()

Replace with a specified value.

.google.privacy.dlp.v2.ReplaceValueConfig replace_config = 1;

Returns
TypeDescription
ReplaceValueConfigOrBuilder

getReplaceDictionaryConfig()

public ReplaceDictionaryConfig getReplaceDictionaryConfig()

Replace with a value randomly drawn (with replacement) from a dictionary.

.google.privacy.dlp.v2.ReplaceDictionaryConfig replace_dictionary_config = 13;

Returns
TypeDescription
ReplaceDictionaryConfig

The replaceDictionaryConfig.

getReplaceDictionaryConfigOrBuilder()

public ReplaceDictionaryConfigOrBuilder getReplaceDictionaryConfigOrBuilder()

Replace with a value randomly drawn (with replacement) from a dictionary.

.google.privacy.dlp.v2.ReplaceDictionaryConfig replace_dictionary_config = 13;

Returns
TypeDescription
ReplaceDictionaryConfigOrBuilder

getReplaceWithInfoTypeConfig()

public ReplaceWithInfoTypeConfig getReplaceWithInfoTypeConfig()

Replace with infotype

.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;

Returns
TypeDescription
ReplaceWithInfoTypeConfig

The replaceWithInfoTypeConfig.

getReplaceWithInfoTypeConfigOrBuilder()

public ReplaceWithInfoTypeConfigOrBuilder getReplaceWithInfoTypeConfigOrBuilder()

Replace with infotype

.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;

Returns
TypeDescription
ReplaceWithInfoTypeConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTimePartConfig()

public TimePartConfig getTimePartConfig()

Time extraction

.google.privacy.dlp.v2.TimePartConfig time_part_config = 8;

Returns
TypeDescription
TimePartConfig

The timePartConfig.

getTimePartConfigOrBuilder()

public TimePartConfigOrBuilder getTimePartConfigOrBuilder()

Time extraction

.google.privacy.dlp.v2.TimePartConfig time_part_config = 8;

Returns
TypeDescription
TimePartConfigOrBuilder

getTransformationCase()

public PrimitiveTransformation.TransformationCase getTransformationCase()
Returns
TypeDescription
PrimitiveTransformation.TransformationCase

hasBucketingConfig()

public boolean hasBucketingConfig()

Bucketing

.google.privacy.dlp.v2.BucketingConfig bucketing_config = 6;

Returns
TypeDescription
boolean

Whether the bucketingConfig field is set.

hasCharacterMaskConfig()

public boolean hasCharacterMaskConfig()

Mask

.google.privacy.dlp.v2.CharacterMaskConfig character_mask_config = 3;

Returns
TypeDescription
boolean

Whether the characterMaskConfig field is set.

hasCryptoDeterministicConfig()

public boolean hasCryptoDeterministicConfig()

Deterministic Crypto

.google.privacy.dlp.v2.CryptoDeterministicConfig crypto_deterministic_config = 12;

Returns
TypeDescription
boolean

Whether the cryptoDeterministicConfig field is set.

hasCryptoHashConfig()

public boolean hasCryptoHashConfig()

Crypto

.google.privacy.dlp.v2.CryptoHashConfig crypto_hash_config = 9;

Returns
TypeDescription
boolean

Whether the cryptoHashConfig field is set.

hasCryptoReplaceFfxFpeConfig()

public boolean hasCryptoReplaceFfxFpeConfig()

Ffx-Fpe

.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;

Returns
TypeDescription
boolean

Whether the cryptoReplaceFfxFpeConfig field is set.

hasDateShiftConfig()

public boolean hasDateShiftConfig()

Date Shift

.google.privacy.dlp.v2.DateShiftConfig date_shift_config = 11;

Returns
TypeDescription
boolean

Whether the dateShiftConfig field is set.

hasFixedSizeBucketingConfig()

public boolean hasFixedSizeBucketingConfig()

Fixed size bucketing

.google.privacy.dlp.v2.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;

Returns
TypeDescription
boolean

Whether the fixedSizeBucketingConfig field is set.

hasRedactConfig()

public boolean hasRedactConfig()

Redact

.google.privacy.dlp.v2.RedactConfig redact_config = 2;

Returns
TypeDescription
boolean

Whether the redactConfig field is set.

hasReplaceConfig()

public boolean hasReplaceConfig()

Replace with a specified value.

.google.privacy.dlp.v2.ReplaceValueConfig replace_config = 1;

Returns
TypeDescription
boolean

Whether the replaceConfig field is set.

hasReplaceDictionaryConfig()

public boolean hasReplaceDictionaryConfig()

Replace with a value randomly drawn (with replacement) from a dictionary.

.google.privacy.dlp.v2.ReplaceDictionaryConfig replace_dictionary_config = 13;

Returns
TypeDescription
boolean

Whether the replaceDictionaryConfig field is set.

hasReplaceWithInfoTypeConfig()

public boolean hasReplaceWithInfoTypeConfig()

Replace with infotype

.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;

Returns
TypeDescription
boolean

Whether the replaceWithInfoTypeConfig field is set.

hasTimePartConfig()

public boolean hasTimePartConfig()

Time extraction

.google.privacy.dlp.v2.TimePartConfig time_part_config = 8;

Returns
TypeDescription
boolean

Whether the timePartConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PrimitiveTransformation.Builder newBuilderForType()
Returns
TypeDescription
PrimitiveTransformation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PrimitiveTransformation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PrimitiveTransformation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PrimitiveTransformation.Builder toBuilder()
Returns
TypeDescription
PrimitiveTransformation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException