public final class FieldTransformation extends GeneratedMessageV3 implements FieldTransformationOrBuilder
The transformation to apply to the field.Protobuf type
google.privacy.dlp.v2.FieldTransformation
Modifier and Type | Class and Description |
---|---|
static class |
FieldTransformation.Builder
The transformation to apply to the field.
|
static class |
FieldTransformation.TransformationCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
CONDITION_FIELD_NUMBER |
static int |
FIELDS_FIELD_NUMBER |
static int |
INFO_TYPE_TRANSFORMATIONS_FIELD_NUMBER |
static int |
PRIMITIVE_TRANSFORMATION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
RecordCondition |
getCondition()
Only apply the transformation if the condition evaluates to true for the
given `RecordCondition`.
|
RecordConditionOrBuilder |
getConditionOrBuilder()
Only apply the transformation if the condition evaluates to true for the
given `RecordCondition`.
|
static FieldTransformation |
getDefaultInstance() |
FieldTransformation |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
FieldId |
getFields(int index)
Input field(s) to apply the transformation to.
|
int |
getFieldsCount()
Input field(s) to apply the transformation to.
|
java.util.List<FieldId> |
getFieldsList()
Input field(s) to apply the transformation to.
|
FieldIdOrBuilder |
getFieldsOrBuilder(int index)
Input field(s) to apply the transformation to.
|
java.util.List<? extends FieldIdOrBuilder> |
getFieldsOrBuilderList()
Input field(s) to apply the transformation to.
|
InfoTypeTransformations |
getInfoTypeTransformations()
Treat the contents of the field as free text, and selectively
transform content that matches an `InfoType`.
|
InfoTypeTransformationsOrBuilder |
getInfoTypeTransformationsOrBuilder()
Treat the contents of the field as free text, and selectively
transform content that matches an `InfoType`.
|
Parser<FieldTransformation> |
getParserForType() |
PrimitiveTransformation |
getPrimitiveTransformation()
Apply the transformation to the entire field.
|
PrimitiveTransformationOrBuilder |
getPrimitiveTransformationOrBuilder()
Apply the transformation to the entire field.
|
int |
getSerializedSize() |
FieldTransformation.TransformationCase |
getTransformationCase() |
UnknownFieldSet |
getUnknownFields() |
boolean |
hasCondition()
Only apply the transformation if the condition evaluates to true for the
given `RecordCondition`.
|
int |
hashCode() |
boolean |
hasInfoTypeTransformations()
Treat the contents of the field as free text, and selectively
transform content that matches an `InfoType`.
|
boolean |
hasPrimitiveTransformation()
Apply the transformation to the entire field.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static FieldTransformation.Builder |
newBuilder() |
static FieldTransformation.Builder |
newBuilder(FieldTransformation prototype) |
FieldTransformation.Builder |
newBuilderForType() |
protected FieldTransformation.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static FieldTransformation |
parseDelimitedFrom(java.io.InputStream input) |
static FieldTransformation |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static FieldTransformation |
parseFrom(byte[] data) |
static FieldTransformation |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static FieldTransformation |
parseFrom(java.nio.ByteBuffer data) |
static FieldTransformation |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static FieldTransformation |
parseFrom(ByteString data) |
static FieldTransformation |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static FieldTransformation |
parseFrom(CodedInputStream input) |
static FieldTransformation |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static FieldTransformation |
parseFrom(java.io.InputStream input) |
static FieldTransformation |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<FieldTransformation> |
parser() |
FieldTransformation.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int FIELDS_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER
public static final int PRIMITIVE_TRANSFORMATION_FIELD_NUMBER
public static final int INFO_TYPE_TRANSFORMATIONS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public FieldTransformation.TransformationCase getTransformationCase()
getTransformationCase
in interface FieldTransformationOrBuilder
public java.util.List<FieldId> getFieldsList()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;
getFieldsList
in interface FieldTransformationOrBuilder
public java.util.List<? extends FieldIdOrBuilder> getFieldsOrBuilderList()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;
getFieldsOrBuilderList
in interface FieldTransformationOrBuilder
public int getFieldsCount()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;
getFieldsCount
in interface FieldTransformationOrBuilder
public FieldId getFields(int index)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;
getFields
in interface FieldTransformationOrBuilder
public FieldIdOrBuilder getFieldsOrBuilder(int index)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;
getFieldsOrBuilder
in interface FieldTransformationOrBuilder
public boolean hasCondition()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. [optional] Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
hasCondition
in interface FieldTransformationOrBuilder
public RecordCondition getCondition()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. [optional] Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
getCondition
in interface FieldTransformationOrBuilder
public RecordConditionOrBuilder getConditionOrBuilder()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. [optional] Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
getConditionOrBuilder
in interface FieldTransformationOrBuilder
public boolean hasPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
hasPrimitiveTransformation
in interface FieldTransformationOrBuilder
public PrimitiveTransformation getPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
getPrimitiveTransformation
in interface FieldTransformationOrBuilder
public PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
getPrimitiveTransformationOrBuilder
in interface FieldTransformationOrBuilder
public boolean hasInfoTypeTransformations()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
hasInfoTypeTransformations
in interface FieldTransformationOrBuilder
public InfoTypeTransformations getInfoTypeTransformations()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
getInfoTypeTransformations
in interface FieldTransformationOrBuilder
public InfoTypeTransformationsOrBuilder getInfoTypeTransformationsOrBuilder()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
getInfoTypeTransformationsOrBuilder
in interface FieldTransformationOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static FieldTransformation parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FieldTransformation parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FieldTransformation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FieldTransformation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FieldTransformation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FieldTransformation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FieldTransformation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static FieldTransformation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static FieldTransformation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static FieldTransformation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static FieldTransformation parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static FieldTransformation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public FieldTransformation.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static FieldTransformation.Builder newBuilder()
public static FieldTransformation.Builder newBuilder(FieldTransformation prototype)
public FieldTransformation.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected FieldTransformation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static FieldTransformation getDefaultInstance()
public static Parser<FieldTransformation> parser()
public Parser<FieldTransformation> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public FieldTransformation getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder