Class DataProfileFinding

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.DataProfileFinding
All Implemented Interfaces:
DataProfileFindingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DataProfileFinding extends com.google.protobuf.GeneratedMessage implements DataProfileFindingOrBuilder
 Details about a piece of potentially sensitive information that was detected
 when the data resource was profiled.
 
Protobuf type google.privacy.dlp.v2.DataProfileFinding
See Also:
  • Field Details

    • QUOTE_FIELD_NUMBER

      public static final int QUOTE_FIELD_NUMBER
      See Also:
    • INFOTYPE_FIELD_NUMBER

      public static final int INFOTYPE_FIELD_NUMBER
      See Also:
    • QUOTE_INFO_FIELD_NUMBER

      public static final int QUOTE_INFO_FIELD_NUMBER
      See Also:
    • DATA_PROFILE_RESOURCE_NAME_FIELD_NUMBER

      public static final int DATA_PROFILE_RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • FINDING_ID_FIELD_NUMBER

      public static final int FINDING_ID_FIELD_NUMBER
      See Also:
    • TIMESTAMP_FIELD_NUMBER

      public static final int TIMESTAMP_FIELD_NUMBER
      See Also:
    • LOCATION_FIELD_NUMBER

      public static final int LOCATION_FIELD_NUMBER
      See Also:
    • RESOURCE_VISIBILITY_FIELD_NUMBER

      public static final int RESOURCE_VISIBILITY_FIELD_NUMBER
      See Also:
    • FULL_RESOURCE_NAME_FIELD_NUMBER

      public static final int FULL_RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • DATA_SOURCE_TYPE_FIELD_NUMBER

      public static final int DATA_SOURCE_TYPE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getQuote

      public String getQuote()
       The content that was found. Even if the content is not textual, it
       may be converted to a textual representation here. If the finding exceeds
       4096 bytes in length, the quote may be omitted.
       
      string quote = 1;
      Specified by:
      getQuote in interface DataProfileFindingOrBuilder
      Returns:
      The quote.
    • getQuoteBytes

      public com.google.protobuf.ByteString getQuoteBytes()
       The content that was found. Even if the content is not textual, it
       may be converted to a textual representation here. If the finding exceeds
       4096 bytes in length, the quote may be omitted.
       
      string quote = 1;
      Specified by:
      getQuoteBytes in interface DataProfileFindingOrBuilder
      Returns:
      The bytes for quote.
    • hasInfotype

      public boolean hasInfotype()
       The [type of
       content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference)
       that might have been found.
       
      .google.privacy.dlp.v2.InfoType infotype = 2;
      Specified by:
      hasInfotype in interface DataProfileFindingOrBuilder
      Returns:
      Whether the infotype field is set.
    • getInfotype

      public InfoType getInfotype()
       The [type of
       content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference)
       that might have been found.
       
      .google.privacy.dlp.v2.InfoType infotype = 2;
      Specified by:
      getInfotype in interface DataProfileFindingOrBuilder
      Returns:
      The infotype.
    • getInfotypeOrBuilder

      public InfoTypeOrBuilder getInfotypeOrBuilder()
       The [type of
       content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference)
       that might have been found.
       
      .google.privacy.dlp.v2.InfoType infotype = 2;
      Specified by:
      getInfotypeOrBuilder in interface DataProfileFindingOrBuilder
    • hasQuoteInfo

      public boolean hasQuoteInfo()
       Contains data parsed from quotes. Currently supported infoTypes: DATE,
       DATE_OF_BIRTH, and TIME.
       
      .google.privacy.dlp.v2.QuoteInfo quote_info = 3;
      Specified by:
      hasQuoteInfo in interface DataProfileFindingOrBuilder
      Returns:
      Whether the quoteInfo field is set.
    • getQuoteInfo

      public QuoteInfo getQuoteInfo()
       Contains data parsed from quotes. Currently supported infoTypes: DATE,
       DATE_OF_BIRTH, and TIME.
       
      .google.privacy.dlp.v2.QuoteInfo quote_info = 3;
      Specified by:
      getQuoteInfo in interface DataProfileFindingOrBuilder
      Returns:
      The quoteInfo.
    • getQuoteInfoOrBuilder

      public QuoteInfoOrBuilder getQuoteInfoOrBuilder()
       Contains data parsed from quotes. Currently supported infoTypes: DATE,
       DATE_OF_BIRTH, and TIME.
       
      .google.privacy.dlp.v2.QuoteInfo quote_info = 3;
      Specified by:
      getQuoteInfoOrBuilder in interface DataProfileFindingOrBuilder
    • getDataProfileResourceName

      public String getDataProfileResourceName()
       Resource name of the data profile associated with the finding.
       
      string data_profile_resource_name = 4;
      Specified by:
      getDataProfileResourceName in interface DataProfileFindingOrBuilder
      Returns:
      The dataProfileResourceName.
    • getDataProfileResourceNameBytes

      public com.google.protobuf.ByteString getDataProfileResourceNameBytes()
       Resource name of the data profile associated with the finding.
       
      string data_profile_resource_name = 4;
      Specified by:
      getDataProfileResourceNameBytes in interface DataProfileFindingOrBuilder
      Returns:
      The bytes for dataProfileResourceName.
    • getFindingId

      public String getFindingId()
       A unique identifier for the finding.
       
      string finding_id = 5;
      Specified by:
      getFindingId in interface DataProfileFindingOrBuilder
      Returns:
      The findingId.
    • getFindingIdBytes

      public com.google.protobuf.ByteString getFindingIdBytes()
       A unique identifier for the finding.
       
      string finding_id = 5;
      Specified by:
      getFindingIdBytes in interface DataProfileFindingOrBuilder
      Returns:
      The bytes for findingId.
    • hasTimestamp

      public boolean hasTimestamp()
       Timestamp when the finding was detected.
       
      .google.protobuf.Timestamp timestamp = 6;
      Specified by:
      hasTimestamp in interface DataProfileFindingOrBuilder
      Returns:
      Whether the timestamp field is set.
    • getTimestamp

      public com.google.protobuf.Timestamp getTimestamp()
       Timestamp when the finding was detected.
       
      .google.protobuf.Timestamp timestamp = 6;
      Specified by:
      getTimestamp in interface DataProfileFindingOrBuilder
      Returns:
      The timestamp.
    • getTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
       Timestamp when the finding was detected.
       
      .google.protobuf.Timestamp timestamp = 6;
      Specified by:
      getTimestampOrBuilder in interface DataProfileFindingOrBuilder
    • hasLocation

      public boolean hasLocation()
       Where the content was found.
       
      .google.privacy.dlp.v2.DataProfileFindingLocation location = 7;
      Specified by:
      hasLocation in interface DataProfileFindingOrBuilder
      Returns:
      Whether the location field is set.
    • getLocation

      public DataProfileFindingLocation getLocation()
       Where the content was found.
       
      .google.privacy.dlp.v2.DataProfileFindingLocation location = 7;
      Specified by:
      getLocation in interface DataProfileFindingOrBuilder
      Returns:
      The location.
    • getLocationOrBuilder

      public DataProfileFindingLocationOrBuilder getLocationOrBuilder()
       Where the content was found.
       
      .google.privacy.dlp.v2.DataProfileFindingLocation location = 7;
      Specified by:
      getLocationOrBuilder in interface DataProfileFindingOrBuilder
    • getResourceVisibilityValue

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

      public ResourceVisibility getResourceVisibility()
       How broadly a resource has been shared.
       
      .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8;
      Specified by:
      getResourceVisibility in interface DataProfileFindingOrBuilder
      Returns:
      The resourceVisibility.
    • getFullResourceName

      public String getFullResourceName()
       The [full resource
       name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       of the resource profiled for this finding.
       
      string full_resource_name = 9;
      Specified by:
      getFullResourceName in interface DataProfileFindingOrBuilder
      Returns:
      The fullResourceName.
    • getFullResourceNameBytes

      public com.google.protobuf.ByteString getFullResourceNameBytes()
       The [full resource
       name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       of the resource profiled for this finding.
       
      string full_resource_name = 9;
      Specified by:
      getFullResourceNameBytes in interface DataProfileFindingOrBuilder
      Returns:
      The bytes for fullResourceName.
    • hasDataSourceType

      public boolean hasDataSourceType()
       The type of the resource that was profiled.
       
      .google.privacy.dlp.v2.DataSourceType data_source_type = 10;
      Specified by:
      hasDataSourceType in interface DataProfileFindingOrBuilder
      Returns:
      Whether the dataSourceType field is set.
    • getDataSourceType

      public DataSourceType getDataSourceType()
       The type of the resource that was profiled.
       
      .google.privacy.dlp.v2.DataSourceType data_source_type = 10;
      Specified by:
      getDataSourceType in interface DataProfileFindingOrBuilder
      Returns:
      The dataSourceType.
    • getDataSourceTypeOrBuilder

      public DataSourceTypeOrBuilder getDataSourceTypeOrBuilder()
       The type of the resource that was profiled.
       
      .google.privacy.dlp.v2.DataSourceType data_source_type = 10;
      Specified by:
      getDataSourceTypeOrBuilder in interface DataProfileFindingOrBuilder
    • isInitialized

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

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 DataProfileFinding parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static DataProfileFinding parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataProfileFinding parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataProfileFinding parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataProfileFinding parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataProfileFinding parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static DataProfileFinding.Builder newBuilder()
    • newBuilder

      public static DataProfileFinding.Builder newBuilder(DataProfileFinding prototype)
    • toBuilder

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

      protected DataProfileFinding.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DataProfileFinding getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DataProfileFinding> parser()
    • getParserForType

      public com.google.protobuf.Parser<DataProfileFinding> 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.GeneratedMessage
    • getDefaultInstanceForType

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