Class FieldTransformation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FieldTransformation.Builder>
com.google.privacy.dlp.v2.FieldTransformation.Builder
All Implemented Interfaces:
FieldTransformationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FieldTransformation

public static final class FieldTransformation.Builder extends com.google.protobuf.GeneratedMessage.Builder<FieldTransformation.Builder> implements FieldTransformationOrBuilder
 The transformation to apply to the field.
 
Protobuf type google.privacy.dlp.v2.FieldTransformation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FieldTransformation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FieldTransformation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FieldTransformation.Builder>
    • getDefaultInstanceForType

      public FieldTransformation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public FieldTransformation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FieldTransformation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FieldTransformation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FieldTransformation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FieldTransformation.Builder>
    • mergeFrom

      public FieldTransformation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FieldTransformation.Builder>
      Throws:
      IOException
    • getTransformationCase

      public FieldTransformation.TransformationCase getTransformationCase()
      Specified by:
      getTransformationCase in interface FieldTransformationOrBuilder
    • clearTransformation

      public FieldTransformation.Builder clearTransformation()
    • 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:
      getFieldsList in interface FieldTransformationOrBuilder
    • 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:
      getFieldsCount in interface FieldTransformationOrBuilder
    • 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:
      getFields in interface FieldTransformationOrBuilder
    • setFields

      public FieldTransformation.Builder setFields(int index, FieldId value)
       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];
    • setFields

      public FieldTransformation.Builder setFields(int index, FieldId.Builder builderForValue)
       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];
    • addFields

      public FieldTransformation.Builder addFields(FieldId value)
       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];
    • addFields

      public FieldTransformation.Builder addFields(int index, FieldId value)
       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];
    • addFields

      public FieldTransformation.Builder addFields(FieldId.Builder builderForValue)
       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];
    • addFields

      public FieldTransformation.Builder addFields(int index, FieldId.Builder builderForValue)
       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];
    • addAllFields

      public FieldTransformation.Builder addAllFields(Iterable<? extends FieldId> values)
       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];
    • clearFields

      public FieldTransformation.Builder clearFields()
       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];
    • removeFields

      public FieldTransformation.Builder removeFields(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];
    • getFieldsBuilder

      public FieldId.Builder getFieldsBuilder(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

      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:
      getFieldsOrBuilder in interface FieldTransformationOrBuilder
    • 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:
      getFieldsOrBuilderList in interface FieldTransformationOrBuilder
    • addFieldsBuilder

      public FieldId.Builder addFieldsBuilder()
       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];
    • addFieldsBuilder

      public FieldId.Builder addFieldsBuilder(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];
    • getFieldsBuilderList

      public List<FieldId.Builder> getFieldsBuilderList()
       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

      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:
      hasCondition in interface FieldTransformationOrBuilder
      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:
      getCondition in interface FieldTransformationOrBuilder
      Returns:
      The condition.
    • setCondition

      public FieldTransformation.Builder setCondition(RecordCondition value)
       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;
    • setCondition

      public FieldTransformation.Builder setCondition(RecordCondition.Builder builderForValue)
       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;
    • mergeCondition

      public FieldTransformation.Builder mergeCondition(RecordCondition value)
       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;
    • clearCondition

      public FieldTransformation.Builder clearCondition()
       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;
    • getConditionBuilder

      public RecordCondition.Builder getConditionBuilder()
       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

      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:
      getConditionOrBuilder in interface FieldTransformationOrBuilder
    • hasPrimitiveTransformation

      public boolean hasPrimitiveTransformation()
       Apply the transformation to the entire field.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
      Specified by:
      hasPrimitiveTransformation in interface FieldTransformationOrBuilder
      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:
      getPrimitiveTransformation in interface FieldTransformationOrBuilder
      Returns:
      The primitiveTransformation.
    • setPrimitiveTransformation

      public FieldTransformation.Builder setPrimitiveTransformation(PrimitiveTransformation value)
       Apply the transformation to the entire field.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
    • setPrimitiveTransformation

      public FieldTransformation.Builder setPrimitiveTransformation(PrimitiveTransformation.Builder builderForValue)
       Apply the transformation to the entire field.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
    • mergePrimitiveTransformation

      public FieldTransformation.Builder mergePrimitiveTransformation(PrimitiveTransformation value)
       Apply the transformation to the entire field.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
    • clearPrimitiveTransformation

      public FieldTransformation.Builder clearPrimitiveTransformation()
       Apply the transformation to the entire field.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
    • getPrimitiveTransformationBuilder

      public PrimitiveTransformation.Builder getPrimitiveTransformationBuilder()
       Apply the transformation to the entire field.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
    • getPrimitiveTransformationOrBuilder

      public PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()
       Apply the transformation to the entire field.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
      Specified by:
      getPrimitiveTransformationOrBuilder in interface FieldTransformationOrBuilder
    • 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:
      hasInfoTypeTransformations in interface FieldTransformationOrBuilder
      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:
      getInfoTypeTransformations in interface FieldTransformationOrBuilder
      Returns:
      The infoTypeTransformations.
    • setInfoTypeTransformations

      public FieldTransformation.Builder setInfoTypeTransformations(InfoTypeTransformations value)
       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;
    • setInfoTypeTransformations

      public FieldTransformation.Builder setInfoTypeTransformations(InfoTypeTransformations.Builder builderForValue)
       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;
    • mergeInfoTypeTransformations

      public FieldTransformation.Builder mergeInfoTypeTransformations(InfoTypeTransformations value)
       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;
    • clearInfoTypeTransformations

      public FieldTransformation.Builder clearInfoTypeTransformations()
       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;
    • getInfoTypeTransformationsBuilder

      public InfoTypeTransformations.Builder getInfoTypeTransformationsBuilder()
       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

      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:
      getInfoTypeTransformationsOrBuilder in interface FieldTransformationOrBuilder