Class TableDataProfile

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

    public final class TableDataProfile
    extends com.google.protobuf.GeneratedMessageV3
    implements TableDataProfileOrBuilder
     The profile for a scanned table.
     
    Protobuf type google.privacy.dlp.v2.TableDataProfile
    See Also:
    Serialized Form
    • Field Detail

      • PROJECT_DATA_PROFILE_FIELD_NUMBER

        public static final int PROJECT_DATA_PROFILE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATASET_PROJECT_ID_FIELD_NUMBER

        public static final int DATASET_PROJECT_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATASET_LOCATION_FIELD_NUMBER

        public static final int DATASET_LOCATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATASET_ID_FIELD_NUMBER

        public static final int DATASET_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FULL_RESOURCE_FIELD_NUMBER

        public static final int FULL_RESOURCE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROFILE_STATUS_FIELD_NUMBER

        public static final int PROFILE_STATUS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SENSITIVITY_SCORE_FIELD_NUMBER

        public static final int SENSITIVITY_SCORE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATA_RISK_LEVEL_FIELD_NUMBER

        public static final int DATA_RISK_LEVEL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PREDICTED_INFO_TYPES_FIELD_NUMBER

        public static final int PREDICTED_INFO_TYPES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OTHER_INFO_TYPES_FIELD_NUMBER

        public static final int OTHER_INFO_TYPES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONFIG_SNAPSHOT_FIELD_NUMBER

        public static final int CONFIG_SNAPSHOT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_MODIFIED_TIME_FIELD_NUMBER

        public static final int LAST_MODIFIED_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXPIRATION_TIME_FIELD_NUMBER

        public static final int EXPIRATION_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SCANNED_COLUMN_COUNT_FIELD_NUMBER

        public static final int SCANNED_COLUMN_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FAILED_COLUMN_COUNT_FIELD_NUMBER

        public static final int FAILED_COLUMN_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TABLE_SIZE_BYTES_FIELD_NUMBER

        public static final int TABLE_SIZE_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENCRYPTION_STATUS_FIELD_NUMBER

        public static final int ENCRYPTION_STATUS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RESOURCE_VISIBILITY_FIELD_NUMBER

        public static final int RESOURCE_VISIBILITY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROFILE_LAST_GENERATED_FIELD_NUMBER

        public static final int PROFILE_LAST_GENERATED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RESOURCE_LABELS_FIELD_NUMBER

        public static final int RESOURCE_LABELS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_TIME_FIELD_NUMBER

        public static final int CREATE_TIME_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()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the profile.
         
        string name = 1;
        Specified by:
        getNameBytes in interface TableDataProfileOrBuilder
        Returns:
        The bytes for name.
      • getProjectDataProfile

        public String getProjectDataProfile()
         The resource name to the project data profile for this table.
         
        string project_data_profile = 2;
        Specified by:
        getProjectDataProfile in interface TableDataProfileOrBuilder
        Returns:
        The projectDataProfile.
      • getProjectDataProfileBytes

        public com.google.protobuf.ByteString getProjectDataProfileBytes()
         The resource name to the project data profile for this table.
         
        string project_data_profile = 2;
        Specified by:
        getProjectDataProfileBytes in interface TableDataProfileOrBuilder
        Returns:
        The bytes for projectDataProfile.
      • getDatasetProjectIdBytes

        public com.google.protobuf.ByteString getDatasetProjectIdBytes()
         The GCP project ID that owns the BigQuery dataset.
         
        string dataset_project_id = 24;
        Specified by:
        getDatasetProjectIdBytes in interface TableDataProfileOrBuilder
        Returns:
        The bytes for datasetProjectId.
      • getDatasetLocation

        public String getDatasetLocation()
         The BigQuery location where the dataset's data is stored.
         See https://cloud.google.com/bigquery/docs/locations for supported
         locations.
         
        string dataset_location = 29;
        Specified by:
        getDatasetLocation in interface TableDataProfileOrBuilder
        Returns:
        The datasetLocation.
      • getDatasetLocationBytes

        public com.google.protobuf.ByteString getDatasetLocationBytes()
         The BigQuery location where the dataset's data is stored.
         See https://cloud.google.com/bigquery/docs/locations for supported
         locations.
         
        string dataset_location = 29;
        Specified by:
        getDatasetLocationBytes in interface TableDataProfileOrBuilder
        Returns:
        The bytes for datasetLocation.
      • getDatasetIdBytes

        public com.google.protobuf.ByteString getDatasetIdBytes()
         The BigQuery dataset ID.
         
        string dataset_id = 25;
        Specified by:
        getDatasetIdBytes in interface TableDataProfileOrBuilder
        Returns:
        The bytes for datasetId.
      • getTableIdBytes

        public com.google.protobuf.ByteString getTableIdBytes()
         The BigQuery table ID.
         
        string table_id = 26;
        Specified by:
        getTableIdBytes in interface TableDataProfileOrBuilder
        Returns:
        The bytes for tableId.
      • getFullResource

        public String getFullResource()
         The resource name of the table.
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string full_resource = 3;
        Specified by:
        getFullResource in interface TableDataProfileOrBuilder
        Returns:
        The fullResource.
      • getFullResourceBytes

        public com.google.protobuf.ByteString getFullResourceBytes()
         The resource name of the table.
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string full_resource = 3;
        Specified by:
        getFullResourceBytes in interface TableDataProfileOrBuilder
        Returns:
        The bytes for fullResource.
      • hasProfileStatus

        public boolean hasProfileStatus()
         Success or error status from the most recent profile generation attempt.
         May be empty if the profile is still being generated.
         
        .google.privacy.dlp.v2.ProfileStatus profile_status = 21;
        Specified by:
        hasProfileStatus in interface TableDataProfileOrBuilder
        Returns:
        Whether the profileStatus field is set.
      • getProfileStatus

        public ProfileStatus getProfileStatus()
         Success or error status from the most recent profile generation attempt.
         May be empty if the profile is still being generated.
         
        .google.privacy.dlp.v2.ProfileStatus profile_status = 21;
        Specified by:
        getProfileStatus in interface TableDataProfileOrBuilder
        Returns:
        The profileStatus.
      • getStateValue

        public int getStateValue()
         State of a profile.
         
        .google.privacy.dlp.v2.TableDataProfile.State state = 22;
        Specified by:
        getStateValue in interface TableDataProfileOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • hasSensitivityScore

        public boolean hasSensitivityScore()
         The sensitivity score of this table.
         
        .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5;
        Specified by:
        hasSensitivityScore in interface TableDataProfileOrBuilder
        Returns:
        Whether the sensitivityScore field is set.
      • hasDataRiskLevel

        public boolean hasDataRiskLevel()
         The data risk level of this table.
         
        .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6;
        Specified by:
        hasDataRiskLevel in interface TableDataProfileOrBuilder
        Returns:
        Whether the dataRiskLevel field is set.
      • getPredictedInfoTypesCount

        public int getPredictedInfoTypesCount()
         The infoTypes predicted from this table's data.
         
        repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
        Specified by:
        getPredictedInfoTypesCount in interface TableDataProfileOrBuilder
      • getOtherInfoTypesCount

        public int getOtherInfoTypesCount()
         Other infoTypes found in this table's data.
         
        repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
        Specified by:
        getOtherInfoTypesCount in interface TableDataProfileOrBuilder
      • hasConfigSnapshot

        public boolean hasConfigSnapshot()
         The snapshot of the configurations used to generate the profile.
         
        .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7;
        Specified by:
        hasConfigSnapshot in interface TableDataProfileOrBuilder
        Returns:
        Whether the configSnapshot field is set.
      • hasLastModifiedTime

        public boolean hasLastModifiedTime()
         The time when this table was last modified
         
        .google.protobuf.Timestamp last_modified_time = 8;
        Specified by:
        hasLastModifiedTime in interface TableDataProfileOrBuilder
        Returns:
        Whether the lastModifiedTime field is set.
      • getLastModifiedTime

        public com.google.protobuf.Timestamp getLastModifiedTime()
         The time when this table was last modified
         
        .google.protobuf.Timestamp last_modified_time = 8;
        Specified by:
        getLastModifiedTime in interface TableDataProfileOrBuilder
        Returns:
        The lastModifiedTime.
      • getLastModifiedTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder()
         The time when this table was last modified
         
        .google.protobuf.Timestamp last_modified_time = 8;
        Specified by:
        getLastModifiedTimeOrBuilder in interface TableDataProfileOrBuilder
      • hasExpirationTime

        public boolean hasExpirationTime()
         Optional. The time when this table expires.
         
        .google.protobuf.Timestamp expiration_time = 9;
        Specified by:
        hasExpirationTime in interface TableDataProfileOrBuilder
        Returns:
        Whether the expirationTime field is set.
      • getExpirationTime

        public com.google.protobuf.Timestamp getExpirationTime()
         Optional. The time when this table expires.
         
        .google.protobuf.Timestamp expiration_time = 9;
        Specified by:
        getExpirationTime in interface TableDataProfileOrBuilder
        Returns:
        The expirationTime.
      • getExpirationTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder()
         Optional. The time when this table expires.
         
        .google.protobuf.Timestamp expiration_time = 9;
        Specified by:
        getExpirationTimeOrBuilder in interface TableDataProfileOrBuilder
      • getScannedColumnCount

        public long getScannedColumnCount()
         The number of columns profiled in the table.
         
        int64 scanned_column_count = 10;
        Specified by:
        getScannedColumnCount in interface TableDataProfileOrBuilder
        Returns:
        The scannedColumnCount.
      • getFailedColumnCount

        public long getFailedColumnCount()
         The number of columns skipped in the table because of an error.
         
        int64 failed_column_count = 11;
        Specified by:
        getFailedColumnCount in interface TableDataProfileOrBuilder
        Returns:
        The failedColumnCount.
      • getTableSizeBytes

        public long getTableSizeBytes()
         The size of the table when the profile was generated.
         
        int64 table_size_bytes = 12;
        Specified by:
        getTableSizeBytes in interface TableDataProfileOrBuilder
        Returns:
        The tableSizeBytes.
      • getRowCount

        public long getRowCount()
         Number of rows in the table when the profile was generated.
         This will not be populated for BigLake tables.
         
        int64 row_count = 13;
        Specified by:
        getRowCount in interface TableDataProfileOrBuilder
        Returns:
        The rowCount.
      • getEncryptionStatusValue

        public int getEncryptionStatusValue()
         How the table is encrypted.
         
        .google.privacy.dlp.v2.EncryptionStatus encryption_status = 14;
        Specified by:
        getEncryptionStatusValue in interface TableDataProfileOrBuilder
        Returns:
        The enum numeric value on the wire for encryptionStatus.
      • getResourceVisibilityValue

        public int getResourceVisibilityValue()
         How broadly a resource has been shared.
         
        .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15;
        Specified by:
        getResourceVisibilityValue in interface TableDataProfileOrBuilder
        Returns:
        The enum numeric value on the wire for resourceVisibility.
      • hasProfileLastGenerated

        public boolean hasProfileLastGenerated()
         The last time the profile was generated.
         
        .google.protobuf.Timestamp profile_last_generated = 16;
        Specified by:
        hasProfileLastGenerated in interface TableDataProfileOrBuilder
        Returns:
        Whether the profileLastGenerated field is set.
      • getProfileLastGenerated

        public com.google.protobuf.Timestamp getProfileLastGenerated()
         The last time the profile was generated.
         
        .google.protobuf.Timestamp profile_last_generated = 16;
        Specified by:
        getProfileLastGenerated in interface TableDataProfileOrBuilder
        Returns:
        The profileLastGenerated.
      • getProfileLastGeneratedOrBuilder

        public com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder()
         The last time the profile was generated.
         
        .google.protobuf.Timestamp profile_last_generated = 16;
        Specified by:
        getProfileLastGeneratedOrBuilder in interface TableDataProfileOrBuilder
      • containsResourceLabels

        public boolean containsResourceLabels​(String key)
         The labels applied to the resource at the time the profile was generated.
         
        map<string, string> resource_labels = 17;
        Specified by:
        containsResourceLabels in interface TableDataProfileOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         The time at which the table was created.
         
        .google.protobuf.Timestamp create_time = 23;
        Specified by:
        hasCreateTime in interface TableDataProfileOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         The time at which the table was created.
         
        .google.protobuf.Timestamp create_time = 23;
        Specified by:
        getCreateTime in interface TableDataProfileOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         The time at which the table was created.
         
        .google.protobuf.Timestamp create_time = 23;
        Specified by:
        getCreateTimeOrBuilder in interface TableDataProfileOrBuilder
      • 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 TableDataProfile parseFrom​(ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static TableDataProfile parseFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

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

        public com.google.protobuf.Parser<TableDataProfile> 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 TableDataProfile getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder