Class FieldTransformation.Builder

    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public FieldTransformation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
      • setField

        public FieldTransformation.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
      • clearField

        public FieldTransformation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
      • clearOneof

        public FieldTransformation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
      • setRepeatedField

        public FieldTransformation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
      • addRepeatedField

        public FieldTransformation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • setPrimitiveTransformation

        public FieldTransformation.Builder setPrimitiveTransformation​(PrimitiveTransformation value)
         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;
      • 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;
      • setUnknownFields

        public final FieldTransformation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
      • mergeUnknownFields

        public final FieldTransformation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>