public final class FieldTransformation extends com.google.protobuf.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 |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
FieldId |
getFields(int index)
Required.
|
int |
getFieldsCount()
Required.
|
List<FieldId> |
getFieldsList()
Required.
|
FieldIdOrBuilder |
getFieldsOrBuilder(int index)
Required.
|
List<? extends FieldIdOrBuilder> |
getFieldsOrBuilderList()
Required.
|
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`.
|
com.google.protobuf.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() |
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static FieldTransformation.Builder |
newBuilder() |
static FieldTransformation.Builder |
newBuilder(FieldTransformation prototype) |
FieldTransformation.Builder |
newBuilderForType() |
protected FieldTransformation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static FieldTransformation |
parseDelimitedFrom(InputStream input) |
static FieldTransformation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FieldTransformation |
parseFrom(byte[] data) |
static FieldTransformation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FieldTransformation |
parseFrom(ByteBuffer data) |
static FieldTransformation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FieldTransformation |
parseFrom(com.google.protobuf.ByteString data) |
static FieldTransformation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FieldTransformation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static FieldTransformation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FieldTransformation |
parseFrom(InputStream input) |
static FieldTransformation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<FieldTransformation> |
parser() |
FieldTransformation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public FieldTransformation.TransformationCase getTransformationCase()
getTransformationCase in interface FieldTransformationOrBuilderpublic 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];
getFieldsList in interface FieldTransformationOrBuilderpublic 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];
getFieldsOrBuilderList in interface FieldTransformationOrBuilderpublic 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];
getFieldsCount in interface FieldTransformationOrBuilderpublic 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];
getFields in interface FieldTransformationOrBuilderpublic 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];
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. 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 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. 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 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. 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 FieldTransformationOrBuilderpublic boolean hasPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;hasPrimitiveTransformation in interface FieldTransformationOrBuilderpublic PrimitiveTransformation getPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;getPrimitiveTransformation in interface FieldTransformationOrBuilderpublic PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.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.v2.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.v2.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.v2.InfoTypeTransformations info_type_transformations = 5;getInfoTypeTransformationsOrBuilder in interface FieldTransformationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static FieldTransformation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FieldTransformation parseFrom(InputStream input) throws IOException
IOExceptionpublic static FieldTransformation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FieldTransformation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static FieldTransformation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FieldTransformation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static FieldTransformation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic FieldTransformation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static FieldTransformation.Builder newBuilder()
public static FieldTransformation.Builder newBuilder(FieldTransformation prototype)
public FieldTransformation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected FieldTransformation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static FieldTransformation getDefaultInstance()
public static com.google.protobuf.Parser<FieldTransformation> parser()
public com.google.protobuf.Parser<FieldTransformation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public FieldTransformation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.