Class TransformationDetails.Builder

  • All Implemented Interfaces:
    TransformationDetailsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    TransformationDetails

    public static final class TransformationDetails.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TransformationDetails.Builder>
    implements TransformationDetailsOrBuilder
     Details about a single transformation. This object contains a description of
     the transformation, information about whether the transformation was
     successfully applied, and the precise location where the transformation
     occurred. These details are stored in a user-specified BigQuery table.
     
    Protobuf type google.privacy.dlp.v2.TransformationDetails
    • 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<TransformationDetails.Builder>
      • clear

        public TransformationDetails.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<TransformationDetails.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<TransformationDetails.Builder>
      • getDefaultInstanceForType

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

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

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

        public TransformationDetails.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<TransformationDetails.Builder>
      • clearField

        public TransformationDetails.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<TransformationDetails.Builder>
      • clearOneof

        public TransformationDetails.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<TransformationDetails.Builder>
      • setRepeatedField

        public TransformationDetails.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<TransformationDetails.Builder>
      • addRepeatedField

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

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

        public TransformationDetails.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<TransformationDetails.Builder>
        Throws:
        IOException
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         The name of the job that completed the transformation.
         
        string resource_name = 1;
        Specified by:
        getResourceNameBytes in interface TransformationDetailsOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public TransformationDetails.Builder setResourceName​(String value)
         The name of the job that completed the transformation.
         
        string resource_name = 1;
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public TransformationDetails.Builder clearResourceName()
         The name of the job that completed the transformation.
         
        string resource_name = 1;
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public TransformationDetails.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         The name of the job that completed the transformation.
         
        string resource_name = 1;
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • getContainerName

        public String getContainerName()
         The top level name of the container where the transformation is located
         (this will be the source file name or table name).
         
        string container_name = 2;
        Specified by:
        getContainerName in interface TransformationDetailsOrBuilder
        Returns:
        The containerName.
      • getContainerNameBytes

        public com.google.protobuf.ByteString getContainerNameBytes()
         The top level name of the container where the transformation is located
         (this will be the source file name or table name).
         
        string container_name = 2;
        Specified by:
        getContainerNameBytes in interface TransformationDetailsOrBuilder
        Returns:
        The bytes for containerName.
      • setContainerName

        public TransformationDetails.Builder setContainerName​(String value)
         The top level name of the container where the transformation is located
         (this will be the source file name or table name).
         
        string container_name = 2;
        Parameters:
        value - The containerName to set.
        Returns:
        This builder for chaining.
      • clearContainerName

        public TransformationDetails.Builder clearContainerName()
         The top level name of the container where the transformation is located
         (this will be the source file name or table name).
         
        string container_name = 2;
        Returns:
        This builder for chaining.
      • setContainerNameBytes

        public TransformationDetails.Builder setContainerNameBytes​(com.google.protobuf.ByteString value)
         The top level name of the container where the transformation is located
         (this will be the source file name or table name).
         
        string container_name = 2;
        Parameters:
        value - The bytes for containerName to set.
        Returns:
        This builder for chaining.
      • getTransformationList

        public List<TransformationDescription> getTransformationList()
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
        Specified by:
        getTransformationList in interface TransformationDetailsOrBuilder
      • getTransformationCount

        public int getTransformationCount()
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
        Specified by:
        getTransformationCount in interface TransformationDetailsOrBuilder
      • getTransformation

        public TransformationDescription getTransformation​(int index)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
        Specified by:
        getTransformation in interface TransformationDetailsOrBuilder
      • setTransformation

        public TransformationDetails.Builder setTransformation​(int index,
                                                               TransformationDescription value)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • setTransformation

        public TransformationDetails.Builder setTransformation​(int index,
                                                               TransformationDescription.Builder builderForValue)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • addTransformation

        public TransformationDetails.Builder addTransformation​(TransformationDescription value)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • addTransformation

        public TransformationDetails.Builder addTransformation​(int index,
                                                               TransformationDescription value)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • addTransformation

        public TransformationDetails.Builder addTransformation​(TransformationDescription.Builder builderForValue)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • addTransformation

        public TransformationDetails.Builder addTransformation​(int index,
                                                               TransformationDescription.Builder builderForValue)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • addAllTransformation

        public TransformationDetails.Builder addAllTransformation​(Iterable<? extends TransformationDescription> values)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • clearTransformation

        public TransformationDetails.Builder clearTransformation()
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • removeTransformation

        public TransformationDetails.Builder removeTransformation​(int index)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • getTransformationBuilder

        public TransformationDescription.Builder getTransformationBuilder​(int index)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • getTransformationOrBuilder

        public TransformationDescriptionOrBuilder getTransformationOrBuilder​(int index)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
        Specified by:
        getTransformationOrBuilder in interface TransformationDetailsOrBuilder
      • getTransformationOrBuilderList

        public List<? extends TransformationDescriptionOrBuilder> getTransformationOrBuilderList()
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
        Specified by:
        getTransformationOrBuilderList in interface TransformationDetailsOrBuilder
      • addTransformationBuilder

        public TransformationDescription.Builder addTransformationBuilder()
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • addTransformationBuilder

        public TransformationDescription.Builder addTransformationBuilder​(int index)
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • getTransformationBuilderList

        public List<TransformationDescription.Builder> getTransformationBuilderList()
         Description of transformation. This would only contain more than one
         element if there were multiple matching transformations and which one to
         apply was ambiguous. Not set for states that contain no transformation,
         currently only state that contains no transformation is
         TransformationResultStateType.METADATA_UNRETRIEVABLE.
         
        repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
      • hasStatusDetails

        public boolean hasStatusDetails()
         Status of the transformation, if transformation was not successful, this
         will specify what caused it to fail, otherwise it will show that the
         transformation was successful.
         
        .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
        Specified by:
        hasStatusDetails in interface TransformationDetailsOrBuilder
        Returns:
        Whether the statusDetails field is set.
      • getStatusDetails

        public TransformationResultStatus getStatusDetails()
         Status of the transformation, if transformation was not successful, this
         will specify what caused it to fail, otherwise it will show that the
         transformation was successful.
         
        .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
        Specified by:
        getStatusDetails in interface TransformationDetailsOrBuilder
        Returns:
        The statusDetails.
      • setStatusDetails

        public TransformationDetails.Builder setStatusDetails​(TransformationResultStatus value)
         Status of the transformation, if transformation was not successful, this
         will specify what caused it to fail, otherwise it will show that the
         transformation was successful.
         
        .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
      • setStatusDetails

        public TransformationDetails.Builder setStatusDetails​(TransformationResultStatus.Builder builderForValue)
         Status of the transformation, if transformation was not successful, this
         will specify what caused it to fail, otherwise it will show that the
         transformation was successful.
         
        .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
      • mergeStatusDetails

        public TransformationDetails.Builder mergeStatusDetails​(TransformationResultStatus value)
         Status of the transformation, if transformation was not successful, this
         will specify what caused it to fail, otherwise it will show that the
         transformation was successful.
         
        .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
      • clearStatusDetails

        public TransformationDetails.Builder clearStatusDetails()
         Status of the transformation, if transformation was not successful, this
         will specify what caused it to fail, otherwise it will show that the
         transformation was successful.
         
        .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
      • getStatusDetailsBuilder

        public TransformationResultStatus.Builder getStatusDetailsBuilder()
         Status of the transformation, if transformation was not successful, this
         will specify what caused it to fail, otherwise it will show that the
         transformation was successful.
         
        .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
      • getTransformedBytes

        public long getTransformedBytes()
         The number of bytes that were transformed. If transformation was
         unsuccessful or did not take place because there was no content to
         transform, this will be zero.
         
        int64 transformed_bytes = 5;
        Specified by:
        getTransformedBytes in interface TransformationDetailsOrBuilder
        Returns:
        The transformedBytes.
      • setTransformedBytes

        public TransformationDetails.Builder setTransformedBytes​(long value)
         The number of bytes that were transformed. If transformation was
         unsuccessful or did not take place because there was no content to
         transform, this will be zero.
         
        int64 transformed_bytes = 5;
        Parameters:
        value - The transformedBytes to set.
        Returns:
        This builder for chaining.
      • clearTransformedBytes

        public TransformationDetails.Builder clearTransformedBytes()
         The number of bytes that were transformed. If transformation was
         unsuccessful or did not take place because there was no content to
         transform, this will be zero.
         
        int64 transformed_bytes = 5;
        Returns:
        This builder for chaining.
      • hasTransformationLocation

        public boolean hasTransformationLocation()
         The precise location of the transformed content in the original container.
         
        .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
        Specified by:
        hasTransformationLocation in interface TransformationDetailsOrBuilder
        Returns:
        Whether the transformationLocation field is set.
      • setTransformationLocation

        public TransformationDetails.Builder setTransformationLocation​(TransformationLocation value)
         The precise location of the transformed content in the original container.
         
        .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
      • mergeTransformationLocation

        public TransformationDetails.Builder mergeTransformationLocation​(TransformationLocation value)
         The precise location of the transformed content in the original container.
         
        .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
      • clearTransformationLocation

        public TransformationDetails.Builder clearTransformationLocation()
         The precise location of the transformed content in the original container.
         
        .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
      • getTransformationLocationBuilder

        public TransformationLocation.Builder getTransformationLocationBuilder()
         The precise location of the transformed content in the original container.
         
        .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
      • setUnknownFields

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

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