Class TransformationDetails

  • All Implemented Interfaces:
    TransformationDetailsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class TransformationDetails
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Field Detail

      • RESOURCE_NAME_FIELD_NUMBER

        public static final int RESOURCE_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONTAINER_NAME_FIELD_NUMBER

        public static final int CONTAINER_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRANSFORMATION_FIELD_NUMBER

        public static final int TRANSFORMATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STATUS_DETAILS_FIELD_NUMBER

        public static final int STATUS_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRANSFORMED_BYTES_FIELD_NUMBER

        public static final int TRANSFORMED_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRANSFORMATION_LOCATION_FIELD_NUMBER

        public static final int TRANSFORMATION_LOCATION_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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
      • 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
      • 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
      • 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
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static TransformationDetails parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransformationDetails parseFrom​(ByteBuffer data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransformationDetails parseFrom​(com.google.protobuf.ByteString data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransformationDetails parseFrom​(com.google.protobuf.ByteString data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransformationDetails parseFrom​(byte[] data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TransformationDetails parseFrom​(byte[] data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected TransformationDetails.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<TransformationDetails> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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