public final class FieldTransformation extends GeneratedMessageV3 implements FieldTransformationOrBuilder
The transformation to apply to the field.Protobuf type
google.privacy.dlp.v2beta2.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, unknownFieldsmemoizedSizememoizedHashCode| 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public FieldTransformation.TransformationCase getTransformationCase()
getTransformationCase in interface FieldTransformationOrBuilderpublic java.util.List<FieldId> getFieldsList()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2beta2.FieldId fields = 1;getFieldsList in interface FieldTransformationOrBuilderpublic java.util.List<? extends FieldIdOrBuilder> getFieldsOrBuilderList()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2beta2.FieldId fields = 1;getFieldsOrBuilderList in interface FieldTransformationOrBuilderpublic int getFieldsCount()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2beta2.FieldId fields = 1;getFieldsCount in interface FieldTransformationOrBuilderpublic FieldId getFields(int index)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2beta2.FieldId fields = 1;getFields in interface FieldTransformationOrBuilderpublic FieldIdOrBuilder getFieldsOrBuilder(int index)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2beta2.FieldId fields = 1;getFieldsOrBuilder in interface FieldTransformationOrBuilderpublic 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.v2beta2.RecordCondition condition = 3;hasCondition in interface FieldTransformationOrBuilderpublic 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.v2beta2.RecordCondition condition = 3;getCondition in interface FieldTransformationOrBuilderpublic 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.v2beta2.RecordCondition condition = 3;getConditionOrBuilder in interface FieldTransformationOrBuilderpublic boolean hasPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2beta2.PrimitiveTransformation primitive_transformation = 4;hasPrimitiveTransformation in interface FieldTransformationOrBuilderpublic PrimitiveTransformation getPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2beta2.PrimitiveTransformation primitive_transformation = 4;getPrimitiveTransformation in interface FieldTransformationOrBuilderpublic PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2beta2.PrimitiveTransformation primitive_transformation = 4;getPrimitiveTransformationOrBuilder in interface FieldTransformationOrBuilderpublic boolean hasInfoTypeTransformations()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2beta2.InfoTypeTransformations info_type_transformations = 5;hasInfoTypeTransformations in interface FieldTransformationOrBuilderpublic InfoTypeTransformations getInfoTypeTransformations()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2beta2.InfoTypeTransformations info_type_transformations = 5;getInfoTypeTransformations in interface FieldTransformationOrBuilderpublic InfoTypeTransformationsOrBuilder getInfoTypeTransformationsOrBuilder()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2beta2.InfoTypeTransformations info_type_transformations = 5;getInfoTypeTransformationsOrBuilder in interface FieldTransformationOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static FieldTransformation parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static FieldTransformation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static FieldTransformation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static FieldTransformation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static FieldTransformation parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static FieldTransformation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic FieldTransformation.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static FieldTransformation.Builder newBuilder()
public static FieldTransformation.Builder newBuilder(FieldTransformation prototype)
public FieldTransformation.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected FieldTransformation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static FieldTransformation getDefaultInstance()
public static Parser<FieldTransformation> parser()
public Parser<FieldTransformation> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public FieldTransformation getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder