Class PrimitiveTransformation (3.48.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
Type Description
int

CHARACTER_MASK_CONFIG_FIELD_NUMBER

public static final int CHARACTER_MASK_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

CRYPTO_DETERMINISTIC_CONFIG_FIELD_NUMBER

public static final int CRYPTO_DETERMINISTIC_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

CRYPTO_HASH_CONFIG_FIELD_NUMBER

public static final int CRYPTO_HASH_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

CRYPTO_REPLACE_FFX_FPE_CONFIG_FIELD_NUMBER

public static final int CRYPTO_REPLACE_FFX_FPE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

DATE_SHIFT_CONFIG_FIELD_NUMBER

public static final int DATE_SHIFT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

FIXED_SIZE_BUCKETING_CONFIG_FIELD_NUMBER

public static final int FIXED_SIZE_BUCKETING_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

REDACT_CONFIG_FIELD_NUMBER

public static final int REDACT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

REPLACE_CONFIG_FIELD_NUMBER

public static final int REPLACE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

REPLACE_DICTIONARY_CONFIG_FIELD_NUMBER

public static final int REPLACE_DICTIONARY_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

REPLACE_WITH_INFO_TYPE_CONFIG_FIELD_NUMBER

public static final int REPLACE_WITH_INFO_TYPE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

TIME_PART_CONFIG_FIELD_NUMBER

public static final int TIME_PART_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PrimitiveTransformation getDefaultInstance()
Returns
Type Description
PrimitiveTransformation

getDescriptor()

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

newBuilder()

public static PrimitiveTransformation.Builder newBuilder()
Returns
Type Description
PrimitiveTransformation.Builder

newBuilder(PrimitiveTransformation prototype)

public static PrimitiveTransformation.Builder newBuilder(PrimitiveTransformation prototype)
Parameter
Name Description
prototype PrimitiveTransformation
Returns
Type Description
PrimitiveTransformation.Builder

parseDelimitedFrom(InputStream input)

public static PrimitiveTransformation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PrimitiveTransformation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PrimitiveTransformation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PrimitiveTransformation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PrimitiveTransformation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PrimitiveTransformation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PrimitiveTransformation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimitiveTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PrimitiveTransformation> parser()
Returns
Type Description
Parser<PrimitiveTransformation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBucketingConfig()

public BucketingConfig getBucketingConfig()

Bucketing

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

Returns
Type Description
BucketingConfig

The bucketingConfig.

getBucketingConfigOrBuilder()

public BucketingConfigOrBuilder getBucketingConfigOrBuilder()

Bucketing

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

Returns
Type Description
BucketingConfigOrBuilder

getCharacterMaskConfig()

public CharacterMaskConfig getCharacterMaskConfig()

Mask

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

Returns
Type Description
CharacterMaskConfig

The characterMaskConfig.

getCharacterMaskConfigOrBuilder()

public CharacterMaskConfigOrBuilder getCharacterMaskConfigOrBuilder()

Mask

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

Returns
Type Description
CharacterMaskConfigOrBuilder

getCryptoDeterministicConfig()

public CryptoDeterministicConfig getCryptoDeterministicConfig()

Deterministic Crypto

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

Returns
Type Description
CryptoDeterministicConfig

The cryptoDeterministicConfig.

getCryptoDeterministicConfigOrBuilder()

public CryptoDeterministicConfigOrBuilder getCryptoDeterministicConfigOrBuilder()

Deterministic Crypto

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

Returns
Type Description
CryptoDeterministicConfigOrBuilder

getCryptoHashConfig()

public CryptoHashConfig getCryptoHashConfig()

Crypto

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

Returns
Type Description
CryptoHashConfig

The cryptoHashConfig.

getCryptoHashConfigOrBuilder()

public CryptoHashConfigOrBuilder getCryptoHashConfigOrBuilder()

Crypto

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

Returns
Type Description
CryptoHashConfigOrBuilder

getCryptoReplaceFfxFpeConfig()

public CryptoReplaceFfxFpeConfig getCryptoReplaceFfxFpeConfig()

Ffx-Fpe

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

Returns
Type Description
CryptoReplaceFfxFpeConfig

The cryptoReplaceFfxFpeConfig.

getCryptoReplaceFfxFpeConfigOrBuilder()

public CryptoReplaceFfxFpeConfigOrBuilder getCryptoReplaceFfxFpeConfigOrBuilder()

Ffx-Fpe

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

Returns
Type Description
CryptoReplaceFfxFpeConfigOrBuilder

getDateShiftConfig()

public DateShiftConfig getDateShiftConfig()

Date Shift

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

Returns
Type Description
DateShiftConfig

The dateShiftConfig.

getDateShiftConfigOrBuilder()

public DateShiftConfigOrBuilder getDateShiftConfigOrBuilder()

Date Shift

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

Returns
Type Description
DateShiftConfigOrBuilder

getDefaultInstanceForType()

public PrimitiveTransformation getDefaultInstanceForType()
Returns
Type Description
PrimitiveTransformation

getFixedSizeBucketingConfig()

public FixedSizeBucketingConfig getFixedSizeBucketingConfig()

Fixed size bucketing

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

Returns
Type Description
FixedSizeBucketingConfig

The fixedSizeBucketingConfig.

getFixedSizeBucketingConfigOrBuilder()

public FixedSizeBucketingConfigOrBuilder getFixedSizeBucketingConfigOrBuilder()

Fixed size bucketing

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

Returns
Type Description
FixedSizeBucketingConfigOrBuilder

getParserForType()

public Parser<PrimitiveTransformation> getParserForType()
Returns
Type Description
Parser<PrimitiveTransformation>
Overrides

getRedactConfig()

public RedactConfig getRedactConfig()

Redact

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

Returns
Type Description
RedactConfig

The redactConfig.

getRedactConfigOrBuilder()

public RedactConfigOrBuilder getRedactConfigOrBuilder()

Redact

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

Returns
Type Description
RedactConfigOrBuilder

getReplaceConfig()

public ReplaceValueConfig getReplaceConfig()

Replace with a specified value.

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

Returns
Type Description
ReplaceValueConfig

The replaceConfig.

getReplaceConfigOrBuilder()

public ReplaceValueConfigOrBuilder getReplaceConfigOrBuilder()

Replace with a specified value.

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

Returns
Type Description
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
Type Description
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
Type Description
ReplaceDictionaryConfigOrBuilder

getReplaceWithInfoTypeConfig()

public ReplaceWithInfoTypeConfig getReplaceWithInfoTypeConfig()

Replace with infotype

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

Returns
Type Description
ReplaceWithInfoTypeConfig

The replaceWithInfoTypeConfig.

getReplaceWithInfoTypeConfigOrBuilder()

public ReplaceWithInfoTypeConfigOrBuilder getReplaceWithInfoTypeConfigOrBuilder()

Replace with infotype

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

Returns
Type Description
ReplaceWithInfoTypeConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTimePartConfig()

public TimePartConfig getTimePartConfig()

Time extraction

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

Returns
Type Description
TimePartConfig

The timePartConfig.

getTimePartConfigOrBuilder()

public TimePartConfigOrBuilder getTimePartConfigOrBuilder()

Time extraction

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

Returns
Type Description
TimePartConfigOrBuilder

getTransformationCase()

public PrimitiveTransformation.TransformationCase getTransformationCase()
Returns
Type Description
PrimitiveTransformation.TransformationCase

hasBucketingConfig()

public boolean hasBucketingConfig()

Bucketing

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

Returns
Type Description
boolean

Whether the bucketingConfig field is set.

hasCharacterMaskConfig()

public boolean hasCharacterMaskConfig()

Mask

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

Returns
Type Description
boolean

Whether the characterMaskConfig field is set.

hasCryptoDeterministicConfig()

public boolean hasCryptoDeterministicConfig()

Deterministic Crypto

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

Returns
Type Description
boolean

Whether the cryptoDeterministicConfig field is set.

hasCryptoHashConfig()

public boolean hasCryptoHashConfig()

Crypto

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

Returns
Type Description
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
Type Description
boolean

Whether the cryptoReplaceFfxFpeConfig field is set.

hasDateShiftConfig()

public boolean hasDateShiftConfig()

Date Shift

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

Returns
Type Description
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
Type Description
boolean

Whether the fixedSizeBucketingConfig field is set.

hasRedactConfig()

public boolean hasRedactConfig()

Redact

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the replaceWithInfoTypeConfig field is set.

hasTimePartConfig()

public boolean hasTimePartConfig()

Time extraction

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

Returns
Type Description
boolean

Whether the timePartConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PrimitiveTransformation.Builder newBuilderForType()
Returns
Type Description
PrimitiveTransformation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PrimitiveTransformation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PrimitiveTransformation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PrimitiveTransformation.Builder toBuilder()
Returns
Type Description
PrimitiveTransformation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException