Class TransformationDescription.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<TransformationDescription.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<TransformationDescription.Builder>
      • getDefaultInstanceForType

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

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

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

        public TransformationDescription.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<TransformationDescription.Builder>
      • isInitialized

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

        public TransformationDescription.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<TransformationDescription.Builder>
        Throws:
        IOException
      • getTypeValue

        public int getTypeValue()
         The transformation type.
         
        .google.privacy.dlp.v2.TransformationType type = 1;
        Specified by:
        getTypeValue in interface TransformationDescriptionOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public TransformationDescription.Builder setTypeValue​(int value)
         The transformation type.
         
        .google.privacy.dlp.v2.TransformationType type = 1;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • clearType

        public TransformationDescription.Builder clearType()
         The transformation type.
         
        .google.privacy.dlp.v2.TransformationType type = 1;
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         A description of the transformation. This is empty for a
         RECORD_SUPPRESSION, or is the output of calling toString() on the
         `PrimitiveTransformation` protocol buffer message for any other type of
         transformation.
         
        string description = 2;
        Specified by:
        getDescription in interface TransformationDescriptionOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         A description of the transformation. This is empty for a
         RECORD_SUPPRESSION, or is the output of calling toString() on the
         `PrimitiveTransformation` protocol buffer message for any other type of
         transformation.
         
        string description = 2;
        Specified by:
        getDescriptionBytes in interface TransformationDescriptionOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public TransformationDescription.Builder setDescription​(String value)
         A description of the transformation. This is empty for a
         RECORD_SUPPRESSION, or is the output of calling toString() on the
         `PrimitiveTransformation` protocol buffer message for any other type of
         transformation.
         
        string description = 2;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public TransformationDescription.Builder clearDescription()
         A description of the transformation. This is empty for a
         RECORD_SUPPRESSION, or is the output of calling toString() on the
         `PrimitiveTransformation` protocol buffer message for any other type of
         transformation.
         
        string description = 2;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public TransformationDescription.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         A description of the transformation. This is empty for a
         RECORD_SUPPRESSION, or is the output of calling toString() on the
         `PrimitiveTransformation` protocol buffer message for any other type of
         transformation.
         
        string description = 2;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getCondition

        public String getCondition()
         A human-readable string representation of the `RecordCondition`
         corresponding to this transformation. Set if a `RecordCondition` was used
         to determine whether or not to apply this transformation.
        
         Examples:
             * (age_field > 85)
             * (age_field <= 18)
             * (zip_field exists)
             * (zip_field == 01234) && (city_field != "Springville")
             * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
         
        string condition = 3;
        Specified by:
        getCondition in interface TransformationDescriptionOrBuilder
        Returns:
        The condition.
      • getConditionBytes

        public com.google.protobuf.ByteString getConditionBytes()
         A human-readable string representation of the `RecordCondition`
         corresponding to this transformation. Set if a `RecordCondition` was used
         to determine whether or not to apply this transformation.
        
         Examples:
             * (age_field > 85)
             * (age_field <= 18)
             * (zip_field exists)
             * (zip_field == 01234) && (city_field != "Springville")
             * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
         
        string condition = 3;
        Specified by:
        getConditionBytes in interface TransformationDescriptionOrBuilder
        Returns:
        The bytes for condition.
      • setCondition

        public TransformationDescription.Builder setCondition​(String value)
         A human-readable string representation of the `RecordCondition`
         corresponding to this transformation. Set if a `RecordCondition` was used
         to determine whether or not to apply this transformation.
        
         Examples:
             * (age_field > 85)
             * (age_field <= 18)
             * (zip_field exists)
             * (zip_field == 01234) && (city_field != "Springville")
             * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
         
        string condition = 3;
        Parameters:
        value - The condition to set.
        Returns:
        This builder for chaining.
      • clearCondition

        public TransformationDescription.Builder clearCondition()
         A human-readable string representation of the `RecordCondition`
         corresponding to this transformation. Set if a `RecordCondition` was used
         to determine whether or not to apply this transformation.
        
         Examples:
             * (age_field > 85)
             * (age_field <= 18)
             * (zip_field exists)
             * (zip_field == 01234) && (city_field != "Springville")
             * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
         
        string condition = 3;
        Returns:
        This builder for chaining.
      • setConditionBytes

        public TransformationDescription.Builder setConditionBytes​(com.google.protobuf.ByteString value)
         A human-readable string representation of the `RecordCondition`
         corresponding to this transformation. Set if a `RecordCondition` was used
         to determine whether or not to apply this transformation.
        
         Examples:
             * (age_field > 85)
             * (age_field <= 18)
             * (zip_field exists)
             * (zip_field == 01234) && (city_field != "Springville")
             * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
         
        string condition = 3;
        Parameters:
        value - The bytes for condition to set.
        Returns:
        This builder for chaining.
      • hasInfoType

        public boolean hasInfoType()
         Set if the transformation was limited to a specific `InfoType`.
         
        .google.privacy.dlp.v2.InfoType info_type = 4;
        Specified by:
        hasInfoType in interface TransformationDescriptionOrBuilder
        Returns:
        Whether the infoType field is set.
      • clearInfoType

        public TransformationDescription.Builder clearInfoType()
         Set if the transformation was limited to a specific `InfoType`.
         
        .google.privacy.dlp.v2.InfoType info_type = 4;
      • getInfoTypeBuilder

        public InfoType.Builder getInfoTypeBuilder()
         Set if the transformation was limited to a specific `InfoType`.
         
        .google.privacy.dlp.v2.InfoType info_type = 4;
      • setUnknownFields

        public final TransformationDescription.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<TransformationDescription.Builder>
      • mergeUnknownFields

        public final TransformationDescription.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<TransformationDescription.Builder>