Package com.google.privacy.dlp.v2
Class FieldTransformation
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.privacy.dlp.v2.FieldTransformation
-
- All Implemented Interfaces:
FieldTransformationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class FieldTransformation extends com.google.protobuf.GeneratedMessageV3 implements FieldTransformationOrBuilder
The transformation to apply to the field.
Protobuf typegoogle.privacy.dlp.v2.FieldTransformation- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFieldTransformation.BuilderThe transformation to apply to the field.static classFieldTransformation.TransformationCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONDITION_FIELD_NUMBERstatic intFIELDS_FIELD_NUMBERstatic intINFO_TYPE_TRANSFORMATIONS_FIELD_NUMBERstatic intPRIMITIVE_TRANSFORMATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)RecordConditiongetCondition()Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.RecordConditionOrBuildergetConditionOrBuilder()Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.static FieldTransformationgetDefaultInstance()FieldTransformationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()FieldIdgetFields(int index)Required.intgetFieldsCount()Required.List<FieldId>getFieldsList()Required.FieldIdOrBuildergetFieldsOrBuilder(int index)Required.List<? extends FieldIdOrBuilder>getFieldsOrBuilderList()Required.InfoTypeTransformationsgetInfoTypeTransformations()Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.InfoTypeTransformationsOrBuildergetInfoTypeTransformationsOrBuilder()Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.com.google.protobuf.Parser<FieldTransformation>getParserForType()PrimitiveTransformationgetPrimitiveTransformation()Apply the transformation to the entire field.PrimitiveTransformationOrBuildergetPrimitiveTransformationOrBuilder()Apply the transformation to the entire field.intgetSerializedSize()FieldTransformation.TransformationCasegetTransformationCase()booleanhasCondition()Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.inthashCode()booleanhasInfoTypeTransformations()Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.booleanhasPrimitiveTransformation()Apply the transformation to the entire field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static FieldTransformation.BuildernewBuilder()static FieldTransformation.BuildernewBuilder(FieldTransformation prototype)FieldTransformation.BuildernewBuilderForType()protected FieldTransformation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static FieldTransformationparseDelimitedFrom(InputStream input)static FieldTransformationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FieldTransformationparseFrom(byte[] data)static FieldTransformationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FieldTransformationparseFrom(com.google.protobuf.ByteString data)static FieldTransformationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FieldTransformationparseFrom(com.google.protobuf.CodedInputStream input)static FieldTransformationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FieldTransformationparseFrom(InputStream input)static FieldTransformationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FieldTransformationparseFrom(ByteBuffer data)static FieldTransformationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<FieldTransformation>parser()FieldTransformation.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FIELDS_FIELD_NUMBER
public static final int FIELDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONDITION_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIMITIVE_TRANSFORMATION_FIELD_NUMBER
public static final int PRIMITIVE_TRANSFORMATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INFO_TYPE_TRANSFORMATIONS_FIELD_NUMBER
public static final int INFO_TYPE_TRANSFORMATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTransformationCase
public FieldTransformation.TransformationCase getTransformationCase()
- Specified by:
getTransformationCasein interfaceFieldTransformationOrBuilder
-
getFieldsList
public List<FieldId> getFieldsList()
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFieldsListin interfaceFieldTransformationOrBuilder
-
getFieldsOrBuilderList
public List<? extends FieldIdOrBuilder> getFieldsOrBuilderList()
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFieldsOrBuilderListin interfaceFieldTransformationOrBuilder
-
getFieldsCount
public int getFieldsCount()
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFieldsCountin interfaceFieldTransformationOrBuilder
-
getFields
public FieldId getFields(int index)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFieldsin interfaceFieldTransformationOrBuilder
-
getFieldsOrBuilder
public FieldIdOrBuilder getFieldsOrBuilder(int index)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFieldsOrBuilderin interfaceFieldTransformationOrBuilder
-
hasCondition
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. 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;- Specified by:
hasConditionin interfaceFieldTransformationOrBuilder- Returns:
- Whether the condition field is set.
-
getCondition
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. 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;- Specified by:
getConditionin interfaceFieldTransformationOrBuilder- Returns:
- The condition.
-
getConditionOrBuilder
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. 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;- Specified by:
getConditionOrBuilderin interfaceFieldTransformationOrBuilder
-
hasPrimitiveTransformation
public boolean hasPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;- Specified by:
hasPrimitiveTransformationin interfaceFieldTransformationOrBuilder- Returns:
- Whether the primitiveTransformation field is set.
-
getPrimitiveTransformation
public PrimitiveTransformation getPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;- Specified by:
getPrimitiveTransformationin interfaceFieldTransformationOrBuilder- Returns:
- The primitiveTransformation.
-
getPrimitiveTransformationOrBuilder
public PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;- Specified by:
getPrimitiveTransformationOrBuilderin interfaceFieldTransformationOrBuilder
-
hasInfoTypeTransformations
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;- Specified by:
hasInfoTypeTransformationsin interfaceFieldTransformationOrBuilder- Returns:
- Whether the infoTypeTransformations field is set.
-
getInfoTypeTransformations
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;- Specified by:
getInfoTypeTransformationsin interfaceFieldTransformationOrBuilder- Returns:
- The infoTypeTransformations.
-
getInfoTypeTransformationsOrBuilder
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;- Specified by:
getInfoTypeTransformationsOrBuilderin interfaceFieldTransformationOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FieldTransformation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldTransformation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldTransformation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldTransformation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldTransformation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldTransformation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldTransformation parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FieldTransformation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FieldTransformation parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FieldTransformation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static FieldTransformation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FieldTransformation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public FieldTransformation.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static FieldTransformation.Builder newBuilder()
-
newBuilder
public static FieldTransformation.Builder newBuilder(FieldTransformation prototype)
-
toBuilder
public FieldTransformation.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FieldTransformation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static FieldTransformation getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<FieldTransformation> parser()
-
getParserForType
public com.google.protobuf.Parser<FieldTransformation> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public FieldTransformation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-