Package com.google.privacy.dlp.v2
Interface FieldTransformationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
FieldTransformation,FieldTransformation.Builder
public interface FieldTransformationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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`.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`.PrimitiveTransformationgetPrimitiveTransformation()Apply the transformation to the entire field.PrimitiveTransformationOrBuildergetPrimitiveTransformationOrBuilder()Apply the transformation to the entire field.FieldTransformation.TransformationCasegetTransformationCase()booleanhasCondition()Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getFieldsList
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];
-
getFields
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];
-
getFieldsCount
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];
-
getFieldsOrBuilderList
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];
-
getFieldsOrBuilder
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];
-
hasCondition
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;- Returns:
- Whether the condition field is set.
-
getCondition
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;- Returns:
- The condition.
-
getConditionOrBuilder
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;
-
hasPrimitiveTransformation
boolean hasPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;- Returns:
- Whether the primitiveTransformation field is set.
-
getPrimitiveTransformation
PrimitiveTransformation getPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;- Returns:
- The primitiveTransformation.
-
getPrimitiveTransformationOrBuilder
PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
-
hasInfoTypeTransformations
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;- Returns:
- Whether the infoTypeTransformations field is set.
-
getInfoTypeTransformations
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;- Returns:
- The infoTypeTransformations.
-
getInfoTypeTransformationsOrBuilder
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;
-
getTransformationCase
FieldTransformation.TransformationCase getTransformationCase()
-
-